- Timestamp:
- Mar 29, 2009, 2:10:27 PM (16 years ago)
- Location:
- trunk/inc
- Files:
-
- 2 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc
- Property svn:ignore
-
old new 1 db.php1 config.php
-
- Property svn:ignore
-
trunk/inc/html.php
r550 r551 46 46 public function Start() 47 47 { 48 $code = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"> 49 <html> 50 <head> 51 <meta http-equiv=\"Content-Type\" content=\"text/html; charset=".$this->CfgChck("charset")."\" /> 52 <meta http-equiv=\"Content-Language\" content=\"cs\" /> 53 <meta http-equiv=\"Cache-Control\" content=\"no-cache\" /> 54 <meta http-equiv='Pragma' content='no-cache' /> 55 <meta http-equiv='Expires' content='-1' /> 56 <meta name=\"author\" content=\"".$this->CfgChck("author")."\" /> 57 <meta name=\"copyright\" content=\"".$this->CfgChck("copyright")."\" /> 58 <meta name='robots' content='index,follow' /> 59 <meta name='googlebot' content='index,follow,snippet,archive' /> 60 <link href=\"".$this->CfgChck("favicon").".ico\" rel=\"shortcut icon\" /> 61 <link href=\"inc/teamspeakdisplay/teamspeakdisplay.css\" rel=\"stylesheet\" type=\"text/css\"> 62 <title>".$this->CfgChck("title")."</title> 63 <meta name=\"description\" content=\"".$this->CfgChck("description")."\" /> 64 <meta name=\"keywords\" content=\"".$this->CfgChck("keywords")."\" /> 65 <link rel=\"stylesheet\" type=\"text/css\" href=\"styles/style.css\" /> 66 <script type=\"text/javascript\" src=\"styles/global.js\"></script> 67 <!--[if IE]><link rel=\"stylesheet\" type=\"text/css\" href=\"styles/ie.css\" /><![endif]--> 68 </head> 69 <body>"; 48 global $Config; 49 50 $code = '<?xml version="1.0" encoding="utf-8"?>'. 51 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'. 52 '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">'. 53 '<head>'. 54 '<meta http-equiv="content-type" content="application/xhtml+xml; charset='.$Config['Web']['Charset'].'" />'. 55 '<meta http-equiv="content-Language" content="cs" />'. 56 '<meta name="robots" content="index,follow" />'. 57 '<meta name="googlebot" content="index,follow,snippet,archive" />'. 58 '<link href="imgs/fav.ico" rel="shortcut icon" />'. 59 '<title>'.$Config['Web']['Title'].'</title>'. 60 '<meta name="description" content="'.$Config['Web']['Description'].'" />'. 61 '<meta name="keywords" content="'.$Config['Web']['Keywords'].'" />'. 62 '<link rel="stylesheet" type="text/css" href="styles/style.css" />'. 63 '<link href="inc/teamspeakdisplay/teamspeakdisplay.css" rel="stylesheet" type="text/css" />'. 64 '<link rel="alternate" title="Články" href="rss.php?category=articles" type="application/rss+xml" />'. 65 '<script type="text/javascript" src="styles/global.js"></script>'. 66 '<!--[if IE]><link rel="stylesheet" type="text/css" href="styles/ie.css" /><![endif]-->'. 67 '</head>'. 68 '<body>'; 70 69 $this->TimerStart(); 71 70 echo($code); … … 198 197 global $db_webu; 199 198 199 echo('<table class="NewsCategoryTable">'. 200 '<tr>'. 201 '<td><a href="?page=servernews">Server novinky</a></td>'. 202 '<td><a href="?page=gmnews">GM novinky</a></td>'. 203 '<td><a href="?page=gamenews">In-game novinky</a></td>'. 204 '<td><a href="?page=articles">Články</a></td>'. 205 '<td><a href="?page=main">Vše</a></td>'. 206 '</tr></table><br />'); 207 $this->QuickNew(); 208 200 209 if($kategorie == "all") 201 210 { … … 219 228 while($row = mysql_fetch_array($result)) 220 229 { 230 $row['text'] = str_replace('<br>', '<br />', $row['text']); 221 231 switch ($row["category"]) 222 232 { … … 242 252 $time = mktime(0, 0, 0, $date[1], $date[2], $date[0]); 243 253 $human_date = date ("d.m.Y", $time); 244 echo("<table align=\"center\" border=\"1\" width=\"500\"> 245 <tr> 246 <td><b>".$row["title"]."</b></td> 247 <td width=\"100\">".$human_date."</td> 248 </tr> 249 <tr> 250 <td colspan=\"2\"> 251 ".$row["text"]." 252 </td> 253 </tr> 254 <tr> 255 <td>Sekce : <a href=\"?page=".$link."\">".$cat."</a></td> 256 <td>".$row["autor"]."</td> 257 </tr> 258 </table> 259 <br />"); 260 } 261 echo("<p align=center>"); 254 echo('<table class="NewsQuickInfoTable">'. 255 '<tr>'. 256 '<td><strong>'.$row["title"].'</strong></td>'. 257 '<td style="width: 100px">'.$human_date.'</td>'. 258 '</tr>'. 259 '<tr>'. 260 '<td colspan="2">'.$row["text"].'</td>'. 261 '</tr>'. 262 '<tr>'. 263 '<td>Sekce : <a href="?page='.$link.'">'.$cat.'</a></td>'. 264 '<td>'.$row['autor'].'</td>'. 265 '</tr>'. 266 '</table>'. 267 '<br />'); 268 } 269 echo('<p style="text-align: center">'); 262 270 if($offset < $pocet) 263 271 { … … 266 274 if($offset > $limit) 267 275 { 268 echo(" <a href='$_SERVER[PHP_SELF]?offset=" . ($offset - $limit) . "'>starší --></a>\n"); 269 } 270 } else 271 { 272 echo("<center><h3>Žádný článek v této kategorii !</h3></center>"); 276 echo(' <a href="'.$_SERVER['PHP_SELF'].'?offset='.($offset - $limit).'">starší --></a>'); 277 } 278 echo('</p>'); 279 } else 280 { 281 echo('<h3 style="text-align: center">Žádný článek v této kategorii !</h3>'); 273 282 } 274 283 } … … 282 291 } else 283 292 { 284 echo('<table align="center" border="1" width="500">'.293 echo('<table class="NewsQuickInfoTable">'. 285 294 '<tr>'. 286 '<td>< b>Rychlý přehled</b></td>'.287 '<td width="100">'.date('d.m.Y', time()).'</td>'.295 '<td><strong>Rychlý přehled</strong></td>'. 296 '<td style="width: 100px;">'.date('d.m.Y', time()).'</td>'. 288 297 '</tr>'. 289 298 '<tr>'. 290 299 '<td colspan="2">'. 291 '< b>Server : </b>'.$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>'.300 '<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>'. 292 301 '</td></tr></table><br />'); 293 302 } -
trunk/inc/server.php
r550 r551 71 71 if ($status) 72 72 { 73 return "<img src=\"imgs/inc/on.gif\"> <font color=\"#234303\" size=\"4\">Online</font>";73 return('<img src="imgs/inc/on.gif" alt="online" /> <span style="text-color: #234303; text-size: 4;">Online</span>'); 74 74 } 75 75 else 76 76 { 77 return "<img src=\"imgs/inc/off.gif\"> <font color=\"#990000\" size=\"4\">Offline</font>";77 return('<img src="imgs/inc/off.gif" alt="offline" /> <span style="text-color: #990000; text-size: 4;">Offline</span>'); 78 78 } 79 79 }
Note:
See TracChangeset
for help on using the changeset viewer.