From c3c4be4a4efd1404aad19797c15d2a9a6ffe29a6 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sat, 22 Sep 2018 14:05:19 +0200 Subject: 2.7 table duplicate + css edit + desktop color --- public/w/index.php | 18 ++++++++++++++---- public/w/menu.php | 1 + 2 files changed, 15 insertions(+), 4 deletions(-) (limited to 'public') diff --git a/public/w/index.php b/public/w/index.php index 5a3fe4e..1f3e967 100644 --- a/public/w/index.php +++ b/public/w/index.php @@ -82,11 +82,15 @@ if (isset($_POST['action'])) { header('Location: ./?aff=admin&message=' . $message); break; + case 'editcss': + file_put_contents($app::CSS_READ_DIR . $config->cssread(), $_POST['editcss']); + header('Location: ./?aff=admin'); + break; + case 'editconfig': $config->hydrate($_POST); $app->savejson($config->tojson()); header('Location: ./?aff=admin'); - break; @@ -244,6 +248,11 @@ if (isset($_POST['actiondb'])) { } break; + case 'duplicatetable': + $message = $app->tableduplicate($config->dbname(), $_POST['arttable'], $_POST['tablename']); + header('Location: ./?aff=admin&message=' . $message); + break; + } } @@ -261,13 +270,14 @@ if (isset($_GET['id'])) { } $aff->arthead($art, $app::CSS_READ_DIR, $config->cssread(), $_GET['edit']); } else { - $aff->head($_GET['id'], ''); + // $aff->head($_GET['id'], '', 'white'); + $aff->noarthead($_GET['id'], $app::CSS_READ_DIR, $config->cssread()); } } elseif (isset($_GET['aff'])) { - $aff->head($_GET['aff'], $_GET['aff']); + $aff->head($_GET['aff'], $_GET['aff'], $config->color4()); } else { - $aff->head('home', 'home'); + $aff->head('home', 'home', $config->color4()); } diff --git a/public/w/menu.php b/public/w/menu.php index 58cc93e..423ef08 100644 --- a/public/w/menu.php +++ b/public/w/menu.php @@ -16,6 +16,7 @@ if ($app->session() >= $app::EDITOR) { $status = "Not Connected"; } $aff->admintable($config, $status, $app->tablelist($config->dbname())); + $aff->admindisplay($config->color4()); echo ''; } elseif ($_GET['aff'] == 'media') { -- cgit v1.2.3