/games/strategy">more...</a></dd> </dl> <dl> <dt>Other</dt> <?php shuffle($data['index_other']); for ($i = 0; $i < 5; ++$i) { $game = $data['index_other'][$i]; echo '<dd><a href="', $_sys['dispatcher'], '/game/', $game['slug'], '/', dec2any($game['id']), '#mainMenu" title="', htmlspecialchars($game['name']), '">', '<img src="', $game['thumbnail_url'], '" width="30" height="30" /> ', htmlspecialchars($game['name']), '</a></dd>'; } ?> <dd class="more"><a href="<?php echo $_sys['dispatcher']; ?> /games/others">more...</a></dd> </dl> <dl> <dt>Top Recommanded</dt> <?php shuffle($data['index_top']); for ($i = 0; $i < 5; ++$i) { $game = $data['index_top'][$i]; echo '<dd><a href="', $_sys['dispatcher'], '/game/', $game['slug'], '/', dec2any($game['id']), '#mainMenu" title="', htmlspecialchars($game['name']), '">', '<img src="', $game['thumbnail_url'], '" width="30" height="30" /> ', htmlspecialchars($game['name']), '</a></dd>'; } ?> </dl> </div>
public function student_password($student_code) { return dec2any(str2dec(substr(md5($student_code), -8))); }
<?php if (!defined('EZGP')) { die('Access denied.'); } $caches = array('newest', 'popular', 'popular', 'popular', 'popular', 'popular', 'popular', 'popular', 'index_top', 'index_top', 'index_top', 'index_top', 'index_top', 'index_top', 'index_puzzles', 'index_action', 'index_shooting', 'index_dressup', 'index_other', 'index_board', 'index_adventure', 'index_customize', 'index_sports', 'index_driving', 'index_casino', 'index_fighting', 'index_strategy', 'index_education', 'index_rhythm'); shuffle($caches); $file = $caches[0]; load_cache($file, 86400); $games = ${$file}; shuffle($games); $game = $games[0]; header('Location: ' . $_sys['dispatcher'] . '/game/' . $game['slug'] . '/' . dec2any($game['id']) . '#mainMenu');
function toId($number) { $decimal = hexdec($number); return dec2any($decimal); }