mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
- sperate permissions from sessions
- added some comments to the auth class for better understanding - revised some permission functions - added option to negate permission check by prefixing option with a ! (for example checking for !f_read returns true if user is not able to read forum) - used the new option for testing in ucp front git-svn-id: file:///svn/phpbb/trunk@5423 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1778,7 +1778,7 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
if ($action != 'install')
|
||||
{
|
||||
@mkdir("{$phpbb_root_path}styles/$path", 0777);
|
||||
@@ -1789,7 +1789,7 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
||||
$this->copy_files("$root_path$type", filelist("$root_path$type", '', '*'), "$path/$type");
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
$sql_ary = array(
|
||||
$mode . '_name' => $name,
|
||||
$mode . '_copyright' => $copyright,
|
||||
@@ -1809,7 +1809,7 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
||||
case 'theme':
|
||||
$sql_ary += array(
|
||||
'theme_storedb' => (!is_writeable("{$phpbb_root_path}styles/$path/theme/stylesheet.css")) ? 1 : $store_db,
|
||||
'theme_data' => ($store_db) ? (($root_path) ? str_replace('./', "styles/$path/theme/", implode('', file("$root_path/$type/stylesheet.css"))) : '') : '',
|
||||
'theme_data' => ($store_db) ? (($root_path) ? str_replace('./', "styles/$path/theme/", implode('', file("$root_path/$mode/stylesheet.css"))) : '') : '',
|
||||
'theme_mtime' => ($store_db) ? filemtime("{$phpbb_root_path}styles/$path/theme/stylesheet.css") : 0
|
||||
);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user