<{assert_admin}>
<{header}>

<div class = 'main'>

<form method = 'post' action = '<{url}>'>

	<h1><{@"Edit configuration"}></h1>

	<input type = 'hidden' name = 't' value = 'SAVE_CONFIG'>

	<p><input type = 'submit' class = 'button' value = 'OK'>

    <{edit_config_text @"Host name:"
        'cfg_host_name' cfg_host_name}>

    <{edit_config_text @"Site name:"
        'cfg_site_name' cfg_site_name}>

    <{edit_config_text @"Slogan for the site:"
        'cfg_slogan' cfg_slogan}>

    <{edit_config_text @"Copyright string to be shown in the footer:"
        'cfg_copyright' cfg_copyright}>

	<p><label for='cfg_site_description'><{@"Site description (CANNOT contain HTML):"}></label><br>
	<textarea name = 'cfg_site_description' id = 'cfg_site_description'
	cols = '40' rows = '10'><{cfg_site_description}></textarea>

    <{edit_config_text @"URL to an icon for the site, in MS Windows icon format:"
        'cfg_favicon_url' cfg_favicon_url}>

    <{edit_config_text @"URL to an image to shown as logo:"
        'cfg_logo_url' cfg_logo_url}>

	<h2><{@"Behaviour"}></h2>

    <{edit_config_bool @"Disable comments:"
        'cfg_disable_comments' cfg_disable_comments}>

    <{edit_config_text @"Number of stories shown in the index:"
        'cfg_index_num' cfg_index_num 4}>

    <{edit_config_text @"Topics to be shown in the index (Empty, all):"
        'cfg_index_topics' cfg_index_topics}>

    <{edit_config_text @"Topics to be shown in the main menu (Empty, all):"
        'cfg_main_menu_topics' cfg_main_menu_topics}>

    <{edit_config_text @"Number of entries for the RSS feed:"
        'cfg_rss_num' cfg_rss_num 4}>

    <{edit_config_text @"Topics to be shown in the RSS feed (Empty, all):"
        'cfg_rss_topics' cfg_rss_topics}>

    <{edit_config_text @"Number of story abstracts to be listed in the TOPIC page:"
        'cfg_topic_num' cfg_topic_num 4}>

    <{edit_config_text
        {? @"Number of stories to be shown in the 'Top stories' option"
            '<br>' @"(If set to 0, this main menu option will not be shown)."}
        'cfg_top_ten_num' cfg_top_ten_num 4}>

    <{edit_config_text @"Maximum number of related stories:"
        'cfg_max_related_stories' cfg_max_related_stories 4}>

    <{edit_config_bool @"Show link to printable version:"
        'cfg_show_printable' cfg_show_printable}>

    <{edit_config_bool @"Full stories by default:"
        'cfg_full_story' cfg_full_story}>

    <{edit_config_bool @"Search using a Google redirection:"
        'cfg_search_as_google_redirect' cfg_search_as_google_redirect}>

    <{edit_config_bool @"Use Google Adsense for searching (also fill <i>search_form_adsense</i> with content from Google):"
        'cfg_adsense_search' cfg_adsense_search}>

    <{edit_config_bool @"Use the abstract as description tag in stories:"
        'cfg_abstract_as_description' cfg_abstract_as_description}>

	<h2><{@"Date formats"}></h2>

    <{edit_config_text @"Global date format:"
        'cfg_date_format' cfg_date_format 15}>

    <{edit_config_text @"The format of dates for the <tt>intermixed_index</tt> template:"
        'cfg_index_date_format' cfg_index_date_format 15}>

    <{edit_config_text @"Date format for the stories:"
        'cfg_story_date_format' cfg_story_date_format 15}>

	<h2><{@"Comment validation"}></h2>

    <{edit_config_bool @"Use blogspam.net:"
        'cfg_use_blogspam_net' cfg_use_blogspam_net}>

    <{edit_config_text @"Akismet API key:"
        'cfg_akismet_api_key' cfg_akismet_api_key 32}>

    <{edit_config_text @"Akismet blog URL:"
        'cfg_akismet_url' cfg_akismet_url 32}>

    <{edit_config_text @"Send a copy of new comments to this email address:"
        'cfg_comment_email' cfg_comment_email}>

    <{edit_config_text @"Number of days for non-approved comments to expire:"
        'cfg_comment_expire_days' cfg_comment_expire_days 4}>

    <{edit_config_bool @"Use 'Gravatars' on comments:"
        'cfg_use_gravatars' cfg_use_gravatars}>

	<h2><{@"Social networks"}></h2>

    <{edit_config_bool @"Social network share links are text-only (no, as buttons):"
        'cfg_share_links_as_text' cfg_share_links_as_text}>

    <{edit_config_bool @"Use Facebook comments:"
        'cfg_facebook_comments' cfg_facebook_comments}>

    <{edit_config_text @"Facebook user ID:"
        'cfg_facebook_user_id' cfg_facebook_user_id 32}>

    <{edit_config_text @"Facebook app ID:"
        'cfg_facebook_app_id' cfg_facebook_app_id 32}>

    <{edit_config_text @"Twitter user (for adding 'via' to shares):"
        'cfg_twitter_user' cfg_twitter_user 32}>

	<p><input type = 'submit' class = 'button' value = 'OK'>

</form>

</div>

<{footer}>
