Voor de liefhebbers heb ik dit ff gefixt
Gebruik:Code:<?php // Gemaakt door: Andrew Passon // Mag worden gebruikt wat voor wat dan ook behalve verkoop function reboot($port) { $host = "xxxx"; $admin = "xxxx"; $password = "xxxx"; $url = "http://".$host."/RESET.CGI?a=0&bi=5&t=0&b=1&p=".$port.""; $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERPWD, "$admin:$password"); $result = curl_exec($ch); curl_close($ch); echo "Server op poort $port is gereboot"; } ?>
Indien mensen er interesse in hebben wil ik hem nog verder maken dat je ook de on/off functie kunt gebruiken e.d.Code:<?php reboot(4); ?>

Likes:


