Server IP : 108.163.255.210 / Your IP : 3.16.212.203 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']; $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_user.php"> <div class="col-md-12 panel-body"> <div class="col-md-12"> <div class="col-md-6"> <?php if($_SESSION['user_type']<=1){ ?> <div class="form-group form-animate-text" style="margin-top:40px !important;"> <select class="form-text mask-name" name="usertype"> <?php for($i=$_SESSION['user_type']+1; $i< sizeof($userlist); $i++){ ?> <option value="<?php echo $i;?>" <?php if($usertype==$i) echo "selected"; ?>><?php echo $userlist[$i]; ?></option> <?php } ?> </select> <span class="bar"></span> <label>User Type</label> </div> <?php } ?> <div class="form-group form-animate-text" style="margin-top:40px !important;background-color:#f5f5f5;"> <input class="form-text mask-name noSpace" id="cname" name="user" value="<?php echo $username; ?>" minlength="2" type="text" required readonly /> <input name="userid" type="hidden" value="<?php echo $uid; ?>"> <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="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" id="cemail" type="email" value="<?php echo $email; ?>" name="email" required /> <span class="bar"></span> <label>E-Mail Address</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 noSpace numeric" id="ccontact" type="text" value="<?php echo $contact; ?>" name="contact" required minlength="10" maxlength="10" oninvalid="setCustomValidity('Please insert 10 digit contact number')" /> <span class="bar"></span> <label>Contact Number</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;"> <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 hidden"> <?php for($i=1; $i<= sizeof($actionlist); $i++){ if(in_array($i, $action_menu)){?> <label class="checkbox-inline"><input type="checkbox" name="action[]" value="<?php echo $i;?>" <?php if(in_array($i, $u_action)) echo "checked"; ?>><?php echo $actionlist[$i]; ?></label> <?php }} ?> <span class="bar"></span> <label>Action</label> </div> <div class="form-group"> <div class="col-lg-offset-2 col-lg-10"> <button class="btn btn-primary" type="submit" name="edituser" value="submit">Save</button> </div> </div> </div> </div> </form> </div> </div> <!--body wrapper end--> <?php include('../template/footer.php');?>