Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.0.8.0
- * @ Author : DeZender
- * @ Release on : 25.09.2017
- * @ Official site : http://DeZender.Net
- *
- */
- function verify_purchase_code($code)
- {
- $code = urlencode( $code );
- $website = str_replace( 'install/', '', $_SERVER['HTTP_REFERER'] );
- $url = 'http://vtcreators.com/license/verify?purchase_code=' . $code . '&domain=' . $_SERVER['HTTP_HOST'] . '&website=' . $website . '&app=vtposter';
- $ch = curl_init( );
- curl_setopt( $ch, CURLOPT_HEADER, 0 );
- curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
- curl_setopt( $ch, CURLOPT_URL, $url );
- $data = curl_exec( $ch );
- curl_close( $ch );
- return json_decode( $data );
- }
- ini_set( 'max_execution_time', 300 );
- if (isset( $_POST )) {
- $host = $_POST['host'];
- $dbuser = $_POST['dbuser'];
- $dbpassword = $_POST['dbpassword'];
- $dbname = $_POST['dbname'];
- $fullname = $_POST['fullname'];
- $email = $_POST['email'];
- $login_password = (($_POST['password'] ? $_POST['password'] : ''));
- $timezone = $_POST['timezone'];
- $purchase_code = $_POST['purchase_code'];
- if (!($host && $dbuser && $dbname && $fullname && $email && $login_password && $purchase_code && $timezone)) {
- echo json_encode( array(
- 'success' => false,
- 'message' => 'Please input all fields.'
- ) );
- exit( );
- }
- if (filter_var( $email, FILTER_VALIDATE_EMAIL ) === false) {
- echo json_encode( array(
- 'success' => false,
- 'message' => 'Please input a valid email.'
- ) );
- exit( );
- }
- $verification = verify_purchase_code( $purchase_code );
- if (!(empty( $verification )) && ($verification->status != 'success')) {
- ..............................................................
- ...............................
- .........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement