From 7a1e28b979fffefbf29d08e3b7c6430d8d60e0e3 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Tue, 10 Jul 2018 01:31:04 +0200 Subject: W 2.3 --- class/class.w.aff.php | 297 +++++++++++++++++++++++++++++++++++++++-------- class/class.w.app.php | 202 +++++++++++++++++++++++++++++--- class/class.w.art.php | 2 +- class/class.w.config.php | 158 +++++++++++++++++++++++++ class/class.w.record.php | 116 ++++++++++++++++++ 5 files changed, 712 insertions(+), 63 deletions(-) create mode 100644 class/class.w.config.php create mode 100644 class/class.w.record.php (limited to 'class') diff --git a/class/class.w.aff.php b/class/class.w.aff.php index 888736a..86a9aa3 100644 --- a/class/class.w.aff.php +++ b/class/class.w.aff.php @@ -8,13 +8,54 @@ class Aff private static $edit = 2; - // ____________________________________________________ F U N ______________________________________________ + // ________________________________________________ C O N S T R U C T ______________________________________________ + - public function __construct($session) + public function __construct($session = 0) { $this->setsession($session); } + + + // ____________________________________________________ C O N F I G ______________________________________________ + + + public function configform() + { + ?> +

Config file does not exist yet, or maybe you deleted it ? Anyway, it is time to set it :

+
+ + Database settings
+
+
+
+
+ Domain name settings
+
+ W_cms settings
+
+ + + + + (You can change everything later, set at least your admin password, and don't forget it !)
+ +
+ '; @@ -25,10 +66,9 @@ class Aff echo "

cet article n'est pas publié

"; } - if ($this->session() >= $art->secure()) { + if ($app->session() >= $art->secure()) { ?>
@@ -57,9 +98,9 @@ class Aff echo ''; } - public function edit(Art $art, $list) + public function edit(Art $art, App $app, $list) { - if ($this->session() >= self::$edit) { + if ($app->session() >= self::$edit) { ?>
@@ -160,10 +201,10 @@ public function copy(Art $art, $list)
@@ -176,10 +217,10 @@ public function copy(Art $art, $list) @@ -188,19 +229,20 @@ public function copy(Art $art, $list) - <?= $pre ?> <?= $art->titre() ?> + ' : '' ?> + <?= $edit == 1 ? '✏' : '' ?> <?= $art->titre() ?> +public function search() +{ + ?>
@@ -293,13 +335,13 @@ public function copy(Art $art, $list) echo ' '; } - public function home2table($getlist) + public function home2table(App $app, $getlist) { echo '
'; echo '
'; echo '

W

'; $this->search(); - if ($this->session() >= 2) { + if ($app->session() >= $app::EDITOR) { echo '

Home

'; echo ''; echo ''; @@ -331,11 +373,11 @@ public function copy(Art $art, $list) echo ' '; } - public function aside($list) + public function aside(App $app) { - if ($this->session() >= 2) { + if ($app->session() >= $app::EDITOR) { echo '
titrerésumélien fromlien todernière modifdate de créationedit