summaryrefslogtreecommitdiff
path: root/scripts/cron/warning.php
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2012-01-31 00:15:17 +0100
committerMichael Tänzer <neo@nhng.de>2012-01-31 00:15:17 +0100
commitb8b737768aa96deeffbb193682c1b45f517c0636 (patch)
tree4d30181c211da0beacfe3eceadcf9b99387caa16 /scripts/cron/warning.php
parentccc8fb0f47871f2b8248c108d8e73e0da93cd8dc (diff)
downloadcacert-devel-b8b737768aa96deeffbb193682c1b45f517c0636.tar.gz
cacert-devel-b8b737768aa96deeffbb193682c1b45f517c0636.tar.xz
cacert-devel-b8b737768aa96deeffbb193682c1b45f517c0636.zip
bug 1003: Make scripts resilient against working directory changes and
make the fail hard if the include fails Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'scripts/cron/warning.php')
-rwxr-xr-xscripts/cron/warning.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cron/warning.php b/scripts/cron/warning.php
index b578c09..18e89da 100755
--- a/scripts/cron/warning.php
+++ b/scripts/cron/warning.php
@@ -17,7 +17,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
- include_once("/home/cacert/www/includes/mysql.php");
+ require_once(dirname(__FILE__).'/../../includes/mysql.php');
$days = array("1" => "3", "15" => "2", "30" => "1", "45" => "0");