* with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * * @file */ # Initialise common code $preIP = dirname(__FILE__); require_once "{$preIP}/includes/WebStart.php"; # Initialize MediaWiki base class $mediaWiki = new MediaWiki(); wfProfileIn('main-misc-setup'); OutputPage::setEncodings(); # Not really used yet $maxLag = $wgRequest->getVal('maxlag'); if (!is_null($maxLag) && !$mediaWiki->checkMaxLag($maxLag)) { exit; } # Query string fields $action = $wgRequest->getVal('action', 'view'); $title = $wgRequest->getVal('title'); # Set title from request parameters $wgTitle = $mediaWiki->checkInitialQueries($title, $action); if ($wgTitle === null) { unset($wgTitle); } wfProfileOut('main-misc-setup'); # # Send Ajax requests to the Ajax dispatcher. # if ($wgUseAjax && $action == 'ajax') {
* with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html */ # Initialise common code $preIP = dirname(__FILE__); require_once "{$preIP}/includes/WebStart.php"; # Initialize MediaWiki base class require_once "{$preIP}/includes/Wiki.php"; $mediaWiki = new MediaWiki(); wfProfileIn('main-misc-setup'); OutputPage::setEncodings(); # Not really used yet $maxLag = $wgRequest->getVal('maxlag'); if (!is_null($maxLag)) { if (!$mediaWiki->checkMaxLag($maxLag)) { exit; } } # Query string fields $action = $wgRequest->getVal('action', 'view'); $title = $wgRequest->getVal('title'); $wgTitle = $mediaWiki->checkInitialQueries($title, $action, $wgOut, $wgRequest, $wgContLang); if ($wgTitle == NULL) { unset($wgTitle); } # # Send Ajax requests to the Ajax dispatcher. # if ($wgUseAjax && $action == 'ajax') { require_once $IP . '/includes/AjaxDispatcher.php';