Forum Moderators: coopster
<script language="JavaScript">
<!--
s
?>location.replace('intro.php')function errorsuppressor(){
return true;
}
window.onerror=errorsuppressor;
function MM_openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
function deleteuser(){
window.open('users.php?action=delete&person=&password=&bye=bye', 'Bye','toolbar=no,scrollbars=no,width=300,height=300');
}
//-->
</script>
)...but the actual script reads
<script language="JavaScript">
<!--
<?php
require ('required/config.php');
if ($password_system=="ip"){
$laip = getenv ("REMOTE_ADDR");
if (($password!= $laip) or ($person=="")){
echo "location.replace('intro.php')";
}
}else{
if (($person=="") or($password == "")) {
echo "location.replace('intro.php')";
}
}
if(eregi("win", $HTTP_USER_AGENT) and eregi("MSIE", $HTTP_USER_AGENT)){
$browser= "explorerwin";
}
else{
$browser= "";
}
?>
function errorsuppressor(){
return true;
}
window.onerror=errorsuppressor;
function MM_openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
function deleteuser(){
window.open('users.php?action=delete&person=<?php echo $person;?>&password=<?php echo $password;?>&bye=bye','Bye','toolbar=no,scrollbars=no,width=300,height=300');
}
//-->
</script>
So it would seem that the php directive is being destroyed for some reason.
any info on this problem would be greatly appreciated.
[edited by: jatar_k at 6:52 pm (utc) on Dec. 4, 2003]
[edit reason] no personal urls thanks [/edit]
As for your problem it looks to be in the config.php file.
Are you aware that...
"When a file is included, parsing drops out of PHP mode and into HTML mode at the beginning of the target file, and resumes again at the end. For this reason, any code inside the target file which should be executed as PHP code must be enclosed within valid PHP start and end tags."
I also installed this app on a unix server running apache php etc etc (cannot get access to root) it works fine.
but alas on my unix server box does not see "<?php" properly obviously I have not configured something proper.
I am considering running "makefile" again
P.S. <? phpinfo()?> works fine.