Пример #1
0
 /**
  * Function to rename the migration file and folder
  * Writing tab data in flat file
  */
 public function postMigrateActivities()
 {
     //Writing tab data in flat file
     perform_post_migration_activities();
     //rename the migration file and folder
     $renamefile = uniqid(rand(), true);
     if (!@rename("migrate/", $renamefile . "migrate/")) {
         if (@copy("migrate/", $renamefile . "migrate/")) {
             @unlink("migrate/");
         }
     }
 }
Пример #2
0
if ($currency_name != $mig_currency) {
    echo "<br><br><b><font color='red'>NOTE:<br><br>Please change the base currency name as '{$mig_currency}' in config.inc.php ie., change the variable currency name as \$" . "currency_name = '{$mig_currency}' in config.inc.php file.</b><br><br>";
}
echo '<table width="95%"  border="0" align="center">
	<tr bgcolor="#FFFFFF"><td colspan="2">&nbsp;</td></tr>
		<tr>
			<td colspan="2" align="center">
				<form name="close_migration" method="post" action="index.php">
					<input type="hidden" name="module" value="Settings">
					<input type="hidden" name="action" value="index">
					<input type="submit" name="close" value=" &nbsp;Close&nbsp; " class="crmbutton small cancel" />
				</form>
			</td>
		</tr>
	</table><br><br>';
perform_post_migration_activities();
//Function used to execute the query and display the success/failure of the query
function ExecuteQuery($query)
{
    global $adb;
    global $conn, $query_count, $success_query_count, $failure_query_count, $success_query_array, $failure_query_array;
    global $migrationlog;
    //For third option migration we have to use the $conn object because the queries should be executed in 4.2.3 db
    if ($_REQUEST['migration_option'] == 'alter_db_details') {
        $status = $conn->query($query);
    } else {
        $status = $adb->query($query);
    }
    $query_count++;
    if (is_object($status)) {
        echo '