| Author |
Topic Search Topic Options
|
megetron
Groupie
Joined: 20 September 2004
Status: Offline
Points: 147
|
Post Options
Thanks(0)
Quote Reply
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?
|
 |
JJLatWebWiz
Groupie
Joined: 02 March 2005
Location: United States
Status: Offline
Points: 136
|
Post Options
Thanks(0)
Quote Reply
Posted: 26 September 2005 at 1:22pm |
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. 
|
 |
megetron
Groupie
Joined: 20 September 2004
Status: Offline
Points: 147
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
megetron
Groupie
Joined: 20 September 2004
Status: Offline
Points: 147
|
Post Options
Thanks(0)
Quote Reply
Posted: 26 September 2005 at 5:19pm |
very very strange
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 
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
|
 |
JJLatWebWiz
Groupie
Joined: 02 March 2005
Location: United States
Status: Offline
Points: 136
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
megetron
Groupie
Joined: 20 September 2004
Status: Offline
Points: 147
|
Post Options
Thanks(0)
Quote Reply
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?
|
 |
JJLatWebWiz
Groupie
Joined: 02 March 2005
Location: United States
Status: Offline
Points: 136
|
Post Options
Thanks(0)
Quote Reply
Posted: 28 September 2005 at 11:40am |
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 
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?
|
 |
JJLatWebWiz
Groupie
Joined: 02 March 2005
Location: United States
Status: Offline
Points: 136
|
Post Options
Thanks(0)
Quote Reply
Posted: 28 September 2005 at 11:46am |
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.
|
 |