vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   MD5 Version File Generator (https://vborg.vbsupport.ru/showthread.php?t=108567)

Marco van Herwaarden 02-22-2006 10:17 AM

Thx Floris

msgotit 03-24-2006 04:25 PM

Probably a user error, but it wasn't working so I replace this line:

PHP Code:

$filehash = @md5_file(DIR $productfile['filename']); 

With this:

PHP Code:

$filehash = @md5(str_replace("\r\n""\n"file_get_contents(DIR $productfile['filename']))); 

That seemed to solve my problem... Is there a reason? Or just user error.

IamLoBAS 03-28-2006 01:15 PM

Sorry, I don't have AdminCP->Plugin System->Version File Manager. So I can't click it.

Pls., Help me.

msgotit 03-29-2006 12:57 AM

Take the debug="1" out of the navoptions tab. I think that will do it.

IamLoBAS 03-29-2006 06:41 AM

Quote:

Originally Posted by msgotit
Take the debug="1" out of the navoptions tab. I think that will do it.

Thanks msgotit. I already saw it. :banana: OK. I could made MD5 then How do I compare it?

msgotit 03-29-2006 12:59 PM

When you click on the diagnostic tool and suspect version, the files that you have done this too should no longer show up as suspect. If it isn't doing what it is supposed to it will say that they don't contain the expected contents.

IamLoBAS 03-30-2006 06:29 AM

Quote:

Originally Posted by msgotit
When you click on the diagnostic tool and suspect version, the files that you have done this too should no longer show up as suspect. If it isn't doing what it is supposed to it will say that they don't contain the expected contents.

Thanks very much for your ans. msgotit :)

IamLoBAS 04-02-2006 06:20 AM

Quote:

Originally Posted by msgotit
Probably a user error, but it wasn't working so I replace this line:

PHP Code:

$filehash = @md5_file(DIR $productfile['filename']); 

With this:

PHP Code:

$filehash = @md5(str_replace("\r\n""\n"file_get_contents(DIR $productfile['filename']))); 

That seemed to solve my problem... Is there a reason? Or just user error.

Thanks very much for your mod. :banana:

Marco van Herwaarden 05-12-2006 01:58 PM

Quote:

Originally Posted by msgotit
Probably a user error, but it wasn't working so I replace this line:

PHP Code:

$filehash = @md5_file(DIR $productfile['filename']); 

With this:

PHP Code:

$filehash = @md5(str_replace("\r\n""\n"file_get_contents(DIR $productfile['filename']))); 

That seemed to solve my problem... Is there a reason? Or just user error.

And that still gives you a valid MD5?

If you don't tell what was not working, i can't fix it.

msgotit 05-25-2006 04:20 PM

I'm an idiot. Sorry about that and sorry that I didn't respond sooner, when I would run the md5 generator on the files, then go back to the diagnostic tools it would say that the file did not contain the expected content. So what I did was go into the code in vbulletin and grab the function that they were using and it seemed to work, like I said it very likely could be user error but it didn't seem to create an md5 hash that matched what vbulletin would get. Sorry about the lack of explanation, I hate it when people do that ;)

Mark


All times are GMT. The time now is 01:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01065 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete