#17 bulletproof config.php3


The config.php3 is the main reason why people would
not succeed installing phpslash : it is too complicate
to handle phplib AND phpslash together for a first

This config.php3 will work only if the .class files
are moved in the phplib folder ($classdir = $_PHPLIB
["libdir"]) which seems much cleaner than the default
configuration on the package.

This config.php3 file only requires to specify
database settings and it handles multiple templates as
well. The skin name is stored in the cookie, the extra
templates must be in a folder named
"templates.your_skin_name", the images in a folder
named "images.your_skin_name".
A simple call in the url ?skin=your_skin_name and the
work is done !

Thing to do before you use it :

-Make a duplicate of your templates and images
folders :

cd < your $rootdir >
cp images images.default
cp templates templates.default

-move the class files in the phplib folder :

mv *.class < $_PHPLIB["libdir"] >

-make a backup of your config file :

cp config.php3 config.bak.php3

-update your config.php3 with the new code

it's ready !


  • tobozo

    tobozo - 2001-04-07

    generic bulletproof skinnable config.php3

  • Joe Stewart

    Joe Stewart - 2004-09-01
    • status: open --> closed-out-of-date

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks