<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://www.vms-tutorial.de/skins/common/feed.css?116"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Minus Bug - Versionsgeschichte</title>
		<link>http://www.vms-tutorial.de/wiki/Minus_Bug?action=history</link>
		<description>Versionsgeschichte für diese Seite in VMS1 Tutorial</description>
		<language>de</language>
		<generator>MediaWiki 1.12.4</generator>
		<lastBuildDate>Fri, 20 Nov 2026 20:50:35 GMT</lastBuildDate>
		<atom:link href="http://www.vms-tutorial.de/wiki/Minus_Bug?action=history&amp;feed=rss" rel="self" type="application/rss+xml" />
		<item>
			<title>Jpwfour um 22:22, 20. Sep. 2012</title>
			<link>http://www.vms-tutorial.de/index.php?title=Minus_Bug&amp;diff=982&amp;oldid=prev</link>
			<guid>http://www.vms-tutorial.de/index.php?title=Minus_Bug&amp;diff=982&amp;oldid=prev</guid>
			<description>&lt;p&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Version vom 22:22, 20. Sep. 2012&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 73:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 73:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Dadurch ist gewährleistet, dass in der Variable '''$einsatz''' auch nur die Zahleninterpretation der Eingabe steht, und nicht ein beliebieger Text.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Dadurch ist gewährleistet, dass in der Variable '''$einsatz''' auch nur die Zahleninterpretation der Eingabe steht, und nicht ein beliebieger Text.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Alternativ dazu kann man die Methoden '''intval()''', '''abs()''', '''round()''' etc. benutzen, um einen Integer zu erhalten.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Kategorie:FAQ]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Kategorie:FAQ]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Thu, 20 Sep 2012 22:22:37 GMT</pubDate>			<dc:creator>Jpwfour</dc:creator>			<comments>http://www.vms-tutorial.de/wiki/Diskussion:Minus_Bug</comments>		</item>
		<item>
			<title>Jpwfour um 21:30, 20. Sep. 2012</title>
			<link>http://www.vms-tutorial.de/index.php?title=Minus_Bug&amp;diff=981&amp;oldid=prev</link>
			<guid>http://www.vms-tutorial.de/index.php?title=Minus_Bug&amp;diff=981&amp;oldid=prev</guid>
			<description>&lt;p&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Version vom 21:30, 20. Sep. 2012&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 61:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 61:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&amp;lt;?php&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&amp;lt;?php&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;//einige Zeilen Code am Anfang&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;//einige Zeilen Code am Anfang&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;$einsatz = $_POST['bet'];&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;$einsatz = &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;(int)&lt;/ins&gt;$_POST['bet'];&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;if(!in_array($einsatz, array(100,1000,2000,5000) ) )die(); //neue zeile, hier einsätze auswechseln&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;if(!in_array($einsatz, array(100,1000,2000,5000) ) )die(); //neue zeile, hier einsätze auswechseln&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;//restlicher Code&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;//restlicher Code&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 67:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 67:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Funktioniert natürlich analog in dem Fall, dass in der ganzen Datei die $_GET oder $_POST Variable verwendet wird:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Funktioniert natürlich analog in dem Fall, dass in der ganzen Datei die $_GET oder $_POST Variable verwendet wird:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;if(!in_array($_GET['pool'], array(100,1000,2000,5000) ) )die(); &amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;if(!in_array($_GET['pool'], array(100,1000,2000,5000) ) )die(); &amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Zusätzlich sollte immer darauf geachtet werden, Benutzereingaben in das richtige &amp;quot;Format&amp;quot; umzuwandeln. Im Beispiel geschieht dies durch einen &amp;quot;'''Cast'''&amp;quot;, also eine Typumwandlung, in den gewünschten Datentyp. Im Falle eines Einsatzes ist dies normalerweise immer eine Zahl ('''int''' in PHP).&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;$einsatz = (int)$_POST['bet'];&amp;lt;/source&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Dadurch ist gewährleistet, dass in der Variable '''$einsatz''' auch nur die Zahleninterpretation der Eingabe steht, und nicht ein beliebieger Text.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Kategorie:FAQ]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Kategorie:FAQ]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Thu, 20 Sep 2012 21:30:52 GMT</pubDate>			<dc:creator>Jpwfour</dc:creator>			<comments>http://www.vms-tutorial.de/wiki/Diskussion:Minus_Bug</comments>		</item>
		<item>
			<title>Jpwfour um 13:03, 5. Sep. 2012</title>
			<link>http://www.vms-tutorial.de/index.php?title=Minus_Bug&amp;diff=968&amp;oldid=prev</link>
			<guid>http://www.vms-tutorial.de/index.php?title=Minus_Bug&amp;diff=968&amp;oldid=prev</guid>
			<description>&lt;p&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Version vom 13:03, 5. Sep. 2012&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 67:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 67:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Funktioniert natürlich analog in dem Fall, dass in der ganzen Datei die $_GET oder $_POST Variable verwendet wird:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Funktioniert natürlich analog in dem Fall, dass in der ganzen Datei die $_GET oder $_POST Variable verwendet wird:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;if(!in_array($_GET['pool'], array(100,1000,2000,5000) ) )die(); &amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;if(!in_array($_GET['pool'], array(100,1000,2000,5000) ) )die(); &amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Kategorie:FAQ]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Wed, 05 Sep 2012 13:03:14 GMT</pubDate>			<dc:creator>Jpwfour</dc:creator>			<comments>http://www.vms-tutorial.de/wiki/Diskussion:Minus_Bug</comments>		</item>
		<item>
			<title>Jpwfour um 11:29, 1. Jul. 2012</title>
			<link>http://www.vms-tutorial.de/index.php?title=Minus_Bug&amp;diff=923&amp;oldid=prev</link>
			<guid>http://www.vms-tutorial.de/index.php?title=Minus_Bug&amp;diff=923&amp;oldid=prev</guid>
			<description>&lt;p&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Version vom 11:29, 1. Jul. 2012&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Wie man das raus findet, kann man bei [[PHP Konfiguration]] nachlesen.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Wie man das raus findet, kann man bei [[PHP Konfiguration]] nachlesen.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;In PHP gibt es dann einige ''superglobale'' Variablen ([http://&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;de2&lt;/del&gt;.php.net/manual/de/language.variables.superglobals.php PHP:Superglobals]), davon sind für unseren Artikel hier nur&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;In PHP gibt es dann einige ''superglobale'' Variablen ([http://&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;www&lt;/ins&gt;.php.net/manual/de/language.variables.superglobals.php PHP:Superglobals]), davon sind für unseren Artikel hier nur&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&amp;lt;?php &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&amp;lt;?php &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;$_GET;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;$_GET;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 25:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Generell gilt, dass man '''alle Eingaben''', die der User macht, '''prüfen''' muss, da User gerne mal was Falsches aus versehen oder mit schlechten Hintergedanken eingeben! Zu diesen Eingaben gehören nicht nur &amp;quot;'''sichtbare'''&amp;quot;, also Formulare etc., sondern auch &amp;quot;'''unsichtbare'''&amp;quot;, wie eben Einsätze in Flash-Spielen.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Generell gilt, dass man '''alle Eingaben''', die der User macht, '''prüfen''' muss, da User gerne mal was Falsches aus versehen oder mit schlechten Hintergedanken eingeben! Zu diesen Eingaben gehören nicht nur &amp;quot;'''sichtbare'''&amp;quot;, also Formulare etc., sondern auch &amp;quot;'''unsichtbare'''&amp;quot;, wie eben Einsätze in Flash-Spielen.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Diese Prüfung geschieht meist dadurch, dass man entweder den &amp;quot;Typ&amp;quot; oder die Länge der Eingabe(n) prüft, oder sg. reguläre Ausdrücke darauf anwendet, oder PHP Funktionen wie [http://&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;de&lt;/del&gt;.php.net/addslashes addslashes()] oder [http://&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;de&lt;/del&gt;.php.net/manual/de/function.htmlspecialchars.php htmlspecialchars()] oder auch [http://de.php.net/manual/de/function.mysql-real-escape-string.php mysql_real_escape_string()] darauf anwendet.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Diese Prüfung geschieht meist dadurch, dass man entweder den &amp;quot;Typ&amp;quot; oder die Länge der Eingabe(n) prüft, oder sg. reguläre Ausdrücke darauf anwendet, oder PHP Funktionen wie [http://&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;www&lt;/ins&gt;.php.net/addslashes addslashes()] oder [http://&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;www&lt;/ins&gt;.php.net/manual/de/function.htmlspecialchars.php htmlspecialchars()] oder auch [http://de.php.net/manual/de/function.mysql-real-escape-string.php mysql_real_escape_string()] darauf anwendet.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=Slots auf ihre Sicherheit hin prüfen=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=Slots auf ihre Sicherheit hin prüfen=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Sun, 01 Jul 2012 11:29:15 GMT</pubDate>			<dc:creator>Jpwfour</dc:creator>			<comments>http://www.vms-tutorial.de/wiki/Diskussion:Minus_Bug</comments>		</item>
		<item>
			<title>Jpwfour um 11:06, 31. Jul. 2010</title>
			<link>http://www.vms-tutorial.de/index.php?title=Minus_Bug&amp;diff=546&amp;oldid=prev</link>
			<guid>http://www.vms-tutorial.de/index.php?title=Minus_Bug&amp;diff=546&amp;oldid=prev</guid>
			<description>&lt;p&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Version vom 11:06, 31. Jul. 2010&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=User/Besucher/Client Eingaben=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=User/Besucher/Client Eingaben=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Bei Flash-Spielen ist es so, dass aus dem Flash Film heraus PHP-Dateien aufgerufen werden, und dabei mitunter Werte vom Benutzer (Client) an den Server geschickt werden.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Bei Flash-Spielen ist es so, dass aus dem &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[&lt;/ins&gt;Flash&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/ins&gt;Film heraus &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[&lt;/ins&gt;PHP&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;]]&lt;/ins&gt;-Dateien aufgerufen werden, und dabei mitunter Werte vom Benutzer (Client) an den Server geschickt werden.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Bei PHP gibt es dafür verschiedene Möglichkeiten, diese &amp;quot;Eingaben&amp;quot; im Script zu verarbeiten. Auf jeden Fall sollte auf dem Server die PHP-Einstellung '''register_globals''' auf '''OFF''' stehen! (Ansonsten gar nicht erst weiterlesen, sondern diesen &amp;quot;Fehler&amp;quot; beheben!)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Bei PHP gibt es dafür verschiedene Möglichkeiten, diese &amp;quot;Eingaben&amp;quot; im Script zu verarbeiten. Auf jeden Fall sollte auf dem Server die PHP-Einstellung '''register_globals''' auf '''OFF''' stehen! (Ansonsten gar nicht erst weiterlesen, sondern diesen &amp;quot;Fehler&amp;quot; beheben!)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Sat, 31 Jul 2010 11:06:30 GMT</pubDate>			<dc:creator>Jpwfour</dc:creator>			<comments>http://www.vms-tutorial.de/wiki/Diskussion:Minus_Bug</comments>		</item>
		<item>
			<title>Jpwfour: Die Seite wurde neu angelegt: =User/Besucher/Client Eingaben=  Bei Flash-Spielen ist es so, dass aus dem Flash Film heraus PHP-Dateien aufgerufen werden, und dabei mitunter Werte vom Benutzer (Clien...</title>
			<link>http://www.vms-tutorial.de/index.php?title=Minus_Bug&amp;diff=358&amp;oldid=prev</link>
			<guid>http://www.vms-tutorial.de/index.php?title=Minus_Bug&amp;diff=358&amp;oldid=prev</guid>
			<description>&lt;p&gt;Die Seite wurde neu angelegt: =User/Besucher/Client Eingaben=  Bei Flash-Spielen ist es so, dass aus dem Flash Film heraus PHP-Dateien aufgerufen werden, und dabei mitunter Werte vom Benutzer (Clien...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=User/Besucher/Client Eingaben=&lt;br /&gt;
&lt;br /&gt;
Bei Flash-Spielen ist es so, dass aus dem Flash Film heraus PHP-Dateien aufgerufen werden, und dabei mitunter Werte vom Benutzer (Client) an den Server geschickt werden.&lt;br /&gt;
&lt;br /&gt;
Bei PHP gibt es dafür verschiedene Möglichkeiten, diese &amp;quot;Eingaben&amp;quot; im Script zu verarbeiten. Auf jeden Fall sollte auf dem Server die PHP-Einstellung '''register_globals''' auf '''OFF''' stehen! (Ansonsten gar nicht erst weiterlesen, sondern diesen &amp;quot;Fehler&amp;quot; beheben!)&lt;br /&gt;
&lt;br /&gt;
Wie man das raus findet, kann man bei [[PHP Konfiguration]] nachlesen.&lt;br /&gt;
&lt;br /&gt;
In PHP gibt es dann einige ''superglobale'' Variablen ([http://de2.php.net/manual/de/language.variables.superglobals.php PHP:Superglobals]), davon sind für unseren Artikel hier nur&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&amp;lt;?php &lt;br /&gt;
$_GET;&lt;br /&gt;
$_POST;&lt;br /&gt;
$_REQUEST;&lt;br /&gt;
?&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
interessant.&lt;br /&gt;
&lt;br /&gt;
Theoretisch könnten hier auch&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&amp;lt;?php&lt;br /&gt;
$HTTP_GET_VARS;&lt;br /&gt;
$HTTP_POST_VARS;&lt;br /&gt;
?&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
stehen, deren Verwendung deutet aber schon mal auf ein sehr altes Script hin, also hier ist dann besondere Vorsicht geboten!&lt;br /&gt;
&lt;br /&gt;
=Usereingaben prüfen=&lt;br /&gt;
Generell gilt, dass man '''alle Eingaben''', die der User macht, '''prüfen''' muss, da User gerne mal was Falsches aus versehen oder mit schlechten Hintergedanken eingeben! Zu diesen Eingaben gehören nicht nur &amp;quot;'''sichtbare'''&amp;quot;, also Formulare etc., sondern auch &amp;quot;'''unsichtbare'''&amp;quot;, wie eben Einsätze in Flash-Spielen.&lt;br /&gt;
&lt;br /&gt;
Diese Prüfung geschieht meist dadurch, dass man entweder den &amp;quot;Typ&amp;quot; oder die Länge der Eingabe(n) prüft, oder sg. reguläre Ausdrücke darauf anwendet, oder PHP Funktionen wie [http://de.php.net/addslashes addslashes()] oder [http://de.php.net/manual/de/function.htmlspecialchars.php htmlspecialchars()] oder auch [http://de.php.net/manual/de/function.mysql-real-escape-string.php mysql_real_escape_string()] darauf anwendet.&lt;br /&gt;
&lt;br /&gt;
=Slots auf ihre Sicherheit hin prüfen=&lt;br /&gt;
&lt;br /&gt;
Zuerst einmal muss man die PHP Datei finden, in dem das Spiel &amp;quot;stattfindet&amp;quot;, meist ''game.php'', ''slot.php'' etc.&lt;br /&gt;
&lt;br /&gt;
An sich leicht zu finden, da dort auch die Rallyes eingebaut werden müssen sowie die Funktion ''refumsatz()'' vorhanden ist.&lt;br /&gt;
&lt;br /&gt;
Als nächstes die Zeile finden, wo der Einsatz eingelesen wird, (siehe oben:'''User/Besucher/Client Eingaben'''), bspw.:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&amp;lt;?php&lt;br /&gt;
//einige Zeilen Code am Anfang&lt;br /&gt;
$einsatz = $_GET['einsatz'];&lt;br /&gt;
//restlicher Code&lt;br /&gt;
?&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hier sieht man, wird erstmal keinerlei Überprüfung gemacht, sondern einfach der Wert in der Variablen ''$einsatz'' gespeichert, sei es nun ein gültiger Einsatz oder das Wort &amp;quot;Hallo&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Um herauszufinden, was weiter passiert mit dem &amp;quot;Einsatz&amp;quot;, startet man im jeweiligen Texteditor eine Suche nach eben der entsprechenden Variable (''$einsatz'', ''$pool'', ''$bet'', manchmal auch einfach im ganzen Script ''$_GET['einsatz']'' verwendet).&lt;br /&gt;
&lt;br /&gt;
Kommt als nächstes die &amp;quot;Bonitätsprüfung&amp;quot;, also ob der User genug Guthaben hat&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;if($guthaben &amp;gt; $einsatz){&amp;lt;/source&amp;gt;&lt;br /&gt;
und danach dann schon der Einzug des Einsatzes:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;kontobuchung('-',$einsatz,$_SESSION['uid']);&amp;lt;/source&amp;gt;&lt;br /&gt;
dann wird der Einsatz wohl ohne weitere Prüfung eingezogen.&lt;br /&gt;
&lt;br /&gt;
Eine Überprüfung erkennt man bspw. daran, dass etwas in der Art dasteht:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;if($einsatz!=$einsatz1 || $einsatz!=$einsatz2)$einsatz=$einsatz1&amp;lt;/source&amp;gt;&lt;br /&gt;
oder auch:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;if(!in_array($einsatz, $einsaetze))die('&amp;amp;result=error&amp;amp;');&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Slots absichern=&lt;br /&gt;
&lt;br /&gt;
Die einfachste Methode ist, nach dem der Einsatz in einer Variablen gespeichert wurde, diesen sofort zu überprüfen, indem man in folgendem Code die jeweiligen Einsätze des Spiels auswechselt:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&amp;lt;?php&lt;br /&gt;
//einige Zeilen Code am Anfang&lt;br /&gt;
$einsatz = $_POST['bet'];&lt;br /&gt;
if(!in_array($einsatz, array(100,1000,2000,5000) ) )die(); //neue zeile, hier einsätze auswechseln&lt;br /&gt;
//restlicher Code&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Funktioniert natürlich analog in dem Fall, dass in der ganzen Datei die $_GET oder $_POST Variable verwendet wird:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;if(!in_array($_GET['pool'], array(100,1000,2000,5000) ) )die(); &amp;lt;/source&amp;gt;&lt;/div&gt;</description>
			<pubDate>Thu, 12 Mar 2009 20:38:28 GMT</pubDate>			<dc:creator>Jpwfour</dc:creator>			<comments>http://www.vms-tutorial.de/wiki/Diskussion:Minus_Bug</comments>		</item>
	</channel>
</rss>