Changeset 4823

Show
Ignore:
Timestamp:
06/06/07 16:31:02 (1 year ago)
Author:
morris
Message:

Old uncommitted stuff

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • animanga/trunk/scripts/sensei/comments.pl

    r4330 r4823  
    5050                $founddata = $a->selectAll("*", "comments LEFT JOIN users ON comments.uid = users.uid", { "comments.ip" => $query, writestatus => $writestatus }, "ORDER BY time DESC LIMIT 50"); 
    5151 
    52                 $a->displayComments($founddata, $a->constant("commentlist"), 1, 0, \$foundcomments); 
     52                $a->displayComments($founddata, $a->constant("commentlist"), 0, \$foundcomments); 
    5353        } 
    5454        elsif($query =~ /^\d+$/) { 
    5555                $founddata = $a->selectAll("*", "comments LEFT JOIN users ON comments.uid = users.uid", { "users.uid" => $query, writestatus => $writestatus }, "ORDER BY time DESC LIMIT 50"); 
    5656 
    57                 $a->displayComments($founddata, $a->constant("commentlist"), 1, 0, \$foundcomments); 
     57                $a->displayComments($founddata, $a->constant("commentlist"), 0, \$foundcomments); 
    5858        } 
    5959        elsif($query) { 
     
    6161                $founddata = $a->selectAll("*, (subject LIKE $lquery) AS keywords", "comments LEFT JOIN users ON comments.uid = users.uid", { writestatus => $writestatus }, "HAVING keywords > '0' ORDER BY keywords DESC, subject ASC LIMIT 50"); 
    6262 
    63                 $a->displayComments($founddata, $a->constant("commentlist"), 1, 0, \$foundcomments); 
     63                $a->displayComments($founddata, $a->constant("commentlist"), 0, \$foundcomments); 
    6464        } 
    6565 
  • animanga/trunk/scripts/sensei/toplist.pl

    r2780 r4823  
    3838 
    3939        foreach ((1, 7, 30, 90, 365)) { 
    40                 my $row = $an->selectHashref("$_ AS period, COUNT(*) AS count", "sessions", "time > NOW() - INTERVAL $_ DAY"); 
     40                my $row = $an->selectHashref("$_ AS period, COUNT(*) AS count", "sessions", "currenttime > NOW() - INTERVAL $_ DAY"); 
    4141 
    4242                push(@activeusers, $row);