Revision 1818
Added by Dietmar about 12 years ago
parameters.php | ||
---|---|---|
10 | 10 |
* @platform WebsiteBaker 2.8.x |
11 | 11 |
* @requirements PHP 5.2.2 and higher |
12 | 12 |
* @version $Id$ |
13 |
* @filesource $HeadURL: $
|
|
14 |
* @lastmodified $Date: $
|
|
13 |
* @filesource $HeadURL$ |
|
14 |
* @lastmodified $Date$ |
|
15 | 15 |
* |
16 | 16 |
*/ |
17 | 17 |
|
... | ... | |
19 | 19 |
if(defined('WB_PATH') == false) { die("Cannot access this file directly"); } |
20 | 20 |
|
21 | 21 |
function __unserialize($sObject) { // found in php manual :-) |
22 |
$__ret =preg_replace('!s:(\d+):"(.*?)";!e', "'s:'.strlen('$2').':\"$2\";'", $sObject ); |
|
22 |
if($sObject=='') { return array( 'global' => array( 'admin_only' => false,'show_thumbs' => false ) );} |
|
23 |
$__ret = preg_replace('!s:(\d+):"(.*?)";!e', "'s:'.strlen('$2').':\"$2\";'", $sObject ); |
|
23 | 24 |
return unserialize($__ret); |
24 | 25 |
} |
25 |
$pathsettings = array(); |
|
26 |
if(DEFAULT_THEME != ' wb_theme') { |
|
26 |
|
|
27 |
$pathsettings = array( 'global' => array( 'admin_only' => false,'show_thumbs' => false ) ); |
|
28 |
if(DEFAULT_THEME != '') { |
|
27 | 29 |
$query = $database->query ( "SELECT * FROM ".TABLE_PREFIX."settings where `name`='mediasettings'" ); |
28 | 30 |
if ($query && $query->numRows() > 0) { |
29 | 31 |
$settings = $query->fetchRow(); |
30 | 32 |
Also available in: Unified diff
! update users, create username homefolder in media/homefolders