I really do not understand what the problem is ... but here are here to give you my owner.php, ownercp.php and try .. this core.php I have already written and is .. me to do it perfectly
ownercp.php
ownercp.php
Code:
<?php 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\">VLASNICKI 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\">"; echo "<p align=\"center\">"; echo "You are not logged in<br/>"; echo "Or Your session has been expired<br/><br/>"; echo "<a href=\"index.php\">Login</a>"; echo "</p>"; echo "</card>"; echo "</wml>"; exit(); } addonline(getuid_sid($sid),"Vlasnicki panel",""); if($action=="general") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; $xtm = getsxtm(); $paf = getpmaf(); $fvw = getfview(); $fmsg = htmlspecialchars(getfmsg()); if(canreg()) { $arv = "e"; }else{ $arv= "d"; } echo "<onevent type=\"onenterforward\">"; echo "<refresh> <setvar name=\"sesp\" value=\"$xtm\"/> <setvar name=\"pmaf\" value=\"$paf\"/> <setvar name=\"fmsg\" value=\"$fmsg\"/> <setvar name=\"areg\" value=\"$arv\"/> <setvar name=\"fvw\" value=\"$fvw\"/> "; echo "</refresh></onevent>"; echo "<p align=\"center\">"; echo "<b>Opsta Podesavanja</b><br/>"; echo "</p>"; echo "<p>"; echo "Pristupni Period: "; echo "<input name=\"sesp\" format=\"*N\" maxlength=\"3\" size=\"3\"/>"; echo "<br/>PP Antiflood<input name=\"pmaf\" format=\"*N\" maxlength=\"3\" size=\"3\"/>"; echo "<br/>Forum Poruka: "; echo "<input name=\"fmsg\" maxlength=\"255\" />"; echo "<br/>Registracija: "; echo "<select name=\"areg\" value=\"$arv\">"; echo "<option value=\"e\">Otvorena</option>"; echo "<option value=\"d\">Zatvorena</option>"; echo "</select><br/>"; echo "Prikazi:"; echo "<select name=\"fvw\" value=\"$fvw\">"; //$vname[0]="Drop Menu"; $vname[0]="Horizontalni Link"; $vname[1]="Vertikalni Link"; for($i=0;$i<count($vname);$i++) { echo "<option value=\"$i\">$vname[$i]</option>"; } echo "</select>"; echo " <br/><anchor>POTVRDI <go href=\"ownerproc.php?action=general&sid=$sid\" method=\"post\"> <postfield name=\"sesp\" value=\"$(sesp)\"/> <postfield name=\"fmsg\" value=\"$(fmsg)\"/> <postfield name=\"areg\" value=\"$(areg)\"/> <postfield name=\"pmaf\" value=\"$(pmaf)\"/> <postfield name=\"fvw\" value=\"$(fvw)\"/> </go></anchor> "; echo "</p>"; echo "<p align=\"center\">"; 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>"; } /////////////////////////////////Vlasnicki panel else if($action=="ownercp") { addonline(getuid_sid($sid),"Vlasnicki panel",""); echo "<card id=\"main\" title=\"HAPPY\">"; echo "<p align=\"center\">"; echo "<b>Vlasnicki panel</b>"; echo "</p>"; echo "<p align=\"center\">"; if(isowner(getuid_sid($sid))) { echo "<a href=\"ownercp.php?action=zeneii&sid=$sid\">» Poruka Svim zenskim Clanovima</a><br/>"; echo "<a href=\"ownercp.php?action=musii&sid=$sid\">» Poruka Svim muskim Clanovima</a><br/>"; echo "<a href=\"ownercp.php?action=ujuii&sid=$sid\">» Poruka Svim Clanovima</a><br/>"; echo " <a href=\"ownercp.php?action=pp2alladmii&sid=$sid\">» Poruka Administraciji</a><br/>"; echo "<a href=\"ownercp.php?action=general&sid=$sid\">»Opsta podesavanja</a><br/>"; echo "<a href=\"ownercp.php?action=fcats&sid=$sid\">»Forum Kategorije</a><br/>"; echo "<a href=\"ownercp.php?action=forums&sid=$sid\">»Forumi</a><br/>"; echo "<a href=\"ownercp.php?action=ugroups&sid=$sid\">»Grupe clanova</a><br/>"; //echo "<a href=\"ownercp.php?action=manmods&sid=$sid\">»Manage Moderators</a><br/>"; echo "<a href=\"ownercp.php?action=addperm&sid=$sid\">»Davanje dozvola</a><br/>"; echo "<a href=\"ownercp.php?action=chuinfo&sid=$sid\">»Promeni info clana</a><br/>"; //echo "<a href=\"ownercp.php?action=manrss&sid=$sid\">»RSS Menadzer</a><br/>"; //echo "<a href=\"users/themes.php?sid=$sid\">»Dodaj Temu</a><br/>"; echo "<a href=\"ownercp.php?action=addsml&sid=$sid\">»Dodaj Smajli</a><br/>"; echo "<a href=\"ownercp.php?action=addavt&sid=$sid\">»Dodaj Avatar</a><br/>"; //echo "<a href=\"ownercp.php?action=addgal&sid=$sid\">»Add Gallery Pic</a><br/>"; echo "<a href=\"ownercp.php?action=idlestaff&sid=$sid\">» Neaktivna Adninistracija</a><br/>"; // echo "<a href=\"ownercp.php?action=idlemembers&sid=$sid\">»Clanovi online</a><br/>"; // echo "<a href=\"ownercp.php?action=shopitems&sid=$sid\">»Shop</a><br/>"; echo "<a href=\"ownercp.php?action=sponsorsites&sid=$sid\">»Sponzor sajtovi</a><br/>"; $uid = getuid_sid($sid); if($uid=="1"){ echo "<a href=\"ownercp.php?action=blocksites&sid=$sid\">»Blokirani sajtovi</a><br/>"; } if($uid=="12607"){ echo "<a href=\"ownercp.php?action=blocksites&sid=$sid\">»Uredi blokirane sajtove</a><br/>"; } echo "<a href=\"ownercp.php?action=chrooms&sid=$sid\">»Napravi chat sobu</a><br/>"; if($uid=="1"){ echo "<a href=\"ownercp.php?action=clrdta&sid=$sid\">»Obrisi podatke</a><br/>"; } if($uid=="12607"){ echo "<a href=\"ownercp.php?action=clrdta&sid=$sid\">»Obrisi podatke</a><br/>"; } echo "<br/>"; if($uid=="1"){ //echo "<strong>Server Load</strong><br/>"; system("cat /proc/loadavg"); } if($uid=="12607"){ //echo "<strong>Server Load</strong><br/>"; system("cat /proc/loadavg"); } if($uid=="12661"){ //echo "<strong>Server Load</strong><br/>"; system("cat /proc/loadavg"); } }else{ echo "Ti nisi vlasnik"; } echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "HAPPY</a>"; echo "</p>"; echo "</card>"; } /* Generic Admin Action Block else if($action=="") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b></b><br/>"; echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/HAPPY.gif\" alt=\"*\"/>"; echo "HAPPY</a>"; echo "</p>"; echo "</card>"; } */ else if($action=="ujuii") { addonline(getuid_sid($sid),"<b>Salje PP svim clanovima</b>",""); echo "<card id=\"main\" title=\"Salji PP svima\">"; echo "<p align=\"center\">"; echo "PP za sve Clanove!<br/><br/>"; echo "<input name=\"poruka\" maxlength=\"500\"/><br/>"; echo "<anchor>Posalji<go href=\"ownerproc.php?action=ppzasveii&who=&sid=$sid\" method=\"post\">"; echo "<postfield name=\"poruka\" value=\"$(poruka)\"/>"; echo "</go></anchor><br/><br/>"; echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "HAPPY</a>"; echo "</p>"; echo "</card>"; } else if($action=="zeneii") { addonline(getuid_sid($sid),"<b>Salje PP svim zenskim clanovima</b>",""); echo "<card id=\"main\" title=\"Salji PP svima\">"; echo "<p align=\"center\">"; echo "PP za sve zenske Clanove!<br/><br/>"; echo "<input name=\"poruka\" maxlength=\"500\"/><br/>"; echo "<anchor>Posalji<go href=\"ownerproc.php?action=ppzeneii&who=&sid=$sid\" method=\"post\">"; echo "<postfield name=\"poruka\" value=\"$(poruka)\"/>"; echo "</go></anchor><br/><br/>"; echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "HAPPY</a>"; echo "</p>"; echo "</card>"; } else if($action=="musii") { addonline(getuid_sid($sid),"<b>Salje PP svim muskim clanovima</b>",""); echo "<card id=\"main\" title=\"Salji PP svima\">"; echo "<p align=\"center\">"; echo "PP za sve muske Clanove!<br/><br/>"; echo "<input name=\"poruka\" maxlength=\"500\"/><br/>"; echo "<anchor>Posalji<go href=\"ownerproc.php?action=ppmusii&who=&sid=$sid\" method=\"post\">"; echo "<postfield name=\"poruka\" value=\"$(poruka)\"/>"; echo "</go></anchor><br/><br/>"; echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "HAPPY</a>"; echo "</p>"; echo "</card>"; } else if($action=="pp2alladmii"){ addonline(getuid_sid($sid),"<b>Salje PP Administraciji!</b>",""); echo "<card id=\"main\" title=\"Posalji PP Administraciji\">"; echo "<p align=\"center\">"; echo "<small>Posalji PP Administraciji</small><br/><br/>"; echo "<input name=\"pmtext\" maxlength=\"500\"/><br/>"; echo "<small><anchor>POSALJI<go href=\"ownerproc.php?action=pp2alladmii&sid=&sid=$sid\" method=\"post\">"; echo "<postfield name=\"pmtext\" value=\"$(pmtext)\"/>"; echo "</go></anchor></small>"; echo "<br/>----------<br/>"; echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "HAPPY</a>"; echo "</p>"; echo "</card>"; } /////////////////////////////////Plusses Shop Coding Start else if($action=="shopitems") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>Plusses Shop Purchases</b><br/>"; Echo "The Following Plusses Shop Purchases have been made,<br/>Please action the requests ASAP<br/><br/>"; $shopreq=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shop WHERE completed='0'")); $shopcomp=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shop WHERE completed='1'")); echo "Their are currently $shopreq[0] Purchases Waiting to be Fulfilled.<br/> and $shopcomp[0] Completed<br/>"; $shopitm= mysql_query("SELECT * FROM ibwf_shop WHERE completed='0'"); while ($row=mysql_fetch_array($shopitm)) { $who=getnick_uid($row[uid]); if($row[item]=="chatroom"){ $hndlelnk="<a href=\"ownercp.php?action=shpaddchr&sid=$sid&id=$row[id]\">Handle Request - Create Chatroom</a><br/>"; }else if($row[item]=="forum"){ $hndlelnk="<a href=\"ownercp.php?action=shpaddfrm&sid=$sid&id=$row[id]\">Handle Request - Add Forum</a><br/>"; } echo "User Who Purchased: $who<br/>"; echo "Item Bought: $row[item]<br/>"; echo "$hndlelnk"; } echo "<br/>"; echo "<a href=\"ownercp.php?action=shpclrcomp&sid=$sid\">Clear All Completed Requests</a>"; echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "HAPPY</a>"; echo "</p>"; echo "</card>"; } else if($action=="shpclrcomp") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>Clear Completed Shop Items</b><br/>"; $shpclr=mysql_Query("DELETE FROM ibwf_shop WHERE completed='1'"); echo "Completed items now cleared"; echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "HAPPY</a>"; echo "</p>"; echo "</card>"; } else if($action=="shpaddchr") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; $shpid=$_GET["id"]; $comp="1"; $complete=mysql_query("UPDATE ibwf_shop SET completed='".$comp."' WHERE id='".$shpid."'"); echo "<p align=\"center\">"; echo "<b>Add Room</b><br/><br/>"; echo "Name:<input name=\"chrnm\" maxlength=\"30\"/><br/>"; echo "Minimum Age:<input name=\"chrage\" format=\"*N\" maxlength=\"3\" size=\"3\"/><br/>"; echo "Minimum Chat Posts:<input name=\"chrpst\" format=\"*N\" maxlength=\"4\" size=\"4\"/><br/>"; echo "Permission:<select name=\"chrprm\">"; echo "<option value=\"0\">Normal</option>"; echo "<option value=\"1\">Moderators</option>"; echo "<option value=\"2\">Admins</option>"; echo "</select><br/>"; echo "Censored:<select name=\"chrcns\">"; echo "<option value=\"1\">Yes</option>"; echo "<option value=\"0\">No</option>"; echo "</select><br/>"; echo "Fun:<select name=\"chrfun\">"; echo "<option value=\"0\">No</option>"; echo "<option value=\"1\">esreveR</option>"; echo "<option value=\"2\">ravebabe</option>"; echo "</select><br/>"; echo "<anchor>Add"; echo "<go href=\"ownerproc.php?action=addchr&sid=$sid\" method=\"post\">"; echo "<postfield name=\"chrnm\" value=\"$(chrnm)\"/>"; echo "<postfield name=\"chrage\" value=\"$(chrage)\"/>"; echo "<postfield name=\"chrpst\" value=\"$(chrpst)\"/>"; echo "<postfield name=\"chrprm\" value=\"$(chrprm)\"/>"; echo "<postfield name=\"chrcns\" value=\"$(chrcns)\"/>"; echo "<postfield name=\"chrfun\" value=\"$(chrfun)\"/>"; echo "</go></anchor>"; echo "<br/><br/><a href=\"ownercp.php?action=chrooms&sid=$sid\">"; echo "<img src=\"http://coding-talk.com/images/chat.gif\" alt=\"chat\"/>Chatrooms</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>"; echo "</card>"; } else if($action=="shpaddfrm") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; $shpid=$_GET["id"]; $comp="1"; $complete=mysql_query("UPDATE ibwf_shop SET completed='".$comp."' WHERE id='".$shpid."'"); echo "<p align=\"center\">"; echo "<b>Add Forum</b><br/><br/>"; echo "Name:<input name=\"frname\" maxlength=\"30\"/><br/>"; echo "Position:<input name=\"frpos\" format=\"*N\" size=\"3\" maxlength=\"3\"/><br/>"; $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id, name"); echo "Category: <select name=\"fcid\">"; while ($fcat=mysql_fetch_array($fcats)) { echo "<option value=\"$fcat[0]\">$fcat[1]</option>"; } echo "</select><br/>"; echo "<anchor>Add"; echo "<go href=\"ownerproc.php?action=addfrm&sid=$sid\" method=\"post\">"; echo "<postfield name=\"frname\" value=\"$(frname)\"/>"; echo "<postfield name=\"frpos\" value=\"$(frpos)\"/>"; echo "<postfield name=\"fcid\" value=\"$(fcid)\"/>"; echo "</go></anchor>"; echo "<br/><br/><a href=\"ownercp.php?action=forums&sid=$sid\">"; echo "Forums</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>"; echo "</card>"; } ///////////////////////////////////////////////Plusses Shop Code End else if($action=="idlestaff") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>Adninistracija online</b><br/>"; $timeout = 180; $timeon = time()-$timeout; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE perm>'0' AND lastact>'".$timeon."'")); echo "Current Staff Online:".$noi[0]."<br/><br/>"; $timeout2 = 259200; $timeon2 = time()-$timeout2; $tdte = date("d m y-H:i:s", $timeon2); echo "Idle Date: $tdte,<br/>Only Staff Who have NOT been online after this date are displayed below<br/><br/>"; $nolq = mysql_query("SELECT * FROM ibwf_users WHERE perm>'0' AND lastact<'".$timeon2."'"); while ($row=mysql_fetch_array($nolq)) { echo "Username: <a href=\"ownercp.php?action=chubi&sid=$sid&who=$row[id]\">$row[name]</a>"; echo "<br/>"; $jdt = date("d m y-H:i:s",$row[lastact]); echo "Last Online: $jdt <br/><br/>"; } echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "HAPPY</a>"; echo "</p>"; echo "</card>"; } else if($action=="idlemembers") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>Clanovi online</b><br/>"; $timeout2 = 1209600; $timeon2 = time()-$timeout2; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE lastact>'".$timeon2."'")); echo "Current Number of Idle Members:".$noi[0]."<br/><br/>"; $tdte = date("d m y-H:i:s", $timeon2); echo "Idle Date: $tdte,<br/>Only Members Who have NOT been online after this date are displayed below<br/><br/>"; $nolq = mysql_query("SELECT * FROM ibwf_users WHERE lastact<'".$timeon2."'"); while ($row=mysql_fetch_array($nolq)) { echo "Username: <a href=\"index.php?action=viewuser&who=$row[id]&sid=$sid\">$row[name]</a>"; echo "<br/>"; $jdt = date("d m y-H:i:s",$row[lastact]); echo "Last Online: $jdt <br/><br/>"; } echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "HAPPY</a>"; echo "</p>"; echo "</card>"; } else if($action=="addperm") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>Daj Saglasnost</b>"; $forums = mysql_query("SELECT id, name FROM ibwf_forums ORDER BY position, id, name"); echo "<br/><br/>Forum: <select name=\"fid\">"; while ($forum=mysql_fetch_array($forums)) { echo "<option value=\"$forum[0]\">$forum[1]</option>"; } echo "</select>"; $forums = mysql_query("SELECT id, name FROM ibwf_groups ORDER BY name, id"); echo "<br/>Grupa: <select name=\"gid\">"; while ($forum=mysql_fetch_array($forums)) { echo "<option value=\"$forum[0]\">$forum[1]</option>"; } echo "</select>"; echo " <br/><anchor>POTVRDI <go href=\"ownerproc.php?action=addperm&sid=$sid\" method=\"post\"> <postfield name=\"fid\" value=\"$(fid)\"/> <postfield name=\"gid\" value=\"$(gid)\"/> </go></anchor> "; echo "<br/><br/><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>"; echo "</card>"; } //////////////////////////////////////Manage Mods else if($action=="manmods") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>NAPOMENA:</b><br/>Neke od unesenih promena bice prikazane kasnije!<br/><br/>"; $mods = mysql_query("SELECT id, name FROM ibwf_users WHERE perm='1'"); echo "Mod: <select name=\"mid\">"; while($mod=mysql_fetch_array($mods)) { echo "<option value=\"$mod[0]\">$mod[1]</option>"; } echo "</select><br/>"; /* $forums = mysql_query("SELECT id, name FROM ibwf_forums"); echo "Forum: <select name=\"fid\">"; while($forum=mysql_fetch_array($forums)) { echo "<option value=\"$forum[0]\">$forum[1]</option>"; } echo "</select><br/>"; echo "<anchor>POTVRDI"; echo "<go href=\"ownerproc.php?action=addfmod&sid=$sid\" method=\"post\">"; echo "<postfield name=\"mid\" value=\"$(mid)\"/>"; echo "<postfield name=\"fid\" value=\"$(fid)\"/>"; echo "</go>"; echo "</anchor>"; */ echo "<anchor>Unesi Sve Forume"; echo "<go href=\"ownerproc.php?action=addfmod&sid=$sid\" method=\"post\">"; echo "<postfield name=\"mid\" value=\"$(mid)\"/>"; echo "<postfield name=\"fid\" value=\"*\"/>"; echo "</go>"; echo "<br/></anchor>"; echo "<anchor>Obrisi Sve Forume"; echo "<go href=\"ownerproc.php?action=delfmod&sid=$sid\" method=\"post\">"; echo "<postfield name=\"mid\" value=\"$(mid)\"/>"; echo "<postfield name=\"fid\" value=\"*\"/>"; echo "</go>"; echo "</anchor>"; //echo "<br/><br/>"; echo "<br/><br/><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>"; echo "</card>"; } //Sponsor Links Pages else if($action=="sponsorsites") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p>"; echo "<a href=\"ownercp.php?action=addsponsite&sid=$sid\">»Dodaj sajt</a><br/>"; echo "<a href=\"ownercp.php?action=viewsponsite&sid=$sid\">»Edityj sajt</a><br/>"; //echo "<a href=\"ownercp.php?action=delsite&sid=$sid\">»Obrisi sajt</a><br/>"; echo "</p>"; echo "<p align=\"center\">"; 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>"; echo "</card>"; } else if($action=="addsponsite") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p>"; echo "Unesi adresu i opis sajta<br/><br/>"; echo "Opis<br/>"; echo "<input name=\"text\"/>"; echo "<br/>URL<br/>"; echo "<input name=\"site\"/>"; echo "<br/><anchor>Dodaj sajt"; echo "<go href=\"ownerproc.php?action=addsponsite&sid=$sid\" method=\"post\">"; echo "<postfield name=\"site\" value=\"$(site)\"/>"; echo "<postfield name=\"text\" value=\"$(text)\"/>"; echo "</go>"; echo "</anchor>"; echo "</p>"; echo "<p align=\"center\">"; 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>"; echo "</card>"; } else if($action=="viewsponsite") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p>"; echo "Pogledaj blokirane sajtove"; echo "</p><p>"; $res = mysql_query("SELECT * FROM ibwf_linksites"); while ($row = mysql_fetch_array($res)) { echo "<b>Ime sajta:</b> $row[text]<br/>"; echo "<b>Site URL:</b> $row[url] "; echo "<a href=\"ownerproc.php?action=delsponsite&sid=$sid&id=$row[0]\">[X]</a>"; echo "<br/><br/>"; } echo "</p>"; echo "<p align=\"center\">"; 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>"; echo "</card>"; } /////// end sponsor site code /////// start blocked site code else if($action=="blocksites") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p>"; echo "<a href=\"ownercp.php?action=addsite&sid=$sid\">»Dodaj sajt</a><br/>"; echo "<a href=\"ownercp.php?action=viewsite&sid=$sid\">»Edituj sajt</a><br/>"; //echo "<a href=\"ownercp.php?action=delsite&sid=$sid\">»Obrisi sajt</a><br/>"; echo "</p>"; echo "<p align=\"center\">"; 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>"; echo "</card>"; } else if($action=="addsite") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p>"; echo "Unesi adresu sajta za blokadu<br/>"; echo "<input name=\"site\"/>"; echo "<br/><anchor>Dodaj sajt"; echo "<go href=\"ownerproc.php?action=addsite&sid=$sid\" method=\"post\">"; echo "<postfield name=\"site\" value=\"$(site)\"/>"; echo "</go>"; echo "</anchor>"; echo "</p>"; echo "<p align=\"center\">"; 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>"; echo "</card>"; } else if($action=="viewsite") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p>"; echo "Currently Blocked Sites Are Listed Below"; echo "</p><p>"; $res = mysql_query("SELECT * FROM ibwf_blockedsite"); while ($row = mysql_fetch_array($res)) { echo $row[1]; echo " <a href=\"ownerproc.php?action=delsite&sid=$sid&id=$row[0]\">[X]</a>"; echo "<br/>"; } echo "</p>"; echo "<p align=\"center\">"; 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>"; echo "</card>"; } //////////////////// end blocked site code else if($action=="fcats") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p>"; echo "<a href=\"ownercp.php?action=addcat&sid=$sid\">»Kreiraj Kategoriju</a><br/>"; echo "<a href=\"ownercp.php?action=edtcat&sid=$sid\">»Edituj Kategoriju</a><br/>"; echo "<a href=\"ownercp.php?action=delcat&sid=$sid\">»Obrisi Kategoriju</a><br/>"; echo "</p>"; echo "<p align=\"center\">"; 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>"; echo "</card>"; } else if($action=="club") { $clid = $_GET["clid"]; echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p>"; echo "<a href=\"ownercp.php?action=gccp&sid=$sid&clid=$clid\">»Dodaj Pluseve</a><br/>"; echo "<a href=\"ownerproc.php?action=delclub&sid=$sid&clid=$clid\">»Obrisi klub Club</a><br/>"; echo "</p>"; echo "<p align=\"center\">"; 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>"; echo "</card>"; } else if($action=="manrss") { echo "<card id=\"main\" title=\"RSS Sources\">"; echo "<p>"; echo "<a href=\"ownercp.php?action=addrss&sid=$sid\">»Kreiraj Podrsku</a><br/>"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_rss")); if($noi[0]>0) { $rss = mysql_query("SELECT title, id FROM ibwf_rss"); echo "<br/><select name=\"rssid\">"; while($rs=mysql_fetch_array($rss)) { echo "<option value=\"$rs[1]\">$rs[0]</option>"; } echo "</select><br/>"; echo "<anchor>Prikazi Podrsku"; echo "<go href=\"ownercp.php?action=edtrss&sid=$sid\" method=\"post\">"; echo "<postfield name=\"rssid\" value=\"$(rssid)\"/>"; echo "</go></anchor><br/>"; echo "<anchor>Obrisi Podrsku"; echo "<go href=\"ownerproc.php?action=delrss&sid=$sid\" method=\"post\">"; echo "<postfield name=\"rssid\" value=\"$(rssid)\"/>"; echo "</go></anchor><br/>"; } echo "</p>"; echo "<p align=\"center\">"; 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>"; echo "</card>"; } else if($action=="chrooms") { echo "<card id=\"main\" title=\"Chatrooms\">"; echo "<p>"; echo "<a href=\"ownercp.php?action=addchr&sid=$sid\">»Kreiraj Sobu</a><br/>"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_rooms")); if($noi[0]>0) { $rss = mysql_query("SELECT name, id FROM ibwf_rooms"); echo "<br/><select name=\"chrid\">"; while($rs=mysql_fetch_array($rss)) { echo "<option value=\"$rs[1]\">$rs[0]</option>"; } echo "</select><br/>"; echo "<anchor>Obrisi Sobu"; echo "<go href=\"ownerproc.php?action=delchr&sid=$sid\" method=\"post\">"; echo "<postfield name=\"chrid\" value=\"$(chrid)\"/>"; echo "</go></anchor><br/>"; } echo "</p>"; echo "<p align=\"center\">"; 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>"; echo "</card>"; } else if($action=="forums") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p>"; echo "<a href=\"ownercp.php?action=addfrm&sid=$sid\">»Dodaj Forum</a><br/>"; echo "<a href=\"ownercp.php?action=edtfrm&sid=$sid\">»Edituj Forum</a><br/>"; echo "<a href=\"ownercp.php?action=delfrm&sid=$sid\">»Obrisi Forum</a><br/>"; echo "</p>"; echo "<p align=\"center\">"; 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>"; echo "</card>"; } else if($action=="clrdta") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p>"; echo "<a href=\"ownerproc.php?action=delpms&sid=$sid\">»Obrisi Stare PP</a><br/>"; echo "<a href=\"ownerproc.php?action=clrmlog&sid=$sid\">»Ocisti ModCP</a><br/>"; echo "<a href=\"ownerproc.php?action=delsht&sid=$sid\">»Obrisi Stare Razglase</a><br/>"; echo "</p>"; echo "<p align=\"center\">"; 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>"; echo "</card>"; } else if($action=="ugroups") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p>"; echo "<a href=\"ownercp.php?action=addgrp&sid=$sid\">»Kreiraj Grupu Clanova</a><br/>"; //echo "<a href=\"ownercp.php?action=edtgrp&sid=$sid\">»Edituj Grupu Clanova</a><br/>"; echo "<a href=\"ownercp.php?action=delgrp&sid=$sid\">»Obrisi Grupu Clanova</a><br/>"; echo "</p>"; echo "<p align=\"center\">"; 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>"; echo "</card>"; } else if($action=="addcat") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>Kreiraj Forum Kategoriju</b><br/><br/>"; echo "Ime Kategorije:<input name=\"fcname\" maxlength=\"30\"/><br/>"; echo "Pozicija/Mesto:<input name=\"fcpos\" format=\"*N\" size=\"3\" maxlength=\"3\"/><br/>"; echo "<anchor>POTVRDI"; echo "<go href=\"ownerproc.php?action=addcat&sid=$sid\" method=\"post\">"; echo "<postfield name=\"fcname\" value=\"$(fcname)\"/>"; echo "<postfield name=\"fcpos\" value=\"$(fcpos)\"/>"; echo "</go></anchor>"; echo "<br/><br/><a href=\"ownercp.php?action=fcats&sid=$sid\">"; echo "Forum Kategorije</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>"; echo "</card>"; } else if($action=="addfrm") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>Kreiraj Forum</b><br/><br/>"; echo "Ime Foruma:<input name=\"frname\" maxlength=\"30\"/><br/>"; echo "Pozicija/Mesto:<input name=\"frpos\" format=\"*N\" size=\"3\" maxlength=\"3\"/><br/>"; $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id, name"); echo "Kategorija: <select name=\"fcid\">"; while ($fcat=mysql_fetch_array($fcats)) { echo "<option value=\"$fcat[0]\">$fcat[1]</option>"; } echo "</select><br/>"; echo "<anchor>POTVRDI"; echo "<go href=\"ownerproc.php?action=addfrm&sid=$sid\" method=\"post\">"; echo "<postfield name=\"frname\" value=\"$(frname)\"/>"; echo "<postfield name=\"frpos\" value=\"$(frpos)\"/>"; echo "<postfield name=\"fcid\" value=\"$(fcid)\"/>"; echo "</go></anchor>"; echo "<br/><br/><a href=\"ownercp.php?action=forums&sid=$sid\">"; echo "Panel Forumi</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>"; echo "</card>"; } else if($action=="gccp") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>Dodaj Pluseve Klubu</b><br/><br/>"; $clid = $_GET["clid"]; echo "Pluseva BR:<input name=\"plss\" maxlength=\"3\" size=\"3\" format=\"*N\"/><br/>"; echo "<anchor>POTVRDI"; echo "<go href=\"ownerproc.php?action=gccp&sid=$sid&clid=$clid\" method=\"post\">"; echo "<postfield name=\"plss\" value=\"$(plss)\"/>"; echo "</go></anchor>"; echo "<br/><br/><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>"; echo "</card>"; } else if($action=="addsml") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>Dodaj Smajli</b><br/><br/>"; echo "Kod Smajlija:<input name=\"smlcde\" maxlength=\"30\"/><br/>"; echo "Link Smajlija:<input name=\"smlsrc\" maxlength=\"200\"/><br/>"; echo "<anchor>POTVRDI"; echo "<go href=\"ownerproc.php?action=addsml&sid=$sid\" method=\"post\">"; echo "<postfield name=\"smlcde\" value=\"$(smlcde)\"/>"; echo "<postfield name=\"smlsrc\" value=\"$(smlsrc)\"/>"; echo "</go></anchor>"; echo "<br/><br/><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>"; echo "</card>"; } else if($action=="addgal") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>Dodaj sliku</b><br/><br/>"; echo "Kod slike:<input name=\"galcde\" maxlength=\"30\"/><br/>"; echo "Url slike:<input name=\"galsrc\" maxlength=\"200\"/><br/>"; echo "<anchor>POTVRDI"; echo "<go href=\"ownerproc.php?action=addgal&sid=$sid\" method=\"post\">"; echo "<postfield name=\"galcde\" value=\"$(galcde)\"/>"; echo "<postfield name=\"galsrc\" value=\"$(galsrc)\"/>"; echo "</go></anchor>"; echo "<br/><br/><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=HAPPY&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "HAPPY</a>"; echo "</p>"; echo "</card>"; } else if($action=="addavt") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>Dodaj Avatar</b><br/><br/>"; echo "Link Avatara:<input name=\"avtsrc\" maxlength=\"30\"/><br/>"; echo "<anchor>POTVRDI"; echo "<go href=\"ownerproc.php?action=addavt&sid=$sid\" method=\"post\">"; echo "<postfield name=\"avtsrc\" value=\"$(avtsrc)\"/>"; echo "</go></anchor>"; echo "<br/><br/><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>"; echo "</card>"; } else if($action=="addrss") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>Kreiraj RSS</b><br/><br/>"; echo "Ime RSS-a:<input name=\"rssnm\" maxlength=\"50\"/><br/>"; echo "Link RSS-a:<input name=\"rsslnk\" maxlength=\"255\"/><br/>"; echo "Link Slike RSS-a:<input name=\"rssimg\" maxlength=\"255\"/><br/>"; echo "Kratak Opis:<input name=\"rssdsc\" maxlength=\"255\"/><br/>"; $forums = mysql_query("SELECT id, name FROM ibwf_forums ORDER BY position, id, name"); echo "Forum: <select name=\"fid\">"; echo "<option value=\"0\">NO FORUM</option>"; while ($forum=mysql_fetch_array($forums)) { echo "<option value=\"$forum[0]\">$forum[1]</option>"; } echo "</select><br/>"; echo "<anchor>POTVRDI"; echo "<go href=\"ownerproc.php?action=addrss&sid=$sid\" method=\"post\">"; echo "<postfield name=\"rssnm\" value=\"$(rssnm)\"/>"; echo "<postfield name=\"rsslnk\" value=\"$(rsslnk)\"/>"; echo "<postfield name=\"rssimg\" value=\"$(rssimg)\"/>"; echo "<postfield name=\"rssdsc\" value=\"$(rssdsc)\"/>"; echo "<postfield name=\"fid\" value=\"$(fid)\"/>"; echo "</go></anchor>"; echo "<br/><br/><a href=\"ownercp.php?action=manrss&sid=$sid\">"; echo "<img src=\"http://coding-talk.com/images/rss.gif\" alt=\"rss\"/>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>"; echo "</card>"; } else if($action=="addchr") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>Kreiraj Chat Sobu</b><br/><br/>"; echo "Ime Sobe:<input name=\"chrnm\" maxlength=\"30\"/><br/>"; echo "Minimum Godina:<input name=\"chrage\" format=\"*N\" maxlength=\"3\" size=\"3\"/><br/>"; echo "Minimum Chat Poruka:<input name=\"chrpst\" format=\"*N\" maxlength=\"4\" size=\"4\"/><br/>"; echo "Saglasnost Za:<select name=\"chrprm\">"; echo "<option value=\"0\">Svi</option>"; echo "<option value=\"1\">Moderatori</option>"; echo "<option value=\"2\">Administratori</option>"; echo "</select><br/>"; echo "Censored:<select name=\"chrcns\">"; echo "<option value=\"1\">Da</option>"; echo "<option value=\"0\">Ne</option>"; echo "</select><br/>"; echo "Dodaj Zabavu:<select name=\"chrfun\">"; echo "<option value=\"0\">Ne</option>"; echo "<option value=\"1\">Pogodi Broj</option>"; echo "<option value=\"2\">ravebabe</option>"; echo "</select><br/>"; echo "<anchor>POTVRDI"; echo "<go href=\"ownerproc.php?action=addchr&sid=$sid\" method=\"post\">"; echo "<postfield name=\"chrnm\" value=\"$(chrnm)\"/>"; echo "<postfield name=\"chrage\" value=\"$(chrage)\"/>"; echo "<postfield name=\"chrpst\" value=\"$(chrpst)\"/>"; echo "<postfield name=\"chrprm\" value=\"$(chrprm)\"/>"; echo "<postfield name=\"chrcns\" value=\"$(chrcns)\"/>"; echo "<postfield name=\"chrfun\" value=\"$(chrfun)\"/>"; echo "</go></anchor>"; echo "<br/><br/><a href=\"ownercp.php?action=chrooms&sid=$sid\">"; echo "<img src=\"http://coding-talk.com/images/chat.gif\" alt=\"chat\"/>Chat Sobe</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>"; echo "</card>"; } else if($action=="edtrss") { $rssid = $_POST["rssid"]; $rsinfo = mysql_fetch_array(mysql_query("SELECT title, link, imgsrc, fid, dscr FROM ibwf_rss WHERE id='".$rssid."'")); echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<onevent type=\"onenterforward\">"; echo "<refresh> <setvar name=\"rssnm\" value=\"$rsinfo[0]\"/> <setvar name=\"rsslnk\" value=\"$rsinfo[1]\"/> <setvar name=\"rssimg\" value=\"$rsinfo[2]\"/> <setvar name=\"fid\" value=\"$rsinfo[3]\"/> <setvar name=\"rssdsc\" value=\"$rsinfo[4]\"/> <setvar name=\"rssdsc\" value=\"$rsinfo[4]\"/> <setvar name=\"rssid\" value=\"$rssid\"/> "; echo "</refresh></onevent>"; echo "<p align=\"center\">"; echo "<b>Prikazi RSS</b><br/><br/>"; echo "Ime RSS-a:<input name=\"rssnm\" maxlength=\"50\"/><br/>"; echo "Link RSS-a:<input name=\"rsslnk\" maxlength=\"255\"/><br/>"; echo "Link Slike RSS-a:<input name=\"rssimg\" maxlength=\"255\"/><br/>"; echo "Kratak Opis:<input name=\"rssdsc\" maxlength=\"255\"/><br/>"; $forums = mysql_query("SELECT id, name FROM ibwf_forums ORDER BY position, id, name"); echo "Forum: <select name=\"fid\" value=\"$rsinfo[3]\">"; echo "<option value=\"0\">NE FORUM</option>"; while ($forum=mysql_fetch_array($forums)) { echo "<option value=\"$forum[0]\">$forum[1]</option>"; } echo "</select><br/>"; echo "<anchor>POTVRDI"; echo "<go href=\"ownerproc.php?action=edtrss&sid=$sid\" method=\"post\">"; echo "<postfield name=\"rssnm\" value=\"$(rssnm)\"/>"; echo "<postfield name=\"rsslnk\" value=\"$(rsslnk)\"/>"; echo "<postfield name=\"rssimg\" value=\"$(rssimg)\"/>"; echo "<postfield name=\"rssdsc\" value=\"$(rssdsc)\"/>"; echo "<postfield name=\"fid\" value=\"$(fid)\"/>"; echo "<postfield name=\"rssid\" value=\"$(rssid)\"/>"; echo "</go></anchor>"; echo "<br/><br/><a href=\"ownercp.php?action=manrss&sid=$sid\">"; echo "<img src=\"http://coding-talk.com/images/rss.gif\" alt=\"rss\"/>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>"; echo "</card>"; } else if($action=="addgrp") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>Kreiraj Grupu Clanova</b><br/><br/>"; echo "Ime Grupe:<input name=\"ugname\" maxlength=\"30\"/><br/>"; echo "Automatski Odrediti:<select name=\"ugaa\">"; echo "<option value=\"1\">Da</option>"; echo "<option value=\"0\">Ne</option>"; echo "</select><br/>"; echo "<br/><small><b>Automatski Odrediti Za</b></small><br/>"; echo "Allow:<select name=\"allus\">"; echo "<option value=\"0\">Normalni clanovi</option>"; echo "<option value=\"1\">Moderatori</option>"; echo "<option value=\"2\">Admini</option>"; echo "</select><br/>"; echo "Minimum Godina:"; echo "<input name=\"mage\" format=\"*N\" maxlength=\"3\" size=\"3\"/>"; echo "<br/>Minimum Postova:"; echo "<input name=\"mpst\" format=\"*N\" maxlength=\"3\" size=\"3\"/>"; echo "<br/>Minimum Pluseva:"; echo "<input name=\"mpls\" format=\"*N\" maxlength=\"3\" size=\"3\"/><br/>"; echo "<anchor>POTVRDI"; echo "<go href=\"ownerproc.php?action=addgrp&sid=$sid\" method=\"post\">"; echo "<postfield name=\"ugname\" value=\"$(ugname)\"/>"; echo "<postfield name=\"ugaa\" value=\"$(ugaa)\"/>"; echo "<postfield name=\"allus\" value=\"$(allus)\"/>"; echo "<postfield name=\"mage\" value=\"$(mage)\"/>"; echo "<postfield name=\"mpst\" value=\"$(mpst)\"/>"; echo "<postfield name=\"mpls\" value=\"$(mpls)\"/>"; echo "</go></anchor>"; echo "<br/><br/><a href=\"ownercp.php?action=ugroups&sid=$sid\">"; echo "Grupe 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>"; echo "</card>"; } else if($action=="edtfrm") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>Preimenuj Forum</b><br/><br/>"; $forums = mysql_query("SELECT id,name FROM ibwf_forums ORDER BY position, id, name"); echo "Odaberi Forum: <select name=\"fid\">"; while($forum=mysql_fetch_array($forums)) { echo "<option value=\"$forum[0]\">$forum[1]</option>"; } echo "</select>"; echo "<br/>Ime Foruma:<input name=\"frname\" maxlength=\"30\"/><br/>"; echo "Pozicija/Mesto:<input name=\"frpos\" format=\"*N\" size=\"3\" maxlength=\"3\"/><br/>"; $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id, name"); echo "Kategorija Foruma: <select name=\"fcid\">"; while ($fcat=mysql_fetch_array($fcats)) { echo "<option value=\"$fcat[0]\">$fcat[1]</option>"; } echo "</select><br/>"; echo "<anchor>POTVRDI"; echo "<go href=\"ownerproc.php?action=edtfrm&sid=$sid\" method=\"post\">"; echo "<postfield name=\"fid\" value=\"$(fid)\"/>"; echo "<postfield name=\"frname\" value=\"$(frname)\"/>"; echo "<postfield name=\"frpos\" value=\"$(frpos)\"/>"; echo "<postfield name=\"fcid\" value=\"$(fcid)\"/>"; echo "</go></anchor>"; echo "<br/><br/><a href=\"ownercp.php?action=forums&sid=$sid\">"; echo "Panel Foruma</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>"; echo "</card>"; } else if($action=="delfrm") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>Obrisi Forum</b><br/><br/>"; $forums = mysql_query("SELECT id,name FROM ibwf_forums ORDER BY position, id, name"); echo "Izaberi Forum: <select name=\"fid\">"; while($forum=mysql_fetch_array($forums)) { echo "<option value=\"$forum[0]\">$forum[1]</option>"; } echo "</select><br/>"; echo "<anchor>OBRISI"; echo "<go href=\"ownerproc.php?action=delfrm&sid=$sid\" method=\"post\">"; echo "<postfield name=\"fid\" value=\"$(fid)\"/>"; echo "</go></anchor>"; echo "<br/><br/><a href=\"ownercp.php?action=forums&sid=$sid\">"; echo "Panel Foruma</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>"; echo "</card>"; }else if($action=="delgrp") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>Obrisi Grupu Clanova</b><br/><br/>"; $forums = mysql_query("SELECT id,name FROM ibwf_groups ORDER BY name, id"); echo "Odaberi Grupu: <select name=\"ugid\">"; while($forum=mysql_fetch_array($forums)) { echo "<option value=\"$forum[0]\">$forum[1]</option>"; } echo "</select><br/>"; echo "<anchor>OBRISI"; echo "<go href=\"ownerproc.php?action=delgrp&sid=$sid\" method=\"post\">"; echo "<postfield name=\"ugid\" value=\"$(ugid)\"/>"; echo "</go></anchor>"; echo "<br/><br/><a href=\"ownercp.php?action=forums&sid=$sid\">"; echo "Panel Foruma</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>"; echo "</card>"; } else if($action=="edtcat") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>Preimenuj Kategoriju Foruma</b><br/><br/>"; $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id, name"); echo "Edit: <select name=\"fcid\">"; while ($fcat=mysql_fetch_array($fcats)) { echo "<option value=\"$fcat[0]\">$fcat[1]</option>"; } echo "</select><br/>"; echo "Ime Kategorije:<input name=\"fcname\" maxlength=\"30\"/><br/>"; echo "Pozicija/Mesto:<input name=\"fcpos\" format=\"*N\" size=\"3\" maxlength=\"3\"/><br/>"; echo "<anchor>POTVRDI"; echo "<go href=\"ownerproc.php?action=edtcat&sid=$sid\" method=\"post\">"; echo "<postfield name=\"fcid\" value=\"$(fcid)\"/>"; echo "<postfield name=\"fcname\" value=\"$(fcname)\"/>"; echo "<postfield name=\"fcpos\" value=\"$(fcpos)\"/>"; echo "</go></anchor>"; 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>"; echo "</card>"; }else if($action=="delcat") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "<b>Obrisi Forum Kategoriju</b><br/><br/>"; $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id, name"); echo "Odaberi Kategoriju: <select name=\"fcid\">"; while ($fcat=mysql_fetch_array($fcats)) { echo "<option value=\"$fcat[0]\">$fcat[1]</option>"; } echo "</select><br/>"; echo "<anchor>OBRISI"; echo "<go href=\"ownerproc.php?action=delcat&sid=$sid\" method=\"post\">"; echo "<postfield name=\"fcid\" value=\"$(fcid)\"/>"; echo "</go></anchor>"; echo "<br/><br/><a href=\"ownercp.php?action=fcats&sid=$sid\">"; echo "Forum Categories</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>"; echo "</card>"; } /////////////////////////////////user info else if($action=="chuinfo") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "Pronadji Nik Clana<br/><br/>"; echo "Nik: <input name=\"unick\" format=\"*x\" maxlength=\"15\"/><br/>"; echo "<anchor>[PRONADJI]"; echo "<go href=\"ownercp.php?action=acui&sid=$sid\" method=\"post\">"; echo "<postfield name=\"unick\" value=\"$(unick)\"/>"; echo "</go></anchor>"; echo "<br/><br/><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>"; echo "</card>"; } //////////////////////////////////////Change User info else if($action=="acui") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; $unick = $_POST["unick"]; $tid = getuid_nick($unick); if($tid==0) { echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/>Nik Ne postoji<br/>"; }else{ echo "</p>"; echo "<p>"; echo "<a href=\"ownercp.php?action=chubi&sid=$sid&who=$tid\">»$unick's Profil</a><br/>"; $judg = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_judges WHERE uid='".$tid."'")); if($judg[0]>0) { echo "<a href=\"ownerproc.php?action=deljdg&sid=$sid&who=$tid\">»Pomeri $unick Iz Liste Sudija</a><br/>"; }else{ echo "<a href=\"ownerproc.php?action=addjdg&sid=$sid&who=$tid\">»Napravi $unick Sudijom</a><br/>"; } $vip = mysql_fetch_array(mysql_query("SELECT vip FROM ibwf_users WHERE id='".$tid."'")); if($vip[0]>0) { echo "<a href=\"ownerproc.php?action=skinivip&sid=$sid&who=$tid\">»Skini $unick Vip Status</a><br/>"; }else{ echo "<a href=\"ownerproc.php?action=dodajvip&sid=$sid&who=$tid\">»Dodaj $unick Vip Status</a><br/>"; } //echo "<a href=\"ownercp.php?action=addtog&sid=$sid&who=$tid\">»Dodaj $unick U Grupu Clanova</a><br/>"; //echo "<a href=\"ownercp.php?action=umset&sid=$sid&who=$tid\">»$unick Mod. Podesvanja</a><br/>"; echo "<a href=\"ownerproc.php?action=delxp&sid=$sid&who=$tid\">»Obrisi $unick Postove</a><br/>"; echo "<a href=\"ownerproc.php?action=delu&sid=$sid&who=$tid\">»Obrisi $unick</a><br/>"; echo "</p>"; echo "<p align=\"center\">"; } echo "<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>"; echo "</card>"; } //////////////////////////////////////////// else if($action=="chubi") { echo "<card id=\"main\" title=\"Vlasnicki panel\">"; $who = $_GET["who"]; $unick = getnick_uid($who); echo "<onevent type=\"onenterforward\">"; $avat = getavatar($who); $email = mysql_fetch_array(mysql_query("SELECT email FROM ibwf_users WHERE id='".$who."'")); $site = mysql_fetch_array(mysql_query("SELECT site FROM ibwf_users WHERE id='".$who."'")); $bdy = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id='".$who."'")); $uloc = mysql_fetch_array(mysql_query("SELECT location FROM ibwf_users WHERE id='".$who."'")); $usig = mysql_fetch_array(mysql_query("SELECT signature FROM ibwf_users WHERE id='".$who."'")); $sx = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$who."'")); $perm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$who."'")); echo "<refresh> <setvar name=\"unick\" value=\"$unick\"/> <setvar name=\"savat\" value=\"$avat\"/> <setvar name=\"semail\" value=\"$email[0]\"/> <setvar name=\"usite\" value=\"$site[0]\"/> <setvar name=\"ubday\" value=\"$bdy[0]\"/> <setvar name=\"uloc\" value=\"$uloc[0]\"/> <setvar name=\"usig\" value=\"$usig[0]\"/> <setvar name=\"sx\" value=\"$sx[0]\"/> <setvar name=\"perm\" value=\"$perm[0]\"/> <setvar name=\"npwd\" value=\"\"/> "; echo "</refresh></onevent>"; echo "<p>"; echo "Nik: <input name=\"unick\" maxlength=\"30\"/><br/>"; echo "Avatar: <input name=\"savat\" maxlength=\"100\"/><br/>"; echo "E-Mail: <input name=\"semail\" maxlength=\"100\"/><br/>"; echo "Sajt: <input name=\"usite\" maxlength=\"100\"/><br/>"; echo "Datum Rodjenja<small>(YYYY-MM-DD)</small>: <input name=\"ubday\" maxlength=\"50\"/><br/>"; echo "Lokacija/Grad: <input name=\"uloc\" maxlength=\"50\"/><br/>"; echo "Potpis: <input name=\"usig\" maxlength=\"100\"/><br/>"; echo "Pol: <select name=\"usex\" value=\"$sx[0]\">"; echo "<option value=\"M\">Musko</option>"; echo "<option value=\"F\">Zensko</option>"; echo "</select><br/>"; echo "Privileges: <select name=\"perm\" value=\"$perm[0]\">"; echo "<option value=\"0\">Normalne</option>"; echo "<option value=\"1\">Moderator</option>"; echo "<option value=\"2\">Admin</option>"; echo "<option value=\"3\">Super Admin</option>"; echo "<option value=\"5\">Penzioner</option>"; echo "<option value=\"4\">Vlasnik</option>"; echo "</select><br/>"; echo "<anchor>POTVRDI"; echo "<go href=\"ownerproc.php?action=uprof&sid=$sid&who=$who\" method=\"post\">"; echo "<postfield name=\"unick\" value=\"$(unick)\"/>"; echo "<postfield name=\"savat\" value=\"$(savat)\"/>"; echo "<postfield name=\"semail\" value=\"$(semail)\"/>"; echo "<postfield name=\"usite\" value=\"$(usite)\"/>"; echo "<postfield name=\"ubday\" value=\"$(ubday)\"/>"; echo "<postfield name=\"uloc\" value=\"$(uloc)\"/>"; echo "<postfield name=\"usig\" value=\"$(usig)\"/>"; echo "<postfield name=\"usex\" value=\"$(usex)\"/>"; echo "<postfield name=\"perm\" value=\"$(perm)\"/>"; echo "</go></anchor>"; echo "<br/><br/>"; echo "Promeni Lozinku: <input name=\"npwd\" format=\"*x\" maxlength=\"15\"/><br/>"; echo "<anchor>POTVRDI"; echo "<go href=\"ownerproc.php?action=upwd&sid=$sid&who=$who\" method=\"post\">"; echo "<postfield name=\"npwd\" value=\"$(npwd)\"/>"; echo "</go></anchor>"; echo "</p>"; echo "<p align=\"center\">"; echo "<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>"; echo "</card>"; } else{ echo "<card id=\"main\" title=\"Vlasnicki panel\">"; echo "<p align=\"center\">"; echo "Stvarno ne znm\am sta trazis ovde?:)<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>
Comment