Changeset 406
- Timestamp:
- Feb 6, 2009, 7:39:30 AM (16 years ago)
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
beta/inc
-
Property svn:ignore
set to
db.php
-
Property svn:ignore
set to
-
css/style.css
r333 r406 104 104 padding-top: 1px; 105 105 text-align: center; 106 font-size: 1 4px;106 font-size: 12px; 107 107 color: white; 108 108 } -
global.php
r404 r406 30 30 //array('Death%20Dealers%20Profese.php', 'Profese', 'profese'), 31 31 ); 32 33 $UnitNames = array('B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB'); 34 35 function HumanSize($Value) 36 { 37 global $UnitNames; 38 39 $UnitIndex = 0; 40 while($Value > 1024) 41 { 42 $Value = round($Value / 1024, 3); 43 $UnitIndex++; 44 } 45 return($Value.' '.$UnitNames[$UnitIndex]); 46 } 32 47 33 48 function HumanDate($DateTime) … … 236 251 // --> 237 252 </SCRIPT> 238 | Provozováno na <a href="http://game.zdechov.net/">game.zdechov.net</a> | 239 240 253 | Provozováno na <a href="http://game.zdechov.net/">game.zdechov.net</a> |'); 254 // Použitá paměť: '.HumanSize(memory_get_peak_usage(FALSE)).' | 255 echo(' </DIV> 241 256 </td> 242 257 </tr> … … 272 287 $Result .= '<a href="'.$URL.$i.'">'.($i + 1).'</a> '; 273 288 if($i == $Page) $Result .= '</strong>'; 274 } 289 } 275 290 if($PagesMax < ($Count - 1)) $Result .= ' .. '; 276 291 if($Page < ($Count - 1)) -
test/buttons/button.php
r391 r406 26 26 $TextPositionY = imagesy($Image) / 2 + ($BoundBox[1] - $BoundBox[7]) / 2 - 2; 27 27 $SizeX = array(); 28 for($I =0;$I<strlen($Text);$I++)28 for($I = 0; $I < strlen($Text);$I++) 29 29 { 30 30 $BoundBox = imagettfbbox($FontSizeShadow, 0, $FontFile, $Text{$I}); … … 38 38 $BoundBox = imagettfbbox($FontSizeShadow, 0, $FontFile, $Text{$I}); 39 39 $TextPositionX = $PositionX - ($BoundBox[2] - $BoundBox[0]) / 2; 40 ImageTTFText($Image, $FontSizeShadow, 0, $TextPositionX, $ShadowTextPositionY, $black, $FontFile, to_utf8($Text{$I}));40 ImageTTFText($Image, $FontSizeShadow, 0, $TextPositionX, $ShadowTextPositionY, $black, $FontFile, $Text{$I}); 41 41 $BoundBox = imagettfbbox($FontSize, 0, $FontFile, $Text{$I}); 42 42 $TextPositionX = $PositionX - ($BoundBox[2] - $BoundBox[0]) / 2; 43 ImageTTFText($Image, $FontSize, 0, $TextPositionX, $TextPositionY, $grey, $FontFile, to_utf8($Text{$I}));43 ImageTTFText($Image, $FontSize, 0, $TextPositionX, $TextPositionY, $grey, $FontFile, $Text{$I}); 44 44 $PositionX += $SizeX[$I] / 2; 45 45 }
Note:
See TracChangeset
for help on using the changeset viewer.