Télécharger des logiciels Windows, Mac, Linux, Palm, Pocket PC, Mobile, Jeux, scripts PHP, script ASP, scripts CGI, scripts PERL. Télécharger des cours, des wallpapers, des curseurs, des gifs animés, des fonds d'écran, fonds d'écrans, des textures, des icônes, des dessins. Gratuiciels, freeware, shareware, démonstration, gratuit.
Faites le plein de téléchargements !



Télécharger le script php AAA Email Broken Links Script - Toocharger.com.
l►► Télécharger AAA Email Broken Links Script v0.95. Petit script qui vous enverra un mail lorsqu'une page demandée sur votre site n'a pas été trouvée (erreur 404). Script AAA Email Broken Links Script. Téléchargement de AAA Email Broken Links Script, download.
CATEGORIES

SONNERIES MOBILES

FOND D'ÉCRAN

JOUER EN LIGNE

Vous êtes ici : Scripts > PHP > Redirection > Erreur > AAA Email Broken Links Script

Scripts PHP, ASP, Flash, CGI-PERL, Javascript, ASP.NET, Python, C, C++, DHTML, XML et CFM

SCRIPT PHP AAA EMAIL BROKEN LINKS SCRIPT v 0.95

 

Script php AAA Email Broken Links Script
Agrandir Cliquez pour agrandir
Petit script qui vous enverra un mail lorsqu'une page demandée sur votre site n'a pas été trouvée (erreur 404).

  • Ce script ne fonctionne pas sur votre serveur ? Consultez notre aide.
  • Une
    Télécharger

CODE SOURCE (imprimer) :
  1. <?php
  2. error_reporting(E_ALL ^ E_NOTICE);
  3.  
  4. ######################################################################
  5. ######################################################################
  6. ### ###
  7. ### 404.php Page not found Version 0.95 ###
  8. ### Copyright 2001 Eljee Bergwerff prive@eljee.nl ###
  9. ### Created 10-2004 Last Modified Today ###
  10. ### Scripts Name: 404.php ###
  11. ### ###
  12. ######################################################################
  13. ######################################################################
  14.  
  15. // This simple script will send you a email when a page hasn't been found on your server. This way you can easely keep track of broken links
  16. // It also emails the refered page where the visitor came from. It will print a error message and will redirect the visitor to another page.
  17.  
  18. // 1) place this script in the document root of your server.
  19. // 2) create a .htaccess file with the following line: ErrorDocument 404 /404.php
  20. // 3) edit the variables below
  21. // 4) you are done! no broken links that you aren't aware of anymore!
  22.  
  23. // Enter the company name or site name here
  24. $sitename = "Down-fr.com";
  25.  
  26. // No need to edit the following, but it will not harm to take a look at it!
  27. // Enter the name of the one receiving the error email
  28. $toname = "Webmaster";
  29. // Enter the website administrators email address here.
  30. // Replace $_SERVER["SERVER_ADMIN"] with "email@address.com" (including the "") if you want to use a differend email address
  31. $to = $_SERVER["SERVER_ADMIN"];
  32. // Enter the FROM email address here. No need to edit this, just incase you want to use a differend one.
  33. $fromemail = "$to";
  34. // Enter the subject of the email that will be send out
  35. $subject = "404 Broken Link at $sitename";
  36. // Redirect URL (if you use / no matter where on you site the 404 error will take place, you the visitor will always get ridirected to the indexpage.
  37. // Chance this only if you want to redirect the visitor to one place somewhere else. This can be a relative path to a page but also a remote hosted
  38. // page. For exampl, /dir/another_dir/thisone.html or http://www.anotherserver.com are both valid)
  39. // Comment out the following line (like #$url = "/";) if you don't want to redirect.
  40. #$url = "/";
  41.  
  42. // Amount of seconds it will take before redirecting the user.
  43. $redir_sec = "10";
  44.  
  45. // Error message to print out
  46. $error_message = "ERROR! 404 -- Page Not Found";
  47.  
  48.  
  49. #####################
  50. #print error message
  51. #####################
  52. ?>
  53. <html>
  54. <head>
  55. <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  56. <title><?=$subject?></title>
  57. <?if (isset($url)){echo"<meta http-equiv="refresh" content="$redir_sec;url=$url">";}?>
  58. </head>
  59. <body>
  60. <p>
  61. <b><?=$error_message;?></b>
  62. </p>
  63. </body>
  64. <html>
  65. <?
  66.  
  67. #####################
  68. #get server vars
  69. #####################
  70.  
  71. $referer = getenv("HTTP_REFERER");
  72. $badpage=($_SERVER["HTTP_HOST"].$_SERVER[REQUEST_URI]);
  73.  
  74. #####################
  75. #skip common (approved) errors
  76. #####################
  77.  
  78. if ($_SERVER[REQUEST_URI] == "/robots.txt"){exit;}
  79. if ($_SERVER[REQUEST_URI] == "/favicon.ico"){exit;}
  80.  
  81. #####################
  82. #email message
  83. #####################
  84.  
  85.  
  86. /* message */
  87. $message .= "
  88. <html><head></head><body bgcolor="#FFFFFF" text="#000000">
  89. <font face="Tahoma" size="2">
  90. <p>Dear Webmaster,<br>
  91. <br>
  92.  
  93. <TABLE BORDER="0" CELLSPACING="3" CELLPADDING="3">
  94. <TR>
  95.  
  96. <TD VALIGN="TOP">
  97. <b>Broken Link Report!</b>:
  98. </TD>
  99.  
  100. <TD VALIGN="TOP">
  101. <a href="http://$badpage">$badpage</a>
  102. </TD>
  103. </TR>
  104. ";
  105. if (!($referer == "")){
  106. $message .= "
  107. <TR>
  108. <TD VALIGN="TOP">
  109. <b>Linked From</b>:</TD>
  110.  
  111. <TD VALIGN="TOP">
  112. <a href="http://$referer">$referer</a>
  113. </TD>
  114. </TR>
  115. ";
  116. }
  117. $message .= "
  118. </TABLE>
  119.  
  120. <br>
  121.  
  122. Regards, webbot<br>
  123. </p>
  124. </font></body></html>
  125. ";
  126. /* set header. */
  127. $headers = "MIME-Version: 1.0rn";
  128. $headers .= "Content-type: text/html; charset=iso-8859-1rn";
  129. $headers .= "To: $toname <$to>rn";
  130. $headers .= "From: $sitename <$fromemail>rn";
  131. /* and now mail it */
  132. @mail($to, $subject, $message, $headers);
  133. exit;
  134. ?>

 Auteur Eljee Bergwerff
 Site web de l'éditeur
 Date de publication 04/08/2006
 Langue anglais
 Type de licence gratuit
 Licence -
 Bases de données Aucune
 Téléchargements total 247
 Téléchargements ce mois 5

Note des utilisateurs

-/10

Fonctionnalités
Blank
Interface
Blank
Stabilité
Blank
Installation
Blank
Rapport qualité/prix
Blank
Avis général
Blank
Nbre d'avis : 0

Blank




Blank

Commentaires

DERNIERS AVIS POSTÉS PAR LES UTILISATEURS


Il n'y a pas d'avis enregistrés pour le moment, vous pouvez enregistrer le vôtre.

Copyright © 2004-2008 Webluna. Tous droits réservés.
Hebdotop