[phpslash-users] bulletproof config.php3
Brought to you by:
joestewart,
nhruby
From: tobozo <to...@io...> - 2001-04-07 19:18:02
|
Hi phpslashers I got some feedback from other wannabee-phpslashers that became phpnukers but came back to phpslash after they used the special config.php3 I posted here : http://sourceforge.net/tracker/?group_id=10566&atid=310566 The config.php3 is the main reason why beginners would not succeed installing phpslash : it is too complicate to handle phplib AND phpslash together for a first install. This config.php3 will work only if the .class files are moved in the phplib folder ($classdir = $_PHPLIB ["libdir"]) which is less confusing. This config.php3 file only requires to specify database settings and it handles multiple templates as well. [optional] 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 ! [/optional] 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 available here (dont forget to update the database settings) : http://sourceforge.net/tracker/download.php?group_id=10566&atid=310566&file_ id=5110&aid=414570 it's ready ! enjoy tobozo |