Example #1
0
    $CF->showheader();
}
$GF = new globalfunctions();
$query = $CF->getuncheckedvariable("query");
if ($query == 'base_install') {
    // check if already installed
    $installed = true;
    $fh = @fopen($DFLT['cfg_d'] . "/" . $DFLT['ins_f'], 'r') or $installed = false;
    if ($installed) {
        fclose($fh);
        $CF->unsafeexit("install_error");
    } else {
        // current query is install. let it proceed
        require 'cpgAPIinstall.php';
        $INSTALL = new install();
        $INSTALL->baseinstall();
    }
}
/*
 * Install Application -- open currently for debug only
 * @ dbserver
 * @ dbuser
 * @ dbpass
 * @ dbname
 * @ prefix
 * @ adminusername
 * @ adminpassword
 * @ adminemail
 */
if ($query == 'install') {
    // check if already installed