/*############################
php ile cpanelden bandwidth kontrol
xxxxxx
yardım : xxxxxx
mysql/cpanel-bandwidth-kontrol.html
############################*/
$kullaniciadi = "kullaniciadi"; // cpanel kullanıdı adı
$sifre = "sifre"; // cpanel sifreniz
$domain = "domain"; // cpanel domain adı
$theme = "x"; // cpanel theme
ini_set("display_errors", "0");
$file = file_get_contents("http://$kullaniciadi:$sifre@$domain:2082/frontend/$theme/index.html") or die("critical error, ayarları kontrol ediniz");
$string1 = strpos($file, "bandwidth (this month)");
$file = substr($file,$string1);
$string2 = strpos($file, "megabytes");
$length = strlen($file);
$take = $length - $string2;
$finally = substr($file,0,-$take);
$number = explode("", $finally); $number = explode(" ",$number[1]); $bandwidth = $number[0];
echo $bandwidth;
?>
Top
|
0 yorum:
Yorum Gönder