if ($license_status == 'valid') { if (strpos($license_sites, $current_site) === false) { if (count($license_sites_array) < $license_limit) { $license_status = '<span class="error">Activation is missing</span>'; } else { $license_status = '<span class="error">Invalid</span> - You have activated the maximum limit of sites for this license key.<br>Please get a new license key or deactivate a site for this key.<br>You can do this within <a href="' . NSS_WEBSITE_URL . '/log-in/?redirect_to=my-account" target="_blank">Your Account</a>.'; } } } /**************************************************************************** * Action Handler *****************************************************************************/ if (array_key_exists('action', $_POST)) { switch ($_POST['action']) { case 'update_base_url': saveBaseURL(); break; case 'add_license_key': $status_license_key = addLicenseKey($_POST['license_key']); break; case 'login': $login_error = adminLogin($nss); break; } } /**************************************************************************** * Begin Template *****************************************************************************/ ?> <!DOCTYPE HTML> <html>
if ($license_status == 'valid') { if (strpos($license_sites, $current_site) === false) { if (count($license_sites_array) < $license_limit) { $license_status = '<span class="error">Activation is missing</span>'; } else { $license_status = '<span class="error">Invalid</span> - You have activated the maximum limit of sites for this license key.<br>Please get a new license key or deactivate a site for this key.<br>You can do this within <a href="' . NSS_WEBSITE_URL . '/log-in/?redirect_to=my-account" target="_blank">Your Account</a>.'; } } } /**************************************************************************** * Actions *****************************************************************************/ if (array_key_exists('action', $_POST)) { switch ($_POST['action']) { case 'update_base_url': saveBaseURL('../'); break; case 'update_config': updateConfig(); break; case 'update_feedback': updateFeedback(); break; case 'update_password': $passwordError = updatePassword($_POST['admin_password']); break; case 'update_translation': updateTranslation(); break; case 'update_theme': updateTheme();