Permissions fixes

This commit is contained in:
dignajar 2015-09-17 21:37:14 -03:00
parent afb4fc685b
commit 696fd4475b
34 changed files with 27 additions and 23 deletions

View File

@ -20,11 +20,16 @@ function setSettings($args)
// Add slash at the begin and end. // Add slash at the begin and end.
// This fields are in the settings->advanced mode // 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['url'] = Text::addSlashes($args['url'],false,true);
$args['uriPost'] = Text::addSlashes($args['uriPost']); $args['uriPost'] = Text::addSlashes($args['uriPost']);
$args['uriPage'] = Text::addSlashes($args['uriPage']); $args['uriPage'] = Text::addSlashes($args['uriPage']);
$args['uriTag'] = Text::addSlashes($args['uriTag']); $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) ) { if( $Site->set($args) ) {

0
admin/views/manage-posts.php Executable file → Normal file
View File

0
install.php Executable file → Normal file
View File

View File

@ -134,7 +134,14 @@ $Parsedown = new Parsedown();
$Security = new Security(); $Security = new Security();
// HTML PATHs // 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); define('HTML_PATH_ROOT', $base);
// Paths for themes // Paths for themes
@ -151,7 +158,7 @@ define('HTML_PATH_PLUGINS', HTML_PATH_ROOT.'plugins/');
// PHP paths with dependency // PHP paths with dependency
define('PATH_THEME', PATH_ROOT.'themes/'.$Site->theme().'/'); 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 // Objects with dependency
$Language = new dbLanguage( $Site->locale() ); $Language = new dbLanguage( $Site->locale() );

View File

@ -64,8 +64,9 @@ class dbSite extends dbJSON
$filters['page'] = $this->db['uriPage']; $filters['page'] = $this->db['uriPage'];
$filters['tag'] = $this->db['uriTag']; $filters['tag'] = $this->db['uriTag'];
if(empty($filter)) if(empty($filter)) {
return $filters; return $filters;
}
return $filters[$filter]; return $filters[$filter];
} }
@ -97,15 +98,6 @@ class dbSite extends dbJSON
return $this->db['slogan']; return $this->db['slogan'];
} }
public function advancedOptions()
{
if($this->db['advancedOptions']==='true') {
return true;
}
return false;
}
// Returns the site description. // Returns the site description.
public function description() public function description()
{ {

0
languages/cs_CZ.json Executable file → Normal file
View File

0
languages/de_DE.json Executable file → Normal file
View File

0
languages/en_US.json Executable file → Normal file
View File

0
languages/es_AR.json Executable file → Normal file
View File

0
languages/es_ES.json Executable file → Normal file
View File

0
languages/es_VE.json Executable file → Normal file
View File

0
languages/fr_FR.json Executable file → Normal file
View File

0
languages/ja_JP.json Executable file → Normal file
View File

0
languages/ru_RU.json Executable file → Normal file
View File

0
languages/zh_TW.json Executable file → Normal file
View File

0
plugins/maintancemode/languages/en_US.json Executable file → Normal file
View File

0
plugins/maintancemode/languages/es_AR.json Executable file → Normal file
View File

0
plugins/maintancemode/languages/fr_FR.json Executable file → Normal file
View File

0
plugins/maintancemode/plugin.php Executable file → Normal file
View File

0
plugins/pages/languages/en_US.json Executable file → Normal file
View File

0
plugins/pages/languages/es_AR.json Executable file → Normal file
View File

0
plugins/pages/languages/fr_FR.json Executable file → Normal file
View File

0
plugins/pages/plugin.php Executable file → Normal file
View File

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

0
plugins/simplemde/languages/en_US.json Executable file → Normal file
View File

0
plugins/simplemde/languages/es_AR.json Executable file → Normal file
View File

0
plugins/simplemde/languages/fr_FR.json Executable file → Normal file
View File

0
plugins/simplemde/plugin.php Executable file → Normal file
View File

0
plugins/tags/languages/en_US.json Executable file → Normal file
View File

0
plugins/tags/languages/fr_FR.json Executable file → Normal file
View File

0
plugins/tags/plugin.php Executable file → Normal file
View File

0
themes/pure/css/blog.css Executable file → Normal file
View File

0
themes/pure/languages/en_US.json Executable file → Normal file
View File