Exemple #1
0
                $capabilities[] = "OffTopic";
            }
            if (isset($opts[$i]['Advertise'])) {
                $capabilities[] = "Advertise";
            }
            $capabilities = join(",", $capabilities);
            db_exec("update f_moderators set capabilities = ? " . "where aid = ? and fid = ?", array($capabilities, $aid, $fid));
        }
    }
    Header("Location: useracl.phtml?message=" . urlencode("User ACL Modified"));
    exit;
}
if (!isset($aid)) {
    page_header("Modify User ACL");
    #  page_show_nav("1.2");
    ads_die("", "No AID specified");
}
page_header("Modify User ACL {$aid}");
?>

<form method="post" action="<?php 
echo basename($_SERVER['PHP_SELF']);
?>
">
<input type="hidden" name="aid" value="<?php 
echo $aid;
?>
">
<table>

<?php 
Exemple #2
0
        $options[] = "ExternallySearchable";
    }
    if (isset($options)) {
        $options = implode(",", $options);
    } else {
        $options = "";
    }
    db_exec("replace into f_forums " . "( fid, name, shortname, options ) " . "values ( ?, ?, ?, ?)", array($fid, $name, $shortname, $options));
    Header("Location: index.phtml?message=" . urlencode("Forum Modified"));
    exit;
}
/* If we find an ID, means that we're in update mode */
if (!is_valid_integer($_GET['fid'])) {
    page_header("Modify forum");
    #  page_show_nav("1.2");
    ads_die("", "No forum ID specified (fid)");
}
$forum = db_query_first("select * from f_forums,f_indexes where f_forums.fid=f_indexes.fid and f_forums.fid = ?", array($_GET['fid']));
$options = explode(",", $forum['options']);
foreach ($options as $value) {
    $options[$value] = true;
}
page_header("Modify '" . $forum['name'] . "' fid=" . $forum['fid']);
#page_show_nav("1.2");
?>

<form method="post" action="<?php 
echo basename($_SERVER['PHP_SELF']);
?>
">
<input type="hidden" name="fid" value="<?php