<?php define("__ADMIN__", true); require_once "../../public_html/config.php"; try { $Archive = new Archive(); $Archive->setPostId($_GET['postid']); if (!$_COOKIE['login']) { $Archive->setPublic(1); } $links = new Links(); $links->setFileName("/links.php"); $links->setPage($vars['page'], "page"); $links->setCatId($vars['cat']); $links->setId($vars['id']); $linksCat = new LinkCat(); $linksCat->setFileName("/links.php"); $linksCat->setPage($vars['page'], "page"); $linksCat->setId($vars['cat']); $Archive->BuildData(); $links->BuildData(); $linksCat->BuildData(); if ($vars['id']) { header("location: {$links->getRecords()}"); } else { if ($vars['cat']) { $title = "Links : ( {$linksCat->getTitle()} ) Page : " . (1 + $links->getPage()) . " of " . $links->getnumOfRecords(); $loadFile = "links.tpl"; $records = $links->getRecords(); $pageList = $links->getCountDisplay(); } else {