<?php // view_all.php View all Articles //Set Authentication for the Admin Area $adfl = TRUE; $acq = 'a'; $title = 'View All Articles'; include './functions.php'; include "./config/config.php"; require_once './config/auth.php'; include "./classes/mysql.class.php"; if ($_REQUEST['type']) { // this uses the delete function. $type = $_REQUEST['type']; $id = $_REQUEST['id']; $pagetitle = postprocess($type, $id); } head_page($title); menu_options($title, $vnum, $viewop, $pid, $keys, $adfl); contentinit($title); $first = TRUE; $query = "SELECT FileID, Title, AuthorID, Approved, DATE_FORMAT(Submitdate, '%e %M, %Y') AS date FROM articles WHERE ParentID='0' AND Approved!='Q' ORDER by FileID"; $result = mysql_query($query); // Display all the URLs while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { // If this is the first record, create the table header. $approved = $row['Approved']; $fileid = $row['FileID']; $title = $row['Title']; $authorid = $row['AuthorID']; $date = $row['date'];
<?php require_once "lib/YATT/YATT.class.php"; require_once "message.inc"; if (isset($forum['option']['LoginToRead']) and $forum['option']['LoginToRead']) { $user->req(); if ($user->status != 'Active') { echo "Your account isn't validated\n"; exit; } } $raw = isset($_REQUEST['raw']); $msg = fetch_message($user, $mid, 'message,url,urltext,video,tid'); if ($raw) { header("Content-type: text/plain"); echo $msg['message']; exit; } mark_thread_read($forum['fid'], $msg, $user); $m = postprocess($msg); $tpl = new YATT($template_dir, "plain-message.yatt"); $tpl->set("message", $m); $tpl->parse("page"); print $tpl->output();