Help.php:
<?php
/**************************************************************************
FILENAME : help.php
PURPOSE OF FILE : Displays online help
LAST UPDATED : 08 June 2005
COPYRIGHT : © 2005 CMScout Group
WWW : www.cmscout.za.org
LICENSE : GPL vs2.0
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.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
**************************************************************************/
?>
<?php
if (!defined('SCOUT_NUKE')) die("You have accessed this page illegally, please go use the main menu");
$helppage = safesql($_GET['helppage'], "text");
$query = $data->select_query("help", "WHERE page=$helppage");
if ($data->num_rows($query) > 0)
{
$helpstuff = $data->fetch_array($query);
$helpstuff['help'] = nl2br($helpstuff['help']);
}
else
{
$query = $data->select_query("help", "WHERE page='static_content'");
$helpstuff = $data->fetch_array($query);
$helpstuff['help'] = nl2br($helpstuff['help']);
}
$tpl->assign("helpstuff", $helpstuff);
$pagename = "Help";
$dbpage = true;
//Compile page
?>
Other Content Management Scripts: