[Phpslash-commit] CVS: phpslash-ft/class functions.inc,1.100,1.101
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2002-04-29 20:52:53
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory usw-pr-cvs1:/tmp/cvs-serv1262/phpslash-ft/class Modified Files: functions.inc Log Message: set default skin if cookie skin not found Index: functions.inc =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/functions.inc,v retrieving revision 1.100 retrieving revision 1.101 diff -C2 -d -r1.100 -r1.101 *** functions.inc 27 Apr 2002 20:31:10 -0000 1.100 --- functions.inc 29 Apr 2002 20:52:49 -0000 1.101 *************** *** 1016,1019 **** --- 1016,1023 ---- if(@is_dir($templatedir . "/" . $HTTP_COOKIE_VARS['skin'])) { $new_skin=$HTTP_COOKIE_VARS['skin']; + } else { + // dir not found, delete this cookie and set to default + setcookie("skin","", "", "/", ereg_replace("www.", "", "$SERVER_NAME")); + $new_skin = $_PSL['defaultskin']; } } else { |