Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3875000
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:12:59+00:00 2026-05-19T22:12:59+00:00

I’ve got this script and it produces the following error: 001 Checksum failure This

  • 0

I’ve got this script and it produces the following error: 001 Checksum failure

This is the script, I don’t know what’s wrong with it, could you help me?

<?php 

/*  

  Access control for TargetPay Pay per Use  
  (C) TargetMedia 2007 

  Upload this file in the protected directory and make sure  
  that .htaccess support is enabled. 

  MODIFICATIONS IN THIS CODE ARE ALLOWED BUT NOT SUPPORTED 

  Product-ID: 28717    Generated: 16-01-2011 14:57:05 

*/ 

define ("CHECKSUM", "739b54dc26"); 
define ("ERR001", "001 Checksum failure"); 
define ("ERR002", "002 Can't open .htaccess for writing. Check rights."); 
define ("ERR003", "003 I/O Error, cannot write to .htaccess. Disk full?");

list($thispage) = explode("?", 
    "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]); 

$payscreen = "http://www.targetpay.nl/send/?id=28717&rtlo=51090". 
    "&pm=".urlencode("inline=1"). 
    "&ref=".urlencode($thispage); 

header ("Content-type: text/plain"); 

if ($_GET["checksum"] != CHECKSUM) { 
    die (ERR001); 
    } 

function ip2hex ($ip) { 
    list ($a,$b,$c,$d) = explode(".", $ip); 
    return    str_pad(dechex($a),2,"0",STR_PAD_LEFT). 
            str_pad(dechex($b),2,"0",STR_PAD_LEFT). 
            str_pad(dechex($c),2,"0",STR_PAD_LEFT). 
            str_pad(dechex($d),2,"0",STR_PAD_LEFT); 
    } 

function hex2ip ($hex) { 
    return  hexdec(substr($hex,0,2)).".". 
            hexdec(substr($hex,2,2)).".". 
            hexdec(substr($hex,4,2)).".". 
            hexdec(substr($hex,6,2)); 
    } 

function parse ($whitelist, $payscreen) { 
    $here = substr($_SERVER["SCRIPT_FILENAME"], 
        strrpos ($_SERVER["SCRIPT_FILENAME"], "/") + 1); 

    $o =    "ErrorDocument 403 $payscreen\n". 
            "<Files .htaccess>\n". 
            "Order allow,deny\n". 
            "Deny from all\n". 
            "</Files>\n". 
            "<Files $here>\n". 
            "Order allow,deny\n". 
            "Allow from all\n". 
            "</Files>\n". 
            "Order deny,allow\n". 
            "Deny from all\n"; 

    if ((!$whitelist) || ($whitelist=="empty")) { 
        return $o; } 

    $iplist = explode(",", $whitelist); 
    foreach ($iplist as $hex) { 
        $ip = hex2ip ($hex); 
        if ($ip) { 
            $o .= "Allow from $ip\n"; 
            } 
        } 
    return $o; 
    } 

if ($_GET["register"]) { 
    $fp = @fopen(".htaccess", "w+"); 
    if (!$fp) { 
        die (ERR002); 
        } 
    if (!@fwrite ($fp, parse($_GET["register"],$payscreen))) { 
        die (ERR003); 
        } 
    @fclose ($fp); 
    echo "000 OK"; 
    } 

if ($_GET["reset"]) { 
    @unlink (".htaccess"); 
    $fp = @fopen(".htaccess", "w+"); 
    if (!$fp) { 
        die (ERR002); 
        } 
    if (!@fwrite ($fp, parse("",$payscreen))) { 
        die (ERR003); 
        } 
    @fclose ($fp); 
    echo "000 RESET OK"; 
    } 

if ($_GET["dump"]) { 
    echo @implode("",file(".htaccess")); 
    echo "\n-EOF-"; 
    } 
?>

Many thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T22:12:59+00:00Added an answer on May 19, 2026 at 10:12 pm

    i dont think its an error. actually

    if($_GET["checksum"] != CHECKSUM) { 
        die (ERR001);
    }
    

    this condition is getting true, so the output not error.
    so just check the GET data from wherever you are getting it initially.Its not a programmatic error for sure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.