"; } /* ============================================================================== PROCESSING.. ============================================================================== */ if (!empty($_POST['new_blog_submit'])) { Blog::create_blog($_POST['blog_name'],$_POST['blog_subtitle']); } if (!empty($_POST['edit_blog_submit'])) { Blog::edit_blog($_POST['blog_id'],$_POST['blog_name'],$_POST['blog_subtitle']); } if (isset($_GET['action']) && $_GET['action'] == 'visibility') { Blog::change_blog_visibility(Database::scape_string((int)$_GET['blog_id'])); } if (isset($_GET['action']) && $_GET['action'] == 'delete') { Blog::delete_blog(Database::scape_string((int)$_GET['blog_id'])); } /* ============================================================================== DISPLAY ============================================================================== */ api_display_tool_title($nameTools); //api_introductionsection(TOOL_BLOG); if (isset($_GET['action']) && $_GET['action'] == 'add') { Blog::display_new_blog_form(); } if (isset($_GET['action']) && $_GET['action'] == 'edit') { Blog::display_edit_blog_form(Database::escape_string((int)$_GET['blog_id'])); } echo '
'; echo "| ",get_lang('Title')," | \n", "",get_lang('Subtitle')," | \n", "",get_lang('Modify')," | \n", "
|---|