Merge remote-tracking branch 'mike/master' into dev
This commit is contained in:
commit
d24cf0b85b
@ -16,6 +16,7 @@ class Accounts {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function post() {
|
function post() {
|
||||||
|
|
||||||
$pending = ( x($_POST, 'pending') ? $_POST['pending'] : array() );
|
$pending = ( x($_POST, 'pending') ? $_POST['pending'] : array() );
|
||||||
$users = ( x($_POST, 'user') ? $_POST['user'] : array() );
|
$users = ( x($_POST, 'user') ? $_POST['user'] : array() );
|
||||||
$blocked = ( x($_POST, 'blocked') ? $_POST['blocked'] : array() );
|
$blocked = ( x($_POST, 'blocked') ? $_POST['blocked'] : array() );
|
||||||
@ -24,7 +25,7 @@ class Accounts {
|
|||||||
|
|
||||||
// change to switch structure?
|
// change to switch structure?
|
||||||
// account block/unblock button was submitted
|
// account block/unblock button was submitted
|
||||||
if (x($_POST, 'page_users_block')) {
|
if (x($_POST, 'page_accounts_block')) {
|
||||||
for ($i = 0; $i < count($users); $i++) {
|
for ($i = 0; $i < count($users); $i++) {
|
||||||
// if account is blocked remove blocked bit-flag, otherwise add blocked bit-flag
|
// if account is blocked remove blocked bit-flag, otherwise add blocked bit-flag
|
||||||
$op = ($blocked[$i]) ? '& ~' : '| ';
|
$op = ($blocked[$i]) ? '& ~' : '| ';
|
||||||
@ -43,13 +44,13 @@ class Accounts {
|
|||||||
notice( sprintf( tt("%s account deleted", "%s accounts deleted", count($users)), count($users)) );
|
notice( sprintf( tt("%s account deleted", "%s accounts deleted", count($users)), count($users)) );
|
||||||
}
|
}
|
||||||
// registration approved button was submitted
|
// registration approved button was submitted
|
||||||
if (x($_POST, 'page_users_approve')) {
|
if (x($_POST, 'page_accounts_approve')) {
|
||||||
foreach ($pending as $hash) {
|
foreach ($pending as $hash) {
|
||||||
account_allow($hash);
|
account_allow($hash);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// registration deny button was submitted
|
// registration deny button was submitted
|
||||||
if (x($_POST, 'page_users_deny')) {
|
if (x($_POST, 'page_accounts_deny')) {
|
||||||
foreach ($pending as $hash) {
|
foreach ($pending as $hash) {
|
||||||
account_deny($hash);
|
account_deny($hash);
|
||||||
}
|
}
|
||||||
|
@ -753,6 +753,7 @@ class Item extends \Zotlabs\Web\Controller {
|
|||||||
|
|
||||||
if ((! $plink) && ($item_thread_top)) {
|
if ((! $plink) && ($item_thread_top)) {
|
||||||
$plink = z_root() . '/channel/' . $channel['channel_address'] . '/?f=&mid=' . $mid;
|
$plink = z_root() . '/channel/' . $channel['channel_address'] . '/?f=&mid=' . $mid;
|
||||||
|
$plink = substr($plink,0,190);
|
||||||
}
|
}
|
||||||
|
|
||||||
$datarray['aid'] = $channel['channel_account_id'];
|
$datarray['aid'] = $channel['channel_account_id'];
|
||||||
|
@ -261,6 +261,7 @@ else {
|
|||||||
$verify = account_verify_password($_POST['username'], $_POST['password']);
|
$verify = account_verify_password($_POST['username'], $_POST['password']);
|
||||||
if($verify && array_key_exists('reason',$verify) && $verify['reason'] === 'unvalidated') {
|
if($verify && array_key_exists('reason',$verify) && $verify['reason'] === 'unvalidated') {
|
||||||
notice( t('Email validation is incomplete. Please check your email.'));
|
notice( t('Email validation is incomplete. Please check your email.'));
|
||||||
|
goaway(z_root() . '/email_validation/' . bin2hex(trim(escape_tags($_POST['username']))));
|
||||||
}
|
}
|
||||||
elseif($verify) {
|
elseif($verify) {
|
||||||
$atoken = $verify['xchan'];
|
$atoken = $verify['xchan'];
|
||||||
|
@ -390,7 +390,7 @@ function post_activity_item($arr, $allow_code = false, $deliver = true) {
|
|||||||
$arr['comment_policy'] = map_scope(\Zotlabs\Access\PermissionLimits::Get($channel['channel_id'],'post_comments'));
|
$arr['comment_policy'] = map_scope(\Zotlabs\Access\PermissionLimits::Get($channel['channel_id'],'post_comments'));
|
||||||
|
|
||||||
if ((! $arr['plink']) && (intval($arr['item_thread_top']))) {
|
if ((! $arr['plink']) && (intval($arr['item_thread_top']))) {
|
||||||
$arr['plink'] = z_root() . '/channel/' . $channel['channel_address'] . '/?f=&mid=' . urlencode($arr['mid']);
|
$arr['plink'] = substr(z_root() . '/channel/' . $channel['channel_address'] . '/?f=&mid=' . urlencode($arr['mid']),0,190);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="selectall"><a href="#" onclick="return toggle_selectall('pending_ckbx');">{{$select_all}}</a></div>
|
<div class="selectall"><a href="#" onclick="return toggle_selectall('pending_ckbx');">{{$select_all}}</a></div>
|
||||||
<div class="submit"><input type="submit" name="page_users_deny" value="{{$deny}}"> <input type="submit" name="page_users_approve" value="{{$approve}}"></div>
|
<div class="submit"><input type="submit" name="page_accounts_deny" value="{{$deny}}"> <input type="submit" name="page_accounts_approve" value="{{$approve}}"></div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<p>{{$no_pending}}</p>
|
<p>{{$no_pending}}</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
@ -80,7 +80,7 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="selectall"><a href="#" onclick="return toggle_selectall('users_ckbx');">{{$select_all}}</a></div>
|
<div class="selectall"><a href="#" onclick="return toggle_selectall('users_ckbx');">{{$select_all}}</a></div>
|
||||||
<div class="submit"><input type="submit" name="page_users_block" value="{{$block}}/{{$unblock}}"> <input type="submit" name="page_users_delete" value="{{$delete}}" onclick="return confirm_delete_multi()"></div>
|
<div class="submit"><input type="submit" name="page_accounts_block" value="{{$block}}/{{$unblock}}"> <input type="submit" name="page_accounts_delete" value="{{$delete}}" onclick="return confirm_delete_multi()"></div>
|
||||||
{{else}}
|
{{else}}
|
||||||
NO USERS?!?
|
NO USERS?!?
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -110,10 +110,21 @@ var activeCommentID = 0;
|
|||||||
var activeCommentText = '';
|
var activeCommentText = '';
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
/* enable tinymce on focus and click */
|
/* enable tinymce on focus and click */
|
||||||
$("#profile-jot-text").focus(enableOnUser);
|
$("#profile-jot-text").focus(enableOnUser);
|
||||||
$("#profile-jot-text").click(enableOnUser);
|
$("#profile-jot-text").click(enableOnUser);
|
||||||
|
|
||||||
|
$('#id_mimetype').on('load', jotSetMime);
|
||||||
|
$('#id_mimetype').on('change', jotSetMime);
|
||||||
|
|
||||||
|
function jotSetMime() {
|
||||||
|
var mtype = $('#id_mimetype').val();
|
||||||
|
if(mtype == 'text/bbcode')
|
||||||
|
$('#profile-jot-submit-left').show();
|
||||||
|
else
|
||||||
|
$('#profile-jot-submit-left').hide();
|
||||||
|
}
|
||||||
|
|
||||||
$('#invisible-wall-file-upload').fileupload({
|
$('#invisible-wall-file-upload').fileupload({
|
||||||
url: 'wall_attach/{{$nickname}}',
|
url: 'wall_attach/{{$nickname}}',
|
||||||
|
Reference in New Issue
Block a user