- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
function news222($record)
{
$rrr = "answers.com";
global $aaa;
$keyword = $q;
$q = $q;
$qnew = ucwords($q);
global $q;
$lw = array();
$qw = array();
$aw = array();
$sw = array();
$con = mysql_connect("10.38.16.4","xxxx","xxxxx");
if($con)
{
mysql_select_db("sql_stats");
$c = mysql_fetch_array(mysql_query("select count(*) from webqna where u_query = '".mysql_real_escape_string($_REQUEST['q'])."'"));
if($c[0]==0)
{
$kk5=0;
for($jj=0;$jj<15;$jj++)
{
if($kk5 == 4)
break;
if($jj==0)
{
if (($record['GROUP/GROUP/RESULT/SITE-LINK'])){
if(strstr($record['GROUP/GROUP/RESULT/TITLE'],"..."))
continue;
$aaa=1;
global $gotRecords;
$gotRecords = TRUE;
$lw[$kk5] = $record['GROUP/GROUP/RESULT/DISPLAY-URL'];
$qw[$kk5] = $record['GROUP/GROUP/RESULT/TITLE'];
$aw[$kk5] = $record['GROUP/GROUP/RESULT/DESCRIPTION'];
$sw[$kk5] = $rrr;
}
}
else
{
if (($record['GROUP/GROUP/RESULT/SITE-LINK@'.$jj])){
global $gotRecords;
$gotRecords = TRUE;
if(strstr($record['GROUP/GROUP/RESULT/TITLE@'.$jj],"..."))
continue;
$lw[$kk5] = $record['GROUP/GROUP/RESULT/DISPLAY-URL@'.$jj];
$qw[$kk5] = $record['GROUP/GROUP/RESULT/TITLE@'.$jj];
$aw[$kk5] = $record['GROUP/GROUP/RESULT/DESCRIPTION@'.$jj];
$sw[$kk5] = $rrr;
}
}
$kk5++;
}
ilussion 10.04.2013 11:40 # 0
eth0 10.04.2013 16:30 # 0
nonamez 10.04.2013 20:43 # 0
bormand 10.04.2013 21:09 # 0
fxd.
P.S. Но автору респект за то, что он заэкранировал аргумент, запихивая его в запрос... Походу это первый код в разделе пхп, где это все-таки сделали.
guest 14.05.2013 15:49 # 0