ok im installing phpwebsite on a local windows/ apache server. the installation completed sucessfully with no errors at all but when i click on the go to my installation button when finished all i can get is a blank page....?
here is my index.php file from the root of the phpwebsite install directory.
<?php
/**
* Routing file for phpWebSite
*
* Index initializes the core and database
*
* @version $Id: index.php,v 1.70 2003/11/13 23:06:49 steven Exp $
* @author Matthew McNaney <matt@NOSPAM.tux.appstate.edu>
* @modified by Steven Levin <steven@NOSPAM.tux.appstate.edu>
* @modified by Adam Morton <adam@NOSPAM.tux.appstate.edu>
* @package phpWebSite
*/
$GLOBALS['ALWAYS'] = array("layout", "users", "language", "fatcat", "search", "menuman", "comments");
// Change to TRUE to allow DEBUG mode
define("DEBUG_MODE", TRUE);
/* Show all errors */
//error_reporting (E_ALL);
/* Security against those with register globals = on */
if (isset($_POST)){
foreach ($_POST as $postVarName=>$nullIT) {
unset($postVarName);
}
}
/* prevent scripting tags from being passed via http get */
if (isset($_GET)){
foreach ($_GET as $getVarName=>$getValue) {
if(is_array($getValue)) {
foreach($getValue as $key=>$value) {
$_REQUEST[$getVarName][$key] = $_GET[$getVarName][$key] = eregi_replace("['<'|'%3C'|'<'|'<']+script", "NOSCRIPT", $value);
$_REQUEST[$getVarName][$key] = $_GET[$getVarName][$key] = eregi_replace("['<'|'%3C'|'<'|'<']+\?", "NOPHP", $value);
}
} else {
$_REQUEST[$getVarName] = $_GET[$getVarName] = eregi_replace("['<'|'%3C'|'<'|'<']+script", "NOSCRIPT", $getValue);
$_REQUEST[$getVarName] = $_GET[$getVarName] = eregi_replace("['<'|'%3C'|'<'|'<']+\?", "NOPHP", $getValue);
}
unset($getVarName);
}
}
if (!isset($hub_dir)) {
$hub_dir = NULL;
}
loadConfig($hub_dir);
if (file_exists($hub_dir . "core/Core.php") && file_exists($hub_dir . "core/Debug.php") && !preg_match ("/:\/\//i", $hub_dir)) {
require_once($hub_dir . "core/Core.php");
if(DEBUG_MODE) {
require_once("Benchmark/Timer.php");
$PHPWS_Timer =& new Benchmark_Timer();
$PHPWS_Timer->start();
$PHPWS_Timer->setMarker("Begin Core Initialization");
}
} else {
exit("FATAL ERROR! Required file <b>Core.php</b> not found.");
}
if(!isset($branchName)) {
$branchName = NULL;
}
$_SESSION["core"] = new PHPWS_Core($branchName, $hub_dir);
$GLOBALS["core"] = &$_SESSION["core"];
if(DEBUG_MODE) {
$PHPWS_Timer->setMarker("End Core Initialization");
}
$includeList = $core->initModules();
if (isset($_SESSION["siteHash"]) && $_SESSION["siteHash"] != $core->site_hash){
$core->killAllSessions();
$_SESSION["siteHash"] = $core->site_hash;
}
if(!isset($_SESSION['PHPWS_Debug'])) {
$_SESSION['PHPWS_Debug'] = new PHPWS_Debug();
}
if(DEBUG_MODE) {
/* phpWebSite debugger */
if($_SESSION['PHPWS_Debug']->isActive()) {
$_SESSION['PHPWS_Debug']->displayDebugInfo(TRUE);
if($_SESSION['PHPWS_Debug']->getBeforeExecution()) {
$_SESSION['PHPWS_Debug']->displayDebugInfo(FALSE);
}
}
}
/***********************/
if (isset($_REQUEST["print_mode"])) {
echo $_SESSION["print_info"][$print_queue];
unset($_SESSION["print_info"]);
exit();
}
// Load module index file
$current_mod_file = NULL;
foreach($includeList as $mod_title=>$current_mod_file) {
if(in_array($mod_title, $GLOBALS['ALWAYS']) || (isset($_REQUEST['module']) && ($_REQUEST['module'] == $mod_title))) {
if(DEBUG_MODE) {
$PHPWS_Timer->setMarker("Begin $mod_title Execution");
}
$core->current_mod = $mod_title;
if (is_file($current_mod_file)) {
include_once($current_mod_file);
}
if(DEBUG_MODE) {
$PHPWS_Timer->setMarker("End $mod_title Execution");
}
}
if(is_file(PHPWS_SOURCE_DIR . "mod/$mod_title/inc/runtime.php")) {
include(PHPWS_SOURCE_DIR . "mod/$mod_title/inc/runtime.php");
}
}
// Preventing last mod loaded from being 'current_mod'
$core->current_mod = NULL;
$core->db->disconnect();
if(DEBUG_MODE) {
$PHPWS_Timer->stop();
/* phpWebSite debugger */
if($_SESSION['PHPWS_Debug']->isActive()) {
if($_SESSION['PHPWS_Debug']->getShowTimer()) {
echo "<br /><font size=\"+1\">phpWebSite Timer</font><br />";
$PHPWS_Timer->display();
echo "<br />";
}
if($_SESSION['PHPWS_Debug']->getAfterExecution()) {
$_SESSION['PHPWS_Debug']->displayDebugInfo(FALSE);
}
/***********************/
}
}
$_SESSION["PHPWS_WhereWasI"] = PHPWS_WizardBag::whereami(TRUE);
function loadConfig($hub_dir){
/* Check for config file and define source directory. */
if(file_exists($hub_dir . "conf/config.php")){
if(filesize($hub_dir . "conf/config.php") > 0) {
include($hub_dir . "conf/config.php");
define("PHPWS_SOURCE_DIR", $source_dir);
} else {
header("location:setup/set_config.php");
exit();
}
}
else {
header("location:setup/set_config.php");
exit();
}
}
?>
now i set the debug value to TRUE and i still get a blank page ??? Can anyone help me out ?. any help would be greatly appreciated , thanks in advance.😃