Beispiel #1
0
NewConfigValue('ShopPayPalUser', '', $db);
NewConfigValue('ShopPrivacyStatement', '', $db);
NewConfigValue('ShopShowInfoLinks', 1, $db);
NewConfigValue('ShopShowLeftCategoryMenu', 1, $db);
NewConfigValue('ShopShowLogoAndShopName', 1, $db);
NewConfigValue('ShopShowOnlyAvailableItems', 0, $db);
NewConfigValue('ShopShowQOHColumn', 1, $db);
NewConfigValue('ShopShowTopCategoryMenu', 1, $db);
NewConfigValue('ShopStockLocations', 1, $db);
NewConfigValue('ShopSurchargeStockID', '', $db);
NewConfigValue('ShopSwipeHQAPIKey', '', $db);
NewConfigValue('ShopSwipeHQMerchantID', '', $db);
NewConfigValue('ShopTermsConditions', '', $db);
NewConfigValue('ShopTitle', 'Shop Home', $db);
NewConfigValue('ShowStockidOnImages', 0, $db);
NewConfigValue('ShowValueOnGRN', 1, $db);
NewConfigValue('Show_Settled_LastMonth', 1, $db);
NewConfigValue('SmtpSetting', 0, $db);
NewConfigValue('SO_AllowSameItemMultipleTimes', 1, $db);
NewConfigValue('StandardCostDecimalPlaces', 2, $db);
NewConfigValue('TaxAuthorityReferenceName', '', $db);
NewConfigValue('UpdateCurrencyRatesDaily', 0, $db);
NewConfigValue('VersionNumber', '13.10.0', $db);
NewConfigValue('vtiger_integration', 0, $db);
NewConfigValue('WeightedAverageCosting', 1, $db);
NewConfigValue('WikiApp', 'Disabled', $db);
NewConfigValue('WikiPath', 'wiki', $db);
NewConfigValue('WorkingDaysWeek', 5, $db);
NewConfigValue('YearEnd', 3, $db);
NewConfigValue('DBUpdateNumber', HighestFileName($PathPrefix), $db);
Beispiel #2
0
$InitialScripts[] = 'TaxCategories.php';
$InitialScripts[] = 'TaxAuthorityRates.php';
$InitialScripts[] = 'Locations.php';
$InitialScripts[] = 'SalesTypes.php';
$InitialScripts[] = 'Shippers.php';
$InitialScripts[] = 'SystemParameters.php';
$FileHandle = fopen($Path_To_Root . '/install/InitialScripts.txt', 'w');
foreach ($InitialScripts as $InitialScript) {
    fwrite($FileHandle, $InitialScript . "\n");
}
fclose($FileHandle);
echo '<legend>' . _('Building your database.') . ' ' . _('This may take some time, please be patient') . '</legend>';
echo '<div id="progress" class="centre" style="border-radius: 5px;width:100%;border:1px solid #157213;"></div>';
echo '<div id="information" style="width"></div>';
$StartingUpdate = 0;
$EndingUpdate = HighestFileName('../');
unset($_SESSION['Updates']);
$_SESSION['Updates']['Errors'] = 0;
$_SESSION['Updates']['Successes'] = 0;
$_SESSION['Updates']['Warnings'] = 0;
for ($UpdateNumber = $StartingUpdate; $UpdateNumber <= $EndingUpdate; $UpdateNumber++) {
    if (file_exists($PathPrefix . 'sql/install/' . $UpdateNumber . '.php')) {
        $percent = intval($UpdateNumber / $EndingUpdate * 100) . "%";
        echo '<script language="javascript">
						document.getElementById("progress").innerHTML="<div style=\\"margin: 1px;border-radius: 5px; width:' . $percent . ';background-color:#157213;\\">&nbsp;</div>";
						document.getElementById("information").innerHTML="' . $UpdateNumber . ' file(s) processed.";
					</script>';
        echo str_repeat(' ', 1024 * 4);
        $sql = "SET foreign_key_checks=0";
        $result = executeSQL($sql, $db, False);
        flush();