can u guys help me on how to set up the owner cp on my lava i did everything but the owner cp is showin on a admin profile and i cant access the owner cp can u please tell me wats the prob a having
Owner Cp on lavalair
Collapse
X
-
Create ownerproc.php, with the same options as well as adminprocp.php and ownercp.php all direct to ownerproc.php and not to adminproc.php ... I am so done and it works
ownerproc.php
PHP Code:<?php
/**
*
* Happy Forum Skripta
*
*
*/
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 Forum\">";
echo "<p align=\"center\">";
echo "Niste Ulogovani!<br/>";
echo "Ili je vas pristupni period istekao!<br/><br/>";
echo "<a href=\"index.php\">Uloguj se!</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
addonline(getuid_sid($sid),"Vlasnicki 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='4ummsg'");
if($res)
{
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Forum poruke azurirane uspesno!<br/>";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce azurirati Forum poruke!<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\"/>Pristupni Period azuriran uspesno!<br/>";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce azurirati Pristupni Period<br/>";
}
$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 je $pmaf sekundi!<br/>";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce azurirati 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 azurirana uspesno!<br/>";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce azurirati registraciju!<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 azuriran uspesno!<br/>";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce azurirati Forum!<br/>";
}
echo "<br/>";
echo "<a href=\"ownercp.php?action=general&sid=$sid\">";
echo "Opsta Podesavanja</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>";
}
if($action=="ppzasveii")
{
echo "<card id=\"main\" title=\"PP svima\">";
echo "<p align=\"center\">";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
str_replace("$","\$",$poruka);
$tm = time()+(7*60*60);
$max = mysql_fetch_array(mysql_query("SELECT MAX(id) FROM ibwf_users"));
$maxid = $max[0];
$text = "$poruka [br/]PS:Ovo je automatska poruka i poslala je Vlasnica foruma.Ne treba odgovarati na nju!";
for ($i=1; $i <= $maxid; $i++)
{
$ppsvima = mysql_query("INSERT INTO ibwf_private SET text='".$text."', byuid='".$byuid."', touid='".$i."', timesent='".$tm."'");
}
echo "PP je uspesno poslana za sve clanove<br/><br/>";
echo parsepm($poruka, $sid);
echo "<a href=\"index.php?action=main&sid=$sid\">$glavna";
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("$","\$",$poruka);
$tm = time()+(7*60*60);
$sex = mysql_query("SELECT id FROM ibwf_users WHERE sex='F'");
$tm = time();
$text = "$poruka [br/]PS:Ovo je automatska poruka za sve ZENSKE clanove i poslala je Vlasnica foruma.Ne treba odgovarati na nju!";
while($f = mysql_fetch_array($sex))
{
$ppzene = mysql_query("INSERT INTO ibwf_private SET text='".$text."', byuid='".$byuid."', touid='".$f[0]."', timesent='".$tm."'");
}
echo "PP je uspesno poslana za sve zenske clanove<br/><br/>";
echo parsepm($poruka, $sid);
echo "<a href=\"index.php?action=main&sid=$sid\">$glavna";
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("$","\$",$poruka);
$tm = time()+(7*60*60);
$sex = mysql_query("SELECT id FROM ibwf_users WHERE sex='M'");
$tm = time();
$text = "$poruka [br/]PS:Ovo je automatska poruka za sve MUSKE clanove i poslala je Vlasnica foruma.Ne treba odgovarati na nju!";
while($f = mysql_fetch_array($sex))
{
$ppzene = mysql_query("INSERT INTO ibwf_private SET text='".$text."', byuid='".$byuid."', touid='".$f[0]."', timesent='".$tm."'");
}
echo "PP je uspesno poslana za sve muske clanove<br/><br/>";
echo parsepm($poruka, $sid);
echo "<a href=\"index.php?action=main&sid=$sid\">$glavna";
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 u LEFT JOIN ibwf_penalties p ON u.id=p.uid AND (penalty='1' OR penalty='2') HAVING perm > 0 AND pid IS NULL AND id != $byuid");
$text2 = "$pmtext [br/]PS:Ovo je automatska poruka moderatorima i poslala je Vlasnica foruma.Ne treba odgovarati na nju!";
$tm = time();
$query='INSERT INTO ibwf_private (`text`,`byuid`,`touid`,`timesent`) VALUES ';
$counter=0;
foreach($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:Ovo je automatska poruka moderatorima i poslala je Vlasnica foruma.Ne treba odgovarati na nju!";
$counter=0;
}
}
if($counter > 0){
mysql_query($query);
}
addonline("Salje poruku administraciji!");
echo "<card id=\"main\" title=\"PP Inbox\">";
echo "<p align=\"center\"><small>";
echo '<b>Poruka poslata za <b>'.count($to_arr).'</b> clanova administracije.</b><br/>'.mysql_error();
$text2 = "$pmtext [br/]PS:Ovo je automatska poruka moderatorima i poslala je Vlasnica foruma.Ne treba odgovarati na nju!";
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."', forum='".$fid."'");
if($res)
{
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Mod privilegije dodate!<br/>";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Greska baze podataka!<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 "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=="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\"/>Klub uspesno obrisan!<br/>";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Greska baze podataka!<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></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\"/>Plusevi Kluba azurirani!<br/>";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Greska baze podataka!<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></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 ibwf_modr WHERE name='".$mid."' AND forum='".$fid."'");
if($res)
{
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Mod Privilegije obrisane!<br/>";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Greska baze podataka!<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 "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=="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 Kategorije uspesno dodate!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce dodati Forum Kategorije!";
}
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 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 dodat uspesno!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce dodati Forum!";
}
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></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\"/>Smajli uspesno dodat!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce dodati Smajli!";
}
echo "<br/><br/><a href=\"ownercp.php?action=addsml&sid=$sid\">";
echo "Panel Smajlija</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=="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 uspesno dodat!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce dodati Avatar!";
}
echo "<br/><br/><a href=\"ownercp.php?action=addavt&sid=$sid\">";
echo "Panel Avatara</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=="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\"/>Sudija dodat uspesno!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce dodati Sudiju!";
}
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=="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\"/>Sudija obrisan uspesno!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce obisati Sudiju!";
}
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=="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\"/>Smajli obrisan uspesno!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce obrisati Smajli!";
}
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></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 podrska uspesno dodata!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce dodati RSS podrsku!";
}
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=="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 Soba uspesno kreirana!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce kreirati Cet Sobu!";
}
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=="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 podrska uspesno azurirana!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce azurirati RSS podrsku!";
}
echo "<br/><br/><a href=\"ownercp.php?action=manrss&sid=$sid\">";
echo "RSS Menazder</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=="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\"/>Saglasnost uspesno dodata!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce dodati saglasnost!";
}
echo "<br/><br/><a href=\"ownercp.php?action=addperm&sid=$sid\">";
echo "Dodaj Saglasnost</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>";
}
//////////////////////////////////////////Update profile
else if($action=="uprof")
{
$who = $_GET["who"];
$unick = $_POST["unick"];
$perm = $_POST["perm"];
$savat = $_POST["savat"];
$semail = $_POST["semail"];
$usite = $_POST["usite"];
$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 vec postoi, izaberite neki drugi!<br/>";
}else
{
$res = mysql_query("UPDATE ibwf_users SET avatar='".$savat."', email='".$semail."', site='".$usite."', birthday='".$ubday."', location='".$uloc."', signature='".$usig."', sex='".$usex."', name='".$unick."', perm='".$perm."' WHERE id='".$who."'");
if($res)
{
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"o\"/>$unick profil je uspesno azuriran!<br/>";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/>Nemoguce azurirati $unick profil!<br/>";
}
}
}else
{
$res = mysql_query("UPDATE ibwf_users SET avatar='".$savat."', email='".$semail."', site='".$usite."', birthday='".$ubday."', location='".$uloc."', signature='".$usig."', sex='".$usex."', name='".$unick."', perm='".$perm."' WHERE id='".$who."'");
if($res)
{
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"o\"/>$unick profil je uspesno azuriran!<br/>";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/>Nemoguce azurirati $unick profil!<br/>";
}
}
echo "<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>";
}
/////////////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\"/>Lozinka mora sadrzati od 4 do 15 slova ili brojeva!<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\"/>Lozinka uspesno azurirana!<br/>";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/>Nemoguce azurirati lozinku!<br/>";
}
}
echo "<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>";
}
///////////////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\"/>Grupa Clanova uspesno kreirana!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce kreirati Grupu clanova!";
}
echo "<br/><br/><a href=\"ownercp.php?action=ugroups&sid=$sid\">";
echo "Panel 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></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 azuriran uspesno!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce azurirati Forum!";
}
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></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 uspesno azurirane!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce azurirati Forum Kategorije!";
}
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 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 uspesno obrisan!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce obrisati Forum!";
}
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></card>";
}
else if($action=="delpms")
{
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo "<br/>";
$res = mysql_query("DELETE FROM ibwf_private WHERE reported!='1' AND starred='0' AND unread='0'");
if($res)
{
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Sve PP su obrisane osim zapocetih, trnutno aktivnih i neprocitanih!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Greska baze podataka!";
}
echo "<br/><br/><a href=\"ownercp.php?action=clrdta&sid=$sid\">";
echo "Panel Forum Podataka</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=="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 uspesno obrisan!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Greska baze podataka!";
}
echo "<br/><br/><a href=\"ownercp.php?action=clrdta&sid=$sid\">";
echo "Panel Forum Podataka</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 "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 ibwf_shouts WHERE shtime<'".$altm."'");
if($res)
{
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Razglasi stariji od 2 dana su uspesno obrisani!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Greska baze podataka!";
}
echo "<br/><br/><a href=\"ownercp.php?action=clrdta&sid=$sid\">";
echo "Panel Forum Podataka</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=="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\"/>Grupa Clanova uspesno obrisana!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce obrisati Grupu Clanova!";
}
echo "<br/><br/><a href=\"ownercp.php?action=ugroups&sid=$sid\">";
echo "Panel Grupa 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=="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>Last edited by metulj; 10.04.09, 16:09.
-
that is happening because ownercp.php associated with adminproc.php ... that the error would have to change adminproc.php with ownerproc.php file ... understand? In the database in your representation Sign Perm 4 (or the number you gave in the core of Perm owner)
adminproc.php allows ADMIN (perm.2) access .. not OWNWR (perm.4) ... because the faultLast edited by srecnica; 10.04.09, 20:43.
Comment
-
of course, to ... in core.php if the owner = perm4 the work .. or if the owner = perm.3 work .. but should be in the database to be the same. understand? Please .. entry in the database in the table users to your representative instead of Perm 2 (admin) Perm 3 or 4, as he writes in core.php. and needs to work
Comment
-
core.php
Code:function getstatus($uid) { $info= mysql_fetch_array(mysql_query("SELECT perm, plusses FROM ibwf_users WHERE id='".$uid."'")); if(isbanned($uid)) { return "Banovan!<img src=\"images/banovan.gif\" alt=\"*\"/>"; } if($info[0]=='5') { return "Happy penzioner!"; } if($info[0]=='4') { return "Owner!"; } if($info[0]=='2') { return "Admin"; }else if($info[0]=='1') { return "Moderator"; }else{ if($info[1]<10) { return "Tek registrovan"; }else if($info[1]<25) { return "Zagrejan"; }else if($info[1]<50) { return "Krece u akciju"; }else if($info[1]<75) { return "Napreduje"; }else if($info[1]<250) { return "zreo za forum"; }else if($info[1]<500) { return "Forumash"; }else if($info[1]<750) { return "Ozbiljan Clan"; }else if($info[1]<1000) { return "Super Clan"; }else if($info[1]<1500) { return "Extra Clan"; }else if($info[1]<2000) { return "Master"; }else if($info[1]<2500) { return "Vele Master"; }else if($info[1]<3000) { return "Sta reci"; }else if($info[1]<4000) { return "Lud za Forumom"; }else if($info[1]<5000) { return "Neogranicene privilegije"; }else if($info[1]<10000) { return "Neprikosnoven"; }else { return "Nenadmasan"; } } } function isowner($uid) { $own = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'")); if($own[0]==4) { return true; }else{ return false; } }
Comment
Comment