Online/Offiline script

Gestart doorDylan21 reacties36 weergaven

22 berichten · pagina 2 van 2

Berichten
210
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Lol, wat is er mis met die andere

Die van mij werkt Primahypocrite
0
Berichten
1.000
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Shredder schreef:
Lol, wat is er mis met die andere
Die van mij werkt Primahypocrite
Zzeldje schreef:
Hoi
Ik zoek een script die controleert of mijn website online is of offline is. Als de website online is word je naar die site naar toe gestuurt. Maar als hij offiline is staat er: Sorry, de website is nu offline Probeer het morgen weer.
Deze script komt natuurlijk op een 24/7 host smile
Wie heeft deze script?
Hij wil ook dat je word doorgestuurt als de site online is en dat doet die van jou niet volgens mij en die van mij wel wink
0
Dylan

Lid · Topicstarter

Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
Ik zou even die script van Alexnder testenyummie die van shredder werkt denk ik al niet want dat zie ik zo alyummie
// Edit:

Script van Alexnder werkt ook nietsadleyklik

en op one2xs host krijg ik een error op line 19

link one2xs host: http://menpowers.s2.one2xs.com/
0
Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Probeer deze eens deze heb ik gister even bewerkt:

<link rel="stylesheet" type="text/css" href="http://www.habbotjes.be/pagina/style_contact.css" /> 

<style type="text/css"> 
        table,tr,td,th {
        font-size: 11px;
        }
</style> 

<center><table border="0">

  <tbody>
  
  <tr>
    <td>


[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]site[/COLOR][COLOR= #007700]])) {[/COLOR]
[COLOR= #0000BB]$verbind[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/fsockopen"]fsockopen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]site[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]80[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$errno[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$errstr[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]50[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700](![/COLOR][COLOR= #0000BB]$verbind[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<br />"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<center>"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL]   [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]site[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]  is <span style="color:#FF0000"><b>offline!</b></span>[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"</center>"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<br />"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]site[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000] is <span style="color:#04B404"><b>online!</b></span>[/COLOR][COLOR= #007700];
}
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{
}[/COLOR]
?> </tr></td>
  
 
  
</tbody></table></center>


<br><center>

<table border="0">

  <tbody>
  
  <tr>
    <td>



<form method="post" action="">
  Website (zonder http://):
  <input name="site" type="text" id="site">
  <input type="submit" name="Submit" value="Check">
</form>
  </tr></td>
  
 
  
</tbody></table>


</center>


Voorbeeld http://www.habbotjes.be/browser.php
0
Dylan

Lid · Topicstarter

Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
Nee ik bedoel dat hij controleert of mijn website online is. En als hij online is dat je daar naar toe word gestuurt. en als hij offline is dat er staat dat hij offline is.
0
Dylan

Lid · Topicstarter

Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
Weet iemand nog iets??crycry
0
Berichten
6.144
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Heeft iig geen nut op een host hier op one2xs, want die blokkeert poorten.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren