if(stripos($value,'?q=')>0) {
$q=substr($value, 3+stripos($value,'?q='));
$q=explode('&',$q);
$str['search']=urldecode($q[0]);
}
elseif(stripos($value,'&q=')>0) {
$q=substr($value, 3+stripos($value,'&q='));
$q=explode('&',$q);
$str['search']=urldecode($q[0]);
}
if(stripos($value,'?p=')>0) {
$str['search']=substr($value, 3+stripos($value,'?p='));
$q=explode('&',$q);
$str['search']=urldecode($q[0]);
}
elseif(stripos($value,'&p=')>0) {
$str['search']=substr($value, 3+stripos($value,'&p='));
$q=explode('&',$q);
$str['search']=urldecode($q[0]);
}
elseif(stripos($value,'?search=')>0) {
$str['search']=substr($value, 8+stripos($value,'?search='));
$q=explode('&',$q);
$str['search']=urldecode($q[0]);
}
elseif(stripos($value,'&search=')>0) {
$str['search']=substr($value, 8+stripos($value,'&search='));
$q=explode('&',$q);
$str['search']=urldecode($q[0]);
}
elseif(stripos($value,'?term=')>0) {
$str['search']=substr($value, 6+stripos($value,'?term='));
$q=explode('&',$q);
$str['search']=urldecode($q[0]);
}
elseif(stripos($value,'&term=')>0) {
$str['search']=substr($value, 6+stripos($value,'&term='));
$q=explode('&',$q);
$str['search']=urldecode($q[0]);
}
}
|