Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (17 sloc) 753 Bytes
** maxs94
** check if environment is setup correctly
** note: must be executed from index.php
$root_dir = dirname(__FILE__);
if (!file_exists($yii)) die("(index.php) ERROR: Yii Framework not found at " . $yii);
if (!file_exists($config)) die("(index.php) ERROR: main config file not found");
if (!file_exists($root_dir . "/protected/config/console.php")) die("(/protected/config/console.php) ERROR: config file not found.");
if (!is_writable($root_dir)) die("(root Directory) ERROR: Directory is not writeable. Cannot continue.");
if (!is_dir(dirname(__FILE__).'/assets')) {
// create it
// more checks done after login in SiteController.php, method check_db()
You can’t perform that action at this time.