if (isset($_REQUEST['msg'])) { $display .= COM_showMessage(COM_applyFilter($_REQUEST['msg'], true), $pi_name); } switch ($action) { case $LANG_USERBOX_ADMIN['config_init']: $dummy = LIB_Deleteconfig($pi_name, $config); $dummy = LIB_Initializeconfig($pi_name); echo COM_refresh($_CONF['site_admin_url'] . '/plugins/userbox/backuprestore.php'); exit; break; case $LANG_USERBOX_ADMIN['config_backup']: $display .= LIB_Backupconfig($pi_name); break; case $LANG_USERBOX_ADMIN['config_restore']: $display .= LIB_Restoreconfig($pi_name, $config); break; case $LANG_USERBOX_ADMIN['config_update']: $dummy = LIB_Backupconfig($pi_name, "update"); $dummy = LIB_Deleteconfig($pi_name, $config); $dummy = LIB_Initializeconfig($pi_name); $dummy = LIB_Restoreconfig($pi_name, $config, "update"); echo COM_refresh($_CONF['site_admin_url'] . '/plugins/userbox/backuprestore.php'); exit; break; default: } $display .= fncMenu($pi_name); $display .= fncDisply($pi_name); $display = COM_startBlock($LANG_USERBOX_ADMIN['piname'], '', COM_getBlockTemplate('_admin_block', 'header')) . $display . COM_endBlock(COM_getBlockTemplate('_admin_block', 'footer')); $display = DATABOX_displaypage($pi_name, '_admin', $display, $information); COM_output($display);
if (isset($_REQUEST['msg'])) { $display .= COM_showMessage(COM_applyFilter($_REQUEST['msg'], true), $pi_name); } switch ($action) { case $LANG_ASSIST_ADMIN['config_init']: $display .= LIB_Deleteconfig($pi_name, $config); $display .= LIB_Initializeconfig($pi_name); break; case $LANG_ASSIST_ADMIN['config_backup']: $display .= LIB_Backupconfig($pi_name); break; case $LANG_ASSIST_ADMIN['config_restore']: $display .= LIB_Restoreconfig($pi_name, $config); break; case $LANG_ASSIST_ADMIN['config_update']: $display .= LIB_Backupconfig($pi_name, "update"); $display .= LIB_Deleteconfig($pi_name, $config); $display .= LIB_Initializeconfig($pi_name); $display .= LIB_Restoreconfig($pi_name, $config, "update"); break; default: } $display .= fncDisply($pi_name); //FOR GL2.0.0 if (COM_versionCompare(VERSION, "2.0.0", '>=')) { $display = COM_createHTMLDocument($display, $information); } else { $display = COM_siteHeader($information['what'], $information['pagetitle']) . $display; $display .= COM_siteFooter($information['rightblock']); } COM_output($display);