diff --git a/backend.php b/backend.php index 92a91ef91525d03cd893f7e328d592d1f505963a..1805ce360b9538d85616d47b17213b6b1254059f 100644 --- a/backend.php +++ b/backend.php @@ -1,5 +1,6 @@ <?php - set_include_path(get_include_path() . PATH_SEPARATOR . "include"); + set_include_path(get_include_path() . PATH_SEPARATOR . + dirname(__FILE__) . "/include"); /* remove ill effects of magic quotes */ diff --git a/db-updater.php b/db-updater.php index 63c3c647a0f7b6e10b2ca48d8555c3b6b46700fe..e0900828ce4d47bdd0ae99f63e48a747e316ac3e 100644 --- a/db-updater.php +++ b/db-updater.php @@ -1,5 +1,6 @@ <?php - set_include_path(get_include_path() . PATH_SEPARATOR . "include"); + set_include_path(get_include_path() . PATH_SEPARATOR . + dirname(__FILE__) . "/include"); require_once "functions.php"; require_once "sessions.php"; diff --git a/digest.php b/digest.php index 74a0c566d69ea82fa38fb152e194622b226dac7b..c5b3c34c69b8719ed7ac7d44b63c9e49dda8cd02 100644 --- a/digest.php +++ b/digest.php @@ -1,5 +1,6 @@ <?php - set_include_path(get_include_path() . PATH_SEPARATOR . "include"); + set_include_path(get_include_path() . PATH_SEPARATOR . + dirname(__FILE__) . "/include"); require_once "functions.php"; require_once "sessions.php"; diff --git a/errors.php b/errors.php index 802947d985c508c1e8288157e3ff3d284d727794..a18d540bdbf67f1a4e13acbe696e96914a1ad769 100644 --- a/errors.php +++ b/errors.php @@ -1,5 +1,6 @@ <?php - set_include_path(get_include_path() . PATH_SEPARATOR . "include"); + set_include_path(get_include_path() . PATH_SEPARATOR . + dirname(__FILE__) . "/include"); require_once "functions.php"; diff --git a/image.php b/image.php index 210bbc2f7f3342dae900a3bbd438ecc571d20ae2..3a2a0d1c583b6cc30facfd866317bb43ac9f3186 100644 --- a/image.php +++ b/image.php @@ -1,5 +1,6 @@ <?php - set_include_path(get_include_path() . PATH_SEPARATOR . "include"); + set_include_path(get_include_path() . PATH_SEPARATOR . + dirname(__FILE__) . "/include"); require_once "config.php"; require_once "lib/simplepie/simplepie.inc"; diff --git a/index.php b/index.php index 3096cd2cdd25448de797da703ecc6462b063fb58..d08afa6efd016aedade0102589939ce86be83746 100644 --- a/index.php +++ b/index.php @@ -5,7 +5,8 @@ exit; } - set_include_path(get_include_path() . PATH_SEPARATOR . "include"); + set_include_path(get_include_path() . PATH_SEPARATOR . + dirname(__FILE__) ."/include"); require_once "functions.php"; require_once "sessions.php"; diff --git a/localized_js.php b/localized_js.php index 1cf38e573128127dca59b2bd42de5f03ee797c6d..24846a3205336e5d30a5359ba72c2fb8dff9dbab 100644 --- a/localized_js.php +++ b/localized_js.php @@ -1,5 +1,6 @@ <?php - set_include_path(get_include_path() . PATH_SEPARATOR . "include"); + set_include_path(get_include_path() . PATH_SEPARATOR . + dirname(__FILE__) . "/include"); define('DISABLE_SESSIONS', true); diff --git a/opml.php b/opml.php index b6fd6eb2a546d26b63c2b48dc8327b18aeca8aab..feccfaa3576652adefce4290455a4c8526de504c 100644 --- a/opml.php +++ b/opml.php @@ -1,5 +1,6 @@ <?php - set_include_path(get_include_path() . PATH_SEPARATOR . "include"); + set_include_path(get_include_path() . PATH_SEPARATOR . + dirname(__FILE__) . "/include"); require_once "functions.php"; require_once "sessions.php"; diff --git a/prefs.php b/prefs.php index 52be2a7a62d8d2b34245179959ace40616d3c9df..21a72cfd1cadaeb027448e6d030077bdf10731df 100644 --- a/prefs.php +++ b/prefs.php @@ -1,5 +1,6 @@ <?php - set_include_path(get_include_path() . PATH_SEPARATOR . "include"); + set_include_path(get_include_path() . PATH_SEPARATOR . + dirname(__FILE__) . "/include"); require_once "functions.php"; require_once "sessions.php"; diff --git a/public.php b/public.php index 598f78c78fe984a39048903223cd369195e2e2d7..8ffc83224f170a51c3a89f175848e6bccdb291f4 100644 --- a/public.php +++ b/public.php @@ -1,5 +1,6 @@ <?php - set_include_path(get_include_path() . PATH_SEPARATOR . "include"); + set_include_path(get_include_path() . PATH_SEPARATOR . + dirname(__FILE__) . "/include"); /* remove ill effects of magic quotes */ diff --git a/register.php b/register.php index d63fc251affd8d8a779de81d445291b7dd38b6b0..4107a2eac89ebad450b4bf3ddaf38ade1be5075f 100644 --- a/register.php +++ b/register.php @@ -4,7 +4,8 @@ // 1) templates/register_notice.txt - displayed above the registration form // 2) register_expire_do.php - contains user expiration queries when necessary - set_include_path(get_include_path() . PATH_SEPARATOR . "include"); + set_include_path(get_include_path() . PATH_SEPARATOR . + dirname(__FILE__) . "/include"); require_once 'lib/phpmailer/class.phpmailer.php'; diff --git a/twitter.php b/twitter.php index ab9e57a4580840f1dd2f51e3d0cedff1379697d2..c09d8fda4d089985ddbec9257b8ff292a57a33a8 100644 --- a/twitter.php +++ b/twitter.php @@ -1,5 +1,6 @@ <?php - set_include_path(get_include_path() . PATH_SEPARATOR . "include"); + set_include_path(get_include_path() . PATH_SEPARATOR . + dirname(__FILE__) . "/include"); require_once "functions.php"; require_once "sessions.php"; diff --git a/update.php b/update.php index 8cca3daa0937b0ae3de0c0c3897dc260283be857..28bcb3d1e4461350f46821f44e7a32174a4737da 100755 --- a/update.php +++ b/update.php @@ -1,6 +1,7 @@ #!/usr/bin/php <?php - set_include_path(get_include_path() . PATH_SEPARATOR . "include"); + set_include_path(get_include_path() . PATH_SEPARATOR . + dirname(__FILE__) . "/include"); define('DISABLE_SESSIONS', true); diff --git a/update_daemon2.php b/update_daemon2.php index 6b9d9246ff692d217dcc1cd24991b02a711cf5a2..c55a8aaaee319c5e2378f823e4687f54abb72366 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -1,6 +1,7 @@ #!/usr/bin/php <?php - set_include_path(get_include_path() . PATH_SEPARATOR . "include"); + set_include_path(get_include_path() . PATH_SEPARATOR . + dirname(__FILE__) . "/include"); // This is an experimental multiprocess update daemon. // Some configurable variable may be found below.