예제 #1
0
파일: admin.php 프로젝트: NewRoute/glfusion
         $retval .= MG_sortAlbums($album_id, $_MG_CONF['site_url'] . '/admin.php');
     } else {
         $retval .= MG_invalidRequest();
     }
     $display = MG_siteHeader();
     $display .= $retval;
     $display .= MG_siteFooter();
     echo $display;
     exit;
 } else {
     if ($mode == 'staticsort') {
         $retval = '';
         if (isset($_GET['album_id'])) {
             require_once $_CONF['path'] . 'plugins/mediagallery/include/sort.php';
             $album_id = COM_applyFilter($_GET['album_id'], true);
             $retval .= MG_staticSortMedia($album_id, $_MG_CONF['site_url'] . '/admin.php');
         } else {
             $retval .= MG_invalidRequest();
         }
         $display = MG_siteHeader();
         $display .= $retval;
         $display .= MG_siteFooter();
         echo $display;
         exit;
     } else {
         if ($mode == 'rotate') {
             $retval = '';
             if (isset($_GET['album_id']) && isset($_GET['media_id']) && isset($_GET['action'])) {
                 require_once $_CONF['path'] . 'plugins/mediagallery/include/rotate.php';
                 $album_id = COM_applyFilter($_GET['album_id'], true);
                 $media_id = COM_sanitizeID(COM_applyFilter($_GET['media_id']));
예제 #2
0
     }
     require_once $include . 'sort.php';
     $album_id = COM_applyFilter($_GET['album_id'], true);
     $actionURL = $_MG_CONF['site_url'] . '/admin.php';
     $display = MG_sortAlbums($album_id, $actionURL);
     $display = MG_createHTMLDocument($display);
     COM_output($display);
 } else {
     if ($mode == 'staticsort') {
         if (!isset($_GET['album_id'])) {
             MG_invalidRequest();
         }
         require_once $include . 'sort.php';
         $album_id = COM_applyFilter($_GET['album_id'], true);
         $actionURL = $_MG_CONF['site_url'] . '/admin.php';
         $display = MG_staticSortMedia($album_id, $actionURL);
         $display = MG_createHTMLDocument($display);
         COM_output($display);
     } else {
         if ($mode == 'rotate') {
             if (!isset($_GET['album_id']) || !isset($_GET['media_id']) || !isset($_GET['action'])) {
                 MG_invalidRequest();
             }
             require_once $include . 'lib-media.php';
             $album_id = COM_applyFilter($_GET['album_id'], true);
             $media_id = COM_applyFilter($_GET['media_id']);
             $direction = COM_applyFilter($_GET['action']);
             $actionURL = $_MG_CONF['site_url'] . '/admin.php?mode=mediaedit&mid=' . $media_id . '&album_id=' . $album_id;
             $display = MG_rotateMedia($album_id, $media_id, $direction, $actionURL);
             $display = MG_createHTMLDocument($display);
             COM_output($display);