From 1827382524ff11b510060ac09706b872d836495f Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Thu, 15 Oct 2020 21:29:49 +0200 Subject: [PATCH] reference the config file without relying on working directory --- cron/phishing_tests.php | 2 +- cron/scam_tests.php | 2 +- cron/tests.php | 2 +- cron/update.php | 2 +- helpers/fill_unknown_phishing.php | 2 +- helpers/tmp.php | 2 +- helpers/tmp2.php | 2 +- helpers/tmp3.php | 2 +- helpers/tmp4.php | 2 +- helpers/tmp5.php | 2 +- helpers/tmp6.php | 2 +- helpers/tmp7.php | 2 +- setup.php | 2 +- www/admin.php | 2 +- www/onions.php | 2 +- www/test.php | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/cron/phishing_tests.php b/cron/phishing_tests.php index ba72e65..fd32ed9 100644 --- a/cron/phishing_tests.php +++ b/cron/phishing_tests.php @@ -1,7 +1,7 @@ PDO::ERRMODE_WARNING, PDO::ATTR_PERSISTENT=>PERSISTENT]); }catch(PDOException $e){ diff --git a/cron/scam_tests.php b/cron/scam_tests.php index 6710c9f..27897b6 100644 --- a/cron/scam_tests.php +++ b/cron/scam_tests.php @@ -1,7 +1,7 @@ PDO::ERRMODE_WARNING, PDO::ATTR_PERSISTENT=>PERSISTENT]); }catch(PDOException $e){ diff --git a/cron/tests.php b/cron/tests.php index 6a0b483..95cf126 100644 --- a/cron/tests.php +++ b/cron/tests.php @@ -1,6 +1,6 @@ PDO::ERRMODE_WARNING, PDO::ATTR_PERSISTENT=>PERSISTENT]); }catch(PDOException $e){ diff --git a/cron/update.php b/cron/update.php index 823c48a..9261ce4 100644 --- a/cron/update.php +++ b/cron/update.php @@ -1,6 +1,6 @@ PDO::ERRMODE_WARNING, PDO::ATTR_PERSISTENT=>PERSISTENT]); }catch(PDOException $e){ diff --git a/helpers/fill_unknown_phishing.php b/helpers/fill_unknown_phishing.php index b2b67a8..4e5bf6c 100644 --- a/helpers/fill_unknown_phishing.php +++ b/helpers/fill_unknown_phishing.php @@ -1,5 +1,5 @@ PDO::ERRMODE_WARNING, PDO::ATTR_PERSISTENT=>PERSISTENT]); }catch(PDOException $e){ diff --git a/helpers/tmp.php b/helpers/tmp.php index 5ad46ba..9f40e69 100644 --- a/helpers/tmp.php +++ b/helpers/tmp.php @@ -1,5 +1,5 @@ PDO::ERRMODE_WARNING, PDO::ATTR_PERSISTENT=>true]); }catch(PDOException $e){ diff --git a/helpers/tmp2.php b/helpers/tmp2.php index aecd7c3..147a439 100644 --- a/helpers/tmp2.php +++ b/helpers/tmp2.php @@ -1,5 +1,5 @@ PDO::ERRMODE_WARNING, PDO::ATTR_PERSISTENT=>true]); }catch(PDOException $e){ diff --git a/helpers/tmp3.php b/helpers/tmp3.php index de67358..cacffb5 100644 --- a/helpers/tmp3.php +++ b/helpers/tmp3.php @@ -1,5 +1,5 @@ PDO::ERRMODE_WARNING, PDO::ATTR_PERSISTENT=>true]); }catch(PDOException $e){ diff --git a/helpers/tmp4.php b/helpers/tmp4.php index d4877f4..ec1c666 100644 --- a/helpers/tmp4.php +++ b/helpers/tmp4.php @@ -1,5 +1,5 @@ PDO::ERRMODE_WARNING, PDO::ATTR_PERSISTENT=>true]); }catch(PDOException $e){ diff --git a/helpers/tmp5.php b/helpers/tmp5.php index e493237..2e13b1a 100644 --- a/helpers/tmp5.php +++ b/helpers/tmp5.php @@ -1,5 +1,5 @@ PDO::ERRMODE_WARNING, PDO::ATTR_PERSISTENT=>true]); }catch(PDOException $e){ diff --git a/helpers/tmp6.php b/helpers/tmp6.php index ac95b01..5b02456 100644 --- a/helpers/tmp6.php +++ b/helpers/tmp6.php @@ -1,5 +1,5 @@ PDO::ERRMODE_WARNING, PDO::ATTR_PERSISTENT=>true]); }catch(PDOException $e){ diff --git a/helpers/tmp7.php b/helpers/tmp7.php index 3cdb6df..9f1017c 100644 --- a/helpers/tmp7.php +++ b/helpers/tmp7.php @@ -1,5 +1,5 @@ PDO::ERRMODE_WARNING, PDO::ATTR_PERSISTENT=>true]); }catch(PDOException $e){ diff --git a/setup.php b/setup.php index 59732ca..5612cde 100644 --- a/setup.php +++ b/setup.php @@ -17,7 +17,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -require_once('common_config.php'); +require_once(__DIR__.'/common_config.php'); if(!extension_loaded('pdo_mysql')){ die($I['pdo_mysqlextrequired']); } diff --git a/www/admin.php b/www/admin.php index 695b07b..88f2c8e 100644 --- a/www/admin.php +++ b/www/admin.php @@ -1,5 +1,5 @@ PDO::ERRMODE_WARNING, PDO::ATTR_PERSISTENT=>PERSISTENT]); }catch(PDOException $e){ diff --git a/www/test.php b/www/test.php index 61dc635..85466ff 100644 --- a/www/test.php +++ b/www/test.php @@ -1,5 +1,5 @@ ';