Advanced Domain Manager php script

August 25th, 2010 Script Posted in PHP script No Comments » 87 views

Advanced domain manager is client and domain management tool which will help you to never forget about upcoming domain name renewal. Adjustable cron script allows to set notifications for any amount of days, even if you want script to remind you about renewals due in 5, 10, 20, X days, this can be easily achieved. Reminders are sent to admin email address which can be edited in script settings screen. Script has database management tool which will allow you to backup/restore script database and also your clients hosted databases (if clients database is on the same server as your script.) Script requires PHP5 and MySQL database to work and comes with updated WHOIS script!

Features:

- automatic reminders to email (cron)
- password protected administration area
- store as much domain names as you need
- manage clients and their domains
- manage ftp/mysql/webmail/cpanel/ any other important info per domain, and never loose it again!
- quickest ever installation (just edit 4 variables in includes/dbconnect.php file) and launch install.php from your browser!
- auto-whois domain registration/expiration dates and registrar!
- update all domains in your database with 1 click (registrar, expiry/reg info)
- easily create custom cron-email notifications! (hosting must support cron!)
- Easy database backup and restore.
- One-Click client hosted database backup
- Updated php-whois script, new registrars and domain names supported.

CRON setup

Customizable cron script which accepts “days=num_of_days” parameter so you can set multiple cron jobs with different number of days for notifications (for example setting up 3 cron tasks with 3 parameters days=30, days=60, days=90 will send you notifications regarding domain name expiring in 30,60,90 days) – hosting account must have ability to set CRON tasks in order for this feature to work. If you don’t have such ability in your hosting account , script can be run manually by URL , it still will work and send you notice (manually).

Demo Username/Password: admin / pass

Scheduled updates

- automatic database backup (CRON) scheduled in next update.
- .fr .nl .au whois renewal date fix.

Updates/Change Log

  • 28 Feb 2010 – v1.0 released.
  • 28 Feb 2010 – .fr error fix (.fr renewal from whois will be updated later) + security issue fix update available
AddThis Social Bookmark Button

[PHP] SMS free script

March 21st, 2010 Script Posted in PHP script 2 Comments » 524 views

  1. Copy and paste >>> Save as name ex.php.
  2. Upload.
  3. Your hosting has to support CURL
  4. Finally, Its working well.
  1. <title>Free Sms</title>
  2. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  3. </meta><meta HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
  4.  
  5. if (substr_count($_SERVER[‘HTTP_ACCEPT_ENCODING’], ‘gzip’)) ob_start(‘ob_gzhandler’);
  6. else ob_start();
  7. ################# CONFIG ################
  8. $config[‘proxy’] = ;
  9. $config[‘proxy_port’] = ;
  10. $config[‘useragent’] = ‘Mozilla/5.0 (iPhone,U; CPU iPhone OS 2_2_1 like Mac OS X; en-us) AppleWebKit/525.18.1 (KHTML, like Gecko) version/3.1.1 Mobile/5H11 Safari/525.20′; /// Iphone 2.21
  11. ########################################
  12. ################# RE-CONFIG ################
  13. $config[‘file’] = substr(strrchr($_SERVER[‘SCRIPT_FILENAME’], ‘/’), 1);
  14. $config[‘cookie_file’] = str_replace(‘.php’,‘.txt’,$config[‘file’]);
  15. if(!file_exists($config[‘cookie_file’])){
  16.         $fp = @fopen($config[‘cookie_file’],‘w’);
  17.         @fclose($fp);
  18. }
  19. #########################################
  20. ################# FUNCTION ################
  21. function curl($url=,$var=){
  22.         global $config;
  23.         $curl = curl_init();
  24.         if (isset($config[‘proxy’])) {
  25.                 curl_setopt($curl, CURLOPT_HTTPPROXYTUNNEL, true);
  26.                 curl_setopt($curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
  27.                 curl_setopt($curl, CURLOPT_PROXY, $config[‘proxy’]);
  28.                 curl_setopt($curl, CURLOPT_PROXYPORT, $config[‘proxy_port’]);
  29.         }
  30.         curl_setopt($curl, CURLOPT_URL, $url);
  31.         curl_setopt($curl,CURLOPT_CONNECTTIMEOUT,20);
  32.         curl_setopt($curl, CURLOPT_USERAGENT, $config[‘useragent’]);
  33.         curl_setopt($curl, CURLOPT_REFERER, "http://for-ever.us/");
  34.         if($var) {
  35.                 curl_setopt($curl, CURLOPT_POST, true);
  36.                 curl_setopt($curl, CURLOPT_POSTFIELDS, $var);
  37.         }
  38.         curl_setopt($curl, CURLOPT_COOKIEFILE,$config[‘cookie_file’]);
  39.         curl_setopt($curl, CURLOPT_COOKIEJAR,$config[‘cookie_file’]);
  40.         curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 3);
  41.         curl_setopt ($curl, CURLOPT_HEADER, 0);
  42.         curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
  43.         curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  44.         curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
  45.         $result = curl_exec($curl);
  46.         curl_close($curl);
  47.         return $result;
  48. }
  49. ######################################################
  50. ########### MAIN CODE ################################
  51. if($_POST[’submit’]){
  52.         $url = ‘http://for-ever.us/’;
  53.         $var = "&phonenumber={$_POST[to]}&submit_btn=send&message={$_POST[mess]}&verify={$_POST[verify]}";
  54.         $result = curl($url,$var);
  55.         if(preg_match(‘/has been sent/i’,$result))
  56.         echo ‘Your messenge has been sent.<a href="/?">Click here >> Back to send</a>’;
  57.         else ‘Your message can not send. Try again later.’;
  58. }else{
  59.         $get = curl(‘http://for-ever.us/’);
  60.         preg_match(‘#title="Click to change."  src="(.*?)"#s’,$get,$arr);
  61.         $img = ‘http://for-ever.us/’.$arr[1];
  62.         $get_img = curl($img);
  63.         $random = mt_rand().‘.gif’;
  64.         $fp = @fopen($random,‘w’);
  65.         @fwrite($fp,$get_img);
  66.         @fclose($fp);
  67.         print(‘<form action="’.$config[‘file’].‘" method="post">’);
  68.         print(‘<font color=red>Please, correct form numbers below: Zipcode Country +numbers. </font><br />Example: +84(98744-VN) – +01(874522-US)<br />’);
  69.         print(‘Send to: <input type="text" size="25" maxlength="25" name="to" /><br />’);
  70.         print(‘Message: <textarea name="mess" cols="45" rows="5"></textarea><br />’);
  71.         print(‘Captcha: <input type="text" size="5" maxlength="10" name="verify" /><img height="30px" src="’.$random.‘" border="0" /><br />’);
  72.         print(‘<input name="submit" value="Send now" type="submit" />’);
  73.         print(‘</form>’);
  74. }
  75. </meta>
AddThis Social Bookmark Button

PHP Redirect To Another URL / Page Script

February 26th, 2010 Script Posted in PHP script No Comments » 39 views

Using headers() method, you can easily transferred to the new page without having to click a link to continue. This is also useful for search engines. Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. It is a very common error to read code with include(), or require(), functions, or another file access function, and have spaces or empty lines that are output before header() is called. The same problem exists when using a single PHP/HTML file.

You can easily redirect using following code: PHP Redirect Script

<? /* Redirect browser */
header(“Location: http://www.w3code.net”);
/* Make sure that code below does not get executed when we redirect. */
exit;
?>

Sample function – sitefunctions.php (note I’m not the author of the following I found it somewhere else on the Internet):

<? function movePage($num,$url){
static $http = array (
100 => “HTTP/1.1 100 Continue”,
101 => “HTTP/1.1 101 Switching Protocols”,
200 => “HTTP/1.1 200 OK”,
201 => “HTTP/1.1 201 Created”,
202 => “HTTP/1.1 202 Accepted”,
203 => “HTTP/1.1 203 Non-Authoritative Information”,
204 => “HTTP/1.1 204 No Content”,
205 => “HTTP/1.1 205 Reset Content”,
206 => “HTTP/1.1 206 Partial Content”,
300 => “HTTP/1.1 300 Multiple Choices”,
301 => “HTTP/1.1 301 Moved Permanently”,
302 => “HTTP/1.1 302 Found”,
303 => “HTTP/1.1 303 See Other”,
304 => “HTTP/1.1 304 Not Modified”,
305 => “HTTP/1.1 305 Use Proxy”,
307 => “HTTP/1.1 307 Temporary Redirect”,
400 => “HTTP/1.1 400 Bad Request”,
401 => “HTTP/1.1 401 Unauthorized”,
402 => “HTTP/1.1 402 Payment Required”,
403 => “HTTP/1.1 403 Forbidden”,
404 => “HTTP/1.1 404 Not Found”,
405 => “HTTP/1.1 405 Method Not Allowed”,
406 => “HTTP/1.1 406 Not Acceptable”,
407 => “HTTP/1.1 407 Proxy Authentication Required”,
408 => “HTTP/1.1 408 Request Time-out”,
409 => “HTTP/1.1 409 Conflict”,
410 => “HTTP/1.1 410 Gone”,
411 => “HTTP/1.1 411 Length Required”,
412 => “HTTP/1.1 412 Precondition Failed”,
413 => “HTTP/1.1 413 Request Entity Too Large”,
414 => “HTTP/1.1 414 Request-URI Too Large”,
415 => “HTTP/1.1 415 Unsupported Media Type”,
416 => “HTTP/1.1 416 Requested range not satisfiable”,
417 => “HTTP/1.1 417 Expectation Failed”,
500 => “HTTP/1.1 500 Internal Server Error”,
501 => “HTTP/1.1 501 Not Implemented”,
502 => “HTTP/1.1 502 Bad Gateway”,
503 => “HTTP/1.1 503 Service Unavailable”,
504 => “HTTP/1.1 504 Gateway Time-out”
);
header($http[$num]);
header (“Location: $url”);
}Now call it as follows:@include(“/path/to/sitefunctions.php”);
movePage(403,”http://www.cyberciti.biz/”);
?>
AddThis Social Bookmark Button

Check IP and IP Address Redirect

January 26th, 2010 Script Posted in How to, Java script, Others, PHP script No Comments » 17 views

I’m working on an intranet where the ip addresses for each section of the company is different and would like a different webpage shown depending on the ipaddress of the computer.

Simple like this in PHP:

<?// Get the IP Address
$ip = $_SERVER['REMOTE_ADDR'];// Find redirect needed for that IP… Change the IP addresses.. you can add as many as possible just copy the same format…
switch( $ip )
{
case 82.994.003.22:
$redirect = ’page1.htm’;
break;case 82.994.003.21:
$redirect = ’page2.htm’;
break;// Default page if IP does not match any of the IPs listed..
default:
$redirect = ’defaultpage.htm’;
}

// Now redirect to that page..
header(‘location: $redirect’);
?>

Simple like this in ASP:

<% myIP = Request.ServerVariables(“REMOTE_ADDR”)SELECT CASE myIP
CASE “123.25.25.1″
‘DO SOMETHING
Response.Redirect (page1.asp)
CASE “”
.
.
.
CASE ELSE
Response.Write “UnAuthorized Access”
Response.End
END SELECT
%>

Hopefully it should work.. Just something I thought up..

AddThis Social Bookmark Button

Different ways to redirect visitors to any URL

January 26th, 2010 Script Posted in PHP script No Comments » 33 views

URL redirection can be used for many purposes. Maybe you have just moved the content of a webpage to another webpage or domain and you want to redirect the frequent visitors of your website to the new webpage automatically. The knowledge of technique of redirecting URL is also useful if you want to shorten a long affiliate URL.

Below are several ways you can use to redirect visitors to any URL you want:

- Using Meta Tag — The tag for doing it is:

Just put the tag above between the HEAD and /HEAD tags in a webpage. That way, when someone visits the webpage that contains the tag, he will be redirected to destination.html automatically. Don’t forget to include the “http” protocol which has been omitted.

In order to find out how many visitors have been redirected you may try to replace the destination URL with a tracking URL.

- Using PHP code — In PHP, “Header” is a built-in function that is often used to accomplish this task. This function can be used to redirect visitors depending on a specific condition. For instance, you can use this function to redirect someone to a webpage after submitting his correct username and password.

Here is the code:

header(“Location: http://www.w3code.net/destination.php”);

Keep in mind that you have to save the file with .php extension in order to make it works.

- Using the redirect URL facility from your hosting service
Many web hosting services provide a facility that you can use to redirect pages of your site to any url you want. This way, you only have to fill the source and the destination URL in a blank form and hit the submit button.

- .htaccess — You can also use your .htaccess file for this purpose as long as the hosting company you are using allows you to access this file. The code below will redirect visitors from oldpage.html to newpage.html.

Redirect /var/www/w3code.net/newpage.php

Just put the code in your .htaccess file.

Now, how if you want to display a URL without using .html or .php extension? First, put the Meta Tag or the PHP code above in a file and name it as index.html or index.php. Then create a subdomain and upload the file into it. When someone visits the subdomain, he will be redirected to the destination URL.

There are actually other techniques of redirecting URL with different advantages and disadvantages. For instance, with Domain Forwarding you can forward your domain name to a URL. Domain Masking that looks similar with Domain Forwarding can hide a URL with your own domain name so the real URL will not be displayed in the address bar of your visitor’s browser.

Whatever technique of url redirect you intend to use, always choose the one that would best fit your needs.

AddThis Social Bookmark Button

Multi-User File Manager & Uploader with Progress Bar

September 19th, 2009 Script Posted in Java script, PHP script 1 Comment » 338 views

FileChucker is an AJAX-based web application that lets you accept file uploads on your own website. It’s simple to install (just one file), packed with features, fully configurable, nice looking, and very handy for when you want to share files with anyone. And during uploads FileChucker shows a progress bar & table, so the user knows how much time is left before the upload is complete.

FileChucker can also function as a full-fledged online file manager for your server: it can allow moving/renaming/deleting of uploaded files & folders right in the browser. Of course these features are configurable and password-protectable so you can customize FileChucker however you’d like.

To top it all off, FileChucker works in all major browsers (Moz/FF, IE, Opera, Safari), and runs on virtually any server, with no programming required! It’s a single Perl script, and most servers support Perl CGI scripts automatically; for the rare server that doesn’t, Perl can usually be easily added. If your site is more of a PHP site, don’t worry: FileChucker will run just fine alongside your PHP scripts, and you can even integrate it into your existing framework with a PHP virtual() call, if you want to!

Download now

AddThis Social Bookmark Button

PHP Firewall Script 2009

September 19th, 2009 Script Posted in PHP script No Comments » 209 views

Do you worry about your site’s security? Has your site ever been hacked? Worry no more! FireWall Script is a PHP-based configurable firewall. Once installed, you can configure what mischievous things you want to be on the lookout for and let FireWall Script do the rest. With the logging functionality included, you can also go back and see if anyone is attempting to sidestep your rules and stay ahead of the game. Install FireWall Script, stop worrying about your site’s security, and start worrying about your site. Our software now has premade rule packs for most popular pieces of software available.

firewall-script

  1. It supports every PHP/MySQL script in existence
    That means all forums, Blogs, Custom Scripts or anything else you can think of is covered.
  2. Only one edit required to install.
    You can install by performing just one file edit. Or if you prefer, use a .htaccess file to automatically load FWS on every page and forget file edits altogether!
  3. 100% protection guaranteed
    When properly configured, FWS can block any attacks on your site, guaranteed.

Download now

AddThis Social Bookmark Button

Php youtube grabber

September 19th, 2009 Script Posted in PHP script No Comments » 293 views

Create a file index.php and upload it on your server. Run it for testing :) ).

<html>
<head>
<title>YouTube Ripper</title>
<style>
body, a, a:link, a:visited, a:hover, td {
font-family: verdana, sans-serif;
font-size: 8pt;
color: black;
}
a { font-weight: bold; }
input {
font-family: verdana, sans-serif;
font-size: 8pt;
border: black 2px solid;
padding: 2px;
}
#vid {
width: 500px;
}
</style>
</head>
<body>
<center>
<h1>Youtube ripper</h1>
<a href=’index.php’>Home</a>
<form action=”get.php” method=”get” target=”ifr”>
Video URL : <input id=”vid” type=”text” name=”vid” />
<select name=”mode”>
<option value=”1″>Just Give link</option>
<option value=”2″>Mirror and give link</option>
</select>
<input type=”submit” value=”Go!” />
</form>
<table width=”500″><tr><td>TOS: <br />Please do not use this to obtain illegal files hosted on youtube. <br />Mirrors are automatically cleared by the webmaster
frequently, so be sure to download before this happens. <br />The webmaster has the right to ban you from this server via I.P. address,
ISP, or anything else. <br />This is provided As-is, so if there are any bugs, or it doesn’t work for you, live with it, we will
try to fix any bugs so email us. <br />We are in no way affiliated with YouTube or any of their affiliates.<br />By using our
service you must agree to these terms.</td></tr></table>
<iframe width=”500″ frameborder=0 name=”ifr” id=”ifr”></iframe>
</center>
</body>
</html>

create a file get.php

<html>
<head>
<title>YouTube Ripper</title>
<style>
body, a, a:link, a:visited, a:hover {
font-family: verdana, sans-serif;
font-size: 8pt;
}
input {
font-family: verdana, sans-serif;
font-size: 8pt;
border: black 2px solid;
padding: 2px;
}
#vid {
width: 500px;
}
</style>
</head>
<body>
<?php

set_time_limit(‘31337′);

// gettube youtube leecher

$regExpPattern = ‘/\”t\”\: \”([^\"\s]+)\”/i’;

$fData = file_get_contents($_GET['vid']);

preg_match($regExpPattern, $fData, $Params);

//print_r($Params);

$tID = $Params[1];

$vIDS = explode(‘?v=’,$_GET['vid']);

$vID = $vIDS[1];

echo “<a href=’http://www.youtube.com/get_video?video_id=$vID&t=$tID’>Download Video</a> <br />This is a FLV file, so rename it to whatever.flv, and open with an FLV player.”;

if($_GET['mode']==2) {

$regExpPattern = ‘/content\=\”([^\"\']+)\”/i’;

preg_match($regExpPattern, $fData, $Params);

$flName = $Params[1];

$flName = preg_replace(“/[^a-zA-Z0-9s]/”, “_”, $flName);

srand((double)microtime()*1000000);
$flName = rand(0,100).$flName;

//die($flName);

$flData = file_get_contents(“http://www.youtube.com/get_video?video_id=$vID&t=$tID”);

$fp = fopen(“$flName.flv”,”w”);
fwrite($fp,$flData);
fclose($fp);

echo “<br /><a href=’$flName.flv’>Download (mirror)</a>”;

}

?>
</body>
</html>

AddThis Social Bookmark Button

Scraping websites with PHP cURL under proxy

September 18th, 2009 Script Posted in PHP script 1 Comment » 485 views

Scraping websites with PHP cURL is damn easy. Just do it the right way – use a proxy. Here is a simple function that does the job.

Simple PHP cURL scraper:

  1. &lt;?php function getPage($proxy, $url, $referer, $agent, $header, $timeout) {$ch = curl_init();
  2.  
  3. curl_setopt($ch, CURLOPT_URL, $url);
  4.  
  5. curl_setopt($ch, CURLOPT_HEADER, $header);
  6.  
  7. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  8.  
  9. curl_setopt($ch, CURLOPT_PROXY, $proxy);
  10.  
  11. curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
  12.  
  13. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
  14.  
  15. curl_setopt($ch, CURLOPT_REFERER, $referer);
  16.  
  17. curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  18.  
  19. $result[‘EXE’] = curl_exec($ch);
  20.  
  21. $result[‘INF’] = curl_getinfo($ch);
  22.  
  23. $result[‘ERR’] = curl_error($ch);
  24.  
  25.  
  26. return $result;
  27.  
  28. }
  29.  
  30. ?&gt;

PHP cURL functions used:

  • curl_init – initializes a cURL session.
  • curl_setopt – sets and option for a cURL transfer.
  • curl_exec – performs a cURL session.
  • curl_getinfo – gets information about the last transfer.
  • curl_error – returns a string containing the last error for the current session.
  • curl_close – close a cURL session.

curl_setopt options used:

  • CURLOPT_URL – the URL to scrap.
  • CURLOPT_HEADER – inlude/exclude the header?
  • CURLOPT_RETURNTRANSFER – return the transfer as a string or output it out directly? Use 1, i.e. return.
  • CURLOPT_PROXY – the HTTP proxy to tunnel request through.
  • CURLOPT_HTTPPROXYTUNNEL – tunnel through a given HTTP proxy? Use 1, i.e. tunnel.
  • CURLOPT_CONNECTTIMEOUT – it’s obvious.
  • CURLOPT_REFERER – header to be used in a HTTP request.
  • CURLOPT_USERAGENT – “User Agent:” to be used in a HTTP request.

Scraper usage:

  1. &lt; ?php
  2. $result = getPage(
  3. ‘[proxy IP]:[port]‘, // use valid proxy
  4. ‘http://www.google.com/search?q=twitter’,
  5. ‘http://www.google.com/’,
  6. ‘Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8′,1,5);if (empty($result[‘ERR’])) {
  7.  
  8. // Job’s done! Parse, save, etc.
  9.  
  10. // …
  11.  
  12. } else {
  13.  
  14. // WTF? Captcha or network problems?
  15.  
  16. // …
  17.  
  18. }
  19.  
  20. ?&gt;

Note: Activate cURL in php.ini if required.

AddThis Social Bookmark Button

Checking proxy script

September 18th, 2009 Script Posted in PHP script No Comments » 428 views

Finally, the last part of the post. Get ready for some “serious” programming.

  1. Include whatismyip.php. Don’t forget to specify URL.
  2. Copy getPage function to proxychecker.php or include it as a file.
  3. Specify a time limit.
  4. Write getProxies() function.
  5. Write deleteProxy($proxy) function.
  6. Specify badvars.php URL.
  7. Specify sleep intervals.
  8. Test and fix proxychecker.php. You don’t need to upload the script to a server. You can use your PC for testing.
  9. Deploy the script. Don’t use the same host for badvars.php and proxychecker.php.
  1. &lt;?php
  2. /*
  3. * TODO 1
  4. * Include whatismyip.php. Don’t forget to specify URL.
  5. *//*
  6. * TODO 2
  7. * Copy getPage (http://www.fromzerotoseo.com/scraping-websites-php-curl-proxy/)
  8. * here or include it as a file.
  9. */set_time_limit(/* TODO 3 specify a time limit */);function getProxies() {
  10. /*
  11. * TODO 4
  12. * Load proxies from a file or database.
  13. * Return array of [IP]:[port] proxies or NULL.
  14. */
  15. }function deleteProxy($proxy) {
  16. /*
  17. * TODO 5
  18. * Delete $proxy from file/database or
  19. * mark as ‘bad’.
  20. */
  21. }
  22.  
  23. $whatIsMyIp = new WhatIsMyIp();
  24. $myIpAddress = $whatIsMyIp-&gt;getServerIpAddress();
  25. if (empty($myIpAddress)) {
  26. echo("Can’t obtain IP address\n");
  27. exit();
  28. }
  29.  
  30. $proxies = getProxies();
  31. if (empty($proxies)) {
  32. echo("Can’t load proxies\n");
  33. exit();
  34. }
  35.  
  36. foreach ($proxies as $proxy) {
  37. $result = getPage(
  38. $proxy,
  39. /*
  40. * TODO 6
  41. * Specify badvars.php URL
  42. */,
  43. ‘http://www.google.com/’,
  44. ‘Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8′,
  45. 1,
  46. 5);
  47.  
  48. if (empty($result[‘ERR’])) {
  49. if (preg_match("/" . $myIpAddress . "/", $result[‘EXE’])) {
  50. deleteProxy($proxy);
  51. } else {
  52. /*
  53. * Good proxy!
  54. */
  55. }
  56. } else {
  57. echo($result[‘ERR’] . ‘\n’);
  58. deleteProxy($proxy);
  59. }
  60.  
  61. sleep(rand(/* TODO 7 [int] */, /* [int] */));
  62. }
  63. ?&gt;
AddThis Social Bookmark Button