Exemplo n.º 1
0
if (defined('SETTINGS_SITE_TIMEZONE')) {
 ini_set('date.timezone', SETTINGS_SITE_TIMEZONE);
}



 include_once(DIR_MODULES."control_modules/control_modules.class.php");
 $ctl=new control_modules();

 $app=new panel();

 if ($md!=$app->name) {
  $app->restoreParams();
 } else {
  $app->getParams();
 }

 $result=$app->run();

 // BEGIN: filter output
 if ($filterblock!='') {
  preg_match('/<!-- begin_data \['.$filterblock.'\] -->(.*?)<!-- end_data \['.$filterblock.'\] -->/is', $result, $match);
  $result=$match[1];
 }
 // END: filter output

 // BEGIN: language constants
 if (preg_match_all('/&\#060\#LANG_(.+?)\#&\#062/is', $result, $matches)) {
  $total=count($matches[0]);
  for($i=0;$i<$total;$i++) {