Exemple #1
0
// | You should have received a copy of the GNU General Public License    |
// | along with this program; if not, write to:                           |
// |                                                                      |
// | Free Software Foundation, Inc.                                       |
// | 59 Temple Place - Suite 330                                          |
// | Boston, MA 02111-1307, USA.                                          |
// +----------------------------------------------------------------------+
// | Authors: João Prado Maia <*****@*****.**>                             |
// +----------------------------------------------------------------------+
//
// @(#) $Id: s.help.php 1.7 03/01/16 01:47:32-00:00 jpm $
//
include_once "config.inc.php";
include_once APP_INC_PATH . "class.template.php";
include_once APP_INC_PATH . "class.auth.php";
include_once APP_INC_PATH . "class.help.php";
include_once APP_INC_PATH . "db_access.php";
$tpl = new Template_API();
$tpl->setTemplate("help/index.tpl.html");
Auth::checkAuthentication(APP_COOKIE, 'index.php?err=5', true);
if (empty($HTTP_GET_VARS["topic"]) || !Help::topicExists($HTTP_GET_VARS["topic"])) {
    $topic = 'main';
} else {
    $topic = $HTTP_GET_VARS["topic"];
}
$tpl->assign("topic", $topic);
$tpl->assign("links", Help::getNavigationLinks($topic));
if ($topic != "main") {
    $tpl->assign("child_links", Help::getChildLinks($topic));
}
$tpl->displayTemplate();
Exemple #2
0
// | (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:                           |
// |                                                                      |
// | Free Software Foundation, Inc.                                       |
// | 51 Franklin Street, Suite 330                                          |
// | Boston, MA 02110-1301, USA.                                          |
// +----------------------------------------------------------------------+
// | Authors: João Prado Maia <*****@*****.**>                             |
// +----------------------------------------------------------------------+
require_once dirname(__FILE__) . '/../init.php';
$tpl = new Template_Helper();
$tpl->setTemplate('help/index.tpl.html');
Auth::checkAuthentication(APP_COOKIE, 'index.php?err=5', true);
if (empty($_GET['topic']) || !Help::topicExists($_GET['topic'])) {
    $topic = 'main';
} else {
    $topic = $_GET['topic'];
}
$tpl->assign('topic', $topic);
$tpl->assign('links', Help::getNavigationLinks($topic));
if ($topic != 'main') {
    $tpl->assign('child_links', Help::getChildLinks($topic));
}
$tpl->displayTemplate();