connector.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * seoPro
  4. *
  5. * Copyright 2013 by Wieger Sloot, Sterc Internet & Marketing <modx@sterc.nl>
  6. *
  7. * seoPro is free software; you can redistribute it and/or modify it under the
  8. * terms of the GNU General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option) any later
  10. * version.
  11. *
  12. * seoPro is distributed in the hope that it will be useful, but WITHOUT ANY
  13. * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  14. * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along with
  17. * seoPro; if not, write to the Free Software Foundation, Inc., 59 Temple
  18. * Place, Suite 330, Boston, MA 02111-1307 USA
  19. *
  20. * @package seopro
  21. */
  22. /**
  23. * seoPro Connector
  24. *
  25. * @package seopro
  26. */
  27. require_once dirname(dirname(dirname(dirname(__FILE__)))).'/config.core.php';
  28. require_once MODX_CORE_PATH.'config/'.MODX_CONFIG_KEY.'.inc.php';
  29. require_once MODX_CONNECTORS_PATH.'index.php';
  30. $corePath = $modx->getOption('seopro.core_path',null,$modx->getOption('core_path').'components/seopro/');
  31. require_once $corePath.'model/seopro/seopro.class.php';
  32. $modx->seopro = new seoPro($modx);
  33. $modx->lexicon->load('seopro:default');
  34. /* handle request */
  35. $path = $modx->getOption('processorsPath',$modx->seopro->config,$corePath.'processors/');
  36. $modx->request->handleRequest(array(
  37. 'processors_path' => $path,
  38. 'location' => '',
  39. ));