Changeset 1333

Show
Ignore:
Timestamp:
02/16/07 11:09:22 (2 years ago)
Author:
jm3
Message:

minor new-user tweaks and refactors

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • feedmelinks/diespammersdie/TOS.inc.php

    r1248 r1333  
    77                <li>That my Feed Me Links account may be immediately suspended and my links deleted</li> 
    88                <li>That I may be prosecuted to the fullest extent of the law pursuant to whatever criminal and civil codes The Admins find germane to my method of mis-use.</li> 
    9                 <li>That may be pursued to the ends of the earth and stalked electronically for my sins against the decent, spam-hating users of the internet.</li> 
     9                <li>That I may be pursued to the ends of the earth and stalked electronically for my sins against the decent, spam-hating users of the internet.</li> 
    1010        </ol> 
    1111        <li>That is all :-)</li> 
  • feedmelinks/modules/highest-linking-users.inc.php

    r1331 r1333  
    33 
    44        $limit = $limit ? $limit : 7; 
    5         $qs = "SELECT COUNT(*) AS lc, userid AS u FROM links WHERE isPrivate IS NULL GROUP BY userid ORDER BY lc DESC LIMIT $limit;"
     5        $qs = getQuery( "top_linking_users", 7 )
    66 
    77        $con = mysql_connect(); 
  • feedmelinks/modules/main-interface.inc.php

    r1331 r1333  
    99                include( "modules/new-user-no-links.inc.php" ); 
    1010        } 
     11                else { 
     12 
     13                $qs = getQuery( "sorted_tags_per_user", $u ); 
     14                $q = mysql_query( $qs ); 
     15                if( $q ) 
     16                        $num_tags = $numRows = mysql_num_rows($q); 
     17                else 
     18                        echo "<!-- ERROR: running <?= $qs ?> -->"; 
     19?> 
     20<big style='margin-left: 6px;'> 
     21        You have <?= number_format( $num_links ) ?> links and <?= number_format( $num_tags ) ?> tags. 
     22</big> 
     23<?php 
     24                } 
    1125?> 
    1226 
     
    1428                        <div class="subhead">  
    1529<?php 
    16         $qs = getQuery( "sorted_tags_per_user", $u ); 
    17         $q = mysql_query( $qs ); 
    18         if( $q ) 
    19                 $num_tags = $numRows = mysql_num_rows($q); 
    20         else { 
    21                 ?> <!-- ERROR: running <?= $qs ?> --> <?php 
    22         } 
    2330 
    2431        $tagbox_title = ($num_tags < 4)  
     
    3744                        </div> 
    3845<?php    
    39         if( $num_tags > 4 ) { 
     46        if( $num_tags >= 4 ) { 
    4047                $qs2 = getQuery( "links_per_user", $u ); 
    4148                $q2 = mysql_query( $qs2 ); 
     
    99106 
    100107<div id="rightColumn"> 
     108         
     109        <?php include( "$modules/my-recent.inc.php" ); ?> 
     110 
     111        <?php include( "$modules/recent.inc.php" ); ?> 
     112 
     113        <?php include( "$modules/random-links.inc.php" ); ?> 
     114         
    101115        <div id="news" class="box"> 
    102116                <?php include( "$modules/news-divs.inc.php" ); ?> 
    103117        </div> 
    104  
    105         <?php include( "$modules/recent.inc.php" ); ?> 
    106          
    107         <?php include( "$modules/my-recent.inc.php" ); ?> 
    108  
    109         <?php include( "$modules/random-links.inc.php" ); ?> 
    110118</div> 
    111119 
  • feedmelinks/modules/utils.inc.php

    r1331 r1333  
    2828        </style> 
    2929 
     30 
     31<form method="post"> 
    3032<table> 
    3133        <th> 
     
    7375                                        <?= getPLAINUserLink( $user ) ?> | <small><a href="/admin/snuff?user=<?= $user ?>">snuff?</a></small> 
    7476                                </td> 
     77                                <td> 
     78                                <input type="checkbox" name="snuff_user_<?= urlencode( $user ) ?>"/> 
     79                                </td> 
    7580                        </tr> 
    7681                        <?php 
     
    7984        </tbody> 
    8085</table> 
     86<p/> 
     87<input type="submit" value="Moderate Splinkers"/> 
     88</form> 
    8189<?php 
    8290                return ob_get_clean(); 
     
    18971905      LEFT JOIN linksCategoriesXRef ON links.ID = linksCategoriesXRef.linkID WHERE linksCategoriesXRef.linkID IS NULL "; 
    18981906   
     1907        } else if( $argWhichQuery  == "top_linking_users" ) { 
     1908    return " 
     1909                SELECT COUNT(*) AS lc, links.userid AS u FROM links, linksUsers WHERE linksUsers.userid = links.userid AND isPrivate IS NULL AND snuffed IS NULL GROUP BY links.userid ORDER BY lc DESC LIMIT " . $args[1] . ";"; 
     1910 
     1911 
    18991912        } else if( $argWhichQuery  == "tag_spammer" ) { 
    19001913    return " 
     
    19071920        } else if( $argWhichQuery  == "user_by_link_criteria" ) { 
    19081921    return " 
    1909                  SELECT linksUsers.snuffed, links.userid, count(links.userid) FROM links, linksUsers WHERE links." . $args[1] . " LIKE '%" . urlencode( $args[2] ) . "%' and links.userid = linksUsers.userid GROUP BY links.userid having count(links.userid) >= 1;"; 
     1922                 SELECT linksUsers.snuffed, links.userid, count(links.userid) FROM links, linksUsers WHERE links.isPrivate IS NULL and links." . $args[1] . " LIKE '%" . urlencode( $args[2] ) . "%' and links.userid = linksUsers.userid GROUP BY links.userid having count(links.userid) >= 1;"; 
    19101923 
    19111924        } else if( $argWhichQuery  == "snuff_username" ) { 
  • feedmelinks/testing/.htaccess

    r1015 r1333  
    55        require valid-user 
    66</Limit> 
     7 
     8DirectoryIndex index.php index.html index.wml 
     9 Options MultiViews Includes Indexes FollowSymLinks 
     10 
  • feedmelinks/thanks.php

    r1248 r1333  
    4646                <div class="rowbox"> 
    4747                        <h1 style="text-align: center;"> 
    48                                 Account created
     48                                Account created - Check your Email
    4949                        </h1> 
    5050                </div>