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");
|
require("../common.inc.php");
|
||||||
auth_required('config');
|
user_auth_required('committee', 'config');
|
||||||
|
|
||||||
send_header("Configuration - Categories and Divisions");
|
if($_GET['action']=="edit" || $_GET['action']=="new") {
|
||||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
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")
|
if($_POST['action']=="edit")
|
||||||
{
|
{
|
||||||
@ -96,7 +104,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\">";
|
echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\">";
|
||||||
echo "<h3>".i18n("Age Categories")."</h3>";
|
|
||||||
|
|
||||||
if(! ($_GET['action']=="edit" || $_GET['action']=="new") )
|
if(! ($_GET['action']=="edit" || $_GET['action']=="new") )
|
||||||
echo "<a href=\"".$_SERVER['PHP_SELF']."?action=new\">".i18n("Add new age category")."</a>\n";
|
echo "<a href=\"".$_SERVER['PHP_SELF']."?action=new\">".i18n("Add new age category")."</a>\n";
|
||||||
|
@ -23,9 +23,11 @@
|
|||||||
?>
|
?>
|
||||||
<?
|
<?
|
||||||
require("../common.inc.php");
|
require("../common.inc.php");
|
||||||
auth_required('config');
|
user_auth_required('committee', 'config');
|
||||||
send_header("Configuration - Dates");
|
send_header("Dates",
|
||||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
array('Committee Main' => 'committee_main.php',
|
||||||
|
'SFIAB Configuration' => 'config/index.php')
|
||||||
|
);
|
||||||
|
|
||||||
$error_ids = array();
|
$error_ids = array();
|
||||||
|
|
||||||
|
@ -23,10 +23,20 @@
|
|||||||
?>
|
?>
|
||||||
<?
|
<?
|
||||||
require("../common.inc.php");
|
require("../common.inc.php");
|
||||||
auth_required('config');
|
user_auth_required('committee', 'config');
|
||||||
send_header("Configuration - Project 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 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['action']=="edit")
|
||||||
{
|
{
|
||||||
if($_POST['id'] && $_POST['division'] )
|
if($_POST['id'] && $_POST['division'] )
|
||||||
@ -117,8 +127,6 @@
|
|||||||
|
|
||||||
echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\">";
|
echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\">";
|
||||||
|
|
||||||
echo "<h3>".i18n("Project Divisions")."</h3>";
|
|
||||||
|
|
||||||
if(! ($_GET['action']=="edit" || $_GET['action']=="new") )
|
if(! ($_GET['action']=="edit" || $_GET['action']=="new") )
|
||||||
echo "<a href=\"".$_SERVER['PHP_SELF']."?action=new\">".i18n("Add new division")."</a>\n";
|
echo "<a href=\"".$_SERVER['PHP_SELF']."?action=new\">".i18n("Add new division")."</a>\n";
|
||||||
|
|
||||||
|
@ -23,9 +23,11 @@
|
|||||||
?>
|
?>
|
||||||
<?
|
<?
|
||||||
require("../common.inc.php");
|
require("../common.inc.php");
|
||||||
auth_required('config');
|
user_auth_required('committee', 'config');
|
||||||
send_header("Configuration - CWSF Project Divisions");
|
send_header("CWSF Project Divisions",
|
||||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
array('Committee Main' => 'committee_main.php',
|
||||||
|
'SFIAB Configuration' => 'config/index.php')
|
||||||
|
);
|
||||||
|
|
||||||
if(count($_POST['cwsfdivision']))
|
if(count($_POST['cwsfdivision']))
|
||||||
{
|
{
|
||||||
@ -38,8 +40,6 @@
|
|||||||
|
|
||||||
echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\">";
|
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");
|
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");
|
require("../common.inc.php");
|
||||||
auth_required('config');
|
user_auth_required('committee', 'config');
|
||||||
send_header("Configuration - Images");
|
send_header("Fair Logo Image",
|
||||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
array('Committee Main' => 'committee_main.php',
|
||||||
|
'SFIAB Configuration' => 'config/index.php'));
|
||||||
|
|
||||||
if($_POST['action']=="addimage")
|
if($_POST['action']=="addimage")
|
||||||
{
|
{
|
||||||
@ -85,7 +86,6 @@ if($_POST['action']=="delimage") {
|
|||||||
|
|
||||||
echo "<form enctype=\"multipart/form-data\" method=\"post\" action=\"images.php\">";
|
echo "<form enctype=\"multipart/form-data\" method=\"post\" action=\"images.php\">";
|
||||||
echo "<input type=\"hidden\" name=\"action\" value=\"addimage\">\n";
|
echo "<input type=\"hidden\" name=\"action\" value=\"addimage\">\n";
|
||||||
echo "<h3>".i18n("Fair Logo Image")."</h3>";
|
|
||||||
echo "<table>";
|
echo "<table>";
|
||||||
if(file_exists("../data/logo.gif"))
|
if(file_exists("../data/logo.gif"))
|
||||||
{
|
{
|
||||||
|
@ -23,9 +23,11 @@
|
|||||||
?>
|
?>
|
||||||
<?
|
<?
|
||||||
require("../common.inc.php");
|
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=\"variables.php\">".i18n("Configuration Variables")."</a> <br />";
|
||||||
echo "<a href=\"dates.php\">".i18n("Important Dates")."</a> <br />";
|
echo "<a href=\"dates.php\">".i18n("Important Dates")."</a> <br />";
|
||||||
|
@ -24,9 +24,11 @@
|
|||||||
<?
|
<?
|
||||||
require("../questions.inc.php");
|
require("../questions.inc.php");
|
||||||
require("../common.inc.php");
|
require("../common.inc.php");
|
||||||
auth_required('config');
|
user_auth_required('committee', 'config');
|
||||||
send_header("Configuration - Judge Registration Questions");
|
send_header("Judge Registration Questions",
|
||||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
array('Committee Main' => 'committee_main.php',
|
||||||
|
'SFIAB Configuration' => 'config/index.php')
|
||||||
|
);
|
||||||
|
|
||||||
questions_editor('judgereg', $config['FAIRYEAR'], 'question',
|
questions_editor('judgereg', $config['FAIRYEAR'], 'question',
|
||||||
$_SERVER['PHP_SELF']);
|
$_SERVER['PHP_SELF']);
|
||||||
|
@ -23,9 +23,11 @@
|
|||||||
?>
|
?>
|
||||||
<?
|
<?
|
||||||
require("../common.inc.php");
|
require("../common.inc.php");
|
||||||
auth_required('config');
|
user_auth_required('committee', 'config');
|
||||||
send_header("Configuration - Language Packs");
|
send_header("Language Packs",
|
||||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
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 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 />";
|
echo "<br />";
|
||||||
@ -62,6 +64,7 @@
|
|||||||
$packs=loadLanguagePacks();
|
$packs=loadLanguagePacks();
|
||||||
|
|
||||||
$num=count($packs);
|
$num=count($packs);
|
||||||
|
echo '<hr />';
|
||||||
echo i18n("Found %1 available language pack(s)",array($num));
|
echo i18n("Found %1 available language pack(s)",array($num));
|
||||||
//format of each line is:
|
//format of each line is:
|
||||||
//lang:filename:lastupdate
|
//lang:filename:lastupdate
|
||||||
|
@ -23,9 +23,11 @@
|
|||||||
?>
|
?>
|
||||||
<?
|
<?
|
||||||
require("../common.inc.php");
|
require("../common.inc.php");
|
||||||
auth_required('config');
|
user_auth_required('committee', 'config');
|
||||||
send_header("Configuration - Page Texts");
|
send_header("Page Texts",
|
||||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
array('Committee Main' => 'committee_main.php',
|
||||||
|
'SFIAB Configuration' => 'config/index.php')
|
||||||
|
);
|
||||||
|
|
||||||
$q=mysql_query("SELECT * FROM pagetext WHERE year='-1' ORDER BY textname");
|
$q=mysql_query("SELECT * FROM pagetext WHERE year='-1' ORDER BY textname");
|
||||||
while($r=mysql_fetch_object($q))
|
while($r=mysql_fetch_object($q))
|
||||||
|
@ -23,8 +23,11 @@
|
|||||||
?>
|
?>
|
||||||
<?
|
<?
|
||||||
require("../common.inc.php");
|
require("../common.inc.php");
|
||||||
auth_required('config');
|
user_auth_required('committee', 'config');
|
||||||
send_header("Year Rollover");
|
send_header("Year Rollover",
|
||||||
|
array('Committee Main' => 'committee_main.php',
|
||||||
|
'SFIAB Configuration' => 'config/index.php')
|
||||||
|
);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
@ -48,8 +51,6 @@
|
|||||||
</script>
|
</script>
|
||||||
<?
|
<?
|
||||||
|
|
||||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
|
||||||
|
|
||||||
if($_POST['action']=="rollover" && $_POST['nextfairyear'])
|
if($_POST['action']=="rollover" && $_POST['nextfairyear'])
|
||||||
{
|
{
|
||||||
$newfairyear=$_POST['nextfairyear'];
|
$newfairyear=$_POST['nextfairyear'];
|
||||||
|
@ -23,10 +23,11 @@
|
|||||||
?>
|
?>
|
||||||
<?
|
<?
|
||||||
require("../common.inc.php");
|
require("../common.inc.php");
|
||||||
auth_required('config');
|
user_auth_required('committee', 'config');
|
||||||
send_header("Configuration - Safety Questions");
|
send_header("Safety Questions",
|
||||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
array('Committee Main' => 'committee_main.php',
|
||||||
|
'SFIAB Configuration' => 'config/index.php')
|
||||||
|
);
|
||||||
if($_POST['action']=="save" && $_POST['save'])
|
if($_POST['action']=="save" && $_POST['save'])
|
||||||
{
|
{
|
||||||
if($_POST['question'])
|
if($_POST['question'])
|
||||||
|
@ -23,9 +23,11 @@
|
|||||||
?>
|
?>
|
||||||
<?
|
<?
|
||||||
require("../common.inc.php");
|
require("../common.inc.php");
|
||||||
auth_required('config');
|
user_auth_required('committee', 'config');
|
||||||
send_header("Configuration - Signature Page");
|
send_header("Signature Page",
|
||||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
array('Committee Main' => 'committee_main.php',
|
||||||
|
'SFIAB Configuration' => 'config/index.php')
|
||||||
|
);
|
||||||
|
|
||||||
if($_POST['action']=="save")
|
if($_POST['action']=="save")
|
||||||
{
|
{
|
||||||
@ -41,7 +43,6 @@
|
|||||||
echo happy(i18n("Signature page text successfully saved"));
|
echo happy(i18n("Signature page text successfully saved"));
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<br />";
|
|
||||||
|
|
||||||
$q=mysql_query("SELECT * FROM signaturepage WHERE name='exhibitordeclaration'");
|
$q=mysql_query("SELECT * FROM signaturepage WHERE name='exhibitordeclaration'");
|
||||||
$r=mysql_fetch_object($q);
|
$r=mysql_fetch_object($q);
|
||||||
|
@ -23,9 +23,17 @@
|
|||||||
?>
|
?>
|
||||||
<?
|
<?
|
||||||
require("../common.inc.php");
|
require("../common.inc.php");
|
||||||
auth_required('config');
|
user_auth_required('committee', 'config');
|
||||||
send_header("Configuration - Project Sub-Divisions");
|
if($_GET['action']=="edit" || $_GET['action']=="new") {
|
||||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
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")
|
if($_POST['action']=="edit")
|
||||||
{
|
{
|
||||||
@ -95,8 +103,6 @@
|
|||||||
|
|
||||||
echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\">";
|
echo "<form method=\"post\" action=\"".$_SERVER['PHP_SELF']."\">";
|
||||||
|
|
||||||
echo "<h3>".i18n("Project Sub-Divisions")."</h3>";
|
|
||||||
|
|
||||||
if(! ($_GET['action']=="edit" || $_GET['action']=="new") )
|
if(! ($_GET['action']=="edit" || $_GET['action']=="new") )
|
||||||
echo "<a href=\"".$_SERVER['PHP_SELF']."?action=new\">".i18n("Add new sub-division")."</a>\n";
|
echo "<a href=\"".$_SERVER['PHP_SELF']."?action=new\">".i18n("Add new sub-division")."</a>\n";
|
||||||
|
|
||||||
|
@ -24,9 +24,11 @@
|
|||||||
<?
|
<?
|
||||||
require("../common.inc.php");
|
require("../common.inc.php");
|
||||||
require_once("../config_editor.inc.php");
|
require_once("../config_editor.inc.php");
|
||||||
auth_required('config');
|
user_auth_required('committee', 'config');
|
||||||
send_header("Configuration - Variables");
|
send_header("Variables",
|
||||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
array('Committee Main' => 'committee_main.php',
|
||||||
|
'SFIAB Configuration' => 'config/index.php')
|
||||||
|
);
|
||||||
|
|
||||||
$q=mysql_query("SELECT * FROM config WHERE year='-1'");
|
$q=mysql_query("SELECT * FROM config WHERE year='-1'");
|
||||||
while($r=mysql_fetch_object($q))
|
while($r=mysql_fetch_object($q))
|
||||||
|
@ -23,9 +23,11 @@
|
|||||||
?>
|
?>
|
||||||
<?
|
<?
|
||||||
require("../common.inc.php");
|
require("../common.inc.php");
|
||||||
auth_required('config');
|
user_auth_required('committee', 'config');
|
||||||
send_header("Configuration - Version Checker");
|
send_header("Version Checker",
|
||||||
echo "<a href=\"index.php\"><< ".i18n("Back to Configuration")."</a><br />";
|
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 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 />";
|
echo "<br />";
|
||||||
|
Loading…
Reference in New Issue
Block a user