diff options
author | Andrew Dolgov <[email protected]> | 2011-12-15 18:19:10 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-12-15 18:19:38 +0400 |
commit | f03a795de75b99332c6315ea36ff452f7b32ca6a (patch) | |
tree | c4d73b6596eeb4c0f2a6e72b1ad83920d6dc1ae6 | |
parent | 8aa3beccccaa19b9f7742529d04d21c2cafbadb6 (diff) |
include path fix for lighttpd
-rw-r--r-- | backend.php | 3 | ||||
-rw-r--r-- | db-updater.php | 3 | ||||
-rw-r--r-- | digest.php | 3 | ||||
-rw-r--r-- | errors.php | 3 | ||||
-rw-r--r-- | image.php | 3 | ||||
-rw-r--r-- | index.php | 3 | ||||
-rw-r--r-- | localized_js.php | 3 | ||||
-rw-r--r-- | opml.php | 3 | ||||
-rw-r--r-- | prefs.php | 3 | ||||
-rw-r--r-- | public.php | 3 | ||||
-rw-r--r-- | register.php | 3 | ||||
-rw-r--r-- | twitter.php | 3 | ||||
-rwxr-xr-x | update.php | 3 | ||||
-rwxr-xr-x | update_daemon2.php | 3 |
14 files changed, 28 insertions, 14 deletions
diff --git a/backend.php b/backend.php index 92a91ef91..1805ce360 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 63c3c647a..e0900828c 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 74a0c566d..c5b3c34c6 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 802947d98..a18d540bd 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"; @@ -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"; @@ -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 1cf38e573..24846a320 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); @@ -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"; @@ -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 598f78c78..8ffc83224 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 d63fc251a..4107a2eac 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 ab9e57a45..c09d8fda4 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 8cca3daa0..28bcb3d1e 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 6b9d9246f..c55a8aaae 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. |