aboutsummaryrefslogtreecommitdiff
path: root/w/class/controllerhome.php
diff options
context:
space:
mode:
Diffstat (limited to 'w/class/controllerhome.php')
-rw-r--r--w/class/controllerhome.php25
1 files changed, 17 insertions, 8 deletions
diff --git a/w/class/controllerhome.php b/w/class/controllerhome.php
index ecbc3c7..8c98949 100644
--- a/w/class/controllerhome.php
+++ b/w/class/controllerhome.php
@@ -4,6 +4,7 @@ class Controllerhome extends Controllerdb
{
protected $modelhome;
+ protected $opt;
public function __construct() {
parent::__construct();
@@ -15,24 +16,32 @@ class Controllerhome extends Controllerdb
public function desktop()
{
- echo '<h1>Desktop</h1>';
-
- echo '<h2>Menu Bar</h2>';
$this->table2();
}
public function table2()
{
- if ($this->useriseditor()) {
- $datas = $this->modelhome->table2();
+ $table = $this->artmanager->getlister(['id', 'tag', 'linkfrom', 'linkto', 'description', 'title', 'datemodif', 'datecreation', 'secure']);
+ $this->opt = $this->modelhome->optinit($table);
+
+ $table2 = $this->modelhome->table2($table, $this->opt);
+
+ $this->showtemplate('home', ['user' => $this->user, 'table2' => $table2, 'opt' =>$this->opt]);
- var_dump($datas);
-
- }
}
+ public function analyseall()
+ {
+ if($this->user->level() >= Modeluser::EDITOR) {
+ $scan = new Modelanalyse;
+ $scan->analyseall();
+
+ $this->table2();
+ }
+ }
+
public function massedit()
{
echo '<h2>Mass Edit</h2>';