Esempio n. 1
0
                         $isimage = false;
                 }
                 if ($isimage) {
                     if (!file_exists($template_dir . '/images/hotel')) {
                         mkdir($template_dir . '/images/hotel');
                     }
                     $ext = $sExt;
                     copy($sTempFileName, $template_dir . '/images/hotel/' . $FileName . $ext);
                     $name = $FileName . $ext;
                     $data_adjunto = array('nombre' => $name, 'ruta' => $template_url . "/images/hotel/" . $FileName . $ext, 'extension' => $ext, 'tipo' => 'logo');
                     if (isset($_REQUEST['idHotel']) && strlen($_REQUEST['idHotel'])) {
                         $idHotel = $_REQUEST['idHotel'];
                     } else {
                         $idHotel = 0;
                     }
                     $id_logo = insertLogo($data_adjunto, $idHotel);
                     @unlink($sTempFileName);
                     $result['msg'] = 'ok';
                     $result['data'] = $data_adjunto['ruta'];
                     $result['idLogo'] = $id_logo;
                 }
             }
         }
     }
 } else {
     if (strcmp($action, 'recuperarClave') == 0) {
         $idHotel = $_POST['idHotel'];
         $clave = getClaveByHotel($idHotel);
         $hotel = getHotelById($idHotel);
         $subject = 'Recuperación de clave de encriptación del hotel ' . $hotel->nombre;
         $body = 'Clave de encriptación de datos: ' . $clave;
Esempio n. 2
0
 | <?php 
print getOption('site_description');
?>
</title>
<link href="<?php 
print TEMPDIR;
?>
/style.css" rel="stylesheet" type="text/css" media="screen" />

<?php 
if (getOption('google_analytics') != '') {
    print getOption('google_analytics');
}
?>
</head>
<body>
<div id="fullWrap">

<div id="head">
<span class="logo">
<?php 
insertLogo();
?>
</span>
<div id="navWrap">

</div>
</div>

<div id="mainContent">