| [ PHPXref.com ] | [ Generated: Sun Jul 20 19:47:34 2008 ] | [ phpMyFAQ 1.6.1 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * $Id: stat.show.php,v 1.4.2.6 2006/01/02 12:47:10 thorstenr Exp $ 4 * 5 * Show the session 6 * 7 * @author Thorsten Rinne <thorsten@phpmyfaq.de> 8 * @since 2003-02-24 9 * @copyright (c) 2001-2006 phpMyFAQ Team 10 * 11 * The contents of this file are subject to the Mozilla Public License 12 * Version 1.1 (the "License"); you may not use this file except in 13 * compliance with the License. You may obtain a copy of the License at 14 * http://www.mozilla.org/MPL/ 15 * 16 * Software distributed under the License is distributed on an "AS IS" 17 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 18 * License for the specific language governing rights and limitations 19 * under the License. 20 */ 21 22 if (!defined('IS_VALID_PHPMYFAQ_ADMIN')) { 23 header('Location: http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME'])); 24 exit(); 25 } 26 27 if ($permission["viewlog"]) { 28 $tree = new Category(); 29 ?> 30 <h2><?php print $PMF_LANG["ad_sess_session"]; ?> "<span style="color: Red;"><?php print $_REQUEST["id"]; ?></span>"</h2> 31 <?php 32 $row = $db->fetch_object($db->query("SELECT time FROM ".SQLPREFIX."faqsessions WHERE sid = ".$_REQUEST["id"])); 33 $time = $row->time; 34 $fp = fopen(PMF_ROOT_DIR."/data/tracking".date("dmY", $time), "r"); 35 ?> 36 <table class="list"> 37 <tbody> 38 <?php 39 $anz = 0; 40 while (list($sid, $lentry, $lcontent, $ip, $qstring, $referer, $useragent, $time) = fgetcsv($fp, 1024, ";")) { 41 if ($sid == $_REQUEST["id"]) { 42 $anz++; 43 ?> 44 <tr> 45 <td class="list"><?php print date("Y-m-d H:i:s",$time); ?></td> 46 <td class="list"><?php print $lentry; ?> (<?php print $lcontent; ?>)</td> 47 </tr> 48 <?php 49 if ($anz == 1) { 50 ?> 51 <tr> 52 <td class="list"><?php print $PMF_LANG["ad_sess_referer"]; ?></td> 53 <td class="list"><a href="<?php print $referer ?>" target="_blank"><?php print str_replace("?", "? ", $referer); ?></a></td> 54 </tr> 55 <tr> 56 <td class="list"><?php print $PMF_LANG["ad_sess_browser"]; ?></td> 57 <td class="list"><?php print $useragent; ?></td> 58 </tr> 59 <tr> 60 <td class="list"><?php print $PMF_LANG["ad_sess_ip"]; ?>:</td> 61 <td class="list"><?php print $ip; ?></td> 62 </tr> 63 <?php 64 } 65 } 66 } 67 ?> 68 </tbody> 69 <tfoot> 70 <tr> 71 <td colspan="2"><a href="javascript:history.back()"><?php print $PMF_LANG["ad_sess_back"]; ?></a></td> 72 </tr> 73 </tfoot> 74 </table> 75 <?php 76 } else { 77 print $PMF_LANG["err_NotAuth"]; 78 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |