- Messages
- 19,181
- Reaction score
- 28
- Points
- 48
http://www.customcf.smfhelp.com/images/x10free.png
cPanel always is offline
Is there something to add there to make it to work.
cPanel always is offline
PHP:
// CPANEL Only port 2082
imagettftext($background, 12, 0, 215, 83, $white, 'arial.ttf', "cPanel:");
$fp = @fsockopen('64.92.165.74', 2082, $errno, $errstr, 3);
if (!$fp){
$data = 'Offline';
$color = $red;
} else {
$data = 'Online';
$color = $green;
}
@fclose($fp);
imagettftext($background, 12, 0, 260, 83, $color, 'arial.ttf', $data);
// HTTP Only port 80
//cPanel Only Port 2082
Is there something to add there to make it to work.