Example #1
0
<?php

$menu = false;
//if (checkTableExists() == false)
//{
//	echo "SCHEME";
//SQL import
//JSON import
$samplejson = new importjson();
$samplejson->file = "./databases/json/sample_data.json";
//	$samplejson->debug = true;
$samplejson->pattern_find = array('si_', 'DOMAIN-ID', 'LOCALE', 'LANGUAGE');
$samplejson->pattern_replace = array(TB_PREFIX, '1', 'en_GB', 'en_GB');
if ($db->query($samplejson->collate())) {
    $saved = true;
} else {
    $saved = false;
}
//}
$smarty->assign("saved", $saved);
Example #2
0
<?php

$menu = false;
if (checkTableExists(TB_PREFIX . "customers") == true and $install_data_exists == false) {
    //	echo "ESSENTIAL";
    //JSON import
    $importjson = new importjson();
    $importjson->file = "./databases/json/essential_data.json";
    //$importjson->debug = true;
    $importjson->pattern_find = array('si_', 'DOMAIN-ID', 'LOCALE', 'LANGUAGE');
    $importjson->pattern_replace = array(TB_PREFIX, '1', 'en_GB', 'en_GB');
    //dbQuery($importjson->collate());
    $db->query($importjson->collate());
}