Changeset 45263
- Timestamp:
- 05/11/08 17:34:23 (2 months ago)
- Files:
-
- bsuite/trunk/core.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
bsuite/trunk/core.php
r45261 r45263 658 658 if( ( $referers = implode( $this->get_search_terms( $hit->in_from ), ' ') ) && ( 0 < strlen( $referers ))) { 659 659 $term_id = $this->bstat_insert_term( $referers ); 660 $searchwords[] = "($object_id, $object_type, $term_id, " . "1, '$hit->in_time')"; 660 echo "<h2>$referers</h2>"; 661 print_r( $term_id ); 662 $searchwords[] = "($object_id, $object_type, $term_id, 1, '$hit->in_time')"; 661 663 } 662 664 … … 703 705 update_option( 'bsuite_doing_migration_status', $status ); 704 706 } 705 707 /* 706 708 if( count( $res )){ 707 709 if ( false === $wpdb->query( "DELETE FROM $this->hits_incoming WHERE in_time < '$since' ORDER BY in_time ASC LIMIT ". count( $res ) .';')) … … 710 712 $wpdb->query( "OPTIMIZE TABLE $this->hits_incoming;"); 711 713 } 712 714 */ 713 715 /* 714 716 $posts = $wpdb->get_results("SELECT object_id, AVG(hit_count) AS hit_avg
