Location: PHPKode > scripts > Navigation documentation > Nav-Doc-Script-V2-master/index.php
<?php
/**
 * @author      Pierre-Henry Soria
 * @email       hide@address.com
 * @link        http://github.com/pH-7/Nav-Doc-Script-V2
 * @copyright   (c) 2012-2013, Pierre-Henry Soria. All Rights Reserved.
 * @license     CC-BY - http://creativecommons.org/licenses/by/3.0/
 */

namespace PH7\Doc;
define('PH7', 1);

include __DIR__ . '/inc/conf.const.php';
include ROOT_PATH . 'inc/scripts/fns.php';
include ROOT_PATH . 'inc/scripts/fns.html.php';

define('LANG', get_lang());

get_page(ROOT_PATH . 'themes/' . TPL . '/tpl/header.tpl');

if(!empty($_GET['p']))
{
    $sPage = DATA_PATH . LANG . '/' . $_GET['p'] . '.tpl';
    get_page($sPage);
}
else
{
    get_page(DATA_PATH . LANG . '/core/welcome.tpl');
    get_page(ROOT_PATH . 'themes/' . TPL . '/tpl/menu.tpl');
}

get_page(ROOT_PATH . 'themes/' . TPL . '/tpl/footer.tpl');
Return current item: Navigation documentation