Exemple #1
0
                 $flagNextVersion = true;
             }
         }
     }
 }
 if ($gDbType === 'postgresql') {
     // soundex is not a default function in PostgreSQL
     $sql = 'UPDATE ' . TBL_PREFERENCES . ' SET prf_value = \'0\'
              WHERE prf_name LIKE \'system_search_similar\'';
     $gDb->query($sql);
 }
 // since version 3 we do the update with xml files and a new class model
 if ($mainVersion >= 3) {
     // reread component because in version 3.0 the component will be created within the update
     $componentUpdateHandle = new ComponentUpdate($gDb);
     $componentUpdateHandle->readDataByColumns(array('com_type' => 'SYSTEM', 'com_name_intern' => 'CORE'));
     $componentUpdateHandle->setTargetVersion(ADMIDIO_VERSION);
     $componentUpdateHandle->update();
 }
 if ($gDbType === 'mysql') {
     // activate foreign key checks, so database is consistent
     $sql = 'SET foreign_key_checks = 1 ';
     $gDb->query($sql);
 }
 // nach dem Update erst einmal bei Sessions das neue Einlesen des Organisations- und Userobjekts erzwingen
 $sql = 'UPDATE ' . TBL_SESSIONS . ' SET ses_renew = 1 ';
 $gDb->query($sql);
 // create an installation unique cookie prefix and remove special characters
 $gCookiePraefix = 'ADMIDIO_' . $g_organization . '_' . $g_adm_db . '_' . $g_tbl_praefix;
 $gCookiePraefix = strtr($gCookiePraefix, ' .,;:[]', '_______');
 // start php session and remove session object with all data, so that