View file Dasty_Social/modules/service/pogoda/index.php

File size: 1.15Kb
<?

include_once '../../../sys/inc/start.php';
include_once '../../../sys/inc/compress.php';
include_once '../../../sys/inc/sess.php';
include_once '../../../sys/inc/home.php';
include_once '../../../sys/inc/settings.php';
include_once '../../../sys/inc/db_connect.php';
include_once '../../../sys/inc/ipua.php';
include_once '../../../sys/inc/fnc.php';
include_once '../../../sys/inc/user.php';
only_reg();
$set['title'] = 'Погода';
include_once '../../../sys/inc/thead.php';
title();
aut();

#######################
include 'inc/head.php'; 
#######################
function curl_get($url){ 
$curl = curl_init(); 
curl_setopt($curl, CURLOPT_URL, $url); 
curl_setopt($curl,CURLOPT_USERAGENT,'Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.2.15 Version/10.10'); 
curl_setopt($curl, CURLOPT_REFERER, "http://m.gismeteo.ru/"); 
curl_setopt($curl, CURLOPT_RETURNTRANSFER,1); 
curl_setopt($curl, CURLOPT_TIMEOUT, 30); 
$cnt = curl_exec($curl); 
curl_close($curl); 
return $cnt; 
} 
$file = file_get_contents("http://m.gismeteo.ru/".$_GET['id']);
#######################

include 'inc/settings.php';

echo $file; 
#######################
include_once '../../../sys/inc/tfoot.php';
?>