Просмотр файла modules/chat/bot_bess.php
- <?php
- include '../../templates/func.php';
- $popravka = $sdvigclock*3600;
- $time = date('H:i:s', time() + $popravka);
- $date = date('d.m.Y', time() + $popravka);
- $arr = file('../../data/aforizm.txt');
- $msg = $arr[rand(0, count($arr)-1)];
- $text = "AFORIZM|$for|NokiaN70|77.337.337.777|$time|$date|$msg";
- $base = '../../data/chat/3.txt';
- $back = @file_get_contents($base);
- write_to_file($base, "$text".""."$back");
- ?>