<? php
/ **
*
* Happy Forum Script
*
*
* /
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"];
if (! isowner (getuid_sid ($ sid)))
(
echo "<card id=\"main\" title=\"HAPPY\">";
echo "<p align=\"center\">";
echo "<a href=\"index.php?action=vlpanel&sid=$sid\"> POWERFUL PANEL </ a> <br/>";
echo "<br/>";
echo "<a href=\"index.php\"> HAPPY </ a>";
echo "</ p>";
echo "</ card> ';
echo "</ wml>";
exit ();
)
if (islogged ($ sid) == false)
(
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo "Not Ulogovani! <br/>";
echo "Or is your access period has expired! <br/> <br/>";
echo "<a href=\"index.php\"> Login </ a>";
echo "</ p>";
echo "</ card> ';
echo "</ wml>";
exit ();
)
addonline (getuid_sid ($ sid), "Owner's panel ","");
if ($ action == "general")
(
$ xtm = $ _POST [ "SESP"];
$ fmsg = $ _POST [ "fmsg"];
$ AREG = $ _POST [ "AREG"];
$ pmaf = $ _POST [ "pmaf"];
$ fvw = $ _POST [ "fvw"];
if ($ AREG == "d")
(
$ arv = 0;
) else (
$ arv = 1;
)
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
$ res = mysql_query ( "UPDATE ibwf_settings SET value ='".$ fmsg." 'WHERE name = 4 ummsg' ");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> Forum messages successfully updated! <br/>";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> Forum It's impossible to update the message! <br/>";
)
$ res = mysql_query ( "UPDATE ibwf_settings SET value ='".$ xtm." 'WHERE name =' sesxp ' ");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> Access Period updated successfully! <br/>";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> It's impossible to update <br/> Access Period";
)
$ res = mysql_query ( "UPDATE ibwf_settings SET value ='".$ pmaf." 'WHERE name =' pmaf ' ");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> PP antiflood is $ pmaf seconds! <br/>";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> It's impossible to update PP antiflood! <br/>";
)
$ res = mysql_query ( "UPDATE ibwf_settings SET value ='".$ arv." 'WHERE name =' reg ');
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> Registrcija updated successfully! <br/>";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> It's impossible to update registration! <br/>";
)
$ res = mysql_query ( "UPDATE ibwf_settings SET value ='".$ fvw." 'WHERE name =' fview ' ");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> Forum updated successfully! <br/>";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> It's impossible to update Forum! <br/>";
)
echo "<br/>";
echo "<a href=\"ownercp.php?action=general&sid=$sid\">";
echo "General Settings </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
if ($ action == "ppzasveii")
(
echo "<card id=\"main\" title=\"PP svima\">";
echo "<p align=\"center\">";
$ whonick = getnick_uid ($ who);
$ byuid = getuid_sid ($ sid);
str_replace ("$"," \ $ ", $ message);
$ tm = time () + (7 * 60 * 60);
$ max = mysql_fetch_array (mysql_query ( "SELECT MAX (id) FROM ibwf_users"));
$ maxid = $ max [0];
$ text = $ message [br /] PS: This is an automated message and sent the owner foruma.Ne should respond to it! ";
for ($ i = 1; $ i <= $ maxid $ i + +)
(
$ ppsvima = mysql_query ( "INSERT INTO SET ibwf_private text ='".$ text." ', byuid ='".$ byuid.', touid ='".$ i. " ', timesent ='".$ tm ."'");
)
echo "BP is successfully sent to all members <br/> <br/>";
parsepm echo ($ message, $ sid);
echo "<a href=\"index.php?action=main&sid=$sid\"> $ major";
echo "HAPPY </ a>";
echo "</ p>";
echo "</ card> ';
)
if ($ action == "ppzeneii")
(
echo "<card id=\"main\" title=\"PP svima\">";
echo "<p align=\"center\">";
$ whonick = getnick_uid ($ who);
$ byuid = getuid_sid ($ sid);
str_replace ("$"," \ $ ", $ message);
$ tm = time () + (7 * 60 * 60);
$ sex = mysql_query ( "SELECT id FROM ibwf_users WHERE sex = 'F');
$ tm = time ();
$ text = $ message [br /] PS: This is an automated message to all members of Women's and sent the owner foruma.Ne should respond to it! ";
while ($ f = mysql_fetch_array ($ sex))
(
$ ppzene = mysql_query ( "INSERT INTO SET ibwf_private text ='".$ text." ', byuid ='".$ byuid.', touid ='".$ f [0 ]."', timesent = ' " . $ tm ."'");
)
echo "BP is successfully sent to all female members <br/> <br/>";
parsepm echo ($ message, $ sid);
echo "<a href=\"index.php?action=main&sid=$sid\"> $ major";
echo "HAPPY </ a>";
echo "</ p>";
echo "</ card> ';
)
if ($ action == "ppmusii")
(
echo "<card id=\"main\" title=\"PP svima\">";
echo "<p align=\"center\">";
$ whonick = getnick_uid ($ who);
$ byuid = getuid_sid ($ sid);
str_replace ("$"," \ $ ", $ message);
$ tm = time () + (7 * 60 * 60);
$ sex = mysql_query ( "SELECT id FROM ibwf_users WHERE sex = 'M'");
$ tm = time ();
$ text = $ message [br /] PS: This is an automated message to all members of CTR and sent the owner foruma.Ne should respond to it! ";
while ($ f = mysql_fetch_array ($ sex))
(
$ ppzene = mysql_query ( "INSERT INTO SET ibwf_private text ='".$ text." ', byuid ='".$ byuid.', touid ='".$ f [0 ]."', timesent = ' " . $ tm ."'");
)
echo "BP is successfully sent to all male members <br/> <br/>";
parsepm echo ($ message, $ sid);
echo "<a href=\"index.php?action=main&sid=$sid\"> $ major";
echo "HAPPY </ a>";
echo "</ p>";
echo "</ card> ';
)
if ($ action == 'pp2alladmii') (
$ byuid = getuid_sid ($ sid);
str_replace ("$"," \ $ ", $ pmtext);
$ to_arr = SQL_rows ( "SELECT u.id, p.id AS pid, u.perm FROM ibwf_users in left join ibwf_penalties p ON u.id = p.uid AND (penalty ='1 'OR penalty ='2') having Permian> 0 AND pid IS NULL AND id! = $ byuid ");
$ text2 = "$ pmtext [br /] PS: This is an automated message sent to moderators and the owner foruma.Ne should respond to it!";
$ tm = time ();
$ query = 'INSERT INTO ibwf_private ( `text`, `byuid`, `touid`, `timesent`) VALUES';
$ counter = 0;
foreign ($ to_arr as $ recv) (
$ query .= ($ counter? "\ n":'')."('$ text2 ',' $ byuid','".$ recv [ 'id']."',' $ tm ') " ;
$ counter + +;
if ($ counter == 20)
(
mysql_query ($ query);
$ query = 'INSERT INTO ibwf_private ( `text`, `byuid`, `touid`, `timesent`) VALUES';
$ text = "$ pmtext [br /] PS: This is an automated message sent to moderators and the owner foruma.Ne should respond to it!";
$ counter = 0;
)
)
if ($ counter> 0) (
mysql_query ($ query);
)
addonline ( "administration sends a message!");
echo "<card id=\"main\" title=\"PP Inbox\">";
echo "<p align=\"center\"> <small>";
echo '<b> message sent to <b>. count ($ to_arr ).'</ b> members of the administration. </ b> <br/>. mysql_error ();
$ text2 = "$ pmtext [br /] PS: This is an automated message sent to moderators and the owner foruma.Ne should respond to it!";
echo "<br/> $ text2 <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> HAPPY </ a>";
echo "</ small> </ p>";
echo "</ card> ';
)
////////////////////////// Add moderating
else if ($ action == "addfmod")
(
$ mid = $ _POST [ "mid"];
$ fid = $ _POST [ "fid"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
$ res = mysql_query ( "INSERT INTO ibwf_modr SET name ='".$ mid." ', the forum ='".$ fid ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> Mod privileges add! <br/>";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> Greska database! <br/>";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=manmods&sid=$sid\">";
echo "Moderator Menazder </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "delclub")
(
$ clid = $ _GET [ 'clid'];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
$ res = deleteClub ($ clid);
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> Club successfully deleted! <br/>";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> Greska database! <br/>";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn . gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "gccp")
(
$ clid = $ _GET [ 'clid'];
$ plss = $ _POST [ "plss"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
$ NoP = mysql_fetch_array (mysql_query ( "SELECT plusses FROM ibwf_clubs WHERE id ='".$ clid ."'"));
$ newpl = $ NoP [0] + $ plss;
$ res = mysql_query ( "UPDATE ibwf_clubs SET plusses ='".$ newpl." 'WHERE id ='".$ clid ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> Plus Club updated! <br/>";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> Greska database! <br/>";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn . gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "delfmod")
(
$ mid = $ _POST [ "mid"];
$ fid = $ _POST [ "fid"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
$ res = mysql_query ( "DELETE FROM WHERE ibwf_modr mid ='".$ name." 'AND fid ='".$ forum ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> Mod privileges deleted! <br/>";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> Greska database! <br/>";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=manmods&sid=$sid\">";
echo "Moderator Menazder </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
///////////////////////////////////////
else if ($ action == "addcat")
(
$ fcname = $ _POST [ "fcname"];
$ fcpos = $ _POST [ "fcpos"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo $ fcname;
echo "<br/>";
$ res = mysql_query ( "INSERT INTO ibwf_fcats SET name ='".$ fcname." ', position ='".$ fcpos ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> Forum Category successfully added!";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> It's impossible to add Forum Categories";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=fcats&sid=$sid\">";
echo "Panel Forum Category </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "addfrm")
(
$ frname = $ _POST [ "frname"];
$ frpos = $ _POST [ "frpos"];
$ fcid = $ _POST [ "fcid"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo $ frname;
echo "<br/>";
$ res = mysql_query ( "INSERT INTO ibwf_forums SET name ='".$ frname." ', position ='".$ frpos. "', CID ='".$ fcid ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> Forum added successfully!";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> Forum It's impossible to add";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=forums&sid=$sid\">";
echo "Panel Forum </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "addsml")
(
$ smlcde = $ _POST [ "smlcde"];
$ smlsrc = $ _POST [ "smlsrc"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo "<br/>";
$ res = mysql_query ( "INSERT INTO ibwf_smilies SET scode ='".$ smlcde." ', imgsrc ='".$ smlsrc. "', hidden ='0 '");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> Smaje successfully added!";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> add Smaje It's impossible!";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=addsml&sid=$sid\">";
echo "Panel smilies </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "addavt")
(
$ avtsrc = $ _POST [ "avtsrc"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo "<br/>";
$ res = mysql_query ( "INSERT INTO ibwf_avatars SET avlink ='".$ avtsrc ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> Avatar successfully added!";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> Avatar It's impossible to add";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=addavt&sid=$sid\">";
echo "Avatar Control Panel </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "addjdg")
(
$ who = $ _GET [ "who"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo "<br/>";
$ res = mysql_query ( "INSERT INTO ibwf_judges SET uid ='".$ who ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> judge added successfully!";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> It's impossible to add Judges!";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=chuinfo&sid=$sid\">";
echo "Panel Members </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "deljdg")
(
$ who = $ _GET [ "who"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo "<br/>";
$ res = mysql_query ( "DELETE FROM ibwf_judges WHERE uid ='".$ who ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> judge deleted successfully!";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> It's impossible obisati Judges!";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=chuinfo&sid=$sid\">";
echo "Panel Members </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "delsm")
(
$ SMID = $ _GET [ "SMID"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo "<br/>";
$ res = mysql_query ( "DELETE FROM ibwf_smilies WHERE id ='".$ Smid ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> Smaje deleted successfully!";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> Could not delete Smaje!";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn . gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "addrss")
(
$ rssnm = $ _POST [ "rssnm"];
$ rsslnk = $ _POST [ "rsslnk"];
$ rssimg = $ _POST [ "rssimg"];
$ rssdsc = $ _POST [ "rssdsc"];
$ fid = $ _POST [ "fid"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo $ rssnm;
echo "<br/>";
$ res = mysql_query ( "INSERT INTO ibwf_rss SET title ='".$ rssnm." ', link ='".$ rsslnk. "', imgsrc ='".$ rssimg." ', dscr ='".$ rssdsc . ', fid ='".$ fid ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> RSS support successfully added!";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> It's impossible to add RSS support";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=manrss&sid=$sid\">";
echo "RSS Manager </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "addchr")
(
$ chrnm = $ _POST [ "chrnm"];
$ chrage = $ _POST [ "chrage"];
$ chrpst = $ _POST [ "chrpst"];
$ chrprm = $ _POST [ "chrprm"];
$ chrcns = $ _POST [ "chrcns"];
$ chrfun = $ _POST [ "chrfun"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo $ chrnm;
echo "<br/>";
$ res = mysql_query ( "INSERT INTO ibwf_rooms SET name ='".$ chrnm." ', static ='1', pass ='', MAGE ='".$ chrage. " ', chposts ='".$ chrpst . ',' perms ='".$ chrprm. " ', censord ='".$ chrcns.' freaky ='".$ chrfun ."'");
echo mysql_error ();
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> Cet Room successfully created!";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> Cet It's impossible to create a room!";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=chrooms&sid=$sid\">";
echo "Panel Cet Room </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "edtrss")
(
$ rssnm = $ _POST [ "rssnm"];
$ rsslnk = $ _POST [ "rsslnk"];
$ rssimg = $ _POST [ "rssimg"];
$ rssdsc = $ _POST [ "rssdsc"];
$ fid = $ _POST [ "fid"];
$ rssid = $ _POST [ "rssid"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo $ rssnm;
echo "<br/>";
$ res = mysql_query ( "UPDATE ibwf_rss SET title ='".$ rssnm." ', link ='".$ rsslnk. "', imgsrc ='".$ rssimg." ', dscr ='".$ rssdsc. " ', fid ='".$ fid."' WHERE id ='".$ rssid ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> RSS support updated successfully!";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> It's impossible to update RSS support";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=manrss&sid=$sid\">";
echo "Menazder RSS </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "addperm")
(
$ fid = $ _POST [ "fid"];
$ GID = $ _POST [ "GID"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo "<br/>";
$ res = mysql_query ( "INSERT INTO ibwf_acc SET ='".$ fid fid." ', ='".$ GID GID ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> Approval successfully added!";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> It's impossible to consent";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=addperm&sid=$sid\">";
echo "Add Approval </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
////////////////////////////////////////// Update profile
else if ($ action == "uprof")
(
$ who = $ _GET [ "who"];
$ unick = $ _POST [ "unick"];
$ Permian = $ _POST [ "Permian"];
$ savat = $ _POST [ "savat"];
$ semail = $ _POST [ "semail"];
$ sew = $ _POST [ "sew"];
$ ubday = $ _POST [ "ubday"];
$ uloc = $ _POST [ "uloc"];
$ usig = $ _POST [ "usig"];
$ usex = $ _POST [ "usex"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
$ onk = mysql_fetch_array (mysql_query ( "SELECT name FROM ibwf_users WHERE id ='".$ who ."'"));
$ exs = mysql_fetch_array (mysql_query ( "SELECT COUNT (*) FROM ibwf_users WHERE name ='".$ unick ."'"));
if ($ onk [0]! = $ unick)
(
if ($ exs [0]> 0)
(
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/> Nik already postole, choose another! <br/>";
) else
(
$ res = mysql_query ( "UPDATE ibwf_users SET avatar ='".$ savat." ', email ='".$ semail.' site ='".$ sew. " ', birthday ='".$ ubday. " ', location ='".$ uloc.' signature ='".$ usig." ', sex ='".$ usex. "' name ='".$ unick." ', Permian =' ". $ Permian." 'WHERE id ='".$ who ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"o\"/> $ unick profile was successfully updated! <br/>";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/> It's impossible to update $ unick profile! <br/>";
)
)
) else
(
$ res = mysql_query ( "UPDATE ibwf_users SET avatar ='".$ savat." ', email ='".$ semail.' site ='".$ sew. " ', birthday ='".$ ubday. " ', location ='".$ uloc.' signature ='".$ usig." ', sex ='".$ usex. "' name ='".$ unick." ', Permian =' ". $ Permian." 'WHERE id ='".$ who ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"o\"/> $ unick profile was successfully updated! <br/>";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/> It's impossible to update $ unick profile! <br/>";
)
)
echo "<br/> <a href=\"ownercp.php?action=chuinfo&sid=$sid\">";
echo "Panel Members </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
///////////// user password
else if ($ action == "upwd")
(
$ npwd = $ _POST [ "npwd"];
$ who = $ _GET [ "who"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
if ((strlen ($ npwd) <4) | | (strlen ($ npwd)> 15)) (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/> password must contain from 4 to 15 letters or numbers! <br/>" ;
) else (
$ pwd = md5 ($ npwd);
$ res = mysql_query ( "UPDATE ibwf_users SET pass ='".$ pwd." 'WHERE id ='".$ who ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"o\"/> Password successfully updated! <br/>";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/> It's impossible to update the password! <br/>";
)
)
echo "<br/> <a href=\"ownercp.php?action=chuinfo&sid=$sid\">";
echo "Panel Members </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
/////////////// add group
else if ($ action == "addgrp")
(
$ frname = $ _POST [ "ugname"];
$ ugaa = $ _POST [ "ugaa"];
$ allus = $ _POST [ 'allus'];
$ MAGE = $ _POST [ "MAGE"];
$ mpst = $ _POST [ "mpst"];
MPLS $ = $ _POST [ "MPLS"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo $ ugname;
echo "<br/>";
$ res = mysql_query ( "INSERT INTO ibwf_groups SET name ='".$ ugname." ', autoass ='".$ ugaa. "', userst ='".$ allus." ', MAGE MAGE ='".$ . 'posts ='".$ mpst.' plusses ='".$ MPLS ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> a group of members successfully created!";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> It's impossible to create the Group members";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=ugroups&sid=$sid\">";
echo "Panel Group Members </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "edtfrm")
(
$ fid = $ _POST [ "fid"];
$ frname = $ _POST [ "frname"];
$ frpos = $ _POST [ "frpos"];
$ fcid = $ _POST [ "fcid"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo $ frname;
echo "<br/>";
$ res = mysql_query ( "UPDATE ibwf_forums SET name ='".$ frname." ', position ='".$ frpos. "', CID ='".$ fcid." 'WHERE id ='".$ fid. "'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> Forum updated successfully!";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> update the Forum It's impossible!";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=forums&sid=$sid\">";
echo "Panel Forum </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "edtcat")
(
$ fcid = $ _POST [ "fcid"];
$ fcname = $ _POST [ "fcname"];
$ fcpos = $ _POST [ "fcpos"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo $ fcname;
echo "<br/>";
$ res = mysql_query ( "UPDATE ibwf_fcats SET name ='".$ fcname." ', position ='".$ fcpos. "' WHERE id ='".$ fcid ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> Forum Kategirije successfully updated!";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> It's impossible to update Forum Categories";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=fcats&sid=$sid\">";
echo "Panel Forum Category </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "delfrm")
(
$ fid = $ _POST [ "fid"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo "<br/>";
$ res = mysql_query ( "DELETE FROM ibwf_forums WHERE id ='".$ fid ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> Forum successfully deleted!";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> Could not delete forum";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=forums&sid=$sid\">";
echo "Panel Forum </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "delpms")
(
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo "<br/>";
$ res = mysql_query ( "DELETE FROM WHERE ibwf_private reported! ='1 'and starred ='0' AND'0 = unread ');
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> All PP are deleted unless commenced, trnutno active and unread!";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> Database error!";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=clrdta&sid=$sid\">";
echo "Panel Data Forum </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "clrmlog")
(
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo "<br/>";
$ res = mysql_query ( "DELETE FROM ibwf_mlog");
echo mysql_error ();
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> ModCP successfully deleted!";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> Database error!";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=clrdta&sid=$sid\">";
echo "Panel Data Forum </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "FORUM </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "delsht")
(
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
$ altm = time () - (2 * 24 * 60 * 60);
echo "<br/>";
$ res = mysql_query ( "DELETE FROM WHERE ibwf_shouts Shtime <'".$ altm ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> sound older than 2 days have been successfully deleted!";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> Database error!";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=clrdta&sid=$sid\">";
echo "Panel Data Forum </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "delgrp")
(
$ ugid = $ _POST [ "ugid"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo "<br/>";
$ res = mysql_query ( "DELETE FROM ibwf_groups WHERE id ='".$ ugid ."'");
if ($ res)
(
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/> a group of members successfully deleted!";
) else (
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/> Could not delete a group of members";
)
echo "<br/> <br/> <a href=\"ownercp.php?action=ugroups&sid=$sid\">";
echo "Panel Group Members </ a> <br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"> <img src = \" http://coding-talk.com/images/admn.gif \ "alt = \" * \ "/>";
echo "Owner's panel </ a> <br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"> <img src = \" http://coding-talk.com/images/home.gif \ "alt = \" * \ "/>";
echo "HAPPY </ a>";
echo "</ p> </ card> ';
)
else if ($ action == "delrss")
(
$ rssid = $ _POST [ "rssid"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo "<br/>";
$res = mysql_query("DELETE FROM ibwf_rss WHERE id='".$rssid."'");
if($res)
{
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>RSS Podrska uspesno obrisana!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Greska baze podataka!";
}
echo "<br/><br/><a href=\"ownercp.php?action=manrss&sid=$sid\">";
echo "RSS Menadzer</a><br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>";
echo "Vlasnicki panel</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
echo "HAPPY</a>";
echo "</p></card>";
}
else if($action=="delchr")
{
$chrid = $_POST["chrid"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo "<br/>";
$res = mysql_query("DELETE FROM ibwf_rooms WHERE id='".$chrid."'");
if($res)
{
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Chat Soba uspesno obrisana!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Greska baze podataka!";
}
echo "<br/><br/><a href=\"ownercp.php?action=chrooms&sid=$sid\">";
echo "Panel Cet Soba</a><br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>";
echo "Vlasnicki panel</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
echo "HAPPY</a>";
echo "</p></card>";
}
else if($action=="delu")
{
$who = $_GET["who"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo "<br/>";
$res = mysql_query("DELETE FROM ibwf_buddies WHERE tid='".$who."' OR uid='".$who."'");
$res = mysql_query("DELETE FROM ibwf_gbook WHERE gbowner='".$who."' OR gbsigner='".$who."'");
$res = mysql_query("DELETE FROM ibwf_ignore WHERE name='".$who."' OR target='".$who."'");
$res = mysql_query("DELETE FROM ibwf_mangr WHERE uid='".$who."'");
$res = mysql_query("DELETE FROM ibwf_modr WHERE name='".$who."'");
$res = mysql_query("DELETE FROM ibwf_penalties WHERE uid='".$who."' OR exid='".$who."'");
$res = mysql_query("DELETE FROM ibwf_posts WHERE uid='".$who."'");
$res = mysql_query("DELETE FROM ibwf_private WHERE byuid='".$who."' OR touid='".$who."'");
$res = mysql_query("DELETE FROM ibwf_shouts WHERE shouter='".$who."'");
$res = mysql_query("DELETE FROM ibwf_topics WHERE authorid='".$who."'");
$res = mysql_query("DELETE FROM ibwf_brate WHERE uid='".$who."'");
$res = mysql_query("DELETE FROM ibwf_games WHERE uid='".$who."'");
$res = mysql_query("DELETE FROM ibwf_presults WHERE uid='".$who."'");
$res = mysql_query("DELETE FROM ibwf_vault WHERE uid='".$who."'");
$res = mysql_query("DELETE FROM ibwf_blogs WHERE bowner='".$who."'");
$res = mysql_query("DELETE FROM ibwf_chat WHERE chatter='".$who."'");
$res = mysql_query("DELETE FROM ibwf_chat WHERE who='".$who."'");
$res = mysql_query("DELETE FROM ibwf_chonline WHERE uid='".$who."'");
$res = mysql_query("DELETE FROM ibwf_online WHERE userid='".$who."'");
$res = mysql_query("DELETE FROM ibwf_ses WHERE uid='".$who."'");
$res = mysql_query("DELETE FROM ibwf_xinfo WHERE uid='".$who."'");
deleteMClubs($who);
$res = mysql_query("DELETE FROM ibwf_users WHERE id='".$who."'");
if($res)
{
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Clan uspesno obrisan!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce obrisati clana!";
}
echo "<br/><br/><a href=\"ownercp.php?action=chuinfo&sid=$sid\">";
echo "Panel Clanova</a><br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>";
echo "Vlasnicki panel</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
echo "HAPPY</a>";
echo "</p></card>";
}
else if($action=="dodajvip")
{
$who = $_GET["who"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo "<br/>";
$res = mysql_query("UPDATE ibwf_users SET vip='1' where id='".$who."'");
if($res)
{
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Vip Status dodat uspesno!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce dodati Vip Status!";
}
echo "<br/><br/><a href=\"ownercp.php?action=chuinfo&sid=$sid\">";
echo "Panel Clanova</a><br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>";
echo "Vlasnicki panel</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
echo "HAPPY</a>";
echo "</p></card>";
}
else if($action=="skinivip")
{
$who = $_GET["who"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo "<br/>";
$res = mysql_query("UPDATE ibwf_users SET vip='0' where id='".$who."'");
if($res)
{
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Vip Status obrisan uspesno!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce obisati Vip Status!";
}
echo "<br/><br/><a href=\"ownercp.php?action=chuinfo&sid=$sid\">";
echo "Panel Clanova</a><br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>";
echo "Vlasnicki panel</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
echo "HAPPY</a>";
echo "</p></card>";
}
//////////// Delete users posts
else if($action=="delxp")
{
$who = $_GET["who"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo "<br/>";
$res = mysql_query("DELETE FROM ibwf_posts WHERE uid='".$who."'");
$res = mysql_query("DELETE FROM ibwf_topics WHERE authorid='".$who."'");
if($res)
{
mysql_query("UPDATE ibwf_users SET plusses='0' where id='".$who."'");
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Post Clana uspesno obrisan!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce obrisati Post Clana!";
}
echo "<br/><br/><a href=\"ownercp.php?action=chuinfo&sid=$sid\">";
echo "Panel Clanova</a><br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>";
echo "Vlasnicki panel</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
echo "HAPPY</a>";
echo "</p></card>";
}
else if($action=="delcat")
{
$fcid = $_POST["fcid"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo $fcname;
echo "<br/>";
$res = mysql_query("DELETE FROM ibwf_fcats WHERE id='".$fcid."'");
if($res)
{
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Forum Kategorija uspesno obrisana!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce obrisati Forum Kategoriju!";
}
echo "<br/><br/><a href=\"ownercp.php?action=fcats&sid=$sid\">";
echo "Panel Forum Kategorija</a><br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>";
echo "Vlasnicki panel</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
echo "HAPPY</a>";
echo "</p></card>";
}
else{
echo "<card id=\"main\" title=\"Vlasnicki panel\">";
echo "<p align=\"center\">";
echo "<a href=\"ownercp.php?action=adminpanel&sid=$sid\">Vlasnicki panel</a>";
//echo "NEMATE PRISTUP Vlasnicki panelU!<br/><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
echo "HAPPY</a>";
echo "</p></card>";
}
?>
</wml>
try it.. english ownercp.php