All pastes #267973 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-12-05 06:43 UTC
rendered paste body
<?php
require("/home/altscr/public_html/forum/SSI.php"); 
if (($context['user']['is_admin']) || (in_array(10, $user_info['groups']))) {
if (isset($_GET['view']) {
  //I would like to have this show all of the rows where id = $_GET['view'] with current before the row with
  //archive == 0 and archive before the ones that have archive == 1
} else {
	echo 'admin stuff';
//I would like to have Archive and Current here, where archive has all the rows that have 1 set for archive,
//and current to have all rows that have 0 for archive
 }
 }
  else {
 	die('You do not have permission to access this page.');
 }
// http://altscripts.net/forum/index.php?action=modifykarma;sa=applaud;uid=14
?>