Merge https://github.com/friendica/friendica into pull
This commit is contained in:
commit
fa14723ef5
18 changed files with 10089 additions and 5678 deletions
|
@ -664,6 +664,7 @@ function admin_page_users(&$a){
|
|||
);
|
||||
|
||||
function _setup_users($e){
|
||||
$a = get_app();
|
||||
$accounts = Array(
|
||||
t('Normal Account'),
|
||||
t('Soapbox Account'),
|
||||
|
@ -674,6 +675,7 @@ function admin_page_users(&$a){
|
|||
$e['register_date'] = relative_date($e['register_date']);
|
||||
$e['login_date'] = relative_date($e['login_date']);
|
||||
$e['lastitem_date'] = relative_date($e['lastitem_date']);
|
||||
$e['is_admin'] = ($e['email'] === $a->config['admin_email']);
|
||||
return $e;
|
||||
}
|
||||
$users = array_map("_setup_users", $users);
|
||||
|
@ -694,6 +696,7 @@ function admin_page_users(&$a){
|
|||
'$delete' => t('Delete'),
|
||||
'$block' => t('Block'),
|
||||
'$unblock' => t('Unblock'),
|
||||
'$siteadmin' => t('Site admin'),
|
||||
|
||||
'$h_users' => t('Users'),
|
||||
'$th_users' => array( t('Name'), t('Email'), t('Register date'), t('Last login'), t('Last item'), t('Account') ),
|
||||
|
|
|
@ -46,7 +46,7 @@ function fbrowser_content($a){
|
|||
}
|
||||
|
||||
$r = q("SELECT `resource-id`, `id`, `filename`, type, min(`scale`) AS `hiq`,max(`scale`) AS `loq`, `desc`
|
||||
FROM `photo` WHERE `uid` = %d $sql_extra
|
||||
FROM `photo` WHERE `uid` = %d AND (height <= 320 AND width <= 320) $sql_extra
|
||||
GROUP BY `resource-id` $sql_extra2",
|
||||
intval(local_user())
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue