'login', 'domain'=>'', 'login'=>'scoresdeci', 'pw'=>'catsysyo92', ); $page=getUrl("http://www.online.net/administration/identification.html", '', $postData, '', false, '', '',0); $cookies=$page['header']['Set-Cookie']; /** Etape de liste de la zone S&D **/ $postData=array('action'=>'select_domain', 'domain_id'=>'173991', ); $page=getUrl("http://www.online.net/dns.pl", $cookies, $postData, 'http://www.online.net/dns.pl', false, '', '',0); /** Suppression de la zone DNS **/ if (preg_match('/
.*.*.*.*.*ws2<\/td>.*<\/form>/Uis',$page['body'],$matches)) { $postData=array('action'=>'delete_entry', 'entry_id'=>$matches[1], 'domain_id'=>'173991', ); $page=getUrl("http://www.online.net/dns.pl", $cookies, $postData, 'http://www.online.net/dns.pl', false, '', '',0); } /** Ajout de la zone DNS **/ $postData=array('action'=>'add_entry', 'entry'=>'ws2', 'type'=>'A', 'priority'=>'', 'value'=>$_SERVER['REMOTE_ADDR'], 'domain_id'=>'173991', ); $page=getUrl("http://www.online.net/dns.pl", $cookies, $postData, 'http://www.online.net/dns.pl', false, '', '',0); die(); if ($_REQUEST['orange']=='lk65gqsdg657g68sqgdg686d7g9q87g') { $str=""; //TODO : Fichier n'existe plus $fp=fopen(realpath(dirname(__FILE__)) . '/../../config/serveur.orange.php', 'w'); fwrite($fp, $str); fclose($fp); } ?>