Author |
Topic  |
|
Etymon
Advanced Member
    
United States
2395 Posts |
Posted - 10 December 2007 : 12:20:01
|
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
|
not entirely sure what your question is. |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 10 December 2007 : 12:44:41
|
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. |
 |
|
Etymon
Advanced Member
    
United States
2395 Posts |
Posted - 10 December 2007 : 12:49:08
|
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. |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 10 December 2007 : 12:53:30
|
any reason why ? there is nothing to be gained by doing so. |
 |
|
Etymon
Advanced Member
    
United States
2395 Posts |
Posted - 10 December 2007 : 12:59:52
|
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. |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 10 December 2007 : 13:34:36
|
I can't think of any problems, so should be fine. |
 |
|
Etymon
Advanced Member
    
United States
2395 Posts |
Posted - 10 December 2007 : 15:07:40
|
Thanks for the help Huw!  |
 |
|
|
Topic  |
|