Posted By

ibob on 02/07/13


Tagged


Versions (?)

Modx External Script Session Start


 / Published in: Other
 

  1. $configpath = str_replace("\\", "/", dirname(dirname(dirname(dirname(__FILE__))))).'/beta2012/config.core.php';
  2.  
  3. require_once $configpath;
  4. require_once MODX_CORE_PATH.'config/'.MODX_CONFIG_KEY.'.inc.php';
  5. require_once MODX_CORE_PATH.'model/modx/modx.class.php';
  6. $modx = new modX();
  7. $modx->initialize('web');

Report this snippet  

You need to login to post a comment.