daily pastebin goal
37%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. require_once('../../_base/includes/conf.php'); //this file name may change
  3. require_once('esite/classes/Db.Class.php');
  4. require_once('esite/classes/class.phpmailer.php');
  5. require_once('esite/classes/Mailer.Class.php');
  6. require_once('cdc/classes/RPCClient.Class.php');
  7. require_once('cdc/classes/CDCRPCClient.Class.php');
  8. require_once('cdc/classes/CDCClient.Class.php');
  9.  
  10. /*
  11. begin cdc
  12.  */
  13. $cdc = new CDCClient();
  14. //$cdc->rpc->client->debug=true;
  15. $data = $cdc->fixslashes($_POST);
  16. $data['date_created'] = date('Y-m-d H:i:s');
  17. $data['ds_id'] = 33;
  18. $data['status_id'] = 1;
  19.  
  20. $errors = $cdc->savedata($data, 150, 1018); //data, site_id, form_id
  21. if ((sizeof($errors) > 0) && is_array($errors)) {
  22.     $_SESSION[FORM_SESS]['ARRAY'] = $errors;
  23.     $_SESSION[FORM_SESS]['fields'] = $data;
  24.     ob_clean();
  25.     header("Location: /index.php");
  26.     exit;
  27. } else {
  28.     unset($_SESSION[FORM_SESS]['fields']);
  29.     header("Location: /thanks.php");
  30.     exit;
  31. }
  32.  
  33. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top