Browse Source

include path fix for lighttpd

Andrew Dolgov 8 years ago
parent
commit
f03a795de7
14 changed files with 28 additions and 14 deletions
  1. 2 1
      backend.php
  2. 2 1
      db-updater.php
  3. 2 1
      digest.php
  4. 2 1
      errors.php
  5. 2 1
      image.php
  6. 2 1
      index.php
  7. 2 1
      localized_js.php
  8. 2 1
      opml.php
  9. 2 1
      prefs.php
  10. 2 1
      public.php
  11. 2 1
      register.php
  12. 2 1
      twitter.php
  13. 2 1
      update.php
  14. 2 1
      update_daemon2.php

+ 2 - 1
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 */
 

+ 2 - 1
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";

+ 2 - 1
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";

+ 2 - 1
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";
 

+ 2 - 1
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";

+ 2 - 1
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";

+ 2 - 1
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);
 

+ 2 - 1
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";

+ 2 - 1
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";

+ 2 - 1
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 */
 

+ 2 - 1
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';
 

+ 2 - 1
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";

+ 2 - 1
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);
 

+ 2 - 1
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.