当前位置: 首页>>代码示例>>PHP>>正文


PHP account::getEmail方法代码示例

本文整理汇总了PHP中account::getEmail方法的典型用法代码示例。如果您正苦于以下问题:PHP account::getEmail方法的具体用法?PHP account::getEmail怎么用?PHP account::getEmail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在account的用法示例。


在下文中一共展示了account::getEmail方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Copyright

           |   __|     | | |  |  | -_| | |_ -|
           |_____|_|_|_|___|____/|___|\_/|___|
    Copyright (C) 2013 EmuDevs <http://www.emudevs.com/>
*/
account::isNotLoggedIn();
if (isset($_POST['save'])) {
    account::changeEmail($_POST['email'], $_POST['current_pass']);
}
?>
<div class='box_two_title'>Change Email</div>
<form action="?p=settings" method="post">
<table width="70%">
       <tr>
           <td>Email adress:</td> 
           <td><input type="text" name="email" value="<?php 
echo account::getEmail($_SESSION['cw_user']);
?>
"></td>
       </tr>
       <tr>
           <td></td> 
           <td><hr/></td>
       </tr>
       <tr>
           <td>Enter your current password:</td> 
           <td><input type="password" name="current_pass"></td>
       </tr>
       
       <tr>
           <td></td> 
           <td><input type="submit" value="Save" name="save"></td>
开发者ID:Kheros,项目名称:CraftedWeb,代码行数:31,代码来源:settings.php

示例2:

    ?>
Account selected: <a href='?p=users&s=manage&user=<?php 
    echo $_GET['editaccount'];
    ?>
'><?php 
    echo $account->getAccName($_GET['editaccount']);
    ?>
</a><p />
   <table width="100%">
	<input type="hidden" id="account_id" value="<?php 
    echo $_GET['editaccount'];
    ?>
" />
		   <tr><td>Email</td> <td><input type="text" id="edit_email" class='noremove' 
		   value="<?php 
    echo $account->getEmail($_GET['editaccount']);
    ?>
"/> </tr> 
		   <tr><td>Set Password</td><td><input type="text" id="edit_password" class='noremove'/></td></tr>
		   <tr><td>Vote Points</td> <td><input type="text" id="edit_vp" value="<?php 
    echo $account->getVP($_GET['editaccount']);
    ?>
" class='noremove'/> </tr>
		   <tr><td><?php 
    echo $GLOBALS['donation']['coins_name'];
    ?>
</td> 
									<td><input type="text" id="edit_dp" value="<?php 
    echo $account->getDP($_GET['editaccount']);
    ?>
" class='noremove'/></td></tr>
开发者ID:nero08,项目名称:CraftedWeb,代码行数:31,代码来源:users-manage.php

示例3:

    $validLogin = $account->loginExists($_POST['login']);
    $emailSent = FALSE;
    if ($validLogin) {
        // Set a new token for the user.
        $token = $account->setToken($_POST['login']);
        // Create and send the email.
        $subject = $common->getSetting("siteName") . " Password Reset Request";
        $message = "A password reset request has been received by your ADS-B portal.\r\n";
        $message .= "\r\n";
        $message .= "If you did not request this password reset simply disregard this email.\r\n";
        $message .= "If in fact you did request a password reset follow the link below to do so.\r\n";
        $message .= "\r\n";
        $message .= "http://" . $_SERVER['HTTP_HOST'] . "/admin/reset.php?token=" . $token . "\r\n";
        $message .= "\r\n";
        $message .= "Your password reset token is: " . $token;
        $emailSent = $common->sendEmail($account->getEmail($_POST['login']), $subject, $message);
    }
}
/////////////////////
// BEGIN HTML BODY //
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title></title>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" />
        <link rel="stylesheet" href="assets/css/forgot.css" />
    </head>
    <body>
开发者ID:pinkfroot,项目名称:adsb-feeder,代码行数:31,代码来源:forgot.php

示例4:

                <div class="panel-body">
                    <div class="form-group">
                        <input type="text" class="form-control" name="login" id="login" placeholder="Login" value="<?php 
echo $_SESSION['login'];
?>
" disabled>
                    </div>
                    <div class="form-group">
                        <input type="text" class="form-control" name="name" id="name" placeholder="Name" value="<?php 
echo $account->getName($_SESSION['login']);
?>
" required>
                    </div>
                    <div class="form-group">
                        <input type="email" class="form-control" name="email" id="email" placeholder="Email Address" value="<?php 
echo $account->getEmail($_SESSION['login']);
?>
" required>
                    </div>
                </div>
            </div>

            <div class="panel panel-default">
                <div class="panel-heading">Change Password</div>
                <div class="panel-body">
                    <div class="form-group">
                        <input type="password" class="form-control" name="password" id="password" placeholder="Current Password">
                    </div>
                    <div class="form-group">
                        <input type="password" class="form-control" name="password1" id="password1" placeholder="New Password" required>
                    </div>
开发者ID:pinkfroot,项目名称:adsb-feeder,代码行数:31,代码来源:account.php


注:本文中的account::getEmail方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。