From cc441f6fc30f96de27de8e8e4e62f6c9610565fc Mon Sep 17 00:00:00 2001 From: web Date: Tue, 30 Jan 2007 23:13:55 +0000 Subject: [PATCH] Fix crons and xnet "lose you admin rights" behavious (Fru - last hot fixes) git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.13@1440 839d8a87-29fc-0310-9880-83ba4fa771e5 --- bin/connect.db.inc.php | 4 ++-- bin/cron/cron_validations.php | 2 +- templates/xnet/skin.tpl | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/connect.db.inc.php b/bin/connect.db.inc.php index 0fc5ac6..8e0f830 100644 --- a/bin/connect.db.inc.php +++ b/bin/connect.db.inc.php @@ -19,11 +19,11 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ -ini_set('include_path',dirname(__FILE__).'/../include:/usr/share/php'); +ini_set('include_path',dirname(__FILE__).'/../include:' . dirname(__FILE__).'/../classes:/usr/share/php'); require_once('xorg.inc.php'); require_once('xorg.misc.inc.php'); -require_once dirname(__FILE__).'/../classes/xdb.php'; +require_once 'xdb.php'; ?> diff --git a/bin/cron/cron_validations.php b/bin/cron/cron_validations.php index 81ed9ad..75ef035 100755 --- a/bin/cron/cron_validations.php +++ b/bin/cron/cron_validations.php @@ -27,7 +27,7 @@ $M_PERIOD = "INTERVAL 3 HOUR"; // p $R_PERIOD = "INTERVAL 6 HOUR"; // période de réponse moyenne de 6h require('./connect.db.inc.php'); -require('../classes/plmailer.php'); +require('plmailer.php'); $res = XDB::query("SELECT count(stamp), sum(stamp < NOW() - $M_PERIOD), sum(stamp < NOW() - $R_PERIOD) FROM x4dat.requests"); list($nb,$nbold,$nbveryold) = $res->fetchOneRow(); diff --git a/templates/xnet/skin.tpl b/templates/xnet/skin.tpl index 6242008..d496046 100644 --- a/templates/xnet/skin.tpl +++ b/templates/xnet/skin.tpl @@ -129,7 +129,7 @@ {/foreach} - {if $asso && ($is_admin || $smarty.session.suid.perms eq 'admin' || $smarty.suid.may_update[$asso.id])} + {if $asso && ($is_admin || $smarty.session.suid.perms eq 'admin' || $smarty.session.suid.may_update[$asso.id])}