Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Security Imaged - BIG PROBLEM
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Security Imaged - BIG PROBLEM

 Post Reply Post Reply
Author
megetron View Drop Down
Groupie
Groupie


Joined: 20 September 2004
Status: Offline
Points: 147
Post Options Post Options   Thanks (0) Thanks(0)   Quote megetron Quote  Post ReplyReply Direct Link To This Post Topic: Security Imaged - BIG PROBLEM
    Posted: 25 September 2005 at 5:52pm
Hi all,
I edited the register.asp. instead of the line:   <!--#include file="common.asp" -->
I added this <!--#include file="includes/header.asp" -->
in the header file I included the common.asp file.
but no security images shown (BTW on the admin registration page the images are fine)
 
now don't tell me it is a server thing because the clean version of the forum works fine. and it is not a coockies problem because cookies works fine too.
 
someone can figure it out?
 
 
 
Back to Top
JJLatWebWiz View Drop Down
Groupie
Groupie
Avatar

Joined: 02 March 2005
Location: United States
Status: Offline
Points: 136
Post Options Post Options   Thanks (0) Thanks(0)   Quote JJLatWebWiz Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2005 at 1:22pm
Originally posted by megetron megetron wrote:

Hi all,
I edited the register.asp. instead of the line:   <!--#include file="common.asp" -->
I added this <!--#include file="includes/header.asp" -->
in the header file I included the common.asp file.
but no security images shown (BTW on the admin registration page the images are fine)
 
now don't tell me it is a server thing because the clean version of the forum works fine. and it is not a coockies problem because cookies works fine too.
 
someone can figure it out?
 
 
Did you also remove the <!--#include file="includes/header.asp" --> that already exists in register.asp?
 
I assume your changes are going to cause all sorts of little problems.  The common.asp has a lot to do with setting up the database and cookie work that makes it important to be read early on in the execution of the rest of the page.  On the other hand, header.asp actually begins building the HTML content.  Register.asp uses response.buffer because redirection to other pages is used for a number of cases, so if header.asp begins sending HTML before the response.buffer, then redirection can't work.  For the basic registration process, simply removing the <!--#include file="includes/header.asp" --> from the lower part of register.asp might work.  But register.asp does a lot more that absolutely requires the redirections to work, so your change is going to require a lot of re-engineering of more than just register.asp.  Have fun.  Smile
Back to Top
megetron View Drop Down
Groupie
Groupie


Joined: 20 September 2004
Status: Offline
Points: 147
Post Options Post Options   Thanks (0) Thanks(0)   Quote megetron Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2005 at 5:13pm
I already removed the <!--#include file="includes/header.asp" --> that already exist.
meanwhile I didn't found little problems that you mentioned, and hope not to found any.
 
and about redirection, it seems workung fine. still I cant figure it out. the damn security images does not shown.
 
 
Back to Top
megetron View Drop Down
Groupie
Groupie


Joined: 20 September 2004
Status: Offline
Points: 147
Post Options Post Options   Thanks (0) Thanks(0)   Quote megetron Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2005 at 5:19pm
very very strangeConfused
 
my code looks like this:
         <td  dir=ltr align=right width="50%" valign="top" background="<% = strTableBgImage %>"><img src="security_image.asp?I=1&<% = hexValue(3) %>" /><img src="security_image.asp?I=2&<% = hexValue(3) %>" /><img src="security_image.asp?I=3&<% = hexValue(3) %>" /><img src="security_image.asp?I=4&<% = hexValue(3) %>" /><img src="security_image.asp?I=5&<% = hexValue(3) %>" /><img src="security_image.asp?I=6&<% = hexValue(3) %>" /></td>
 
my but the file security_image is on th admin directory....
 
so i change "security_image.asp" to "admin/security_image.asp"
and images are displayed Confused
all that matters is that now it's work, but I am curious to know why is the relesed code is direct to the wrong path?
 
 


Edited by megetron - 26 September 2005 at 5:35pm
Back to Top
JJLatWebWiz View Drop Down
Groupie
Groupie
Avatar

Joined: 02 March 2005
Location: United States
Status: Offline
Points: 136
Post Options Post Options   Thanks (0) Thanks(0)   Quote JJLatWebWiz Quote  Post ReplyReply Direct Link To This Post Posted: 26 September 2005 at 6:29pm
There should be a security_image.asp in the /forum folder and the /forum/admin folder.  If your /forum/security_image.asp is missing, you should be able to copy the /admin/security_image.asp file.  So was the missing images the result of a missing asp page, or the result of your code changes?
 
If the redirection works then all else may continue to work.  I have noticed that your site creates some poorly formed HTML though.  I see multiple <HTML>, <HEAD>, <TITLE>, and <BODY> tags.  Some of that may be the result of the changes you've made, or not.  You should try to clean that up because some browsers aren't as good at reading your mind as others.
 
Back to Top
megetron View Drop Down
Groupie
Groupie


Joined: 20 September 2004
Status: Offline
Points: 147
Post Options Post Options   Thanks (0) Thanks(0)   Quote megetron Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2005 at 9:17am

All images are exist on both forum/admin/security images and forum/security images folders. this is the starnge thing.

about the poor HTML,
on header.asp  I have body head and title, and on the forum code there is the other html tags.
so should i remove those tags from my header or from the forum code?
 
Back to Top
JJLatWebWiz View Drop Down
Groupie
Groupie
Avatar

Joined: 02 March 2005
Location: United States
Status: Offline
Points: 136
Post Options Post Options   Thanks (0) Thanks(0)   Quote JJLatWebWiz Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2005 at 11:40am
Originally posted by megetron megetron wrote:

 
my but the file security_image is on th admin directory....
 
so i change "security_image.asp" to "admin/security_image.asp"
and images are displayed Confused
all that matters is that now it's work, but I am curious to know why is the relesed code is direct to the wrong path?
 
Did you mean that the security images were in the wrong directory or the security_image.asp was in the wrong directory?
Back to Top
JJLatWebWiz View Drop Down
Groupie
Groupie
Avatar

Joined: 02 March 2005
Location: United States
Status: Offline
Points: 136
Post Options Post Options   Thanks (0) Thanks(0)   Quote JJLatWebWiz Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2005 at 11:46am
Originally posted by megetron megetron wrote:

about the poor HTML,
on header.asp  I have body head and title, and on the forum code there is the other html tags.
so should i remove those tags from my header or from the forum code?
 
You'll have to determine that on your own.  There should be only one opening and closing HTML, HEAD, TITLE, and BODY.  There are rules that define how those tags are used and where script and rendered content belongs, but obviously most browsers make valiant attempts to render the page even if the rules are not followed.  But without following the basic rules, your page could appear differently on different browsers.
Back to Top
 Post Reply Post Reply

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.