Exemple #1
0
    return $db;
}
function isComment($line)
{
    $line = trim($line);
    if (strlen($line) > 1 and $line[0] == '-' and $line[1] == '-') {
        return true;
    }
    return false;
}
db();
$installer = new Dataface_Installer();
switch (@$_REQUEST['-action']) {
    case 'testdb':
        $installer->testdb();
        break;
    case 'testftp':
        $installer->testftp();
        break;
    case 'logout':
        $installer->logout();
        break;
    case 'db2app':
        $installer->db2app();
        break;
    case 'archive2app':
        $installer->archive2app();
        break;
    default:
        $installer->mainMenu();
}