diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-09-02 16:19:13 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-09-02 16:19:13 +0200 |
commit | cbecc0dfc819febf4c2b36791d5a2a7e69d842af (patch) | |
tree | c181eb875cef9ca6a48f0b807905d7a2c15bee98 /public/w/menu.php | |
parent | e9b2ca7c06875069fa03379258625490872cc33d (diff) | |
download | wcms-cbecc0dfc819febf4c2b36791d5a2a7e69d842af.tar.gz wcms-cbecc0dfc819febf4c2b36791d5a2a7e69d842af.zip |
2.5 mobile update + minor upgrades and fixes
Diffstat (limited to 'public/w/menu.php')
-rw-r--r-- | public/w/menu.php | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/public/w/menu.php b/public/w/menu.php new file mode 100644 index 0000000..b2495f2 --- /dev/null +++ b/public/w/menu.php @@ -0,0 +1,50 @@ +<?php + + +if ($app->session() >= $app::EDITOR) { + + if ($_GET['aff'] == 'admin' && $app->session() >= $app::ADMIN) { + echo '<section>'; + echo '<h1>Admin</h1>'; + + $aff->admincss($config, $app); + $aff->adminpassword($config); + $aff->admindb($config); + if ($app->setbdd($config)) { + //var_dump($app->tablelist($config->dbname())); + echo '<p>database status : OK</p>'; + } + $aff->admintable($config, $app->tablelist($config->dbname())); + + echo '</section>'; + } elseif ($_GET['aff'] == 'media') { + echo '<h1>Media</h1>'; + echo '<section>'; + + $aff->addmedia($app); + $aff->medialist($app); + + echo '</section>'; + + } elseif ($_GET['aff'] == 'record') { + echo '<h1>Record</h1>'; + echo '<section>'; + + $aff->recordlist($app); + + echo '</section>'; + + } elseif ($_GET['aff'] == 'map') { + $app->bddinit($config); + $aff->map($app, $config->domain()); + } else { + echo '<h1>Private</h1><p>You dont have the permission to access this page.</p>'; + + } + + +} else { + echo '<h1>Private</h1><p>You should be connected to access this page.</p>'; +} + +?>
\ No newline at end of file |