echo "</b> \r\n\t\t<input name=\"leafletmapsmarkerpro_license_key\" type=\"text\" style=\"width:265px;"; echo $O1y; echo "\" value=\""; echo $lx; echo "\" />\r\n\r\n\t\t"; $l20 = ""; if (!extension_loaded("suhosin")) { if (!defined("SUHOSIN_PATCH")) { if (function_exists("phpinfo")) { ob_start(); phpinfo(INFO_GENERAL); phpinfo(INFO_ENVIRONMENT); $phpinfo = ob_get_contents(); ob_end_clean(); $list = strip_tags($phpinfo); $scrapephp = new Ou(); $l20 = $scrapephp->scrape_phpinfo($list, "HTTP_HOST"); } } } $l20 = $l20 ? $l20 : $_SERVER["HTTP_HOST"]; $l20 = $l20 ? $l20 : "Unknown"; if (is_multisite()) { echo "<br/><br/><strong>" . __("WordPress Multisite settings", "lmm") . "</strong><br/>"; echo __("Domain to activate", "lmm") . ": <input name=\"leafletmapsmarkerpro_domain_to_activate\" type=\"text\" style=\"width:265px;\" value=\"\" placeholder=\"" . $l20 . "\"/><br/>"; echo sprintf(__("For a list of current license instances, please login to the customer area at %1\$s", "lmm"), "<a href=\"https://www.mapsmarker.com/login\" target=\"_blank\">mapsmarker.com/login</a><br/><br/>"); } echo "\r\n\t\t<input type=\"submit\" class=\"button-primary\" value=\""; echo $l1z; echo "\" "; echo $O1z;
function maps_marker_pro_license_activation_page() { if (isset($_POST["maps_marker_pro_register_free"])) { $lu = new Ou(); $l15 = ""; $O15 = array(); if (!$_POST["maps_marker_pro_first_name"]) { $O15[] = __("Please enter your first name to continue.", "lmm"); } if (!$_POST["maps_marker_pro_last_name"]) { $O15[] = __("Please enter your last name to continue.", "lmm"); } if (!$_POST["maps_marker_pro_email"]) { $O15[] = __("Please enter your email to continue.", "lmm"); } if (sanitize_email($_POST["maps_marker_pro_email"]) !== $_POST["maps_marker_pro_email"]) { $O15[] = __("Please enter a valid email to continue (or get an anonymous trial license key)", "lmm"); } if (!$_POST["maps_marker_pro_tos"]) { $O15[] = __("You must agree to the TOS to continue.", "lmm"); } if (empty($O15)) { $qs = "mod=3rd_party&task=api&api_key=50a2094314fbc82e712b3f9b21f00745&email=" . urlencode(sanitize_email($_POST["maps_marker_pro_email"])) . "&first_name=" . urlencode($_POST["maps_marker_pro_first_name"]) . "&last_name=" . urlencode($_POST["maps_marker_pro_last_name"]) . "&company_name=" . urlencode($_POST["maps_marker_pro_first_name"]) . "%20" . urlencode($_POST["maps_marker_pro_last_name"]) . "&username="******"maps_marker_pro_last_name"], $l16 = TRUE) . substr(sanitize_user($_POST["maps_marker_pro_first_name"], $l16 = TRUE), 0, 1)); $O16 = $lu->l17("https://www.mapsmarker.com/store/api/index.php", $qs); if (strtolower(substr($O16, 0, 021)) == "connection error:") { $O15[] = $O16; } else { if (strtolower(substr($O16, 0, 5)) == "error") { $O15[] = $O16; } else { $O16 = json_decode($O16); update_option("leafletmapsmarkerpro_license_key", $lu->lx = $O16[0]); update_option("leafletmapsmarkerpro_license_local_key", ""); update_option("leafletmapsmarkerpro_license_key_trial", $lu->lx = $O16[0]); $l15 = __("Your new license was registered successfully!", "lmm"); } } } } else { if (isset($_POST["maps_marker_pro_register_free_anonym"])) { $lu = new Ou(); $l15 = ""; $O15 = array(); if (!$_POST["maps_marker_pro_tos"]) { $O15[] = __("You must agree to the TOS to continue.", "lmm"); } if (empty($O15)) { $qs = "mod=3rd_party&task=api&api_key=f8b3782fef25c3f68e809f621d193063"; $O16 = $lu->l17("https://www.mapsmarker.com/store/api/index.php", $qs); if (strtolower(substr($O16, 0, 021)) == "connection error:") { $O15[] = $O16; } else { if (strtolower(substr($O16, 0, 5)) == "error") { $O15[] = $O16; } else { $O16 = json_decode($O16); update_option("leafletmapsmarkerpro_license_key", $lu->lx = $O16[0]); update_option("leafletmapsmarkerpro_license_local_key", ""); update_option("leafletmapsmarkerpro_license_key_trial", $lu->lx = $O16[0]); $l15 = __("Your new license was registered successfully!", "lmm"); } } } } else { if (!function_exists("wp_verify_nonce")) { require_once ABSPATH . "wp-includes/pluggable.php"; } $O17 = isset($_POST["maps_marker_pro_license"]) && wp_verify_nonce($_POST["maps_marker_pro_license"], "maps_marker_pro_license"); if ($O17) { update_option("leafletmapsmarkerpro_license_local_key", ""); update_option("leafletmapsmarkerpro_license_key", $_POST["leafletmapsmarkerpro_license_key"]); } $lu = Op(TRUE); } } include dirname(__FILE__) . "/leaflet-license.php"; return TRUE; }
static function buildAmtcCommandline(Job $job) { $ou = Ou::find_one($job->ou_id); $optionset = Optionset::find_one($ou->optionset_id); // - throw error if optionset is nil (fresh install...) // - maxThreads was a per-optionset setting, but should be global/config $cmd_opts = array('-j'); // amtc shall always produce parsable json output $optionset->sw_scan22 && ($cmd_opts[] = '-s'); $optionset->sw_scan3389 && ($cmd_opts[] = '-r'); $optionset->sw_v5 && ($cmd_opts[] = '-5'); $optionset->sw_dash && ($cmd_opts[] = '-d'); $optionset->sw_usetls && ($cmd_opts[] = '-g'); $optionset->sw_skiptcertchk && ($cmd_opts[] = '-n'); $optionset->opt_timeout && ($cmd_opts[] = '-t ' . $optionset->opt_timeout); $optionset->opt_passfile && ($cmd_opts[] = '-p ' . $optionset->opt_passfile); $optionset->opt_cacertfile && ($cmd_opts[] = '-c ' . $optionset->opt_cacertfile); $job->amtc_delay && ($cmd_opts[] = '-w ' . $job->amtc_delay); // decide whether to act on whole OU or a given list of hosts if ($job->amtc_hosts) { $hosts = self::resolveHostIds($job->amtc_hosts); } else { $hosts = self::getOuHosts($job->ou_id); } $cmd = sprintf('%s %s -%s %s', AMTC_BIN, implode(' ', $cmd_opts), $job->amtc_cmd, $hosts); return $cmd; }