2013-09-24 23:04:44 +04:00
|
|
|
<?php
|
|
|
|
|
2014-05-30 05:42:22 +04:00
|
|
|
if (!defined('APP_VERSION'))
|
|
|
|
{
|
|
|
|
define('APP_VERSION', '0.0.0');
|
2014-05-07 01:35:12 +04:00
|
|
|
define('APP_INDEX_ROOT_FILE', __FILE__);
|
2014-04-18 19:34:24 +04:00
|
|
|
define('APP_INDEX_ROOT_PATH', str_replace('\\', '/', rtrim(dirname(__FILE__), '\\/').'/'));
|
2014-05-30 05:42:22 +04:00
|
|
|
}
|
2013-09-24 23:04:44 +04:00
|
|
|
|
2014-05-30 05:42:22 +04:00
|
|
|
if (file_exists(APP_INDEX_ROOT_PATH.'rainloop/v/'.APP_VERSION.'/index.php'))
|
|
|
|
{
|
|
|
|
return include APP_INDEX_ROOT_PATH.'rainloop/v/'.APP_VERSION.'/index.php';
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
echo '[105] Missing version directory';
|
2014-07-15 22:45:15 +04:00
|
|
|
exit(105);
|
2014-05-30 05:42:22 +04:00
|
|
|
}
|