]> git.wh0rd.org - tt-rss.git/commitdiff
include path fix for lighttpd
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 15 Dec 2011 14:19:10 +0000 (18:19 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 15 Dec 2011 14:19:38 +0000 (18:19 +0400)
14 files changed:
backend.php
db-updater.php
digest.php
errors.php
image.php
index.php
localized_js.php
opml.php
prefs.php
public.php
register.php
twitter.php
update.php
update_daemon2.php

index 92a91ef91525d03cd893f7e328d592d1f505963a..1805ce360b9538d85616d47b17213b6b1254059f 100644 (file)
@@ -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 */
 
index 63c3c647a0f7b6e10b2ca48d8555c3b6b46700fe..e0900828ce4d47bdd0ae99f63e48a747e316ac3e 100644 (file)
@@ -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";
index 74a0c566d69ea82fa38fb152e194622b226dac7b..c5b3c34c69b8719ed7ac7d44b63c9e49dda8cd02 100644 (file)
@@ -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";
index 802947d985c508c1e8288157e3ff3d284d727794..a18d540bdbf67f1a4e13acbe696e96914a1ad769 100644 (file)
@@ -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";
 
index 210bbc2f7f3342dae900a3bbd438ecc571d20ae2..3a2a0d1c583b6cc30facfd866317bb43ac9f3186 100644 (file)
--- 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";
index 3096cd2cdd25448de797da703ecc6462b063fb58..d08afa6efd016aedade0102589939ce86be83746 100644 (file)
--- 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";
index 1cf38e573128127dca59b2bd42de5f03ee797c6d..24846a3205336e5d30a5359ba72c2fb8dff9dbab 100644 (file)
@@ -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);
 
index b6fd6eb2a546d26b63c2b48dc8327b18aeca8aab..feccfaa3576652adefce4290455a4c8526de504c 100644 (file)
--- 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";
index 52be2a7a62d8d2b34245179959ace40616d3c9df..21a72cfd1cadaeb027448e6d030077bdf10731df 100644 (file)
--- 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";
index 598f78c78fe984a39048903223cd369195e2e2d7..8ffc83224f170a51c3a89f175848e6bccdb291f4 100644 (file)
@@ -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 */
 
index d63fc251affd8d8a779de81d445291b7dd38b6b0..4107a2eac89ebad450b4bf3ddaf38ade1be5075f 100644 (file)
@@ -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';
 
index ab9e57a4580840f1dd2f51e3d0cedff1379697d2..c09d8fda4d089985ddbec9257b8ff292a57a33a8 100644 (file)
@@ -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";
index 8cca3daa0937b0ae3de0c0c3897dc260283be857..28bcb3d1e4461350f46821f44e7a32174a4737da 100755 (executable)
@@ -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);
 
index 6b9d9246ff692d217dcc1cd24991b02a711cf5a2..c55a8aaaee319c5e2378f823e4687f54abb72366 100755 (executable)
@@ -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.