Ejemplo n.º 1
0
 function consolidateDB()
 {
     global $rsgConfig;
     $database =& JFactory::getDBO();
     //Load all image names from DB in array
     $sql = "SELECT name FROM #__rsgallery2_files";
     $database->setQuery($sql);
     $names_db = rsg2_consolidate::arrayToLower($database->loadResultArray());
     $files_display = rsg2_consolidate::getFilenameArray($rsgConfig->get('imgPath_display'));
     $files_original = rsg2_consolidate::getFilenameArray($rsgConfig->get('imgPath_original'));
     $files_thumb = rsg2_consolidate::getFilenameArray($rsgConfig->get('imgPath_thumb'));
     $files_total = array_unique(array_merge($files_display, $files_original, $files_thumb));
     html_rsg2_maintenance::consolidateDB($names_db, $files_display, $files_original, $files_thumb, $files_total);
 }
Ejemplo n.º 2
0
function consolidateDB()
{
    $consolidate = new rsg2_consolidate();
    $consolidate->consolidateDB();
}