your fine so far just not completed the code,
open up admin_header.php and replace it with the following,
<?php
/*
+ ----------------------------------------------------------------------------+
| PHPDirector.
| $License: GPL General Public License
| $Website: phpdirector.co.uk
| $Author: Ben Swanson
| $Contributors - Dennis Berko and Monte Ohrt (Monte Ohrt)
+----------------------------------------------------------------------------+
*/
session_start();
require('../libs/Smarty.class.php');
require('../libs/SmartyPaginate.class.php');
include("../db.php");
include("../includes/function.inc.php");
require_once ("functions.php");
$template = config('template');
$smarty = new Smarty();
$smarty->template_dir = '../templates/'.$template.'/admin';
$smarty->compile_dir = '../templates_c/admin';
$smarty->cache_dir = '../cache';
$smarty->config_dir = '../configs';
$cnf_metadescription = config('metadescription');
$smarty->assign('config_metadescription', $cnf_metadescription);
$cnf_metakeywords = config('metakeywords');
$smarty->assign('config_metakeywords', $cnf_metakeywords);
$cnf_favicon = config('favicon');
$smarty->assign('config_favicon', $cnf_favicon);
$cnf_name = config('name');
$smarty->assign('config_name', $cnf_name);
$cnf_logo = config('logo');
$smarty->assign('config_logo', $cnf_logo);
$cnf_slogan = config('slogan');
$smarty->assign('config_slogan', $cnf_slogan);
$cnf_footer = config('footer');
$smarty->assign('config_footer', $cnf_footer);
$smarty->assign('pagetype', $_GET["pt"]);
$smarty->assign('pag', $_GET["pag"]);
include("../lang/".config('lang'));
?>
and also header.php replace the code with this...
<?php
/*
+ ----------------------------------------------------------------------------+
| PHPDirector.
| $License: GPL General Public License
| $Website: phpdirector.co.uk
| $Author: Ben Swanson
| $Contributors - Dennis Berko and Monte Ohrt (Monte Ohrt)
+----------------------------------------------------------------------------+
*/
//Installed?
$filename = "installed.php";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
fclose($handle);
$explode_cont = explode(";", $contents);
if ($explode_cont[1] !== "Yes"){
header("Location: install/index.php");
}
//Installed?
require('libs/Smarty.class.php');
require('libs/SmartyPaginate.class.php');
include("db.php");
if(isset($_POST["comment"])){
header("location: videos.php?id=" . $_GET["id"] . "");
$ip = $_SERVER["REMOTE_ADDR"];
mysql_query("INSERT INTO pp_comments (video_id, ip, comment) VALUES ('$_GET[id]', '$ip', '$_POST[comment]')");
}
include("includes/function.inc.php");
$template = config('template');
$smarty = new Smarty();
$smarty->template_dir = './templates/'.$template;
$smarty->compile_dir = './templates_c';
$smarty->cache_dir = './cache';
$smarty->config_dir = './configs';
include("lang/".config('lang'));
$sort1 = $_GET['sort'];
$page = $_GET['page'];
$pagetype = $_GET["pt"];
$smarty->assign('pagetype', $pagetype);
$smarty->assign('next', $_GET["next"]);
$cnf_name = config('name');
$smarty->assign('config_name', $cnf_name);
//LOGO//
$cnf_logo = config('logo');
$smarty->assign('config_logo', $cnf_logo);
//LOGO//
//FavIcon//
$cnf_favicon = config('favicon');
$smarty->assign('config_favicon', $cnf_favicon);
//favIcon//
//meta//
$cnf_metadescription = config('metadescription');
$smarty->assign('config_metadescription', $cnf_metadescription);
$cnf_metakeywords = config('metakeywords');
$smarty->assign('config_box1', $cnf_metakeywords);
//meta//
//SLOGAN//
$cnf_slogan = config('slogan');
$smarty->assign('config_slogan', $cnf_slogan);
//SLOGAN//
//FOOTER//
$cnf_footer = config('footer');
$smarty->assign('config_footer', $cnf_footer);
//FOOTER//
//NEWS//
$news = config('news');
$smarty->assign('news', $news);
//NEWS//
//Firefox?
$HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT'];
if (!(strpos($HTTP_USER_AGENT,'Mozilla/5') === false)) {
$smarty->assign('firefox', '1');
} else {
$smarty->assign('firefox', '0');
}
//Firefox? END
?>
think that will work if not let me know