[Xerte] Errors during installation
Patrick Lockley
Patrick.Lockley at nottingham.ac.uk
Wed Jul 15 12:39:54 BST 2009
Nothing on screen means a PHP error is occurring and killing it.
Try this one.
-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Niall Watts
Sent: 15 July 2009 12:35
To: 'Xerte discussion list'
Subject: RE: [Xerte] Errors during installation
Renamed demo.txt to demo.php in Xerte root. Makes no difference
I'm not using LDAP
Niall
-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Patrick
Lockley
Sent: 2009-07-15 12:25
To: Xerte discussion list
Subject: RE: [Xerte] Errors during installation
Hi Niall,
Sounds like you've got an LDAP problem as well.
Could you rename demo.txt as show with marc and give it a try.
Pat
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
-------------- next part --------------
<?
require("config.php");
//$session_id = "GUESTUSER" . time();
//session_id($session_id);
//session_name($xerte_toolkits_site->site_session_name);
session_start();
//$_SESSION['toolkits_sessionid'] = $session_id;
/**
*
* Demo page
*
* @author Patrick Lockley
* @version 1.0
* @copyright Copyright (c) 2008,2009 University of Nottingham
* @package
*/
/**
* Create the basic session
*/
echo "SESSION CREATED <br>";
include $xerte_toolkits_site->php_library_path . "login_library.php";
include $xerte_toolkits_site->php_library_path . "display_library.php";
$_SESSION['toolkits_firstname'] = "Guest";
$_SESSION['toolkits_surname'] = "User";
include $xerte_toolkits_site->php_library_path . "database_library.php";
include $xerte_toolkits_site->php_library_path . "user_library.php";
echo "LIBRARY FILES IN <br>";
$mysql_id=database_connect("index.php database connect success","index.php database connect fail");
echo "DATABASE CONNECT <br>";
$_SESSION['toolkits_logon_username'] = "guest";
/*
* Check to see if this is a users' first time on the site
*/
if(check_if_first_time($_SESSION['toolkits_logon_username'])){
/*
* create the user a new id
*/
$_SESSION['toolkits_logon_id'] = create_user_id();
/*
* create a virtual root folder for this user
*/
create_a_virtual_root_folder();
}else{
/*
* User exists so update the user settings
*/
$_SESSION['toolkits_logon_id'] = get_user_id();
update_user_logon_time();
}
echo "ACCOUNTS DONE <br>";
recycle_bin();
/*
* Output the main page, including the user's and blank templates
*/
echo file_get_contents($xerte_toolkits_site->website_code_path . "management_headers");
echo "<script type=\"text/javascript\"> // JAVASCRIPT library for fixed variables\n // management of javascript is set up here\n // SITE SETTINGS\n";
echo "var site_url = \"" . $xerte_toolkits_site->site_url . "\";\n";
echo "var site_apache = \"" . $xerte_toolkits_site->apache . "\";\n";
echo "var properties_ajax_php_path = \"website_code/php/properties/\";\n var management_ajax_php_path = \"website_code/php/management/\";\n var ajax_php_path = \"website_code/php/\";\n";
echo file_get_contents($xerte_toolkits_site->website_code_path . "management_top");
list_users_projects("data_down");
echo logged_in_page_format_middle(file_get_contents($xerte_toolkits_site->website_code_path . "management_middle"));
list_blank_templates();
echo file_get_contents($xerte_toolkits_site->website_code_path . "management_bottom");
?>
</body>
</html>
More information about the Xerte
mailing list