array('color' => 'aa0', 'text' => __('Your key has been cleared.')), 'new_key_valid' => array('color' => '2d2', 'text' => __('Your key has been verified. Happy blogging!')), 'new_email_empty' => array('color' => 'aa0', 'text' => __('Your email has been cleared.')), 'new_email_valid' => array('color' => '2d2', 'text' => __('Your email has been verified. Happy blogging!')) ); if ($curl_installed) { if ($key != "" && $email != "") { set_dev_mode(esc_sql($key), esc_sql($email), THIS_DOMAIN, $dev_mode); if ($dev_mode) { $ms[] = 'dev_mode_on'; } else { $ms[] = 'dev_mode_off'; } } $messages['dev_mode_on'] = array('color' => '2d2', 'text' => __('Development mode is On. Happy blogging!')); $messages['dev_mode_off'] = array('color' => 'aa0', 'text' => __('Development mode is Off. Happy blogging!')); } } ?>

You are currently using CloudFlare!

AIO Cache: CloudFlare Settings

?>

To donate, click here.


CloudFlare CDN is a service that makes websites load faster and protects sites from online spammers and hackers.
It takes less than 5 minutes to sign up for a free account.
You can learn more here: CloudFlare.com.


To find your API key, log in to CloudFlare and go to \'Account\'.'), 'https://www.cloudflare.com/my-account.html'); ?>

(Get this?'); ?>)

(Get this?'); ?>)

(What is this?)

> Off > On
You cannot toggle development mode because cURL is not installed for your domain. Please contact a server administrator for assistance with installing cURL.

?>
$comment->comment_author, "am" => $comment->comment_author_email, "ip" => $comment->comment_author_IP, "con" => substr($comment->comment_content, 0, 100)); $url = "/ajax/external-event.html?evnt_v=" . urlencode(json_encode($value)) . "&u=$cloudflare_api_email&tkn=$cloudflare_api_key&evnt_t="; // If spam, send this info over to CloudFlare. if ($status == "spam") { $url .= "WP_SPAM"; $fp = @fsockopen($cf_api_host, $cf_api_port, $errno, $errstr, 30); if ($fp) { $out = "GET $url HTTP/1.1\r\n"; $out .= "Host: www.cloudflare.com\r\n"; $out .= "Connection: Close\r\n\r\n"; fwrite($fp, $out); $res = ""; while (!feof($fp)) { $res .= fgets($fp, 128); } fclose($fp); } } } add_action('wp_set_comment_status', 'cloudflare_set_comment_status', 1, 2); function get_dev_mode_status($token, $email, $zone) { $url = 'https://www.cloudflare.com/api_json.html'; $fields = array( 'a'=>"zone_load", 'tkn'=>$token, 'email'=>$email, 'z'=>$zone ); foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; } rtrim($fields_string,'&'); $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_POST,count($fields)); curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); $result = curl_exec($ch); $result = json_decode($result); curl_close($ch); if ($result->response->zone->obj->zone_status_class == "status-dev-mode") { return "on"; } return "off"; } function set_dev_mode($token, $email, $zone, $value) { $url = 'https://www.cloudflare.com/api_json.html'; $fields = array( 'a'=>"devmode", 'tkn'=>$token, 'email'=>$email, 'z'=>$zone, 'v'=>$value ); foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; } rtrim($fields_string,'&'); $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_POST,count($fields)); curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); $result = curl_exec($ch); $result = json_decode($result); curl_close($ch); } function get_domain($token, $email, $raw_domain) { $url = 'https://www.cloudflare.com/api_json.html'; $fields = array( 'a'=>"zone_load_multi", 'tkn'=>$token, 'email'=>$email ); foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; } rtrim($fields_string,'&'); $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_POST,count($fields)); curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); $result = curl_exec($ch); $result = json_decode($result); curl_close($ch); $zone_count = $result->response->zones->count; if ($zone_count > 0) { for ($i = 0; $i < $zone_count; $i++) { $zone_name = $result->response->zones->objs[$i]->zone_name; if (strpos($raw_domain, $zone_name) !== FALSE){ return $zone_name; } } } return null; } ?>