Jump to content

Help Me With The License Addon


Jaber

Recommended Posts

Hello Every one im really confused i cannot change my last license system with the whmcs one can any one give me an idea how to do it these are two fucntions of last system

function check_($check) {
    $siteurl           = urlencode(getBaseUrl());
    $arrContextOptions = array(
        "ssl" => array(
            "verify_peer" => false,
            "verify_peer_name" => false
        )
    );
    $file              = file_get_contents('http://www.muwebsite.com/purchase.php?code=' . $check . '&url=' . $siteurl, false, stream_context_create($arrContextOptions));
	$check = array('status' => 'SUCCESS', 'url' => $siteurl, 'code' => $check);
    return $check;
}
function check_success($check) {
    $siteurl           = urlencode(getBaseUrl());
    $arrContextOptions = array(
        "ssl" => array(
            "verify_peer" => false,
            "verify_peer_name" => false
        )
    );
    $file              = file_get_contents('http://www.muwebsite.com/purchase.php?code=' . $check . '&success=true&url=' . $siteurl, false, stream_context_create($arrContextOptions));
	$check = array('status' => 'SUCCESS', 'url' => $siteurl, 'code' => $check);
    return $check;
}

If I delete that code what i insert then of whmcs code what i must do there is another file of install.php 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated