% Set databaseConnection = getDatabaseConnection() userID = "2" Set storiesRS = Nothing // get name to prefill if you are logged in If Not isLoggedIn() Or isStillAnonymous() Then usersStatus = 1 Else // get all the stories you have submitted userID = CStr(Request.Cookies("hon")("hon_use_id")) // crude checking for admins If CInt(userID) <= 11 Then usersStatus = 3 Set storiesRS = createRecordSet("SELECT hon_sto_id, hon_sto_title FROM hon_sto_stories ORDER BY hon_sto_id DESC", databaseConnection) Else usersStatus = 2 End If End If %>
All HACK or NOT Scores | |||||||||||||||||||||
<% If usersStatus = 1 Then %> <%= getCPMBanner() %> You are not currently logged in.
You really shouldn't be here.<%= userID %>
<%= getCPMBanner() %> All Submissions: <% While Not storiesRS.EOF // get title and set up stats recordset storyID = CStr(storiesRS.Fields("hon_sto_id")) title = CStr(storiesRS.Fields("hon_sto_title")) Set statsRS = getStoryStats(storyID, databaseConnection) averageRating = statsRS.Fields("averageScore") If IsNull(averageRating) Or averageRating = "" Then averageRating = "No Score Yet" Else averageRating = FormatNumber(averageRating, 2, True, False, False) End If %> <%= safeHTMLEncode(title) %> Average Rating: <%= safeHTMLEncode(averageRating) %> Total Votes: <%= safeHTMLEncode(statsRS.Fields("totalVotes")) %>
<% storiesRS.MoveNext Wend %> <% End If %> |
<%= getRightBarAd() %> | ||||||||||||||||||||
HACK or NOT Home About HACK or NOT | Tell A Friend | How To Link To This Site Contact Us | Copyright |