diff admajax.php @ 378:5722c37aba2a

It has begun.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 03 Dec 2013 16:40:52 +0200
parents f7b53225d315
children 0ae6d3fb5688
line wrap: on
line diff
--- a/admajax.php	Tue Dec 03 16:23:27 2013 +0200
+++ b/admajax.php	Tue Dec 03 16:40:52 2013 +0200
@@ -296,6 +296,7 @@
   die("Could not connect to SQL database.");
 
 stReloadSettings();
+stReloadDisplayVars();
 
 
 $voteKeyMode = stGetSetting("voteKeyMode");
@@ -373,6 +374,19 @@
     //
     switch ($type)
     {
+      case "infosys":
+        $showMode = stGetDisplayVar("showMode");
+        echo
+          "<div id=\"ctrlGlobalControls\">\n".
+          "Active mode:\n".
+          stGetShowModeButton(SMODE_ROTATE, "Slide rotation", $showMode)."\n".
+          stGetShowModeButton(SMODE_COMPO, "Compo mode", $showMode)."\n".
+          stGetFormButtonInput("syscheck", "", "", " Perform system check ", "performSystemCheck()")."\n".
+          stGetFormButtonInput("generate", "", "", " Add missing show positions ", "generateEntryPositions(0, 1)")."\n".
+          stGetFormButtonInput("regenerate", "", "", " ReGenerate show positions ", "generateEntryPositions(0, 0)")."\n".
+          "</div>\n";
+        break;
+
       case "news":
         echo
           "<form method=\"post\" action=\"\" onsubmit=\"return addNews()\">\n".
@@ -899,5 +913,8 @@
     break;
 }
 
+if (!$errorSet)
+  stSaveDisplayVars();
+
 stDumpAJAXStatusErrors();
 ?>
\ No newline at end of file