function redirect($notice = '', $location = NULL) { if (!empty($notice)) { $_SESSION['notice'] = $notice; } if (!is_null($location) || empty($_SERVER['HTTP_REFERER'])) { $location = rel2Abs($location); } else { $location = $_SERVER['HTTP_REFERER']; } header('Location: ' . $location); exit; }
$c++; $prevtime=$reply->Time; endforeach; if(isPowerUser()):?> <h2>UID Dump</h2> <? $uidt=new TablePrinter('tblUIDs'); $uidt->DefineColumns(array('UID','Names'),'Names'); foreach($this->topic->UIDs as $uid=>$names) { if($uid!='admin') $uid=sprintf('<a href="%1$sprofile/%2$s">%2$s</a>',THISURL,$uid); $uidt->Row(array($uid,implode(', ',$names))); } echo $uidt; ?> <?endif;?> <ul class="menu"> <li> <a href="<?php echo rel2Abs('/new_reply/' . $_GET['id']); ?> "> New reply </a> </li> </ul> </form>
$last_action_check['Topics'] = 'last_topic'; $last_action_check['Bumps'] = 'last_bump'; } else { $last_action_check['Topics'] = 'last_bump'; // Remove the "Bumps" link if bumps mode is default. array_splice($this->menu, 1, 1); } foreach($this->menu as $linked_text => $path):?> <? if($path != $_SERVER['REQUEST_URI']):?> <li> <a href="<?php echo rel2Abs($path); ?> "><?php echo $linked_text; echo $this->User->HasNewStuff($linked_text) ? '!' : ''; ?> </a> </li> <? endif;?> <?endforeach;?> </ul> <h2><?php echo $this->title; ?> </h2>
<div id="dasharea"> <div id="sidebar"> <?foreach($this->sidebar as $pname => $portlet):?> <div class="portlet pt_<?php echo str_replace(' ', '_', strtolower($pname)); ?> "> <h4><?php echo $pname; ?> </h4> <ul> <?foreach($portlet as $link):?> <li> <a href="<?php echo rel2Abs($link[0]); ?> " title="<?php echo $link[2]; ?> "><?php echo $link[1]; ?> </a> </li> <?endforeach;?> </ul> </div> <?endforeach;?> </div> <div id="dashbody">