Changeset 576 for trunk/inc/html.php
- Timestamp:
- Apr 29, 2009, 8:02:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/html.php
r555 r576 6 6 private $db; 7 7 8 public function __construct($values, $db)8 public function __construct($values, $db) 9 9 { 10 10 $this->db = &$db; … … 104 104 $anti_ref = array 105 105 ( 106 "server"=> 5,107 "events"=> 2,108 "aukce"=> 2,109 "gmlog"=> 300,110 "online"=> 2,106 'server' => 5, 107 'events' => 2, 108 'aukce' => 2, 109 'gmlog' => 300, 110 'online' => 2, 111 111 ); 112 $site_show = "./".$dir_pages."/".$get.".php";112 $site_show = $dir_pages.'/'.$get.'.php'; 113 113 if(isset($anti_ref[$get])) 114 114 { … … 120 120 { 121 121 $this->RefreshMsg($this -> Antirefresh($anti_ref[$get], $get), $get); 122 return( "./".$dir_pages."/free.php");123 } 124 } else 125 { 126 if($site_show != ""AND is_readable($site_show)) return($site_show);127 else return( "./".$dir_pages."/".$def.".php");122 return($dir_pages.'/free.php'); 123 } 124 } else 125 { 126 if($site_show != '' AND is_readable($site_show)) return($site_show); 127 else return($dir_pages.'/'.$def.'.php'); 128 128 } 129 129 } … … 132 132 { 133 133 $hash = md5($page); 134 if(isset($_SESSION[ "rf".$hash."rsh"]))135 { 136 $refresh = $_SESSION[ "rf".$hash."rsh"] + $value;134 if(isset($_SESSION['rf'.$hash.'rsh'])) 135 { 136 $refresh = $_SESSION['rf'.$hash.'rsh'] + $value; 137 137 if(time() < $refresh) 138 138 { … … 141 141 } 142 142 } 143 $_SESSION[ "rf".$hash."rsh"] = time();143 $_SESSION['rf'.$hash.'rsh'] = time(); 144 144 } 145 145 … … 150 150 if($dif > 60) 151 151 { 152 $dif = round($dif / 60). " min";152 $dif = round($dif / 60).' min'; 153 153 $refresh = 30; 154 154 } else 155 155 { 156 $dif = $dif. " s";156 $dif = $dif.' s'; 157 157 $refresh = 2; 158 158 } 159 echo( "<center><h3>Refresh omezení</h3></center>159 echo('<center><h3>Refresh omezení</h3></center> 160 160 Stránka nepovoluje tak krátký čas pro refresh (znovunačtení).<br /> 161 Další načtení stránky <b>?page= ".$get."</b> bude možné za <b>".$dif."</b>.<br />161 Další načtení stránky <b>?page='.$get.'</b> bude možné za <b>'.$dif.'</b>.<br /> 162 162 Pokud tento čas vyčkáte budete přesměrován automaticky ! 163 <meta http-equiv= \"refresh\" content=\"".$refresh.";url=\">");163 <meta http-equiv="refresh" content="'.$refresh.';url=">'); 164 164 } 165 165 } … … 167 167 public function PrgStart() 168 168 { 169 echo( "<table align=\"center\" width=\"346\" height=\"417\" border=\"0\" style=\"background-image: url(imgs/web/prg.gif);\">170 <tr height= \"80\">171 <td width= \"20\"></td>172 <td align= \"center\">169 echo('<table align="center" width="346" height="417" border="0" style="background-image: url(imgs/web/prg.gif);"> 170 <tr height="80"> 171 <td width="20"></td> 172 <td align="center"> 173 173 <h3>Správa účtu</h3> 174 174 </td> 175 <td width= \"20\"></td>175 <td width="20"></td> 176 176 </tr> 177 177 <tr> 178 <td width= \"20\"></td>179 <td align= \"center\" valign=\"top\">");178 <td width="20"></td> 179 <td align="center" valign="top">'); 180 180 } 181 181 182 182 public function PrgStop() 183 183 { 184 echo( "</td>185 <td width= \"20\"></td>184 echo('</td> 185 <td width="20"></td> 186 186 </tr> 187 <tr height= \"30\">188 <td width= \"20\"></td>187 <tr height="30"> 188 <td width="20"></td> 189 189 <td></td> 190 <td width= \"20\"></td>190 <td width="20"></td> 191 191 </tr> 192 </table> ");192 </table>'); 193 193 } 194 194 195 195 public function ShowNews($kategorie) 196 196 { 197 include( "inc/db.php");197 include('inc/db.php'); 198 198 global $db_webu; 199 199 … … 286 286 function QuickNew() 287 287 { 288 global $server ;289 290 if(isset($_COOKIE[ "hof-quick"]) AND $_COOKIE["hof-quick"] == "no")288 global $server, $Config; 289 290 if(isset($_COOKIE['hof-quick']) AND $_COOKIE['hof-quick'] == 'no') 291 291 { 292 292 } else … … 299 299 '<tr>'. 300 300 '<td colspan="2">'. 301 '<strong>Server : </strong>'.$server->ServerImg($server->ServerOnline( 'wow.zdechov.net', 8085)).'<b> (<a href="?page=online">'.$server->MangosOnline().' hráčů</a>) | Patch 3.0.9 | <a href="http://wow.zdechov.net/pages/realmlist.wtf">Realmlist</a> | Více info <a href="?page=server">zde</a></b>'.301 '<strong>Server : </strong>'.$server->ServerImg($server->ServerOnline($Config['Web']['WoWServerAddr'], 8085)).'<b> (<a href="?page=online">'.$server->MangosOnline().' hráčů</a>) | Patch '.$Config['Mangos']['ClientVersion'].' | <a href="'.$Config['Web']['BaseURL'].'/pages/realmlist.wtf">Realmlist</a> | Více info <a href="?page=server">zde</a></b>'. 302 302 '</td></tr></table><br />'); 303 303 }
Note:
See TracChangeset
for help on using the changeset viewer.