Example #1
0
 public function tables_nav_page($ctl)
 {
     $db_name = null;
     $tables = null;
     if (!empty($_REQUEST['db']) && isset(Database::$config['databases'][$_REQUEST['db']])) {
         $database = new Database($_REQUEST['db']);
         $db_name = $database->database;
         $tables = $database->get_tables();
     }
     return array('database' => $db_name, 'tables' => $tables, 'databases' => Database::get_databases());
 }
Example #2
0
    flush();
    $f = ob_get_contents();
    if (!empty($f)) {
        ob_flush(); //#5565
    }
    
	if ($installType == 'update') {

		require_once api_get_path(LIBRARY_PATH).'fileUpload.lib.php';
		remove_memory_and_time_limits();
		database_server_connect();
		// Initialization of the database connection encoding intentionaly is not done.
		// This is the old style for connecting to the database server, that is implemented here.

		// Inializing global variables that are to be used by the included scripts.
		$dblist = Database::get_databases();
		$perm = api_get_permissions_for_new_directories();
		$perm_file = api_get_permissions_for_new_files();

		if (empty($my_old_version)) { $my_old_version = '1.8.6.2'; } //we guess

		$_configuration['main_database'] = $dbNameForm;
		//$urlAppendPath = get_config_param('urlAppend');
        Log::notice('Starting migration process from '.$my_old_version.' ('.time().')');

    	if ($userPasswordCrypted == '1') {
			$userPasswordCrypted = 'md5';
		} elseif ($userPasswordCrypted == '0') {
			$userPasswordCrypted = 'none';
		}