Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Before I do this ...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Etymon
Advanced Member

United States
2395 Posts

Posted - 10 December 2007 :  12:20:01  Show Profile  Visit Etymon's Homepage
I could test these thoughts out after doing the work, but I'd rather ask opinions before I do this ...

My assumptions have to do with config.asp, inc_header.asp, inc_header_short.asp, inc_func_common.asp, and inc_sha256.asp

1. It seems that the include file inc_sha256.asp is used whenever the include file inc_header.asp is included into a file and on occassion whenever inc_header_short.asp is included into a file.

2. It seems that the include file config.asp is used whenever the include files inc_header.asp and inc_header_short.asp are included into a file.

3. It seems that since #1 and #2 above are often true, then I could safely place the include file config.asp and the include file inc_sha256.asp into the include files inc_header.asp and inc_header_short.asp whenever the latter are included into a file. Say, for instance, default.asp, forum.asp, topic.asp, pop_delete.asp, admin_config_order.asp, etc.

4. This manner of logic was also done for the include inc_func_common.asp by including it solely into inc_header.asp and inc_header_short.asp instead of separately a while back.

5. If #3 above is a valid assumption and if it coincides with the proven logic found in #4, then does it seem that all of the files that use inc_header.asp and inc_header_short.asp can omit config.asp and inc_sha256.asp as includes as long as those includes are placed within the inc_header* include files respectively?

I bring this up as a question because of I am working with older MODs which don't use inc_sha256.asp as an include file.

Any thoughts?

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 10 December 2007 :  12:40:57  Show Profile  Visit HuwR's Homepage
not entirely sure what your question is.
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 10 December 2007 :  12:44:41  Show Profile  Visit AnonJr's Homepage
If I'm reading right, he wants to move the include statment for inc_sha256.asp to inc_header.asp and inc_header_short.asp so it doesn't have to be a seperate include.
Go to Top of Page

Etymon
Advanced Member

United States
2395 Posts

Posted - 10 December 2007 :  12:49:08  Show Profile  Visit Etymon's Homepage
quote:
Originally posted by AnonJr

If I'm reading right, he wants to move the include statment for inc_sha256.asp to inc_header.asp and inc_header_short.asp so it doesn't have to be a seperate include.



That is correct, but config.asp as well ... but only for the files that use inc_header.asp and inc_header_short.asp as includes.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 10 December 2007 :  12:53:30  Show Profile  Visit HuwR's Homepage
any reason why ? there is nothing to be gained by doing so.
Go to Top of Page

Etymon
Advanced Member

United States
2395 Posts

Posted - 10 December 2007 :  12:59:52  Show Profile  Visit Etymon's Homepage
quote:
Originally posted by HuwR

any reason why ? there is nothing to be gained by doing so.



I have a site that I am developing for my personal use. There are some older MODs I am including that don't use inc_sha256.asp. If I had inc_sha256.asp in the header files, then I wouldn't have to worry with including it into the older MOD files. It just so happened that I noticed the same could be done with config.asp ... at least, I assume so.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 10 December 2007 :  13:34:36  Show Profile  Visit HuwR's Homepage
I can't think of any problems, so should be fine.
Go to Top of Page

Etymon
Advanced Member

United States
2395 Posts

Posted - 10 December 2007 :  15:07:40  Show Profile  Visit Etymon's Homepage
Thanks for the help Huw!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07