Beispiel #1
0
    $connector_class = "OpenCartConn";
}
if (IMPORT_PLATFORM == "ZENCART") {
    $connector_class = "ZenCartConn";
}
require IMPORT_ABS_PATH . IMPORT_PATH . "/classes/{$connector_class}.class.php";
call_user_func(array($connector_class, 'init'));
$dbc = @mysql_connect(DB_HOSTNAME, DB_USERNAME, DB_PASSWORD) or die('KO!');
mysql_select_db(DB_DATABASE) or die('KO!');
$db = new My_Db($dbc);
$db->setDb(DB_DATABASE);
Settings::checkServer();
if (mysql_num_rows(mysql_query("SHOW TABLES LIKE 'imported'")) != 1) {
    echo DB_HOSTNAME . "/" . DB_DATABASE . "/" . DB_USERNAME . "/" . DB_PASSWORD . " | ";
    echo "<a target='_blank' href='/ib2b/assets/adminer.php?username="******"/" . DB_PASSWORD . "&db=" . DB_DATABASE . "&server=" . DB_HOSTNAME . "'>ADMINER</a><br><br>DB Tables installed.";
    installSQL();
}
if (strpos($arg, "ice")) {
    require_once IMPORT_ABS_PATH . IMPORT_PATH . "/classes/IceCat.class.php";
    $do = "icecat";
    define("ICECAT_username", "nzbestdirectnz");
    define("ICECAT_password", "axqk1393*1211");
    define("ICE_FEED_PATH", IMPORT_ABS_PATH . "/ib2b-feeds/ice/");
    @mkdir(ICE_FEED_PATH, 0775);
    define("CRON_MAX_ICECAT_LIFETIME_INFO", '2000');
    define("UPDATE_ICECAT_LIMIT", '10');
    //define("DOWNLOAD_LIMIT", '1500');
    define("ICECAT_ITEM_STEP", '4000');
    define("MAX_ICECAT_IMAGE_WIDTH", 1000);
    define("UPDATE_IMAGES_ONLY_LANG", 1);
    define("ICECAT_UPDATE_IMAGES", true);
Beispiel #2
0
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//INCLUDES, DO ANY ACTIONS, THEN GET OUR DATA
include_once "../globals.php";
include_once "{$srcdir}/registry.inc";
include_once "{$srcdir}/sql.inc";
if ($_GET['method'] == "enable") {
    updateRegistered($_GET['id'], "state=1");
} elseif ($_GET['method'] == "disable") {
    updateRegistered($_GET['id'], "state=0");
} elseif ($_GET['method'] == "install_db") {
    $dir = getRegistryEntry($_GET['id'], "directory");
    if (installSQL("{$srcdir}/../interface/forms/{$dir['directory']}")) {
        updateRegistered($_GET['id'], "sql_run=1");
    } else {
        $err = xl('ERROR: could not open table.sql, broken form?');
    }
} elseif ($_GET['method'] == "register") {
    registerForm($_GET['name']) or $err = xl('error while registering form!');
}
$bigdata = getRegistered("%") or $bigdata = false;
//START OUT OUR PAGE....
?>
<html>
<head>
<?php 
html_header_show();
?>