aboutsummaryrefslogtreecommitdiff
path: root/app/class/controllerhome.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/controllerhome.php')
-rw-r--r--app/class/controllerhome.php66
1 files changed, 66 insertions, 0 deletions
diff --git a/app/class/controllerhome.php b/app/class/controllerhome.php
new file mode 100644
index 0000000..31d27c3
--- /dev/null
+++ b/app/class/controllerhome.php
@@ -0,0 +1,66 @@
+<?php
+
+class Controllerhome extends Controllerdb
+{
+
+ protected $modelhome;
+ protected $opt;
+
+ public function __construct() {
+ parent::__construct();
+ $this->modelhome = new Modelhome;
+ }
+
+
+
+
+ public function desktop()
+ {
+
+ $this->table2();
+ }
+
+ public function table2()
+ {
+ $table = $this->modelhome->getlister();
+ $this->opt = $this->modelhome->optinit($table);
+
+ $table2 = $this->modelhome->table2($table, $this->opt);
+
+ $this->showtemplate('home', ['user' => $this->user, 'table2' => $table2, 'opt' =>$this->opt]);
+
+
+ }
+
+ public function analyseall()
+ {
+ if($this->user->level() >= Modeluser::EDITOR) {
+ $scan = new Modelanalyse;
+ $scan->analyseall();
+ $this->redirect('./');
+
+ }
+ }
+
+ public function massedit()
+ {
+ echo '<h2>Mass Edit</h2>';
+
+ }
+
+
+
+
+
+
+
+}
+
+
+
+
+
+
+
+
+?> \ No newline at end of file