Exemplo n.º 1
0
     $display .= $retval;
     $display .= MG_siteFooter();
     echo $display;
     exit;
 } else {
     if ($mode == $LANG_MG01['upload'] && !empty($LANG_MG01['upload']) || $mode == 'upload') {
         if (isset($_POST['action'])) {
             $action = COM_applyFilter($_POST['action']);
         } else {
             $action = '';
         }
         $retval = '';
         if ($action == 'watermark') {
             require_once $_CONF['path'] . 'plugins/mediagallery/include/lib-upload.php';
             require_once $_CONF['path'] . 'plugins/mediagallery/include/lib-watermark.php';
             $retval .= MG_watermarkUpload();
         } else {
             if (isset($_GET['album_id'])) {
                 require_once $_CONF['path'] . 'plugins/mediagallery/include/newmedia.php';
                 $album_id = COM_applyFilter($_GET['album_id'], true);
                 $retval .= MG_navbar($LANG_MG01['html5upload_media'], $album_id);
                 $retval .= MG_HTML5Upload($album_id);
             } else {
                 $retval .= MG_invalidRequest();
             }
         }
         $display = MG_siteHeader();
         $display .= $retval;
         $display .= MG_siteFooter();
         echo $display;
         exit;
Exemplo n.º 2
0
             require_once $include . 'lib-watermark.php';
             $display .= MG_watermarkDelete();
             break;
     }
     $display = MG_createHTMLDocument($display);
     COM_output($display);
 } else {
     if ($mode == $LANG_MG01['upload'] && !empty($LANG_MG01['upload']) || $mode == 'upload') {
         $action = '';
         if (isset($_POST['action'])) {
             $action = $_POST['action'];
         }
         if ($action == 'watermark') {
             require_once $include . 'lib-upload.php';
             require_once $include . 'lib-watermark.php';
             $display = MG_watermarkUpload();
             $display = MG_createHTMLDocument($display);
         } else {
             if (isset($_GET['album_id'])) {
                 require_once $include . 'newmedia.php';
                 $album_id = COM_applyFilter($_GET['album_id'], true);
                 $form = MG_SWFUpload($album_id);
                 if (empty($form)) {
                     echo COM_refresh($_MG_CONF['site_url'] . '/index.php');
                     exit;
                 }
                 $display .= $form;
                 $display = MG_createHTMLDocument($display);
             } else {
                 MG_invalidRequest();
             }