Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Wap Site
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Wap Site

 Post Reply Post Reply Page  123>
Author
Rebel Gaa View Drop Down
Groupie
Groupie


Joined: 04 September 2003
Location: Ireland
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rebel Gaa Quote  Post ReplyReply Direct Link To This Post Topic: Wap Site
    Posted: 28 April 2004 at 2:38pm

Hi,

My question is as follows. I'm currently writing a Wap page in which people can use their mobile phone to view the latest posts on my web wiz forum. What i am wondering is does this hamper the security of the forum? Also is their anything else i should look out for when writing such a wap site based upon a web wiz forum?

Post if you wan anymore info.

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 28 April 2004 at 5:10pm
If you don't rewrite any of the ASP code (exept for Response.Write()), you shouldn't have to worry about the security. the security is not on the client side, but on the server side.
Back to Top
Rebel Gaa View Drop Down
Groupie
Groupie


Joined: 04 September 2003
Location: Ireland
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rebel Gaa Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2004 at 4:07am
How do you mean not to rewrite? At the moment i have code(connection string etc) written in .asp file and shows up on my mobile. Could you explain another way, using the Response.Write()?
Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2004 at 5:36am
Basically it's 100% fine as long as you don't use forms.  If you use forms then you need to start worrying about security.
Back to Top
Rebel Gaa View Drop Down
Groupie
Groupie


Joined: 04 September 2003
Location: Ireland
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rebel Gaa Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2004 at 5:57am

This is the code that i am using, no sign of forms! My worry is could people get hold of my database pathname?

<% Response.ContentType = "text/vnd.wap.wml" %>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card title="Forum">
<p align="left">Most recent topics being discussed, click on topic to view last post:</p>

<p align="left">
<%
Dim adoCon  

Dim strCon


Set adoCon = Server.CreateObject("ADODB.Connection")

strCon = "Provider=Microsoft.Jet.OLEDB.4.0; DATA Source='\\xxxxxxx.mdb';"

adoCon.Open strCon

Dim rsForum
Dim strSql

Set rsForum = Server.CreateObject("ADODB.Recordset")

strSql= "SELECT TOP 10 tblTopic.* FROM tblTopic ORDER BY tblTopic.Last_entry_date DESC"

rsForum.CursorType = 3

rsForum.Open strSql, adoCon

%>

<%
  Do while NOT rsForum.EOF
%>


<a href="http://www.rebelgaa.com/wap/forum/post.asp?TID=<% = rsForum("Topic_ID") %>"><% = rsForum("Subject") %></a><br/><br/>

<%
rsForum.MoveNext
Loop
%>

<%
rsForum.Close
Set rsForum = Nothing
Set strCon = Nothing
Set adoCon = Nothing
%>
</p>

<p align="center"><a href="/wap/index.asp">Main Page</a></p>

</card>
</wml>

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2004 at 9:21am
this will work fine and the users has to download the asp source to get your db path, which is impossible to do with correct server settings (unless they hack your server of course)

actually, it's the same as html, just that instead of using HTML you use WML (Wireless markup language)



but remember to close the ado connection object
you don't need to set strings to nothing.
<%
rsForum.Close
Set rsForum = Nothing
adoCon.Close
Set adoCon = Nothing
%>
Back to Top
Rebel Gaa View Drop Down
Groupie
Groupie


Joined: 04 September 2003
Location: Ireland
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rebel Gaa Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2004 at 9:57am
Thanks for that, well continue with it so.
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2004 at 4:08pm
that would get annoying on the never-ending thread... every 20 seconds your phone would go off
Back to Top
 Post Reply Post Reply Page  123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.