Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/html.php
r693 r695 151 151 152 152 $db->select_db($Config['Database']['Database']); 153 154 $Output = '<table class="NewsCategoryTable">'. 153 $Output = ''; 154 155 /*$Output = '<table class="NewsCategoryTable">'. 155 156 '<tr>'; 156 157 $DbResult = $db->query('SELECT * FROM ArticleCategory'); … … 161 162 $Output .= '<td><a href="?">Vše</a></td>'. 162 163 '</tr></table><br />'; 164 */ 163 165 $this->QuickNew(); 164 166 -
trunk/inc/realm.php
r693 r695 145 145 echo('</table>'); 146 146 } 147 148 function WoWEmuStat() 149 { 150 global $Config; 151 152 $Result = 153 '<?xml version="1.0" encoding="UTF-8"'."?>\r\n". 154 " <stats>\r\n". 155 " <server>\r\n". 156 " <version>0.16</version>\r\n". 157 " <owner>Admin</owner>\r\n". 158 " <servername>Server</servername>\r\n". 159 " <uptime>0 weeks 1 days 0 hours 0 mins</uptime>\r\n". 160 " </server>\r\n". 161 " <serverload>\r\n". 162 " <network>\r\n". 163 " <configsleep>200</configsleep>\r\n". 164 " <loops>0</loops>\r\n". 165 " <totaltime>0</totaltime>\r\n". 166 " <load>0.00%</load>\r\n". 167 " </network>\r\n". 168 " <world>\r\n". 169 " <configsleep>600</configsleep>\r\n". 170 " <loops>95222</loops>\r\n". 171 " <totaltime>7594525</totaltime>\r\n". 172 " <load>1.50%</load>\r\n". 173 " </world>\r\n". 174 " </serverload>\r\n". 175 " <players>\r\n"; 176 if($this->CharactersDatabase->connect_error) return(0); 177 else { 178 $DbResult = $this->CharactersDatabase->query('SELECT *, CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, " ", '.$Config['Mangos']['CharacterDataOffset']['Level'].' + 1), " ", -1) AS UNSIGNED) AS level FROM `characters` WHERE `online` = 1'); 179 while($DbRow = $DbResult->fetch_assoc()) 180 { 181 $Result .= " <player>\r\n". 182 " <name>".$DbRow['name']."</name>\r\n". 183 " <race>".$DbRow['race']."</race>\r\n". 184 " <class>".$DbRow['class']."</class>\r\n". 185 " <level>".$DbRow['level']."</level>\r\n". 186 " <map>".$DbRow['map']."</map>\r\n". 187 " <zone>xxx</zone>\r\n". 188 " <ping>10</ping>\r\n". 189 " <plevel>0</plevel>\r\n". 190 " <ip>178.12.14.2</ip>\r\n". 191 " </player>\r\n"; 192 } 193 } 194 $Result .= " </players>\r\n". 195 " </stats>\r\n"; 196 return($Result); 197 } 147 198 } 148 199 -
trunk/inc/system.php
r690 r695 28 28 } 29 29 30 function SQLURLName($Name) 31 { 32 return('LOWER(REPLACE('.$Name.', " ", "-"))'); 33 } 34 30 35 function SeoUrl($Address) 31 36 {
Note:
See TracChangeset
for help on using the changeset viewer.