[ Index ]
 

Code source de Cr@wltr@ck 2.2.1

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/php/ -> keywordposition.php (source)

   1  <?php
   2  //----------------------------------------------------------------------

   3  //  CrawlTrack 2.2.1

   4  //----------------------------------------------------------------------

   5  // Crawler Tracker for website

   6  //----------------------------------------------------------------------

   7  // Author: Jean-Denis Brun

   8  //----------------------------------------------------------------------

   9  // Website: www.crawltrack.fr

  10  //----------------------------------------------------------------------

  11  // That script is distributed under GNU GPL license

  12  //----------------------------------------------------------------------

  13  // file: keywordposition.php

  14  //----------------------------------------------------------------------

  15  error_reporting(0);
  16  //initialize array

  17  $listlangcrawlt=array();
  18  //connection to database

  19  include ("../include/configconnect.php");
  20  $connexion = mysql_connect($crawlthost,$crawltuser,$crawltpassword) or die("MySQL connection to database problem");
  21  $selection = mysql_select_db($crawltdb) or die("MySQL database selection problem");
  22  //Get lang 

  23  $sqlcrawltconfig = "SELECT  lang, typecharset FROM crawlt_config";
  24  $requetecrawltconfig = mysql_query($sqlcrawltconfig, $connexion) or die("MySQL query error");
  25  $nbrresultcrawlt=mysql_num_rows($requetecrawltconfig);
  26  
  27  if($nbrresultcrawlt>=1)
  28      {
  29      $lignecrawlt = mysql_fetch_row($requetecrawltconfig);
  30      $crawltlang=$lignecrawlt[0];
  31      $crawltcharset=$lignecrawlt[0];
  32      }
  33  if( $crawltcharset !=1)
  34      { 
  35       $crawltlang = $crawltlang."iso";
  36      } 
  37  //get the listlang files

  38  include "../include/listlang.php";    
  39  //get the functions files

  40  $times=0;
  41  $period=0;
  42  include "../include/functions.php";
  43  //language file include

  44  if(file_exists("../language/".$crawltlang.".php") && in_array($crawltlang,$listlangcrawlt))
  45      {
  46      include "../language/".$crawltlang.".php";
  47      }
  48  else
  49      {
  50      echo"<h1>No language files available !!!!</h1>";
  51      exit();
  52      } 
  53  
  54  //display

  55  echo"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n";
  56  echo"<html>\n";
  57  echo"<head>\n";
  58  echo"<title>CrawlTrack</title>\n";
  59  echo"<meta NAME=\"author\" CONTENT=\"Jean-Denis Brun\">\n";
  60  echo"<meta NAME=\"description\" CONTENT=\"CrawlTrack spiders and crawlers tracker\">\n";
  61  echo"<meta NAME=\"keywords\" CONTENT=\"crawler,tracker,webmaster,statistics,robots,site,webmestre,statistiques,searchengines,moteur de recherche\">\n";
  62  echo"<meta http-equiv=\"Content-Language\" content=\"fr\">\n";
  63  if($crawltcharset==1)
  64      {
  65      echo"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n";
  66      }
  67  else
  68      {
  69      echo"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n";
  70      }
  71  echo"<link rel=\"stylesheet\" type=\"text/css\" href=\"../styles/stylewindow.css\">\n";
  72  echo"</head>\n";
  73  echo"<body >\n";
  74  echo"<div id=\"header\">\n";
  75  echo"<img border=\"0\" src=\"../images/banniere.png\" alt=\"crawltrack\" width=\"235\" height=\"47\">\n";
  76  echo"</div>\n";
  77  //get the datas

  78  if(isset($_GET['keyword']))
  79      {
  80      $keyword = $_GET['keyword'];
  81      $keyworddisplay = stripslashes(crawltcuturl($keyword,'55'));
  82      }
  83  else
  84      {    
  85      echo"<h1>Hacking attempt !!!!</h1>";
  86      exit();
  87      }
  88      
  89  echo"<p align=\"right\"><input type=button name=\"close\" value=\"".$language['close']."\" onClick=\"self.close();\">&nbsp;&nbsp;</p> \n";   
  90  
  91  echo"<h1>".$language['keyword'].":<span class=\"browntitle\"> ".$keyworddisplay."</span></h1>\n";
  92  echo"<div align=\"center\">\n";
  93  echo"<hr>\n";
  94  echo"<iframe name=\"I1\" src=\"http://www.ask.com/web?q=$keyword \" marginwidth=\"1\" marginheight=\"1\" scrolling=\"auto\" border=\"1\" bordercolor=\"#003399\" frameborder=\"1px\" width=\"900px\" height=\"300px\"></iframe>\n"; 
  95  echo"<hr>\n";
  96  echo"<iframe name=\"I2\" src=\"http://www.google.com/search?q=$keyword \" marginwidth=\"1\" marginheight=\"1\" scrolling=\"auto\" border=\"1\" bordercolor=\"#003399\" frameborder=\"1px\" width=\"900px\" height=\"300px\"></iframe>\n"; 
  97  echo"<hr>\n";
  98  echo"<iframe name=\"I3\" src=\"http://search.live.com/results.aspx?q=$keyword \" marginwidth=\"1\" marginheight=\"1\" scrolling=\"auto\" border=\"1\" bordercolor=\"#003399\" frameborder=\"1px\" width=\"900px\" height=\"300px\"></iframe>\n"; 
  99  echo"<hr>\n";
 100  echo"<iframe name=\"I4\" src=\"http://search.yahoo.com/search?p=$keyword \" marginwidth=\"1\" marginheight=\"1\" scrolling=\"auto\" border=\"1\" bordercolor=\"#003399\" frameborder=\"1px\" width=\"900px\" height=\"300px\"></iframe>\n"; 
 101  echo"<hr>\n";
 102  echo"</div>\n";
 103  
 104  
 105  echo"<p align=\"right\"><input type=button name=\"close\" value=\"".$language['close']."\" onClick=\"self.close();\">&nbsp;&nbsp;</p> \n";   
 106  
 107  echo"</body>\n";
 108  echo"</html>\n"; 
 109      
 110  ?>


Généré le : Thu Sep 6 14:14:11 2007 par Balluche grâce à PHPXref 0.7