Пример #1
0
##############################################################
*/
error_reporting(E_ALL & ~E_NOTICE);
@set_magic_quotes_runtime(0);
require_once 'global.php';
require_once 'language/default/frontend_main.php';
switch ($_REQUEST['do']) {
    case 'viewarticle':
        $location = $LANG['loc_news'];
        view_article();
        break;
    case 'printarticle':
        print_article();
        break;
    default:
        index_main();
        break;
}
function index_main()
{
    global $db;
    do_header();
    require_once "templates/indexFrontpage.html.php";
    do_footer();
}
function view_article()
{
    do_header();
    include "templates/index_viewarticle.inc.php";
    build_matrix('news', $_REQUEST['id']);
    do_footer();
Пример #2
0
function index_display()
{
    global $smarty;
    $module = index_main();
    theme_init($smarty);
    $smarty->display($module);
    unset($smarty);
    do_action('shutdown');
}