[Xerte] Errors during installation

Patrick Lockley Patrick.Lockley at nottingham.ac.uk
Wed Jul 15 12:32:18 BST 2009


Look in the root for switch.txt

Look for this bit of the code

switch($_POST["login"]){

				case "pat": if($_POST["password"]=="patpassword"){ $authenticated = true; set_user_details("Pat","Blair");}; break;
				case "john": if($_POST["password"]=="johnpassword"){ $authenticated = true; set_user_details("John","Obama"); }; break;
				case "bob": if($_POST["password"]=="bobpassword"){ $authenticated = true; set_user_details("Bob","Putin"); }; break;
				case "sarah": if($_POST["password"]=="sarahpassword"){ $authenticated = true; set_user_details("Sarah","Sarkozy"); }; break;
				default: $authenticated = false; break;

			}

Pat, john, bob and Sarah are the usernames
The passwords are patpassword, johnpassword, bobpassword, sarahpassword
And the name and family name are Pat Blair, John Obama, Bob Putin and Sarah Sarkozy.

If you need more than 4, just copy and paste a new case line.

Then rename switch.txt to switch.php

-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Marc Widmer
Sent: 15 July 2009 12:24
To: Xerte discussion list
Subject: Re: [Xerte] Errors during installation

Me and I think in this testinstallation about 6 others ... lets say 8



Patrick Lockley schrieb:
> How many users do you want to use it with?
> 
> -----Original Message-----
> From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Marc Widmer
> Sent: 15 July 2009 12:02
> To: Xerte discussion list
> Subject: Re: [Xerte] Errors during installation
> 
> Hi Pat
> 
> as far as i know not. i did the renaming ant this works ... can't i use 
> it without LDAP?
> 
> Marc
> 
> Patrick Lockley schrieb:
>> Have you got LDAP on your server installed?
>>
>> Try renaming demo.txt to demo.php and accessing that. If that works, its LDAP.
>>
>> -----Original Message-----
>> From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Marc Widmer
>> Sent: 15 July 2009 11:53
>> To: Xerte discussion list
>> Subject: Re: [Xerte] Errors during installation
>>
>> Hi Pat
>>
>> Thank you for your help:
>>
>> i had to chmod database.txt now it worked. but if i go to the login 
>> screen and enter the username/pw provided in step 3 i got a blank white 
>> screen. :-(
>>
>> THX
>>
>> marc
>>
>> Patrick Lockley schrieb:
>>> If you are on unix, chmod 777 your setup folder
>>>
>>> If you are on windows make the set up folder writable (horrible English) - not read only.
>>>
>>> -----Original Message-----
>>> From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Marc Widmer
>>> Sent: 15 July 2009 11:38
>>> To: Xerte discussion list
>>> Subject: Re: [Xerte] Errors during installation
>>>
>>> Warning: fopen(database.txt) [function.fopen]: failed to open stream: 
>>> Permission denied in 
>>> /home/httpd/vhosts/schoolict.ch/httpdocs/xertetoolkits/setup/page2.php 
>>> on line 98
>>>
>>> Warning: fwrite(): supplied argument is not a valid stream resource in 
>>> /home/httpd/vhosts/schoolict.ch/httpdocs/xertetoolkits/setup/page2.php 
>>> on line 99
>>>
>>> Warning: fclose(): supplied argument is not a valid stream resource in 
>>> /home/httpd/vhosts/schoolict.ch/httpdocs/xertetoolkits/setup/page2.php 
>>> on line 100
>>>
>>> Thats what I get on page2.php from setup
>>>
>>> Marc
>>>
>>> Patrick Lockley schrieb:
>>>> Hello,
>>>>
>>>> It looks like your database password settings are wrong. 
>>>>
>>>> Do you know much PHP?
>>>>
>>>> Pat
>>>>
>>>> -----Original Message-----
>>>> From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Marc Widmer
>>>> Sent: 15 July 2009 11:24
>>>> To: xerte at lists.nottingham.ac.uk
>>>> Subject: [Xerte] Errors during installation
>>>>
>>>> Hello
>>>>
>>>> I'm new on this list. I desperatly try to install xertetoolkit on my 
>>>> webserver:
>>>> http://www.schoolict.ch/xertetoolkits/
>>>>
>>>> but during installation and if i try to open the link above, there are 
>>>> several error-messages ...
>>>>
>>>> did i something wrong?
>>>>
>>>> Thank you for your help
>>>>
>>>> Marc
>>>>
>>>> _______________________________________________
>>>> Xerte mailing list
>>>> Xerte at lists.nottingham.ac.uk
>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> 

-- 
----------------------------------------------------
Fachhochschule Nordwestschweiz
Pädagogische Hochschule
Institut Weiterbildung und Beratung

Marc Widmer
wiss Mitarbeiter imedias
Obere Sternengasse 7
4502 Solothurn
-----------------------------------------------------
T +41 32 627 92 26
F +41 32 627 28 64
marc.widmer at fhnw.ch
skype: marcwidmer
http://www.imedias.ch
http://www.fhnw.ch
-----------------------------------------------------

_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte


More information about the Xerte mailing list