<?php if (!defined('WIKIXD')) { return; } $tools = new PipeMenu(); $tools->add(new PipeMenuLinkEntry('Recent changes', 'wikichanges')); if ($canedit) { $tools->add(new PipeMenuLinkEntry('Create page', 'wikiedit', '', 'createnew')); } $tools->add(new PipeMenuLinkEntry('Random page', 'wikirandom')); echo ' <table class="outline margin"> <tr class="header1"><th>Wiki tools</th></tr> <tr class="cell1 center"><td>' . $tools->build() . '</td></tr> </table>';
die(header("Location: " . actionLink("ranks", $rankset))); } $rankset = $_GET['id']; if (!isset($ranksetData[$rankset])) { Kill(__("Rankset not found.")); } if (count($ranksetNames) > 1) { $ranksets = new PipeMenu(); foreach ($ranksetNames as $name => $title) { if ($name == $rankset) { $ranksets->add(new PipeMenuTextEntry($title)); } else { $ranksets->add(new PipeMenuLinkEntry($title, "ranks", $name)); } } echo "\n\t\t<table class=\"outline margin width25\">\n\t\t\t<tr class=\"header0\">\n\t\t\t\t<th colspan=\"2\">\n\t\t\t\t\t" . __("Ranksets") . "\n\t\t\t\t</th>\n\t\t\t</tr>\n\t\t\t<tr class=\"cell0\">\n\t\t\t\t<td>\n\t\t\t\t\t" . $ranksets->build() . "\n\t\t\t\t</td>\n\t\t</table>"; } /* //Handle climbing the ranks again //$users[1]['posts'] = 6000; $climbingAgain = array(); for($i = 0; $i < count($users); $i++) { if($users[$i]['posts'] > 5100) { //print $users[$i]['name']." has ".$users[$i]['posts']." posts. "; $climbingAgain[] = UserLink($users[$i]); $users[$i]['posts'] %= 5000; if($users[$i]['posts'] < 10) $users[$i]['posts'] = 10; //print "Reset to ".$users[$i]['posts']."...";