aboutsummaryrefslogtreecommitdiff
path: root/public/w
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-09-22 14:05:19 +0200
committervincent-peugnet <v.peugnet@free.fr>2018-09-22 14:05:19 +0200
commitc3c4be4a4efd1404aad19797c15d2a9a6ffe29a6 (patch)
treea231ef1dc9171ae589b21ea4826bba20cba2c63d /public/w
parent701c4637294fc9b63d53a8eeb26d46ef94af1941 (diff)
downloadwcms-c3c4be4a4efd1404aad19797c15d2a9a6ffe29a6.tar.gz
wcms-c3c4be4a4efd1404aad19797c15d2a9a6ffe29a6.zip
2.7 table duplicate + css edit + desktop color
Diffstat (limited to 'public/w')
-rw-r--r--public/w/index.php18
-rw-r--r--public/w/menu.php1
2 files changed, 15 insertions, 4 deletions
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 '</section>';
} elseif ($_GET['aff'] == 'media') {