예제 #1
0
파일: admin.php 프로젝트: NewRoute/glfusion
     $purgefiles = isset($_REQUEST['purgefiles']) ? $_REQUEST['purgefiles'] : 0;
     $recurse = isset($_REQUEST['recurse']) ? $_REQUEST['recurse'] : 0;
     if (strstr($dir, "..")) {
         $retval .= MG_errorHandler("Invalid input received");
     } else {
         $retval .= MG_navbar($LANG_MG01['ftp_media'], $album_id);
         $retval .= MG_FTPpickFiles($album_id, $dir, $purgefiles, $recurse);
     }
     break;
 case 'ftpprocess':
     require_once $_CONF['path'] . 'plugins/mediagallery/include/ftpmedia.php';
     $retval .= MG_ftpProcess($album_id);
     break;
 case 'media':
     require_once $_CONF['path'] . 'plugins/mediagallery/include/mediamanage.php';
     $retval .= MG_saveMedia($album_id, $_MG_CONF['site_url'] . '/album.php?aid=' . $album_id);
     CACHE_remove_instance('whatsnew');
     break;
 case 'albumsort':
     require_once $_CONF['path'] . 'plugins/mediagallery/include/sort.php';
     $retval .= MG_saveAlbumSort($album_id, $_MG_CONF['site_url'] . '/index.php');
     break;
 case 'staticsort':
     require_once $_CONF['path'] . 'plugins/mediagallery/include/sort.php';
     $retval .= MG_saveStaticSortMedia($album_id, $_MG_CONF['site_url'] . '/album.php?aid=' . $album_id);
     break;
 case 'savemedia':
     require_once $_CONF['path'] . 'plugins/mediagallery/include/mediamanage.php';
     $media_id = $_POST['mid'];
     $retval = MG_saveMediaEdit($album_id, $media_id, $_MG_CONF['site_url'] . '/admin.php?mode=media&album_id=' . $album_id);
     break;
예제 #2
0
     $purgefiles = $_REQUEST['purgefiles'];
     $recurse = $_REQUEST['recurse'];
     if (strstr($dir, "..")) {
         $display .= COM_showMessageText('Invalid input received' . '  [ <a href=\'javascript:history.go(-1)\'>' . $LANG_MG02['go_back'] . '</a> ]');
     } else {
         $display .= MG_FTPpickFiles($album_id, $dir, $purgefiles, $recurse);
     }
     break;
 case 'ftpprocess':
     require_once $include . 'ftpmedia.php';
     MG_ftpProcess($album_id);
     break;
 case 'media':
     require_once $include . 'mediamanage.php';
     $actionURL = $_MG_CONF['site_url'] . '/album.php?aid=' . $album_id;
     $display .= MG_saveMedia($album_id, $actionURL);
     break;
 case 'albumsort':
     require_once $include . 'sort.php';
     $actionURL = $_MG_CONF['site_url'] . '/index.php';
     $display .= MG_saveAlbumSort($album_id, $actionURL);
     break;
 case 'staticsort':
     require_once $include . 'sort.php';
     $actionURL = $_MG_CONF['site_url'] . '/album.php?aid=' . $album_id;
     $display .= MG_saveStaticSortMedia($album_id, $actionURL);
     break;
 case 'savemedia':
     require_once $include . 'mediamanage.php';
     $media_id = $_POST['mid'];
     $actionURL = $_MG_CONF['site_url'] . '/admin.php?mode=media&album_id=' . $album_id;