Warning: require() [function.require]: open_basedir restriction in effect.
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
if(!defined('INCLUDED')) exit("Access denied");
/***************************************************************************
* copyright : (C) 2008 WeBid
* site : http://sourceforge.net/projects/simpleauction
***************************************************************************/
/***************************************************************************
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. Although none of the code may be
* sold. If you have been sold this script, get a refund.
***************************************************************************/
/** *************************************************************
* NOTE: Language management
*/
if(!empty($_GET['lan'])) {
$language = $_GET['lan'];
$_SESSION['language'] = $language;
#// Set language cookie
setcookie("USERLANGUAGE","",time()-3600);
setcookie("USERLANGUAGE",$_GET['lan'],time()+31536000,"/");
} elseif(isset($_SESSION['language'])) {
$language = $_SESSION['language'];
} elseif(empty($_SESSION['language']) && !isset($_COOKIE['USERLANGUAGE'])) {
$language = $SETTINGS['defaultlanguage'];
$_SESSION['language'] = $language;
#// Set language cookie
setcookie("USERLANGUAGE","",time()-3600);
setcookie("USERLANGUAGE",$language,time()+31536000);
} elseif(empty($_GET[lan])) {
if(isset($_COOKIE['USERLANGUAGE'])) {
$language = $_COOKIE['USERLANGUAGE'];
} else {
$language = $SETTINGS['defaultlanguage'];
}
} elseif(isset($_COOKIE['USERLANGUAGE'])) {
$language = $_COOKIE['USERLANGUAGE'];
} elseif(strlen($_GET[lan]) > 2 ) {
$language = $SETTINGS['defaultlanguage'];
} else {
$language = $SETTINGS['defaultlanguage'];
}
$language = str_replace('..','',addslashes(htmlspecialchars($language)));
#// If the user is logged in, update the user's record
#// This is used to send the e-mails in the user's language
if(isset($_SESSION['PHPAUCTION_LOGGED_IN'])) {
mysql_query("DELETE FROM ".$DBPrefix."userslanguage WHERE user='".$_SESSION['PHPAUCTION_LOGGED_IN']."'");
mysql_query("INSERT INTO ".$DBPrefix."userslanguage VALUES(
'".$_SESSION['PHPAUCTION_LOGGED_IN']."',
'$language')");
}
if (!$language) $language = $SETTINGS['defaultlanguage'];
require($main_path.'language/en/'.$language.'messages.inc.php');
/* **************************************************************/
?>
if(!defined('INCLUDED')) exit("Access denied");
/***************************************************************************
* copyright : (C) 2008 WeBid
* site : http://sourceforge.net/projects/simpleauction
***************************************************************************/
/***************************************************************************
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. Although none of the code may be
* sold. If you have been sold this script, get a refund.
***************************************************************************/
/** *************************************************************
* NOTE: Language management
*/
if(!empty($_GET['lan'])) {
$language = $_GET['lan'];
$_SESSION['language'] = $language;
#// Set language cookie
setcookie("USERLANGUAGE","",time()-3600);
setcookie("USERLANGUAGE",$_GET['lan'],time()+31536000,"/");
} elseif(isset($_SESSION['language'])) {
$language = $_SESSION['language'];
} elseif(empty($_SESSION['language']) && !isset($_COOKIE['USERLANGUAGE'])) {
$language = $SETTINGS['defaultlanguage'];
$_SESSION['language'] = $language;
#// Set language cookie
setcookie("USERLANGUAGE","",time()-3600);
setcookie("USERLANGUAGE",$language,time()+31536000);
} elseif(empty($_GET[lan])) {
if(isset($_COOKIE['USERLANGUAGE'])) {
$language = $_COOKIE['USERLANGUAGE'];
} else {
$language = $SETTINGS['defaultlanguage'];
}
} elseif(isset($_COOKIE['USERLANGUAGE'])) {
$language = $_COOKIE['USERLANGUAGE'];
} elseif(strlen($_GET[lan]) > 2 ) {
$language = $SETTINGS['defaultlanguage'];
} else {
$language = $SETTINGS['defaultlanguage'];
}
$language = str_replace('..','',addslashes(htmlspecialchars($language)));
#// If the user is logged in, update the user's record
#// This is used to send the e-mails in the user's language
if(isset($_SESSION['PHPAUCTION_LOGGED_IN'])) {
mysql_query("DELETE FROM ".$DBPrefix."userslanguage WHERE user='".$_SESSION['PHPAUCTION_LOGGED_IN']."'");
mysql_query("INSERT INTO ".$DBPrefix."userslanguage VALUES(
'".$_SESSION['PHPAUCTION_LOGGED_IN']."',
'$language')");
}
if (!$language) $language = $SETTINGS['defaultlanguage'];
require($main_path.'language/en/'.$language.'messages.inc.php');
/* **************************************************************/
?>
de error is :
Warning: require() [function.require]: open_basedir restriction in effect. File(/HTML/language/en/messages.inc.php) is not within the allowed path(s): (/var/www/g32923/shop2israel.com) in /var/www/g32923/shop2israel.com/HTML/includes/messages.inc.php on line 60
Warning: require(/HTML/language/en/messages.inc.php) [function.require]: failed to open stream: Operation not permitted in /var/www/g32923/shop2israel.com/HTML/includes/messages.inc.php on line 60
Fatal error: require() [function.require]: Failed opening required '/HTML/language/en/messages.inc.php' (include_path='/var/www/g32923/shop2israel.com:.') in /var/www/g32923/shop2israel.com/HTML/includes/messages.inc.php on line 60
dat is :
require($main_path.'language/en/'.$language.'messages.inc.php');
kan iemand mij helpen ?
require('/'.$main_path.'language/en/'.$language.'messages.inc.php');
En echo het eens om te kijken of de path wel klopt:
echo '/'.$main_path.'language/en/'.$language.'messages.inc.php';
http://nl2.php.net/manual/en/features.safe-mode.php#ini.open-basedir
- 700 :) -
Gewijzigd op 01/01/1970 01:00:00 door Douwe