Changeset 495
- Timestamp:
- Jan 27, 2013, 7:42:05 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/config.sample.php
r477 r495 1 1 <?php 2 3 $IsDeveloper = in_array($_SERVER['REMOTE_ADDR'], array('127.0.0.1')); 2 4 3 5 $Config = array( … … 21 23 'Authors' => 'autor', 22 24 'ShowSQLQuery' => false, 23 'ShowSQLError' => false,24 'ShowPHPError' => false,25 'ShowRuntimeInfo' => false,25 'ShowSQLError' => $IsDeveloper, 26 'ShowPHPError' => $IsDeveloper, 27 'ShowRuntimeInfo' => $IsDeveloper, 26 28 'ItemsPerPage' => 40, 27 29 'TempFolder' => '../tmp/', -
trunk/includes/global.php
r494 r495 129 129 ( 130 130 $System->Link('/') => array(LICENCE_ANONYMOUS, 'Hlavní stránka', 'Domů'), 131 //'http://www.heroesoffantasy.cz/forum/viewforum.php?f=22' => array(LICENCE_ANONYMOUS, 'Diskuze na téma překládání', 'Fórum projektu'),132 $System->Link('/phpBB3/') => array(LICENCE_ANONYMOUS, 'Forum ohledně překládání', 'Forum'),133 131 $System->Link('/dictionary.php') => array(LICENCE_ANONYMOUS, 'Slovník WoW výrazů', 'Slovníček'), 134 132 $System->Link('/statistic.php') => array(LICENCE_ANONYMOUS, 'Stav dokončení překládů', 'Stav dokončení'), … … 266 264 echo('<br />'); 267 265 ShowSearchBox(); 268 echo('<br /><a href="http://wow.herniweb.cz/" title="World of Warcraft Czech and Slovak Fansite" target="_blank"><img src="http://wow.herniweb.cz/pic/design/ikonka.gif" style="height:31px; width:88px; border:0px;" alt="World of Warcraft Czech and Slovak Fansite"></a>'. 269 '</td><td id="border-left"></td><td class="content">'); 266 echo('</td><td id="border-left"></td><td class="content">'); 270 267 $PageFooterRequested = true; 271 268 if(isset($Message)) ShowMessage($Message, $MessageType); … … 300 297 echo('</td>'. 301 298 '</tr><tr>'. 302 '<td colspan="4" class="page-bottom">Autoři: '.$System->Config['Web']['Authors'].' <a href="http:// wowpreklad.zdechov.net/trac/wowpreklad/browser/trunk">Zdrojové soubory</a> '.303 '<a href="http:// wowpreklad.zdechov.net/trac/wowpreklad/log/trunk?verbose=on">Novinky</a> '.299 '<td colspan="4" class="page-bottom">Autoři: '.$System->Config['Web']['Authors'].' <a href="http://svn.zdechov.net/trac/wowpreklad/browser/trunk">Zdrojové soubory</a> '. 300 '<a href="http://svn.zdechov.net/trac/wowpreklad/log/trunk?verbose=on">Novinky</a> '. 304 301 '<a href="http://counter.cnw.cz/"><img src="http://counter.cnw.cz/monika.cgi?wowpreklad&5&000000&FFFFFF&on" alt="CNW:Counter" /></a> 305 302 <script type="text/javascript"> -
trunk/includes/user.php
r454 r495 31 31 function Login($Name, $Password) 32 32 { 33 $DbResult = $this->System->Database->query('SELECT `ID` FROM `User` WHERE LOWER(`Name`) = LOWER("'.$Name.'") AND `Pass` = '.$this->CryptPasswordSQL('"'.$Password.'"', '`Salt`')); 33 $DbResult = $this->System->Database->query('SELECT `ID` FROM `User` WHERE '. 34 'LOWER(`Name`) = LOWER("'.$Name.'") AND `Pass` = '.$this->CryptPasswordSQL('"'.$Password.'"', '`Salt`')); 34 35 if($DbResult->num_rows > 0) 35 36 { … … 105 106 function CryptPasswordSQL($Password, $Salt) 106 107 { 107 return(' sha1(CONCAT(sha1('.$Password.'), '.$Salt.'))');108 return('SHA1(CONCAT(SHA1('.$Password.'), '.$Salt.'))'); 108 109 } 109 110 -
trunk/registrace.php
r466 r495 94 94 if($Pass == $Pass2) 95 95 { 96 $DbResult = $System->Database->query('SELECT * FROM `User` WHERE `Name` = "'.$UserName.'"');96 $DbResult = $System->Database->query('SELECT * FROM `User` WHERE LOWER(`Name`) = LOWER("'.$UserName.'")'); 97 97 $Line = $DbResult->fetch_row(); 98 98 if(!$Line) 99 99 { 100 100 $Salt = $User->GetPasswordSalt(); 101 $System->Database->query('INSERT INTO `User` (`Name` , `Pass` , `Salt`, `LastIP` , `LastLogin` , `Email` , `Language` , `Team` , `NeedUpdate`, `RegistrationTime` ) VALUES ("'.$UserName.'", '.$User->CryptPasswordSQL('"'.$Pass.'"', '"'.$Salt.'"').', "'.$Salt.'", "'.$_SERVER['REMOTE_ADDR'].'", NOW(), "'.$Email.'", '.$Language.', '.$Team.', 1, NOW())'); 101 $System->Database->query('INSERT INTO `User` (`Name` , `Pass` , `Salt`, `LastIP` , `LastLogin` , `Email` , `Language` , `Team` , `NeedUpdate`, `RegistrationTime` ) '. 102 'VALUES ("'.$UserName.'", '.$User->CryptPasswordSQL('"'.$Pass.'"', '"'.$Salt.'"').', "'.$Salt.'", "'.$_SERVER['REMOTE_ADDR'].'", NOW(), "'.$Email.'", '.$Language.', '.$Team.', 1, NOW())'); 102 103 ShowMessage('Registrace proběhla úspěšně.'); 103 104 echo('Přečtěte si pozorně <a href="'.$System->Link('/info.php').'">pokyny pro překladání</a> a můžete pak hned začít překládat.'); -
trunk/sql/updates/483.sql
r483 r495 1 ALTER TABLE `DbVersion` CHANGE `Require_476` `Require_483` INT( 255 ) NULL DEFAULT NULL; 2 UPDATE `DbVersion` SET `Version` = 'Rev. 483' WHERE `DbVersion`.`Id` =1; 3 1 4 ALTER TABLE `Referrer` ADD `Hits` INT NOT NULL ; 2 5 ALTER TABLE `Referrer` ADD `Parent` INT NOT NULL ; -
trunk/sql/updates/487.sql
r487 r495 1 ALTER TABLE `DbVersion` CHANGE `Require_483` `Require_487` INT( 255 ) NULL DEFAULT NULL; 2 UPDATE `DbVersion` SET `Version` = 'Rev. 487' WHERE `DbVersion`.`Id` =1; 3 1 4 ALTER TABLE `Referrer` ADD INDEX ( `DateLast` ); 2 5 ALTER TABLE `Referrer` ADD INDEX ( `Parent` ); -
trunk/sql/updates/488.sql
r488 r495 1 ALTER TABLE `DbVersion` CHANGE `Require_487` `Require_488` INT( 255 ) NULL DEFAULT NULL; 2 UPDATE `DbVersion` SET `Version` = 'Rev. 488' WHERE `DbVersion`.`Id` =1; 1 3 2 4 INSERT INTO `GroupItemDBC` (`Id`, `ClientVersion`, `GroupItem`, `ColumnIndex`) VALUES
Note:
See TracChangeset
for help on using the changeset viewer.