From 03642985cbc5faecfeffcb7dacf31c8fee6e1658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaussoin=20Timoth=C3=A9e?= Date: Tue, 20 Jan 2015 10:03:35 +0100 Subject: [PATCH 1/4] - Create the user directory on Login --- app/widgets/Login/Login.php | 2 ++ system/User.php | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/widgets/Login/Login.php b/app/widgets/Login/Login.php index 19017498e..5ec7057d1 100755 --- a/app/widgets/Login/Login.php +++ b/app/widgets/Login/Login.php @@ -53,6 +53,8 @@ class Login extends WidgetBase function onConfig($packet) { + $this->user->createDir(); + RPC::call('postLogin', $this->user->getLogin(), Route::urlize('root')); } diff --git a/system/User.php b/system/User.php index 740c4a807..ef30b38b6 100755 --- a/system/User.php +++ b/system/User.php @@ -29,7 +29,6 @@ class User { /** * Class constructor. Reloads the user's session or attempts to authenticate * the user. - * Note that the constructor is private. This class is a singleton. */ function __construct() { @@ -109,6 +108,15 @@ class User { Session::dispose(); } + function createDir() + { + if(!is_dir($this->userdir) + && $this->userdir != '') { + mkdir($this->userdir); + touch($this->userdir.'index.html'); + } + } + function getLogin() { return $this->username; From 6608324d8dcea2425edb1a9824c3166b8823e141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaussoin=20Timoth=C3=A9e?= Date: Tue, 20 Jan 2015 18:25:47 +0100 Subject: [PATCH 2/4] - Fix the action CSS for the lists - New Presence widget system (with radio button) --- app/widgets/Header/_header_main.tpl | 2 +- app/widgets/Login/_login_sessions.tpl | 4 +- app/widgets/Navigation/Navigation.php | 2 +- app/widgets/Navigation/navigation.tpl | 12 +- app/widgets/Presence/Presence.php | 86 +++++++-------- app/widgets/Presence/_presence.tpl | 4 +- app/widgets/Presence/_presence_list.tpl | 104 ++++++++++++------ app/widgets/Presence/presence.css | 15 ++- app/widgets/Presence/presence.js | 38 ++++++- .../PubsubSubscriptionConfig.php | 16 +-- app/widgets/Rooms/_rooms_add.tpl | 6 +- app/widgets/Roster/roster.tpl | 3 +- app/widgets/Vcard4/_vcard4_form.tpl | 2 +- themes/material/css/form.css | 6 +- themes/material/css/list.css | 54 +++------ 15 files changed, 200 insertions(+), 154 deletions(-) diff --git a/app/widgets/Header/_header_main.tpl b/app/widgets/Header/_header_main.tpl index 681d853c1..0afbb7b17 100644 --- a/app/widgets/Header/_header_main.tpl +++ b/app/widgets/Header/_header_main.tpl @@ -6,7 +6,7 @@ --> - +
diff --git a/app/widgets/Login/_login_sessions.tpl b/app/widgets/Login/_login_sessions.tpl index 852e5ce30..bf64fd0f7 100755 --- a/app/widgets/Login/_login_sessions.tpl +++ b/app/widgets/Login/_login_sessions.tpl @@ -3,8 +3,8 @@