delOption(); break; case "editOption": editOption(); break; case "addTerm": addTerm(); break; case "delTerm": delTerm(); break; case "editTerm": editTerm(); break; case "CopyData": CopyData(); break; //case "update": header("Location: ?op=Order_Updater"); break; //case "update": header("Location: ?op=Order_Updater"); break; default: home(); break; } } else { echo "Access Denied"; } function isUpdate() { global $db, $prefix; $ver = $db->sql_fetchrow($db->sql_query("SELECT version FROM " . $prefix . "_hosting_order_config")); $fp = fopen("http://moahosting.com/files/php-nuke_order/current.txt", "r");
$DB->debug = 1; $DB2->debug = 1; } # $rep->SwapDBs(); $cnt = sizeof($tables); foreach ($tables as $k => $table) { $pkey = ''; if (!ParseTable($table, $pkey)) { continue; } ####################### $kcnt = $k + 1; echo "<h1>({$kcnt}/{$cnt}) {$table} -- {$pkey}</h1>\n"; flush(); @ob_flush(); CreateTable($rep, $table); # COPY DATA TableStats($rep, $table, $pkey); if ($table == 'JohnTest') { MergeDataJohnTest($rep, $table, $pkey); } else { CopyData($rep, $table, $pkey); } } if (!empty($TARR)) { ksort($TARR); adodb_pr($TARR); asort($TARR); adodb_pr($TARR); } echo "<hr>", date('H:i:s'), ": Done</hr>";