PHP Classes

File: system/init.php

Recommend this page to a friend!
  Classes of Mihajlo Siljanoski   Xmodule   system/init.php   Download  
File: system/init.php
Role: Application script
Content type: text/plain
Description: Application script
Class: Xmodule
Modular Web application development framework
Author: By
Last change: version v2.1
Date: 8 years ago
Size: 627 bytes
 

Contents

Class file image Download
<?php
if(strtolower(@$_SERVER['REQUEST_METHOD'])!='delete' && strtolower(@$_SERVER['REQUEST_METHOD'])!='post' && strtolower(@$_SERVER['REQUEST_METHOD'])!='get'){
            @
header('HTTP/1.1 405 Method Not Allowed');
            echo
'Method Not Allowed';
            exit;
}

define('BASEPATH', realpath(dirname(__FILE__)).'/');
define('APPPATH', realpath('.').'/app/');
define('SYSTEMPATH', realpath('.').'/system/');

require_once
SYSTEMPATH.'core/Common.php';
require_once
SYSTEMPATH.'core/fw.php';
require_once
SYSTEMPATH.'database/DB.php';
require_once
SYSTEMPATH.'core/load.php';
require_once
APPPATH.'config.php';