---- Do NOT edit anything below, unless you know what you're doing. --------------------------------------------------------*/ @ignore_user_abort(true); header("HTTP/1.0 200 OK"); header("Content-Type: text/plain; charset=UTF-8"); while (@ob_end_clean()) { } // Clean any existing output buffers. if (empty($_POST) || !is_array($_POST)) { exit; } foreach ($config as $_key => $_value) { $config[strtolower($_key)] = $_value; } unset($_key, $_value); $_p = get_magic_quotes_gpc() ? stripslashes_deep($_POST) : $_POST; $_p = trim_deep($_p); if ((preg_match("/^(.+?)(?:\\||\$)/i", (string) @$_p["custom"], $_m) || preg_match("/~(.+?)~/i", (string) @$_p["rp_invoice_id"], $_m)) && !empty($config[$_m[1]])) { $_paypal_ipn_server_ip = $_ip = "173.0.81.1"; // See list of IPs here: <https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/howto_api_golivechecklist>. echo trim(curlpsr($_url = $config[$_m[1]], http_build_query($_p, null, "&"), 20, 20, array("REMOTE_ADDR: " . $_ip, "HTTP_X_FORWARDED_FOR: " . $_ip))); } unset($_paypal_ipn_server_ip, $_ip, $_url, $_m); /* ---- Do NOT edit anything below, unless you know what you're doing. --------------------------------------------------------*/ function trim_deep($value = FALSE) { return is_array($value) ? array_map("trim_deep", $value) : trim((string) $value); } function stripslashes_deep($value = FALSE) { return is_array($value) ? array_map("stripslashes_deep", $value) : stripslashes((string) $value);
/** * Trim from string or array * * @param mixed array or string to trim * * @return mixed timmed value */ function trim_deep($value) { if (is_array($value)) { foreach ($value as $key => $val) { $value[$key] = trim_deep($val); } } elseif (is_string($value)) { $value = trim($value); } return $value; }
print "-error 1"; } } $thelhe = strpos($data, "Phonebook"); // dump ($thelhe); if ($thelhe > 0) { // got it! $str = substr($data, $thelhe, 500); // substr (string, start, length ) // dump ($str); $str0 = str_replace(' ', ' ', $str); $str1 = strip_tags($str0, '<td>'); // keep separator $str2 = str_replace('<td>', '\\t', $str1); $str3 = strip_tags($str2); $arr = trim_deep(explode('\\t', $str3, 10)); array_shift($arr); // 1st element is trash - drop it // dump ($arr); $str3 = implode(';', $arr); // dump ($str3); print $str3; // finished } else { print "-error 2 " . strlen($data) . $url; } // not found /* array(4) { [0]=> string(105) "Phonebook results for 5052664450#mr{width:40%}#res #mr{width:auto}"
//Anzahl der Datensaetze, die in einem Rutsch gelesen werden //Bausteine $config['homepage'] = 'http://mysqldumper.net'; $languagepacks_ref = 'http://forum.mysqldumper.de/downloads.php?cat=9'; $stylepacks_ref = 'http://forum.mysqldumper.de/downloads.php?cat=3'; $nl = "\n"; $mysql_commentstring = '--'; //config-Variablen, die nicht gesichert werden sollen $config_dontsave = array('homepage', 'max_execution_time', 'safe_mode', 'magic_quotes_gpc', 'disabled', 'phpextensions', 'php_ram', 'zlib', 'tuning_add', 'tuning_sub', 'time_buffer', 'perlspeed', 'cron_configurationfile', 'dbconnection', 'version', 'mysql_possible_character_sets', 'mysql_standard_character_set', 'config_file', 'upload_max_filesize', 'mysql_can_change_encoding', 'cron_samedb', 'paths', 'files'); // Automatisches entfernen von Slashes und Leerzeichen vorn und hinten abschneiden if (1 == get_magic_quotes_gpc()) { $_POST = stripslashes_deep($_POST); $_GET = stripslashes_deep($_GET); } $_POST = trim_deep($_POST); $_GET = trim_deep($_GET); function v($t) { echo '<br>'; if (is_array($t) || is_object($t)) { echo '<pre>'; print_r($t); echo '</pre>'; } else { echo $t; } } function getServerProtocol() { return isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ? 'https://' : 'http://'; }