} } } } } else { print 'NOLOGIN'; } exit; } else { if (isset($_POST['name']) && preg_match('/^\\w+$/', $_POST['name']) && strlen($_POST['input']) > 6) { $_POST['name'] = strtolower($_POST['name']); session_name('s' . $_POST['name']); session_start(); $chat = file($data . $_POST['name']); preg_match('/^[a-z]{1,12}\\|/', $_POST['input'], $thisnick); if (msgcheck($_POST['input']) && $_SESSION['nick'] == substr($thisnick[0], 0, -1)) { if (file_exists($data . $_POST['name'])) { file_put_contents($data . $_POST['name'], $_POST['input'] . "\n", FILE_APPEND | LOCK_EX); } } exit; } } } } ?> <!DOCTYPE html> <head> <?php if (isset($_GET['c']) && preg_match('/^\\w+$/', $_GET['c'])) { print '<meta name="robots" content="noindex, nofollow" />' . "\n";
} } } } else { print 'NOLOGIN'; } exit; } else { if (isset($_POST['name']) && preg_match('/^\\w+$/', $_POST['name']) && isset($_POST['input']) && $_POST['input'] != '') { $_POST['name'] = strtolower($_POST['name']); session_name('s' . $_POST['name']); session_start(); $chat = file($data . $_POST['name']); preg_match('/^[a-z]{1,12}\\|/', $_POST['input'], $thisnick); $thisnick = substr($thisnick[0], 0, -1); if (msgcheck($_POST['input']) && $_SESSION['nick'] == $thisnick) { if (file_exists($data . $_POST['name'])) { file_put_contents($data . $_POST['name'], $_POST['input'] . "\n", FILE_APPEND | LOCK_EX); } } exit; } } } } ?> <!DOCTYPE html> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0;" /> <meta name="apple-mobile-web-app-capable" content="yes" />