/**
  * Prep the email related settings for the database
  *
  * This method is a skeleton method right now and
  * is not used. In the future it will be used to
  * prep the email-ish settings before they're inserted
  * into the database
  */
 public function update_alternate_email($email)
 {
     $settings['alternative_email_list'] = make_alternate_email_to_list($alternate_email_to);
     $settings['custom_email_subject'] = substr(import_var('custom_email_subject', 'P', 'email_subject'), 0, 128);
 }
Beispiel #2
0
             break;
         default:
             // By default error and return if the type
             // is not valid
             echo "fail::specific::{$profile_id}";
             return;
     }
 } else {
     /**
      * Delete the recurrence details if the box was left
      * unchecked. I'm assuming the user meant to say they
      * dont want the scan to recur anymore.
      */
     $stmt4->execute($profile_id);
 }
 $settings['alternative_email_list'] = make_alternate_email_to_list($alternate_email_to);
 $settings['alternative_cgibin_list'] = make_alternate_cgibin_list($alternate_cgibin);
 // Begin code to update the profile_settings table
 foreach ($settings as $key => $val) {
     $sql['update'] .= "{$key} = ':{$count}', ";
     $count += 1;
 }
 $sql['update'] = substr(trim($sql['update']), 0, -1);
 $sql['update'] .= " WHERE username = '******' AND profile_id='{$profile_id}' AND setting_type='user'";
 // Prepare the profile_settings update
 $stmt1 = $db->prepare($sql['update']);
 $stmt1->execute($settings);
 // Update run time in case it has changed
 $stmt5->execute($run_time, $profile_id);
 // Update the plugin list. First, delete all the existing plugins
 $stmt7->execute($profile_id);