Public Member Functions | |
| __construct ($mosSystemError=0) | |
Private Member Functions | |
| setError ($mosSystemError) | |
| show () | |
Private Attributes | |
| $live_site = '' | |
| $sitename = '' | |
| $offline = 0 | |
| $offline_message = '' | |
| $error_message = '' | |
| $install_warn = '' | |
| $iso = '' | |
| $error_text = '' | |
Definition at line 42 of file aliroOffline.php.
| aliroOffline::__construct | ( | $ | mosSystemError = 0 |
) |
Definition at line 53 of file aliroOffline.php.
References aliroCore::getInstance(), setError(), and show().
00053 { 00054 $config = aliroCore::getInstance(); 00055 $config->fixlanguage(); 00056 $this->live_site = $config->getCfg('live_site'); 00057 $this->sitename = $config->getCfg('sitename'); 00058 $this->offline = $config->getCfg('offline'); 00059 $this->offline_message = $config->getCfg('offline_message'); 00060 $this->error_message = $config->getCfg('error_message'); 00061 $this->iso = _ISO; 00062 $this->install_warn = 'For your security please completely remove the installation directory including all files and sub-folders - then refresh this page'; 00063 $this->setError($mosSystemError); 00064 $this->show(); 00065 }
| aliroOffline::setError | ( | $ | mosSystemError | ) | [private] |
Definition at line 67 of file aliroOffline.php.
References align.
Referenced by __construct().
00067 { 00068 if ($this->offline) $this->error_text = <<<OFFLINE_BY_ADMIN 00069 00070 <tr> 00071 <td width="39%" align="center"> 00072 <h2> 00073 $this->offline_message 00074 </h2> 00075 </td> 00076 </tr> 00077 00078 OFFLINE_BY_ADMIN; 00079 00080 elseif ($mosSystemError) $this->error_text = <<<OFFLINE_BY_DATABASE 00081 00082 <tr> 00083 <td width="39%" align="center"> 00084 <h2> 00085 $this->error_message 00086 </h2> 00087 $mosSystemError 00088 </td> 00089 </tr> 00090 00091 OFFLINE_BY_DATABASE; 00092 00093 else $this->error_text = <<<OFFLINE_DEFAULT 00094 00095 <tr> 00096 <td width="39%" align="center"> 00097 <h2> 00098 $this->install_warn 00099 </h2> 00100 </td> 00101 </tr> 00102 00103 OFFLINE_DEFAULT; 00104 00105 }
| aliroOffline::show | ( | ) | [private] |
Definition at line 107 of file aliroOffline.php.
References $offline, and align.
Referenced by __construct().
00107 { 00108 // needed to seperate the ISO number from the language file constant _ISO 00109 // $iso = split( '=', _ISO ); 00110 // xml prolog 00111 // echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>'; 00112 00113 $offline = <<<OFFLINE_HTML 00114 00115 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 00116 <html xmlns="http://www.w3.org/1999/xhtml"> 00117 <head> 00118 <title>$this->sitename - Offline</title> 00119 <meta http-equiv="Content-Type" content="text/html; $this->iso" /> 00120 </head> 00121 <body> 00122 00123 <p> </p> 00124 <table width="550" align="center" style="background-color: #ffffff; border: 1px solid"> 00125 <tr> 00126 <td width="60%" height="50" align="center"> 00127 <img src="$this->live_site/images/logo.png" alt="Aliro Logo" align="middle" /> 00128 </td> 00129 </tr> 00130 <tr> 00131 <td align="center"> 00132 <h1> 00133 $this->sitename 00134 </h1> 00135 </td> 00136 </tr> 00137 $this->error_text 00138 </table> 00139 00140 </body> 00141 </html> 00142 00143 OFFLINE_HTML; 00144 00145 echo $offline; 00146 }
aliroOffline::$live_site = '' [private] |
Definition at line 43 of file aliroOffline.php.
aliroOffline::$sitename = '' [private] |
Definition at line 44 of file aliroOffline.php.
aliroOffline::$offline = 0 [private] |
aliroOffline::$offline_message = '' [private] |
Definition at line 46 of file aliroOffline.php.
aliroOffline::$error_message = '' [private] |
Definition at line 47 of file aliroOffline.php.
aliroOffline::$install_warn = '' [private] |
Definition at line 48 of file aliroOffline.php.
aliroOffline::$iso = '' [private] |
Definition at line 49 of file aliroOffline.php.
aliroOffline::$error_text = '' [private] |
Definition at line 51 of file aliroOffline.php.
1.5.5