Exemple #1
0
         $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;
 case 'globalattr':
     require_once $_CONF['path'] . 'plugins/mediagallery/include/global.php';
     $retval .= MG_saveGlobalAlbumAttr();
     break;
 case 'globalperm':
Exemple #2
0
         $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;
     $display .= MG_saveMediaEdit($album_id, $media_id, $actionURL);
     break;
 case 'globalattr':
     require_once $include . 'global.php';
     $display .= MG_saveGlobalAlbumAttr();