- Timestamp:
- Apr 13, 2010, 5:22:25 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/action.php
r457 r460 273 273 else if($Action == 'dbkit') DatabaseKit(); 274 274 else if($Action == 'ShoutBoxView') ShoutBoxView(); 275 else echo('Nebyla zadána žá ndá akce');275 else echo('Nebyla zadána žádná akce'); 276 276 277 277 ShowFooter(); -
trunk/banners.php
r455 r460 5 5 ShowPage(); 6 6 7 $Banner = '<a href="'.$System->Link('/').'"><img src="'.$System->Link('/banners/ baner_468_60.jpg').'" '.8 'alt=" banner_468" title="Otevřený projekt překládání celé hry World of Warcraft" '.7 $Banner = '<a href="'.$System->Link('/').'"><img src="'.$System->Link('/banners/wowpreklad_big.jpg').'" '. 8 'alt="wowpreklad" title="Otevřený projekt překládání celé hry World of Warcraft" '. 9 9 'class="banner" height="60" width="468" /></a>'; 10 10 11 $BannerSmall = '<a href="'.$System->Link('/').'"><img src="'.$System->Link('/banners/ baner_88_31.jpg').'" '.12 'alt=" banner_88" title="Otevřený projekt překládání celé hry World of Warcraft" '.11 $BannerSmall = '<a href="'.$System->Link('/').'"><img src="'.$System->Link('/banners/wowpreklad_small.jpg').'" '. 12 'alt="wowpreklad" title="Otevřený projekt překládání celé hry World of Warcraft" '. 13 13 'class="banner" height="31" width="88" /></a>'; 14 14 … … 18 18 echo($BannerSmall.' <textarea rows="2" cols="30">'.htmlspecialchars($BannerSmall).'</textarea><br />'); 19 19 20 $DbResult = $System->Database->query('SELECT * FROM ` Banner` WHERE `Show`=1 AND `DateLast` > (NOW() - INTERVAL 3 MONTH)');20 $DbResult = $System->Database->query('SELECT * FROM `Referal` WHERE `Show`=1 AND `DateLast` > (NOW() - INTERVAL 3 MONTH)'); 21 21 22 22 echo('<br/><strong>Servery odkazující na nás:</strong> <br /> 23 <div style="font-size: 10px;">Seznam je automaticky aktualizován a zobrazeny jsou servery s aktivní bannerem mladším než tři měsíce.</div><br />');23 <div style="font-size: 10px;">Seznam je automaticky aktualizován a zobrazeny jsou servery, ze kterých přišli uživatelé během posledních třech měsíců.</div><br />'); 24 24 while($Line = $DbResult->fetch_assoc()) 25 25 { -
trunk/export/export.php
r456 r460 332 332 while(!$File->EOF()) 333 333 { 334 $Line = $File->Read String();334 $Line = $File->ReadLine(); 335 335 if(strpos($Line, '=') !== false) 336 336 { … … 357 357 if($Value['Comment'] != '') $NewLine .= ' -- '.$Value['Comment']; 358 358 $NewLine .= "\n"; 359 $File2->Write String($NewLine);360 } else $File2->Write String($Line."");359 $File2->WriteLine($NewLine); 360 } else $File2->WriteLine($Line); 361 361 } 362 362 echo('Hotovo <br/>'); -
trunk/import/import.php
r456 r460 105 105 while(!$File->EOF()) 106 106 { 107 $Line = $File->Read String();107 $Line = $File->ReadLine(); 108 108 if(strpos($Line, '=') !== false) 109 109 { … … 269 269 while((!$File->EOF())) 270 270 { 271 $Line = $File->Read String();271 $Line = $File->ReadLine(); 272 272 // Struktura 273 273 if(strpos($Line, 'CREATE TABLE `'.$this->Group['MangosTable'].'`') !== false) -
trunk/includes/FileStream.php
r447 r460 74 74 } 75 75 76 public function ReadString() 76 public function ReadLine() 77 { 78 return(fgets($this->Handle)); 79 } 80 81 public function ReadTextLine() 77 82 { 78 83 return(fgets($this->Handle)); … … 111 116 public function WriteString($Value) 112 117 { 113 fwrite($this->Handle, $Value."\0"); 118 fwrite($this->Handle, $Value); 119 } 120 121 public function WriteLine($Value) 122 { 123 fputs($this->Handle, $Value); 114 124 } 115 125 -
trunk/includes/MemoryStream.php
r447 r460 58 58 } 59 59 60 public function Read String()60 public function ReadLine($EndSymbol = "\r") 61 61 { 62 62 $Length = 0; … … 65 65 { 66 66 $Char = $this->ReadChar(); 67 if($Char == "\0") break;67 if($Char == $EndSymbol) break; 68 68 } 69 69 $Result = substr($this->Data, $StartPosition, $this->Position - $StartPosition); … … 104 104 } 105 105 106 public function Write String($Value)106 public function WriteLine($Value) 107 107 { 108 $this->WriteBlock($Value."\ 0", strlen($Value) + 1);108 $this->WriteBlock($Value."\r\n", strlen($Value) + 2); 109 109 } 110 110 -
trunk/includes/global.php
r455 r460 29 29 $TranslationTree = GetTranslationTree(); 30 30 $LanguageList = GetLanguageList(); 31 32 LogReferal(); 31 33 32 34 function GetMicrotime() -
trunk/includes/global_function.php
r455 r460 536 536 } 537 537 538 function LogReferal() 539 { 540 global $System; 541 542 if(array_key_exists('HTTP_REFERER', $_SERVER)) $Referer = addslashes($_SERVER['HTTP_REFERER']); 543 else $Referer = ''; 544 $Referer = substr($Referer, strpos($Referer, '/') + 2); 545 $HostName = substr($Referer, 0, strpos($Referer, '/')); 546 if(substr($HostName, -1) == '.') $HostName = substr($HostName, 0, -1); 547 //if($HostName != gethostbyname($HostName)) 548 { 549 $Referer = 'http://'.$HostName.'/'; 550 $System->Database->query('REPLACE INTO `Referal` (`Web`, `DateFirst`, `DateLast`, `LastURL`) VALUES ("'.$Referer.'", NOW(), NOW( ), "'.addslashes($_SERVER['HTTP_REFERER']).'")'); 551 } 552 } 553 538 554 ?>
Note:
See TracChangeset
for help on using the changeset viewer.