Пример #1
0
/**
 * Shows Migration main screen
 * It shows detected gallerysystem and offers a migration option
 */
function showMigration()
{
    require_once JPATH_RSGALLERY2_ADMIN . '/includes/install.class.php';
    //Initialize new install instance
    $rsgInstall = new rsgInstall();
    if (isset($_REQUEST['type'])) {
        $type = mosGetParam($_REQUEST, 'type', '');
    } else {
        $type = NULL;
    }
    if ($type == '') {
        $rsgInstall->showMigrationOptions();
    } else {
        $result = $rsgInstall->doMigration($type);
        if ($result !== true) {
            echo $result;
            HTML_RSGallery::showCP();
        } else {
            echo JText::_('migration successful');
            HTML_RSGallery::showCP();
        }
    }
}
Пример #2
0
            break;
        case "showConfig":
            //HTML_RSGallery::RSGalleryHeader('config', JText::_('Configuration'));
            showConfig();
            HTML_RSGallery::RSGalleryFooter();
            break;
        case 'config_rawEdit_apply':
            //HTML_RSGallery::RSGalleryHeader('config_rawEdit', JText::_('Configuration Raw Edit'));
            saveConfig();
            config_rawEdit();
            HTML_RSGallery::RSGalleryFooter();
            break;
        case 'config_rawEdit_save':
            //HTML_RSGallery::RSGalleryHeader('cpanel', JText::_('Control Panel'));
            saveConfig();
            HTML_RSGallery::showCP();
            HTML_RSGallery::RSGalleryFooter();
            break;
        case 'config_rawEdit':
            //HTML_RSGallery::RSGalleryHeader('config_rawEdit', JText::_('Configuration Raw Edit'));
            config_rawEdit();
            HTML_RSGallery::RSGalleryFooter();
            break;
    }
} else {
    HTML_RSGALLERY::printAdminMsg('Access denied OR config feature does not exist.');
}
function config_dumpVars()
{
    global $rsgConfig;
    $vars = get_object_vars($rsgConfig);