Esempio n. 1
0
* @author Simon Wilkinson
* @version 1.0
* @copyright Copyright (c) 2014 The University of Nottingham
* @package
*/
require '../../include/sysadmin_auth.inc';
require '../../include/errors.inc';
require_once '../../classes/helputils.class.php';
header('Content-Type: text/html; charset=utf8');
$id = null;
$help_system = new OnlineHelp($userObject, $configObject, $string, $notice, 'staff', $language, $mysqli);
if (isset($_POST['save_changes'])) {
    $tmp_body = $_POST['edit1'];
    $tmp_title = $_POST['title'];
    $roles = $_POST['page_roles'];
    $articleid = $help_system->create_page($tmp_title, $tmp_body, $roles);
    $mysqli->close();
    header("location: index.php?id={$articleid}");
    exit;
} else {
    ?>
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  
  <title>Rog&#333;: <?php 
    echo $string['help'] . ' ' . $configObject->get('cfg_install_type');
    ?>
</title>