Exemplo n.º 1
0
    }
}
// add field 'contact_language' to contact db
if (!$dbKITcontact->sqlFieldExists(dbKITcontact::field_contact_language)) {
    if (!$dbKITcontact->sqlAlterTableAddField(dbKITcontact::field_contact_language, "VARCHAR(2) NOT NULL DEFAULT 'en'", dbKITcontact::field_contact_note)) {
        $error .= sprintf('<p>[ALTER TABLE mod_kit_contact] %s</p>', $dbKITcontact->getError());
    }
}
/**
 * Release 0.56
 */
$dbKITcfg = new dbKITcfg();
// remove cfgGoogleMapsAPIkey
$where = array(dbKITcfg::field_name => 'cfgGoogleMapsAPIkey');
if (!$dbKITcfg->sqlDeleteRecord($where)) {
    $error .= sprintf('<p>[UPDATE CONFIG TABLE mod_kit_config] %s</p>', $dbKITcfg->getError());
}
/**
 * Release 0.62
 */
$where = array(dbKITcfg::field_name => 'cfgSortContactList');
if (!$dbKITcfg->sqlDeleteRecord($where)) {
    $error .= sprintf('<p>[UPDATE CONFIG TABLE mod_kit_config] %s</p>', $dbKITcfg->getError());
}
$where = array(dbKITcfg::field_name => 'cfgLimitContactList');
if (!$dbKITcfg->sqlDeleteRecord($where)) {
    $error .= sprintf('<p>[UPDATE CONFIG TABLE mod_kit_config] %s</p>', $dbKITcfg->getError());
}
/**
 * Release 0.63
 */
Exemplo n.º 2
0
        trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
    }
}
// end include class.secure.php
define('KIT_INSTALL_RUNNING', true);
require_once WB_PATH . '/modules/' . basename(dirname(__FILE__)) . '/initialize.php';
require_once WB_PATH . '/modules/' . basename(dirname(__FILE__)) . '/class.mail.php';
require_once WB_PATH . '/modules/' . basename(dirname(__FILE__)) . '/class.newsletter.php';
require_once WB_PATH . '/modules/' . basename(dirname(__FILE__)) . '/class.cronjob.php';
global $admin;
global $database;
$error = '';
// first install configuration table!
$dbConfig = new dbKITcfg(true);
if ($dbConfig->isError()) {
    $error .= sprintf('<p>[Installation] %s</p>', $dbConfig->getError());
}
$dbKITcontact = new dbKITcontact(true);
if ($dbKITcontact->isError()) {
    $error .= sprintf('<p>[Installation] %s</p>', $dbKITcontact->getError());
}
$dbKITcontactAddress = new dbKITcontactAddress(true);
if ($dbKITcontactAddress->isError()) {
    $error .= sprintf('<p>[Installation] %s</p>', $dbKITcontactAddress->getError());
}
$dbKITprovider = new dbKITprovider(true);
if ($dbKITprovider->isError()) {
    $error .= sprintf('<p>[Installation] %s</p>', $dbKITprovider->getError());
}
$dbKITmail = new dbKITmail(true);
if ($dbKITmail->isError()) {
Exemplo n.º 3
0
    } else {
        trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
    }
}
// end include class.secure.php
define('KIT_INSTALL_RUNNING', true);
require_once WB_PATH . '/modules/' . basename(dirname(__FILE__)) . '/initialize.php';
require_once WB_PATH . '/modules/' . basename(dirname(__FILE__)) . '/class.mail.php';
require_once WB_PATH . '/modules/' . basename(dirname(__FILE__)) . '/class.newsletter.php';
require_once WB_PATH . '/modules/' . basename(dirname(__FILE__)) . '/class.cronjob.php';
global $admin;
$error = '';
$dbConfig = new dbKITcfg();
if ($dbConfig->sqlTableExists()) {
    if (!$dbConfig->sqlDeleteTable()) {
        $error .= sprintf('<p>[Delete Table] %s</p>', $dbConfig->getError());
    }
}
$dbContact = new dbKITcontact();
if ($dbContact->sqlTableExists()) {
    if (!$dbContact->sqlDeleteTable()) {
        $error .= sprintf('<p>[Delete Table] %s</p>', $dbContact->getError());
    }
}
$dbContactArray = new dbKITcontactArrayCfg();
if ($dbContactArray->sqlTableExists()) {
    if (!$dbContactArray->sqlDeleteTable()) {
        $error .= sprintf('<p>[Delete Table] %s</p>', $dbContactArray->getError());
    }
}
$dbContactAddress = new dbKITcontactAddress();