This commit is contained in:
2022-06-07 00:30:34 +03:00
commit 5f4b2cbf77
1784 changed files with 327645 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace Core;
class Chat {
//Ñèñòåìíîå ñîîáùåíèå
public static function send_system( $uid , $text ) {
if( !is_string($uid) ) {
$uid = \Core\Database::query( 'SELECT `login` FROM `users` WHERE `uid` = :uid ORDER BY `id` ASC LIMIT 1000' , array(
'uid' => $uid
));
$uid = $uid['login'];
}
\Core\Database::query( 'INSERT INTO `chat` (`to`,`time`,`type`,`text`,`color`,`typeTime`,`new`) VALUES (
:to , :time , :type , :text , :color , :typeTime , :new
)', array(
'to' => $uid,
'time' => OK,
'type' => 6,
'text' => $text,
'color' => 'Black',
'typeTime' => 0,
'new' => 1
) );
}
}
?>