$r = redisLink(); $lastvisit = $r->lindex("last:" . userId(), -1); $statusok = false; if ($lastvisit) { $row = unserialize($lastvisit); if (time() - $row['time'] < 3600 * 24) { $statusok = true; } } if ($statusok) { echo "We are correctly receiving data"; } else { echo "We are NOT receiving data, make sure to install the javascript tag in your web site"; } $excludechecked = userExcludeMyVisits() ? "checked" : ""; $showuseragent = userShowUserAgent() ? "checked" : ""; $savedhtml = gi("s", 0) ? ' <span id="saved" style="color:red">(saved)</span>' : ''; ?> <h3>Options<?php echo $savedhtml; ?> </h3> <form method="post" action="usercode.php" id="optionsform"> Don't log my own visits <input type="checkbox" name="excludemyvisits" value="1" <?php echo $excludechecked; ?> ><br/><br/> Show clients user agent <input type="checkbox" name="showuseragent" value="1" <?php echo $showuseragent; ?> ><br/><br/>
<div id="statbox_topreferers"> </div> </div> <div class="statbox"> <h5>Top searches</h5> <div id="statbox_topsearches"> </div> </div> <div class="statbox"> <h5>Top pages</h5> <div id="statbox_toppages"> </div> </div> <div class="statbox"> <h5>Browsers war</h5> <div id="statbox_topbrowsers"> </div> </div> </div> <script type="text/javascript" src="/javascript/usermain.js?v=9"></script> <script type="text/javascript"> var Options = {}; Options.showuseragent = <?php echo userShowUserAgent() ? "true;\n" : "false;\n"; ?> </script> </div>