post_author) echo '

' . __('Options saved.') . '

'; } else { echo '

' . __('Error! The ID must be a number. Try again.') . '

'; } update_option('administer_dashboard_period', $_POST['administer_dashboard_period']); update_option('administer_dashboard_percentage', $_POST['administer_dashboard_percentage']); update_option('administer_user_level', $_POST['administer_user_level']); // Checkboxes... $names = array('administer_make_widgets', 'administer_dashboard_show', 'administer_statistics'); foreach ($names as $name) { $value = ($_POST[$name] == 'on') ? 'true' : 'false'; update_option($name, $value); } } // Default settings if (!strlen(get_option('administer_make_widgets'))) update_option('administer_make_widgets', 'true'); if (!strlen(get_option('administer_statistics'))) update_option('administer_statistics', 'true'); if (!strlen(get_option('administer_dashboard_show'))) update_option('administer_dash board_show', 'true'); if (!strlen(get_option('administer_dashboard_period'))) update_option('administer_dashboard_period', '7'); if (!strlen(get_option('administer_dashboard_percentage'))) update_option('administer_dashboard_percentage', '20'); if (!strlen(get_option('administer_user_level'))) update_option('administer_user_level', '7'); // Display installation messsage if (!get_option('administer_post_id')) echo '

' . __('Before you get started you must specify the ID of an existing post or page that will hold the content.', 'ad-minister') . '

'; // Check that the post ID exists. if (get_option('administer_post_id') && !administer_ok_to_go()) echo '

' . __('Error! The ID you supplied does not exist', 'ad-minister') . ' ' . __('Go create a one', 'ad-minister') . '

'; // See what post we're attached to $the_page = get_page(get_option('administer_post_id')); $title = ($the_page->post_author) ? __('The content is currently attached to post/page ID ', 'ad-minister') . get_option('administer_post_id') . " entitled '" . $the_page->post_title . "'. | " . __('Change', 'ad-minister') . "" : ''; $this_page = get_option('siteurl') . '/wp-admin/edit.php?page=ad-minister/ad-minister.php'; ?>

Settings

>:
/>
:
:
/>
/>
User Level required to access Ad-minister.', 'ad-minister'); ?>
:
.
*/ ?>