function normalisiere($text, $alfa) { # prüft, ob die Zeichen des Textes im Zeichensatz enthalten sind. $text = strfix($text); # Ersetzen der Umlaute $size = strlen($text); $newtext = ""; for ($t = 0; $t < $size; $t++) { $token = substr($text, $t, 1); $a = in_array(strtolower($token), $alfa); # prüft Zeichen als Kleinbuchstaben $b = in_array(strtoupper($token), $alfa); # prüft Zeichen als Großbuchstaben if (!$a && !$b) { $token = ''; # sind sie nicht erhalten, werden sie entfernt. } $newtext .= $token; } return $newtext; }
$text = strtoupper($text); //Hier werden alle Zeichen groß gemacht $text = strfix($text); //Hier werden vorhandene Umlaute in Bigramme konvertiert $text = leerraus($text); //Entfernen der vorhandenen Leerzeichen $code = enigma($wp1, $wp2, $wp3, $stator, $text, $_POST['sprp1'], $_POST['sprp2'], $_POST['wst1'], $_POST['wst2'], $_POST['wst3'], $_POST['steckbr'], $_POST['ukw']); $code2 = spacing($code, 5); $text = spacing($text, 5); $code1 = $text; } if ($_POST['ueb'] == "vuna") { $text = $_POST['unten']; $text = strtoupper($text); //Hier werden alle Zeichen groß gemacht $text = strfix($text); //Hier werden vorhandene Umlaute in Bigramme konvertiert $text = leerraus($text); //Entfernen der vorhandenen Leerzeichen echo $_POST['steckbr']; $code = enigma($wp1, $wp2, $wp3, $stator, $text, $_POST['sprp1'], $_POST['sprp2'], $_POST['wst1'], $_POST['wst2'], $_POST['wst3'], $_POST['steckbr'], $_POST['ukw']); $code1 = spacing($code, 5); $text = spacing($text, 5); $code2 = $text; } $lang_POST = JTEXT::_('POST'); $lang_UPDOWN = JTEXT::_('UPDOWN'); $lang_DOWNUP = JTEXT::_('DOWNUP'); $lang_ROTORPOSITION = JTEXT::_('ROTORPOSITION'); $lang_INITALROTORPOSITION = JTEXT::_('INITALROTORPOSITION'); $lang_REFLECTOR = JTEXT::_('REFLECTOR');
$input = str_replace(";", "", $input); $input = str_replace("-", "", $input); $input = str_replace("/", "", $input); $input = str_replace(":", "", $input); $input = str_replace("=", "", $input); $input = str_replace("tr", "", $input); $input = str_replace("td", "", $input); return $input; } $con = new db(); $conc = $con->c(); $pals = mysqli_query($conc, "SELECT `id`,`u1`,`u2` FROM `chat` WHERE `u1`={$uid} or `u2`={$uid} "); if ($pals) { while ($pal = mysqli_fetch_array($pals)) { $em = $pal[1] == $uid ? $pal[2] : $pal[1]; $id = trim($pal[0]); $file = "../chatt/room/{$id}.dat"; if (is_file($file)) { $cf = fopen($file, "r"); $conte = fread($cf, filesize($file)); $chh = strfix($conte); $intv = strlen($chh); echo $em . ":{$intv}=" . $id . "__::__"; } else { echo $em . ":0=" . $id . "__::__"; } } } mysqli_kill($conc, mysqli_thread_id($con->c())); mysqli_close($con->c()); exit;