revolution /setup/processors/connector.php

Language PHP Lines 34
MD5 Hash 37d68ef39cce6395b61363de95cd8533 Estimated Cost $421 (why?)
Repository git://github.com/modxcms/revolution.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
 * Handles AJAX requests
 *
 * @package setup
 */
/* do a little bit of environment cleanup if possible */
@ini_set('magic_quotes_runtime',0);
@ini_set('magic_quotes_sybase',0);
@ini_set('opcache.revalidate_freq', 0);

/* start session */
session_start();

/* set error reporting */
error_reporting(E_ALL & ~E_NOTICE);

$setupPath= strtr(realpath(dirname(dirname(__FILE__))), '\\', '/') . '/';
define('MODX_SETUP_PATH', $setupPath);
$installPath= strtr(realpath(dirname(dirname(dirname(__FILE__)))), '\\', '/') . '/';
define('MODX_INSTALL_PATH', $installPath);

if (!@include(MODX_SETUP_PATH . 'includes/config.core.php')) die('Error loading core files!');
require_once MODX_CORE_PATH . 'xpdo/xpdo.class.php';
require_once MODX_SETUP_PATH . 'includes/modinstall.class.php';

$install = new modInstall();
$install->getService('lexicon','modInstallLexicon');
$install->lexicon->load('default');
$install->getService('request','request.modInstallConnectorRequest');
$install->request->handle();
@session_write_close();
exit();
Back to Top