restored more conservative config handling;
fixed log removal bug on prod. system introduced with commit 5fe55ee
This commit is contained in:
@ -116,4 +116,8 @@
|
||||
$opt['template']['locales']['DA']['show'] = false;
|
||||
$opt['template']['locales']['PT']['show'] = false;
|
||||
$opt['template']['locales']['JA']['show'] = false;
|
||||
|
||||
function post_config()
|
||||
{
|
||||
}
|
||||
?>
|
||||
|
@ -361,7 +361,7 @@
|
||||
|
||||
/* license-related functions
|
||||
*/
|
||||
$opt['logic']['license']['newusers'] = NEW_DATA_LICENSE_ACTIVELY_ACCEPTED;
|
||||
$opt['logic']['license']['newusers'] = 2; // see license constants in lib2/logic/const.inc.php
|
||||
$opt['logic']['license']['admin'] = true;
|
||||
$opt['logic']['license']['disclaimer'] = false;
|
||||
$opt['logic']['license']['terms'] = 'http://www.opencaching.de/articles.php?page=impressum#datalicense';
|
||||
|
@ -174,4 +174,8 @@
|
||||
$opt['template']['locales']['DA']['show'] = false;
|
||||
$opt['template']['locales']['PT']['show'] = false;
|
||||
$opt['template']['locales']['JA']['show'] = false;
|
||||
|
||||
function post_config()
|
||||
{
|
||||
}
|
||||
?>
|
@ -37,7 +37,6 @@ function __autoload($class_name)
|
||||
fix_magic_quotes_gpc();
|
||||
|
||||
// set options
|
||||
require_once($opt['rootpath'] . 'lib2/logic/const.inc.php');
|
||||
require_once($opt['rootpath'] . 'config2/settings-dist.inc.php');
|
||||
require_once($opt['rootpath'] . 'config2/settings.inc.php');
|
||||
|
||||
@ -82,6 +81,7 @@ function __autoload($class_name)
|
||||
$tpl = new OcSmarty();
|
||||
|
||||
// include all we need
|
||||
require_once($opt['rootpath'] . 'lib2/logic/const.inc.php');
|
||||
require_once($opt['rootpath'] . 'lib2/logic/geomath.class.php');
|
||||
require_once($opt['rootpath'] . 'lib2/error.inc.php');
|
||||
require_once($opt['rootpath'] . 'lib2/util.inc.php');
|
||||
|
@ -123,8 +123,6 @@
|
||||
{
|
||||
// remove log pictures
|
||||
// see also picture.class.php: delete()
|
||||
require('lib2/const.inc.php');
|
||||
require('config2/settings.inc.php');
|
||||
|
||||
$rs = sql("SELECT `id`, `url` FROM `pictures`
|
||||
WHERE `object_type`=1 AND `object_id`='&1'",
|
||||
@ -141,10 +139,10 @@
|
||||
$archived = (sqlValue("SELECT `id` FROM `pictures_modified` WHERE `id`=" . $r['id'], 0) > 0);
|
||||
$fna = mb_split('\\/', $r['url']);
|
||||
$filename = end($fna);
|
||||
if (mb_substr($opt['logic']['pictures']['dir'], -1, 1) != '/')
|
||||
$path = $opt['logic']['pictures']['dir'] . "/";
|
||||
if (mb_substr($picdir, -1, 1) != '/')
|
||||
$path = $picdir . "/";
|
||||
else
|
||||
$path = $opt['logic']['pictures']['dir'];
|
||||
$path = $picdir;
|
||||
|
||||
if ($archived)
|
||||
@rename($path . $filename, $path . "deleted/" . $filename);
|
||||
|
Reference in New Issue
Block a user