PluginProbe
Smart Forms – when you need more than just a contact form / trunk
Smart Forms – when you need more than just a contact form vtrunk
trunk 0.5 0.5.5 0.6 0.7 0.8 0.8.5 0.9.1
smart-forms / smart_forms_uploader.php

smart_forms_uploader.php in Smart Forms – when you need more than just a contact form trunk, at smart_forms_uploader.php

22 lines 515 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $data="";
3 if(isset($_POST["data"]))
4 $data= sanitize_text_field(stripslashes($_POST["data"]));
5
6
7 require_once SMART_FORMS_DIR.'utilities/JSONSanitizer.php';
8 $data=RednaoJSONSanitizer::Sanitize(json_decode($data,true),(object)
9 ["formid"=>'',
10 "action"=>''
11 ]);
12
13 foreach($data as $key=>$value)
14 {
15 if($key=='captcha'||$key=='nonce')
16 $_POST[$key]=$value;
17 else
18 $_POST[$key]=addslashes($value);
19 }
20 require_once "smart-forms-ajax.php";
21 rednao_smart_forms_save_form_values();
22