Ejemplo n.º 1
0
     // include('templates/back_button.responders.php');
 } elseif ($action == "do_update") {
     if (!ResponderExists($Responder_ID)) {
         admin_redirect();
     }
     $Resp_Name = MakeSemiSafe($_REQUEST['Resp_Name']);
     $Resp_Desc = MakeSemiSafe($_REQUEST['Resp_Desc']);
     $Reply_To = MakeSafe($_REQUEST['Reply_To']);
     $Owner_Name = MakeSafe($_REQUEST['Owner_Name']);
     $Owner_Email = MakeSafe($_REQUEST['Owner_Email']);
     $OptMethod = MakeSafe($_REQUEST['OptMethod']);
     $OptInRedir = MakeSafe($_REQUEST['OptInRedir']);
     $OptOutRedir = MakeSafe($_REQUEST['OptOutRedir']);
     $OptInDisp = myaddslashes($_REQUEST['OptInDisplay']);
     $OptOutDisp = myaddslashes($_REQUEST['OptOutDisplay']);
     $NotifyOwner = MakeSemiSafe($_REQUEST['NotifyOwner']);
     if ($OptMethod != "Double") {
         $OptMethod = "Single";
     }
     if ($NotifyOwner != "1") {
         $NotifyOwner = "0";
     }
     $query = "UPDATE " . $infresponders . "\n\t\t\tSET Name = '{$Resp_Name}',\n\t\t\tResponderDesc = '{$Resp_Desc}',\n\t\t\tOwnerEmail = '{$Owner_Email}',\n\t\t\tOwnerName = '{$Owner_Name}',\n\t\t\tReplyToEmail = '{$Reply_To}',\n\t\t\tOptMethod = '{$OptMethod}',\n\t\t\tOptInRedir = '{$OptInRedir}',\n\t\t\tOptOutRedir = '{$OptOutRedir}',\n\t\t\tOptInDisplay = '{$OptInDisp}',\n\t\t\tOptOutDisplay = '{$OptOutDisp}',\n\t\t\tNotifyOwnerOnSub = '{$NotifyOwner}'\n\t\t\tWHERE ResponderID = '{$Responder_ID}'";
     $DB_result = mysql_query($query) or die("Invalid query: " . mysql_error());
     # MOD set message and return to list
     $_SESSION['inf_resp_msg'] = "Responder Saved!";
     $action = "list";
     # Done!
     // print "<H3 style=\"color : #003300\">Responder Saved!</H3> \n";
     // print "<font size=4 color=\"#666666\">Return to list. <br></font> \n";
     # Print back button
Ejemplo n.º 2
0
     }
     # Update Responder MsgList with new list string.
     $query = "UPDATE " . $infresponders . " SET MsgList = '{$Update_MsgList}' WHERE ResponderID = '{$Responder_ID}'";
     $DB_result = mysql_query($query) or die("Invalid query: " . mysql_error());
     # MOD set message and return to list
     $_SESSION['inf_resp_msg'] = "Message Added!";
     $action = "list";
     # Done!
     // print "<H3 style=\"color : #003300\">Message added!</H3> \n";
     // print "<font size=4 color=\"#666666\">Return to list. <br></font> \n";
     # Print back button
     // $return_action = "update";
     // include('templates/back_button.messages.php');
 } elseif ($action == "do_update") {
     # Prep the data
     $P_subj = MakeSemiSafe($_REQUEST['subj']);
     # MOD removed MakeSemiSafe filter - ruining mails!
     // $P_bodytext = MakeSemiSafe($_REQUEST['bodytext']);
     // $P_bodyhtml = MakeSemiSafe($_REQUEST['bodyhtml']);
     $P_bodytext = trim($_REQUEST['bodytext']);
     $P_bodyhtml = trim($_REQUEST['bodyhtml']);
     # echo "******************";
     # print "bodyhtml: $P_bodyhtml <br>\n";
     # echo "******************";
     $img_bodyhtml = stripslashes($P_bodyhtml);
     if (get_option('inf_resp_embed_images') == 'yes') {
         $pattern = '/<*img[^>]*src *= *["\']?([^"\']*)/i';
         preg_match_all($pattern, $img_bodyhtml, $images);
         $imgsrcs = $images[1];
         array_unique($imgsrcs);
         echo "<b>" . count($imgsrcs) . " images found for embedding...</b><br><br>";