Alternc  latest
Alternc logiel libre pour l'hébergement
mem_cm.php
Go to the documentation of this file.
1 <?php
2 /*
3  ----------------------------------------------------------------------
4  LICENSE
5 
6  This program is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public License (GPL)
8  as published by the Free Software Foundation; either version 2
9  of the License, or (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  To read the license please visit http://www.gnu.org/copyleft/gpl.html
17  ----------------------------------------------------------------------
18 */
19 
20 /**
21  * Change the email of an account, STEP 2
22  *
23  * @copyright AlternC-Team 2000-2017 https://alternc.com/
24  */
25 
26 require_once("../class/config_nochk.php");
27 include_once("head.php");
28 
29 $fields = array (
30  "usr" => array ("request", "integer", 0),
31  "cookie" => array ("request", "string", ""),
32  "cle" => array("request","string",""),
33 );
35 
36 ?>
37 <h3><?php __("Change the email of the account"); ?></h3>
38 <?php
39 echo $msg->msg_html_all();
40 if ($msg->has_msgs("ERROR")) {
41  echo "<p><span class='ina'><a href='mem_param.php'>"._("Click here to continue")."</a></span></p>";
42  include_once("foot.php");
43  exit();
44 }
45 ?>
46 <form method="post" action="mem_cm2.php">
47  <?php csrf_get(); ?>
48  <table border="1" cellspacing="0" cellpadding="4">
49  <tr><td colspan="2"><input type="hidden" name="usr" value="<?php ehe($usr); ?>" /><input type="hidden" name="cookie" value="<?php ehe($cookie); ?>" />
50 <?php __("Change the email of the account"); ?><br />
51  <?php __("Enter the key you got when you requested the mailbox change, then click the OK button."); ?></td></tr>
52  <tr><th><label for="cle"><?php __("Key"); ?></label></th><td><input type="text" class="int" name="cle" id="cle" value="<?php ehe($cle); ?>" size="8" maxlength="8" /></td></tr>
53  <tr><td align="center" colspan="3"><input type="submit" class="inb" name="submit" value="<?php __("OK"); ?>" /></td></tr>
54  </table>
55 </form>
56 <?php include_once("foot.php"); ?>
exit
Definition: adm_doadd.php:70
$msg
Definition: bootstrap.php:75
__($str)
Definition: functions.php:404
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.
Definition: functions.php:688
csrf_get($return=false)
Give a new CSRF uniq token for a form the session must be up since the CSRF is linked to the session ...
Definition: functions.php:1159
$fields
Change the email of an account, STEP 2.
Definition: mem_cm.php:29