# E-mail : visavi.net@mail.ru # # Site : http://pizdec.ru # # WAP-Site : http://visavi.net # # ICQ : 36-44-66 # # Вы не имеете право вносить изменения в код скрипта # # для его дальнейшего распространения # #-----------------------------------------------------# require_once "../includes/start.php"; require_once "../includes/functions.php"; require_once "../includes/header.php"; include_once "../themes/" . $config['themes'] . "/index.php"; $msg = check($_POST['msg']); show_title('partners.gif', 'Добавление сообщения'); if (is_user()) { if (utf_strlen(trim($msg)) > 3 && utf_strlen($msg) < 1000) { antiflood("Location: index.php?isset=antiflood&" . SID); karantin($udata[6], "Location: index.php?isset=karantin&" . SID); statistics(8); $msg = no_br($msg, '<br />'); $msg = antimat($msg); $msg = smiles($msg); $file = file(DATADIR . "chat.dat"); $data = explode("|", end($file)); $text = no_br($msg . '|' . $log . '||' . SITETIME . '|' . $brow . '|' . $ip . '|0|' . $data[7] . '|' . $data[8] . '|'); write_files(DATADIR . "chat.dat", "{$text}\r\n"); $countstr = counter_string(DATADIR . "chat.dat"); if ($countstr >= $config['maxpostchat']) { delete_lines(DATADIR . "chat.dat", array(0, 1, 2, 3, 4)); } change_profil($log, array(14 => $ip, 12 => $udata[12] + 1, 36 => $udata[36] + 1, 41 => $udata[41] + 1)); //--------------------------------------------------------------------------//
show_error('Ошибка! Недопустимое название изображения!'); } echo '<br /><br /><img src="../images/img/back.gif" alt="image" /> <a href="index.php?' . SID . '">Вернуться</a>'; } ############################################################################################ ## Запись комментариев ## ############################################################################################ if ($action == "addkomm") { $gid = check($_GET['gid']); $msg = check($_POST['msg']); show_title('partners.gif', 'Добавление комментария'); if (is_user()) { if (preg_match('|^[a-z0-9_\\.\\-]+$|i', $gid)) { if (utf_strlen(trim($msg)) > 5 && utf_strlen($msg) < 1000) { if (file_exists(DATADIR . "datagallery/{$gid}")) { antiflood("Location: index.php?action=komm&gid={$gid}&isset=antiflood&" . SID); karantin($udata[6], "Location: index.php?action=komm&gid={$gid}&isset=karantin&" . SID); statistics(7); $msg = no_br($msg, '<br />'); $msg = antimat($msg); $msg = smiles($msg); $text = no_br($msg . '||' . SITETIME . '|' . $log . '|'); write_files(DATADIR . "datagallery/{$gid}.dat", "{$text}\r\n", 0, 0666); //---------------------------------------------------------// $countstr = counter_string(DATADIR . "datagallery/{$gid}.dat"); if ($countstr >= $config['maxpostgallery']) { delete_lines(DATADIR . "datagallery/{$gid}.dat", array(0, 1)); } change_profil($log, array(14 => $ip, 33 => $udata[33] + 1, 36 => $udata[36] + 1, 41 => $udata[41] + 1)); header("location: index.php?action=komm&gid={$gid}&isset=addkomm&" . SID); exit;
} else { show_error('Ошибка! Данного раздела не существует!'); } } ############################################################################################ ## Добавление объявления ## ############################################################################################ if ($action == "add") { if (search_string(DATADIR . "databoard/database.dat", $id, 2)) { $zag = check($_POST['zag']); $msg = check($_POST['msg']); $days = (int) $_POST['days']; if (utf_strlen(trim($zag)) >= 5 && utf_strlen($zag) <= 50) { if (utf_strlen(trim($msg)) >= 10 && utf_strlen($msg) <= 1000) { if ($days > 0 && $days <= $config['boarddays']) { antiflood("Location: add.php?id={$id}&isset=antiflood&" . SID); karantin($udata[6], "Location: add.php?id={$id}&isset=karantin&" . SID); $deltime = SITETIME + $days * 86400; $msg = no_br($msg, '<br />'); $unifile = unifile(DATADIR . "databoard/{$id}.dat", 5); $text = no_br($zag . '|' . $log . '|' . $msg . '|' . SITETIME . '|' . $deltime . '|' . $unifile . '|' . $id . '|'); write_files(DATADIR . "databoard/{$id}.dat", "{$text}\r\n", 0, 0666); header("Location: index.php?action=board&id={$id}&isset=addboard&" . SID); exit; } else { show_error('Ошибка, не указано число дней показа объявления!'); } } else { show_error('Слишком длинное или короткое объявление (Необходимо от 10 до 1000 символов)'); } } else {
## Отправка сообщений ## ############################################################################################ if ($action == "send") { $uid = check($_GET['uid']); $msg = check($_POST['msg']); if ($uid == $_SESSION['token']) { if ($uz != $log) { if (utf_strlen(trim($msg)) >= 5 && utf_strlen($msg) < 1000) { if (preg_match('|^[a-z0-9_\\-]+$|i', $uz)) { if (file_exists(DATADIR . "profil/{$uz}.prof")) { $filesize = filesize(DATADIR . 'privat/' . $uz . '.priv'); $pers = round($filesize / 1024 * 100 / $config['limitsmail']); if ($pers < 100) { $string = search_string(DATADIR . "dataignor/{$uz}.dat", $log, 1); if (empty($string)) { antiflood("Location: privat.php?action=submit&isset=antiflood&uz={$uz}&" . SID); $msg = no_br($msg, '<br />'); $msg = antimat($msg); $msg = smiles($msg); $text = no_br($log . '|' . $msg . '|' . SITETIME . '|'); write_files(DATADIR . 'privat/' . $uz . '.priv', "{$text}\r\n"); $uzdata = reading_profil($uz); change_profil($uz, array(10 => $uzdata[10] + 1)); $sendtext = no_br($uz . '|' . $msg . '|' . SITETIME . '|'); write_files(DATADIR . 'dataoutput/' . $log . '.priv', "{$sendtext}\r\n", 0, 0666); $countstr = counter_string(DATADIR . 'dataoutput/' . $log . '.priv'); if ($countstr >= 20) { delete_lines(DATADIR . 'dataoutput/' . $log . '.priv', 0); } header("Location: privat.php?isset=mail&" . SID); exit;
$bericht .= "<p><strong>Bericht: </strong></p>"; $bericht .= "<p>" . ucfirst($_POST['bericht']) . "</p>"; $bericht .= "<br>"; $bericht .= "<p><strong>Einde bericht. </strong> </p><p>Met vriendelijke groet,</p>"; $bericht .= "<p>Lasergamebox.nl</p>"; $bericht .= "</body></html>"; // HTML mail? True/False $html = true; // de headers $headers = 'From: ' . $website_naam . ' <' . $email_verzender . '>' . "\r\n"; $headers .= 'Reply-To: ' . $naam_verzender . ' <' . $email_verzender . '>' . "\r\n"; $headers .= 'X-Mailer: PHP/' . phpversion() . "\r\n"; $headers .= 'X-Priority: Normal' . "\r\n"; $headers .= $html ? 'MIME-Version: 1.0' . "\r\n" : ''; $headers .= $html ? 'Content-type: text/html; charset=iso-8859-1' . "\r\n" : ''; antiflood(); mail($site_emailadres, $onderwerp, $bericht, $headers); ?> <div class="alert alert-success"> <strong>Uw bericht is verzonden!</strong> U ontvangt zo snel mogelijk een antwoord. </div> <?php $goedbericht = TRUE; } } } ?> <!-- het formulier -->