forked from science-ation/science-ation
- Change auth_required to user_auth_required to check for committee access too
- Add a top navbar to every page
This commit is contained in:
parent
04e70ceb33
commit
5d56e802a0
@ -23,10 +23,18 @@
|
||||
?>
|
||||
<?
|
||||
require("../common.inc.php");
|
||||
auth_required('config');
|
||||
user_auth_required('committee', 'config');
|
||||
|
||||
send_header("Configuration - Categories and Divisions");
|
||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
||||
if($_GET['action']=="edit" || $_GET['action']=="new") {
|
||||
send_header(($_GET['action']=="edit") ? 'Edit Category' : 'New Category',
|
||||
array('Committee Main' => 'committee_main.php',
|
||||
'SFIAB Configuration' => 'config/index.php',
|
||||
'Age Categories' => 'config/categories.php'));
|
||||
} else {
|
||||
send_header("Age Categories",
|
||||
array('Committee Main' => 'committee_main.php',
|
||||
'SFIAB Configuration' => 'config/index.php'));
|
||||
}
|
||||
|
||||
if($_POST['action']=="edit")
|
||||
{
|
||||
@ -96,7 +104,6 @@
|
||||
}
|
||||
|
||||
echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\">";
|
||||
echo "<h3>".i18n("Age Categories")."</h3>";
|
||||
|
||||
if(! ($_GET['action']=="edit" || $_GET['action']=="new") )
|
||||
echo "<a href=\"".$_SERVER['PHP_SELF']."?action=new\">".i18n("Add new age category")."</a>\n";
|
||||
|
@ -23,9 +23,11 @@
|
||||
?>
|
||||
<?
|
||||
require("../common.inc.php");
|
||||
auth_required('config');
|
||||
send_header("Configuration - Dates");
|
||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
||||
user_auth_required('committee', 'config');
|
||||
send_header("Dates",
|
||||
array('Committee Main' => 'committee_main.php',
|
||||
'SFIAB Configuration' => 'config/index.php')
|
||||
);
|
||||
|
||||
$error_ids = array();
|
||||
|
||||
|
@ -23,10 +23,20 @@
|
||||
?>
|
||||
<?
|
||||
require("../common.inc.php");
|
||||
auth_required('config');
|
||||
send_header("Configuration - Project Divisions");
|
||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
||||
user_auth_required('committee', 'config');
|
||||
|
||||
if($_GET['action']=="edit" || $_GET['action']=="new") {
|
||||
send_header(($_GET['action']=="edit") ? "Edit Division" : "New Division",
|
||||
array('Committee Main' => 'committee_main.php',
|
||||
'SFIAB Configuration' => 'config/index.php',
|
||||
'Project Divisions' => 'config/divisions.php') );
|
||||
} else {
|
||||
send_header("Project Divisions",
|
||||
array('Committee Main' => 'committee_main.php',
|
||||
'SFIAB Configuration' => 'config/index.php'));
|
||||
}
|
||||
|
||||
|
||||
if($_POST['action']=="edit")
|
||||
{
|
||||
if($_POST['id'] && $_POST['division'] )
|
||||
@ -117,8 +127,6 @@
|
||||
|
||||
echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\">";
|
||||
|
||||
echo "<h3>".i18n("Project Divisions")."</h3>";
|
||||
|
||||
if(! ($_GET['action']=="edit" || $_GET['action']=="new") )
|
||||
echo "<a href=\"".$_SERVER['PHP_SELF']."?action=new\">".i18n("Add new division")."</a>\n";
|
||||
|
||||
|
@ -23,9 +23,11 @@
|
||||
?>
|
||||
<?
|
||||
require("../common.inc.php");
|
||||
auth_required('config');
|
||||
send_header("Configuration - CWSF Project Divisions");
|
||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
||||
user_auth_required('committee', 'config');
|
||||
send_header("CWSF Project Divisions",
|
||||
array('Committee Main' => 'committee_main.php',
|
||||
'SFIAB Configuration' => 'config/index.php')
|
||||
);
|
||||
|
||||
if(count($_POST['cwsfdivision']))
|
||||
{
|
||||
@ -38,8 +40,6 @@
|
||||
|
||||
echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\">";
|
||||
|
||||
echo "<h3>".i18n("CWSF Project Divisions")."</h3>";
|
||||
|
||||
|
||||
echo i18n("For each of your divisions, please select a corresponding CWSF division if applicable. If no corresponding CWSF division is chosen then you will need to manually select the CWSF division for each project that you register for the CWSF. You can select the 'most likely' division to use as a default which can then be changed on a per-project basis when you perform the automatic CWSF registration");
|
||||
|
||||
|
@ -23,9 +23,10 @@
|
||||
?>
|
||||
<?
|
||||
require("../common.inc.php");
|
||||
auth_required('config');
|
||||
send_header("Configuration - Images");
|
||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
||||
user_auth_required('committee', 'config');
|
||||
send_header("Fair Logo Image",
|
||||
array('Committee Main' => 'committee_main.php',
|
||||
'SFIAB Configuration' => 'config/index.php'));
|
||||
|
||||
if($_POST['action']=="addimage")
|
||||
{
|
||||
@ -85,7 +86,6 @@ if($_POST['action']=="delimage") {
|
||||
|
||||
echo "<form enctype=\"multipart/form-data\" method=\"post\" action=\"images.php\">";
|
||||
echo "<input type=\"hidden\" name=\"action\" value=\"addimage\">\n";
|
||||
echo "<h3>".i18n("Fair Logo Image")."</h3>";
|
||||
echo "<table>";
|
||||
if(file_exists("../data/logo.gif"))
|
||||
{
|
||||
|
@ -23,9 +23,11 @@
|
||||
?>
|
||||
<?
|
||||
require("../common.inc.php");
|
||||
auth_required('config');
|
||||
user_auth_required('committee', 'config');
|
||||
|
||||
send_header("Configuration");
|
||||
send_header("SFIAB Configuration",
|
||||
array('Committee Main' => 'committee_main.php')
|
||||
);
|
||||
|
||||
echo "<a href=\"variables.php\">".i18n("Configuration Variables")."</a> <br />";
|
||||
echo "<a href=\"dates.php\">".i18n("Important Dates")."</a> <br />";
|
||||
|
@ -24,9 +24,11 @@
|
||||
<?
|
||||
require("../questions.inc.php");
|
||||
require("../common.inc.php");
|
||||
auth_required('config');
|
||||
send_header("Configuration - Judge Registration Questions");
|
||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
||||
user_auth_required('committee', 'config');
|
||||
send_header("Judge Registration Questions",
|
||||
array('Committee Main' => 'committee_main.php',
|
||||
'SFIAB Configuration' => 'config/index.php')
|
||||
);
|
||||
|
||||
questions_editor('judgereg', $config['FAIRYEAR'], 'question',
|
||||
$_SERVER['PHP_SELF']);
|
||||
|
@ -23,9 +23,11 @@
|
||||
?>
|
||||
<?
|
||||
require("../common.inc.php");
|
||||
auth_required('config');
|
||||
send_header("Configuration - Language Packs");
|
||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
||||
user_auth_required('committee', 'config');
|
||||
send_header("Language Packs",
|
||||
array('Committee Main' => 'committee_main.php',
|
||||
'SFIAB Configuration' => 'config/index.php')
|
||||
);
|
||||
|
||||
echo i18n("Checking for language packs will access a remote server, if you wish to continue click the 'Check for available language packs' link below");
|
||||
echo "<br />";
|
||||
@ -62,6 +64,7 @@
|
||||
$packs=loadLanguagePacks();
|
||||
|
||||
$num=count($packs);
|
||||
echo '<hr />';
|
||||
echo i18n("Found %1 available language pack(s)",array($num));
|
||||
//format of each line is:
|
||||
//lang:filename:lastupdate
|
||||
|
@ -23,9 +23,11 @@
|
||||
?>
|
||||
<?
|
||||
require("../common.inc.php");
|
||||
auth_required('config');
|
||||
send_header("Configuration - Page Texts");
|
||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
||||
user_auth_required('committee', 'config');
|
||||
send_header("Page Texts",
|
||||
array('Committee Main' => 'committee_main.php',
|
||||
'SFIAB Configuration' => 'config/index.php')
|
||||
);
|
||||
|
||||
$q=mysql_query("SELECT * FROM pagetext WHERE year='-1' ORDER BY textname");
|
||||
while($r=mysql_fetch_object($q))
|
||||
|
@ -23,8 +23,11 @@
|
||||
?>
|
||||
<?
|
||||
require("../common.inc.php");
|
||||
auth_required('config');
|
||||
send_header("Year Rollover");
|
||||
user_auth_required('committee', 'config');
|
||||
send_header("Year Rollover",
|
||||
array('Committee Main' => 'committee_main.php',
|
||||
'SFIAB Configuration' => 'config/index.php')
|
||||
);
|
||||
?>
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
@ -48,8 +51,6 @@
|
||||
</script>
|
||||
<?
|
||||
|
||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
||||
|
||||
if($_POST['action']=="rollover" && $_POST['nextfairyear'])
|
||||
{
|
||||
$newfairyear=$_POST['nextfairyear'];
|
||||
|
@ -23,10 +23,11 @@
|
||||
?>
|
||||
<?
|
||||
require("../common.inc.php");
|
||||
auth_required('config');
|
||||
send_header("Configuration - Safety Questions");
|
||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
||||
|
||||
user_auth_required('committee', 'config');
|
||||
send_header("Safety Questions",
|
||||
array('Committee Main' => 'committee_main.php',
|
||||
'SFIAB Configuration' => 'config/index.php')
|
||||
);
|
||||
if($_POST['action']=="save" && $_POST['save'])
|
||||
{
|
||||
if($_POST['question'])
|
||||
|
@ -23,9 +23,11 @@
|
||||
?>
|
||||
<?
|
||||
require("../common.inc.php");
|
||||
auth_required('config');
|
||||
send_header("Configuration - Signature Page");
|
||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
||||
user_auth_required('committee', 'config');
|
||||
send_header("Signature Page",
|
||||
array('Committee Main' => 'committee_main.php',
|
||||
'SFIAB Configuration' => 'config/index.php')
|
||||
);
|
||||
|
||||
if($_POST['action']=="save")
|
||||
{
|
||||
@ -41,7 +43,6 @@
|
||||
echo happy(i18n("Signature page text successfully saved"));
|
||||
}
|
||||
|
||||
echo "<br />";
|
||||
|
||||
$q=mysql_query("SELECT * FROM signaturepage WHERE name='exhibitordeclaration'");
|
||||
$r=mysql_fetch_object($q);
|
||||
|
@ -23,9 +23,17 @@
|
||||
?>
|
||||
<?
|
||||
require("../common.inc.php");
|
||||
auth_required('config');
|
||||
send_header("Configuration - Project Sub-Divisions");
|
||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
||||
user_auth_required('committee', 'config');
|
||||
if($_GET['action']=="edit" || $_GET['action']=="new") {
|
||||
send_header(($_GET['action']=="edit") ? "Edit Sub-Division" : "New Sub-Division",
|
||||
array('Committee Main' => 'committee_main.php',
|
||||
'SFIAB Configuration' => 'config/index.php',
|
||||
'Project Sub-Divisions' => 'config/subdivisions.php'));
|
||||
} else {
|
||||
send_header("Project Sub-Divisions",
|
||||
array('Committee Main' => 'committee_main.php',
|
||||
'SFIAB Configuration' => 'config/index.php'));
|
||||
}
|
||||
|
||||
if($_POST['action']=="edit")
|
||||
{
|
||||
@ -95,8 +103,6 @@
|
||||
|
||||
echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\">";
|
||||
|
||||
echo "<h3>".i18n("Project Sub-Divisions")."</h3>";
|
||||
|
||||
if(! ($_GET['action']=="edit" || $_GET['action']=="new") )
|
||||
echo "<a href=\"".$_SERVER['PHP_SELF']."?action=new\">".i18n("Add new sub-division")."</a>\n";
|
||||
|
||||
|
@ -24,9 +24,11 @@
|
||||
<?
|
||||
require("../common.inc.php");
|
||||
require_once("../config_editor.inc.php");
|
||||
auth_required('config');
|
||||
send_header("Configuration - Variables");
|
||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
||||
user_auth_required('committee', 'config');
|
||||
send_header("Variables",
|
||||
array('Committee Main' => 'committee_main.php',
|
||||
'SFIAB Configuration' => 'config/index.php')
|
||||
);
|
||||
|
||||
$q=mysql_query("SELECT * FROM config WHERE year='-1'");
|
||||
while($r=mysql_fetch_object($q))
|
||||
|
@ -23,9 +23,11 @@
|
||||
?>
|
||||
<?
|
||||
require("../common.inc.php");
|
||||
auth_required('config');
|
||||
send_header("Configuration - Version Checker");
|
||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
||||
user_auth_required('committee', 'config');
|
||||
send_header("Version Checker",
|
||||
array('Committee Main' => 'committee_main.php',
|
||||
'SFIAB Configuration' => 'config/index.php')
|
||||
);
|
||||
|
||||
echo i18n("Checking for new versions will access a remote server, if you wish to continue click the 'Check for new versions' link below");
|
||||
echo "<br />";
|
||||
|
Loading…
Reference in New Issue
Block a user