no didnt work m8 here is the whole code it will work with 1 but i'd like it to work with all these usergroups
==============
<?
require("./global.php");
if (in_array($bbuserinfo['usergroupid'], array(5, 6, 7, 42, 44)))
{
show_nopermission();
}
if (!isSet($threadid)) {
header("Location: index.php");
exit;
}
if ($action == "change") {
$threadintro = addslashes($threadintro);
if ($changeall) {
$DB_site->query("UPDATE thread SET threadintro = '$threadintro'");
} else {
$DB_site->query("UPDATE thread SET threadintro = '$threadintro' WHERE threadid = '$threadid'");
}
eval("standardredirect(\"".gettemplate("redirect_t hreadintro")."\",\"showthread. php?s=".$session[sessionhash]."&threadid=\$threadid\");");
exit;
}
$current = $DB_site->fetch_array($DB_site->query("SELECT threadintro FROM thread WHERE threadid = '$threadid'"));
eval("dooutput(\"".gettemplate("threadintro")."\") ;");
?>
|