forked from xronos-i-am/rockmongo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
40 lines (34 loc) · 996 Bytes
/
index.php
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
34
35
36
37
38
39
40
<?php
/**
* RockMongo startup
*
* In here we define some default settings and start the configuration files
* @package rockmongo
*/
/**
* Defining version number and enabling error reporting
*/
define("ROCK_MONGO_VERSION", "1.1.6");
error_reporting(E_ALL);
/**
* Environment detection
*/
if (!version_compare(PHP_VERSION, "5.0")) {
exit("To make things right, you must install PHP5");
}
if (!class_exists("Mongo") && !class_exists("MongoClient")) {
exit("To make things right, you must install php_mongo module. <a href=\"http://www.php.net/manual/en/mongo.installation.php\" target=\"_blank\">Here for installation documents on PHP.net.</a>");
}
// enforce Mongo support for int64 data type (Kyryl Bilokurov <[email protected]>)
ini_set("mongo.native_long", 1);
ini_set("mongo.long_as_object", 1);
/**
* Initializing configuration files and RockMongo
*/
require "config.php";
require "rock.php";
rock_check_version();
rock_init_lang();
rock_init_plugins();
Rock::start();
?>