// it under the terms of the GNU General Public License as published by  //
// the Free Software Foundation; either version 2 of the License, or     //
// (at your option) any later version.                                   //
//                                                                       //
// This program is distributed in the hope that it will be useful,       //
// but WITHOUT ANY WARRANTY; without even the implied warranty of        //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         //
// GNU General Public License for more details:                          //
//                                                                       //
//          http://www.gnu.org/copyleft/gpl.html                         //
//                                                                       //
///////////////////////////////////////////////////////////////////////////
if ($_POST['cambiar_pass']) {
    $mensaje = cambiar_pass($_POST['pass_actual'], $_POST['pass_nueva'], $_POST['pass_nueva_2']);
} elseif ($_POST['cambiar_logo']) {
    $mensaje = cambiar_logo($_FILES['logo']);
}
echo $mensaje;
?>


<p>Introduce los datos necesarios para cambiar la contrase&ntilde;a: </p><br>

<form id="form1" name="form1" method="post" action="index.php">
  <input type='hidden' value='../commons/modificar_clave_logo' name='pag'></input>
  <div style="margin-left:30px">
  <table width="100%" border="0" class="tabla_sin_borde">
      <tr>
        <td width=25%>Contrase&ntilde;a actual:</td>
        <td width="25%"><input name="pass_actual" type="password" class="valor_defecto_sin_cursiva" id="pass_actual" accesskey="e" tabindex="1" value="" size='40' /></td>
      </tr>
<?php

///////////////////////////////////////////////////////////////////////////
//                                                                       //
// NOTICE OF COPYRIGHT                                                   //
//                                                                       //
// 	Adeada Talleres Electricos                                           //
//          http://www.grupogisma.com                                    //
//                                                                       //
// This program is free software; you can redistribute it and/or modify  //
// it under the terms of the GNU General Public License as published by  //
// the Free Software Foundation; either version 2 of the License, or     //
// (at your option) any later version.                                   //
//                                                                       //
// This program is distributed in the hope that it will be useful,       //
// but WITHOUT ANY WARRANTY; without even the implied warranty of        //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         //
// GNU General Public License for more details:                          //
//                                                                       //
//          http://www.gnu.org/copyleft/gpl.html                         //
//                                                                       //
///////////////////////////////////////////////////////////////////////////
session_start();
if (isset($_POST['cambiar_pass'])) {
    $cambiar = cambiar_pass($_POST['pass_actual'], $_POST['pass_nueva'], $_POST['pass_nueva_2']);
} elseif (isset($_POST['cambiar_logo'])) {
    $cambiar = cambiar_logo($_FILES['logo']);
}