thanks for this great add-on hack. however i have a question?
if i delete this part in /quizzes/global.php
PHP Code:
$permissions=getpermissions();
if (!ismoderator() or !$permissions['canview']) {
cpheader("<title>Moderators control panel</title>");
?><br><br><br>
<table cellpadding="1" cellspacing="0" border="0" class="tblborder" align="center" width="450"><tr><td>
<table cellpadding="4" cellspacing="0" border="0" width="100%">
<?php maketableheader("Please Log in:","login",0,1); ?>
<tr class="firstalt" id="submitrow"><td align="center" nowrap><p>You are either not a valid moderator or have not logged in.</p>
<form action="index.php" method="post" id="submitrow">
<input type="hidden" name="s" value="<?php echo $session[sessionhash]; ?>">
<input type="hidden" name="action" value="login">
<input type="hidden" name="redirect" value="<?php
if ($HTTP_SERVER_VARS['REQUEST_URI']!="") {
$redirecturl = $HTTP_SERVER_VARS['REQUEST_URI'];
} else {
$redirecturl = $PHP_SELF;
}
if (strpos(" $redirecturl", "?")) {
$redirecturl .= "&s=$session[sessionhash]";
} else {
$redirecturl .= "?s=$session[sessionhash]";
}
echo htmlspecialchars($redirecturl);
?>">
<input type="text" name="loginusername">
<input type="password" name="loginpassword">
<input type="submit" value=" Log in " accesskey="s">
</form>
</td></tr></table>
</td></tr></table>
<p align="center"><font size="1">vBulletin v<?php echo $templateversion ?> Moderator Control Panel</font></p>
<?php
cpfooter();
exit;
}
what will happen is that it not require login anymore so any user can add or modify a quiz
also in /quizzes/index.php
if i remove all stuffes and leave only this
PHP Code:
<?php
makenavoption("Add","admin_quiz.php?action=addquiz","|");
makenavoption("Approve","admin_quiz.php?action=approve","|");
makenavselect("Quizzes");
?>
so that they only can add or approve...no delete or modify.
so the question is , will this modify (above) will effect the forum security and if it does, in what way?
thanks