Revision 1476
Added by Dietmar over 13 years ago
setparameter.php | ||
---|---|---|
2 | 2 |
/** |
3 | 3 |
* |
4 | 4 |
* @category admin |
5 |
* @package admintools
|
|
5 |
* @package media
|
|
6 | 6 |
* @author WebsiteBaker Project |
7 | 7 |
* @copyright 2004-2009, Ryan Djurovich |
8 | 8 |
* @copyright 2009-2011, Website Baker Org. e.V. |
... | ... | |
39 | 39 |
$admin->print_error('::'.$MESSAGE['GENERIC_SECURITY_ACCESS'],'browse.php',false); |
40 | 40 |
} |
41 | 41 |
*/ |
42 |
//Check for existing settings entry, if not existing, create a record first! |
|
43 |
if (!$database->query ( "SELECT * FROM ".TABLE_PREFIX."settings where `name`='mediasettings'" )) { |
|
44 |
$database->query ( "INSERT INTO ".TABLE_PREFIX."settings (`name`,`value`) VALUES ('mediasettings','')" ); |
|
42 |
|
|
43 |
if(DEFAULT_THEME != ' wb_theme') { |
|
44 |
//Check for existing settings entry, if not existing, create a record first! |
|
45 |
if (!$database->query ( "SELECT * FROM ".TABLE_PREFIX."settings where `name`='mediasettings'" )) { |
|
46 |
$database->query ( "INSERT INTO ".TABLE_PREFIX."settings (`name`,`value`) VALUES ('mediasettings','')" ); |
|
47 |
} |
|
48 |
} else { |
|
49 |
$pathsettings = array(); |
|
45 | 50 |
} |
51 |
|
|
46 | 52 |
$dirs = directory_list(WB_PATH.MEDIA_DIRECTORY); |
47 | 53 |
$dirs[] = WB_PATH.MEDIA_DIRECTORY; |
48 | 54 |
foreach($dirs AS $name) { |
Also available in: Unified diff
set of a wildcard ".*?" e.g. ph.*? proof ext like php, php3, php4 etc.
+ add new settings value in install, upgrade-script and core module