% '---------------------------------- 'index.asp 'main page ' ' '---------------------------------- %> <%'variable definitions dim fromindex 'for illegal usages of sub pages (e.g. writemsg.asp; counter.asp e.t.c) dim conn,rs 'for database connection dim uname,umail,uicq,uwww,mthisdate,ip(4),mthistext 'for message properties dim perpage,i,totalmsg,totalpage,curpage,temp,login 'miscellaneous variables if session("loggedin")=true then login=true else login=false ' looking for user admin or not fromindex=true 'key %> <% curpage=Request.QueryString ("curpage") 'getting current page if curpage="" then curpage=1 if isnumeric (curpage)=false then Response.Redirect ("index.asp") %>
<% sql="SELECT COUNT (*) FROM data" 'SQL string for counting messages set rs=conn.execute(sql) totalmsg=rs(0) rs.close if totalmsg=0 then 'if there is no messages in guestbook %>
Sign Guestbook
|
Page: ## ## ## ## ## ## ## ## ## | <<prev | next>> |
Admin Login
|
| There is no messages at this time, please use Sign Guestbook link, | ||||