pm 2 all club members.. I SEARCHED it.. but no results
Pm To All Club Members
Collapse
X
-
here :Code:else if($action=="gocl") { $clid = $_GET["clid"]; $clinfo = mysql_fetch_array(mysql_query("SELECT name, owner, description, rules, logo, plusses, created FROM ibwf_clubs WHERE id='".$clid."'")); addonline(getuid_sid($sid),"Viewing A Club",""); $clnm = htmlspecialchars($clinfo[0]); echo "<card id=\"main\" title=\"$clnm\">"; echo "<p align=\"center\">"; echo "[size="1"][b]$clnm[/b][/size] "; if(trim($clinfo[4])=="") { echo "<img src=\"images/logo.jpg\" alt=\"logo\"/>"; }else{ echo "<img src=\"$clinfo[4]\" alt=\"logo\"/>"; } echo "</p>"; echo " [size="1"]"; echo "Club ID: [b]$clid[/b] "; $uid = getuid_sid($sid); $cango = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid='".$clid."' AND uid='".$uid."' AND accepted='1'")); echo "Owner: <a href=\"index.php?action=viewuser&who=$clinfo[1]&sid=$sid\">".getnick_uid($clinfo[1])."</a> "; $mems = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid='".$clid."' AND accepted='1'")); echo "Members: <a href=\"lists.php?action=clmem&sid=$sid&clid=$clid\">$mems[0]</a> "; echo "Created On: ".date("d/m/y", $clinfo[6])." "; echo "Plusses credit: $clinfo[5] "; $fid = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_forums WHERE clubid='".$clid."'")); $rid = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_rooms WHERE clubid='".$clid."'")); $tps = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE fid='".$fid[0]."'")); $pss = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts a INNER JOIN ibwf_topics b ON a.tid = b.id WHERE b.fid='".$fid[0]."'")); if(getuid_sid($sid)==$clinfo[1]) { echo "<a href=\"index.php?action=pmallmem&sid=$sid&clid=$clid\">PM to All Club Members</a> "; } if(($cango[0]>0)||isowner($uid)) { if($clid==161) { echo "<a href=\"http://space.sihalawap.com/modcp.php?action=clubup;sid=$sid&clid=$clid\">Uploader</a> "; } if($clid==248) { echo "<a href=\"http://space.sihalawap.com/modcp.php?action=clubup2;sid=$sid&clid=$clid\">Uploader</a> "; } $noa = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_announcements WHERE clid='".$clid."'")); echo " <a href=\"lists.php?action=annc&sid=$sid&clid=$clid\"><img src=\"images/annc.gif\" alt=\"!\"/>Announcements($noa[0])</a> "; $noa = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chat WHERE rid='".$rid[0]."'")); echo "<a href=\"chat.php?sid=$sid&rid=$rid[0]\"><img src=\"images/chat.gif\" alt=\"*\"/>$clnm Chat($noa[0])</a> "; echo "<a href=\"index.php?action=viewfrm&sid=$sid&fid=$fid[0]\"><img src=\"images/1.gif\" alt=\"*\"/>$clnm Forum($tps[0]/$pss[0])</a> "; $ismem = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid='".$clid."' AND uid='".getuid_sid($sid)."'")); if($ismem[0]>0) { //unjoin if($clinfo[1]!=$uid) { echo "<a href=\"genproc.php?action=unjc&sid=$sid&clid=$clid\">Unjoin Club</a>"; } }else{ echo "<a href=\"genproc.php?action=reqjc&sid=$sid&clid=$clid\">Join Now!</a>"; } if(isowner(getuid_sid($sid))) { echo " <a href=\"admincp.php?action=club&sid=$sid&clid=$clid\">Admin Tools</a>"; } if($clinfo[1]==$uid) { //club owner $mems = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid='".$clid."' AND accepted='0'")); echo " <a href=\"lists.php?action=clreq&sid=$sid&clid=$clid\">»Requests($mems[0])</a> "; } }else{ echo "Topics: [b]$tps[0][/b], Posts: [b]$pss[0][/b] "; echo "[b]Description:[/b] "; echo htmlspecialchars($clinfo[2]); echo " "; echo "[b]Rules:[/b] "; echo htmlspecialchars($clinfo[3]); echo " "; echo "Seems Good? <a href=\"genproc.php?action=reqjc&sid=$sid&clid=$clid\">Join Now!</a>"; } echo "[/size]</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=clubs&sid=$sid\">"; echo "Clubs list</a> "; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</card>"; } else if($action=="pmallmem") { $clid=$_GET["clid"]; $clinfo = mysql_fetch_array(mysql_query("SELECT name, owner, description, rules, logo, plusses, created FROM ibwf_clubs WHERE id='".$clid."'")); addonline(getuid_sid($sid),"PMing Club Members","index.php?action=$action"); echo "<card id=\"main\" title=\"sihalawap.com\">"; echo "<p align=\"center\">"; echo "[b]PM All Members Of The $clinfo[0] Club[/b] "; echo "Please enter the message You Wish To Send To ALL Members Below "; echo "<input name=\"pmtext\" maxlength=\"500\"/> "; echo "<anchor>SEND<go href=\"index.php?action=sendclpm&sid=$sid\" method=\"post\">"; echo "<postfield name=\"clid\" value=\"$clid\"/>"; echo "<postfield name=\"pmtext\" value=\"$(pmtext)\"/>"; echo "</go></anchor> </p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=clubs&sid=$sid\">"; echo "Clubs list</a> "; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</card>"; } else if($action=="sendclpm") { $clid=$_POST["clid"]; $pmtext=$_POST["pmtext"]; $clinfo = mysql_fetch_array(mysql_query("SELECT name, owner, description, rules, logo, plusses, created FROM ibwf_clubs WHERE id='".$clid."'")); $owner = $clinfo[1]; addonline(getuid_sid($sid),"PMing Club Members","index.php?action=$action"); echo "<card id=\"main\" title=\"sihalawap.com\">"; echo "<p align=\"center\">"; echo "[b]PM All Members Of The $clinfo[0] Club[/b] "; $mems = mysql_query("SELECT uid FROM ibwf_clubmembers WHERE clid='".$clid."' AND accepted='1'"); while($row=mysql_fetch_array($mems)) { $tm = time(); $res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$owner."', touid='".$row[0]."', timesent='".$tm."'"); } if($res) { echo "<img src=\"images/ok.gif\" alt=\"O\"/>"; echo "PMs sent successfully "; echo parsepm($pmtext, $sid); }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>"; echo "Can't Send PM "; } echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=clubs&sid=$sid\">"; echo "Clubs list</a> "; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</card>"; }
Hate romains that take codes from here and tell to all that they had made that
Comment
-
Guest
-
<div class='quotetop'>QUOTE (ionutxp @ Jan 10 2009, 09:15 PM) <{POST_SNAPBACK}></div>when a member register to a club the owner to recive a pm ? :D[/b]
Comment
-
something like this:
Code:else if($action=="reqjc") { $uid = getuid_sid($sid); $clid = $_GET["clid"]; addonline(getuid_sid($sid),"Joining A Club",""); echo "<head>"; echo "<title>$sitename</title>"; echo "</head>"; echo "<body>"; echo "<p align=\"center\">"; $uid = getuid_sid($sid); $isin = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE uid='".$uid."' AND clid='".$clid."'")); if($isin[0]==0){ $res = mysql_query("INSERT INTO ibwf_clubmembers SET uid='".$uid."', clid='".$clid."', accepted='0', points='0', joined='".time()."'"); if($res) { echo "<img src=\"images/ok.gif\" alt=\"o\"/>Request sent! The club owner should accept your request"; $clinfo = mysql_fetch_array(mysql_query("SELECT name, owner FROM ibwf_clubs WHERE id='".$clid."'")); $pmtext = "I wanna join your [club=$clid]$clinfo[0] [/club] club[br/][br/][small](this is an auto pm)[/small]"; $tm = time(); $res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$uid."', touid='".$clinfo[1]."', timesent='".$tm."'"); }else{ echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!"; } }else{ echo "<img src=\"images/notok.gif\" alt=\"x\"/>You are already in this club or request sent and waiting for acception"; } echo " <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; exit(); }
Comment
-
<div class='quotetop'>QUOTE (ionutxp @ Nov 19 2008, 07:23 AM) <{POST_SNAPBACK}></div>here :Code:else if($action=="gocl") { $clid = $_GET["clid"]; $clinfo = mysql_fetch_array(mysql_query("SELECT name, owner, description, rules, logo, plusses, created FROM ibwf_clubs WHERE id='".$clid."'")); addonline(getuid_sid($sid),"Viewing A Club",""); $clnm = htmlspecialchars($clinfo[0]); echo "<card id=\"main\" title=\"$clnm\">"; echo "<p align=\"center\">"; echo "[size="1"][b]$clnm[/b][/size] "; if(trim($clinfo[4])=="") { echo "<img src=\"images/logo.jpg\" alt=\"logo\"/>"; }else{ echo "<img src=\"$clinfo[4]\" alt=\"logo\"/>"; } echo "</p>"; echo " [size="1"]"; echo "Club ID: [b]$clid[/b] "; $uid = getuid_sid($sid); $cango = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid='".$clid."' AND uid='".$uid."' AND accepted='1'")); echo "Owner: <a href=\"index.php?action=viewuser&who=$clinfo[1]&sid=$sid\">".getnick_uid($clinfo[1])."</a> "; $mems = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid='".$clid."' AND accepted='1'")); echo "Members: <a href=\"lists.php?action=clmem&sid=$sid&clid=$clid\">$mems[0]</a> "; echo "Created On: ".date("d/m/y", $clinfo[6])." "; echo "Plusses credit: $clinfo[5] "; $fid = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_forums WHERE clubid='".$clid."'")); $rid = mysql_fetch_array(mysql_query("SELECT id FROM ibwf_rooms WHERE clubid='".$clid."'")); $tps = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE fid='".$fid[0]."'")); $pss = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts a INNER JOIN ibwf_topics b ON a.tid = b.id WHERE b.fid='".$fid[0]."'")); if(getuid_sid($sid)==$clinfo[1]) { echo "<a href=\"index.php?action=pmallmem&sid=$sid&clid=$clid\">PM to All Club Members</a> "; } if(($cango[0]>0)||isowner($uid)) { if($clid==161) { echo "<a href=\"http://space.sihalawap.com/modcp.php?action=clubup;sid=$sid&clid=$clid\">Uploader</a> "; } if($clid==248) { echo "<a href=\"http://space.sihalawap.com/modcp.php?action=clubup2;sid=$sid&clid=$clid\">Uploader</a> "; } $noa = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_announcements WHERE clid='".$clid."'")); echo " <a href=\"lists.php?action=annc&sid=$sid&clid=$clid\"><img src=\"images/annc.gif\" alt=\"!\"/>Announcements($noa[0])</a> "; $noa = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chat WHERE rid='".$rid[0]."'")); echo "<a href=\"chat.php?sid=$sid&rid=$rid[0]\"><img src=\"images/chat.gif\" alt=\"*\"/>$clnm Chat($noa[0])</a> "; echo "<a href=\"index.php?action=viewfrm&sid=$sid&fid=$fid[0]\"><img src=\"images/1.gif\" alt=\"*\"/>$clnm Forum($tps[0]/$pss[0])</a> "; $ismem = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid='".$clid."' AND uid='".getuid_sid($sid)."'")); if($ismem[0]>0) { //unjoin if($clinfo[1]!=$uid) { echo "<a href=\"genproc.php?action=unjc&sid=$sid&clid=$clid\">Unjoin Club</a>"; } }else{ echo "<a href=\"genproc.php?action=reqjc&sid=$sid&clid=$clid\">Join Now!</a>"; } if(isowner(getuid_sid($sid))) { echo " <a href=\"admincp.php?action=club&sid=$sid&clid=$clid\">Admin Tools</a>"; } if($clinfo[1]==$uid) { //club owner $mems = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid='".$clid."' AND accepted='0'")); echo " <a href=\"lists.php?action=clreq&sid=$sid&clid=$clid\">»Requests($mems[0])</a> "; } }else{ echo "Topics: [b]$tps[0][/b], Posts: [b]$pss[0][/b] "; echo "[b]Description:[/b] "; echo htmlspecialchars($clinfo[2]); echo " "; echo "[b]Rules:[/b] "; echo htmlspecialchars($clinfo[3]); echo " "; echo "Seems Good? <a href=\"genproc.php?action=reqjc&sid=$sid&clid=$clid\">Join Now!</a>"; } echo "[/size]</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=clubs&sid=$sid\">"; echo "Clubs list</a> "; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</card>"; } else if($action=="pmallmem") { $clid=$_GET["clid"]; $clinfo = mysql_fetch_array(mysql_query("SELECT name, owner, description, rules, logo, plusses, created FROM ibwf_clubs WHERE id='".$clid."'")); addonline(getuid_sid($sid),"PMing Club Members","index.php?action=$action"); echo "<card id=\"main\" title=\"sihalawap.com\">"; echo "<p align=\"center\">"; echo "[b]PM All Members Of The $clinfo[0] Club[/b] "; echo "Please enter the message You Wish To Send To ALL Members Below "; echo "<input name=\"pmtext\" maxlength=\"500\"/> "; echo "<anchor>SEND<go href=\"index.php?action=sendclpm&sid=$sid\" method=\"post\">"; echo "<postfield name=\"clid\" value=\"$clid\"/>"; echo "<postfield name=\"pmtext\" value=\"$(pmtext)\"/>"; echo "</go></anchor> </p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=clubs&sid=$sid\">"; echo "Clubs list</a> "; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</card>"; } else if($action=="sendclpm") { $clid=$_POST["clid"]; $pmtext=$_POST["pmtext"]; $clinfo = mysql_fetch_array(mysql_query("SELECT name, owner, description, rules, logo, plusses, created FROM ibwf_clubs WHERE id='".$clid."'")); $owner = $clinfo[1]; addonline(getuid_sid($sid),"PMing Club Members","index.php?action=$action"); echo "<card id=\"main\" title=\"sihalawap.com\">"; echo "<p align=\"center\">"; echo "[b]PM All Members Of The $clinfo[0] Club[/b] "; $mems = mysql_query("SELECT uid FROM ibwf_clubmembers WHERE clid='".$clid."' AND accepted='1'"); while($row=mysql_fetch_array($mems)) { $tm = time(); $res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$owner."', touid='".$row[0]."', timesent='".$tm."'"); } if($res) { echo "<img src=\"images/ok.gif\" alt=\"O\"/>"; echo "PMs sent successfully "; echo parsepm($pmtext, $sid); }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>"; echo "Can't Send PM "; } echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=clubs&sid=$sid\">"; echo "Clubs list</a> "; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</card>"; }
you can change this in XHTML and to a global pm message for ALL recorded users (not only in clubs)?sigpicthe italian/international COMMUNITY of friendship
http://people2000.netne.net
WAP/WEB
peoplemailbox@katamail.com
Comment
-
[quote]
here : [code]else if($action=="gocl")
{
$clid = $_GET["clid"];
$clinfo = mysql_fetch_array(mysql_query("SELECT name, owner, description, rulesigpicthe italian/international COMMUNITY of friendship
http://people2000.netne.net
WAP/WEB
peoplemailbox@katamail.com
Comment
-
<div class='quotetop'>QUOTE (something else @ Jan 11 2009, 02:11 PM) <{POST_SNAPBACK}></div>something like this:
Code:else if($action=="reqjc") { $uid = getuid_sid($sid); $clid = $_GET["clid"]; addonline(getuid_sid($sid),"Joining A Club",""); echo "<head>"; echo "<title>$sitename</title>"; echo "</head>"; echo "<body>"; echo "<p align=\"center\">"; $uid = getuid_sid($sid); $isin = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE uid='".$uid."' AND clid='".$clid."'")); if($isin[0]==0){ $res = mysql_query("INSERT INTO ibwf_clubmembers SET uid='".$uid."', clid='".$clid."', accepted='0', points='0', joined='".time()."'"); if($res) { echo "<img src=\"images/ok.gif\" alt=\"o\"/>Request sent! The club owner should accept your request"; $clinfo = mysql_fetch_array(mysql_query("SELECT name, owner FROM ibwf_clubs WHERE id='".$clid."'")); $pmtext = "I wanna join your [club=$clid]$clinfo[0] [/club] club[br/][br/][small](this is an auto pm)[/small]"; $tm = time(); $res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$uid."', touid='".$clinfo[1]."', timesent='".$tm."'"); }else{ echo "<img src=\"images/notok.gif\" alt=\"x\"/>Database Error!"; } }else{ echo "<img src=\"images/notok.gif\" alt=\"x\"/>You are already in this club or request sent and waiting for acception"; } echo " <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; exit(); }
This work, but PM the owner receives a club member who was elected to the club ... member should receive PM not the owner that it has received ... member should receive a notification from the owner that it has received and not the owner receives the PM that the member received Come a little if you can edit ... that members receive from the owner and PM not the owner of a member
Comment
-
<div class='quotetop'>QUOTE (honkytonkman @ Jan 11 2009, 05:14 PM) <{POST_SNAPBACK}></div>you can change this in XHTML and to a global pm message for ALL recorded users (not only in clubs)?[/b]
this html
Code:else if($action=="pmallmem") { $clid=$_GET["clid"]; $clinfo = mysql_fetch_array(mysql_query("SELECT name, owner, description, rules, logo, plusses, created FROM ibwf_clubs WHERE id='".$clid."'")); addonline(getuid_sid($sid),"[b]Salje PP svim clanovima kluba $clinfo[0] [/b]","index.php?action=$action"); $pstyle = gettheme($sid); echo xhtmlhead($clnm,$pstyle); echo "<p align=\"center\">"; echo "<form action=\"index.php?action=sendclpm&sid=$sid\" method=\"post\">"; echo "<input type=\"hidden\" name=\"clid\" value=\"$clid\"/>"; echo "<center>Text:<input name=\"pmtext\" maxlength=\"500\"/> "; echo "<input type=\"submit\" value=\"Posalji\"/></center"; echo "</form> </p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=clubs&sid=$sid\">"; echo "Klubovi</a> "; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "<img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/> <a href=\"index.php?action=main&sid=$sid\">"; echo "HAPPY</a>"; echo "</p>"; echo xhtmlfoot(); } else if($action=="sendclpm") { $clid=$_POST["clid"]; $pmtext=$_POST["pmtext"]; $clinfo = mysql_fetch_array(mysql_query("SELECT name, owner, description, rules, logo, plusses, created FROM ibwf_clubs WHERE id='".$clid."'")); $owner = $clinfo[1]; addonline(getuid_sid($sid),"[b]Salje PP za sve clanove kluba $clinfo[0] [/b]","index.php?action=$action"); $pstyle = gettheme($sid); echo xhtmlhead($clnm,$pstyle); echo "<p align=\"center\">"; echo "[b]PP za sve clanove kluba $clinfo[0] [/b] "; $mems = mysql_query("SELECT uid FROM ibwf_clubmembers WHERE clid='".$clid."' AND accepted='1'"); while($row=mysql_fetch_array($mems)) { $tm = time(); $res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$owner."', touid='".$row[0]."', timesent='".$tm."'"); } if($res) { echo "<img src=\"images/ok.gif\" alt=\"O\"/>"; echo "PP je uspesno poslata "; echo parsepm($pmtext, $sid); }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>"; echo "Nemoguce je poslati PP "; } echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=clubs&sid=$sid\">"; echo "Klubovi</a> "; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "<img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/> <a href=\"index.php?action=main&sid=$sid\">"; echo "HAPPY</a>"; echo "</p>"; echo xhtmlfoot(); }
Comment
-
couldnt be bothered to test it but something like this:
Code:else if($action=="acm") { $clid = $_GET["clid"]; $who = $_GET["who"]; addonline(getuid_sid($sid),"Adding a member to club",""); echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">"; echo "</head>"; echo "<body>"; echo "<p align=\"center\">"; $uid = getuid_sid($sid); $cowner = mysql_fetch_array(mysql_query("SELECT owner, name FROM ibwf_clubs WHERE id='".$clid."'")); if($cowner[0]==$uid){ $res = mysql_query("UPDATE ibwf_clubmembers SET accepted='1' WHERE clid='".$clid."' AND uid='".$who."'"); if($res) { echo "<img src=\"../images/ok.gif\" alt=\"o\"/>Member added to your club"; $pmtext = "You are now a member of the [club=$clid]$cowner[1] [/club] club[br/][br/][small](this is an auto pm)[/small]"; $tm = time(); $res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$uid."', touid='".$who."', timesent='".$tm."'"); }else{ echo "<img src=\"../images/notok.gif\" alt=\"x\"/>Database Error!"; } }else{ echo "<img src=\"../images/notok.gif\" alt=\"x\"/>This club ain't yours"; } echo " [b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>"; echo "</p>"; echo "</body>"; }
Comment
Comment