<?php include 'global-header.php'; include 'global-menu.php'; require_once 'textdb.php'; $_REQUEST['sort_by'] = isset($_REQUEST['sort_by']) ? $_REQUEST['sort_by'] : null; $db = new ToplistsDB(); $toplists = $db->RetrieveAll($_REQUEST['sort_by']); ?> <script type="text/javascript" src="js/toplists.js"></script> <div class="centered-header"> Toplists: <span id="num-items"><?php echo count($toplists); ?> </span> Configured </div> <table align="center" width="90%" cellspacing="0" class="item-table"> <thead> <tr> <td class="ta-center" style="width: 25px;"> <input type="checkbox" class="check-all"/> </td> <td class="ta-center<?php if ($db->sorter == 'toplist_id') { echo ' sort-by'; } ?> " style="width: 55px;">
function build_all_toplists() { require_once 'textdb.php'; $db = new ToplistsDB(); $toplists = $db->RetrieveAll(); foreach ($toplists as $toplist) { build_toplist($toplist); } touch(FILE_TIME_TOPLISTS); }