Exemple #1
0
     $retval .= MG_mediaResetRating($album_id, $mid, $mqueue);
     $display = MG_siteHeader();
     $display .= $retval;
     $display .= MG_siteFooter();
     echo $display;
     exit;
 } else {
     if ($mode == $LANG_MG01['reset_views'] && !empty($LANG_MG01['reset_views'])) {
         $retval = '';
         if (!function_exists('MG_imageAdmin')) {
             require_once $_CONF['path'] . 'plugins/mediagallery/include/mediamanage.php';
         }
         $album_id = COM_applyFilter($_POST['album_id']);
         $mid = COM_applyFilter($_POST['mid']);
         $mqueue = COM_applyFilter($_POST['queue']);
         $retval .= MG_mediaResetViews($album_id, $mid, $mqueue);
         $display = MG_siteHeader();
         $display .= $retval;
         $display .= MG_siteFooter();
         echo $display;
         exit;
     } else {
         if ($mode == 'list') {
             $retval = '';
             require_once $_CONF['path'] . 'plugins/mediagallery/include/ftpmedia.php';
             $album_id = COM_applyFilter($_GET['album_id'], true);
             $dir = urldecode($_GET['dir']);
             $purgefiles = COM_applyFilter($_GET['purgefiles'], true);
             if (strstr($dir, "..")) {
                 $retval .= MG_errorHandler("Invalid input received");
             } else {
Exemple #2
0
 } else {
     if ($mode == $LANG_MG01['reset_rating'] && !empty($LANG_MG01['reset_rating'])) {
         require_once $include . 'mediamanage.php';
         $album_id = COM_applyFilter($_POST['album_id'], true);
         $mid = COM_applyFilter($_POST['mid']);
         $mqueue = COM_applyFilter($_POST['queue']);
         $display = MG_mediaResetRating($album_id, $mid, $mqueue);
         $display = MG_createHTMLDocument($display);
         COM_output($display);
     } else {
         if ($mode == $LANG_MG01['reset_views'] && !empty($LANG_MG01['reset_views'])) {
             require_once $include . 'mediamanage.php';
             $album_id = COM_applyFilter($_POST['album_id'], true);
             $mid = COM_applyFilter($_POST['mid']);
             $mqueue = COM_applyFilter($_POST['queue']);
             $display = MG_mediaResetViews($album_id, $mid, $mqueue);
             $display = MG_createHTMLDocument($display);
             COM_output($display);
         } else {
             if ($mode == 'list') {
                 require_once $include . 'ftpmedia.php';
                 $album_id = COM_applyFilter($_GET['album_id'], true);
                 $dir = urldecode($_GET['dir']);
                 $purgefiles = COM_applyFilter($_GET['purgefiles'], true);
                 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);
                 }
                 $display = MG_createHTMLDocument($display);
                 COM_output($display);