Advertisement
Guest User

Untitled

a guest
Oct 14th, 2017
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.0.8.0
  8. * @ Author : DeZender
  9. * @ Release on : 25.09.2017
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function verify_purchase_code($code)
  15. {
  16. $code = urlencode( $code );
  17. $website = str_replace( 'install/', '', $_SERVER['HTTP_REFERER'] );
  18. $url = 'http://vtcreators.com/license/verify?purchase_code=' . $code . '&domain=' . $_SERVER['HTTP_HOST'] . '&website=' . $website . '&app=vtposter';
  19. $ch = curl_init( );
  20. curl_setopt( $ch, CURLOPT_HEADER, 0 );
  21. curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
  22. curl_setopt( $ch, CURLOPT_URL, $url );
  23. $data = curl_exec( $ch );
  24. curl_close( $ch );
  25. return json_decode( $data );
  26. }
  27.  
  28. ini_set( 'max_execution_time', 300 );
  29.  
  30. if (isset( $_POST )) {
  31. $host = $_POST['host'];
  32. $dbuser = $_POST['dbuser'];
  33. $dbpassword = $_POST['dbpassword'];
  34. $dbname = $_POST['dbname'];
  35. $fullname = $_POST['fullname'];
  36. $email = $_POST['email'];
  37. $login_password = (($_POST['password'] ? $_POST['password'] : ''));
  38. $timezone = $_POST['timezone'];
  39. $purchase_code = $_POST['purchase_code'];
  40. if (!($host && $dbuser && $dbname && $fullname && $email && $login_password && $purchase_code && $timezone)) {
  41. echo json_encode( array(
  42. 'success' => false,
  43. 'message' => 'Please input all fields.'
  44. ) );
  45. exit( );
  46. }
  47.  
  48. if (filter_var( $email, FILTER_VALIDATE_EMAIL ) === false) {
  49. echo json_encode( array(
  50. 'success' => false,
  51. 'message' => 'Please input a valid email.'
  52. ) );
  53. exit( );
  54. }
  55.  
  56. $verification = verify_purchase_code( $purchase_code );
  57.  
  58. if (!(empty( $verification )) && ($verification->status != 'success')) {
  59. ..............................................................
  60. ...............................
  61. .........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement