changeset 17:b015c0dea42c

Minor improvements.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 06 Dec 2012 17:53:43 +0200
parents 6da681d1f62a
children 2b490ac5b128
files admin.inc.php createdb.php index.php
diffstat 3 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/admin.inc.php	Thu Dec 06 17:30:12 2012 +0200
+++ b/admin.inc.php	Thu Dec 06 17:53:43 2012 +0200
@@ -496,6 +496,6 @@
   registerTab("tabEntries", "Entries");
   registerTab("tabVoters", "Voters");
   updateTabList();
-  switchActiveTab("tabVoters");
+  switchActiveTab("tabSettings");
 </script>
 <? } ?>
\ No newline at end of file
--- a/createdb.php	Thu Dec 06 17:30:12 2012 +0200
+++ b/createdb.php	Thu Dec 06 17:53:43 2012 +0200
@@ -13,10 +13,11 @@
 
   "voteTimeout"      => array(VT_INT, 120, "Vote page timeout (minutes)"),
   "admTimeout"       => array(VT_INT, 15, "Administration interface timeout (minutes)"),
+  "showAdmin"        => array(VT_BOOL, false, "Show administration interface link on the menu"),
 
+  "showAttendees"    => array(VT_BOOL, false, "Show attendees list"),
   "allowRegister"    => array(VT_BOOL, false, "Enable event registration"),
   "allowVoting"      => array(VT_BOOL, false, "Enable voting"),
-  "showAttendees"    => array(VT_BOOL, false, "Show attendees list"),
   "showResults"      => array(VT_BOOL, false, "Enable results page"),
   "showResAuthors"   => array(VT_BOOL, false, "Show entry authors on results page"),
   "showVoteAuthors"  => array(VT_BOOL, false, "Show entry authors on voting page"),
--- a/index.php	Thu Dec 06 17:30:12 2012 +0200
+++ b/index.php	Thu Dec 06 17:53:43 2012 +0200
@@ -40,15 +40,16 @@
   <a href="compos">Compos</a>
   <a href="event">Event</a>
 <?
-if (stGetSetting("showAttendees", FALSE))
+if (stGetSetting("showAttendees"))
 echo "  <a href=\"attendees\">Attendees</a>\n";
 
-if (stGetSetting("allowVoting", FALSE))
+if (stGetSetting("allowVoting"))
 echo "  <a href=\"vote\">Vote</a>\n";
 
-if (stGetSetting("showResults", FALSE))
+if (stGetSetting("showResults"))
 echo "  <a href=\"results\">Results</a>\n";
 
+if (stGetSetting("showAdmin"))
 echo "  <a href=\"admin\">Admin</a>\n";
 ?>
  </div>