Revision 8
Added by stefan about 19 years ago
settings.php | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 |
// $Id: settings.php,v 1.9 2005/04/08 07:36:58 rdjurovich Exp $ |
|
4 |
|
|
5 | 3 |
/* |
6 | 4 |
|
7 | 5 |
Website Baker Project <http://www.websitebaker.org/> |
... | ... | |
294 | 292 |
$template->set_block('main_block', 'template_list_block', 'template_list'); |
295 | 293 |
if($handle = opendir(WB_PATH.'/templates/')) { |
296 | 294 |
while(false !== ($file = readdir($handle))) { |
297 |
if($file != "." AND $file != ".." AND $file != "CVS" AND is_dir(WB_PATH."/templates/$file") AND file_exists(WB_PATH.'/templates/'.$file.'/info.php')) {
|
|
295 |
if($file != "." AND $file != ".." AND $file != ".svn" AND is_dir(WB_PATH."/templates/$file") AND file_exists(WB_PATH.'/templates/'.$file.'/info.php')) {
|
|
298 | 296 |
// Include the templates info file |
299 | 297 |
require(WB_PATH.'/templates/'.$file.'/info.php'); |
300 | 298 |
// Check if the user has perms to use this template |
... | ... | |
349 | 347 |
if($handle = opendir(WB_PATH.'/languages/')) { |
350 | 348 |
$template->set_block('main_block', 'language_list_block', 'language_list'); |
351 | 349 |
while (false !== ($file = readdir($handle))) { |
352 |
if($file != '.' AND $file != '..' AND $file != 'CVS' AND $file != 'index.php') {
|
|
350 |
if($file != '.' AND $file != '..' AND $file != '.svn' AND $file != 'index.php') {
|
|
353 | 351 |
// Include the languages info file |
354 | 352 |
require(WB_PATH.'/languages/'.$file); |
355 | 353 |
// Work-out if this language is selected |
Also available in: Unified diff
All occurrences of "CVS" in the code are replace by ".svn"