<?php session_start(); //start session include 'api_pavietnam/api_config.php'; include 'config.php'; include 'functions.php'; /*INFO*/ $cmd = isset($_GET['cmd']) ? $_GET['cmd'] : 'check_whois'; #cmd $domain = isset($_GET['domain']) ? $_GET['domain'] : ''; #domain name if ($cmd && valid_domain($domain)) { ##check_whois if ($cmd == 'check_whois') { $result = file_get_contents(API_URL . "?username="******"&apikey=" . API_KEY . "&cmd={$cmd}&domain=" . $domain); //Gọi link thực thi thật $output['domain'] = $domain; //domain name if (isset($_POST['name'])) { $output['name'] = $_POST['name']; } else { $t = explode('.', $domain); $output['name'] = reset($t); $output['tld'] = str_replace($output['name'] . '.', '', $domain); //extract into tld } if (isset($_POST['tld'])) { $output['tld'] = $_POST['tld']; } if ($result == '0') {
* easyPress Console Proxy * Version: 1.0 * * Use transients to store web stats for 15 min * */ if (!isset($_POST['do'])) { process_errors("easypress-console-proxy accessed with no do POST argument\n", true); } if (!isset($_POST['domain'])) { process_errors("easypress-console-proxy accessed with no domain POST argument\n", true); } if (!isset($_POST['api_key'])) { process_errors("easypress-console-proxy accessed with no api_key POST argument\n", true); } if (!valid_domain($_POST['domain'])) { process_errors("easypress-console-proxy: The domain supplied is invalid", true); } $do = $_POST['do']; $all_errors = array(); $domain = $_POST['domain']; $api_key = $_POST['api_key']; // check for ssl_state POST argument if ('wpadmin_ssl' == $do) { if (isset($_POST['ssl_state'])) { $ssl_state = $_POST['ssl_state']; } else { process_errors("easypress-console-proxy: wpadmin_ssl error. No ssl_state argument provided. Domain is {$domain}.", true); } } // check for edits POST argument