home *** CD-ROM | disk | FTP | other *** search
- <%
- response.buffer="true"
- %>
- <!---#INCLUDE FILE="config/config.asp"--->
- <!---#INCLUDE FILE="dbthemes.asp"--->
- <!---#INCLUDE FILE="themes/themes.asp"--->
- <%
- if Session("login") = "" then
- response.redirect "admin.asp"
- else
-
- if Session("dbname") = "" then
- response.redirect "../dbname.asp"
- else
- 'troubleshooting
- 'response.write Session("dbname")
- end if
-
- user = Session("user")
- level = Session("level")
-
-
- logout = "<a href='login.asp?logout=y'>Log Out</a><font color='red'> ..</font>"
- logged = "<font face=Arial size=2>Logged in as:<font color=#FF0000><strong>" & user & "</strong>"
- logged = logged & "</font> Level: </font><font color=#FF0000 face=Arial size=2><strong>" & level
- end if
-
- name = replace(request.form("name"),"'","''")
- link = replace(request.form("link"),"'","''")
- description = replace(request.form("description"),"'","''")
- keywords = replace(request.form("keywords"),"'","''")
- name = replace(request.form("name"),"''","''''")
- link = replace(request.form("link"),"''","''''")
- description = replace(request.form("description"),"''","''''")
- keywords = replace(request.form("keywords"),"''","''''")
-
- username = Session("sname")
- userpass = Session("pass")
-
- Set conninsert = Server.CreateObject("ADODB.Connection")
- conninsert.Open Session("dbname")
-
- Set RS = conninsert.Execute("INSERT INTO search (name, link, description, keywords, dte, username, userpass) Values ('" & name & "', '" & link & "', '" & description & "', '" & keywords & "', '" & DATE & "', '" & username & "', '" & userpass & "');")
-
- set RS = nothing
- conninsert.close
- set conninsert = nothing
-
- sname = Session("name")
- slevel = Session("level")
- %>
- <html>
-
- <head><%
- 'these meta tags can change
- %>
-
- <meta name="AUTHOR"
- content="Rory Knowles - ASP bahamas / Administrator for Knowles Realty's Web Site at www.KnowlesRealty.com">
- <meta name="GENERATOR" content="Microsoft FrontPage 3.0">
- <meta name="KEYWORDS"
- content="bahamas, bahama, bahamas business, bahamas bahamas, bahamian, yellow, pages, business, realty, real, estate, bahama, islands, island, business, listings, directory, listing, ad, classified, advertisment, home, online, internet, web, web bahamas">
- <%
- 'keep these meta tags in for free distribution
- 'these are the distributors ad tags
- %>
- <meta http-equiv="ad1" content="<%= ad1 %>">
- <meta http-equiv="ad2" content="<%= ad2 %>">
- <meta http-equiv="ad3" content="<%= ad3 %>">
- <meta http-equiv="ad4" content="<%= ad4 %>">
- <style>
- <!--
- SPAN {color:<%= getSiteFontColor() %>; background-color:<%= getSiteHighliteColor() %>}
- -->
- </style>
- <title>Search Engine - <%= title %></title>
- </head>
-
- <body vlink="<%= getSiteBGVlink() %>" bgcolor="<%= getSiteBGColor() %>"
- link="<%= getSiteBGLink() %>">
- <!---#INCLUDE FILE="includes/headernorm.asp"--->
-
- <table border="0" width="600" cellspacing="0" cellpadding="0" align="center">
- <tr>
- <td width="100%" valign="top" height="277"><table border="0" cellpadding="0"
- cellspacing="0" width="600">
- <tr>
- <td width="100%" height="19" bgcolor="<%= getSiteTitleNameBGColor() %>" valign="middle"
- colspan="2"><% = fontTagStart(3, getSiteFontColor(), Y, N, N) %>
- <p> <%= titlename %><% = fontTagEnd(Y, N, N) %> </td>
- </tr>
- <tr>
- <td height="19" bgcolor="<%= getSiteMainLinksBGColor() %>" valign="middle" width="305"><% = fontTagStart(2, getSiteFontColor(), Y, N, N) %> <a href="addurl.asp">Add URL</a> | <a href="editurl.asp">Edit URL</a> | <a href="user_control.asp">Users</a> | <a href="theme.asp">Theme</a> | <%= logout %><% = fontTagEnd(Y, N, N) %></td>
- <td height="19" bgcolor="<%= getSiteMainLinksBGColor() %>" valign="middle" width="295"><p align="right"><% = fontTagStart(2, getSiteFontColor(), Y, N, N) %><a href="admin.asp">ADMIN</a><% = fontTagEnd(Y, N, N) %><% = fontTagStart(2, "#FF8040", Y, N, N) %> ><% = fontTagEnd(Y, N, N) %><% = fontTagStart(2, "#008000", Y, N, N) %>> <% = fontTagEnd(Y, N, N) %><%= logged%>
-
- </td>
- </tr>
- <tr>
- <td width="600" height="62" bgcolor="#FFFFFF" valign="middle" colspan="2"><!---#INCLUDE FILE="includes/banners.asp"---> </td>
- </tr>
- <tr>
- <td width="600" bgcolor="<%= getSitePageNameBGColor() %>" valign="middle" colspan="2"><% = fontTagStart(3, getSitePageNameFontColor(), Y, N, N) %>
- <p>
- Utilities<% = fontTagEnd(Y, N, N) %></td>
- </tr>
- <tr>
- <td width="100%" bgcolor="#FFFFFF" valign="middle" colspan="2"><p
- align="center"><br>
- <br>
- <% = fontTagStart(2, getSiteFontColor(), N, N, N) %> Thank you. Your information has been submitted.<br>
- <a href="addurl.asp">Click Here</a> to Add another link<% = fontTagEnd(N, N, N) %><br><br><br><br><br><br><br>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <!---#INCLUDE FILE="../includes/footer.asp"--->
-
- <p><br>
- <br>
- <br>
- </p>
- </body>
- </html>
-