Source for file blog_admin.php
Documentation is available at blog_admin.php
==============================================================================
Dokeos - elearning and course management software
Copyright (c) 2004-2008 Dokeos SPRL
Copyright (c) 2003 Ghent University (UGent)
Copyright (c) 2001 Universite catholique de Louvain (UCL)
Copyright (c) various contributors
For a full list of contributors, see "credits.txt".
The full license can be read in "license.txt".
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
See the GNU General Public License for more details.
Contact address: Dokeos, rue du Corbeau, 108, B-1030 Brussels, Belgium
==============================================================================
This file takes care of all blog navigation and displaying.
==============================================================================
// name of the language file that needs to be included
include('../inc/global.inc.php');
/* ------------ ACCESS RIGHTS ------------ */
// notice for unauthorized people.
//------------ ONLY USERS REGISTERED IN THE COURSE----------------------
require_once(api_get_path(LIBRARY_PATH) . "blog.lib.php");
$nameTools = get_lang("blog_management");
// showing the header if we are not in the learning path, if we are in
// the learning path, we do not include the banner so we have to explicitly
// include the stylesheet, which is normally done in the header
if ($_GET['origin'] != 'learnpath')
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"". $clarolineRepositoryWeb. "css/default.css\"/>";
==============================================================================
==============================================================================
if ($_POST['new_blog_submit'])
if ($_POST['edit_blog_submit'])
Blog::edit_blog($_POST['blog_id'],$_POST['blog_name'],$_POST['blog_subtitle']);
if ($_GET['action'] == 'visibility')
if ($_GET['action'] == 'delete')
==============================================================================
==============================================================================
//api_introductionsection(TOOL_BLOG);
if ($_GET['action'] == 'add')
if ($_GET['action'] == 'edit')
"<img src='../img/blog_new.gif' border=\"0\" align=\"absmiddle\" alt='". get_lang('NewBlog'). "'> ". get_lang('AddBlog'). "</a>";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"2\" class='data_table'>";
|