/** * Mailer constructor. * @param \DocumentParser $modx * @param $cfg * @param bool $debug */ public function __construct(\DocumentParser $modx, $cfg, $debug = false) { $this->modx = $modx; $modx->loadExtension('MODxMailer'); $this->mail = $modx->mail; $this->config = $cfg; $this->debug = $debug; }
} define("IN_ETOMITE_SYSTEM", "true"); // for backward compatibility with 0.6 // include_once config file $config_filename = "./includes/config.inc.php"; if (!file_exists($config_filename)) { echo "<h3>Unable to load configuration settings</h3>"; echo "Please run the MODX <a href='../install'>install utility</a>"; exit; } // include the database configuration file include_once "config.inc.php"; // initiate the content manager class include_once "document.parser.class.inc.php"; $modx = new DocumentParser(); $modx->loadExtension("ManagerAPI"); $modx->getSettings(); $etomite =& $modx; // for backward compatibility $modx->tstart = $tstart; $modx->mstart = $mstart; // connect to the database $modx->db->connect(); // start session startCMSSession(); // get the settings from the database include_once "settings.inc.php"; // get the user settings from the database include_once "user_settings.inc.php"; // include_once the language file if (!isset($manager_language) || !file_exists(MODX_MANAGER_PATH . "includes/lang/" . $manager_language . ".inc.php")) {