You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-07-31 10:04:20 +03:00
Automatic code style fixes
This commit is contained in:
@ -59,30 +59,30 @@ class AdminHandler extends PFAHandler
|
||||
),
|
||||
|
||||
'superadmin' => pacol(1, 1, 0, 'bool', 'super_admin' , 'super_admin_desc' , 0
|
||||
# TODO: (finally) replace the ALL domain with a column in the admin table
|
||||
# TODO: current status: 'superadmin' column exists and is written when storing an admin with AdminHandler,
|
||||
# TODO: but the superadmin status is still (additionally) stored in the domain_admins table ("ALL" dummy domain)
|
||||
# TODO: to keep the database backwards-compatible with 2.3.x.
|
||||
# TODO: Note: superadmins created with 2.3.x after running upgrade_1284() will not work until you re-run upgrade_1284()
|
||||
# TODO: Create them with the trunk version to avoid this problem.
|
||||
# TODO: (finally) replace the ALL domain with a column in the admin table
|
||||
# TODO: current status: 'superadmin' column exists and is written when storing an admin with AdminHandler,
|
||||
# TODO: but the superadmin status is still (additionally) stored in the domain_admins table ("ALL" dummy domain)
|
||||
# TODO: to keep the database backwards-compatible with 2.3.x.
|
||||
# TODO: Note: superadmins created with 2.3.x after running upgrade_1284() will not work until you re-run upgrade_1284()
|
||||
# TODO: Create them with the trunk version to avoid this problem.
|
||||
),
|
||||
|
||||
'domains' => pacol(1, 1, 0, 'list', 'domain' , '' , array(), list_domains(),
|
||||
/*not_in_db*/ 0,
|
||||
/*dont_write_to_db*/ 1,
|
||||
/*select*/ "coalesce(domains,'') as domains"
|
||||
/*extrafrom set in domain_count*/
|
||||
/*not_in_db*/ 0,
|
||||
/*dont_write_to_db*/ 1,
|
||||
/*select*/ "coalesce(domains,'') as domains"
|
||||
/*extrafrom set in domain_count*/
|
||||
),
|
||||
|
||||
'domain_count' => pacol(0, 0, 1, 'vnum', 'pAdminList_admin_count', '' , '', array(),
|
||||
/*not_in_db*/ 0,
|
||||
/*dont_write_to_db*/ 1,
|
||||
/*select*/ 'coalesce(__domain_count,0) as domain_count',
|
||||
/*extrafrom*/ 'LEFT JOIN ( ' .
|
||||
' SELECT count(*) AS __domain_count, ' . $domains_grouped . ' AS domains, username AS __domain_username ' .
|
||||
' FROM ' . table_by_key('domain_admins') .
|
||||
" WHERE domain != 'ALL' GROUP BY username " .
|
||||
' ) AS __domain on username = __domain_username'),
|
||||
/*not_in_db*/ 0,
|
||||
/*dont_write_to_db*/ 1,
|
||||
/*select*/ 'coalesce(__domain_count,0) as domain_count',
|
||||
/*extrafrom*/ 'LEFT JOIN ( ' .
|
||||
' SELECT count(*) AS __domain_count, ' . $domains_grouped . ' AS domains, username AS __domain_username ' .
|
||||
' FROM ' . table_by_key('domain_admins') .
|
||||
" WHERE domain != 'ALL' GROUP BY username " .
|
||||
' ) AS __domain on username = __domain_username'),
|
||||
|
||||
'active' => pacol(1, 1, 1, 'bool', 'active' , '' , 1 ),
|
||||
'phone' => pacol(1, $reset_by_sms, 0, 'text', 'pCreate_mailbox_phone', 'pCreate_mailbox_phone_desc', ''),
|
||||
|
Reference in New Issue
Block a user