Наши друзья

1)){ $args_str=array(); foreach(array_keys($opt) as $key){ if($key){ if(is_array($opt[$key])){ foreach($opt[$key] as $k){ if($k){ array_push($args_str, urlencode($key).'='.urlencode($k)); } } }else{ if($opt[$key]){ array_push($args_str, urlencode($key).'='.urlencode($opt[$key])); } } } } return ($sp['add'] ? '?' : '').join('&',$args_str); } function &parse_args($method = 'get', $fields = array('int'=>array(),'text'=>array())){ global $HTTP_GET_VARS; global $HTTP_POST_VARS; $in_args = ($method == 'get' ? $HTTP_GET_VARS : $HTTP_POST_VARS); $out_args = array(); foreach ($fields['int'] as $int){ if(isset($in_args[$int]) && ereg("^[0-9]+$",$in_args[$int])){ $out_args[$int]=$in_args[$int]; } } return $out_args; } //====================================================== $args = parse_args('get', array('int'=>array('rzdl','page_numbers'))); $params = make_query_string(array('rzdl'=>$args['rzdl'],'page_numbers'=>$args['page_numbers'],'columns'=>2, cname=>'rzdl', pname=>'page_numbers', 'encoding'=>'windows-1251','url'=>'http://www.cat-balans.ru/balans/')); $content=file_get_contents("http://www.webhall.ru/links/".$params); //====================================================== echo <<