ÿØÿà JFIF ÿþ
ÿÛ C
ÿÛ C ÿÀ ÿÄ ÿÄ " #QrÿÄ ÿÄ & 1! A"2qQaáÿÚ ? Øy,æ/3JæÝ¹Èß²Ø5êXw²±ÉyR¾I0ó2PI¾IÌÚiMö¯þrìN&"KgX:íµnTJnLK
@!-ýùúmë;ºgµ&ó±hw¯Õ@Ü9ñ-ë.²1<yà¹ïQÐUÛ?.¦èûbß±©Ö«Âw*V) `$bØÔëXÖ-ËTÜíGÚ3ð«g §¯JxU/ÂÅv_s(Hÿ @TñJÑãõçn!ÈgfbÓc:él[ðQe9ÀPLbÃãCµm[5¿ç'ªjglåÛí_§Úõl-;"PkÞÞÁQâ¼_Ñ^¢S x?"¸¦ùYé¨ÒOÈ q`~~ÚtËU¹CÚêV I1Áß_ÿÙ
$path_relativa = "../../";
include_once("".$path_relativa."includes_cms/babesa_kudeaketa.php");
// Para el INDICE
$nodo_mota = 0;
$nodomotak = array();
// Para OPCIONES ACTIVAS del INDICE
$estoyentaxonomias = 0;
$estoyengrupos = 0;
$estoyenusuarios = 0;
// Limpiar PARAMETROS
$kodea = new Codigo();
$miusuario_perfil = $_SESSION['usuario_perfil'];
$miusuario_perfil = $kodea->kodea_garbitu($miusuario_perfil,'int');
$miusuario_id = $_SESSION['usuario'];
$miusuario_id = $kodea->kodea_garbitu($miusuario_id,'int');
// Recuperar parametros GET
$zedoku = 0;
if (isset($_GET['dk'])) {
$zedoku = $_GET['dk'];
$zedoku = $kodea->kodea_garbitu($zedoku,'int');
}
// Documento (MAS INFO)
$zebaldintza = " WHERE masinfo_ID = ? ";
$balioak = array($zedoku);
$documento = new Masinfo();
$zedocumento = $documento->masinfo_lista_lortu($zebaldintza,$balioak);
unset($documento);
// Sacar NODO del MAS INFO
if (count($zedocumento) > 0) { // Si existe el DOCUMENTO (MAS INFO)
$nodoa = $zedocumento[0]['masinfo_nodo'];
}
if (isset($_POST['nodoa'])) {
$nodoa = $_POST['nodoa'];
$nodoa = $kodea->kodea_garbitu($nodoa,'int');
}
// Sacar TIPO-NODO
$zebaldintza = "WHERE nodo_ID = ?";
$balioak = array($nodoa);
$nodomota = new Nodo();
$nodomotak = $nodomota->nodo_lista($zebaldintza,$balioak);
// Para el INDICE
if (count($nodomotak) > 0) {
$nodo_mota = $nodomotak[0]['nodo_mota'];
$_SESSION['tipo_nodo'] = $nodo_mota;
}
$zebaldintza = "WHERE tipo_ID = ?";
$balioak = array($nodomotak[0]['nodo_mota']);
$nodomotak = $nodomota->nodo_mota_lista($zebaldintza,$balioak);
unset($nodomota);
unset($kodea);
// Fecha ACTUAL
$data = new Fecha();
$data->sacarfecha();
$urte = $data->urte;
$hila = $data->hila;
$egun = $data->egun;
$ordua = $data->ordua;
unset($data);
// EDITAR
if ((isset($_POST["editatu"])) && ($_POST["editatu"] == "editatu")) {
// Limpiar PARAMETROS
$kodea = new Codigo();
$nodoa = $kodea->kodea_garbitu($_POST['nodoa'],'int');
$zedokupost = $kodea->kodea_garbitu($_POST['zedoku'],'int');
// Sacar TIPO-NODO
$zebaldintza = "WHERE nodo_ID = ?";
$balioak = array($nodoa);
$nodomota = new Nodo();
$nodomotak = $nodomota->nodo_lista($zebaldintza,$balioak);
$zebaldintza = "WHERE tipo_ID = ?";
$balioak = array($nodomotak[0]['nodo_mota']);
$nodomotak = $nodomota->nodo_mota_lista($zebaldintza,$balioak);
unset($nodomota);
$eltexto1 = $kodea->html_garbitu(utf8_decode($_POST['texto1']));
$eltexto2 = $kodea->html_garbitu(utf8_decode($_POST['texto2']));
$eltexto3 = $kodea->html_garbitu(utf8_decode($_POST['texto3']));
$eltexto4 = $kodea->html_garbitu(utf8_decode($_POST['texto4']));
$elarchivo1_orig = $kodea->html_garbitu($_POST['url_orig1']);
$elarchivo2_orig = $kodea->html_garbitu($_POST['url_orig2']);
$elarchivo3_orig = $kodea->html_garbitu($_POST['url_orig3']);
$elarchivo4_orig = $kodea->html_garbitu($_POST['url_orig4']);
$archivo1 = $_FILES['archivo1'];
$archivo2 = $_FILES['archivo2'];
$archivo3 = $_FILES['archivo3'];
$archivo4 = $_FILES['archivo4'];
$laurl1 = $kodea->html_garbitu($_POST['url1']);
$laurl2 = $kodea->html_garbitu($_POST['url2']);
$laurl3 = $kodea->html_garbitu($_POST['url3']);
$laurl4 = $kodea->html_garbitu($_POST['url4']);
// Valores de SUBIDO por defecto
$sehasubido = 0;
$sehasubido1 = 0;
$sehasubido2 = 0;
$sehasubido3 = 0;
$sehasubido4 = 0;
// Creo una funcin propia para checkear el DOMINIO (si existe)
function myCheckDNSRR($hostName, $recType = '') {
if(!empty($hostName)) {
if( $recType == '' ) $recType = "MX";
exec("nslookup -type=$recType $hostName", $result);
// Check each line to find the one that starts with the host name.
// If it exists then the function succeeded.
foreach ($result as $line) {
if(eregi("^$hostName",$line)) {
return true;
}
}
// otherwise there was no mail handler for the domain
return false;
}
return false;
}
// ARCHIVO o URL en ES
if ($archivo1['name'] != '') {
$dokumentua = new Masinfo();
$sehasubido1 = $dokumentua->dokumentua_igo($archivo1,$nodomotak[0]['tipo_titulo1']);
$elarchivo1 = $dokumentua->elnombrearchivo;
unset($dokumentua);
if ($sehasubido1 != 1) $elarchivo1 = $elarchivo1_orig;
} else {
$elarchivo1 = $laurl1;
if ($elarchivo1 == 'http://') $elarchivo1 = '';
if ($elarchivo1 != '') {
//file_put_contents('oooops.txt', "ENLACE 1: ".$elarchivo1.PHP_EOL, FILE_APPEND);
// PREPARAMOS LA URL EN ABSOLUTAS
// Para saber si en la URL aparece algun DOMINIO existente
$protocolos = array('http://', 'https://', 'ftp://', 'www.');
$url1 = explode('/', str_replace($protocolos, '', $elarchivo1));
$dominio1 = $url1[0];
// Sacar el protocolo de la URL (http://, https://, ...)
$esteprotocolo1 = '';
if (strpos(strtoupper($elarchivo1),'HTTP://') !== FALSE) {
$esteprotocolo1 = 'http://';
}
if (strpos(strtoupper($elarchivo1),'HTTPS://') !== FALSE) {
$esteprotocolo1 = 'https://';
}
//file_put_contents('oooops.txt', "PROTOCOLO 1: ".$esteprotocolo1.PHP_EOL, FILE_APPEND);
// Comprobar si existe este DOMINIO
//$existe_dominio1 = 0; // Por defecto NO EXISTE EL DOMINIO
//if (myCheckDNSRR($dominio1) || $dominio1 == 'www.basquetour.eus') $existe_dominio1 = 1; // Si EXISTE EL DOMINIO
// MARZO 2019 - Comprobar si existe este DOMINIO
$existe_dominio1 = 0; // Por defecto NO ENLACE
if ( strpos(strtoupper($elarchivo1),'HTTP://') !== FALSE || strpos(strtoupper($elarchivo1),'HTTPS://') !== FALSE || strpos(strtoupper($elarchivo1),'WWW') !== FALSE ) $existe_dominio1 = 1; // ES ENLACE
//file_put_contents('oooops.txt', "EXISTE DOMINIO 1: ".$existe_dominio1.PHP_EOL, FILE_APPEND);
// Si NO existe el DOMINIO le aadimos por delante nuestra URL_BASE
if ($existe_dominio1 == 0) { // Si NO EXISTE EL DOMINIO
$elarchivo1 = $urlBASE . $elarchivo1;
}
// Si existe el DOMINIO y NO tiene PROTOCOLO ("http://" o "https://") se lo aadimos por delante
if ($existe_dominio1 == 1 && strpos(strtoupper($elarchivo1),strtoupper($esteprotocolo1)) === FALSE) { // Si EXISTE EL DOMINIO y NO tiene PROTOCOLO ("http://" o "https://")
$elarchivo1 = $esteprotocolo1 . $elarchivo1;
//file_put_contents('oooops.txt', "EXISTE DOMINIO 1 / ENLACE 1 FINAL: ".$elarchivo1.PHP_EOL.PHP_EOL, FILE_APPEND);
}
$sehasubido1 = 1;
}
}
if ($elarchivo1 == '') $elarchivo1 = $elarchivo1_orig;
// ARCHIVO o URL en EU
if ($archivo2['name'] != '') {
$dokumentua = new Masinfo();
$sehasubido2 = $dokumentua->dokumentua_igo($archivo2,$nodomotak[0]['tipo_titulo1']);
$elarchivo2 = $dokumentua->elnombrearchivo;
unset($dokumentua);
if ($sehasubido2 != 1) $elarchivo2 = $elarchivo2_orig;
} else {
$elarchivo2 = $laurl2;
if ($elarchivo2 == 'http://') $elarchivo2 = '';
if ($elarchivo2 != '') {
// PREPARAMOS LA URL EN ABSOLUTAS
// Para saber si en la URL aparece algun DOMINIO existente
$protocolos = array('http://', 'https://', 'ftp://', 'www.');
$url2 = explode('/', str_replace($protocolos, '', $elarchivo2));
$dominio2 = $url2[0];
// Sacar el protocolo de la URL (http://, https://, ...)
$esteprotocolo2 = '';
if (strpos(strtoupper($elarchivo2),'HTTP://') !== FALSE) {
$esteprotocolo2 = 'http://';
}
if (strpos(strtoupper($elarchivo2),'HTTPS://') !== FALSE) {
$esteprotocolo2 = 'https://';
}
// Comprobar si existe este DOMINIO
//$existe_dominio2 = 0; // Por defecto NO EXISTE EL DOMINIO
//if (myCheckDNSRR($dominio2) || $dominio2 == 'www.basquetour.eus') $existe_dominio2 = 1; // Si EXISTE EL DOMINIO
// MARZO 2019 - Comprobar si existe este DOMINIO
$existe_dominio2 = 0; // Por defecto NO ENLACE
if ( strpos(strtoupper($elarchivo2),'HTTP://') !== FALSE || strpos(strtoupper($elarchivo2),'HTTPS://') !== FALSE || strpos(strtoupper($elarchivo2),'WWW') !== FALSE ) $existe_dominio2 = 1; // ES ENLACE
// Si NO existe el DOMINIO le aadimos por delante nuestra URL_BASE
if ($existe_dominio2 == 0) { // Si NO EXISTE EL DOMINIO
$elarchivo2 = $urlBASE . $elarchivo2;
}
// Si existe el DOMINIO y NO tiene PROTOCOLO ("http://" o "https://") se lo aadimos por delante
if ($existe_dominio2 == 1 && ($esteprotocolo2 != '' && strpos(strtoupper($elarchivo2),strtoupper($esteprotocolo2)) === FALSE)) { // Si existe el DOMINIO y NO tiene PROTOCOLO ("http://" o "https://")
$elarchivo2 = $esteprotocolo2 . $elarchivo2;
}
$sehasubido2 = 1;
}
}
if ($elarchivo2 == '') $elarchivo2 = $elarchivo2_orig;
// ARCHIVO o URL en EN
if ($archivo3['name'] != '') {
$dokumentua = new Masinfo();
$sehasubido3 = $dokumentua->dokumentua_igo($archivo3,$nodomotak[0]['tipo_titulo1']);
$elarchivo3 = $dokumentua->elnombrearchivo;
unset($dokumentua);
if ($sehasubido3 != 1) $elarchivo3 = $elarchivo3_orig;
} else {
$elarchivo3 = $laurl3;
if ($elarchivo3 == 'http://') $elarchivo3 = '';
if ($elarchivo3 != '') {
// PREPARAMOS LA URL EN ABSOLUTAS
// Para saber si en la URL aparece algun DOMINIO existente
$protocolos = array('http://', 'https://', 'ftp://', 'www.');
$url3 = explode('/', str_replace($protocolos, '', $elarchivo3));
$dominio3 = $url3[0];
// Sacar el protocolo de la URL (http://, https://, ...)
$esteprotocolo3 = '';
if (strpos(strtoupper($elarchivo3),'HTTP://') !== FALSE) {
$esteprotocolo3 = 'http://';
}
if (strpos(strtoupper($elarchivo3),'HTTPS://') !== FALSE) {
$esteprotocolo3 = 'https://';
}
// Comprobar si existe este DOMINIO
//$existe_dominio3 = 0; // Por defecto NO EXISTE EL DOMINIO
//if (myCheckDNSRR($dominio3) || $dominio3 == 'www.basquetour.eus') $existe_dominio3 = 1; // Si EXISTE EL DOMINIO
// MARZO 2019 - Comprobar si existe este DOMINIO
$existe_dominio3 = 0; // Por defecto NO ENLACE
if ( strpos(strtoupper($elarchivo3),'HTTP://') !== FALSE || strpos(strtoupper($elarchivo3),'HTTPS://') !== FALSE || strpos(strtoupper($elarchivo3),'WWW') !== FALSE ) $existe_dominio3 = 1; // ES ENLACE
// Si NO existe el DOMINIO le aadimos por delante nuestra URL_BASE
if ($existe_dominio3 == 0) { // Si NO EXISTE EL DOMINIO
$elarchivo3 = $urlBASE . $elarchivo3;
}
// Si existe el DOMINIO y NO tiene PROTOCOLO ("http://" o "https://") se lo aadimos por delante
if ($existe_dominio3 == 1 && ($esteprotocolo3 != '' && strpos(strtoupper($elarchivo3),strtoupper($esteprotocolo3)) === FALSE)) { // Si EXISTE EL DOMINIO y NO tiene PROTOCOLO ('http://' o 'https://')
$elarchivo3 = $esteprotocolo3 . $elarchivo3;
}
$sehasubido3 = 1;
}
}
if ($elarchivo3 == '') $elarchivo3 = $elarchivo3_orig;
// ARCHIVO o URL en FR
if ($archivo4['name'] != '') {
$dokumentua = new Masinfo();
$sehasubido4 = $dokumentua->dokumentua_igo($archivo4,$nodomotak[0]['tipo_titulo1']);
$elarchivo4 = $dokumentua->elnombrearchivo;
unset($dokumentua);
if ($sehasubido4 != 1) $elarchivo4 = $elarchivo4_orig;
} else {
$elarchivo4 = $laurl4;
if ($elarchivo4 == 'http://') $elarchivo4 = '';
if ($elarchivo4 != '') {
// PREPARAMOS LA URL EN ABSOLUTAS
// Para saber si en la URL aparece algun DOMINIO existente
$protocolos = array('http://', 'https://', 'ftp://', 'www.');
$url4 = explode('/', str_replace($protocolos, '', $elarchivo4));
$dominio4 = $url4[0];
// Sacar el protocolo de la URL (http://, https://, ...)
$esteprotocolo4 = '';
if (strpos(strtoupper($elarchivo4),'HTTP://') !== FALSE) {
$esteprotocolo4 = 'http://';
}
if (strpos(strtoupper($elarchivo4),'HTTPS://') !== FALSE) {
$esteprotocolo4 = 'https://';
}
// Comprobar si existe este DOMINIO
//$existe_dominio4 = 0; // Por defecto NO EXISTE EL DOMINIO
//if (myCheckDNSRR($dominio4) || $dominio4 == 'www.basquetour.eus') $existe_dominio4 = 1; // Si EXISTE EL DOMINIO
// MARZO 2019 - Comprobar si existe este DOMINIO
$existe_dominio4 = 0; // Por defecto NO ENLACE
if ( strpos(strtoupper($elarchivo4),'HTTP://') !== FALSE || strpos(strtoupper($elarchivo4),'HTTPS://') !== FALSE || strpos(strtoupper($elarchivo4),'WWW') !== FALSE ) $existe_dominio4 = 1; // ES ENLACE
// Si NO existe el DOMINIO le aadimos por delante nuestra URL_BASE
if ($existe_dominio4 == 0) { // Si NO EXISTE EL DOMINIO
$elarchivo4 = $urlBASE . $elarchivo4;
}
// Si existe el DOMINIO y NO tiene PROTOCOLO ("http://" o "https://") se lo aadimos por delante
if ($existe_dominio4 == 1 && ($esteprotocolo4 != '' && strpos(strtoupper($elarchivo4),$esteprotocolo4) === FALSE)) { // Si EXISTE EL DOMINIO y NO tiene PROTOCOLO ('http://' o 'https://')
$elarchivo4 = $esteprotocolo4 . $elarchivo4;
}
$sehasubido4 = 1;
}
}
if ($elarchivo4 == '') $elarchivo4 = $elarchivo4_orig;
if ($sehasubido1 <= 1 && $sehasubido2 <= 1 && $sehasubido3 <= 1 && $sehasubido4 <= 1) { // Si NO se han insertado ARCHIVOS o se ha insertado algun ARCHIVO y NO hay ERROR en ningun IDIOMA
$sehasubido = 1;
}
if ($sehasubido1 > 1 || $sehasubido2 > 1 || $sehasubido3 > 1 || $sehasubido4 > 1) { // Si se ha insertado algun ARCHIVO y hay ERROR en algun IDIOMA
$sehasubido = 0;
if ($sehasubido4 > 1) $sehasubido = $sehasubido4;
if ($sehasubido3 > 1) $sehasubido = $sehasubido3;
if ($sehasubido2 > 1) $sehasubido = $sehasubido2;
if ($sehasubido1 > 1) $sehasubido = $sehasubido1;
}
if ($sehasubido == 1) { // Si se ha subido el ARCHIVO (NO HAY ERROR)
// Guardar VERSION si NO ES NUEVO
if (!isset($_SESSION['esnuevo']) || ($_SESSION['esnuevo'] != $nodoa)) {
$version = new Version();
$version->guardar_version($nodoa);
unset($version);
}
// Parametros POST del NODO GENERICO a modificar
$eleguneratze_egun = $kodea->html_garbitu($_POST['eguneratze_egun']);
$eleguneratze_hila = $kodea->html_garbitu($_POST['eguneratze_hila']);
$eleguneratze_urte = $kodea->html_garbitu($_POST['eguneratze_urte']);
$eleguneratze_ordua = $kodea->html_garbitu($_POST['eguneratze_ordua']);
$eleguneratzaile = $kodea->kodea_garbitu($_POST['eguneratzaile'],'int');
$eleguneratzaileIP = $kodea->html_garbitu($_POST['eguneratzaileIP']);
// Actualizar NODO
$taula = "nodo";
$eremuak = "nodo_egun_egun,nodo_egun_hila,nodo_egun_urte,nodo_egun_ordua,nodo_eguneratzaile,nodo_eguneratzaile_IP";
$balioak = array($eleguneratze_egun,$eleguneratze_hila,$eleguneratze_urte,$eleguneratze_ordua,$eleguneratzaile,$eleguneratzaileIP);
$baldintza = ' WHERE nodo_ID = ' . $nodoa;
$db = new Datubasea();
$db->konektatu();
$db->update($taula,$eremuak,$balioak,$baldintza);
$db->deskonektatu();
unset($db);
// Alimentamos los campos en CASTELLANO por si vienen VACIOS (que tomen los VALORES de los otros IDIOMAS)
if ($eltexto1 == '' && $eltexto4 != '') $eltexto1 = $eltexto4;
if ($eltexto1 == '' && $eltexto3 != '') $eltexto1 = $eltexto3;
if ($eltexto1 == '' && $eltexto2 != '') $eltexto1 = $eltexto2;
if ($elarchivo1 == '' && $elarchivo4 != '') $elarchivo1 = $elarchivo4;
if ($elarchivo1 == '' && $elarchivo3 != '') $elarchivo1 = $elarchivo3;
if ($elarchivo1 == '' && $elarchivo2 != '') $elarchivo1 = $elarchivo2;
//ABRIL 2019, PROBLEMA, SI VIENE ? LO DEVUELVE COMO " ??;
$eltexto1 = str_replace('"','?',$eltexto1);
$eltexto2 = str_replace('"','?',$eltexto2);
$eltexto3 = str_replace('"','?',$eltexto3);
$eltexto4 = str_replace('"','?',$eltexto4);
$elarchivo1 = str_replace('"','?',$elarchivo1);
$elarchivo2 = str_replace('"','?',$elarchivo2);
$elarchivo3 = str_replace('"','?',$elarchivo3);
$elarchivo4 = str_replace('"','?',$elarchivo4);
// Editar MAS INFO (DOCUMENTO)
$taula = "masinfo";
$eremuak = "masinfo_titulo1,masinfo_titulo2,masinfo_titulo3,masinfo_titulo4,masinfo_url1,masinfo_url2,masinfo_url3,masinfo_url4";
$balioak = array($eltexto1,$eltexto2,$eltexto3,$eltexto4,$elarchivo1,$elarchivo2,$elarchivo3,$elarchivo4);
$baldintza = ' WHERE masinfo_ID = ' . $zedokupost;
$db = new Datubasea();
$db->konektatu();
$db->update($taula,$eremuak,$balioak,$baldintza);
$db->deskonektatu();
unset($db);
// Eliminar archivo ANTERIOR en ES
if ($elarchivo1 != $elarchivo1_orig && $elarchivo1_orig != '' && strpos($elarchivo1_orig,"http://") === FALSE) { // Ha habido un CAMBIO, eliminar ARCHIVO ANTERIOR
$archivoviejo = "../../doc_din/" . $nodomotak[0]['tipo_titulo1'] . '/'. $elarchivo1_orig;
if (file_exists($archivoviejo)) {
if (strpos($archivoviejo,'_ver') === FALSE) unlink($archivoviejo); // Solo si NO es ARCHIVO DE VERSION
}
} // Eliminar ARCHIVO ANTERIOR en ES
// Eliminar archivo ANTERIOR en EU
if ($elarchivo2 != $elarchivo2_orig && $elarchivo2_orig != '' && strpos($elarchivo2_orig,"http://") === FALSE) { // Ha habido un CAMBIO, eliminar ARCHIVO ANTERIOR
$archivoviejo = "../../doc_din/" . $nodomotak[0]['tipo_titulo1'] . '/'. $elarchivo2_orig;
if (file_exists($archivoviejo)) {
if (strpos($archivoviejo,'_ver') === FALSE) unlink($archivoviejo); // Solo si NO es ARCHIVO DE VERSION
}
} // Eliminar ARCHIVO ANTERIOR en EU
// Eliminar archivo ANTERIOR en EN
if ($elarchivo3 != $elarchivo3_orig && $elarchivo3_orig != '' && strpos($elarchivo3_orig,"http://") === FALSE) { // Ha habido un CAMBIO, eliminar ARCHIVO ANTERIOR
$archivoviejo = "../../doc_din/" . $nodomotak[0]['tipo_titulo1'] . '/'. $elarchivo3_orig;
if (file_exists($archivoviejo)) {
if (strpos($archivoviejo,'_ver') === FALSE) unlink($archivoviejo); // Solo si NO es ARCHIVO DE VERSION
}
} // Eliminar ARCHIVO ANTERIOR en EN
// Eliminar archivo ANTERIOR en FR
if ($elarchivo4 != $elarchivo4_orig && $elarchivo4_orig != '' && strpos($elarchivo4_orig,"http://") === FALSE) { // Ha habido un CAMBIO, eliminar ARCHIVO ANTERIOR
$archivoviejo = "../../doc_din/" . $nodomotak[0]['tipo_titulo1'] . '/'. $elarchivo4_orig;
if (file_exists($archivoviejo)) {
if (strpos($archivoviejo,'_ver') === FALSE) unlink($archivoviejo); // Solo si NO es ARCHIVO DE VERSION
}
} // Eliminar ARCHIVO ANTERIOR en FR
} // Si se ha subido el ARCHIVO (NO HAY ERROR)
unset($kodea);
// Notificar si NO ES NUEVO
if (!isset($_SESSION['esnuevo']) || ($_SESSION['esnuevo'] != $nodoa)) {
$email = new Correo();
$email->notificar_edicion($nodoa);
unset($email);
}
// Se recoge que el NODO ES NUEVO, para crear VERSIONES o NO
$_SESSION['esnuevo'] = $nodoa;
$NoraJo = "docuer.php?subido=" . $sehasubido;
header(sprintf("Location: %s", $NoraJo));
}
// Para ACTUALIZACION
$eguneratze_egun = $egun;
$eguneratze_hila = $hila;
$eguneratze_urte = $urte;
$eguneratze_ordua = $ordua;
// USUARIO
$erabiltzaile = new Usuario();
$erabiltzaile->erabiltzailea_lortu($miusuario_id);
$eguneratzaile = $erabiltzaile->usuario_lista;
$eguneratzailea = $eguneratzaile[0]['usuario_ID'];
$eguneratzaile_ip = $erabiltzaile->IPusuario();
unset($erabiltzaile);
include_once("".$path_relativa."includes_cms/burukoa_htm_kudeaketa.php"); ?>
EDITANDO DOCUMENTO...
include_once("".$path_relativa."includes_cms/laguntza.php"); ?>
include_once("".$path_relativa."includes_cms/indice_movil.php"); ?>
include_once("".$path_relativa."includes_cms/indice.php"); ?>
include_once("".$path_relativa."includes_cms/busqueda_nodos.php"); ?>
if ($nodo_mota == 2) { ?>PÁGINA » } ?> if ($nodo_mota == 3) { ?>NOTICIA » } ?> if ($nodo_mota == 4) { ?>DOCUMENTO » } ?> if ($nodo_mota == 5) { ?>EVENTO » } ?>EDITAR DOCUMENTO
Introduce el nombre del documento, elige el archivo (necesariamente un DOC, DOCX, PDF, ZIP, MP3, MPEG o JPG) en tu disco duro (o red local) y pulsa "GUARDAR CAMBIOS". Puedes subir un archivo o asignar un enlace para cada uno de los idiomas. Si el archivo es diferente en otro idioma deberás elegir otro archivo e introducir el nombre en el idioma correspondiente. Si es igual, es suficiente con añadirlo sólo en castellano. Para salir del formulario pulsa "OK".