Ejemplo n.º 1
0
function saveLicense()
{
    print_r($_REQUEST);
    $serial = $_REQUEST['serial'];
    $host = $_REQUEST['host'];
    $d = new Delegate();
    $DIAGRAMO = $d->settingsGetByKeyNative('DIAGRAMO');
    $url = $DIAGRAMO . "/dcentral/activator.php?serial={$serial}&host={$host}";
    #print 'URL: ' . $url;
    $license = get($url);
    #print 'License: ' . $license;
    #exit();
    $d->settingsSaveNative('LICENSE', $license);
    addMessage("App activated");
    redirect('../license.php');
    exit(0);
}