From 431a462d60af173592cf6a046dc2280a07484402 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 4 Mar 2015 11:01:16 +0100 Subject: [PATCH 1/2] cleanup removeme --- mod/removeme.php | 8 ++++--- view/theme/redbasic/css/style.css | 10 ++++++++ view/tpl/removeme.tpl | 38 +++++++++++++++---------------- 3 files changed, 33 insertions(+), 23 deletions(-) diff --git a/mod/removeme.php b/mod/removeme.php index 492738b77..52145d639 100644 --- a/mod/removeme.php +++ b/mod/removeme.php @@ -9,6 +9,7 @@ function removeme_post(&$a) { return; if((! x($_POST,'qxz_password')) || (! strlen(trim($_POST['qxz_password'])))) + notice( t('Password not correct.') . EOL); return; if((! x($_POST,'verify')) || (! strlen(trim($_POST['verify'])))) @@ -21,6 +22,7 @@ function removeme_post(&$a) { $account = $a->get_account(); if(! account_verify_password($account['account_email'],$_POST['qxz_password'])) + notice( t('Password not correct.') . EOL); return; if($account['account_password_changed'] != NULL_DATE) { @@ -55,12 +57,12 @@ function removeme_content(&$a) { '$basedir' => $a->get_baseurl(), '$hash' => $hash, '$title' => t('Remove This Channel'), - '$desc' => t('This will completely remove this channel from the network. Once this has been done it is not recoverable.'), + '$desc' => array(t('WARNING: '), t('This channel will be completely removed from the network. '), t('This action is permanent and can not be undone!')), '$passwd' => t('Please enter your password for verification:'), - '$global' => array('global', t('Remove this channel and all its clones from the network'), false, t('By default only the instance of the channel located on this hub will be removed from the network')), + '$global' => array('global', t('Remove this channel and all its clones from the network'), false, t('By default only the instance of the channel located on this hub will be removed from the network'), array(t('No'),t('Yes'))), '$submit' => t('Remove Channel') )); return $o; -} \ No newline at end of file +} diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 87e12a9b3..e00fee521 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1941,6 +1941,16 @@ nav .dropdown-menu>li>a:hover,nav .dropdown-menu>li>a:focus{ border-radius: $radiuspx; text-align: center; } + +.section-content-danger-wrapper { + padding: 21px 10px; + color: #a94442; + background-color: #f2dede; + margin-bottom: 3px; + border-radius: $radiuspx; + text-align: center; +} + .section-content-wrapper { padding: 7px 10px; background-color: $comment_item_colour; diff --git a/view/tpl/removeme.tpl b/view/tpl/removeme.tpl index c42eaf0e1..5b329dd6d 100755 --- a/view/tpl/removeme.tpl +++ b/view/tpl/removeme.tpl @@ -1,22 +1,20 @@ -

{{$title}}

- -
- -
{{$desc}}
- -
- - -
- - -
-
- -{{include file="field_checkbox.tpl" field=$global}} - - - -
+
+
+

{{$title}}

+
+
+ {{$desc.0}}{{$desc.1}}{{$desc.2}} +
+
+
+ +
+ + +
+ {{include file="field_checkbox.tpl" field=$global}} + +
+
From e5e96dfbffd48b3d6b527e539e300a5091e7a19c Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 4 Mar 2015 11:11:36 +0100 Subject: [PATCH 2/2] cleanup removeaccount --- mod/removeaccount.php | 6 ++++-- view/tpl/removeaccount.tpl | 38 ++++++++++++++++++-------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/mod/removeaccount.php b/mod/removeaccount.php index 18aaa2517..4505bbea0 100644 --- a/mod/removeaccount.php +++ b/mod/removeaccount.php @@ -9,6 +9,7 @@ function removeaccount_post(&$a) { return; if((! x($_POST,'qxz_password')) || (! strlen(trim($_POST['qxz_password'])))) + notice( t('Password not correct.') . EOL); return; if((! x($_POST,'verify')) || (! strlen(trim($_POST['verify'])))) @@ -22,6 +23,7 @@ function removeaccount_post(&$a) { $account_id = get_account_id(); if(! account_verify_password($account['account_email'],$_POST['qxz_password'])) + notice( t('Password not correct.') . EOL); return; if($account['account_password_changed'] != NULL_DATE) { @@ -55,7 +57,7 @@ function removeaccount_content(&$a) { '$basedir' => $a->get_baseurl(), '$hash' => $hash, '$title' => t('Remove This Account'), - '$desc' => t('This will completely remove this account including all its channels from the network. Once this has been done it is not recoverable.'), + '$desc' => array(t('WARNING: '), t('This account and all its channels will be completely removed from the network. '), t('This action is permanent and can not be undone!')), '$passwd' => t('Please enter your password for verification:'), '$global' => array('global', t('Remove this account, all its channels and all its channel clones from the network'), false, t('By default only the instances of the channels located on this hub will be removed from the network')), '$submit' => t('Remove Account') @@ -63,4 +65,4 @@ function removeaccount_content(&$a) { return $o; -} \ No newline at end of file +} diff --git a/view/tpl/removeaccount.tpl b/view/tpl/removeaccount.tpl index b7378806b..aefcd51a8 100644 --- a/view/tpl/removeaccount.tpl +++ b/view/tpl/removeaccount.tpl @@ -1,22 +1,20 @@ -

{{$title}}

- -
- -
{{$desc}}
- -
- - -
- - -
-
- -{{include file="field_checkbox.tpl" field=$global}} - - - -
+
+
+

{{$title}}

+
+
+ {{$desc.0}}{{$desc.1}}{{$desc.2}} +
+
+
+ +
+ + +
+ {{include file="field_checkbox.tpl" field=$global}} + +
+