can some one please recode this for wapdesire v_2 script please
this is for read inbox and pop ups
thanks to any one that can help with this thanks
this is for read inbox and pop ups
Code:
//////////////////////////////////User Inboxes(owner) else if($action=="readmsgs") { $who = mysql_real_escape_string( $_GET["who"] ); addonline(getuid_sid($sid),"Owner Tools",""); if(!isowner(getuid_sid($sid))) { echo "<head>"; echo "<title>Error!!!</title>"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">"; echo "</head>"; echo "<body>"; echo "<p align=\"center\">"; echo "You are not an owner<br/>"; echo "<br/>"; echo "<a href=\"index.php\">Home</a>"; echo "</p>"; echo "</body>"; }else{ echo "<head>"; echo "<title>Users Sent Inboxes</title>"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">"; echo "</head>"; echo "<body>"; $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=$who ORDER BY timesent")); echo mysql_error(); $num_items = $pms[0]; //changable $items_per_page= 10; $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 "<p>"; $pms = mysql_query("SELECT byuid, touid, text, timesent FROM ibwf_private WHERE byuid=$who ORDER BY timesent LIMIT $limit_start, $items_per_page"); while($pm=mysql_fetch_array($pms)) { if(isonline($pm[0])) { $onlby = "<img src=\"../phpThumb/phpThumb.php?src=../images/onl.gif\" alt=\"+\"/>"; }else{ $onlby = "<img src=\"../phpThumb/phpThumb.php?src=../images/ofl.gif\" alt=\"-\"/>"; } if(isonline($pm[1])) { $onlto = "<img src=\"../phpThumb/phpThumb.php?src=../images/onl.gif\" alt=\"+\"/>"; }else{ $onlto = "<img src=\"../phpThumb/phpThumb.php?src=../images/ofl.gif\" alt=\"-\"/>"; } $bylnk = "<a href=\"index.php?action=viewuser&who=$pm[0]&sid=$sid\">$onlby".getnick_uid($pm[0])."</a>"; $tolnk = "<a href=\"index.php?action=viewuser&who=$pm[1]&sid=$sid\">$onlto".getnick_uid($pm[1])."</a>"; echo "$bylnk <img src=\"../phpThumb/phpThumb.php?src=../moods/in.gif\" alt=\"-\"/> $tolnk"; $tmopm = date("d m y - h:i:s",$pm[3]); echo " $tmopm<br/>"; echo parsepm($pm[2], $sid); echo "<br/>--------------<br/>"; } echo "</p><p align=\"center\">"; if($page>1) { $ppage = $page-1; echo "<a href=\"lists.php?action=readmsgs&page=$ppage&sid=$sid&who=$who\">«Prev</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href=\"lists.php?action=readmsgs&page=$npage&sid=$sid&who=$who\">Next»</a>"; } echo "<br/>$page/$num_pages<br/>"; if($num_pages>2) { $rets = "<form action=\"lists.php\" method=\"get\">"; $rets .= "<input name=\"page\" style=\"-wap-input-format: '*N'\" size=\"2\"/>"; $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\">"; $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\">"; $rets .= "<input type=\"hidden\" name=\"who\" value=\"$who\">"; $rets .= "<input type=\"Submit\" name=\"Submit\" Value=\"Go To Page\"></form>"; echo $rets; } }else{ echo "<p align=\"center\">"; echo "NO DATA"; } echo "<p align=\"center\">"; $unick = getnick_uid($who); echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">$unick's Profile</a><br/>"; echo "<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../phpThumb/phpThumb.php?src=../images/home.png\" alt=\"\"/>Home</a>"; echo "</p>"; echo "</body>"; exit(); } } //////////////////////////////////User Popups(owner) else if($action=="readpops") { $who = mysql_real_escape_string( $_GET["who"] ); addonline(getuid_sid($sid),"Owner Tools",""); if(!isowner(getuid_sid($sid))) { echo "<head>"; echo "<title>Error!!!</title>"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">"; echo "</head>"; echo "<body>"; echo "<p align=\"center\">"; echo "You are not an owner<br/>"; echo "<br/>"; echo "<a href=\"index.php\">Home</a>"; echo "</p>"; echo "</body>"; }else{ echo "<head>"; echo "<title>Users Sent Popups</title>"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">"; echo "</head>"; echo "<body>"; $uid = getuid_sid($sid); if($page=="" || $page<=0)$page=1; $myid = getuid_sid($sid); $pms = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_popups WHERE byuid=$who ORDER BY timesent")); echo mysql_error(); $num_items = $pms[0]; //changable $items_per_page= 10; $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 "<p>"; $pms = mysql_query("SELECT byuid, touid, text, timesent FROM ibwf_popups WHERE byuid=$who ORDER BY timesent LIMIT $limit_start, $items_per_page"); while($pm=mysql_fetch_array($pms)) { if(isonline($pm[0])) { $onlby = "<img src=\"../phpThumb/phpThumb.php?src=../images/onl.gif\" alt=\"+\"/>"; }else{ $onlby = "<img src=\"../phpThumb/phpThumb.php?src=../images/ofl.gif\" alt=\"-\"/>"; } if(isonline($pm[1])) { $onlto = "<img src=\"../phpThumb/phpThumb.php?src=../images/onl.gif\" alt=\"+\"/>"; }else{ $onlto = "<img src=\"../phpThumb/phpThumb.php?src=../images/ofl.gif\" alt=\"-\"/>"; } $bylnk = "<a href=\"index.php?action=viewuser&who=$pm[0]&sid=$sid\">$onlby".getnick_uid($pm[0])."</a>"; $tolnk = "<a href=\"index.php?action=viewuser&who=$pm[1]&sid=$sid\">$onlto".getnick_uid($pm[1])."</a>"; echo "$bylnk <img src=\"../phpThumb/phpThumb.php?src=../moods/in.gif\" alt=\"-\"/> $tolnk"; $tmopm = date("d m y - h:i:s",$pm[3]); echo " $tmopm<br/>"; echo parsepm($pm[2], $sid); echo "<br/>--------------<br/>"; } echo "</p><p align=\"center\">"; if($page>1) { $ppage = $page-1; echo "<a href=\"lists.php?action=readpops&page=$ppage&sid=$sid&who=$who\">«Prev</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href=\"lists.php?action=readpops&page=$npage&sid=$sid&who=$who\">Next»</a>"; } echo "<br/>$page/$num_pages<br/>"; if($num_pages>2) { $rets = "<form action=\"lists.php\" method=\"get\">"; $rets .= "<input name=\"page\" style=\"-wap-input-format: '*N'\" size=\"2\"/>"; $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\">"; $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\">"; $rets .= "<input type=\"hidden\" name=\"who\" value=\"$who\">"; $rets .= "<input type=\"Submit\" name=\"Submit\" Value=\"Go To Page\"></form>"; echo $rets; } }else{ echo "<p align=\"center\">"; echo "NO DATA"; } echo "<p align=\"center\">"; $unick = getnick_uid($who); echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$who\">$unick's Profile</a><br/>"; echo "<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../phpThumb/phpThumb.php?src=../images/home.png\" alt=\"\"/>Home</a>"; echo "</p>"; echo "</body>"; exit(); } }
Comment