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 <?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 */ /* remove ill effects of magic quotes */

View File

@ -1,5 +1,6 @@
<?php <?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 "functions.php";
require_once "sessions.php"; require_once "sessions.php";

View File

@ -1,5 +1,6 @@
<?php <?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 "functions.php";
require_once "sessions.php"; require_once "sessions.php";

View File

@ -1,5 +1,6 @@
<?php <?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 "functions.php";

View File

@ -1,5 +1,6 @@
<?php <?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 "config.php";
require_once "lib/simplepie/simplepie.inc"; require_once "lib/simplepie/simplepie.inc";

View File

@ -5,7 +5,8 @@
exit; 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 "functions.php";
require_once "sessions.php"; require_once "sessions.php";

View File

@ -1,5 +1,6 @@
<?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); define('DISABLE_SESSIONS', true);

View File

@ -1,5 +1,6 @@
<?php <?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 "functions.php";
require_once "sessions.php"; require_once "sessions.php";

View File

@ -1,5 +1,6 @@
<?php <?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 "functions.php";
require_once "sessions.php"; require_once "sessions.php";

View File

@ -1,5 +1,6 @@
<?php <?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 */ /* remove ill effects of magic quotes */

View File

@ -4,7 +4,8 @@
// 1) templates/register_notice.txt - displayed above the registration form // 1) templates/register_notice.txt - displayed above the registration form
// 2) register_expire_do.php - contains user expiration queries when necessary // 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'; require_once 'lib/phpmailer/class.phpmailer.php';

View File

@ -1,5 +1,6 @@
<?php <?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 "functions.php";
require_once "sessions.php"; require_once "sessions.php";

View File

@ -1,6 +1,7 @@
#!/usr/bin/php #!/usr/bin/php
<?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); define('DISABLE_SESSIONS', true);

View File

@ -1,6 +1,7 @@
#!/usr/bin/php #!/usr/bin/php
<?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. // This is an experimental multiprocess update daemon.
// Some configurable variable may be found below. // Some configurable variable may be found below.