View file modile/flud/js/mesage_us.php

File size: 1.4Kb
<?php
Defined('INDEX_S_S') or die ('Доступ запрещен!!!');

                                 if (is_file('user/'.$mt_us.'/profile.php'))
								 {

								  $mess1 = $mt_text;
								  include('flud/anti_x.php');  //анти мат полный фильтр
                                  $mt_text = $mess1;

								  $fp_mess = fopen ('user/'.$mt_us.'/mess_in.txt', "a+");
								  fwrite ($fp_mess, date("d-m-Y").'|'.$mt_ot.'|'.$mt_text."\r\n");
								  fclose ($fp_mess);

								  $cn_us = trim(file_get_contents('user/'.$mt_us.'/count.txt'));
								  $cn_us++;
								  $fp_mess = fopen ('user/'.$mt_us.'/count.txt', "w+");
								  fwrite ($fp_mess, $cn_us);
								  fclose ($fp_mess);

                                  $fp_mess = fopen ('user/'.$mt_us.'/mess_stat.txt', "w+");
								  fwrite ($fp_mess, '<span style="color: rgb(255, 0, 0);">Есть новые</span>');
								  fclose ($fp_mess);


								   echo '
								   <span class="ramka">
								   Сообщение отправлено!
								   </span>
								   ';

								 }
                                 else
						         {
			 		     	      echo '
		 		     	 	      <span class="error">
	 					          Ошибка доступа к базе!
 					     	      </span>
					     	      <META HTTP-EQUIV="Refresh" CONTENT="1;">
						          ';
						         }

?>