| [ Index ] |
|
Code source de Cr@wltr@ck 2.2.1 |
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: logochoice.php 14 //---------------------------------------------------------------------- 15 16 if (!defined('IN_CRAWLT_ADMIN') && !defined('IN_CRAWLT_INSTALL')) 17 { 18 echo"<h1>Hacking attempt !!!!</h1>"; 19 exit(); 20 } 21 22 echo"<h1>".$language['logo']."</h1>\n"; 23 24 echo"<p>".$language['logo_choice']."</p>\n"; 25 26 27 echo"<div class=\"form3\">\n"; 28 echo"<form action=\"index.php\" method=\"POST\" >\n"; 29 echo"<table>\n"; 30 echo"<tr><td>\n"; 31 echo"<input type=\"radio\" name=\"logochoice\" value=\"0\" checked><img src=\"./images/logo.jpg\" width=\"100\" height=\"20\" border=\"0\" alt=\"CrawlTrack\"><br><br>\n"; 32 echo"<input type=\"radio\" name=\"logochoice\" value=\"1\"><img src=\"./images/logo1.png\" width=\"80\" height=\"15\" border=\"0\" alt=\"CrawlTrack\"><br><br>\n"; 33 echo"<input type=\"radio\" name=\"logochoice\" value=\"2\"><img src=\"./images/logo2.png\" width=\"80\" height=\"15\" border=\"0\" alt=\"CrawlTrack\"><br><br>\n"; 34 echo"<input type=\"radio\" name=\"logochoice\" value=\"3\"><img src=\"./images/logo3.png\" width=\"80\" height=\"15\" border=\"0\" alt=\"CrawlTrack\"><br><br>\n"; 35 echo"<input type=\"radio\" name=\"logochoice\" value=\"4\"><img src=\"./images/logo4.png\" width=\"80\" height=\"15\" border=\"0\" alt=\"CrawlTrack\"><br><br>\n"; 36 echo"<input type=\"radio\" name=\"logochoice\" value=\"5\"><img src=\"./images/logo5.png\" width=\"80\" height=\"15\" border=\"0\" alt=\"CrawlTrack\"><br><br>\n"; 37 echo"</td><td>\n"; 38 echo"<input type=\"radio\" name=\"logochoice\" value=\"6\"><img src=\"./images/logo6.png\" width=\"80\" height=\"15\" border=\"0\" alt=\"CrawlTrack\"><br><br>\n"; 39 echo"<input type=\"radio\" name=\"logochoice\" value=\"7\"><img src=\"./images/logo7.png\" width=\"80\" height=\"15\" border=\"0\" alt=\"CrawlTrack\"><br><br>\n"; 40 echo"<input type=\"radio\" name=\"logochoice\" value=\"8\"><img src=\"./images/logo8.png\" width=\"80\" height=\"15\" border=\"0\" alt=\"CrawlTrack\"><br><br>\n"; 41 echo"<input type=\"radio\" name=\"logochoice\" value=\"9\"><img src=\"./images/logo9.png\" width=\"80\" height=\"15\" border=\"0\" alt=\"CrawlTrack\"><br><br>\n"; 42 echo"<input type=\"radio\" name=\"logochoice\" value=\"10\"><img src=\"./images/logo10.png\" width=\"80\" height=\"15\" border=\"0\" alt=\"CrawlTrack\"><br><br>\n"; 43 echo"<input type=\"radio\" name=\"logochoice\" value=\"11\">".$language['no_logo']."<br><br>\n"; 44 echo"</td></tr>\n"; 45 echo"</table></div>\n"; 46 47 48 //database connection 49 $connexion = mysql_connect($crawlthost,$crawltuser,$crawltpassword) or die("MySQL connection to database problem"); 50 $selection = mysql_select_db($crawltdb) or die("MySQL database selection problem"); 51 52 //website list query 53 if($_SESSION['rightsite']==0) 54 { 55 $sql = "SELECT id_site, name FROM crawlt_site"; 56 } 57 else 58 { 59 $siteright=$_SESSION['rightsite']; 60 61 $sql = "SELECT id_site, name FROM crawlt_site 62 WHERE id_site = '".sql_quote($siteright)."'"; 63 } 64 65 66 //request to get the sites datas 67 68 $requete = mysql_query($sql, $connexion) or die("MySQL query error"); 69 70 $nbrresult=mysql_num_rows($requete); 71 72 if($nbrresult>=1) 73 { 74 while ($ligne = mysql_fetch_row($requete)) 75 { 76 $listsite[]=$ligne[0]; 77 $namesite[$ligne[0]]=$ligne[1]; 78 } 79 } 80 81 82 83 84 echo"<h1>".$language['site_name2']."</h1>\n"; 85 echo"<div class=\"form3\">\n"; 86 echo"<form action=\"index.php\" method=\"POST\" >\n"; 87 echo"<table>\n"; 88 echo"<tr><td>\n"; 89 $sitechoice=0; 90 foreach($listsite as $siteid) 91 { 92 if($sitechoice==0) 93 { 94 echo"<input type=\"radio\" name=\"site\" value=\"".$siteid."\" checked>".$namesite[$siteid]."<br><br>\n"; 95 } 96 else 97 { 98 echo"<input type=\"radio\" name=\"site\" value=\"".$siteid."\">".$namesite[$siteid]."<br><br>\n"; 99 } 100 $sitechoice=1; 101 } 102 echo"</td></tr>\n"; 103 echo"</table>\n"; 104 105 106 107 //continue 108 if($navig==6) 109 { 110 $validform=3; 111 } 112 elseif ($navig==15) 113 { 114 $validform=7; 115 } 116 117 118 echo "<input type=\"hidden\" name ='navig' value=$navig>\n"; 119 echo "<input type=\"hidden\" name ='validform' value=$validform>"; 120 echo"<table>\n"; 121 echo"<tr>\n"; 122 echo"<td>\n"; 123 echo"<input name='ok' type='submit' value='OK' size='40'>\n"; 124 echo"</td>\n"; 125 echo"</tr>\n"; 126 echo"</table>\n"; 127 echo"</form>\n"; 128 echo"</div><br><br>"; 129 130 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
| Généré le : Thu Sep 6 14:14:11 2007 | par Balluche grâce à PHPXref 0.7 |