/media/sda-magnetic/david/Dokumente-15/fernuni-hagen/cs-i-ii/old-cs-2-03/yun7x/Arithmetic31/ifthenelse.php


<!DOCTYPE html>
<html> 
<head>
	<meta charset="UTF-8" />
	<title>Yun7x</title> 
    <style>
        button {
            font-size: 1.2em;
            margin: 0 1em 1em 0;
            padding: 0.4em 1em;
        }

        .compile {
            background: #ebf5d7;
            color: green;
            font-weight: bold;
        }
    </style>
</head>
 
<body>
<center>
<div style="width: 100%;  background-image: linear-gradient(to top, white 40%, navajowhite 100%);"\>


<nav>
  <ul>
    <li><a  class="xxx1" href="http://www.ituenix.de/impressum.php">
    Impressum</a></li>
    <li><a href="http://www.ituenix.de/moon/moon.html">
    Pictures from moon</a></li>
    <li><a href="http://www.ituenix.de/squirrelmail/">
    Mail</a></li>
    <li><a href="http://www.ituenix.de/davechess/gnuplotexec2.php">
    Gnuplot</a></li>
    <li><a href="http://www.ituenix.de/myroom.html">
    Camera-Live-Stream</a></li>
 </ul>
</nav>

<table>
<tr>
<td width="15%">
<img width="100%" src="./ituenix2.png" class="img2">
</td>
<td width="60%">
<br><br>
<font size="64px" face="Times New Roman">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Yun7x
</font>
 <small>Compiler</small>
</td>
</tr>
</table>

<style>
nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

nav li {
  list-style: none;
  margin: 0.0em;
  padding: 0;
  font-size: 1.5em;
}

@media (min-width: 45em) {
  nav ul {
    flex-direction: row;
  }
  nav li {
    flex: 1;
    font-size: 1em;
  }
}

nav a {
  display: block;
  font-weight: bold;
  text-align: center;
  color: white;
  background-color: black;
  background-image: linear-gradient(to top, black 10%, grey 100%);
}


nav li[aria-current] a {
  background-color: black;
  color: white;
}

.xxx1 {
background-image: linear-gradient(to top, black 10%, grey 100%);

}

.xxx1:hover {
background-image: linear-gradient(to top, black 10%, navajowhite 100%);

}

nav a:hover {
background-image: linear-gradient(to top, black 10%, navajowhite 100%);

}
nav a:focus,
nav li[aria-current] a:focus {
  color: white;
  background-color: black;
}

a:link { text-decoration: none;  color: white; font-family: Palatino;} a:visited:focus { text-decoration: none;  color: white; font-family: Palatino;}

a.a:link { text-decoration: none;  color: black; font-family: Courier;} a.a:visited { text-decoration: none;  color: black; font-family: Courier;} a.a:visited:focus { text-decoration: none;  color: black; font-family: Courier;}
</style>

<nav>
  <ul>
    <li><a href="./ip.php">IP</a></li>
    <li><a class="xxx1" href="../phpBB3">phpBB3</a></li>
    <li><a href="./ping.php">ping</a></li>
    <li><a href="../squirrelmail">mail</a></li>
    <li><a href="./whois.php">whois</a></li>
  </ul>
</nav>


<hr>
</div>
</center>




<form method="post">
<textarea rows="16" cols="100" name="inputtext" class="compile">
$0:=0;
$1:=1;
WHILE $0 < 10 DO
BEGIN
    IF  $0<5 THEN
    BEGIN
        print$0
    END
    ELSE
    BEGIN
        print $0*3
    END;
    $0:=$0+1;
    $100:=$0+100;
    print $100
END;



</textarea><br>
<input type="Submit" value="compile" class="compile">
<br><br>
</form>

<div style=" background-color: black; color: lightgreen;">
<b>
<code>
<?php
$str = $_POST["inputtext"];
$a = explode (" ", $str);
$str2 = implode ("", $a);
$a = explode ("\n", $str2);
$str2 = implode ("", $a);
$a = explode ("\t", $str2);
$str2 = implode ("", $a);
$a = explode ("\r", $str2);
$str2 = implode ("", $a);
$a = explode ("?", $str2);
$str2 = implode ("", $a);
$a = explode ("php", $str2);
$str2 = implode ("", $a);
$a = explode ("script", $str2);
$str2 = implode ("", $a);
$a = explode ("html", $str2);
$str2 = implode ("", $a);
$a = explode ("&", $str2);
$str2 = implode ("", $a);
$a = explode ("|", $str2);
$str2 = implode ("", $a);
$a = explode ("'", $str2);
$str2 = implode ("", $a);


echo $str2;
exec ("java Arithmetic '" .$str2 . "'", $outstr);

for ($i = 0;  $i < count($outstr);  $i++) {
  echo $outstr[$i];
  echo "<br>";
}

?>
</b>
</code>
</div>

<nav>
<ul>
<a href="./Arithmetic.java"> Code </a></li>
<a href="./variable.txt"> Beschreibung </a></li>
</ul>
</nav>

<?php
$adress = file_get_contents("../adress.txt");
$adress2 = file_get_contents("../adress2.txt");
echo $adress2;
echo $adress;
?>


</body>
</html>