Location: PHPKode > projects > php Blogger > admin/header.php
<?php session_start();
  require_once 'salt.php';
  require_once '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: signin.php');
    die();
  }
include ('../classes/adodb/adodb.inc.php');
include ('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');
##############################
$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];
$timelimit = $option[11];
$frontext = $option[12];
$notification = $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];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link type="text/css" href="style.css" rel="stylesheet" />
</head>
<a id="section"></a>
<div class="headers">
<div class="headerin">
<div style="height:50px;">
<span style="padding-left: 2px;">
<a href="index.php"><div class="float" id="logo">Admin Panel</div></a>
<div class="timeheader">
<li>
</li>
</div>
</span>
</div>
<div id="menu">
<li><a href="index.php">Home</a></li>
<li><a href="user.php">Members</a></li>
</div>
<div class="headerinfo">
<li class="float">
</li>
<li style="float:right">
</li>
</div>
</div>
</div>
<div class="main">
<div style="float:left;width:180px;">
<div id="menuform">
<div id="headers"><img src="images/home.png" width="16" height="16" border="0">&nbsp;&nbsp;Home</div>
&nbsp;<img src="images/bullet.gif" width="8" height="8" border="0">&nbsp;&nbsp;<a href="index.php">Home</a><br />
&nbsp;<img src="images/bullet.gif" width="8" height="8" border="0">&nbsp;&nbsp;Version: 1.1.<br />
&nbsp;<img src="images/bullet.gif" width="8" height="8" border="0">&nbsp;&nbsp;Licence: GNU GPL<br />
&nbsp;<img src="images/bullet.gif" width="8" height="8" border="0">&nbsp;&nbsp;<a href="signout.php">Log Out</a><br />
<div id="headers"><img src="images/configuration.png" width="16" height="16" border="0">&nbsp;&nbsp;Settings</div>
&nbsp;<img src="images/bullet.gif" width="8" height="8" border="0">&nbsp;&nbsp;<a href="index.php">Configuration</a><br />
&nbsp;<img src="images/bullet.gif" width="8" height="8" border="0">&nbsp;&nbsp;<a href="pages.php">Pages</a><br />
&nbsp;<img src="images/bullet.gif" width="8" height="8" border="0">&nbsp;&nbsp;<a href="meta.php">Meta Desc & Keywords</a><br />
&nbsp;<img src="images/bullet.gif" width="8" height="8" border="0">&nbsp;&nbsp;<a href="announ.php">Announcements</a><br />
&nbsp;<img src="images/bullet.gif" width="8" height="8" border="0">&nbsp;&nbsp;<a href="registration.php">User registration settings</a><br />
&nbsp;<img src="images/bullet.gif" width="8" height="8" border="0">&nbsp;&nbsp;<a href="protect.php">Spam Protection</a><br />
&nbsp;<img src="images/bullet.gif" width="8" height="8" border="0">&nbsp;&nbsp;<a href="posting.php">Posting Settings</a><br />
&nbsp;<img src="images/bullet.gif" width="8" height="8" border="0">&nbsp;&nbsp;<a href="caching.php">Caching</a><br />
<div id="headers"><img src="images/posting.png" width="16" height="16" border="0">&nbsp;&nbsp;Miscellaneous</div>
&nbsp;<img src="images/bullet.gif" width="8" height="8" border="0">&nbsp;&nbsp;<a href="adsense.php">Google Adsense</a><br />
&nbsp;<img src="images/bullet.gif" width="8" height="8" border="0">&nbsp;&nbsp;<a href="messaging.php">Messaging System</a><br />
<div id="headers"><img src="images/users.png" width="16" height="16" border="0">&nbsp;&nbsp;Users</div>
&nbsp;<img src="images/bullet.gif" width="8" height="8" border="0">&nbsp;&nbsp;<a href="user.php">Manage Users</a><br />
&nbsp;<img src="images/bullet.gif" width="8" height="8" border="0">&nbsp;&nbsp;<a href="usersearch.php">Search Users</a><br />
&nbsp;<img src="images/bullet.gif" width="8" height="8" border="0">&nbsp;&nbsp;<a href="messages.php">Private Messages</a><br />
&nbsp;<img src="images/bullet.gif" width="8" height="8" border="0">&nbsp;&nbsp;<a href="newsletter.php">Newsletter</a><br />
<div id="headers"><img src="images/support.png" width="16" height="16" border="0">&nbsp;&nbsp;Support</div>
&nbsp;<img src="images/bullet.gif" width="8" height="8" border="0">&nbsp;&nbsp;<a href="">Support Forum</a><br />
</div>
</div>
<div style="float:right;width:770px;">
<div id="panelform">
Return current item: php Blogger