Example #1
0
  })(window,document,"script","//www.google-analytics.com/analytics.js","ga");

  ga("create", "UA-XXXXXXXXXXXX-1", "mydomain.com");
  ga("send", "pageview");

</script>
');
#General includes & instances
require_once _CORE_DIR_ . "friendly.core.php";
require_once _CORE_DIR_ . "misc.core.php";
$misc = new misc();
#LANGS initialization
$languages = new languages_core();
require_once _CORE_DIR_ . "sessions.core.php";
#Start session mechanism
$session = new session();
$session->init();
#Friendly URLs initialization
$friendly = new friendly();
#Smarty initialization
$smarty = new Smarty();
$smarty->compile_check = true;
$smarty->debugging = false;
#TODO: Test if its necesary
$smarty->caching = false;
if (!$friendly->page) {
    $friendly->__construct();
}
#LANGS Smarty assign
$smarty->assign("lang", $languages->langs[_CLIENT_LANGUAGE_]);
$smarty->assign('user_data', $_SESSION['user_data']);