News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu

Paste-1200945413:v:use_geshi-1:v:type-php

Started by Guest, Jan 21, 2008, 07:56 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Guest

if (file_exists("install.php"))
require("install.php");
else
{
require("admin/config.php");
require("admin/permissions.php");
$cv="094";
require("themes/$themedir/main.php");
if ($_GET['showforum'])
require("themes/$themedir/showforum.php");
elseif ($_GET[edituser])
require("themes/$themedir/editprofile.php");
//ADMIN CONTROL PANEL PAGES
elseif ($_GET['admin'] == "wordcensors")
require("admin/wordcensors.php");
elseif ($_GET['admin'] == "ranks")
require("admin/ranks.php");
elseif ($_GET['admin'] == "boardsettings")
require("admin/boardsettings.php");
elseif ($_GET['admin'] == "messages")
require("admin/messages.php");
elseif ($_GET['admin'] == "groups" || $_GET['admin'] == "addgroups" || $_GET['admin'] == "editgroups")
require("admin/groups.php");
elseif ($_GET['admin'] == "addforums") {
$addforums="true";
require("admin/forums.php");
}

Guest

mysql_query("UPDATE permissions SET group1='$_POST[group1]' WHERE id = '$_POST[id]'");
mysql_query("UPDATE permissions SET repeatamount='$_POST[repeatamount]',showname='$_POST[showname]',canadmin='$_POST[canadmin]',canedituser='$_POST[canedituser]',
candeleteuser='$_POST[candeleteuser]',candeleteowntopic='$_POST[candeleteowntopic]',
candeletetopic='$_POST[candeletetopic]',canposttopic='$_POST[canposttopic]',caneditownpost='$_POST[caneditownpost]',
caneditpost='$_POST[caneditpost]',candeleteownpost='$_POST[candeleteownpost]',candeletepost='$_POST[candeletepost]',
canpostreply='$_POST[canpostreply]',canpostpoll='$_POST[canpostpoll]',cansticky='$_POST[cansticky]',
canmove='$_POST[canmove]',private1='$_POST[private]' WHERE id = '$_POST[id]'");