// Set a trial membership id
             $trialEndDate = date("Y-m-d H:i:s", strtotime(gmt_date() . " +{$membershipDB[trial_length_num]} {$membershipDB[trial_length_period]}"));
             // Figure trial end date
         }
     } else {
         $paidMembership = true;
         // This is a paid membership - mark it as so
         $membershipID = 1;
         $_SESSION['jumpToOnLogin'] = "******";
     }
 }
 $umem_id = create_unique2();
 // Create unique ID
 $passwordEnc = k_encrypt($password);
 // Encrypt the password
 $signupDate = gmt_date();
 $ipsignup = $_SERVER['REMOTE_ADDR'];
 $accountStatus = $config['settings']['email_conf'] ? 2 : 1;
 // If email confirmation is needed set the account status to 2 (pending)
 //CLEAN BEFORE INPUT
 $f_name = strip_tags($f_name);
 $l_name = strip_tags($l_name);
 $email = strip_tags($email);
 $phone = strip_tags($phone);
 $comp_name = strip_tags($comp_name);
 $website = strip_tags($website);
 $address = strip_tags($address);
 $address_2 = strip_tags($address_2);
 $city = strip_tags($city);
 $postal_code = strip_tags($postal_code);
 $country = strip_tags($country);
示例#2
0
 }
 if ($iptc['description']) {
     if ($config['iptcDescHandler'] == 'R') {
         $description[$selectedLanguage] = $iptc['description'];
     } else {
         $description[$selectedLanguage] = $description[$selectedLanguage] . $config['iptcSepChar'] . $iptc['description'];
     }
 }
 if ($iptc['copyright_notice']) {
     if ($config['iptcCopyRightHandler'] == 'R') {
         $copyright = $iptc['copyright_notice'];
     } else {
         $copyright = $copyright . $config['iptcSepChar'] . $iptc['copyright_notice'];
     }
 }
 $dateAdded = gmt_date();
 // Get date added to library
 if ($original) {
     // Find correct license
     $license = $originalLicense;
 } else {
     $license = 'nfs';
 }
 $approvalStatus = $_SESSION['member']['membershipDetails']['approval'] ? 1 : 0;
 // Check the approval status
 if ($approvalStatus) {
     $approvalDate = $nowGMT;
 }
 $cleanOriginalPrice = $cleanCurrency->currency_clean($originalPrice);
 // Insert into the database
 $sql = "INSERT INTO {$dbinfo[pre]}media (\r\n\t\t\t\t\t\t\tumedia_id,\r\n\t\t\t\t\t\t\towner,\r\n\t\t\t\t\t\t\twidth,\r\n\t\t\t\t\t\t\theight,\r\n\t\t\t\t\t\t\tdate_added,\r\n\t\t\t\t\t\t\tdate_created,\r\n\t\t\t\t\t\t\tfilesize,\r\n\t\t\t\t\t\t\tfilename,\r\n\t\t\t\t\t\t\tofilename,\r\n\t\t\t\t\t\t\tfile_ext,\r\n\t\t\t\t\t\t\tfolder_id,\r\n\t\t\t\t\t\t\tbatch_id,\r\n\t\t\t\t\t\t\tlicense,\r\n\t\t\t\t\t\t\trm_license,\r\n\t\t\t\t\t\t\tquantity,\r\n\t\t\t\t\t\t\tprice,\r\n\t\t\t\t\t\t\tsortorder,\r\n\t\t\t\t\t\t\tcredits,\r\n\t\t\t\t\t\t\tactive,\r\n\t\t\t\t\t\t\tdsp_type,\r\n\t\t\t\t\t\t\tmodel_release_status,\r\n\t\t\t\t\t\t\tcopyright,\r\n\t\t\t\t\t\t\tusage_restrictions,\r\n\t\t\t\t\t\t\tapproval_status,\r\n\t\t\t\t\t\t\tapproval_date";