[ Index ]
 

Code source de Cr@wltr@ck 2.2.1

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

title

Body

[fermer]

/include/ -> adminpublicstats.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: adminpublicstats.php

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

  15  
  16  if (!defined('IN_CRAWLT_ADMIN'))
  17  {
  18      echo"<h1>Hacking attempt !!!!</h1>";
  19      exit();
  20  }
  21  
  22  
  23  echo"<h1>".$language['public']."</h1>\n";
  24  
  25  if($crawltpublic==1)
  26      {
  27      if($validsite==1)
  28          {
  29          //update the crawlt_config_table

  30          
  31          //database connection

  32          $connexion = mysql_connect($crawlthost,$crawltuser,$crawltpassword) or die("MySQL connection to database problem");
  33          $selection = mysql_select_db($crawltdb) or die("MySQL database selection problem");
  34          
  35          $sqlupdatepublic ="UPDATE crawlt_config SET public='0'";
  36          
  37          $requeteupdatepublic = mysql_query($sqlupdatepublic, $connexion) or die("MySQL query error");
  38      
  39          echo"<br><br><p>".$language['update']."</p><br><br>";    
  40              
  41          //continue

  42      
  43          echo"<form action=\"index.php\" method=\"POST\" >\n";
  44          echo "<input type=\"hidden\" name ='navig' value='6'>\n";
  45          echo"<table class=\"centrer\">\n";    
  46          echo"<tr>\n";
  47          echo"<td colspan=\"2\">\n";
  48          echo"<input name='ok' type='submit'  value='OK ' size='20'>\n";
  49          echo"</td>\n";
  50          echo"</tr>\n";
  51          echo"</table>\n";
  52          echo"</form><br>\n";               
  53          }
  54      else
  55          {
  56          echo"<br><br><p>".$language['public-set-up2']."</p>\n";
  57             
  58          echo"<div class=\"form\">\n";
  59          echo"<form action=\"index.php\" method=\"POST\" >\n";
  60          echo "<input type=\"hidden\" name ='navig' value='6'>\n";
  61          echo "<input type=\"hidden\" name ='validform' value=\"21\">";
  62          echo "<input type=\"hidden\" name ='validsite' value=\"1\">";
  63          echo"<table class=\"centrer\">\n";
  64          echo"<tr>\n";
  65          echo"<td>\n";
  66          echo"<input name='ok' type='submit'  value=".$language['yes']." size='20'>\n";
  67          echo"</td>\n";
  68          echo"</tr>\n";
  69          echo"</table>\n";
  70          echo"</form><br>\n"; 
  71      
  72          echo"<form action=\"index.php\" method=\"POST\" >\n";
  73          echo "<input type=\"hidden\" name ='navig' value='6'>\n";
  74          echo"<table class=\"centrer\">\n";
  75          echo"<tr>\n";
  76          echo"<td>\n";
  77          echo"<input name='ok' type='submit'  value=".$language['no']." size='20'>\n";
  78          echo"</td>\n";
  79          echo"</tr>\n";
  80          echo"</table>\n";
  81          echo"</form><br>\n";    
  82            
  83          echo"</div><br>\n";    
  84          
  85          }
  86          
  87      }
  88  else
  89      {
  90      
  91   
  92          if($validsite !=1)
  93              {
  94              //form    

  95                         
  96              echo"<br><br><p>".$language['public-set-up']."</p>\n";
  97  
  98              echo"<br><p>".$language['public2']."</p>\n";
  99                 
 100              echo"<div class=\"form\">\n";
 101              echo"<form action=\"index.php\" method=\"POST\" >\n";
 102              echo "<input type=\"hidden\" name ='navig' value='6'>\n";
 103              echo "<input type=\"hidden\" name ='validform' value=\"21\">";
 104              echo "<input type=\"hidden\" name ='validsite' value=\"1\">";
 105              echo"<table class=\"centrer\">\n";
 106              echo"<tr>\n";
 107              echo"<td>\n";
 108              echo"<input name='ok' type='submit'  value=".$language['yes']." size='20'>\n";
 109              echo"</td>\n";
 110              echo"</tr>\n";
 111              echo"</table>\n";
 112              echo"</form><br>\n"; 
 113          
 114              echo"<form action=\"index.php\" method=\"POST\" >\n";
 115              echo "<input type=\"hidden\" name ='navig' value='6'>\n";
 116              echo"<table class=\"centrer\">\n";
 117              echo"<tr>\n";
 118              echo"<td>\n";
 119              echo"<input name='ok' type='submit'  value=".$language['no']." size='20'>\n";
 120              echo"</td>\n";
 121              echo"</tr>\n";
 122              echo"</table>\n";
 123              echo"</form><br>\n";    
 124                
 125              echo"</div><br>\n"; 
 126              }
 127          else
 128              {
 129              //update the crawlt_config_table

 130              
 131              //database connection

 132              $connexion = mysql_connect($crawlthost,$crawltuser,$crawltpassword) or die("MySQL connection to database problem");
 133              $selection = mysql_select_db($crawltdb) or die("MySQL database selection problem");
 134              
 135              $sqlupdatepublic ="UPDATE crawlt_config SET public='1'";
 136              
 137              $requeteupdatepublic = mysql_query($sqlupdatepublic, $connexion) or die("MySQL query error");
 138                  
 139              echo"<br><br><p>".$language['update']."</p><br><br>";                
 140                  
 141                  //continue

 142      
 143              
 144              echo"<form action=\"index.php\" method=\"POST\" >\n";
 145              echo "<input type=\"hidden\" name ='navig' value='6'>\n";
 146              echo"<table class=\"centrer\">\n";    
 147              echo"<tr>\n";
 148              echo"<td colspan=\"2\">\n";
 149              echo"<input name='ok' type='submit'  value='OK ' size='20'>\n";
 150              echo"</td>\n";
 151              echo"</tr>\n";
 152              echo"</table>\n";
 153              echo"</form><br>\n";
 154                      
 155                  
 156              }
 157      
 158          }
 159     
 160  
 161  ?>


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