-
Notifications
You must be signed in to change notification settings - Fork 4
/
ReWriter.php
50 lines (35 loc) · 1.12 KB
/
ReWriter.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
function rewriter_api($text,$quality=null, $pass)
{
isset( $quality ) ? $quality : 'Regular';
if(isset($text) && isset($quality) && isset($pass))
{
$email = '[email protected]';
$ua = $_SERVER['HTTP_USER_AGENT'];
$data = "s=$text&";
$data .= "quality=$quality&";
$data .= "email=$email&";
$data .= "pass=$pass&output=json";
//curl_setopt ($ch, CURLOPT_POSTFIELDS, "");
$url = 'http://wordai.com/users/regular-api.php';
$text = urlencode($text);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_USERAGENT, $ua);
$result = curl_exec($ch);
curl_close ($ch);
return stripslashes($result);
}
else
{
return 'Error: Not All Variables Set!';
}
}
?>
<?php
//The variable quality can currently be 'Regular', 'Unique', 'Very Unique', 't', or 'Very Readable'
echo rewriter_api("Hotcellphonedeals.com --the best cell phone deals unleashed."),'Unique','PASSW0RD');
?>