Example #1
0
     } else {
         $retval .= MG_invalidRequest();
     }
     $display = MG_siteHeader();
     $display .= $retval;
     $display .= MG_siteFooter();
     echo $display;
     exit;
 } else {
     if ($mode == 'import') {
         $retval = '';
         if (isset($_GET['album_id'])) {
             require_once $_CONF['path'] . 'plugins/mediagallery/include/ftpmedia.php';
             $album_id = COM_applyFilter($_GET['album_id'], true);
             $retval .= MG_navbar($LANG_MG01['ftp_media'], $album_id);
             $retval .= MG_ftpUpload($album_id);
         } else {
             $retval .= MG_invalidRequest();
         }
         $display = MG_siteHeader();
         $display .= $retval;
         $display .= MG_siteFooter();
         echo $display;
         exit;
     } else {
         if ($mode == 'globalattr') {
             $retval = '';
             require_once $_CONF['path'] . 'plugins/mediagallery/include/global.php';
             if (isset($_GET['album_id'])) {
                 $album_id = COM_applyFilter($_GET['album_id'], true);
                 $admin_menu = isset($_GET['a']) ? COM_applyFilter($_GET['a'], true) : 0;
Example #2
0
     if (!isset($_GET['album_id'])) {
         MG_invalidRequest();
     }
     require_once $include . 'newmedia.php';
     $album_id = COM_applyFilter($_GET['album_id'], true);
     $display .= MG_userUpload($album_id);
     $display = MG_createHTMLDocument($display);
     COM_output($display);
 } else {
     if ($mode == 'import') {
         if (!isset($_GET['album_id'])) {
             MG_invalidRequest();
         }
         require_once $include . 'ftpmedia.php';
         $album_id = COM_applyFilter($_GET['album_id'], true);
         $display .= MG_ftpUpload($album_id);
         $display = MG_createHTMLDocument($display);
         COM_output($display);
     } else {
         if ($mode == 'globalattr') {
             if (!isset($_GET['album_id'])) {
                 MG_invalidRequest();
             }
             require_once $include . 'global.php';
             $album_id = COM_applyFilter($_GET['album_id'], true);
             $admin_menu = COM_applyFilter($_GET['a'], true);
             $display = MG_globalAlbumAttributeEditor($admin_menu);
             $display = MG_createHTMLDocument($display);
             COM_output($display);
         } else {
             if ($mode == 'globalperm') {