예제 #1
0
 if (isset($_POST['is_virtual'])) {
     $mold->pm_set_mold_is_virtual($_POST['is_virtual']);
 }
 if (isset($_POST['is_not_virtual'])) {
     $mold->pm_set_mold_is_virtual($_POST['is_not_virtual']);
 }
 // MOLD IS DOWNLOADABLE
 if (isset($_POST['is_downloadable'])) {
     $mold->pm_set_mold_is_downloadable($_POST['is_downloadable']);
     // MOLD FILE PATHS
     if (isset($_POST['file_paths']) && !empty($_POST['file_paths'])) {
         $paths = explode(",", $_POST['file_paths']);
         if (empty($paths[0])) {
             unset($paths[0]);
         }
         $mold->pm_set_mold_file_paths($paths);
     }
     // MOLD DOWNLOAD LIMIT
     if (isset($_POST['download_limit'])) {
         $mold->pm_set_mold_download_limit($_POST['download_limit']);
     }
     // MOLD DOWNLOAD EXPIRY
     if (isset($_POST['download_expiry'])) {
         $mold->pm_set_mold_download_expiry($_POST['download_expiry']);
     }
 }
 if (isset($_POST['is_not_downloadable'])) {
     $mold->pm_set_mold_is_downloadable($_POST['is_not_downloadable']);
     $mold->pm_set_mold_file_paths(array());
     $mold->pm_set_mold_download_limit(null);
     $mold->pm_set_mold_download_expiry(null);