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
 Code Support: ASP (Non-Forum Related)
 Help with TNX code on ASP site
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 4

AnonJr
Moderator

United States
5768 Posts

Posted - 04 December 2007 :  23:53:39  Show Profile  Visit AnonJr's Homepage
Ok. I'm a little busy at the moment or I'd offer. If you haven't found anybody to help in a week, let me know and I should have the time to do it then.
Go to Top of Page

MammaRose
Starting Member

United States
32 Posts

Posted - 05 December 2007 :  10:49:08  Show Profile  Visit MammaRose's Homepage
I have a quote from somebody that it will take from between 5 hours and 2 days and they want $80. That seems high, what do you think?

Cross Tattoos
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 05 December 2007 :  11:06:26  Show Profile  Visit AnonJr's Homepage
I'd believe the 5 hours long before I'd believe the 2 days. While its not trivial, its not that extensive - unless there are some other parts that I'm missing. I'd guesstimate that it will probably take 1-3 hrs to convert and maybe 2 hrs or so to test. Again, that's assuming that the only code that needs to be taken care of is that little bit of JScript. Incorporating the MD5 stuff so it doesn't conflict with the SHA256 stuff is probably another 2 hrs or so (including testing).

As for the price, you figure that where I work the average programmer gets between $18 to $24 USD an hour before taxes it doesn't sound so bad. I'm really the last person to ask about pricing as I haven't the foggiest idea what to charge for freelance work. Its part of whats kept me from going that route... but that's another topic entirely.
Go to Top of Page

MammaRose
Starting Member

United States
32 Posts

Posted - 05 December 2007 :  17:30:47  Show Profile  Visit MammaRose's Homepage
I took him up on his offer of $80 to do the code. He says that he will be done by tomorrow. I will let you know if it works out.

Cross Tattoos
Go to Top of Page

MammaRose
Starting Member

United States
32 Posts

Posted - 06 December 2007 :  13:09:45  Show Profile  Visit MammaRose's Homepage
OK, I got my code back in VBScript and it loads properly when outside the forum. How do I incorporate the md5 stuff so it does not conflict with SHA256? Can I remove the lines of code that are duplicates?

Cross Tattoos
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 06 December 2007 :  13:56:43  Show Profile  Visit AnonJr's Homepage
After a quick look, it seems like you could comment out the following portion of md5.asp:


Private Const BITS_TO_A_BYTE=8
Private Const BYTES_TO_A_WORD=4
Private Const BITS_TO_A_WORD=32
Private m_lOnBits(30)
Private m_l2Power(30)
m_lOnBits(0)=CLng(1)
m_lOnBits(1)=CLng(3)
m_lOnBits(2)=CLng(7)
m_lOnBits(3)=CLng(15)
m_lOnBits(4)=CLng(31)
m_lOnBits(5)=CLng(63)
m_lOnBits(6)=CLng(127)
m_lOnBits(7)=CLng(255)
m_lOnBits(8)=CLng(511)
m_lOnBits(9)=CLng(1023)
m_lOnBits(10)=CLng(2047)
m_lOnBits(11)=CLng(4095)
m_lOnBits(12)=CLng(8191)
m_lOnBits(13)=CLng(16383)
m_lOnBits(14)=CLng(32767)
m_lOnBits(15)=CLng(65535)
m_lOnBits(16)=CLng(131071)
m_lOnBits(17)=CLng(262143)
m_lOnBits(18)=CLng(524287)
m_lOnBits(19)=CLng(1048575)
m_lOnBits(20)=CLng(2097151)
m_lOnBits(21)=CLng(4194303)
m_lOnBits(22)=CLng(8388607)
m_lOnBits(23)=CLng(16777215)
m_lOnBits(24)=CLng(33554431)
m_lOnBits(25)=CLng(67108863)
m_lOnBits(26)=CLng(134217727)
m_lOnBits(27)=CLng(268435455)
m_lOnBits(28)=CLng(536870911)
m_lOnBits(29)=CLng(1073741823)
m_lOnBits(30)=CLng(2147483647)

m_l2Power(0)=CLng(1)
m_l2Power(1)=CLng(2)
m_l2Power(2)=CLng(4)
m_l2Power(3)=CLng(8)
m_l2Power(4)=CLng(16)
m_l2Power(5)=CLng(32)
m_l2Power(6)=CLng(64)
m_l2Power(7)=CLng(128)
m_l2Power(8)=CLng(256)
m_l2Power(9)=CLng(512)
m_l2Power(10)=CLng(1024)
m_l2Power(11)=CLng(2048)
m_l2Power(12)=CLng(4096)
m_l2Power(13)=CLng(8192)
m_l2Power(14)=CLng(16384)
m_l2Power(15)=CLng(32768)
m_l2Power(16)=CLng(65536)
m_l2Power(17)=CLng(131072)
m_l2Power(18)=CLng(262144)
m_l2Power(19)=CLng(524288)
m_l2Power(20)=CLng(1048576)
m_l2Power(21)=CLng(2097152)
m_l2Power(22)=CLng(4194304)
m_l2Power(23)=CLng(8388608)
m_l2Power(24)=CLng(16777216)
m_l2Power(25)=CLng(33554432)
m_l2Power(26)=CLng(67108864)
m_l2Power(27)=CLng(134217728)
m_l2Power(28)=CLng(268435456)
m_l2Power(29)=CLng(536870912)
m_l2Power(30)=CLng(1073741824)


I would comment it out instead of deleting it so you can uncomment it if you use a copy of the md5.asp page somewhere outside of the forum.

Just for clarification, are you using the same md5.asp page anywhere other than for the forum?
Go to Top of Page

MammaRose
Starting Member

United States
32 Posts

Posted - 06 December 2007 :  14:14:21  Show Profile  Visit MammaRose's Homepage
md5 is only in 1 place, and is only called by banner1.asp - but I want to be able to #include it on the inc_site_left so that any page in my forum will have the script running

Cross Tattoos
Go to Top of Page

MammaRose
Starting Member

United States
32 Posts

Posted - 06 December 2007 :  14:34:34  Show Profile  Visit MammaRose's Homepage
Well, we are getting closer. When I comment those lines out, now I get the folling error:

Microsoft VBScript runtime error '800a01f5'

Illegal assignment: 'i'

/forum/ncaa/tennessee/forum/inc_func_common.asp, line 255

Cross Tattoos

Edited by - MammaRose on 06 December 2007 14:35:05
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 06 December 2007 :  15:19:27  Show Profile  Visit AnonJr's Homepage
Did you make any changes to inc_func_common.asp?
Go to Top of Page

MammaRose
Starting Member

United States
32 Posts

Posted - 06 December 2007 :  15:22:07  Show Profile  Visit MammaRose's Homepage
nope - no changes to inc_func_common.

I noticed that there were some lines in md5 that use i so I changed them to J. FINALLY the forum loads, but I can't get logged in, I suppose J is used somewhere else.

Cross Tattoos
Go to Top of Page

MammaRose
Starting Member

United States
32 Posts

Posted - 06 December 2007 :  16:00:48  Show Profile  Visit MammaRose's Homepage
I think I just had an AHA moment. MD5 and SHA256 are both just ways to encrypt passwords etc right. Can I just use SHA256 instead of MD5?

Cross Tattoos
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 06 December 2007 :  16:30:13  Show Profile  Visit AnonJr's Homepage
Not quite. While they are two different ways to encrypt passwords, they are two different ways of encrypting data. The TNX code is expecting MD5-encoded data, not SHA256-encoded data - meaning that it would ultimately fail.

Are you getting any errors when you try to log in or is it just looping back to the page you were originally trying to log in from?
Go to Top of Page

MammaRose
Starting Member

United States
32 Posts

Posted - 06 December 2007 :  16:46:33  Show Profile  Visit MammaRose's Homepage
It says that the username and password are incorrect, when I know they ARE correct.

I just tried to have it send me my password just to confirm that I am not loosing my mind...and I got an error that: Illegal assignment: 'j' /forum/ncaa/tennessee/forum/inc_func_posting.asp, line 60

So I suppose I will try another letter..Do you know of any that might be available or is this a trial and error thing?

Cross Tattoos
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 06 December 2007 :  17:12:06  Show Profile  Visit AnonJr's Homepage
Post a link to a .txt version of the code. It would be better to use a more descriptive name than "i" or "j" - mostly because it precludes situations like this. =/
Go to Top of Page

MammaRose
Starting Member

United States
32 Posts

Posted - 06 December 2007 :  17:15:06  Show Profile  Visit MammaRose's Homepage
I think I have it figured out. I did the "forgot my password" thing and it works now. Now I have to wait to see if the links start showing up from TNX.

Cross Tattoos
Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Previous Page | Next Page
 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