Pop Up Eror For Funmobile Wml N Xhtml

Started on the old forum in June 2007 · view the original in the archive · old links redirect here

1 reply · 441 views · started 19 years ago · 1 min read

mXwantedZN #1

Hi I Can SomeOne Please Tell ME wHATS wrong With This? I get A parse Eror

<?php include("config.php"); include("core.php"); if($mime== WEB) { echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";

}else{
echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";

echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";

} $bcon = connectdb(); if (!$bcon) { if($mime== WEB) { echo dberror($mime);

}else{ echo dberror($mime); } } $getuthm = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'")); $uth = $getuthm[0]; if(!$uth=="") { $uthm = "$uth"; }else{ $uthm = "default.css"; } $action = $_GET['action']; $sid = $_GET['sid']; $page = $_GET['page']; $who = $_GET['who']; $pmid = $_GET['pmid']; if((islogged($ses)==false)||($uid==0)) { if($mime== WEB) { echo notlogged($mime);

}else{ echo notlogged($mime); }

	} 



if(isipbanned($uip,$ubr))
	{

  if(!isshield(getuid_ses($ses)))
  {

if($mime== WEB) { echo useripbanned($mime,$uip,$ubr);

}else{ echo useripbanned($mime,$uip,$ubr); }

  }
	}

//echo isbanned($uid);
if(isbanned($uid))
	{

if($mime== WEB) { echo userbanned($mime,$uid);

}else{ echo userbanned($mime,$uid); }

	}

else if($action=="send") { addonline(getuid_ses($ses),"Sending PoP-Up MSG",""); if($mime== WEB) { echo webhead($uthm,$stitle); echo " "; $whonick = getnick_uid($who); $byuid = getuid_sid($sid); $tm = time();

$res = mysql_query("INSERT INTO fun_pops SET text='".$msg."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");

echo "<img src="images/sent.gif" alt="O"/> "; echo "Popup Message Sent to $whonick! ";

echo "

<a href="index.php?action=main&sid=$sid">Home</a>"; echo " "; echo webfoot(); exit();

}else{ echo waphead($stitle); echo " "; $whonick = getnick_uid($who); $byuid = getuid_sid($sid); $tm = time();

$res = mysql_query("INSERT INTO fun_pops SET text='".$msg."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");

echo "<img src=\"images/sent.gif\" alt=\"O\"/>

"; echo "Popup Message Sent to $whonick! ";

echo "

<a href="index.php?action=main&sid=$sid">Home</a>"; echo " "; echo wapfoot(); exit();

} else if($action=="sendto") { $who = $_get['who'];

addonline(getuid_ses($ses),"Sending PoP-Up MSG",""); if($mime== WEB) { echo webhead($uthm,$stitle); echo " "; echo "$getbuttons ";

$who = $_get['who'];

$whonick = getnick_uid($who); $byuid = getuid_sid($sid);

echo "<input name="msg" maxlength="150"/> "; echo "SEND<go href="popus.php?action=send&who=$who&sid=$sid" method="post">"; echo "<postfield name="msg" value="$(msg)"/>"; echo "</go> ";

echo "

<a href="index.php?action=main&sid=$sid">Home</a> "; } echo " "; echo webfoot();

}else{ echo waphead($stitle); echo " "; echo "$getbuttons ";

$who = $_get['who'];

$whonick = getnick_uid($who); $byuid = getuid_sid($sid);

echo "<input name="msg" maxlength="150"/> "; echo "<anchor>SEND<go href="popus.php?action=send&who=$who&sid=$sid" method="post">"; echo "<postfield name="msg" value="$(msg)"/>"; echo "</go></anchor> ";

echo "

<a href="index.php?action=main&sid=$sid">Home</a> "; } echo " "; echo wapfoot();

 }

}

?>

phoenix90 Developer · 113 posts #2

Hi I Can SomeOne Please Tell ME wHATS wrong With This? I get A parse Eror

<?php include("config.php"); include("core.php"); if($mime== WEB) { echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";

echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";

}else{ echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";

echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; } $bcon = connectdb(); if (!$bcon) { if($mime== WEB) { echo dberror($mime);

}else{ echo dberror($mime); } } $getuthm = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'")); $uth = $getuthm[0]; if(!$uth=="") { $uthm = "$uth"; }else{ $uthm = "default.css"; } $action = $_GET['action']; $sid = $_GET['sid']; $page = $_GET['page']; $who = $_GET['who']; $pmid = $_GET['pmid']; if((islogged($ses)==false)||($uid==0)) { if($mime== WEB) { echo notlogged($mime);

}else{ echo notlogged($mime); }

	} 

if(isipbanned($uip,$ubr)) {

  if(!isshield(getuid_ses($ses))) <- INCORECT
  {

if($mime== WEB) { echo useripbanned($mime,$uip,$ubr);

}else{ echo useripbanned($mime,$uip,$ubr); }

  }
	}

//echo isbanned($uid); if(isbanned($uid)) { if($mime== WEB) { echo userbanned($mime,$uid);

}else{ echo userbanned($mime,$uid); }

	}

else if($action=="send") { addonline(getuid_ses($ses),"Sending PoP-Up MSG",""); <- INCORECT if($mime== WEB) { echo webhead($uthm,$stitle); echo " "; $whonick = getnick_uid($who); $byuid = getuid_sid($sid); $tm = time();

$res = mysql_query("INSERT INTO fun_pops SET text='".$msg."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'"); echo "<img src="images/sent.gif" alt="O"/> "; echo "Popup Message Sent to $whonick! ";

echo "

<a href="index.php?action=main&sid=$sid">Home</a>"; echo " "; echo webfoot(); exit();

}else{ echo waphead($stitle); echo " "; $whonick = getnick_uid($who); $byuid = getuid_sid($sid); $tm = time();

$res = mysql_query("INSERT INTO fun_pops SET text='".$msg."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'"); echo "<img src="images/sent.gif" alt="O"/> "; echo "Popup Message Sent to $whonick! ";

echo "

<a href="index.php?action=main&sid=$sid">Home</a>"; echo " "; echo wapfoot(); exit();

} else if($action=="sendto") { $who = $_get['who'];

addonline(getuid_ses($ses),"Sending PoP-Up MSG",""); if($mime== WEB) { echo webhead($uthm,$stitle); echo " "; echo "$getbuttons ";

$who = $_get['who']; $whonick = getnick_uid($who); $byuid = getuid_sid($sid);

echo "<input name="msg" maxlength="150"/> "; echo "SEND<go href="popus.php?action=send&who=$who&sid=$sid" method="post">"; echo "<postfield name="msg" value="$(msg)"/>"; echo "</go> "; echo "

<a href="index.php?action=main&sid=$sid">Home</a> "; } echo " "; echo webfoot();

}else{ echo waphead($stitle); echo " "; echo "$getbuttons ";

$who = $_get['who']; $whonick = getnick_uid($who); $byuid = getuid_sid($sid);

echo "<input name="msg" maxlength="150"/> "; echo "<anchor>SEND<go href="popus.php?action=send&who=$who&sid=$sid" method="post">"; echo "<postfield name="msg" value="$(msg)"/>"; echo "</go></anchor> "; echo "

<a href="index.php?action=main&sid=$sid">Home</a> "; } echo " "; echo wapfoot();

 }

}

?>

Dude, the script above is all wrong!!! it has wrong varibles... Is this for lavalair/RW scrip or Funmobile, cause it has coding for both inside.. notice the sid varibles, thats for RW and lavalair, and the ses varibles at the top is for funmobile.. these varibles goes and catch the session.. You'll have to rewrite it to the correct script.. Hope this helps

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close