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


PHP SecurityUtil::Decode方法代码示例

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


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

示例1:

                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-lg-2 control-label">User Name</label>
                                            <div class="col-lg-10">
                                                <input type="text" name="username" placeholder="User Name" required="required" value="<?php 
echo $user->getUserName();
?>
" class="form-control">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-lg-2 control-label">Password</label>
                                            <div class="col-lg-10">
                                                <input type="text" name="password" placeholder="Password" required="required" value="<?php 
echo SecurityUtil::Decode($user->getPassword());
?>
" class="form-control">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-lg-2 control-label">Email</label>
                                            <div class="col-lg-10">
                                                <input type="email" name="emailId" placeholder="Email" required="required" value="<?php 
echo $user->getEmailId();
?>
" class="form-control">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-lg-2 control-label">Active</label>
开发者ID:munishsethi777,项目名称:eliveui,代码行数:31,代码来源:CreateUserForm.php

示例2:

<?php

require_once 'IConstants.inc';
require_once $ConstantsArray['dbServerUrl'] . "SecurityUtil/SecurityUtil.php";
$expression = $_GET["val"];
if ($expression != null) {
    echo SecurityUtil::Decode($expression);
}
die;
开发者ID:munishsethi777,项目名称:eliveui,代码行数:9,代码来源:decode.php

示例3: foreach

                  <tr>
                    <td width="20%" class="ui-widget-header">Location</td>
                    <td width="20%" class="ui-widget-header">User Name</td>
                    <td width="20%" class="ui-widget-header">Password</td>
                    <td width="35%" class="ui-widget-header">Email Id</td>
                    <td width="5%" class="ui-widget-header">Active</td>
                    <td align="center" width="10%" class="ui-widget-header">Action</td>
                  </tr>
                  <?php 
foreach ($Users as $user) {
    $isActive = "Off";
    $title = "Assign Premission to user (" . $user->getUserName() . ")";
    if ($user->getIsActive() == "1") {
        $isActive = "On";
    }
    echo "<tr>\n                            <td>" . $user->getLocationName() . "</td>\n                            <td>" . $user->getUserName() . "</td>\n                            <td>" . SecurityUtil::Decode($user->getPassword()) . "</td>\n                            <td>" . $user->getEmailId() . "</td>\n                            <td>" . $isActive . "</td> \n                            <td align='center'>\n                               <a href='javascript:Edit(" . $user->getSeq() . ")' title='Edit'>\n                                <img src='images/edit.png' border='0'/>\n                               </a>\n                               <a href='javascript:Delete(" . $user->getSeq() . ")' title='Delete'>\n                                <img src='images/delete.png'  border='0'/> \n                               </a>\n                                 </a>\n                                 <!--<a href='javascript:showUsers(" . $user->getSeq() . "," . '"' . $title . '"' . ");' title='Permissions'><img src='images/users.png' border=0/></a>-->\n                            </td>\n                          </tr>";
}
?>
                </table>
             </form>
         </td>
        </tr>
    </table>
    
    </Div>
   <DIV id="showUsersDialog">
        <div id ="showUsersDialogData">
        <div id="showFolders_loadingAjax" style="display: none;"/>
           <img src='images/ajax.gif' />  
        </div>
        <Div class="msg"></div>  
开发者ID:munishsethi777,项目名称:eliveui,代码行数:31,代码来源:showManagers.php

示例4: Session_start

//require_once("configuration.php");
require_once 'IConstants.inc';
require_once $ConstantsArray['dbServerUrl'] . "FormValidator//validator.php";
require_once $ConstantsArray['dbServerUrl'] . "/DataStoreMgr/UserDataStore.php";
Session_start();
$managerSession = $_SESSION["managerSession"];
$userDataStore = UserDataStore::getInstance();
$userSeq = $managerSession['seq'];
$messageText = "";
if ($_POST["submit"] != "") {
    $earlierPassword = $_POST["earlierPassword"];
    $newPassword = $_POST["newPassword"];
    $confirmNewPassword = $_POST["confirmNewPassword"];
    $user = $userDataStore->getUserByseq($userSeq);
    $savedPasswordEncoded = $user->getPassword();
    $savedPasswordDecoded = SecurityUtil::Decode($savedPasswordEncoded);
    $messageText = "";
    $div = "";
    $messageText = validator::validateform("Earlier Password", $earlierPassword, 256, false);
    if ($messageText != null && $messageText != "") {
        $messageText = $messageText . "<br/>" . validator::validateform("New Password", $newPassword, 256, false);
    } else {
        $messageText = validator::validateform("New Password", $newPassword, 256, false);
    }
    if ($messageText != null && $messageText != "") {
        $messageText = $messageText . "<br/>" . validator::validateform("Confirm Password", $confirmNewPassword, 256, false);
    } else {
        $messageText = validator::validateform("Confirm New Password", $confirmNewPassword, 256, false);
    }
    if ($messageText == "") {
        if ($newPassword != $confirmNewPassword) {
开发者ID:munishsethi777,项目名称:eliveui,代码行数:31,代码来源:ChangePassword.php

示例5:

                    <td width="78%"><input name="username" type="text" value="<?php 
echo $user->getUserName();
?>
"  size="50"></td>
                  </tr>
                  <tr>
                    <td>Password :</td>
                    <td><input name="password" type="text" value="<?php 
echo SecurityUtil::Decode($user->getPassword());
?>
" size="50"></td>
                  </tr>
                   <tr>
                    <td>Confirm New Password :</td>
                    <td><input name="conPassword" type="text" value="<?php 
echo SecurityUtil::Decode($user->getConfirmPassword());
?>
" size="50"></td>
                  </tr>
                  <tr>
                    <td>Email Id :</td>
                    <td><input name="emailId" type="text" value="<?php 
echo $user->getEmailId();
?>
" size="50"></td>
                  </tr>
                   <tr>
                    <td>Activate :</td>
                     <?php 
if ($user->getIsActive() == "" || $user->getIsActive() == "1") {
    $checked_On = "checked";
开发者ID:munishsethi777,项目名称:eliveui,代码行数:31,代码来源:CreateManagerForm.php

示例6: populateObject

 public function populateObject($rsItem)
 {
     $seq_ = $rsItem["seq"];
     $fullname = $rsItem["fullname"];
     $username_ = $rsItem["username"];
     $password_ = $rsItem["password"];
     $emailId_ = $rsItem["emailid"];
     $dateOfRegistration_ = $rsItem["dateofregistration"];
     $isActive_ = $rsItem["isactive"];
     $isManager_ = $rsItem["ismanager"];
     $locationSeq_ = $rsItem["locationseq"];
     $folderSeq_ = $rsItem["folderseq"];
     $locationName_ = $rsItem["locationName"];
     $mobile_ = $rsItem["mobile"];
     $user = new User();
     $user->setSeq($seq_);
     $user->setFullName($fullname);
     $user->setUserName($username_);
     $user->setPassword($password_);
     $user->setDecodedPassword(SecurityUtil::Decode($password_));
     $user->setEmailId($emailId_);
     $user->setDateOfRegistration($dateOfRegistration_);
     $user->setConfirmPassword($password_);
     $user->setIsActive($isActive_);
     $user->setIsManager($isManager_);
     $user->setLocationSeq($locationSeq_);
     $user->setFolderSeq($folderSeq_);
     $user->setLocationName($locationName_);
     $user->setMobile($mobile_);
     $otherLocationSeqs = $this->getLocationUsersLocationSeqs($user->getSeq(), $locationSeq_);
     $user->setOtherLocationSeqs($otherLocationSeqs);
     return $user;
 }
开发者ID:munishsethi777,项目名称:eliveui,代码行数:33,代码来源:UserDataStore.php


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