if (isset($debug)) { $debug->addvar('$cfg', $cfg); } if (isset($debug)) { $debug->tracker("All upto HTML-Output"); } $framework->html_out(); // Output of all HTML unset($framework); unset($smarty); unset($templ); unset($dsp); ### Statistics will be updated only at scriptend, so pagesize and loadtime can be insert if ($db->success) { // Statistic Functions (for generating server- and usage-statistics) include_once "modules/stats/class_stats.php"; $stats = new stats(); unset($stats); // Check Cronjobs if (!$_GET['mod'] == 'install') { if (!isset($cron2)) { include_once 'modules/cron2/class_cron2.php'; $cron2 = new cron2(); } $cron2->CheckJobs(); unset($cron2); } // Disconnect DB $db->disconnect(); unset($db); }