include path fix for lighttpd

This commit is contained in:
Andrew Dolgov 2011-12-15 18:19:10 +04:00
parent 8aa3becccc
commit f03a795de7
14 changed files with 28 additions and 14 deletions

View 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 */

View 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";

View 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";

View 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";

View 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 "config.php";
require_once "lib/simplepie/simplepie.inc";

View file

@ -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";

View 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);

View 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";

View 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";

View 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 */

View 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';

View 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";

View file

@ -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);

View file

@ -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.