|
From: Benjamin C. <bc...@us...> - 2001-10-13 23:15:55
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv13358
Modified Files:
include.php
Log Message:
Added an admin interface for the configuration options
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- include.php 2001/10/12 13:43:29 1.62
+++ include.php 2001/10/13 23:15:52 1.63
@@ -373,6 +373,34 @@
}
$text .= '</option>';
break;
+ case 'LANGUAGE' :
+ $dir = opendir(INSTALL_PATH.'/'.INCLUDE_PATH.'languages');
+ while (false !== ($file = readdir($dir))) {
+ if ($file != '.' && $file != '..' && $file != 'CVS') {
+ $file = str_replace('.php', '', $file);
+ if ($file == $value) {
+ $sel = ' selected';
+ } else {
+ $sel = '';
+ }
+ $text .= "<option value=\"$file\"$sel>$file</option>";
+ }
+ }
+ break;
+ case 'THEME' :
+ $dir = opendir(INSTALL_PATH.'/'.INCLUDE_PATH.'templates');
+ while (false !== ($file = readdir($dir))) {
+ if ($file != '.' && $file != '..' && $file != 'CVS') {
+ $file = str_replace('.php', '', $file);
+ if ($file == $value) {
+ $sel = ' selected';
+ } else {
+ $sel = '';
+ }
+ $text .= "<option value=\"$file\"$sel>$file</option>";
+ }
+ }
+ break;
default :
$deadarray = $select[$box];
while(list($val,$item) = each($deadarray)) {
|