示例#1
0
     $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);
 }
 // MOLD IS MAIN IMAGE
 if (isset($_POST['is_main_image'])) {
     $mold->pm_set_mold_is_main_image($_POST['is_main_image']);
 }
 // REGULAR PRICE
 if (isset($_POST['regular_price'])) {
     $mold->pm_set_mold_regular_price($_POST['regular_price']);