Server IP : 80.241.246.6 / Your IP : 216.73.216.188 Web Server : Apache/2.4.25 (Debian) System : Linux kharagauli 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64 User : www-data ( 33) PHP Version : 7.0.33-0+deb9u12 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/kharagauli1/weather/ |
Upload File : |
<?php /* @author suxoza <suxoza@gmail.com> */ if(!isset($_GET['id']))die; $HTTP_ = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')?'https://':'http://'; $ID = (int)$_->main_xesh(trim(strip_tags(addslashes($_GET['id']))),2); $select = $_->select("*","weather_info","small",["id",$ID,/*"url",$HTTP_.$_SERVER['HTTP_HOST']*/]); if(!$select || !count($select))die('ვებ გვერდი '.$HTTP_.$_SERVER['HTTP_HOST'].' არაა მონაცემთა ბაზაში!'); if($select['date_modify'] == 0 || $select['date_modify'] < (time() - 300)) $_->update('weather_info',[["date_modify"],[time()],["id",$ID]]); $json = json_decode(stripcslashes($select['body'])); if(json_last_error())die('page not found'); foreach($json as $key => $value){ if(/*$key == 'resizable' || */!is_array($value))continue; foreach($value as $v => $k){ $value[$v] = stripslashes($k); $json->{$key} = $value; } } $weather = []; $jj = $json->contains_2; for($i = 0; $i < count($jj); $i++) $weather[] = $_->weather($jj[$i],5); $width = explode('px',explode('width:',$json->resizable[0])[1])[0]; $height = explode('px',explode('height:',$json->resizable[0])[1])[0]; //$_->pre($weather); /// // $apis = encode('<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script><link rel="stylesheet" href="main.min.php?id=css¶ms='.$_->main_xesh(time()).'"/>'); ?> <!--Created by suxoza on 3/29/14.--> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <script>document.write(decodeURIComponent('<?=$apis;?>'));</script> <style type="text/css"> body{padding: 0;margin: 0;} #container_{width: <?=$width;?>px;height: <?=$height;?>px;position: relative;margin: auto 0} .resizable{ z-index: 4 !important; } #more_cityes{ position: absolute; z-index: 999; width: 50%; left: 25%; padding: 0; border-top-right-radius: 5px; border-top-left-radius: 5px; background: rgb(246,248,249); background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2Y2ZjhmOSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iI2U1ZWJlZSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUxJSIgc3RvcC1jb2xvcj0iI2Q3ZGVlMyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmNWY3ZjkiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(left, rgba(246,248,249,1) 0%, rgba(229,235,238,1) 50%, rgba(215,222,227,1) 51%, rgba(245,247,249,1) 100%); background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(246,248,249,1)), color-stop(50%,rgba(229,235,238,1)), color-stop(51%,rgba(215,222,227,1)), color-stop(100%,rgba(245,247,249,1))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(left, rgba(246,248,249,1) 0%,rgba(229,235,238,1) 50%,rgba(215,222,227,1) 51%,rgba(245,247,249,1) 100%); background: -o-linear-gradient(left, rgba(246,248,249,1) 0%,rgba(229,235,238,1) 50%,rgba(215,222,227,1) 51%,rgba(245,247,249,1) 100%); background: -ms-linear-gradient(left, rgba(246,248,249,1) 0%,rgba(229,235,238,1) 50%,rgba(215,222,227,1) 51%,rgba(245,247,249,1) 100%); background: linear-gradient(to right, rgba(246,248,249,1) 0%,rgba(229,235,238,1) 50%,rgba(215,222,227,1) 51%,rgba(245,247,249,1) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f6f8f9', endColorstr='#f5f7f9',GradientType=1 ); } #more_cityes .comment_{ padding: 5px; width: 95%; border-bottom: 1px solid #ccc; cursor: pointer; height: 30px; } #more_cityes .comment_:hover{ background: rgb(224,243,250); background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2UwZjNmYSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iI2Q4ZjBmYyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUxJSIgc3RvcC1jb2xvcj0iI2I4ZTJmNiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNiNmRmZmQiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(left, rgba(224,243,250,1) 0%, rgba(216,240,252,1) 50%, rgba(184,226,246,1) 51%, rgba(182,223,253,1) 100%); background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(224,243,250,1)), color-stop(50%,rgba(216,240,252,1)), color-stop(51%,rgba(184,226,246,1)), color-stop(100%,rgba(182,223,253,1))); background: -webkit-linear-gradient(left, rgba(224,243,250,1) 0%,rgba(216,240,252,1) 50%,rgba(184,226,246,1) 51%,rgba(182,223,253,1) 100%); background: -o-linear-gradient(left, rgba(224,243,250,1) 0%,rgba(216,240,252,1) 50%,rgba(184,226,246,1) 51%,rgba(182,223,253,1) 100%); background: -ms-linear-gradient(left, rgba(224,243,250,1) 0%,rgba(216,240,252,1) 50%,rgba(184,226,246,1) 51%,rgba(182,223,253,1) 100%); background: linear-gradient(to right, rgba(224,243,250,1) 0%,rgba(216,240,252,1) 50%,rgba(184,226,246,1) 51%,rgba(182,223,253,1) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e0f3fa', endColorstr='#b6dffd',GradientType=1 ); } #more_cityes .comment_.active{ background: rgb(224,243,250); background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2UwZjNmYSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iI2Q4ZjBmYyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUxJSIgc3RvcC1jb2xvcj0iI2I4ZTJmNiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNiNmRmZmQiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(left, rgba(224,243,250,1) 0%, rgba(216,240,252,1) 50%, rgba(184,226,246,1) 51%, rgba(182,223,253,1) 100%); background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(224,243,250,1)), color-stop(50%,rgba(216,240,252,1)), color-stop(51%,rgba(184,226,246,1)), color-stop(100%,rgba(182,223,253,1))); background: -webkit-linear-gradient(left, rgba(224,243,250,1) 0%,rgba(216,240,252,1) 50%,rgba(184,226,246,1) 51%,rgba(182,223,253,1) 100%); background: -o-linear-gradient(left, rgba(224,243,250,1) 0%,rgba(216,240,252,1) 50%,rgba(184,226,246,1) 51%,rgba(182,223,253,1) 100%); background: -ms-linear-gradient(left, rgba(224,243,250,1) 0%,rgba(216,240,252,1) 50%,rgba(184,226,246,1) 51%,rgba(182,223,253,1) 100%); background: linear-gradient(to right, rgba(224,243,250,1) 0%,rgba(216,240,252,1) 50%,rgba(184,226,246,1) 51%,rgba(182,223,253,1) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e0f3fa', endColorstr='#b6dffd',GradientType=1 ); } #more_cityes .comment_ div{ display: inline-block; width: 47%; } #more_cityes .comment_ div:first-child{ text-align: left; overflow: hidden; font-size: 9px; } #more_cityes .comment_ div:last-child{ text-align: right; } #more_cityes_icon{ border-bottom: 1px solid; padding: 1px; text-align: center; font-size: 10px; cursor: pointer; } #more_cityes .comment_ div img{width: 50px;} #_get_code{ position: absolute; top: 0; color: #ffffff; z-index: 999; font-size: 7px; padding: 0 1px 0 1px; } </style> </head> <body> <!--start--> <div id="container_"> <?php for($i = 0; $i < count($json->resizable); $i++){ ?> <div class="resizable<?=(!$i)?' active':'';?>" contains="<?=$json->contains[$i];?>" zpp="img" style="<?=str_replace('"',"'",$json->resizable[$i]);?>; margin: auto 0;"> <div class="_clock_1 def_background" style="<?=str_replace('"',"'",$json->_clock_1[$i]);?>"><div class="_first_"><?=date("H")?></div></div> <div class="_clock_2 def_background" style="<?=str_replace('"',"'",$json->_clock_1[$i]);?>"><div class="_second_"><?=date("i")?></div></div> <div class="_first_title def_background" style="<?=str_replace('"',"'",$json->_first_title[$i]);?>"> <div class="_first_title_text_1"> <div class="_ff"><?=$json->contains[$i];?></div> </div> <div class="_first_title_text_2"> <div class="_ff"><span><?=$weather[$i]->data->current_condition[0]->temp_C;?></span> <span>o</span></div> </div> </div> <div class="_first_title_icon"> <img src="img/<?=return_icon($weather[$i]->data->current_condition[0]->weatherCode,$weather_code)?>"/> </div> <div class="_second_title_before"> <?php for($j = 0; $j < 5; $j++):?> <div class="_days def_background" style="<?=str_replace('"',"'",$json->_days[$i]);?>;background: url(img/<?=return_icon($weather[$i]->data->weather[$j]->weatherCode,$weather_code);?>) no-repeat scroll 50% -20% / 100% 70%;"> <li class="_has_span"><?=$weather[$i]->data->weather[$j]->tempMaxC;?><span class="___mmm">o</span>/<?=$weather[$i]->data->weather[$j]->tempMinC;?><span class="___mmm">o</span><br/><?=$day_array[$j]?></li> <div class="<?=($json->other_info_display == 1)?'':'_display_none ';?>_other_info_ def_background" style="<?=str_replace('"',"'",$json->_other_info_[$i]);?>;background-image: url(img/<?=return_icon($weather[$i]->data->weather[$j]->weatherCode,$weather_code);?>);background-size:25px 25px;background-repeat:no-repeat;background-position:50% 0%;"> <div> <li>ტემპერატურა C:</li> <li>ტემპერატურა F:</li> <li>ქარის სიჩ. კმ/ს:</li> <li>ქარიანობის დონე:</li> <li>ნალექი მმ:</li> </div> <div> <li class="_f_0"><?=$weather[$i]->data->weather[$j]->tempMaxC;?>/<?=$weather[$i]->data->weather[$j]->tempMinC;?></li> <li class="_f_1"><?=$weather[$i]->data->weather[$j]->tempMaxF;?>/<?=$weather[$i]->data->weather[$j]->tempMinF;?></li> <li class="_f_2"><?=$weather[$i]->data->weather[$j]->windspeedKmph;?></li> <li class="_f_3"><?=$weather[$i]->data->weather[$j]->winddirDegree;?></li> <li class="_f_4"><?=$weather[$i]->data->weather[$j]->precipMM;?></li> </div> </div> </div> <?php endfor;?> </div> <div class="_second_title def_background" style="<?=str_replace('"',"'",$json->_second_title[$i]);?>"> </div> </div> <?php }?> <div id="_get_code"><a href="http://kharagauli.ge/weather/" target="_blank">ამინდის კოდი</a></div> <?php if(count($jj) > 1){ if(count($jj) == 2)$__width = 95; elseif(count($jj) == 3)$__width = 135; elseif(count($jj) == 4)$__width = 175; ?> <script> var bool = false; function topen(){ if(!bool){ $('#more_cityes').animate({bottom: -10+"px"},500); bool = true; }else{ $('#more_cityes').animate({bottom:-$('#more_cityes').attr('app')+"px"},500); bool = false; } } function choised_(ths){ var th = $(ths); $('.resizable[contains="'+th.attr("contains")+'"]').addClass('active').siblings('.resizable').removeClass('active'); th.addClass('active').siblings('.comment_').removeClass('active'); topen(); } </script> <div id="more_cityes" app="<?=$__width?>" style="bottom: -<?=$__width?>px;"> <div id="more_cityes_icon" onclick="topen()">სხვა ქალაქები</div> <?php for($j = 0; $j < count($jj); $j++): $url = explode(')',explode('url(',str_replace('"','',str_replace("'",'',$json->resizable[$j])))[1])[0]; ?> <div class="comment_<?=(!$j)?' active':'';?>" onclick="choised_(this);" contains="<?=$json->contains[$j]?>"> <div><?=$json->contains[$j]?></div> <div><img src="<?=$url?>"></div> </div> <?php endfor;?> </div> <?php }?> </div> <script> time_(); function time_(){ var first = document.getElementsByClassName('_first_')[0]; var second = document.getElementsByClassName('_second_')[0]; setInterval(function(){ var first_val = parseInt(first.innerHTML); var second_val = parseInt(second.innerHTML)+1; if(second_val >= 60){ second_val = 0; first_val++; } first.innerHTML = String(first_val).length == 1?'0'+first_val:first_val; second.innerHTML = String(second_val).length == 1?'0'+second_val:second_val; },60000); } </script> </body> </html> <!--end-->