Inbox Forwarding

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

28 replies · 2,513 views · started 19 years ago · 1 min read

TL;DR · summary of 28 replies
  • - The question asked for the codes of inbox forwarding from one user to another in Lavalair WML script.
  • - The code approach was suggested by providing a basic structure and steps, but not full ready-made codes due to complexity and personal learning preferences.
  • - It was concluded that none provided the exact readymade codes requested, as they focused on guiding how to implement it rather than giving complete scripts.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

Guest #1

plz post the codes of inbox forwarding from one user to another user in lavalair wml script

FlareX #2

Is It Possibile?

linkrx7 #3

i got forward option in my new script im building so yeh it is possible

FlareX #4

o kwl ,

Guest #5

lol yes it is possible .. i wont post the exact script, but ill do what i do for (almost) everybody else and tell you how to do it .. if you cannot follow these steps or cannot figure out what i am talking about, you need to learn more about PHP/WML programming and/or become more familiar with the lavalair script .. ..

on the page where the user reads the message, put a link that contains the session id and message id to whatever page you want as long as the link works, it is okay .. think about the future, and what makes sense though - i mean, there is no sense in putting a 'forward pm' page in the same file as the register form ..

anyways .. the next page should collect the message id and then retrieve the relevant details from the database (subject, original sender, date/time of the original msg etc)

what you do in this step is completely upto you. you can could simply ask who the person wants to forward it to and then simply use the original working script to do this, sending the body text etc etc and the original subject with FWD: at the start .. ? alternatively, you could just use the original pages and just fill the boxes automatically with the original stuff and let the user edit bits and pieces if they want ... this bit i may help with bit but the rest should be done by you ..

then the message gets submitted to exactly the same thing as the other messages ..

Guest #6

lol yes it is possible .. i wont post the exact script, but ill do what i do for (almost) everybody else and tell you how to do it .. if you cannot follow these steps or cannot figure out what i am talking about, you need to learn more about PHP/WML programming and/or become more familiar with the lavalair script .. ..

on the page where the user reads the message, put a link that contains the session id and message id to whatever page you want as long as the link works, it is okay .. think about the future, and what makes sense though - i mean, there is no sense in putting a 'forward pm' page in the same file as the register form ..

anyways .. the next page should collect the message id and then retrieve the relevant details from the database (subject, original sender, date/time of the original msg etc)

what you do in this step is completely upto you. you can could simply ask who the person wants to forward it to and then simply use the original working script to do this, sending the body text etc etc and the original subject with FWD: at the start .. ? alternatively, you could just use the original pages and just fill the boxes automatically with the original stuff and let the user edit bits and pieces if they want ... this bit i may help with bit but the rest should be done by you ..

then the message gets submitted to exactly the same thing as the other messages ..

look my topic name n the forum name,i wanted the codes nt a long demo.ppl here post nt only there codes but also their whole scripts

linkrx7 #7

its 2 big a thing to just post the code as requires db editing and inbox script editing plus i chose the hardest way 2 code it i reakon lol

Guest #8

its 2 big a thing to just post the code as requires db editing and inbox script editing plus i chose the hardest way 2 code it i reakon lol

nt so big like ur wml_scripts edition

Guest #9

nt so big like ur wml_scripts edition

look .. the idea is that you begin to LEARN HOW to do things --- that is how you become a good coder --- not to have everything done for you ...

look, if you post your inbox.php (inside [codebox]...[/codebox] tags please) then ill have a go at it for you because im nice like that, but if you cannot do something as simple as this, then you need to either become better at PHP programming, or become more familiar with the lavalair script (or both, of course) ..

Guest #10

its 2 big a thing to just post the code as requires db editing and inbox script editing plus i chose the hardest way 2 code it i reakon lol

if it requires db editing, you probably chose teh hard way lol External image (may be gone) well .. tbh i cant really comment though -- im just thinking of a simple msg forwarding thing .. if you were to include message tracking or something so that you could find out where each message has gone to, then the best way to do that which i can think of would involve db editing, yes ..

Guest #12

its 2 big a thing to just post the code as requires db editing and inbox script editing plus i chose the hardest way 2 code it i reakon lol

look .. the idea is that you begin to LEARN HOW to do things --- that is how you become a good coder --- not to have everything done for you ...

look, if you post your inbox.php (inside [codebox]...[/codebox] tags please) then ill have a go at it for you because im nice like that, but if you cannot do something as simple as this, then you need to either become better at PHP programming, or become more familiar with the lavalair script (or both, of course) ..

is none here to post the codes regarding inbox forwarding of rwscript wml External image (may be gone) ?

if youre not going to read the messages we've already posted, why do you expect us to post again with more help .. ?

Guest #13

if youre not going to read the messages we've already posted, why do you expect us to post again with more help .. ?

i know u cant help me coz u cant read my topic name,wt u can just post topic irrelavant posts External image (may be gone)

Guest #14

i know u cant help me coz u cant read my topic name,wt u can just post topic irrelavant posts External image (may be gone)

:/ i can see that you still havent read my msgs properly ..

did you not see the part where i asked you to give me your inbox.php file and i would do it all for you .. ?

look, if you post your inbox.php (inside [codebox]...[/codebox] tags please) then ill have a go at it for you because im nice like that

obviously not ..

hellspawn #15

Jackk,

If you are going to get rude when a. they have already posted how to do it and b. kwah has offered to do it for you?!

then here http://php.net , http://mysql.com go learn how to do it yourself.

Guest #16

Jackk,

If you are going to get rude when a. they have already posted how to do it and b. kwah has offered to do it for you?!

then here http://php.net , http://mysql.com go learn how to do it yourself.

ok i hv understood that none here can give me the readymade codes for inboxforwarding in lavalair wml.wt i can get here just some readymade suggestions

Guest #17

CODEinbox.php

<?php /* IrisBlaze wap forum by Ra'ed Shabana */ header("Content-type: text/vnd.wap.wml"); header("Cache-Control: no-store, no-cache, must-revalidate"); echo("<?xml version=\"1.0\"?>");

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

<?php include("config.php"); include("core.php"); connectdb(); $action = $_GET["action"]; $sid = $_GET["sid"]; $page = $_GET["page"]; $who = $_GET["who"]; $pmid = $_GET["pmid"]; if(islogged($sid)==false) { echo "<card id=\"main\" title=\"harderstyles.net\">"; echo " "; echo "You are not logged in "; echo "Or Your session has been expired "; echo "<a href=\"index.php\">Login</a>"; echo " "; echo "</card>"; echo "</wml>"; exit(); } $uid = getuid_sid($sid); if(isbanned($uid)) { echo "<card id=\"main\" title=\"harderstyles.net\">"; echo " "; echo "<img src=\"images/notok.gif\" alt=\"x\"/> "; echo "You are **Banned** "; $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1'")); $remain = $banto[0]- time(); $rmsg = gettimemsg($remain); echo "Time to finish your penalty: $rmsg "; //echo "<a href=\"index.php\">Login</a>"; echo " "; echo "</card>"; echo "</wml>"; exit(); } if($action=="sendpm") { addonline(getuid_sid($sid),"Sending PM",""); echo "<card id=\"main\" title=\"Inbox\">"; echo " "; $whonick = getnick_uid($who); echo "Send PM to $whonick "; echo "<input name=\"pmtext\" maxlength=\"500\"/> "; echo "<anchor>SEND<go href=\"inbxproc.php?action=sendpm&amp;who=$who&amp;sid=$sid\" method=\"post\">"; echo "<postfield name=\"pmtext\" value=\"$(pmtext)\"/>"; echo "</go></anchor> "; echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo " "; echo "</card>"; } else if($action=="sendto") { addonline(getuid_sid($sid),"Sending PM",""); echo "<card id=\"main\" title=\"Inbox\">"; echo " "; $whonick = getnick_uid($who); echo "Send PM to: "; echo "User: <input name=\"who\" format=\"*x\" maxlength=\"15\"/> "; echo "Text: <input name=\"pmtext\" maxlength=\"500\"/> "; echo "<anchor>SEND<go href=\"inbxproc.php?action=sendto&amp;sid=$sid\" method=\"post\">"; echo "<postfield name=\"pmtext\" value=\"$(pmtext)\"/>"; echo "<postfield name=\"pmtou\" value=\"$(who)\"/>"; echo "</go></anchor> "; echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo " "; echo "</card>"; } else if($action=="main") { addonline(getuid_sid($sid),"User Inbox",""); echo "<card id=\"main\" title=\"INBOX\">"; echo " "; echo "View: <select name=\"vopt\">"; echo "<option value=\"all\">All</option>"; echo "<option value=\"snt\">Sent</option>"; echo "<option value=\"str\">Starred</option>"; echo "<option value=\"urd\">Unread</option>"; echo "</select>"; echo "<anchor> [GO]<go href=\"inbox.php\" method=\"get\">"; echo "<postfield name=\"view\" value=\"$(vopt)\"/>"; echo "<postfield name=\"action\" value=\"$action\"/>"; echo "<postfield name=\"sid\" value=\"$sid\"/>"; echo "</go></anchor>"; echo " "; $view = $_GET["view"]; //////ALL LISTS SCRIPT << if($view=="")$view="all"; if($page=="" || $page<=0)$page=1; $myid = getuid_sid($sid); $doit=false; $num_items = getpmcount($myid,$view); //changable $items_per_page= 7; $num_pages = ceil($num_items/$items_per_page); if($page>$num_pages)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; if($num_items>0) { if($doit) { $exp = "&amp;rwho=$myid"; }else { $exp = ""; } //changable sql if($view=="all") { $sql = "SELECT a.name, b.id, b.byuid, b.unread, b.starred FROM ibwf_users a INNER JOIN ibwf_private b ON a.id = b.byuid WHERE b.touid='".$myid."' ORDER BY b.timesent DESC LIMIT $limit_start, $items_per_page "; }else if($view=="snt") { $sql = "SELECT a.name, b.id, b.touid, b.unread, b.starred FROM ibwf_users a INNER JOIN ibwf_private b ON a.id = b.touid WHERE b.byuid='".$myid."' ORDER BY b.timesent DESC LIMIT $limit_start, $items_per_page "; }else if($view=="str") { $sql = "SELECT a.name, b.id, b.byuid, b.unread, b.starred FROM ibwf_users a INNER JOIN ibwf_private b ON a.id = b.byuid WHERE b.touid='".$myid."' AND b.starred='1' ORDER BY b.timesent DESC LIMIT $limit_start, $items_per_page "; }else if($view=="urd") { $sql = "SELECT a.name, b.id, b.byuid, b.unread, b.starred FROM ibwf_users a INNER JOIN ibwf_private b ON a.id = b.byuid WHERE b.touid='".$myid."' AND b.unread='1' ORDER BY b.timesent DESC LIMIT $limit_start, $items_per_page "; } echo " "; $items = mysql_query($sql); echo mysql_error(); while ($item = mysql_fetch_array($items)) { if($item[3]=="1") { $iml = "<img src=\"images/npm.gif\" alt=\"+\"/>"; }else{ if($item[4]=="1") { $iml = "<img src=\"images/spm.gif\" alt=\"*\"/>"; }else{ $iml = "<img src=\"images/opm.gif\" alt=\"-\"/>"; } } $lnk = "<a href=\"inbox.php?action=readpm&amp;pmid=$item[1]&amp;sid=$sid\">$iml $item[0]</a>"; echo "$lnk "; } echo " "; echo " "; $npage = $page+1; echo "<a href=\"inbox.php?action=sendto&amp;sid=$sid\">Send to</a> "; if($page>1) { $ppage = $page-1; echo "<a href=\"inbox.php?action=main&amp;page=$ppage&amp;sid=$sid&amp;view=$view$exp\">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href=\"inbox.php?action=main&amp;page=$npage&amp;sid=$sid&amp;view=$view$exp\">Next»</a>"; } echo " $page/$num_pages "; if($num_pages>2) { $rets = "Jump to page<input name=\"pg\" format=\"*N\" size=\"3\"/>"; $rets .= "<anchor>[GO]"; $rets .= "<go href=\"inbox.php\" method=\"get\">"; $rets .= "<postfield name=\"action\" value=\"$action\"/>"; $rets .= "<postfield name=\"sid\" value=\"$sid\"/>"; $rets .= "<postfield name=\"page\" value=\"$(pg)\"/>"; $rets .= "<postfield name=\"view\" value=\"$view\"/>"; $rets .= "</go></anchor>"; echo $rets; echo " "; } echo " "; echo "Delete: <select name=\"pmact\">"; echo "<option value=\"ust\">Unstarred</option>"; echo "<option value=\"red\">Read</option>"; echo "<option value=\"all\">All</option>"; echo "</select>"; echo "<anchor> [GO]<go href=\"inbxproc.php?action=proall&amp;sid=$sid\" method=\"post\">"; echo "<postfield name=\"pmact\" value=\"$(pmact)\"/>"; echo "</go></anchor>"; echo " "; }else{ echo " "; echo "You have no Private Messages"; echo " "; } ////// UNTILL HERE >> echo " "; echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo " "; echo "</card>"; } else if($action=="readpm") { addonline(getuid_sid($sid),"Reading PM",""); echo "<card id=\"main\" title=\"Read PM\">"; echo " "; $pminfo = mysql_fetch_array(mysql_query("SELECT text, byuid, timesent,touid, reported FROM ibwf_private WHERE id='".$pmid."'")); if(getuid_sid($sid)==$pminfo[3]) { $chread = mysql_query("UPDATE ibwf_private SET unread='0' WHERE id='".$pmid."'"); } if(($pminfo[3]==getuid_sid($sid))||($pminfo[1]==getuid_sid($sid))) { if(getuid_sid($sid)==$pminfo[3]) { if(isonline($pminfo[1])) { $iml = "<img src=\"images/onl.gif\" alt=\"+\"/>"; }else{ $iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>"; } $ptxt = "PM By: "; $bylnk = "<a href=\"index.php?action=viewuser&amp;who=$pminfo[1]&amp;sid=$sid\">$iml".getnick_uid($pminfo[1])."</a>"; }else{ if(isonline($pminfo[3])) { $iml = "<img src=\"images/onl.gif\" alt=\"+\"/>"; }else{ $iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>"; } $ptxt = "PM To: "; $bylnk = "<a href=\"index.php?action=viewuser&amp;who=$pminfo[3]&amp;sid=$sid\">$iml".getnick_uid($pminfo[3])."</a>"; } echo "$ptxt $bylnk "; $tmstamp = $pminfo[2]; $tmdt = date("d m Y - H:i:s", $tmstamp); echo "$tmdt "; $pmtext = parsepm($pminfo[0], $sid); $pmtext = str_replace("/faq","<a href=\"lists.php?action=faqs&amp;sid=$sid\">Users Questions</a>", $pmtext); $pmtext = str_replace("/help","<a href=\"help.php?sid=$sid\">Our help menu</a>", $pmtext); $pmtext = str_replace("/reader",getnick_uid($pminfo[3]), $pmtext); if(isspam($pmtext)) { if(($pminfo[4]=="0") && ($pminfo[1]!=1)) { mysql_query("UPDATE ibwf_private SET reported='1' WHERE id='".$pmid."'"); } } echo $pmtext; echo " "; echo " "; echo "Action: <select name=\"pmact\">"; echo "<option value=\"rep-$pmid\">Reply</option>"; echo "<option value=\"del-$pmid\">Delete</option>"; if(isstarred($pmid)) { echo "<option value=\"ust-$pmid\">Unstar</option>"; }else{ echo "<option value=\"str-$pmid\">Star</option>"; } echo "<option value=\"rpt-$pmid\">Report</option>"; echo "<option value=\"frd-$pmid\">Email To</option>"; echo "<option value=\"dnl-$pmid\">Download</option>"; echo "</select>"; echo "<anchor> [GO]<go href=\"inbxproc.php?action=proc&amp;sid=$sid\" method=\"post\">"; echo "<postfield name=\"pmact\" value=\"$(pmact)\"/>"; echo "</go></anchor>"; echo " <a href=\"inbox.php?action=dialog&amp;sid=$sid&amp;who=$pminfo[1]\">Dialog</a>"; }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>This PM ain't yours"; } echo " <a href=\"inbox.php?action=main&amp;sid=$sid\">Back to inbox</a> "; echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo " "; echo "</card>"; }else if($action=="dialog") { addonline(getuid_sid($sid),"Viewing PM Dialog",""); echo "<card id=\"main\" title=\"PM Dialog\">"; $uid = getuid_sid($sid); if($page=="" || $page<=0)$page=1; $myid = getuid_sid($sid); $pms = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE (byuid=$uid AND touid=$who) OR (byuid=$who AND touid=$uid) ORDER BY timesent")); echo mysql_error(); $num_items = $pms[0]; //changable $items_per_page= 7; $num_pages = ceil($num_items/$items_per_page); if($page>$num_pages)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; if($num_items>0) { echo " "; $pms = mysql_query("SELECT byuid, text, timesent FROM ibwf_private WHERE (byuid=$uid AND touid=$who) OR (byuid=$who AND touid=$uid) ORDER BY timesent LIMIT $limit_start, $items_per_page"); while($pm=mysql_fetch_array($pms)) { if(isonline($pm[0])) { $iml = "<img src=\"images/onl.gif\" alt=\"+\"/>"; }else{ $iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>"; } $bylnk = "<a href=\"index.php?action=viewuser&amp;who=$pm[0]&amp;sid=$sid\">$iml".getnick_uid($pm[0])."</a>"; echo $bylnk; $tmopm = date("d m y - h:i:s",$pm[2]); echo " $tmopm "; echo parsepm($pm[1], $sid); echo ""; echo " -------------- "; } echo " "; if($page>1) { $ppage = $page-1; echo "<a href=\"inbox.php?action=dialog&amp;page=$ppage&amp;sid=$sid&amp;who=$who\">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href=\"inbox.php?action=dialog&amp;page=$npage&amp;sid=$sid&amp;who=$who\">Next»</a>"; } echo " $page/$num_pages "; if($num_pages>2) { $rets = "Jump to page<input name=\"pg\" format=\"*N\" size=\"3\"/>"; $rets .= "<anchor>[GO]"; $rets .= "<go href=\"inbox.php\" method=\"get\">"; $rets .= "<postfield name=\"action\" value=\"$action\"/>"; $rets .= "<postfield name=\"sid\" value=\"$sid\"/>"; $rets .= "<postfield name=\"page\" value=\"$(pg)\"/>"; $rets .= "<postfield name=\"who\" value=\"$who\"/>"; $rets .= "</go></anchor>"; echo $rets; } }else{ echo " "; echo "NO DATA"; } echo " <a href=\"rwdpm.php?action=dlg&amp;sid=$sid&amp;who=$who\">Download</a> only first 50 messages "; echo "<a href=\"inbox.php?action=main&amp;sid=$sid\">Back to inbox</a> "; echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo " </card>"; } else{ addonline(getuid_sid($sid),"Lost in inbox lol",""); echo "<card id=\"main\" title=\"Inbox\">"; echo " "; echo "I don't know how did you get into here, but there's nothing to show "; echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo " </card>"; } ?> </wml>

inbxproc.php

<?php /* IrisBlaze wap forum by Ra'ed Shabana */ header("Content-type: text/vnd.wap.wml"); header("Cache-Control: no-store, no-cache, must-revalidate"); echo("<?xml version=\"1.0\"?>");

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

<?php include("config.php"); include("core.php"); connectdb(); $action = $_GET["action"]; $sid = $_GET["sid"]; $pmtext = $_POST["pmtext"]; $who = $_GET["who"]; if(islogged($sid)==false) { echo "<card id=\"main\" title=\"harderstyles.net\">"; echo " "; echo "You are not logged in "; echo "Or Your session has been expired "; echo "<a href=\"index.php\">Login</a>"; echo " "; echo "</card>"; echo "</wml>"; exit(); } if($action=="sendpm") { echo "<card id=\"main\" title=\"Inbox\">"; echo " "; $whonick = getnick_uid($who); $byuid = getuid_sid($sid); $tm = time(); $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'")); $pmfl = $lastpm[0]+getpmaf(); if($byuid==1)$pmfl=0; if($pmfl<$tm) { if(!isblocked($pmtext,$byuid)) { if((!isignored($byuid, $who))&&(!istrashed($byuid))) { $res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'"); }else{ $res = true; } if($res) { echo "<img src=\"images/ok.gif\" alt=\"O\"/>"; echo "PM was sent successfully to $whonick "; echo parsepm($pmtext, $sid); }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>"; echo "Can't Send PM to $whonick "; } }else{ $bantime = time() + (7*24*60*60); echo "<img src=\"images/notok.gif\" alt=\"X\"/>"; echo "Can't Send PM to $whonick "; echo "You just sent a link to one of the crapiest sites on earth The members of these sites spam here a lot, so go to that site and stay there if you don't like it here as a result of your stupid action: 1. you have lost your sheild 2. you have lost all your plusses 3. You are BANNED!"; mysql_query("INSERT INTO ibwf_penalties SET uid='".$byuid."', penalty='1', exid='1', timeto='".$bantime."', pnreas='Banned: Automatic Ban for spamming for a crap site'"); mysql_query("UPDATE ibwf_users SET plusses='0', shield='0' WHERE id='".$byuid."'"); mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='2', timesent='".$tm."'"); } }else{ $rema = $pmfl - $tm; echo "<img src=\"images/notok.gif\" alt=\"X\"/>"; echo "Flood control: $rema Seconds "; } echo " <a href=\"inbox.php?action=main&amp;sid=$sid\">Back to inbox</a> "; echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo " "; echo "</card>"; } else if($action=="sendto") { echo "<card id=\"main\" title=\"Inbox\">"; echo " "; $pmtou = $_POST["pmtou"]; $who = getuid_nick($pmtou); if($who==0) { echo "<img src=\"images/notok.gif\" alt=\"x\"/>User Does Not exist "; }else{ $whonick = getnick_uid($who); $byuid = getuid_sid($sid); $tm = time(); $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'")); $pmfl = $lastpm[0]+getpmaf(); if($pmfl<$tm) { if(!isblocked($pmtext,$byuid)) { if((!isignored($byuid, $who))&&(!istrashed($byuid))) { $res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'"); }else{ $res = true; } if($res) { echo "<img src=\"images/ok.gif\" alt=\"O\"/>"; echo "PM was sent successfully to $whonick "; echo parsepm($pmtext, $sid); }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>"; echo "Can't Send PM to $whonick "; } }else{ $bantime = time() + (7*24*60*60); echo "<img src=\"images/notok.gif\" alt=\"X\"/>"; echo "Can't Send PM to $whonick "; echo "You just sent a link to one of the crapiest sites on earth The members of these sites spam here a lot, so go to that site and stay there if you don't like it here as a result of your stupid action: 1. you have lost your sheild 2. you have lost all your plusses 3. You are BANNED!"; mysql_query("INSERT INTO ibwf_penalties SET uid='".$byuid."', penalty='1', exid='1', timeto='".$bantime."', pnreas='Banned: Automatic Ban for spamming for a crap site'"); mysql_query("UPDATE ibwf_users SET plusses='0', shield='0' WHERE id='".$byuid."'"); mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='2', timesent='".$tm."', reported='1'"); } }else{ $rema = $pmfl - $tm; echo "<img src=\"images/notok.gif\" alt=\"X\"/>"; echo "Flood control: $rema Seconds "; } } echo " <a href=\"inbox.php?action=main&amp;sid=$sid\">Back to inbox</a> "; echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo " "; echo "</card>"; } else if($action=="proc") { $pmact = $_POST["pmact"]; $pact = explode("-",$pmact); $pmid = $pact[1]; $pact = $pact[0]; echo "<card id=\"main\" title=\"Inbox\">"; echo " "; $pminfo = mysql_fetch_array(mysql_query("SELECT text, byuid, touid, reported FROM ibwf_private WHERE id='".$pmid."'")); if($pact=="rep") { addonline(getuid_sid($sid),"Sending PM",""); $whonick = getnick_uid($pminfo[1]); echo "Send PM to $whonick "; echo "<input name=\"pmtext\" maxlength=\"500\"/> "; echo "<anchor>SEND<go href=\"inbxproc.php?action=sendpm&amp;who=$pminfo[1]&amp;sid=$sid\" method=\"post\">"; echo "<postfield name=\"pmtext\" value=\"$(pmtext)\"/>"; echo "</go></anchor>"; }else if($pact=="del") { addonline(getuid_sid($sid),"Deleting PM",""); if(getuid_sid($sid)==$pminfo[2]) { if($pminfo[3]=="1") { echo "<img src=\"images/notok.gif\" alt=\"X\"/>This PM is reported, thus it can't be deleted"; }else{ $del = mysql_query("DELETE FROM ibwf_private WHERE id='".$pmid."' "); if($del) { echo "<img src=\"images/ok.gif\" alt=\"O\"/>PM delted successfully"; }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>Can't Delete PM at the moment"; } } }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>This PM ain't yours"; } }else if($pact=="str") { addonline(getuid_sid($sid),"Starring PM",""); if(getuid_sid($sid)==$pminfo[2]) { $str = mysql_query("UPDATE ibwf_private SET starred='1' WHERE id='".$pmid."' "); if($str) { echo "<img src=\"images/ok.gif\" alt=\"O\"/>PM starred successfully"; }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>Can't star PM at the moment"; } }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>This PM ain't yours"; } }else if($pact=="ust") { addonline(getuid_sid($sid),"Unstarring PM",""); if(getuid_sid($sid)==$pminfo[2]) { $str = mysql_query("UPDATE ibwf_private SET starred='0' WHERE id='".$pmid."' "); if($str) { echo "<img src=\"images/ok.gif\" alt=\"O\"/>PM unstarred successfully"; }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>Can't unstar PM at the moment"; } }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>This PM ain't yours"; } }else if($pact=="rpt") { addonline(getuid_sid($sid),"Reporting PM",""); if(getuid_sid($sid)==$pminfo[2]) { if($pminfo[3]=="0") { $str = mysql_query("UPDATE ibwf_private SET reported='1' WHERE id='".$pmid."' "); if($str) { echo "<img src=\"images/ok.gif\" alt=\"O\"/>PM reported to mods successfully"; }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>Can't report PM at the moment"; } }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>This PM is already reported"; } }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>This PM ain't yours"; } } else if($pact=="frd") { addonline(getuid_sid($sid),"Forwarding PM",""); if(getuid_sid($sid)==$pminfo[2]||getuid_sid($sid)==$pminfo[1]) { echo "Forward to e-mail: "; echo "<input name=\"email\" maxlength=\"250\"/> "; echo "<anchor>Froward<go href=\"inbxproc.php?action=frdpm&amp;sid=$sid\" method=\"post\">"; echo "<postfield name=\"email\" value=\"$(email)\"/>"; echo "<postfield name=\"pmid\" value=\"$pmid\"/>"; echo "</go></anchor>"; }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>This PM ain't yours"; } } else if($pact=="dnl") { addonline(getuid_sid($sid),"Downloading PM",""); if(getuid_sid($sid)==$pminfo[2]||getuid_sid($sid)==$pminfo[1]) { echo "<img src=\"images/ok.gif\" alt=\"X\"/>request processed successfully "; echo "<a href=\"rwdpm.php?action=dpm&amp;pmid=$pmid&amp;sid=$sid\">Download PM</a>"; }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>This PM ain't yours"; } } echo " <a href=\"inbox.php?action=main&amp;sid=$sid\">Back to inbox</a> "; echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo " "; echo "</card>"; } else if($action=="proall") { $pact = $_POST["pmact"]; echo "<card id=\"main\" title=\"Inbox\">"; echo " "; addonline(getuid_sid($sid),"Deleting PMs",""); $uid = getuid_sid($sid); if($pact=="ust") { $del = mysql_query("DELETE FROM ibwf_private WHERE touid='".$uid."' AND reported !='1' AND starred='0' And unread='0'"); if($del) { echo "<img src=\"images/ok.gif\" alt=\"O\"/>All PMS except starred and unread are deleted successfully"; }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>Can't Delete PM at the moment"; } }else if($pact=="red") { $del = mysql_query("DELETE FROM ibwf_private WHERE touid='".$uid."' AND reported !='1' and unread='0'"); if($del) { echo "<img src=\"images/ok.gif\" alt=\"O\"/>All PMS except unread, including starred are deleted successfully"; }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>Can't Delete PM at the moment"; } }else if($pact=="all") { $del = mysql_query("DELETE FROM ibwf_private WHERE touid='".$uid."' AND reported !='1'"); if($del) { echo "<img src=\"images/ok.gif\" alt=\"O\"/>All PMS except reported, including starred and unread are deleted successfully"; }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>Can't Delete PM at the moment"; } } echo " <a href=\"inbox.php?action=main&amp;sid=$sid\">Back to inbox</a> "; echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo " "; echo "</card>"; } else if($action=="frdpm") { $email = $_POST["email"]; $pmid = $_POST["pmid"]; addonline(getuid_sid($sid),"Forwarding PM",""); echo "<card id=\"main\" title=\"Inbox\">"; echo " "; $pminfo = mysql_fetch_array(mysql_query("SELECT text, byuid, timesent,touid, reported FROM ibwf_private WHERE id='".$pmid."'")); if(($pminfo[3]==getuid_sid($sid))||($pminfo[1]==getuid_sid($sid))) { $from_head = "From: [noreplay@harderstyles.net](mailto:noreplay@harderstyles.net)"; $subject = "PM By ".getnick_uid($pminfo[1])." To ".getnick_uid($pminfo[3])." (harderstyles.net)"; $content = "Date: ".date("l d/m/y H:i:s", $pminfo[2])."\n\n"; $content .= $pminfo[0]."\n------------------------\n"; $content .= "harderstyles.net: The best wap community!"; mail($email, $subject, $content, $from_head); echo "<img src=\"images/ok.gif\" alt=\"X\"/>PM forwarded to $email"; }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>This PM ain't yours"; } echo " <a href=\"inbox.php?action=main&amp;sid=$sid\">Back to inbox</a> "; echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo " "; echo "</card>"; } else{ addonline(getuid_sid($sid),"Lost in inbox lol",""); echo "<card id=\"main\" title=\"Inbox\">"; echo " "; echo "I don't know how did you get into here, but there's nothing to show "; echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo " </card>"; } ?> </wml>

:/ i can see that you still havent read my msgs properly ..

did you not see the part where i asked you to give me your inbox.php file and i would do it all for you .. ? obviously not ..

Guest #18

add this into your inbox.php file you wanted the steps and here they are ..

CODEelse if($action=="fwd") { addonline(getuid_sid($sid),"Forwarding PM",""); echo "<card id="main" title="Inbox">"; echo " ";

$whonick = getnick_uid($who); $pmid = $_GET['pmid']; $pmtxt = mysql_fetch_array(mysql_query("SELECT text FROM ibwf_private WHERE id='".$pmid."'")); $fwdmsg = $pmtxt[0];

echo "Send PM to:

"; echo "User: <input name="who" format="*x" maxlength="15"/> ";

if($fwdmsg !== ""){ $pmtext = parsepm($fwdmsg, $sid); $pmtext = str_replace("/faq","<a href="lists.php?action=faqs&sid=$sid">Users Questions</a>", $pmtext); $pmtext = str_replace("/help","<a href="help.php?sid=$sid">Our help menu</a>", $pmtext); $pmtext = str_replace("/reader",getnick_uid($pminfo[3]), $pmtext); echo $pmtext; }else{ echo "Text: <input name="pmtext" maxlength="500"/> "; }

echo "<anchor>SEND<go href="inbxproc.php?action=sendto&sid=$sid" method="post">"; echo "<postfield name="pmtext" value="$(pmtext)"/>"; echo "<postfield name="pmtou" value="$(who)"/>"; echo "</go></anchor>

";

echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>";

echo "Home</a>"; echo " "; echo "</card>"; }

and add this link to your inbox.php?$action=="readpm"

  echo "<a href=\"inbxproc.php?action=fwd&sid=$sid&pmid=$pmid\">Forward PM</a>";

i can put it into the files for you, but remember that none of the code here has been tested and i wont be able to test the whole file for you etc ..

linkrx7 #19

heres my inbox forward duno if most u will no how to use it as its done lot differently but here it is

CREATE TABLE `inbox` (
  `id` int(100) NOT NULL auto_increment,
  `text` text NOT NULL,
  `byid` int(100) NOT NULL default '0',
  `toid` int(100) NOT NULL default '0',
  `fwd` int(100) NOT NULL default '0',
  `unread` char(1) NOT NULL default '1',
  `timesent` int(100) NOT NULL default '0',
  `archive` char(1) NOT NULL default '0',
  `reported` char(1) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;

and the code for script

if(($action=="")&&($mode==""))
{
addonline(getuid_sid($sid),"Inbox","inbox.php$chatlink2$pass");
$nick=getnick_sid($sid);
echo head_tag($nick."@Inbox",1,$nick);
$title="[b]Inbox[/b]";
$main=$center;
if(($script=="html")||($script=="xhtml")){
$main.="<form action=\"inbox.php?action=send&sid=$sid\" method=\"post\">";
}
$main.="[b]To:[/b]<input name=\"who\" format=\"*x\" size=\"12\" maxlength=\"12\"/> ";
if(($script=="html")||($script=="xhtml")){
$main.="<input type=\"Submit\" value=\"Send\"></form>";
}else if($script=="wml"){
$main.="<anchor>Send<go href=\"inbox.php?action=send&sid=$sid\" method=\"post\">
<postfield name=\"user\" value=\"$(user)\"/>
</go></anchor>".$center2;
}
$main.=$center2.$center;
if($page==""||$page<=0)$page=1;
$num_items=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM inbox WHERE ((toid='".getuid_sid($sid)."' AND fwd='0') OR (fwd='".getuid_sid($sid)."')) AND archive='0'"));
$items_per_page=10;
$num_pages=ceil($num_items[0]/$items_per_page);
if($page>$num_pages)$page=$num_pages;
$limit_start=($page-1)*$items_per_page;
if($num_items[0]>0){
$sql="SELECT id, byid, fwd, unread, archive, toid FROM inbox 
WHERE ((toid='".getuid_sid($sid)."' AND fwd='0') 
OR (fwd='".getuid_sid($sid)."')) AND archive='0'
ORDER BY !unread,id DESC LIMIT $limit_start, $items_per_page
";
$items=mysql_query($sql);
$main.=mysql_error();
while($item=mysql_fetch_array($items)){
if(($item[2]==getuid_sid($sid))&&($item[3]=="1")){$iml="<img src=\"images/fpm.gif\" alt=\"+\"/>";}
else if(($item[2]==getuid_sid($sid))&&($item[3]=="0")){$iml="<img src=\"images/ofpm.gif\" alt=\"-\"/>";}
else if($item[3]=="1"){$iml="<img src=\"images/npm.gif\" alt=\"+\"/>";}
else if($item[4]=="1"){$iml="<img src=\"images/spm.gif\" alt=\"*\"/>";}
else if($item[3]=="0"){$iml="<img src=\"images/opm.gif\" alt=\"-\"/>";}
if($item[2]==getuid_sid($sid)){
$main.="<a href=\"inbox.php?action=read&id=$item[0]&sid=$sid$chatlink$pass\">$iml ".getnick_uid($item[5])."</a>
";
}else{
$main.="<a href=\"inbox.php?action=read&id=$item[0]&sid=$sid$chatlink$pass\">$iml ".getnick_uid($item[1])."</a>
";
}
}
$main.=$center2.$center;
$npage=$page+1;
if($page>1){
$ppage=$page-1;
$main.="<a href=\"inbox.php?page=$ppage&sid=$sid$chatlink$pass\">‹-Prev</a> ";
}if($page<$num_pages){
$npage=$page+1;
$main.="<a href=\"inbox.php?page=$npage&sid=$sid$chatlink$pass\">Next-›</a>";
}
$main.="
$page/$num_pages";
if($num_pages>2){$main.=getjumper("inbox",$action,$mode,"","",$sid);}
}else{
$main.="You have no Inbox Messages

";
}
if($location=="chat"){$main.="$twokey<a $key2 href=\"chat.php?action=chat&sid=$sid&rid=$rid$pass\">Back To $rname</a>
";}
$L1="$threekey<a $key3 href=\"inbox.php?time=".date('dmHis')."&sid=$sid$chatlink$pass\">Refresh</a>";
$L2="$fourkey<a $key4 href=\"inbox.php?mode=delete&id=all&sid=$sid$chatlink$pass\">Delete All</a>";
$count=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM users a INNER JOIN inbox b ON a.id = b.byid WHERE b.byid='".getuid_sid($sid)."'"));
$L3="$fivekey<a $key5 href=\"inbox.php?action=outbox&sid=$sid$chatlink$pass\">Outbox($count[0])</a>";
$count=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM users a INNER JOIN inbox b ON a.id = b.byid WHERE ((b.toid='".getuid_sid($sid)."') OR (b.fwd='".getuid_sid($sid)."')) AND b.archive='1'"));
$L4="$sixkey<a $key6 href=\"inbox.php?action=archive&sid=$sid$chatlink$pass\">Archive($count[0])</a>";
$L5="$sevenkey<a $key7 href=\"buds.php?sid=$sid\">BuddyList</a>";
$L6="$eightkey<a $key8 href=\"chat.php?sid=$sid\">Chat</a>";
$L7="$ninekey<a $key9 href=\"forums.php?sid=$sid\">Forums</a>";
$L8="$zerokey<a $key0 href=\"main.php?sid=$sid\"><img src=\"images/home.gif\" alt=\"\"/>Home</a>";
$main.=$center2;
if($script=="html"){echo html($sid,$title,1,1,$L1,$L2,$L3,$L4,$L5,$L6,$L7,$L8,$main);}
else if($script=="xhtml"){echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,$L6,$L7,$L8,$main);}
else if($script=="wml"){echo wml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,$L6,$L7,$L8,$main);}
echo foot_tag();
}
/////////////////////////FORWARD INBOX/////////////////////////

else if(($action=="forward")&&($mode==""))
{
addonline(getuid_sid($sid),"Forwarding Inbox","inbox.php?action=$action$chatlink$pass");
$nick=getnick_sid($sid);
echo head_tag($nick."@Forward Inbox",1,$nick);
$title="[b]Forward Inbox[/b]";
$inbox=mysql_fetch_array(mysql_query("SELECT text, toid FROM inbox WHERE id='".$id."'"));
if(getuid_sid($sid)!=$inbox[1]){
$main=$center."
<img src=\"images/notok.gif\" alt=\"x\"/>
This Inbox Is Not Yours
".$center2.$center;
$L1="$zerokey<a $key0 href=\"main.php?sid=$sid\"><img src=\"images/home.gif\" alt=\"\"/>Home</a>";
$main.=$center2;
if($script=="html"){echo html($sid,$title,1,1,$L1,0,0,0,0,0,0,0,$main);}
else if($script=="xhtml"){echo xhtml($sid,$title,1,$L1,0,0,0,0,0,0,0,$main);}
else if($script=="wml"){echo wml($sid,$title,1,$L1,0,0,0,0,0,0,0,$main);}
echo foot_tag();
exit();
}if(($script=="html")||($script=="xhtml")){
$main.="<form action=\"inbox.php?mode=send&id=$id&sid=$sid$chatlink$pass\" method=\"post\">";
}
$main.=$center."
[b]Message:[/b]
".getbbcode($inbox[0],$sid,1)."

[b]Forward To:[/b]
<input name=\"fwd\" maxlength=\"12\"/>
";
if(($script=="html")||($script=="xhtml")){
$main.="<input type=\"Submit\" value=\"Forward\">$center2</form>";
}else if($script=="wml"){
$main.="<anchor>Forward<go href=\"mode=send&id=$id&sid=$sid$chatlink$pass\" method=\"post\">
<postfield name=\"fwd\" value=\"$(fwd)\"/>
</go></anchor>$center2";
}
$main.=$center;
$L1="$sixkey<a $key6 href=\"inbox.php?sid=$sid$chatlink$pass\">Inbox</a>";
$L2="$sevenkey<a $key7 href=\"buds.php?sid=$sid\">BuddyList</a>";
$L3="$eightkey<a $key8 href=\"chat.php?sid=$sid\">Chat</a>";
$L4="$ninekey<a $key9 href=\"forums.php?sid=$sid\">Forums</a>";
$L5="$zerokey<a $key0 href=\"main.php?sid=$sid\"><img src=\"images/home.gif\" alt=\"\"/>Home</a>";
$main.=$center2;
if($script=="html"){echo html($sid,$title,1,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);}
else if($script=="xhtml"){echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);}
else if($script=="wml"){echo wml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);}
echo foot_tag();
}
else if(($action=="")&&($mode=="send"))
{
addonline(getuid_sid($sid),"Sending Inbox","inbox.php?mode=$mode$chatlink$pass");
$nick=getnick_sid($sid);
echo head_tag($nick."@Send Inbox",1,$nick);
$title="[b]Send Inbox[/b]";
$main=$center;
$lastinbox=mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM inbox WHERE byid='".getuid_sid($sid)."'"));
if($lastinbox[0]+msg_antiflood()>time()){
$rema=$pmfl-$tm;
$main.="<img src=\"images/notok.gif\" alt=\"x\"/>
Flood control: ".$lastinbox[0]+msg_antiflood()-time()." Seconds
".$center2.$center;
$L1="$sixkey<a $key6 href=\"inbox.php?sid=$sid$chatlink$pass\">Inbox</a>";
$L2="$sevenkey<a $key7 href=\"buds.php?sid=$sid\">BuddyList</a>";
$L3="$eightkey<a $key8 href=\"chat.php?sid=$sid\">Chat</a>";
$L4="$ninekey<a $key9 href=\"forums.php?sid=$sid\">Forums</a>";
$L5="$zerokey<a $key0 href=\"main.php?sid=$sid\"><img src=\"images/home.gif\" alt=\"\"/>Home</a>";
$main.=$center2;
if($script=="html"){echo html($sid,$title,1,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);}
else if($script=="xhtml"){echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);}
else if($script=="wml"){echo wml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);}
echo foot_tag();
exit();
}if((ignored(getuid_sid($sid),$who,0)==2)||(ignored(getuid_sid($sid),getuid_nick($fwd),0)==2)){
$main.="<img src=\"images/notok.gif\" alt=\"x\"/>
Failed Sending inbox To ".getnick_uid($who)." they hav u on ignore...
".$center2.$center;
$L1="$sixkey<a $key6 href=\"inbox.php?sid=$sid$chatlink$pass\">Inbox</a>";
$L2="$sevenkey<a $key7 href=\"buds.php?sid=$sid\">BuddyList</a>";
$L3="$eightkey<a $key8 href=\"chat.php?sid=$sid\">Chat</a>";
$L4="$ninekey<a $key9 href=\"forums.php?sid=$sid\">Forums</a>";
$L5="$zerokey<a $key0 href=\"main.php?sid=$sid\"><img src=\"images/home.gif\" alt=\"\"/>Home</a>";
$main.=$center2;
if($script=="html"){echo html($sid,$title,1,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);}
else if($script=="xhtml"){echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);}
else if($script=="wml"){echo wml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);}
echo foot_tag();
exit();
}else if(blocked_site($message,getuid_sid($sid))){
$bantime=time()+(30*24*60*60);
$main.="<img src=\"images/notok.gif\" alt=\"X\"/>
Can't Send Inbox to ".getnick_uid($who)."

You just sent a link to one of the crapiest sites on earth
 The members of these sites spam here a lot, so go to that site and stay there if you don't like it here
 as a result of your stupid action:
1. you have lost your sheild
2. you have lost all your plusses
3. You are BANNED!";
mysql_query("INSERT INTO logs SET action='autoban', details='[b]".getnick_uid(1)."[/b] auto banned ".getnick_uid($who)." for spamming inbox', date='".time()."'"); 
mysql_query("INSERT INTO banned SET uid='".getuid_sid($sid)."', penalty='1', byid='1', remaining='".$bantime."', reason='Banned: Automatic Ban for spamming for a crap site'");
mysql_query("UPDATE users SET points='0', shield='0' WHERE id='".getuid_sid($sid)."'");
mysql_query("INSERT INTO inbox SET text='[b](forwarded spam via inbox)[/b][br/]".$message."', byid='".getuid_sid($sid)."', toid='1', timesent='".time()."'");
$main.=$center2;
if($script=="html"){echo html($sid,$title,1,0,0,0,0,0,0,0,0,0,$main);}
else if($script=="xhtml"){echo xhtml($sid,$title,0,0,0,0,0,0,0,0,0,$main);}
else if($script=="wml"){echo wml($sid,$title,0,0,0,0,0,0,0,0,0,$main);}
echo foot_tag();
exit();
}else if(($id!=0)&&(isuser(getuid_nick($fwd)))){
$inbox=mysql_fetch_array(mysql_query("SELECT text, byid, toid, timesent FROM inbox WHERE id='".$id."'"));
mysql_query("INSERT INTO inbox SET text='".$inbox[0]."', byid='".$inbox[1]."', toid='".$inbox[2]."', fwd='".getuid_nick($fwd)."', timesent='".$inbox[3]."'");
$main.="<img src=\"images/ok.gif\" alt=\"O\"/>
Inbox Forwarded To $fwd Successfully
".$center2.$center;
$L1="$sixkey<a $key6 href=\"inbox.php?sid=$sid$chatlink$pass\">Inbox</a>";
$L2="$sevenkey<a $key7 href=\"buds.php?sid=$sid\">BuddyList</a>";
$L3="$eightkey<a $key8 href=\"chat.php?sid=$sid\">Chat</a>";
$L4="$ninekey<a $key9 href=\"forums.php?sid=$sid\">Forums</a>";
$L5="$zerokey<a $key0 href=\"main.php?sid=$sid\"><img src=\"images/home.gif\" alt=\"\"/>Home</a>";
$main.=$center2;
if($script=="html"){echo html($sid,$title,1,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);}
else if($script=="xhtml"){echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);}
else if($script=="wml"){echo wml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);}
echo foot_tag();
exit();
}
$res=mysql_query("INSERT INTO inbox SET text='".$message."', byid='".getuid_sid($sid)."', toid='".$who."', timesent='".time()."'");
if($res){
$main.="<img src=\"images/ok.gif\" alt=\"O\"/>
Inbox was sent successfully to ".getnick_uid($who)
."
".getbbcode($messge,$sid,1);
}else{
$main.="<img src=\"images/notok.gif\" alt=\"X\"/>
Can't Send Inbox to ".getnick_uid($who)."";
}
$link=mysql_fetch_array(mysql_query("SELECT link FROM online WHERE uid='".getuid_sid($sid)."'"));
$main.=$center2.$center."
<a href=\"inbox.php?sid=$sid$chatlink$pass\">Ok!</a>

";
if($location=="chat"){$main.="$fivekey<a $key5 href=\"chat.php?action=chat&sid=$sid&rid=$rid$pass\">Back To $rname</a>
";}
$L1="$sixkey<a $key6 href=\"inbox.php?sid=$sid$chatlink$pass\">Inbox</a>";
$L2="$sevenkey<a $key7 href=\"buds.php?sid=$sid\">BuddyList</a>";
$L3="$eightkey<a $key8 href=\"chat.php?sid=$sid\">Chat</a>";
$L4="$ninekey<a $key9 href=\"forums.php?sid=$sid\">Forums</a>";
$L5="$zerokey<a $key0 href=\"main.php?sid=$sid\"><img src=\"images/home.gif\" alt=\"\"/>Home</a>";
$main.=$center2;
if($script=="html"){echo html($sid,$title,1,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);}
else if($script=="xhtml"){echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);}
else if($script=="wml"){echo wml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);}
echo foot_tag();
}

and once again u will most likely only be able to use this as a guide as its from the new script im making which is mostly all from functions and i wont post rest of script if ur smart this will help and as i said in earlier post that i chose hard way of doing the forward option lol

Guest #20

lol i wont bother quoting you linkrx7, but im just wondering what filenames youve used because it doesnt give any info in that post

if you just intended it as a (very difficult to follow) guide, then fair enough it doesnt matter too much, just though it would be useful =]

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