session_start(); error_reporting(0); //******************************************************************* //* * //* COSMO-CHAT * //* * //* Copyright (c) 2003 Zakharov Artem. All rights reserved. * //* E-mail: x_blade@mail333.com * //* http://www.bdesign.by.ru * //* * //******************************************************************* global $d, $lastpost, $lastpost1, $top; if (!is_file("tmp.php") || !is_readable("tmp.php")) { exit(); } $tmp = file("tmp.php"); if (($tmp && ($name == trim($tmp[0]))) || ($tmp && ($ipnow == trim($tmp[0])))) { ?>
onLoad="parent.mainFrame.window.scroll(0, 9999999); parent.topFrame.window.scroll(0, 9999999)" } ?>> $fn = "banvoice.php"; if (!is_file($fn) || !is_readable($fn)) { exit(); } $f = file($fn); if ($f) for ($i = 0; $i < count($f); $i++) { $m = explode("|", $f[$i]); $d1 = date("d"); $d2 = date("m"); $d3 = date("Y"); $t = date("H:i:s"); if ($name == $m[0]) { $m1 = explode(".", $m[1]); if ($d3 < $m1[2]) { ?> } else if (($d3 == $m1[2]) && ($d2 < $m1[1])) { ?> } else if (($d3 == $m1[2]) && ($d2 == $m1[1]) && ($d1 < $m1[0])) { ?> } else if (($d1 == $m1[0]) && ($d2 == $m1[1]) && ($d3 == $m1[2]) && ($t < $m[2])) { ?> } else if ($d3 > $m1[2]){ ?> } else if (($d3 == $m1[2]) && ($d2 > $m1[1])) { ?> } else if (($d3 == $m1[2]) && ($d2 == $m1[1]) && ($d1 > $m1[0])){ ?> } else if (($d3 == $m1[2]) && ($d2 == $m1[1]) && ($d1 == $m1[0]) && ($t > $m[2])) { ?> } } } ?>$t = fopen("tmp.php", "w"); fclose($t); exit(); } $smiles = array (':)', ':D', ':o', ':(', ';)', ':р', '8)', ':[', '%)', ':71:', ':68:', ':1:', ':2:', ':3:', ':4:', ':5:', ':6:', ':кофе:', ':7:', ':9:', ':60:', ':61:', ':62:', ':килл:', ':67:', ':72:', ':73:', ':74:', ':стоп:', ':75:', ':76:', ':77:', ':78:', ':79:', ':8:', ':63:', ':64:', ':65:', ':66:', ':70:', ':80:', ':81:', ':82:', ':83:', ':84:', ':85:', ':86:', ':87:', ':88:', ':89:', ':90:', ':91:', ':92:', ':93:', ':94:', ':95:', ':96:', ':97:', ':98:'); $imsrc = array (" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "); $dname = date("d.m.Y"); $fn = "data/$dname.php"; if (!is_file($fn) || !is_readable($fn)) { echo "
"; exit(); } $f = file($fn); if ($lastpost1 == 0) { if (count($f) > $sob) $N = count($f) - $sob; else $N = 0; setcookie("lastpost1", 1); } else $N = $lastpost; setcookie("lastpost", count($f)); for ($i = $N; $i < count($f); $i++) { $mas = explode("||:", $f[$i]); $time = $mas[0]; $name1 = trim($mas[2]); $name2 = trim($mas[3]); if (($mas[1] == "pr") && (count($mas) == 6) && ($mas[3] == $name)) { $mycolor = trim($mas[5]); for ($j = 0; $j < count($smiles); $j++) $mas[4] = str_replace($smiles[$j], $imsrc[$j], $mas[4]); if ($mas[2] == "Admin") { if ($top == "^*^") { ?> } else { ?> } } else { if ($top == "^*^") { ?> } else { ?> } } } else if (($mas[1] == "pr") && (count($mas) == 6) && ($mas[3] == 'To_all_girls') && ($gender == 'g')) { $mycolor = trim($mas[5]); for ($j = 0; $j < count($smiles); $j++) $mas[4] = str_replace($smiles[$j], $imsrc[$j], $mas[4]); if ($mas[2] == "Admin") { if ($top == "^*^") { ?> } else { ?> } } else { if ($top == "^*^") { ?> } else { ?> } } } else if (($mas[1] == "pr") && (count($mas) == 6) && ($mas[3] == 'To_all_boys') && ($gender == 'm')) { $mycolor = trim($mas[5]); for ($j = 0; $j < count($smiles); $j++) $mas[4] = str_replace($smiles[$j], $imsrc[$j], $mas[4]); if ($mas[2] == "Admin") { if ($top == "^*^") { ?> } else { ?> } } else { if ($top == "^*^") { ?> } else { ?> } } } else if (($mas[1] == "pr") && ($mas[3] != $name) && ($mas[2] == $name) && (count($mas) == 6)) { $mycolor = trim($mas[5]); for ($j = 0; $j < count($smiles); $j++) $mas[4] = str_replace($smiles[$j], $imsrc[$j], $mas[4]); if ($mas[2] == "Admin") { if ($top == "^*^") { ?> } else { ?> } } else { if ($top == "^*^") { ?> } else { ?> } } } else if (($mas[1] == "to") && (count($mas) == 6) && ($mas[3] == $name)) { $mycolor = trim($mas[5]); for ($j = 0; $j < count($smiles); $j++) $mas[4] = str_replace($smiles[$j], $imsrc[$j], $mas[4]); if ($mas[2] == "Admin") { if ($top == "^*^") { ?> } else { ?> } } else { if ($top == "^*^") { ?> } else { ?> } } } else if (($mas[1] == "to") && (count($mas) == 6) && ($mas[3] == 'To_all_girls') && ($gender == 'g') && (strcmp($mas[0], $lasttime) > 0)) { $mycolor = trim($mas[5]); for ($j = 0; $j < count($smiles); $j++) $mas[4] = str_replace($smiles[$j], $imsrc[$j], $mas[4]); if ($mas[2] == "Admin") { if ($top == "^*^") { ?> } else { ?> } } else { if ($top == "^*^") { ?> } else { ?> } } } else if (($mas[1] == "to") && (count($mas) == 6) && ($mas[3] == 'To_all_boys') && ($gender == 'm') && (strcmp($mas[0], $lasttime) > 0)) { $mycolor = trim($mas[5]); for ($j = 0; $j < count($smiles); $j++) $mas[4] = str_replace($smiles[$j], $imsrc[$j], $mas[4]); if ($mas[2] == "Admin") { if ($top == "^*^") { ?> } else { ?> } } else { if ($top == "^*^") { ?> } else { ?> } } } else if (($mas[1] == "to") && (count($mas) == 6) && ($mas[3] != $name)) { $mycolor = trim($mas[5]); for ($j = 0; $j < count($smiles); $j++) $mas[4] = str_replace($smiles[$j], $imsrc[$j], $mas[4]); if ($mas[2] == "Admin") { if ($top == "^*^") { ?> } else { ?> } } else { if ($top == "^*^") { ?> } else { ?> } } } else if (($mas[1] == "to") && (count($mas) < 6)) { $mycolor = trim($mas[4]); for ($j = 0; $j < count($smiles); $j++) $mas[3] = str_replace($smiles[$j], $imsrc[$j], $mas[3]); if (($mas[2] == "Admin") && ($mas[3] != "")) { if ($top == "^*^") { ?> } else { ?> } } else if (($mas[2] != "Admin") && ($mas[3] != "")) { if ($top == "^*^") { ?> } else { ?> } } } else if ($mas[1] == "s") { if ($top == "^*^") { ?> } else { ?> } } else if ($mas[1] == "u") { if ($top == "^*^") { ?> } else { ?> } } else if ($mas[1] == "sys") { if ($top == "^*^") { ?> } else { ?> } } } ?>