Server IP : 108.163.255.210 / Your IP : 3.136.19.136 Web Server : Apache System : Linux blossom.urlnameserver.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64 User : ( 1172) PHP Version : 7.2.34 Disable Function : eval,escapeshellarg,proc_close,proc_get_status,proc_nice,proc_open,symlink,system,pcntl_exec,getrusage,chown,chgp,closelog,openlog,syslog,define_syslog_variables,php_ini_loaded_file,getservbyname,getservbyport,posix_getgid,posix_getgrgid,proc_terminate,pfsockopen,apache_child_terminate,posix_mkfifo,posix_setpgid,posix_setuid,hypot,pg_host,pos,posix_access,posix_getcwd,posix_getservbyname,myshellexec,getpid,posix_getsid,posix_isatty,posix_kill,posix_mknod,posix_setgid,posix_setsid,posix_setuid,posix_times,posix_uname,ps_fill,posix_getpwuid,global,ini_restore,zip_open,zip_read,rar_open,bzopen,bzread,bzwrite,apache_get_modules,apache_get_version,phpversionphpinfo,php_ini_scanned_files,get_current_user,disk_total_space,diskfreespace,leak,imap_list,hypo,filedump,safe_mode,getmygid,apache_getenv,apache_setenv,bzread,bzwrite,bzopen,phpini,higlight_file,dos_conv,get_cwd,er_log,cmd,e_name,vdir,get_dir,only_read,ftok,ftpexec,posix_getpwnam,mysql_list_dbs,disk_free_space,session_save_path,confirm_phpdoc_compiled,zip_entry_rea,php_u,psockopen,crack_opendict,crack_getlastmessage,crack_closedict,crack_check,fpassthru,posix_get_last_error,posix_getlogin,posix_getgroups,posix_strerror,posix_getrlimit,posix_getpgrp,posix_getgrnam,pos,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/unilinki/www/Intellilead/users/ |
Upload File : |
<?php require_once "../includes/application_top.php"; $uid = $_REQUEST['userid']; if($uid!=''){ $sql= "SELECT * FROM mstr_user where user_id='".checkInput($uid)."'"; $result= executeQuery($sql); if($row=mysql_fetch_array($result)) { $username=$row['user_name']; $name=$row['name']; $pass=$row['pass']; $email=$row['email_id']; $email2=$row['email2']; $desi_id=$row['designation']; $dept_id=$row['dept_id']; $role=$row['role_id']; $rep_head=$row['rep_head']; $contact=$row['contact_no']; $usertype=$row['user_type']; $userimage = $row['image']; $u_privilege = explode(',',$row['privilege']); $u_action = explode(',',$row['action']); if($userimage!=""){ $fileexists ="exists"; } else { $fileexists ="new"; } } if($usertype<$_SESSION['user_type']){ $_SESSION['sess_msg'] = "YOU ARE NOT AUTHORISED TO EDIT \"$username\"."; header('Location: manage_user.php'); exit(); } } else { header('Location: manage_user.php'); exit(); } include('../template/header.php'); ?> <!-- page heading start--> <div class="panel box-shadow-none content-header"> <div class="panel-body"> <div class="col-md-12"> <h3 class="animated fadeInLeft">Manage Users</h3> <p class="animated fadeInDown"> Users <span class="fa-angle-right fa"></span>Manage Users </p> </div> </div> </div> <!-- page heading end--> <!--body wrapper start--> <div class="col-md-12"> <?php include('../template/response.php');?> <div class="col-md-12 panel"> <div class="col-md-12 panel-heading"> <h4></h4> </div> <form id="commentForm" method="post" enctype="multipart/form-data" action="edit_emp.php"> <div class="col-md-12 panel-body"> <div class="col-md-12"> <div class="col-md-6"> <div class="form-group form-animate-text" style="margin-top:40px !important;background-color:#f5f5f5;"> <input class="form-text mask-name" id="cname" name="" value="<?php echo $username; ?>" minlength="2" type="text" required disabled /> <input name="userid" type="hidden" value="<?php echo $uid; ?>"> <input name="user" type="hidden" value="<?php echo $username; ?>"> <span class="bar"></span> <label style="top:-16px;font-size:12px;">User Name</label> </div> <div class="form-group form-animate-text" style="margin-top:40px !important;"> <input class="form-text mask-name" id="cpassword" type="password" name="password" value="<?php echo $pass; ?>" required /> <span class="bar"></span> <label>Password</label> </div> <div class="form-group form-animate-text" style="margin-top:40px !important;"> <input class="form-text mask-name" id="cname" name="name" value="<?php echo $name; ?>" minlength="2" type="text" required/> <span class="bar"></span> <label>Name</label> </div> <div class="form-group form-animate-text" style="margin-top:40px !important;"> <input class="form-text mask-name noSpace numeric" id="ccontact" type="text" maxlength="10" value="<?php echo $contact; ?>" name="contact" required /> <span class="bar"></span> <label>Phone Number</label> </div> <div class="form-group form-animate-text" style="margin-top:40px !important;"> <select class="form-text mask-name" name="role" oninvalid="setCustomValidity('Please Select Role');" oninput="setCustomValidity('')" required > <option value="">Select Role</option> <?php $roleRes= executeQuery("SELECT role_id,role_name FROM mstr_role where status='Active'"); while($row=mysql_fetch_array($roleRes)) { ?> <option value="<?php echo $row['role_id'];?>" <?php if($row['role_id']==$role){ echo "selected"; } ?>><?php echo $row['role_name'];?></option> <?php } ?> </select> <span class="bar"></span> <label>Role</label> </div> <div class="form-group form-animate-text" style="margin-top:40px !important;"> <select class="form-text mask-name" name="rep_head" > <option value="">Select Reporting Head</option> <?php $roleRes= executeQuery("SELECT user_id,user_name,name,role_id FROM mstr_user where status='Active' and user_type='4' and company_id ='".$_SESSION['company_id']."'"); while($row=mysql_fetch_array($roleRes)) { ?> <option value="<?php echo $row['user_id'];?>" <?php if($row['user_id']==$rep_head){ echo "selected"; } ?>><?php echo $row['name'];?> - <?php echo getRoleName($row['role_id']);?></option> <?php } ?> </select> <span class="bar"></span> <label>Reporting Head</label> </div> </div> <div class="col-md-6"> <div class="form-group form-animate-text" style="margin-top:40px !important;"> <input class="form-text mask-name" id="cemail" type="email" value="<?php echo $email; ?>" name="email" required /> <span class="bar"></span> <label>E-Mail Address</label> </div> <div class="form-group form-animate-text" style="margin-top:40px !important;"> <input class="form-text mask-name" id="cemail" type="email" name="email2" value="<?php echo $email2; ?>" required /> <span class="bar"></span> <label>Official E-Mail</label> </div> <div class="form-group form-animate-text" style="margin-top:40px !important;"> <select class="form-text mask-name" name="dept_id" > <option value="">Select Department</option> <?php $deptRes= executeQuery("SELECT dept_id,dept_name FROM mstr_dept where status='Active' and company_id ='".$_SESSION['company_id']."'"); while($row=mysql_fetch_array($deptRes)) { ?> <option value="<?php echo $row['dept_id'];?>" <?php if($row['dept_id']==$dept_id){ echo "selected"; } ?>><?php echo $row['dept_name'];?></option> <?php } ?> </select> <span class="bar"></span> <label>Department</label> </div> <div class="form-group form-animate-text" style="margin-top:40px !important;"> <select class="form-text mask-name" name="desi_id" > <option value="">Select Designation</option> <?php $deptRes= executeQuery("SELECT desi_id,desi_name FROM mstr_designation where status='Active' and company_id ='".$_SESSION['company_id']."'"); while($row=mysql_fetch_array($deptRes)) { ?> <option value="<?php echo $row['desi_id'];?>" <?php if($row['desi_id']==$desi_id){ echo "selected"; } ?>><?php echo $row['desi_name'];?></option> <?php } ?> </select> <span class="bar"></span> <label>Designation</label> </div> <div class="form-group form-animate-text" style="margin-top:40px !important;"> <label for="exampleInputFile" class="control-label col-lg-2">Image</label> <div class="col-md-9"> <div class="fileupload fileupload-<?php echo $fileexists;?>" data-provides="fileupload"> <div class="fileupload-new thumbnail" style="max-width:100px;max-height:100px;"> <img src="../resources/user/no_image.jpg" alt="" /> </div> <div class="fileupload-preview fileupload-exists thumbnail" style="max-width: 100px; max-height: 100px; line-height: 20px;"> <?php if($fileexists =="exists"){?><img src="<?php echo "../resources/user/".$userimage; ?>" alt="" /><?php }?></div> <div> <span class="btn btn-default btn-file"> <span class="fileupload-new"><i class="fa fa-paper-clip"></i> Select image</span> <span class="fileupload-exists"><i class="fa fa-undo"></i> Change</span> <input type="file" class="default" name="image" /> <input type="hidden" name="imgr1" value="<?php echo $userimage;?>"/> </span> <a href="#" class="btn btn-danger fileupload-exists" data-dismiss="fileupload" onClick="deleteFile(<?php echo "'".$userimage."','edit_user.php','".$uid."'";?>)"><i class="fa fa-trash"></i> Remove</a> </div> </div> </div> </div> </div> </div> <div class="col-md-12"> <div class="form-group"> <div class="col-lg-offset-2 col-lg-10"> <button class="btn btn-primary" type="submit" name="edituser" value="submit">Submit</button> </div> </div> </div> </div> </form> </div> </div> <!--body wrapper end--> <?php include('../template/footer.php');?>