\n";
+//warn if switch not running
+ if (!$fp) {
+ message::add($text['error-event-socket'], 'negative', 5000);
}
//use the module class to get the list of modules from the db and add any missing modules
@@ -101,155 +114,169 @@
$module->db = $db;
$module->dir = $_SESSION['switch']['mod']['dir'];
$module->get_modules();
- $result = $module->modules;
- $module_count = count($result);
+ $modules = $module->modules;
+ $module_count = count($modules);
$module->synch();
$module->xml();
$msg = $module->msg;
//show the msg
if ($msg) {
- echo "
\n";
- echo "
\n";
- echo "
\n";
- echo "
".$text['label-message']."
\n";
- echo "
\n";
- echo "
\n";
- echo "
$msg
\n";
- echo "
\n";
- echo "
\n";
- echo "
\n";
+ message::add($msg, 'negative', 5000);
}
+//create token
+ $object = new token;
+ $token = $object->create($_SERVER['PHP_SELF']);
+
+//get includes and the title
+ $document['title'] = $text['title-modules'];
+ require_once "resources/header.php";
+
//show the content
- echo "