/**
  *	Init
  *
  *	@return	array
  */
 public static function init()
 {
     global $CTM_SETTINGS;
     self::$settings = $CTM_SETTINGS;
     self::$DB = new CTM_Driver();
     self::$output = new CTMCommand_Output();
     self::$lang = new CTMCommand_Language();
     self::$functions = new CTMCommand_Functions();
     if (count($GLOBALS['_POST']) > 0) {
         foreach ($GLOBALS['_POST'] as $key => $value) {
             $GLOBALS['_POST'][$key] = stripslashes($value);
         }
     }
 }
 /**
  *	Init
  *
  *	@return	array
  */
 public static function init()
 {
     global $CTM_SETTINGS;
     self::$settings = $CTM_SETTINGS;
     self::$URLData = CTM_URLEngine::URLData();
     self::$DB = new CTM_Driver();
     self::$output = new CTMCommand_Output();
     self::$lang = new CTMCommand_Language();
     self::$functions = new CTMCommand_Functions();
     self::$email = new CTMCommand_Email();
     self::$output->templateId = self::$settings['WEBPUBLIC']['DEFAULT']['TEMPLATE'];
     self::$lang->languageId = self::$settings['WEBPUBLIC']['DEFAULT']['LANGUAGE'];
     self::$output->template = self::$settings['WEBPUBLIC']['TEMPLATES'][self::$output->templateId][0];
     self::$lang->language = self::$settings['WEBPUBLIC']['LANGUAGES'][self::$lang->languageId][0];
     if (count($GLOBALS['_POST']) > 0) {
         foreach ($GLOBALS['_POST'] as $key => $value) {
             $GLOBALS['_POST'][$key] = stripslashes($value);
         }
     }
 }