Esempio n. 1
0
    $msg = sprintf($string['furtherassistance'], $configObject->get('support_email'), $configObject->get('support_email'));
    $notice->display_notice_and_exit($mysqli, $string['pagenotfound'], $msg, $string['pagenotfound'], '/artwork/page_not_found.png', '#C00000', true, true);
}
if (isset($_POST['save_changes'])) {
    // Update help file record
    $tmp_body = $_POST['edit1'];
    $tmp_title = $_POST['page_title'];
    $tmp_roles = $_POST['page_roles'];
    $help_system->save_page($tmp_title, $tmp_body, $tmp_roles, $pageid, $_POST['edit_id']);
    $mysqli->close();
    header("location: index.php?id={$pageid}");
    exit;
} elseif (isset($_POST['cancel'])) {
    // Release authoring lock.
    if ($_POST['checkout_authorID'] == $userObject->get_user_ID()) {
        $help_system->release_edit_lock($_POST['edit_id']);
    }
    $mysqli->close();
    header("location: index.php?id={$pageid}");
    exit;
} else {
    ?>
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="X-UA-Compatible" content="IE=7,9,10" >
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

  <title>Rog&#333;: <?php 
    echo $string['help'] . ' ' . $configObject->get('cfg_install_type');
    ?>