';
die;
}
function amr_meta_general_page_display() {
global $amain;
if (empty($amain)) $amain = ausers_get_option('amr-users-main');
if (empty($amain['csv_text']))
$amain['csv_text'] = '';
if (empty($amain['refresh_text']))
$amain['refresh_text'] = '' ;
if (empty($amain['noaccess_text']))
$amain['noaccess_text'] = __('You do not have access to this list, or are not logged in.', 'amr-users');
if (!(isset ($amain['checkedpublic']))) {
echo ''; }
if (isset ($amain['do_not_use_css']) and ($amain['do_not_use_css']))
$do_not_use_css = ' checked="checked" ';
else
$do_not_use_css = '';
echo PHP_EOL.'
';
_e('Fetch user data with wp_query? ', 'amr-users');
echo ' ';_e('WordPress does some extra work which requires more memory','amr-users');echo '';
echo ' ';
// echo '';
// echo '';
echo '
'.__('General & Styling', 'amr-users').'
';
echo '
';
echo ' ';
_e('Do not use css provided, my theme css is good enough', 'amr-users');
echo '';
echo '
'.PHP_EOL;
}
function amr_meta_general_page() { // may no longer be required 20170112
global $aopt;
global $amr_nicenames;
global $pluginpage;
global $amain;
$tabs['settings'] = __('General','amr-users');
//$tabs['overview'] = __('Overview & tools', 'amr-users');
if (isset($_GET['tab'])) {
if ($_GET['tab'] == 'overview'){ //nlr
amr_users_do_tabs ($tabs,'overview');
amr_meta_overview_page();
return;
}
else amr_users_do_tabs ($tabs,'settings');
}
else amr_users_do_tabs ($tabs,'settings');
//amr_meta_main_admin_header('General');
amr_meta_admin_headings (); // does the nonce check etc
if (isset ($_POST['action']) and ($_POST['action'] == "save")) {
if (isset ($_POST['reset'])){
amr_meta_reset();
return;
}
else amrmeta_validate_mainoptions();
}
amr_meta_general_page_display(); /* else do the main header page */
}
function amr_meta_general() { // if called from about 20170111
amr_meta_admin_headings (); // does the nonce check etc
if (isset ($_POST['action']) and ($_POST['action'] == "save")) {
if (isset ($_POST['reset'])){
amr_meta_reset();
return;
}
else amrmeta_validate_mainoptions();
}
amr_meta_general_page_display(); /* else do the main header page */
}