socket.emit('sendmsg', {id:'ID пользователя',msg:'User is offline'});
var array_1 = [81, 2, 3, 5, 7, 9, 10, 13, 76, 54, 13];
var num = 13;
var str_res = '';
for (var i in array_1) {
if (array_1[i] == num) {
str_res += i ;
}
}
if (str_res == '') {
} else {
console.log(str_res);
var ar = str_res.split('');
console.log("Число:",num,"Найдено", ar.length-1,"раз");
}
if ($_SESSION['user']) {
$insert = $pdo->prepare("INSERT INTO `User`(`userid`,`reg`, `fname`, `lname`, `accesToken`, `url`,`sex`,`dayYer`,`lastactiv`)
VALUES ('$user1->uid','$data_reg','$user1->first_name','$user1->last_name','$rnd',' $user1->photo_100','$user1->sex','$user1->bdate',UNIX_TIMESTAMP())
ON DUPLICATE KEY UPDATE `fname` = '$user1->first_name', `lname` = '$user1->last_name',`accesToken`='$rnd',`url` = ' $user1->photo_100 ',`lastactiv`=UNIX_TIMESTAMP(),`st`='1' ");
$insert->execute();