Changeset 129
- Timestamp:
- 04/09/08 10:24:31 (8 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
lib/main.php (modified) (1 diff)
-
wassup.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/main.php
r125 r129 850 850 $hour_fromdate = strtotime("-".$strto, $hour_todate); 851 851 852 if ($hour_fromdate == "") $hour_fromdate = strtotime("-24 hours", $hour_todate); 853 852 854 /* Debug 853 855 $q = "SELECT COUNT(DISTINCT wassup_id) as items, COUNT(wassup_id) as pages, DATE_FORMAT(FROM_UNIXTIME((timestamp-$UTCoffset)), '$x_axes_label') as thedate FROM ".$this->tableName." WHERE wassup_id IS NOT NULL AND timestamp BETWEEN $hour_fromdate AND $hour_todate ".$this->whereis." $ss GROUP BY DATE_FORMAT(FROM_UNIXTIME((timestamp-$UTCoffset)), '$Ctimeformat') ORDER BY timestamp"; -
trunk/wassup.php
r126 r129 41 41 add_action('admin_menu', 'wassup_add_pages'); 42 42 add_action('send_headers', 'wassupAppend'); 43 add_action('activity_box_end', 'wassupDashChart');43 //add_action('activity_box_end', 'wassupDashChart'); 44 44 } 45 45 … … 1312 1312 $spamresult = $_SESSION['spamresult']; 1313 1313 } 1314 if ( $_SESSION['urlrequest'] == $urlRequested&& (($timestamp - (int)$_SESSION['visittime']) < 5)) {1314 if (( eregi_replace("$", "/", $_SESSION['urlrequest']) == $urlRequested || $_SESSION['urlrequest'] == $urlRequested) && (($timestamp - (int)$_SESSION['visittime']) < 5)) { 1315 1315 $dup_urlrequest=1; 1316 1316 } … … 1628 1628 $Chart->tableName = $table_name; 1629 1629 $Chart->to_date = $to_date; 1630 1631 $itemstot = $Chart->calc_tot("count", $search, null, "DISTINCT");1632 print $itemstot;1633 1630 1634 1631 echo '<h3>WassUp Stats <cite><a href="admin.php?page=wassup">More »</a></cite></h3>'; … … 2264 2261 $currenttot = $TotWid->calc_tot("count", null, null, "DISTINCT"); 2265 2262 $currentlogged = $TotWid->calc_tot("count", null, "AND username!=''", "DISTINCT"); 2266 $currentauth = $TotWid->calc_tot("count", null, "AND comment_author!='' 'AND username=''", "DISTINCT");2263 $currentauth = $TotWid->calc_tot("count", null, "AND comment_author!='' AND username=''", "DISTINCT"); 2267 2264 2268 2265 print $before_title . $title . $after_title;
