Changeset 45263

Show
Ignore:
Timestamp:
05/11/08 17:34:23 (2 months ago)
Author:
misterbisson
Message:

alpha

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bsuite/trunk/core.php

    r45261 r45263  
    658658                  if( ( $referers = implode( $this->get_search_terms( $hit->in_from ), ' ') ) && ( 0 < strlen( $referers ))) { 
    659659                        $term_id = $this->bstat_insert_term( $referers ); 
    660                         $searchwords[] = "($object_id, $object_type, $term_id, " . "1, '$hit->in_time')"; 
     660echo "<h2>$referers</h2>"; 
     661print_r( $term_id ); 
     662                        $searchwords[] = "($object_id, $object_type, $term_id, 1, '$hit->in_time')"; 
    661663                  } 
    662664                   
     
    703705                  update_option( 'bsuite_doing_migration_status', $status ); 
    704706            } 
    705  
     707/* 
    706708            if( count( $res )){ 
    707709                  if ( false === $wpdb->query( "DELETE FROM $this->hits_incoming WHERE in_time < '$since' ORDER BY in_time ASC LIMIT ". count( $res ) .';')) 
     
    710712                        $wpdb->query( "OPTIMIZE TABLE $this->hits_incoming;"); 
    711713            } 
    712  
     714*/ 
    713715/*           
    714716            $posts = $wpdb->get_results("SELECT object_id, AVG(hit_count) AS hit_avg