コード例 #1
0
         $reqblah = trim($_REQUEST[$blah]);
         if (!empty($reqblah)) {
             $DBarray[$value] = MakeSafe($reqblah);
         }
     }
     # Set static info
     $DBarray['user_attached'] = $Subscriber_ID;
     $DBarray['resp_attached'] = $Responder_ID;
     $DBarray['email_attached'] = $Search_EmailAddress;
     # Update the data
     if (is_numeric($Subscriber_ID)) {
         $where = "user_attached = '{$Subscriber_ID}'";
     } else {
         $where = "resp_attached = '{$Responder_ID}' AND email_attached = '{$Search_EmailAddress}'";
     }
     DB_Update_Array($infrespcustomfields, $DBarray, $where);
     # MOD set message
     $_SESSION['inf_resp'] = "Custom Fields Updated.";
     $action = "edit_users";
     # Done!
     // print "<br> \n";
     // print "<font size=\"4\" color=\"#666666\">Custom fields changed!</font><br>\n";
     # Back button
     // print "<br> \n";
     // $return_action = "edit_users";
     // include('templates/back_button.admin.php');
 } elseif ($action == "custom_codeit") {
     # Code-it template
     $display_it = TRUE;
     $return_action = "Form_Gen";
     include 'templates/back_button.admin.php';
コード例 #2
0
     }
 }
 if (!is_numeric($form['add_sub_size'])) {
     $form['add_sub_size'] = 5;
 }
 if (!is_numeric($form['subs_per_page'])) {
     $form['subs_per_page'] = 25;
 }
 if (!is_numeric($form['last_activity_trim'])) {
     $form['last_activity_trim'] = 6;
 }
 if ($form['last_activity_trim'] > 120) {
     $form['last_activity_trim'] = 0;
 }
 # Save the data
 DB_Update_Array($infrespconfig, $form);
 # Grab the new data
 $query = "SELECT * FROM " . $infrespconfig;
 $result = mysql_query($query) or die("Invalid query: " . mysql_error());
 $config = mysql_fetch_assoc($result);
 # Prep the data
 $max_send_count = $config['max_send_count'];
 $last_activity_trim = $config['last_activity_trim'];
 $charset = $config['charset'];
 # MOD Save new Wordpress Mailer Options
 update_option('inf_resp_mailer', $_REQUEST['inf_resp_mailer']);
 update_option('inf_resp_word_wrap', $_REQUEST['inf_resp_word_wrap']);
 update_option('inf_resp_signature', $_REQUEST['inf_resp_signature']);
 update_option('inf_resp_address', $_REQUEST['inf_resp_address']);
 update_option('inf_resp_embed_images', $_REQUEST['inf_resp_embed_images']);
 update_option('inf_resp_image_url', $_REQUEST['inf_resp_image_url']);
コード例 #3
0
     }
     if ($form['deletelevel'] != 0 && $form['deletelevel'] != 2) {
         $form['deletelevel'] = 1;
     }
     if ($form['notifyowner'] != 1) {
         $form['notifyowner'] = 0;
     }
     # Check for empty addy fields
     if (isEmpty($form['emailaddy'])) {
         $form['emailaddy'] = "user@domain";
     }
     if ($form['emailaddy'] == "user@domain") {
         $form['enabled'] = 0;
     }
     # Update the row
     DB_Update_Array($infrespbouncers, $form, "BouncerID = '{$bouncer_id}'");
     # Done! Take us back...
     // print "<p class=\"big_header\">Bouncer changed!</p>\n";
     inf_resp_message_box('Bouncer updated!');
 } elseif ($action == "do_create") {
     # Grab and clean form data
     $fields = get_db_fields($infrespbouncers);
     foreach ($_REQUEST as $name => $value) {
         $name = strtolower($name);
         if ($fields['hash'][$name] == TRUE) {
             $form[$name] = MakeSafe($value);
         }
     }
     unset($form['bouncerid']);
     # Bounds checking
     if ($form['enabled'] != 1) {