[Xerte] Re: Fwd: Function split() is deprecated
Pat Lockley
patrick.lockley at googlemail.com
Thu Jun 28 14:31:04 BST 2012
added in some code to say where the page is
rename your old index.php
add this, add a password, try again
On Thu, Jun 28, 2012 at 2:24 PM, Simon Barne <simonbarne at gmail.com> wrote:
> OK, attached (renamed index.php).
>
>
>
>
> On 28 June 2012 14:21, Pat Lockley <patrick.lockley at googlemail.com> wrote:
>>
>> Ok
>>
>> send me a copy of switch.txt - remove the passwords (for now)
>>
>> On Thu, Jun 28, 2012 at 2:14 PM, Simon Barne <simonbarne at gmail.com> wrote:
>> > Nothing else, no.
>> >
>> >
>> >
>> > On 28 June 2012 14:13, Pat Lockley <patrick.lockley at googlemail.com>
>> > wrote:
>> >>
>> >> Ok, so you've got switch.txt, renamed as index.php, and when you log
>> >> in, it returns the number 1 on the screen.
>> >>
>> >> Nothing else?
>> >>
>> >> Pat
>> >>
>> >> On Thu, Jun 28, 2012 at 2:11 PM, Simon Barne <simonbarne at gmail.com>
>> >> wrote:
>> >> > I've successfully copied a template over into our WordPress site and
>> >> > it
>> >> > works fine. This might be the way to go...
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > On 28 June 2012 14:06, Simon Barne <simonbarne at gmail.com> wrote:
>> >> >>
>> >> >> For our v1.5 installation (the "1" problem)? With switch.txt.
>> >> >>
>> >> >>
>> >> >>
>> >> >> On 28 June 2012 14:05, Pat Lockley <patrick.lockley at googlemail.com>
>> >> >> wrote:
>> >> >>>
>> >> >>> Ok, I can help.
>> >> >>>
>> >> >>> How do you run usernames and passwords?
>> >> >>>
>> >> >>> On Thu, Jun 28, 2012 at 1:51 PM, Simon Barne <simonbarne at gmail.com>
>> >> >>> wrote:
>> >> >>> > I'm afraid I still can't sort out the "1" problem.
>> >> >>> >
>> >> >>> > Meanwhile our IT guy has spent 2-3 hours trying to install XOT
>> >> >>> > version
>> >> >>> > 1.7
>> >> >>> > on SiteGround without success.
>> >> >>> >
>> >> >>> > The only version of Toolkits that now works on our server is a
>> >> >>> > WordPress
>> >> >>> > plugin. I could copy the templates over to the appropriate
>> >> >>> > WordPress
>> >> >>> > subdirectory, but what tweaking would I need to do?
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> > On 27 June 2012 16:36, Pat Lockley
>> >> >>> > <patrick.lockley at googlemail.com>
>> >> >>> > wrote:
>> >> >>> >>
>> >> >>> >> I think it is normally ldap or some bug in MySQL connect
>> >> >>> >>
>> >> >>> >>
>> >> >>> >> On 27 Jun 2012, at 16:33, Dave Burnett <d_b_burnett at hotmail.com>
>> >> >>> >> wrote:
>> >> >>> >>
>> >> >>> >>
>> >> >>> >> LDAP?
>> >> >>> >> Archives :
>> >> >>> >>
>> >> >>> >> http://lists.nottingham.ac.uk/pipermail/xerte/2009-July/002211.html
>> >> >>> >>
>> >> >>> >> ________________________________
>> >> >>> >> From: patrick.lockley at googlemail.com
>> >> >>> >> Date: Wed, 27 Jun 2012 16:19:43 +0100
>> >> >>> >> To: xerte at lists.nottingham.ac.uk
>> >> >>> >> Subject: [Xerte] Re: Fwd: Function split() is deprecated
>> >> >>> >>
>> >> >>> >> That sounds like index.php / switch.php issues? After logging
>> >> >>> >> in?
>> >> >>> >>
>> >> >>> >> On 27 Jun 2012, at 16:17, Dave Burnett <d_b_burnett at hotmail.com>
>> >> >>> >> wrote:
>> >> >>> >>
>> >> >>> >> An episode of The Prisoner.
>> >> >>> >>
>> >> >>> >>
>> >> >>> >> > Date: Wed, 27 Jun 2012 16:16:30 +0100
>> >> >>> >> > From: simonbarne at gmail.com
>> >> >>> >> > To: xerte at lists.nottingham.ac.uk
>> >> >>> >> > Subject: [Xerte] Re: Fwd: Function split() is deprecated
>> >> >>> >> >
>> >> >>> >> > Right.
>> >> >>> >> >
>> >> >>> >> > Now all I see is the number 1.
>> >> >>> >> >
>> >> >>> >> > I seem to remember getting this before, years ago...
>> >> >>> >> >
>> >> >>> >> >
>> >> >>> >> >
>> >> >>> >> > On 27 June 2012 16:08, Pat Lockley
>> >> >>> >> > <patrick.lockley at googlemail.com>
>> >> >>> >> > wrote:
>> >> >>> >> > > Your config isnt the original one
>> >> >>> >> > >
>> >> >>> >> > > On 27 Jun 2012, at 16:04, Simon Barne <simonbarne at gmail.com>
>> >> >>> >> > > wrote:
>> >> >>> >> > >
>> >> >>> >> > >> Not sure if I've done everything right, but now I get this
>> >> >>> >> > >> message:
>> >> >>> >> > >>
>> >> >>> >> > >> Fatal error: Call to undefined function db_query_one() in
>> >> >>> >> > >> /home/intouea8/public_html/xerte/config.php on line 62
>> >> >>> >> > >>
>> >> >>> >> > >>
>> >> >>> >> > >>
>> >> >>> >> > >> On 27 June 2012 15:52, Pat Lockley
>> >> >>> >> > >> <patrick.lockley at googlemail.com>
>> >> >>> >> > >> wrote:
>> >> >>> >> > >>> I have sourced an old version of play.php
>> >> >>> >> > >>>
>> >> >>> >> > >>> Revert all the files back to the backups
>> >> >>> >> > >>>
>> >> >>> >> > >>> Then use this in modules/xerte
>> >> >>> >> > >>>
>> >> >>> >> > >>> Replace the word split
>> >> >>> >> > >>>
>> >> >>> >> > >>> With the word explode
>> >> >>> >> > >>>
>> >> >>> >> > >>>
>> >> >>> >> > >>> This message and any attachment are intended solely for
>> >> >>> >> > >>> the
>> >> >>> >> > >>> addressee and
>> >> >>> >> > >>> may contain confidential information. If you have received
>> >> >>> >> > >>> this
>> >> >>> >> > >>> message in
>> >> >>> >> > >>> error, please send it back to me, and immediately delete
>> >> >>> >> > >>> it.
>> >> >>> >> > >>> Please
>> >> >>> >> > >>> do not
>> >> >>> >> > >>> use, copy or disclose the information contained in this
>> >> >>> >> > >>> message
>> >> >>> >> > >>> or
>> >> >>> >> > >>> in any
>> >> >>> >> > >>> attachment. Any views or opinions expressed by the author
>> >> >>> >> > >>> of
>> >> >>> >> > >>> this
>> >> >>> >> > >>> email do
>> >> >>> >> > >>> not necessarily reflect the views of the University of
>> >> >>> >> > >>> Nottingham.
>> >> >>> >> > >>>
>> >> >>> >> > >>> This message has been checked for viruses but the contents
>> >> >>> >> > >>> of
>> >> >>> >> > >>> an
>> >> >>> >> > >>> attachment
>> >> >>> >> > >>> may still contain software viruses which could damage your
>> >> >>> >> > >>> computer
>> >> >>> >> > >>> system:
>> >> >>> >> > >>> you are advised to perform your own checks. Email
>> >> >>> >> > >>> communications
>> >> >>> >> > >>> with the
>> >> >>> >> > >>> University of Nottingham may be monitored as permitted by
>> >> >>> >> > >>> UK
>> >> >>> >> > >>> legislation.
>> >> >>> >> > >>>
>> >> >>> >> > >>>
>> >> >>> >> > >>>
>> >> >>> >> > >>>
>> >> >>> >> > >>> This message and any attachment are intended solely for
>> >> >>> >> > >>> the
>> >> >>> >> > >>> addressee and
>> >> >>> >> > >>> may contain confidential information. If you have received
>> >> >>> >> > >>> this
>> >> >>> >> > >>> message in
>> >> >>> >> > >>> error, please send it back to me, and immediately delete
>> >> >>> >> > >>> it.
>> >> >>> >> > >>> Please
>> >> >>> >> > >>> do not
>> >> >>> >> > >>> use, copy or disclose the information contained in this
>> >> >>> >> > >>> message
>> >> >>> >> > >>> or
>> >> >>> >> > >>> in any
>> >> >>> >> > >>> attachment. Any views or opinions expressed by the author
>> >> >>> >> > >>> of
>> >> >>> >> > >>> this
>> >> >>> >> > >>> email do
>> >> >>> >> > >>> not necessarily reflect the views of the University of
>> >> >>> >> > >>> Nottingham.
>> >> >>> >> > >>>
>> >> >>> >> > >>> This message has been checked for viruses but the contents
>> >> >>> >> > >>> of
>> >> >>> >> > >>> an
>> >> >>> >> > >>> attachment
>> >> >>> >> > >>> may still contain software viruses which could damage your
>> >> >>> >> > >>> computer
>> >> >>> >> > >>> system:
>> >> >>> >> > >>> you are advised to perform your own checks. Email
>> >> >>> >> > >>> communications
>> >> >>> >> > >>> with the
>> >> >>> >> > >>> University of Nottingham may be monitored as permitted by
>> >> >>> >> > >>> UK
>> >> >>> >> > >>> legislation.
>> >> >>> >> > >>>
>> >> >>> >> > >>>
>> >> >>> >> > >>> _______________________________________________
>> >> >>> >> > >>> Xerte mailing list
>> >> >>> >> > >>> Xerte at lists.nottingham.ac.uk
>> >> >>> >> > >>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>> >> >>> >> > >>>
>> >> >>> >> > >>> This message and any attachment are intended solely for
>> >> >>> >> > >>> the
>> >> >>> >> > >>> addressee and
>> >> >>> >> > >>> may contain confidential information. If you have received
>> >> >>> >> > >>> this
>> >> >>> >> > >>> message in
>> >> >>> >> > >>> error, please send it back to me, and immediately delete
>> >> >>> >> > >>> it.
>> >> >>> >> > >>> Please
>> >> >>> >> > >>> do not
>> >> >>> >> > >>> use, copy or disclose the information contained in this
>> >> >>> >> > >>> message
>> >> >>> >> > >>> or
>> >> >>> >> > >>> in any
>> >> >>> >> > >>> attachment. Any views or opinions expressed by the author
>> >> >>> >> > >>> of
>> >> >>> >> > >>> this
>> >> >>> >> > >>> email do
>> >> >>> >> > >>> not necessarily reflect the views of the University of
>> >> >>> >> > >>> Nottingham.
>> >> >>> >> > >>>
>> >> >>> >> > >>> This message has been checked for viruses but the contents
>> >> >>> >> > >>> of
>> >> >>> >> > >>> an
>> >> >>> >> > >>> attachment
>> >> >>> >> > >>> may still contain software viruses which could damage your
>> >> >>> >> > >>> computer
>> >> >>> >> > >>> system:
>> >> >>> >> > >>> you are advised to perform your own checks. Email
>> >> >>> >> > >>> communications
>> >> >>> >> > >>> with the
>> >> >>> >> > >>> University of Nottingham may be monitored as permitted by
>> >> >>> >> > >>> UK
>> >> >>> >> > >>> legislation.
>> >> >>> >> > >>>
>> >> >>> >> > >>>
>> >> >>> >> > >>
>> >> >>> >> > >> _______________________________________________
>> >> >>> >> > >> Xerte mailing list
>> >> >>> >> > >> Xerte at lists.nottingham.ac.uk
>> >> >>> >> > >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>> >> >>> >> > >
>> >> >>> >> > > _______________________________________________
>> >> >>> >> > > Xerte mailing list
>> >> >>> >> > > Xerte at lists.nottingham.ac.uk
>> >> >>> >> > > http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>> >> >>> >> >
>> >> >>> >> > _______________________________________________
>> >> >>> >> > Xerte mailing list
>> >> >>> >> > Xerte at lists.nottingham.ac.uk
>> >> >>> >> > http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>> >> >>> >>
>> >> >>> >> This message and any attachment are intended solely for the
>> >> >>> >> addressee
>> >> >>> >> and
>> >> >>> >> may contain confidential information. If you have received this
>> >> >>> >> message in
>> >> >>> >> error, please send it back to me, and immediately delete it.
>> >> >>> >> Please
>> >> >>> >> do
>> >> >>> >> not
>> >> >>> >> use, copy or disclose the information contained in this message
>> >> >>> >> or
>> >> >>> >> in
>> >> >>> >> any
>> >> >>> >> attachment. Any views or opinions expressed by the author of
>> >> >>> >> this
>> >> >>> >> email do
>> >> >>> >> not necessarily reflect the views of the University of
>> >> >>> >> Nottingham.
>> >> >>> >> This message has been checked for viruses but the contents of an
>> >> >>> >> attachment may still contain software viruses which could damage
>> >> >>> >> your
>> >> >>> >> computer system: you are advised to perform your own checks.
>> >> >>> >> Email
>> >> >>> >> communications with the University of Nottingham may be
>> >> >>> >> monitored
>> >> >>> >> as
>> >> >>> >> permitted by UK legislation.
>> >> >>> >>
>> >> >>> >> _______________________________________________
>> >> >>> >> Xerte mailing list
>> >> >>> >> Xerte at lists.nottingham.ac.uk
>> >> >>> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>> >> >>> >>
>> >> >>> >> This message and any attachment are intended solely for the
>> >> >>> >> addressee
>> >> >>> >> and
>> >> >>> >> may contain confidential information. If you have received this
>> >> >>> >> message in
>> >> >>> >> error, please send it back to me, and immediately delete it.
>> >> >>> >> Please
>> >> >>> >> do not
>> >> >>> >> use, copy or disclose the information contained in this message
>> >> >>> >> or
>> >> >>> >> in
>> >> >>> >> any
>> >> >>> >> attachment. Any views or opinions expressed by the author of
>> >> >>> >> this
>> >> >>> >> email do
>> >> >>> >> not necessarily reflect the views of the University of
>> >> >>> >> Nottingham.
>> >> >>> >>
>> >> >>> >> This message has been checked for viruses but the contents of an
>> >> >>> >> attachment
>> >> >>> >> may still contain software viruses which could damage your
>> >> >>> >> computer
>> >> >>> >> system:
>> >> >>> >> you are advised to perform your own checks. Email communications
>> >> >>> >> with
>> >> >>> >> the
>> >> >>> >> University of Nottingham may be monitored as permitted by UK
>> >> >>> >> legislation.
>> >> >>> >>
>> >> >>> >>
>> >> >>> >> _______________________________________________ Xerte mailing
>> >> >>> >> list
>> >> >>> >> Xerte at lists.nottingham.ac.uk
>> >> >>> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte This
>> >> >>> >> message
>> >> >>> >> and
>> >> >>> >> any
>> >> >>> >> attachment are intended solely for the addressee and may contain
>> >> >>> >> confidential information. If you have received this message in
>> >> >>> >> error,
>> >> >>> >> please
>> >> >>> >> send it back to me, and immediately delete it. Please do not
>> >> >>> >> use,
>> >> >>> >> copy
>> >> >>> >> or
>> >> >>> >> disclose the information contained in this message or in any
>> >> >>> >> attachment. Any
>> >> >>> >> views or opinions expressed by the author of this email do not
>> >> >>> >> necessarily
>> >> >>> >> reflect the views of the University of Nottingham. This message
>> >> >>> >> has
>> >> >>> >> been
>> >> >>> >> checked for viruses but the contents of an attachment may still
>> >> >>> >> contain
>> >> >>> >> software viruses which could damage your computer system: you
>> >> >>> >> are
>> >> >>> >> advised to
>> >> >>> >> perform your own checks. Email communications with the
>> >> >>> >> University
>> >> >>> >> of
>> >> >>> >> Nottingham may be monitored as permitted by UK legislation.
>> >> >>> >>
>> >> >>> >> _______________________________________________
>> >> >>> >> Xerte mailing list
>> >> >>> >> Xerte at lists.nottingham.ac.uk
>> >> >>> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>> >> >>> >>
>> >> >>> >> This message and any attachment are intended solely for the
>> >> >>> >> addressee
>> >> >>> >> and
>> >> >>> >> may contain confidential information. If you have received this
>> >> >>> >> message in
>> >> >>> >> error, please send it back to me, and immediately delete it.
>> >> >>> >> Please
>> >> >>> >> do not
>> >> >>> >> use, copy or disclose the information contained in this message
>> >> >>> >> or
>> >> >>> >> in
>> >> >>> >> any
>> >> >>> >> attachment. Any views or opinions expressed by the author of
>> >> >>> >> this
>> >> >>> >> email do
>> >> >>> >> not necessarily reflect the views of the University of
>> >> >>> >> Nottingham.
>> >> >>> >>
>> >> >>> >> This message has been checked for viruses but the contents of an
>> >> >>> >> attachment
>> >> >>> >> may still contain software viruses which could damage your
>> >> >>> >> computer
>> >> >>> >> system:
>> >> >>> >> you are advised to perform your own checks. Email communications
>> >> >>> >> with
>> >> >>> >> the
>> >> >>> >> University of Nottingham may be monitored as permitted by UK
>> >> >>> >> legislation.
>> >> >>> >>
>> >> >>> >>
>> >> >>> >> _______________________________________________
>> >> >>> >> Xerte mailing list
>> >> >>> >> Xerte at lists.nottingham.ac.uk
>> >> >>> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>> >> >>> >>
>> >> >>> >> This message and any attachment are intended solely for the
>> >> >>> >> addressee
>> >> >>> >> and
>> >> >>> >> may contain confidential information. If you have received this
>> >> >>> >> message in
>> >> >>> >> error, please send it back to me, and immediately delete it.
>> >> >>> >> Please
>> >> >>> >> do not
>> >> >>> >> use, copy or disclose the information contained in this message
>> >> >>> >> or
>> >> >>> >> in
>> >> >>> >> any
>> >> >>> >> attachment. Any views or opinions expressed by the author of
>> >> >>> >> this
>> >> >>> >> email do
>> >> >>> >> not necessarily reflect the views of the University of
>> >> >>> >> Nottingham.
>> >> >>> >>
>> >> >>> >> This message has been checked for viruses but the contents of an
>> >> >>> >> attachment
>> >> >>> >> may still contain software viruses which could damage your
>> >> >>> >> computer
>> >> >>> >> system:
>> >> >>> >> you are advised to perform your own checks. Email communications
>> >> >>> >> with
>> >> >>> >> the
>> >> >>> >> University of Nottingham may be monitored as permitted by UK
>> >> >>> >> legislation.
>> >> >>> >>
>> >> >>> >>
>> >> >>> >
>> >> >>> >
>> >> >>> > _______________________________________________
>> >> >>> > Xerte mailing list
>> >> >>> > Xerte at lists.nottingham.ac.uk
>> >> >>> > http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>> >> >>> >
>> >> >>> > This message and any attachment are intended solely for the
>> >> >>> > addressee
>> >> >>> > and
>> >> >>> > may contain confidential information. If you have received this
>> >> >>> > message
>> >> >>> > in
>> >> >>> > error, please send it back to me, and immediately delete it.
>> >> >>> > Please
>> >> >>> > do not
>> >> >>> > use, copy or disclose the information contained in this message
>> >> >>> > or
>> >> >>> > in
>> >> >>> > any
>> >> >>> > attachment. Any views or opinions expressed by the author of
>> >> >>> > this
>> >> >>> > email do
>> >> >>> > not necessarily reflect the views of the University of
>> >> >>> > Nottingham.
>> >> >>> >
>> >> >>> > This message has been checked for viruses but the contents of an
>> >> >>> > attachment
>> >> >>> > may still contain software viruses which could damage your
>> >> >>> > computer
>> >> >>> > system:
>> >> >>> > you are advised to perform your own checks. Email communications
>> >> >>> > with
>> >> >>> > the
>> >> >>> > University of Nottingham may be monitored as permitted by UK
>> >> >>> > legislation.
>> >> >>> >
>> >> >>> >
>> >> >>>
>> >> >>> _______________________________________________
>> >> >>> Xerte mailing list
>> >> >>> Xerte at lists.nottingham.ac.uk
>> >> >>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> > This message and any attachment are intended solely for the addressee
>> >> > and
>> >> > may contain confidential information. If you have received this
>> >> > message
>> >> > in
>> >> > error, please send it back to me, and immediately delete it. Please
>> >> > do
>> >> > not
>> >> > use, copy or disclose the information contained in this message or in
>> >> > any
>> >> > attachment. Any views or opinions expressed by the author of this
>> >> > email
>> >> > do
>> >> > not necessarily reflect the views of the University of Nottingham.
>> >> >
>> >> > This message has been checked for viruses but the contents of an
>> >> > attachment
>> >> > may still contain software viruses which could damage your computer
>> >> > system:
>> >> > you are advised to perform your own checks. Email communications with
>> >> > the
>> >> > University of Nottingham may be monitored as permitted by UK
>> >> > legislation.
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > Xerte mailing list
>> >> > Xerte at lists.nottingham.ac.uk
>> >> > http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>> >> >
>> >> > This message and any attachment are intended solely for the addressee
>> >> > and
>> >> > may contain confidential information. If you have received this
>> >> > message
>> >> > in
>> >> > error, please send it back to me, and immediately delete it. Please
>> >> > do
>> >> > not
>> >> > use, copy or disclose the information contained in this message or in
>> >> > any
>> >> > attachment. Any views or opinions expressed by the author of this
>> >> > email
>> >> > do
>> >> > not necessarily reflect the views of the University of Nottingham.
>> >> >
>> >> > This message has been checked for viruses but the contents of an
>> >> > attachment
>> >> > may still contain software viruses which could damage your computer
>> >> > system:
>> >> > you are advised to perform your own checks. Email communications with
>> >> > the
>> >> > University of Nottingham may be monitored as permitted by UK
>> >> > legislation.
>> >> >
>> >> >
>> >>
>> >> _______________________________________________
>> >> Xerte mailing list
>> >> Xerte at lists.nottingham.ac.uk
>> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>> >
>> >
>> >
>> > This message and any attachment are intended solely for the addressee
>> > and
>> > may contain confidential information. If you have received this message
>> > in
>> > error, please send it back to me, and immediately delete it. Please do
>> > not
>> > use, copy or disclose the information contained in this message or in
>> > any
>> > attachment. Any views or opinions expressed by the author of this email
>> > do
>> > not necessarily reflect the views of the University of Nottingham.
>> >
>> > This message has been checked for viruses but the contents of an
>> > attachment
>> > may still contain software viruses which could damage your computer
>> > system:
>> > you are advised to perform your own checks. Email communications with
>> > the
>> > University of Nottingham may be monitored as permitted by UK
>> > legislation.
>> >
>> >
>> > _______________________________________________
>> > Xerte mailing list
>> > Xerte at lists.nottingham.ac.uk
>> > http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>> >
>> > This message and any attachment are intended solely for the addressee
>> > and
>> > may contain confidential information. If you have received this message
>> > in
>> > error, please send it back to me, and immediately delete it. Please do
>> > not
>> > use, copy or disclose the information contained in this message or in
>> > any
>> > attachment. Any views or opinions expressed by the author of this email
>> > do
>> > not necessarily reflect the views of the University of Nottingham.
>> >
>> > This message has been checked for viruses but the contents of an
>> > attachment
>> > may still contain software viruses which could damage your computer
>> > system:
>> > you are advised to perform your own checks. Email communications with
>> > the
>> > University of Nottingham may be monitored as permitted by UK
>> > legislation.
>> >
>> >
>>
>> _______________________________________________
>> Xerte mailing list
>> Xerte at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
>
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it. Please do not
> use, copy or disclose the information contained in this message or in any
> attachment. Any views or opinions expressed by the author of this email do
> not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
>
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it. Please do not
> use, copy or disclose the information contained in this message or in any
> attachment. Any views or opinions expressed by the author of this email do
> not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
>
>
-------------- next part --------------
<?PHP
echo "BEFORE CONFIG<br />";
require("config.php");
echo "POST CONFIG<br />";
/**
*
* Login page, self posts to become management page
*
* @author Patrick Lockley
* @version 1.0
* @copyright Copyright (c) 2008,2009 University of Nottingham
* @package
*/
/**
* Create the basic session
*/
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
//$session_id = $_POST['login']. time();
//session_id($session_id);
//session_name($xerte_toolkits_site->site_session_name);
session_start();
}
echo "POST SESSION<br />";
include $xerte_toolkits_site->php_library_path . "login_library.php";
include $xerte_toolkits_site->php_library_path . "display_library.php";
echo "POST INCLUDES <br />";
//
//
// COPY THE ABOVE
//
//
/**
* Check to see if anything has been posted to distinguish between log in attempts
*/
if((!isset($_POST["login"]))&&(!isset($_POST["password"]))){
$buffer = login_page_format_top(file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->website_code_path . "login_top"));
$buffer .= $form_string;
$buffer .= login_page_format_bottom(file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->website_code_path . "login_bottom"));
echo $buffer;
}
/*
* Some data has bee posted, interpret as attempt to login
*/
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
/**
* Username and password left empty
*/
if(($_POST["login"]=="")&&($_POST["password"]=="")){
$buffer = login_page_format_top(file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->website_code_path . "login_top"));
$buffer .= "<p>Please enter your username and password</p>";
$buffer .= login_page_format_bottom(file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->website_code_path . "login_bottom"));
echo $buffer;
/*
* Username left empty
*/
}else if($_POST["login"]==""){
$buffer = login_page_format_top(file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->website_code_path . "login_top"));
$buffer .= "<p>Please enter your username</p>";
$buffer .= login_page_format_bottom(file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->website_code_path . "login_bottom"));
echo $buffer;
/*
* Password left empty
*/
}else if($_POST["password"]==""){
$buffer = login_page_format_top(file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->website_code_path . "login_top"));
$buffer .= "<p>Please enter your password</p>";
$buffer .= login_page_format_bottom(file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->website_code_path . "login_bottom"));
echo $buffer;
/*
* Password and username provided, so try to authenticate
*/
}else if(($_POST["login"]!="")&&($_POST["password"]!="")){
/*
* See if the submitted values are valid logins
*/
$authenticated = false;
function set_user_details($firstname, $surname){
$_SESSION['toolkits_firstname'] = $firstname;
$_SESSION['toolkits_surname'] = $surname;
}
switch($_POST["login"]){
case "simonbarne": if($_POST["password"]=="xxx"){ $authenticated = true; set_user_details("Simon","Barne");}; break;
case "paulhullock": if($_POST["password"]=="xxx"){ $authenticated = true; set_user_details("Paul","Hullock"); }; break;
case "matthewperry": if($_POST["password"]=="xxx"){ $authenticated = true; set_user_details("Matthew","Perry"); }; break;
case "intoteacher": if($_POST["password"]=="xxx"){ $authenticated = true; set_user_details("INTO","Teacher"); }; break;
case "tonyprince": if($_POST["password"]=="xxx"){ $authenticated = true; set_user_details("Tony","Prince"); }; break;
case "emmawyatt": if($_POST["password"]=="xxx"){ $authenticated = true; set_user_details("Emma","Wyatt"); }; break;
case "richardingate": if($_POST["password"]=="xxx"){ $authenticated = true; set_user_details("Richard","Ingate"); }; break;
case "michellebeare": if($_POST["password"]=="xxx"){ $authenticated = true; set_user_details("Michelle","Beare"); }; break;
default: $authenticated = false; break;
}
if($authenticated){
/*
* Give the session its own session id
*/
$_SESSION['toolkits_sessionid'] = $session_id;
include $xerte_toolkits_site->php_library_path . "database_library.php";
include $xerte_toolkits_site->php_library_path . "user_library.php";
$mysql_id=database_connect("index.php database connect success","index.php database connect fail");
$_SESSION['toolkits_logon_username'] = $_POST["login"];
/*
* 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();
}
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");
}else{
/*
* login has failed
*/
$buffer = login_page_format_top(file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->website_code_path . "login_top"));
$buffer .= "<p>Sorry that password combination was not correct</p>";
$buffer .= login_page_format_bottom(file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->website_code_path . "login_bottom"));
echo $buffer;
}
}
}
?>
</body>
</html>
More information about the Xerte
mailing list