Location: PHPKode > projects > PHP Enter > admin/admheader.php
<?php session_start();
  require_once 'admin/salt.php';
  require_once 'admin/securesession.class.php';
  $ss = new SecureSession();
  $ss->check_browser = true;
  $ss->check_ip_blocks = 2;
  $ss->secure_word = $salt;
  $ss->regenerate_id = true;
  if (!$ss->Check() || !isset($_SESSION['logged_in']) || !$_SESSION['logged_in'])
  {
    header('Location: admin/signin.php');
    die();
  }
  if (!$_SESSION['incsess'])
  {
    die();
  }
include ('./classes/adodb/adodb.inc.php');
include ('admin/config.php');
$dbdriver = "mysql";
$ADODB_CACHE_DIR = '../db/ADODB_cache';
$conn = &ADONewConnection($dbdriver);
$conn->Connect($server,$user,$password,$database);
##############################
#$conn->debug = true;
#$recordSet = &$conn->CacheExecute(3600, 'SELECT optionid, nameopt, valueopt FROM abcoption');
##############################
error_reporting(E_ERROR | E_WARNING | E_PARSE);
$recordSet = &$conn->Execute('SELECT optionid, nameopt, valueopt FROM abcoption');
if(!$recordSet)
	print $conn->ErrorMsg();
else
	while(!$recordSet->EOF) {
		$option[$recordSet->fields[0]] = $recordSet->fields[2];
		$recordSet->MoveNext();
}
$sitetitle = $option[1];
$metadesc = $option[2];
$keywords = $option[3];
$sitepath = $option[4];
$language = $option[5];
$caching = $option[6];
$themes = $option[7];
$sitemail = $option[8];
$sitedisabled = $option[9];
$rewritemod = $option[10];
$toplinks = $option[11];
$frontext = $option[12];
$customheader = $option[13];
$signuprole = $option[14];
$signupapp = $option[15];
$newson = $option[16];
$newstext = $option[17];
$siteabout = $option[18];
$siteprivacy = $option[19];
$siteterms = $option[20];
$messaging = $option[21];
$maxposting = $option[22];
$editortrue = $option[23];
$smilestrue = $option[24];
$smilespath = $option[25];
$maxtopic = $option[26];
$hottopic = $option[27];
$adsoffon = $option[28];
$senseup = $option[29];
$sensedown = $option[30];
$stopspam = $option[31];
$incitem = $option[32];
$slider = $option[35];
$efslide = $option[36];
$payoffon = $option[37];
$payvalue = $option[38];
$timeline = $option[39];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" type="text/css" href="admin/style.css" />
</head>
<body>
<table width="850px" background="admin/images/header.jpg" height="35px" cellSpacing=2 cellPadding=5 align="center" border="0">
 <tr>
  <td align="right" width="180px">
   <div id=stopnavy><strong>Control Panel</strong></div>
   </td>
   <td>
   </td>
   <td align="left" width="180px"><strong><font color=#FFFFFF><div id=topnavy><div id=stopnavy>PHP Enter</div></div></font></strong>
  </td>
 </tr>
</table>
<table cellSpacing=1 cellPadding=0 width="852px" align="center" border="0">
 <tr>
   <td width="180px" vAlign=top><div id="border">
<div id="headers"><img src="admin/images/home.png" width="16" height="16" border="0">&nbsp;&nbsp;Home</div>
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/index.php">Admin</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="index.php">Main</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;Version: 4.1.6.<br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;Licence: GNU GPL<br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/signout.php">Log Out</a><br />
<div id="headers"><img src="admin/images/configuration.png" width="16" height="16" border="0">&nbsp;&nbsp;Settings</div>
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/index.php">Configuration</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/pages.php">Pages</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/meta.php">Meta Desc & Keywords</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/announ.php">Announcements</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/protect.php">Spam Protection</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/caching.php">Cache</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/editing.php">Editing/Deleting Posts</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/posting.php">Posting</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/register.php">Registration Settings</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/optimize.php">Optimize Tables</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/frontpage.php">Front Page</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/cheader.php">Custom Header</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/modules.php">Modules</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/htprotect.php">Htpasswd Password</a><br />
<div id="headers"><img src="admin/images/news.png" width="16" height="16" border="0">&nbsp;&nbsp;Listing</div>
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="addnews.php">Submit New Story</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/listsearch.php">Search News</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/menage.php">Manage News</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/reviews.php">News Comments</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/sponsored.php">Sponsored Listing</a><br />
<div id="headers"><img src="admin/images/categories.png" width="16" height="16" border="0">&nbsp;&nbsp;Categories</div>
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/addcat.php">New Category</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/editcat.php">Manage Categories</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/addcsub.php">New SubCategories</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/editsub.php">Manage SubCategories</a><br />
<div id="headers"><img src="admin/images/videos.png" width="16" height="16" border="0">&nbsp;&nbsp;Videos</div>
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/video_search.php">Search Videos</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/videos.php">Manage Videos</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/videom.php">Video Comments</a><br />
<div id="headers"><img src="admin/images/gallery.png" width="16" height="16" border="0">&nbsp;&nbsp;Gallery</div>
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/gallery.php">Images</a><br />
<div id="headers"><img src="admin/images/users.png" width="16" height="16" border="0">&nbsp;&nbsp;Members</div>
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/user.php">Members</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/usersearch.php">Search Members</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/messages.php">Messages</a><br />
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/newsletter.php">Newsletter</a><br />
<div id="headers"><img src="admin/images/banner.png" width="16" height="16" border="0">&nbsp;&nbsp;Banners</div>
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="admin/ads.php">Banners</a><br />
<div id="headers"><img src="admin/images/support.png" width="16" height="16" border="0">&nbsp;&nbsp;Support</div>
&nbsp;<img src="admin/images/bullet.gif" width="8" height="8" border="0">&nbsp;<a href="http://forums.phpenter.net">Support Forum</a><br /><br />
  </td>
  <td align="left" valign="top"><div id="borders">
Return current item: PHP Enter