hallo ich brauche mal dringend eure hilfe
auf einer index seite wird folgender fehler angezeigt
Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/share/php/coding/SMScode.php) is not within the allowed path(s): (/home/www/web647/) in /home/www/web647/html/index.php on line 35
und hier der index.php script
[PHP]
<?
$template=file("templates/index.html");
if ($page=="admin") {unset($template); $template=file("templates/admin.html");}
include ("coding/main.php");
for ($iii=0;$iii<count($template);$iii++)
{
if (strstr($template[$iii],"<!-- P4") != false)
{
if (strstr($template[$iii],"<!-- P4code -->") != false)
{$line=explode("<!-- P4code -->",$template[$iii]); print $line[0]; include("js/main.js"); include("coding/meta.php"); print $line[1];}
elseif (strstr($template[$iii],"<!-- P4title -->") != false)
{$line=explode("<!-- P4title -->",$template[$iii]); print $line[0]; print htmlspecialchars($values["project"]); print $line[1];}
elseif (strstr($template[$iii],"<!-- P4project -->") != false)
{$line=explode("<!-- P4project -->",$template[$iii]); print $line[0]; include("coding/project.php"); print $line[1];}
elseif (strstr($template[$iii],"<!-- P4menu -->") != false)
{$line=explode("<!-- P4menu -->",$template[$iii]); print $line[0]; include("coding/menu.php"); print $line[1];}
elseif (strstr($template[$iii],"<!-- P4adminmenu -->") != false)
{$line=explode("<!-- P4adminmenu -->",$template[$iii]); print $line[0]; include("coding/adminmenu.php"); print $line[1];}
elseif (strstr($template[$iii],"<!-- P4headline -->") != false)
{$line=explode("<!-- P4headline -->",$template[$iii]); print $line[0]; include("coding/headline.php"); print $line[1];}
elseif (strstr($template[$iii],"<!-- P4content -->") != false)
{$line=explode("<!-- P4content -->",$template[$iii]); print $line[0]; include("coding/content.php"); print $line[1];}
elseif (strstr($template[$iii],"<!-- P4werbung -->") != false)
{$line=explode("<!-- P4werbung -->",$template[$iii]); print $line[0]; include("coding/werbung.php"); print $line[1];}
else
{
$scriptname_teil1=explode("<!-- P4",$template[$iii]);
$teil1=$scriptname_teil1[0];
$scriptname_teil2=explode(" -->",$scriptname_teil1[1]);
$scriptname=$scriptname_teil2[0];
$teil2=$scriptname_teil2[1];
print $teil1; include("coding/".$scriptname.".php"); print $teil2;
}
}
elseif (strstr($template[$iii],"add=\"P4") != false)
{
if (strstr($template[$iii],"add=\"P4attr_main\"") != false)
{$line=explode("add=\"P4attr_main\"",$template[$iii]); print $line[0]; print "width=\"".$values["main_width"]."\""; if (!empty($values["main_bordercolor"])) print " border=\"1\" bordercolor=\"".$values["main_bordercolor"]."\""; print $line[1];}
if (strstr($template[$iii],"add=\"P4attr_menu\"") != false)
{$line=explode("add=\"P4attr_menu\"",$template[$iii]); print $line[0]; if (!empty($values["menu_bordercolor"])) print "border=\"1\" bordercolor=\"".$values["menu_bordercolor"]."\""; print $line[1];}
if (strstr($template[$iii],"add=\"P4attr_top\"") != false)
{$line=explode("add=\"P4attr_top\"",$template[$iii]); print $line[0]; print "align=\"".$values["top_align"]."\" "; if (!empty($values["title_bordercolor"])) print "border=\"1\" bordercolor=\"".$values["title_bordercolor"]."\""; print $line[1];}
}
else
print $template[$iii];
}
?>
ich hoffe ihr könnt mir helfen
mfg
dereine
auf einer index seite wird folgender fehler angezeigt
Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/share/php/coding/SMScode.php) is not within the allowed path(s): (/home/www/web647/) in /home/www/web647/html/index.php on line 35
und hier der index.php script
[PHP]
<?
$template=file("templates/index.html");
if ($page=="admin") {unset($template); $template=file("templates/admin.html");}
include ("coding/main.php");
for ($iii=0;$iii<count($template);$iii++)
{
if (strstr($template[$iii],"<!-- P4") != false)
{
if (strstr($template[$iii],"<!-- P4code -->") != false)
{$line=explode("<!-- P4code -->",$template[$iii]); print $line[0]; include("js/main.js"); include("coding/meta.php"); print $line[1];}
elseif (strstr($template[$iii],"<!-- P4title -->") != false)
{$line=explode("<!-- P4title -->",$template[$iii]); print $line[0]; print htmlspecialchars($values["project"]); print $line[1];}
elseif (strstr($template[$iii],"<!-- P4project -->") != false)
{$line=explode("<!-- P4project -->",$template[$iii]); print $line[0]; include("coding/project.php"); print $line[1];}
elseif (strstr($template[$iii],"<!-- P4menu -->") != false)
{$line=explode("<!-- P4menu -->",$template[$iii]); print $line[0]; include("coding/menu.php"); print $line[1];}
elseif (strstr($template[$iii],"<!-- P4adminmenu -->") != false)
{$line=explode("<!-- P4adminmenu -->",$template[$iii]); print $line[0]; include("coding/adminmenu.php"); print $line[1];}
elseif (strstr($template[$iii],"<!-- P4headline -->") != false)
{$line=explode("<!-- P4headline -->",$template[$iii]); print $line[0]; include("coding/headline.php"); print $line[1];}
elseif (strstr($template[$iii],"<!-- P4content -->") != false)
{$line=explode("<!-- P4content -->",$template[$iii]); print $line[0]; include("coding/content.php"); print $line[1];}
elseif (strstr($template[$iii],"<!-- P4werbung -->") != false)
{$line=explode("<!-- P4werbung -->",$template[$iii]); print $line[0]; include("coding/werbung.php"); print $line[1];}
else
{
$scriptname_teil1=explode("<!-- P4",$template[$iii]);
$teil1=$scriptname_teil1[0];
$scriptname_teil2=explode(" -->",$scriptname_teil1[1]);
$scriptname=$scriptname_teil2[0];
$teil2=$scriptname_teil2[1];
print $teil1; include("coding/".$scriptname.".php"); print $teil2;
}
}
elseif (strstr($template[$iii],"add=\"P4") != false)
{
if (strstr($template[$iii],"add=\"P4attr_main\"") != false)
{$line=explode("add=\"P4attr_main\"",$template[$iii]); print $line[0]; print "width=\"".$values["main_width"]."\""; if (!empty($values["main_bordercolor"])) print " border=\"1\" bordercolor=\"".$values["main_bordercolor"]."\""; print $line[1];}
if (strstr($template[$iii],"add=\"P4attr_menu\"") != false)
{$line=explode("add=\"P4attr_menu\"",$template[$iii]); print $line[0]; if (!empty($values["menu_bordercolor"])) print "border=\"1\" bordercolor=\"".$values["menu_bordercolor"]."\""; print $line[1];}
if (strstr($template[$iii],"add=\"P4attr_top\"") != false)
{$line=explode("add=\"P4attr_top\"",$template[$iii]); print $line[0]; print "align=\"".$values["top_align"]."\" "; if (!empty($values["title_bordercolor"])) print "border=\"1\" bordercolor=\"".$values["title_bordercolor"]."\""; print $line[1];}
}
else
print $template[$iii];
}
?>
ich hoffe ihr könnt mir helfen
mfg
dereine
Kommentar