topical media & game development
basic-php-16-transact-admin.php / php
<?php
session_start();
require_once 'conn.php';
require_once 'http.php';
if (isset(_REQUEST['action']) {
case 'Add Forum':
if (isset(_POST['forumname'] != ""
and isset(_POST['forumdesc'] != "") {
_POST['forumname'], ENT_QUOTES) .
"', '" .
htmlspecialchars(_POST['forummod'][0] . ")";
mysql_query(_POST['forumname'])
and _POST['forumdesc'])
and sql = "UPDATE forum_forum " .
"SET forum_name = '" . _POST['forumdesc'] .
"', forum_moderator = " . _POST['forum_id'];
mysql_query(_POST['userlist'][0]);
break;
case 'Update':
foreach (key => key != 'action') {
value' " .
"WHERE constant = 'sql)
or die(mysql_error());
}
}
redirect('admin.php');
break;
case "deleteForum":
_GET['f'];
mysql_query(sql = "DELETE FROM forum_posts WHERE forum_id=" . sql)
or die(mysql_error());
redirect('admin.php?option=forums');
break;
case "Add New":
_POST['bbcode-tnew'],ENT_QUOTES) . "','" .
htmlentities(sql)
or die(mysql_error() . "<br>" . _GET['b'])) {
_GET['b'];
bbcodeid;
mysql_query(_POST as value) {
if (substr(bbid = str_replace("bbcode_", "", bbid,0,1) == 't') {
col = "replacement";
}
bbid,1);
col='" .
htmlentities(id";
mysql_query(
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.