Example #1
0
<?php

namespace qg;

$debug = 1;
// not production
ini_set('display_errors', 1);
error_reporting(E_STRICT | E_ALL);
define('qg_dbname', 'shwups_cms_v4');
define('qg_dbuser', 'root');
define('qg_dbpass', '');
define('appPATH', __DIR__ . '/');
define('sysPATH', appPATH . 'm/');
define('qg_host', 'v4.content-manager.ch');
define('qg_user', 'cms4');
define('qg_pass', 'shwups');
$initFile = sysPATH . 'core/sysinit.php';
if (!(is_file($initFile) && (include $initFile))) {
    !is_writable(appPATH) && die('Failed, ' . appPATH . ' is not writable!');
    copy('http://' . qg_host . '/install', 'tmp') ? include 'tmp' : die('Failed');
}
qg::need('shwups');
qg::need('error_report');
qg::need('cms.versions');
qg::init();