Permissions fixes
This commit is contained in:
parent
afb4fc685b
commit
696fd4475b
@ -20,11 +20,16 @@ function setSettings($args)
|
||||
|
||||
// Add slash at the begin and end.
|
||||
// This fields are in the settings->advanced mode
|
||||
if(isset($args['advanced'])) {
|
||||
if(isset($args['form-advanced'])) {
|
||||
$args['url'] = Text::addSlashes($args['url'],false,true);
|
||||
$args['uriPost'] = Text::addSlashes($args['uriPost']);
|
||||
$args['uriPage'] = Text::addSlashes($args['uriPage']);
|
||||
$args['uriTag'] = Text::addSlashes($args['uriTag']);
|
||||
|
||||
if(($args['uriPost']==$args['uriPage']) || ($args['uriPost']==$args['uriTag']) || ($args['uriPage']==$args['uriTag']) )
|
||||
{
|
||||
$args = array();
|
||||
}
|
||||
}
|
||||
|
||||
if( $Site->set($args) ) {
|
||||
|
0
admin/views/manage-posts.php
Executable file → Normal file
0
admin/views/manage-posts.php
Executable file → Normal file
0
install.php
Executable file → Normal file
0
install.php
Executable file → Normal file
@ -134,7 +134,14 @@ $Parsedown = new Parsedown();
|
||||
$Security = new Security();
|
||||
|
||||
// HTML PATHs
|
||||
$base = (dirname(getenv('SCRIPT_NAME'))==DS)?'/':dirname(getenv('SCRIPT_NAME')).'/';
|
||||
//$base = (dirname(getenv('SCRIPT_NAME'))==DS)?'/':dirname(getenv('SCRIPT_NAME')).'/';
|
||||
$base = empty( $_SERVER['SCRIPT_NAME'] ) ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME'];
|
||||
$base = dirname($base);
|
||||
|
||||
if($base!=DS) {
|
||||
$base = $base.'/';
|
||||
}
|
||||
|
||||
define('HTML_PATH_ROOT', $base);
|
||||
|
||||
// Paths for themes
|
||||
@ -151,7 +158,7 @@ define('HTML_PATH_PLUGINS', HTML_PATH_ROOT.'plugins/');
|
||||
|
||||
// PHP paths with dependency
|
||||
define('PATH_THEME', PATH_ROOT.'themes/'.$Site->theme().'/');
|
||||
define('PATH_THEME_PHP', PATH_THEME.'php'.DS)
|
||||
define('PATH_THEME_PHP', PATH_THEME.'php'.DS);
|
||||
|
||||
// Objects with dependency
|
||||
$Language = new dbLanguage( $Site->locale() );
|
||||
|
@ -64,8 +64,9 @@ class dbSite extends dbJSON
|
||||
$filters['page'] = $this->db['uriPage'];
|
||||
$filters['tag'] = $this->db['uriTag'];
|
||||
|
||||
if(empty($filter))
|
||||
if(empty($filter)) {
|
||||
return $filters;
|
||||
}
|
||||
|
||||
return $filters[$filter];
|
||||
}
|
||||
@ -97,15 +98,6 @@ class dbSite extends dbJSON
|
||||
return $this->db['slogan'];
|
||||
}
|
||||
|
||||
public function advancedOptions()
|
||||
{
|
||||
if($this->db['advancedOptions']==='true') {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// Returns the site description.
|
||||
public function description()
|
||||
{
|
||||
|
0
languages/cs_CZ.json
Executable file → Normal file
0
languages/cs_CZ.json
Executable file → Normal file
0
languages/de_DE.json
Executable file → Normal file
0
languages/de_DE.json
Executable file → Normal file
0
languages/en_US.json
Executable file → Normal file
0
languages/en_US.json
Executable file → Normal file
0
languages/es_AR.json
Executable file → Normal file
0
languages/es_AR.json
Executable file → Normal file
0
languages/es_ES.json
Executable file → Normal file
0
languages/es_ES.json
Executable file → Normal file
0
languages/es_VE.json
Executable file → Normal file
0
languages/es_VE.json
Executable file → Normal file
0
languages/fr_FR.json
Executable file → Normal file
0
languages/fr_FR.json
Executable file → Normal file
0
languages/ja_JP.json
Executable file → Normal file
0
languages/ja_JP.json
Executable file → Normal file
0
languages/ru_RU.json
Executable file → Normal file
0
languages/ru_RU.json
Executable file → Normal file
0
languages/zh_TW.json
Executable file → Normal file
0
languages/zh_TW.json
Executable file → Normal file
0
plugins/maintancemode/languages/en_US.json
Executable file → Normal file
0
plugins/maintancemode/languages/en_US.json
Executable file → Normal file
0
plugins/maintancemode/languages/es_AR.json
Executable file → Normal file
0
plugins/maintancemode/languages/es_AR.json
Executable file → Normal file
0
plugins/maintancemode/languages/fr_FR.json
Executable file → Normal file
0
plugins/maintancemode/languages/fr_FR.json
Executable file → Normal file
0
plugins/maintancemode/plugin.php
Executable file → Normal file
0
plugins/maintancemode/plugin.php
Executable file → Normal file
0
plugins/pages/languages/en_US.json
Executable file → Normal file
0
plugins/pages/languages/en_US.json
Executable file → Normal file
0
plugins/pages/languages/es_AR.json
Executable file → Normal file
0
plugins/pages/languages/es_AR.json
Executable file → Normal file
0
plugins/pages/languages/fr_FR.json
Executable file → Normal file
0
plugins/pages/languages/fr_FR.json
Executable file → Normal file
0
plugins/pages/plugin.php
Executable file → Normal file
0
plugins/pages/plugin.php
Executable file → Normal file
4
plugins/simplemde/css/simplemde.min.css
vendored
4
plugins/simplemde/css/simplemde.min.css
vendored
File diff suppressed because one or more lines are too long
16
plugins/simplemde/js/simplemde.min.js
vendored
16
plugins/simplemde/js/simplemde.min.js
vendored
File diff suppressed because one or more lines are too long
0
plugins/simplemde/languages/en_US.json
Executable file → Normal file
0
plugins/simplemde/languages/en_US.json
Executable file → Normal file
0
plugins/simplemde/languages/es_AR.json
Executable file → Normal file
0
plugins/simplemde/languages/es_AR.json
Executable file → Normal file
0
plugins/simplemde/languages/fr_FR.json
Executable file → Normal file
0
plugins/simplemde/languages/fr_FR.json
Executable file → Normal file
0
plugins/simplemde/plugin.php
Executable file → Normal file
0
plugins/simplemde/plugin.php
Executable file → Normal file
0
plugins/tags/languages/en_US.json
Executable file → Normal file
0
plugins/tags/languages/en_US.json
Executable file → Normal file
0
plugins/tags/languages/fr_FR.json
Executable file → Normal file
0
plugins/tags/languages/fr_FR.json
Executable file → Normal file
0
plugins/tags/plugin.php
Executable file → Normal file
0
plugins/tags/plugin.php
Executable file → Normal file
0
themes/pure/css/blog.css
Executable file → Normal file
0
themes/pure/css/blog.css
Executable file → Normal file
0
themes/pure/languages/en_US.json
Executable file → Normal file
0
themes/pure/languages/en_US.json
Executable file → Normal file
Loading…
Reference in New Issue
Block a user