/**
 * Stop from parsing any further PHP code
*/
function zen_exit()
{
    zen_session_close();
    exit;
}
<?php

/**
 * @package admin
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: application_bottom.php 3009 2006-02-11 15:41:10Z wilt $
 */
if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
}
// close session (store variables)
zen_session_close();
if (STORE_PAGE_PARSE_TIME == 'true') {
    if (!is_object($logger)) {
        $logger = new logger();
    }
    echo $logger->timer_stop(DISPLAY_PAGE_PARSE_TIME);
}
// breaks things
// pconnect disabled safety switch
//  $db->close();
// Gzip for Admin
if (GZIP_LEVEL == '1' && $ext_zlib_loaded == true && $ini_zlib_output_compression < 1) {
    if (PHP_VERSION < '4.0.4' && PHP_VERSION >= '4') {
        zen_gzip_output(GZIP_LEVEL);
    }
}