"Fossies" - the Fresh Open Source Software Archive

Member "mcLinksCounter/detail.php" (11 Apr 2002, 3245 Bytes) of package /linux/privat/old/mcLinksCounter1.2.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "detail.php" see the Fossies "Dox" file reference documentation.

    1 <?php
    2 // mcLinksCounter 1.2 - Marc Cagninacci - marc@phpforums.net - http://www.phpforums.net
    3 
    4 include "mclc.php";
    5 include "$langfile";
    6 $auth = explode(":",$HTTP_COOKIE_VARS["mcLinksCounter"]);
    7 if(empty($auth[0])){
    8 ?> <script language="JavaScript">
    9    document.location.replace("login.php?path=<? echo("detail.php"); ?>");
   10    </script>
   11 <?
   12 }
   13 ?>
   14 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
   15 <html>
   16 <head>
   17 <title>mcLinksCounter Detail</title>
   18 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   19 <META HTTP-EQUIV="Expires" CONTENT="Fri, Jan 01 1900 00:00:00 GMT">
   20 <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
   21 <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
   22 <style type="text/css">
   23 <!--
   24 a:actif {  font-family: Verdana; color: black; text-decoration: none}
   25 a:link {  font-family: Verdana; color: white; text-decoration: none}
   26 a:visited {  font-family: Verdana; color: white; text-decoration: none}
   27 a:hover {  font-family: Verdana; color: black; text-decoration: none}
   28 -&nbsp;
   29 </style>
   30 </head>
   31 <body bgcolor="#C0C0C0" text="white">
   32 <p align="right"><font face="verdana" size="5" color="black">mcLinksCounter 1.2</font></p><hr>
   33 
   34 
   35 <?
   36 $connect = mysql_connect($host,$login,$pass);
   37 mysql_select_db($base, $connect);
   38 echo '<table border="0" cellspacing="1" cellpadding="2" align="center"><tr><td bgcolor="#333333" colspan="3"><font face="verdana" color="white" size="1">';
   39 if ($langfile=="french.php") $jour = date("d/m/Y");
   40 else  $jour = date("Y/m/d");
   41 $query= "select ip from mclinkscounter_detail where id='$det' and date like '$jour%'";
   42 $spy= mysql_query($query);
   43 $nb= mysql_num_rows($spy);
   44 if($langfile=="french.php")
   45 {
   46 $hier= date("d/m/Y", mktime(0,0,0,date("m"),date("d") - 1 , date("Y")));
   47 }
   48 else
   49 {
   50 $hier= date("Y/m/d", mktime(0,0,0,date("m"),date("d") - 1 , date("Y")));
   51 }
   52 $query= "select ip from mclinkscounter_detail where id='$det' and date like '$hier%'";
   53 $spy= mysql_query($query);
   54 $nbh= mysql_num_rows($spy);
   55 $query= "select * from mclinkscounter_detail where id='$det' and date >= '$jour' order by date desc";
   56 $spy= mysql_query($query);
   57 echo '<a href="stats.php">'.$lRetour.'</a>&nbsp;- &nbsp;<a href="erase.php">'.$lNettoyage.'</a></font></td></tr>';
   58 echo '<tr><td bgcolor="#666666"><font face="verdana" size="2">'.$link.'</font></td><td align="right" bgcolor="#666666" colspan="2"><font face="verdana" color="white" size="1">'.$lToday.': '.$nb.' '.$lClics.', '.$lHier.': '.$nbh.'</font></td></tr>';
   59 echo '<tr><td bgcolor="#666666"><font face="verdana" size="1">'.$lAgent.'</font></td></td><td bgcolor="#666666"><font face="verdana" color="white" size="1">'.$lIp.'</font><td bgcolor="#666666"><font face="verdana" color="white" size="1">'.$lHeure.'</font></td></td></tr>';
   60 while ($row=mysql_fetch_array($spy))
   61 {
   62 $row[date]=substr($row[date], 13);
   63 echo '<tr><td bgcolor="#999999"><font face="verdana" size="1">'.$row[agent].'</font></td><td bgcolor="#999999"><font face="verdana" size="1">'.$row[ip].'</font></td><td bgcolor="#999999"><font face="verdana" size="1">'.$row[date].'</font></td></tr>';
   64 }
   65 
   66 echo '</table>';
   67 ?>
   68 <p align="center"><a href="http://www.phpforums.net/index.php?dir=dld" target="_blank"><img src="mclc.gif" border="0" alt="Download mcLinksCounter"></a></p>
   69 </body>
   70 </html>