[Xerte] Re: Fwd: Function split() is deprecated

Pat Lockley patrick.lockley at googlemail.com
Fri Jun 29 13:28:02 BST 2012


rename the old file and then try this one instead - let me know the errors

On Fri, Jun 29, 2012 at 1:21 PM, Simon Barne <simonbarne at gmail.com> wrote:
> config.php attached.
>
>
>
> On 29 June 2012 11:59, Pat Lockley <patrick.lockley at googlemail.com> wrote:
>>
>> can you send config.php over please then
>>
>> On Fri, Jun 29, 2012 at 11:56 AM, Simon Barne <simonbarne at gmail.com>
>> wrote:
>> > Sorry, I've just done this.
>> >
>> > Now the screen says:
>> >
>> > BEFORE CONFIG
>> > 1
>> >
>> >
>> >
>> >
>> > On 28 June 2012 14:31, Pat Lockley <patrick.lockley at googlemail.com>
>> > wrote:
>> >>
>> >> 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.
>> >> >
>> >> >
>> >>
>> >> _______________________________________________
>> >> 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.
>> >>
>> >>
>> >
>> >
>> > 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 /**
* 
* Config page, sets up the site variable from the database
*
* @author Patrick Lockley
* @version 1.0
* @copyright Copyright (c) 2008,2009 University of Nottingham
* @package
*/

/** 
 * $xerte_toolkits_site variable
 * Variable used to hold database settings
 * @global object $xerte_toolkits_site
 */


$xerte_toolkits_site;

/** 
 * Has the site variable been created already, if not create it 
 */

if(!isset($xerte_toolkits_site)){

	/** 
	 * Access the database to get the variables
	 */

	echo "before database <br />";

	include "database.php";

	echo "post database <br />";

	$mysql_connect_id = @mysql_connect($xerte_toolkits_site->database_host, $xerte_toolkits_site->database_username, $xerte_toolkits_site->database_password);

	echo "post connection <br />";

	echo mysqli_error($mysql_connect_id) . "<br />";

	mysql_select_db($xerte_toolkits_site->database_name) or die($database_fail = true);

	$query = "select * from " . $xerte_toolkits_site->database_table_prefix . "sitedetails";

	$query_response = mysql_query($query);

	$row = mysql_fetch_array($query_response);

	/** 
	 * Access the database to get the variables
	 * @version 1.0
	 * @author Patrick Lockley
	 * @copyright 2008,2009 University of Nottingham
	 */

	/**
	* Include any script that is used for configuration
	*/

	if($row['integration_config_path']!=""){

		require_once($row['integration_config_path']);

	}

	/** 
	 * Site variables
	 */

	$xerte_toolkits_site->site_url = $row['site_url'];
	$xerte_toolkits_site->apache = $row['apache'];
	$xerte_toolkits_site->integration_config_path = $row['integration_config_path'];
	$xerte_toolkits_site->admin_username = $row['admin_username'];
	$xerte_toolkits_site->admin_password = $row['admin_password'];
	$xerte_toolkits_site->mimetypes = explode(",",$row['mimetypes']);

	/** 
	 * Site session variables
	 */

	$xerte_toolkits_site->site_session_name = $row['site_session_name'];

	/** 
	 * Configure the look and feel for index.php page
	 */

	$xerte_toolkits_site->site_title = $row['site_title'];
	$xerte_toolkits_site->name = $row['site_name'];
	$xerte_toolkits_site->site_logo = $row['site_logo'];
	$xerte_toolkits_site->organisational_logo = $row['organisational_logo'];
	$xerte_toolkits_site->welcome_message = $row['welcome_message'];
	$xerte_toolkits_site->demonstration_page = $xerte_toolkits_site->site_url . $row['demonstration_page'];
	
	$xerte_toolkits_site->site_text = $row['site_text'];
	$xerte_toolkits_site->news_text = base64_decode($row['news_text']);
	$xerte_toolkits_site->pod_one = base64_decode($row['pod_one']);
	$xerte_toolkits_site->pod_two = base64_decode($row['pod_two']);
	$xerte_toolkits_site->copyright = utf8_decode($row['copyright']);

	/** 
	* Configure the RSS Feed title
	*/
	 
	$xerte_toolkits_site->rss_title = $row['rss_title'];
	$xerte_toolkits_site->synd_publisher = $row['synd_publisher'];
	$xerte_toolkits_site->synd_rights = $row['synd_rights'];
	$xerte_toolkits_site->synd_license = $row['synd_license'];

   	/** 
	* Set up the string for the password protected play page
	*/

	$xerte_toolkits_site->form_string = base64_decode($row['form_string']);

   	/** 
	* Set up the string for the peer review page
	*/

	$xerte_toolkits_site->peer_form_string = base64_decode($row['peer_form_string']);

   	/** 
	* Site paths
	*/

	$xerte_toolkits_site->module_path = $row['module_path'];
	$xerte_toolkits_site->website_code_path = $row['website_code_path'];
	$xerte_toolkits_site->users_file_area_short = $row['users_file_area_short'];
	$xerte_toolkits_site->php_library_path = $row['php_library_path'];
	$xerte_toolkits_site->root_file_path = $row['root_file_path'];
	$xerte_toolkits_site->basic_template_path = $xerte_toolkits_site->root_file_path . $xerte_toolkits_site->module_path;
	$xerte_toolkits_site->users_file_area_full = $xerte_toolkits_site->root_file_path . $xerte_toolkits_site->users_file_area_short;
	$xerte_toolkits_site->import_path = $row['import_path'];

   	/** 
	* SQL query string used by play,edit and preview pages
	*/
	
	$xerte_toolkits_site->play_edit_preview_query = base64_decode($row['play_edit_preview_query']);

	/** 
	* Error handling settings
	*/

	$xerte_toolkits_site->error_log_path = $xerte_toolkits_site->root_file_path . $row['error_log_path'];
	$xerte_toolkits_site->email_error_list = $row['email_error_list'];
	$xerte_toolkits_site->error_log_message= $row['error_log_message'];
	$xerte_toolkits_site->error_email_message= $row['error_email_message'];
	$xerte_toolkits_site->max_error_size= $row['max_error_size'];

	/** 
	* LDAP Settings
	*/

	$xerte_toolkits_site->ldap_host = $row['ldap_host'];
	$xerte_toolkits_site->ldap_port = $row['ldap_port'];
	$xerte_toolkits_site->bind_pwd = $row['bind_pwd'];
	$xerte_toolkits_site->basedn = $row['basedn'];
	$xerte_toolkits_site->bind_dn = $row['bind_dn'];
	$xerte_toolkits_site->LDAP_preference = $row['LDAP_preference'];
	$xerte_toolkits_site->LDAP_filter = $row['LDAP_filter'];

    	/** 
	* Xerte settings
	*/

	$xerte_toolkits_site->flash_save_path = $row['flash_save_path'];
	$xerte_toolkits_site->flash_upload_path = $row['flash_upload_path'];
	$xerte_toolkits_site->flash_preview_check_path = $row['flash_preview_check_path'];
	$xerte_toolkits_site->flash_flv_skin = $xerte_toolkits_site->site_url . $row['flash_flv_skin'];

	/** 
	* Email settings
	*/
	
	$xerte_toolkits_site->site_email_account = $row['site_email_account'];
	$xerte_toolkits_site->headers = $row['headers'];
	$xerte_toolkits_site->email_to_add_to_username = $row['email_to_add_to_username'];

	/** 
	* RSS Proxy settings
	*/

	$xerte_toolkits_site->proxy1 = $row['proxy1'];
	$xerte_toolkits_site->port1 = $row['port1'];

	/** 
	* Set up the feedback list from the feedback page
	*/

	$xerte_toolkits_site->feedback_list = $row['feedback_list'];
	
}

?>


More information about the Xerte mailing list