Changeset 138 for trunk/img_level.php
- Timestamp:
- Mar 2, 2009, 8:36:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/img_level.php
r137 r138 55 55 ImageTTFText($Image, 8, 0, 80, 12, $Color3, $FontFile, $xp.'/'.$xp_max.' xp '.$user); 56 56 57 if (file_exists('tmp/teams/') == false) mkdir ('tmp/teams/'); 57 58 if (file_exists('tmp/'.$user.'/') == false) mkdir ('tmp/'.$user.'/'); 58 59 ImagePNG($Image,'tmp/'.$user.'/level.png'); … … 110 111 else $ID = $Database->SQLCommand('SELECT ID,name,(SELECT avg(XP) FROM user WHERE team = team.ID) as average FROM team WHERE ID IN (SELECT Team FROM user WHERE NeedUpdate = 1)'); 111 112 while ($LineTeam = mysql_fetch_array($ID)) { 112 CreateImg( $LineTeam['name'],$LineTeam['average']); //vytváření obrázku113 CreateImg('teams/'.$LineTeam['name'],substr($LineTeam['average'], 0, strpos($LineTeam['average'],'.'))); //vytváření obrázku 113 114 if ($nothide) echo ('<img src="tmp/'.$LineTeam['name'].'/level.png" /><br />'); 114 115 }
Note:
See TracChangeset
for help on using the changeset viewer.