registerFunction("inspectLicense"); $in_xAjax = false; $xAjax_objResponse; include('user_inc.htm'); // AJAX function for getting license key info function inspectLicense($keyString) { global $in_xAjax; $user = $_SESSION['user']; $xAjax_objResponse = new xajaxResponse(); $in_xAjax = true; // Return user to login screen if timed-out CheckLoggedOut(); $licenses = get_license_key_info($user, $keyString); $licenseString = ""; foreach($licenses as $license) { $licenseString = $licenseString.$license.":"; } if(count($licenses) > 0) { $licenseString = substr($licenseString, 0, strlen($licenseString) - 1); } $xAjax_objResponse->script("licenseString='".$licenseString."'; finishedCheck=true;"); $in_xAjax = false; return $xAjax_objResponse; } $xajax->processRequest(); if ($_SERVER[REQUEST_METHOD] == "POST") { error_log("_POST = ". print_r($_POST, true) ); $operationInProgress = true; $status = new ReturnStatus(); if( $_POST['doingReset'] == "1" ) { reset_ar_temp_license($user); print $status->out(); } else { // Handle the progress screen if opened. error_log("Applying license(s)..."); $newLicense = trim($_POST['licenseKey']); set_licensed_feature($user, $newLicense ); if($_POST["requireReboot"] == "yes") { reboot($user); print $status->closeMsg( 7, "Licensed page" ); } else { print $status->closeMsg( 5, "Licensed page" ); } } return; } $features = get_licensed_features($user); $counts = get_library_summary_info($user); // See if we should show the reset 90 Day AR license button. $bShowResetButton = false; if (file_exists("/var/.tar")) $bShowResetButton = true; ?> Setup License printJavascript(); ?>
Setup - License
Enter a new license key for added features:

'); echo ('
'); } ?>
Feature: Date licensed: Quantity:
Description ?> InsDate ?> Value ?> ValueDescription ?>
role == SERVICE_ROLE ) { //echo ('

Enter New License Key: