This code is now 100% working on my site the only proble is [poke=$uid]$uid[/poke] this bbcode not working!
how to code the code for poke in my core.php?
how to code the code for poke in my core.php?
$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file);
$whonick = getnick_uid($who); $uid = getuid_hits($hits); if(budres($uid, $who)==2) { echo "<img src=\"images/pokes.png\" alt=\"*\"/> <a href=\"genproc.php?show=poke&who=$who&hits=$hits\">Poke $whonick</a><br/>"; }
////////////////////////////////////////////////////////////////// else if($show=="poke") { $theme = mysql_fetch_array(mysql_query("SELECT theme2 FROM ibwf_users WHERE id='".$uid."'")); echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"style/$theme[0]\">"; addonline(getuid_sid($sid),"Inbox",""); $who = $_GET["who"]; addonline(getuid_hits($hits),"Poke Friends",""); $uid = getuid_hits($hits); if(budres($uid, $who)==2) { $sub = "Poke Alert!"; $msg = "-haha- Your Got Poke From Your Friends ".getnick_uid($uid).", Click [poke=$uid]Here[/poke] To Revange ".getnick_uid($uid)." Back .haha."; autopm($msg, $who, $sub); echo "<img src=\"images/ok.gif\" alt=\"O\"/>User Poke Successfully"; }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Send Poke"; } echo "</div>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>"; echo "</p>"; echo xhtmlfoot(); exit(); }
function getuage_hits($hits) { $uid = getuid_hits($hits); $uage = mysql_fetch_array(mysql_query("SELECT birthday FROM mx_users WHERE id='".$uid."'")); return getage($uage[0]); } function getnick_hits($hits) { $uid = mysql_fetch_array(mysql_query("SELECT uid FROM mx_ses WHERE id='".$hits."'")); $uid = $uid[0]; return getnick_uid($uid); } function getuid_hits($hits) { $uid = mysql_fetch_array(mysql_query("SELECT uid FROM mx_ses WHERE id='".$hits."'")); $uid = $uid[0]; return $uid; }
$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file);
else if($show=="poke")
{
$theme = mysql_fetch_array(mysql_query("SELECT theme2 FROM ibwf_users WHERE id='".$uid."'"));
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"style/$theme[0]\">";
addonline(getuid_sid($sid),"Inbox","");
$who = $_GET["who"];
addonline(getuid_hits($hits),"Poke Friends","");
$uid = getuid_hits($hits);
if(budres($uid, $who)==2)
{
$sub = "Poke Alert!";
$msg = "-haha- Your Got Poke From Your Friends ".getnick_uid($uid).", Click [poke=$uid]Here[/poke] To Revange ".getnick_uid($uid)." Back .haha.";
autopm($msg, $who, $sub);
echo "<img src=\"images/ok.gif\" alt=\"O\"/>User Poke Successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Send Poke";
}
echo "</div>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>";
echo "</p>";
echo xhtmlfoot();
exit();
}
$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file);
Comment