Changeset 111 for trunk/img_level.php
- Timestamp:
- Feb 19, 2009, 4:28:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/img_level.php
r106 r111 93 93 94 94 //hlavní kod 95 if ($nothide) 96 $ID = $Database->SQLCommand('SELECT * FROM user'); 97 else 98 $ID = $Database->SQLCommand('SELECT * FROM user WHERE DATE_SUB(NOW(), INTERVAL 2 DAY) < LastLogin'); 95 if ($nothide) $ID = $Database->SQLCommand('SELECT ID,user FROM user'); 96 else $ID = $Database->SQLCommand('SELECT ID,user FROM user WHERE NeedUpdate = 1'); 97 99 98 while ($LineUser = mysql_fetch_array($ID)) { 100 $xp = GetXPFromTranslation($LineUser['ID']); 101 $Database->SQLCommand('UPDATE user SET XP = '.$xp.' WHERE ID = '.$LineUser['ID']); 102 CreateImg($LineUser['user'],$xp); 103 if ($nothide) echo ('<img src="tmp/'.$LineUser['user'].'/level.png" /><br>');99 $xp = GetXPFromTranslation($LineUser['ID']); //načítání XP 100 $Database->SQLCommand('UPDATE user SET XP = '.$xp.' WHERE ID = '.$LineUser['ID']); //ukládání XP pro řazení 101 CreateImg($LineUser['user'],$xp); //vytváření obrázku 102 if ($nothide) echo ('<img src="tmp/'.$LineUser['user'].'/level.png" /><br>'); 104 103 } 104 $Database->SQLCommand('UPDATE user SET NeedUpdate = 0'); 105 105 106 106 if ($nothide) ShowFooter();
Note:
See TracChangeset
for help on using the changeset viewer.