Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,380
    Thanks
    264
    Thanked 32 Times in 31 Posts

    checksum question

    not sure if this should go in the perl section or php since this was in my php install file..

    but what exactly does this do during the software install process..
    and why is it doing the checksum on google.. just curious... its buggen me...


    Code:
    $check_sum = getChecksum('www.google.com');
    $cron_pr_perl = ('6387585835' == $check_sum) ? 0 : 1;
    i changed the number to see if i could get it to bomb on me to figure out what it did and no errors so what is that random number (is that the checksum md5 valueof the install page, im lost as to the intent of these two lines.. and what the values mean.

  • #2
    Super Moderator
    Join Date
    Feb 2009
    Location
    England
    Posts
    539
    Thanks
    8
    Thanked 63 Times in 54 Posts
    What software was it in, what file was it in?
    lamped.co.uk :: Design, Development & Hosting
    marcgray.co.uk :: Technical blog

  • #3
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,380
    Thanks
    264
    Thanked 32 Times in 31 Posts
    its an affiliate software open source, and its in the install.php

    here is the function

    Code:
    function get_checksum($aUrl)
    {
    	return '6'.GCH(strord('info:'.$aUrl));
    }
    Last edited by durangod; 12-01-2010 at 07:26 PM.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •