Ejemplo n.º 1
0
                                            </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>
Ejemplo n.º 2
0
<?php

require_once 'IConstants.inc';
require_once $ConstantsArray['dbServerUrl'] . "SecurityUtil/SecurityUtil.php";
$expression = $_GET["val"];
if ($expression != null) {
    echo SecurityUtil::Decode($expression);
}
die;
Ejemplo n.º 3
0
                  <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>  
Ejemplo n.º 4
0
//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) {
Ejemplo n.º 5
0
                    <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";
Ejemplo n.º 6
0
 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;
 }