<?php

  //this is an auto-generated page by SyntaxDesktop
  session_start();

  if (file_exists(dirname(__FILE__)."/public/config/cfg.php")) {
    require("public/config/cfg.php");
  } else {
    die("Is it the first time you run Syntax Desktop? If yes, run <a href=\"admin/setup.php\">setup</a>.");
  }

  $pageId=getPageId();
  updateLang();
  $smarty = new synSmarty($pageId);
  $smarty->display($smarty->synTemplate);
?>
