</form> </div> </div> </nav> <div class="container"> <?php if ($_SESSION[$_SESSION["CFGURL"]]["ssuser_id"]) { require_once T3_ABSPATH . 'common/include/inc.misTerminos.php'; } else { if ($_POST["task"] == 'user_recovery') { $task_result = recovery($_POST["id_correo_electronico_recovery"]); } if ($_GET["task"] == 'recovery') { echo HTMLformRecoveryPassword(); } else { if ($_POST["task"] == 'login' && !$_SESSION[$_SESSION["CFGURL"]]["ssuser_id"]) { $task_result = array("msg" => t3_messages('no_user')); } echo HTMLformLogin($task_result); } } // if session ?> </div><!-- /.container --> <!-- ###### Footer ###### -->
</td> <td> <?php echo $record["visits"]; ?> </td> <td> <img src="../../images/pencil.png" alt="Edit details" id="<?php echo $file_id; ?> " onClick="detailsDialog(this.id);" / > </td> <td bgcolor="ffffff"> <?php recovery($file, $path); ?> </td> </tr> <?php $total++; } // finish showing the files close_db(); // close connection ?> </table> <?php echo $total; ?>
} $name = $_POST["usr_email"]; $passwd = $_POST["pwd"]; $op = $_POST["doLogin"]; $oldpass = $_POST["oldpwd"]; $newpass = $_POST["newpwd1"]; $newpass2 = $_POST["newpwd2"]; $pwd1 = $_POST["pwd1"]; $pwd2 = $_POST["pwd2"]; #echo "name $name, passwd $passwd"; if ($op == "Change") { if ($newpass == $newpass2) { echo "Going to change password for {$name}"; change($name, $oldpass, $newpass); } else { echo "retype password didn't match"; } } elseif ($op == "Register") { if ($pwd1 == $pwd2) { register($name, $pwd1); } else { echo "retype password didn't match"; } } elseif ($op == "Recovery") { $pass = recovery($name); exec("sudo ./sendpass.pl {$name} {$pass} &"); echo "An email is delivering to your mailbox"; header('Location: ./login.php'); } else { login($name, $passwd); }
include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.users.menus.inc'; include_once 'ressources/class.mysql.inc'; include_once 'ressources/class.ini.inc'; include_once 'ressources/class.cron.inc'; include_once 'ressources/class.system.network.inc'; $users = new usersMenus(); if (!$users->AsPostfixAdministrator) { $tpl = new templates(); $error = $tpl->javascript_parse_text("{ERROR_NO_PRIVS}"); echo "alert('{$error}')"; die; } if (isset($_POST["recovery"])) { recovery(); exit; } js(); function js() { $usersmenus = new usersMenus(); $tpl = new templates(); $page = CurrentPageName(); $warn = $tpl->javascript_parse_text("{zarafa_database_recovery_warn}"); $t = time(); $html = "\n\tvar x_Zarafa{$t}= function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tif(tempvalue.length>3){alert(tempvalue)};\n\t\t\n\t\t\n\t}\t\n\t\t\n\t\n\tfunction Zarafa{$t}(){\n\t\tvar XHR = new XHRConnection();\n\t\tif(!confirm('{$warn}')){return;}\n\t\t\n\t\tXHR.appendData('recovery','yes');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_Zarafa{$t});\n\t\t}\n\n\t\n\tZarafa{$t}()"; } function ZarafaSave() { $sock = new sockets();