-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpingdj.php
More file actions
28 lines (21 loc) · 892 Bytes
/
pingdj.php
File metadata and controls
28 lines (21 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
include 'connect.php';
function addchp ($text,$who,$room=0,$city=-1) {
$city=$city+1;
$txt_to_file=":[".time()."]:[{$who}]:[".($text)."]:[".$room."]";
$room = -1;
$q = mysql_query("INSERT INTO `oldbk`.`chat` SET `text`='".mysql_real_escape_string($txt_to_file)."',`city`='".($city)."', `room`={$room} ;");
if ($q !== FALSE) {
return true;
}
return false;
}
if (!isset($_GET['key']) || $_GET['key'] != "4654272uw4atsr537q43") die();
if (!isset($_GET['alias']) || empty($_GET['alias'])) die();
if (!isset($_GET['login']) || empty($_GET['login'])) die();
if(addchp ('<font color=red>Âíèìàíèå!</font> <a href="http://blog.oldbk.com/radio/request/'.rawurlencode($_GET['alias']).'.html" target="_blank">http://blog.oldbk.com/radio/request/'.rawurlencode($_GET['alias']).'.html','{[]}'.$_GET['login'].'{[]}',-1,-1)) {
echo "OK";
} else{
echo 'FALSE';
}
?>