{"id":1261,"date":"2017-09-27T19:28:53","date_gmt":"2017-09-27T17:28:53","guid":{"rendered":"http:\/\/handball.ghb-hamburg.de\/?p=1261"},"modified":"2018-11-05T20:21:47","modified_gmt":"2018-11-05T19:21:47","slug":"1261","status":"publish","type":"post","link":"https:\/\/ghb-hamburg.de\/handball\/1261\/","title":{"rendered":""},"content":{"rendered":"<style>\nth, td {\n  border:1px solid #F2F2F2;\n  padding:2px 10px;\n}\n<\/style>\n[insert_php]\n\/\/ Datenquelle<br \/>\n$host = &#8222;http:\/\/spo.handball4all.de\/Spielbetrieb\/?A=g_class&#038;orgID=81&#038;orgGrpID=81&#038;score=37926&#8220;;<br \/>\n$allowed_tags = array(&#8222;html&#8220;, &#8222;body&#8220;, &#8222;b&#8220;, &#8222;br&#8220;, &#8222;em&#8220;, &#8222;hr&#8220;, &#8222;i&#8220;, &#8222;li&#8220;, &#8222;ol&#8220;, &#8222;p&#8220;, &#8222;s&#8220;, &#8222;span&#8220;, &#8222;table&#8220;, &#8222;tr&#8220;, &#8222;td&#8220;, &#8222;u&#8220;, &#8222;ul&#8220;);<\/p>\n<p>\/\/ Wir holen uns die Inhalte<br \/>\n$filestring = file_get_contents($host);<\/p>\n<p>\/\/ Welcher Bereich<br \/>\n$startpos = 0; \/\/erstes Zeichen<\/p>\n<p>\/\/ und nehmen eine EINDEUTIGE(!) Stelle (als Bsp. hier die Tabelle mit 100%)<br \/>\n while($pos = strpos($filestring, &#8222;<\/p>\n<div align=\\\"center\\\" style=\\\"margin:10px 0px 10px 0px ;\\\">\n<h1>&#8222;, $startpos))<\/p>\n<p>{<br \/>\n    \/\/der Bereich endet mit (hier: <\/table>\n<p>) was wir l\u00f6schen<br \/>\n    $string = substr($filestring, $pos, strpos($filestring, &#8222;<\/p>\n<div align=\\\"center\\\"\", $pos + 1) - $pos);\n\n\/\/ jetzt schliessen wir den Bereich und verweisen zuvor nat\u00fcrlich(!) auf die Quelle l\u00f6lz   \n    echo strip_tags($string, '\n\n<table>\n<th>\n<tr>\n<td>\n<col>\n<div>\n<h1>\n<colgroup>&#8218;).&#8220;<br \/>geholt von: <a href=\\\"http:\/\/spo.handball4all.de\\\">http:\/\/spo.handball4all.de<\/a>&#8222;;<br \/>\n    $startpos = $pos + 1;<br \/>\n}<br \/>\n [\/insert_php]\n","protected":false},"excerpt":{"rendered":"<p>[insert_php] \/\/ Datenquelle $host = &#8222;http:\/\/spo.handball4all.de\/Spielbetrieb\/?A=g_class&#038;orgID=81&#038;orgGrpID=81&#038;score=37926&#8220;; $allowed_tags = array(&#8222;html&#8220;, &#8222;body&#8220;, &#8222;b&#8220;, &#8222;br&#8220;, &#8222;em&#8220;, &#8222;hr&#8220;, &#8222;i&#8220;, &#8222;li&#8220;, &#8222;ol&#8220;, &#8222;p&#8220;, &#8222;s&#8220;, &#8222;span&#8220;, &#8222;table&#8220;, &#8222;tr&#8220;, &#8222;td&#8220;, &#8222;u&#8220;, &#8222;ul&#8220;); \/\/ Wir holen uns die Inhalte $filestring = file_get_contents($host); \/\/ Welcher Bereich $startpos = 0;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50],"tags":[],"class_list":["post-1261","post","type-post","status-publish","format-standard","hentry","category-weiblich-a-tabelle"],"_links":{"self":[{"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/posts\/1261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/comments?post=1261"}],"version-history":[{"count":2,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/posts\/1261\/revisions"}],"predecessor-version":[{"id":1763,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/posts\/1261\/revisions\/1763"}],"wp:attachment":[{"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/media?parent=1261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/categories?post=1261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/tags?post=1261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}