[phpcvsview-cvs-updates] phpcvsview cvsview.php,1.17,1.18 func_FileView.php,1.10,1.11 utils.php,1.2,
Status: Pre-Alpha
Brought to you by:
bcheesem
From: Brian C. <bch...@us...> - 2005-01-22 13:58:29
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28846 Modified Files: cvsview.php func_FileView.php utils.php Log Message: Added code to enable access to theme switching to the project. Still need to add code to set a cookie on the client machine. Index: utils.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/utils.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** utils.php 2 Oct 2004 02:53:35 -0000 1.2 --- utils.php 22 Jan 2005 13:58:20 -0000 1.3 *************** *** 97,113 **** function ImplodeToPath($Dirs, $Seperator, $Number) { - // echo "<br><br>In ImplodeToPath()...<br>\n"; $RetVal = ""; for ($Counter = 0; $Counter <= $Number; $Counter++) { - // echo "Counter is at $Counter of $Number. Value is '".$Dirs[$Counter]."'.<br>\n"; if ($Dirs[$Counter] != "") { $RetVal .= $Seperator . $Dirs[$Counter]; } - // echo "RetVal is '".$RetVal."'.<br>\n"; } - // echo "Out ImplodeToPath()...<br><br>\n"; return $RetVal; } ?> \ No newline at end of file --- 97,129 ---- function ImplodeToPath($Dirs, $Seperator, $Number) { $RetVal = ""; for ($Counter = 0; $Counter <= $Number; $Counter++) { if ($Dirs[$Counter] != "") { $RetVal .= $Seperator . $Dirs[$Counter]; } } return $RetVal; } + function GetThemeList() + { + $DirHandle = opendir('Themes'); + $ThemeList = Array(); + $ThemeCount = 0; + while ($Dir = readdir($DirHandle)) + { + if ((!ereg("[.]",$Dir))) + { + if($Dir != "CVS") + { + $ThemeList[$ThemeCount++] = $Dir; + } + } + } + closedir($DirHandle); + sort($ThemeList, SORT_STRING); + return $ThemeList; + } + ?> \ No newline at end of file Index: func_FileView.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileView.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** func_FileView.php 8 Jan 2005 04:38:26 -0000 1.10 --- func_FileView.php 22 Jan 2005 13:58:20 -0000 1.11 *************** *** 12,16 **** **/ ! if ($config['GeSHi']['Use']) { include_once($config['GeSHi']['Path'].'/geshi.php'); } --- 12,16 ---- **/ ! if ($config['GeSHi']['Enable']) { include_once($config['GeSHi']['Path'].'/geshi.php'); } *************** *** 55,59 **** echo "<hr />\n"; ! if ($config['GeSHi']['Use']) { // Create the GeSHi instance and parse the output. // TODO: setup code to auto identify the highlighting class to use for current file. --- 55,59 ---- echo "<hr />\n"; ! if ($config['GeSHi']['Enable']) { // Create the GeSHi instance and parse the output. // TODO: setup code to auto identify the highlighting class to use for current file. Index: cvsview.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/cvsview.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** cvsview.php 19 Dec 2004 10:27:04 -0000 1.17 --- cvsview.php 22 Jan 2005 13:58:20 -0000 1.18 *************** *** 14,18 **** require_once 'config.php'; ! global $config, $env; $REPOS = ""; --- 14,18 ---- require_once 'config.php'; ! global $config, $env, $ThemeName; $REPOS = ""; |