[phpcvsview-cvs-updates] phpcvsview config.php,1.9,1.10 cvsview.php,1.18,1.19
Status: Pre-Alpha
Brought to you by:
bcheesem
From: Brian C. <bch...@us...> - 2005-01-23 01:48:08
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23986 Modified Files: config.php cvsview.php Log Message: Changes to support the cookie generation for remembering the users theme. Index: config.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/config.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** config.php 8 Jan 2005 04:34:59 -0000 1.9 --- config.php 23 Jan 2005 01:47:56 -0000 1.10 *************** *** 35,38 **** $config['GeSHi']['HighlightersPath'] = "geshi/geshi"; ! ?> ! --- 35,37 ---- $config['GeSHi']['HighlightersPath'] = "geshi/geshi"; ! ?> \ No newline at end of file Index: cvsview.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/cvsview.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** cvsview.php 22 Jan 2005 13:58:20 -0000 1.18 --- cvsview.php 23 Jan 2005 01:47:56 -0000 1.19 *************** *** 27,33 **** $ThemeName = $_GET["tm"]; } else { ! $ThemeName = "Default"; } require_once "Themes/$ThemeName/theme.php"; require_once 'phpcvs.php'; --- 27,43 ---- $ThemeName = $_GET["tm"]; } else { ! if (isset($_COOKIE["theme"])) { ! $ThemeName = $_COOKIE["theme"]; ! } ! else ! { ! $ThemeName = "Default"; ! } } + // Re-Set our cookie with the theme name in it. This cookie is set to expire 1 Year from today. + // This was done as there is no way to stop a cookie expiring. + setcookie("theme", $ThemeName, time()+31536000, "/"); + require_once "Themes/$ThemeName/theme.php"; require_once 'phpcvs.php'; |