|
From: Benjamin C. <bc...@us...> - 2002-04-03 18:59:42
|
Update of /cvsroot/phpbt/phpbt/inc
In directory usw-pr-cvs1:/tmp/cvs-serv13740/inc
Modified Files:
functions.php
Log Message:
Switching the location of the css file. Color scheme now selectable on the configuration page
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- functions.php 3 Apr 2002 01:01:04 -0000 1.16
+++ functions.php 3 Apr 2002 18:18:02 -0000 1.17
@@ -184,6 +184,24 @@
$text .= "<option value=\"$file\"$sel>$file</option>";
}
break;
+ case 'STYLE' :
+ $dir = opendir(INSTALL_PATH.'/styles');
+ while (false !== ($file = readdir($dir))) {
+ if ($file != '.' && $file != '..' && $file != 'CVS') {
+ $filelist[] = str_replace('.css', '', $file);
+ }
+ }
+ closedir($dir);
+ sort($filelist);
+ foreach ($filelist as $file) {
+ if ($file == $selected) {
+ $sel = ' selected';
+ } else {
+ $sel = '';
+ }
+ $text .= "<option value=\"$file\"$sel>$file</option>";
+ }
+ break;
default :
$deadarray = $select[$box];
while(list($val,$item) = each($deadarray)) {
|