| Server IP : 27.254.152.13 / Your IP : 216.73.217.38 Web Server : Apache/2 System : Linux ns1-252017.dragonhispeed.com 5.2.0 #1 SMP Fri Mar 29 22:50:14 MSK 2024 x86_64 User : coloflew ( 1072) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/coloflew/domains/fulltion.com/private_html/administrator/modules/admin/ |
Upload File : |
<?PHP
if($_GET['act']=="editdata"){
$arrData = array();
$arrData['user'] = $_POST['user'];
$arrData['pwd'] = $_POST['pwd'];
$arrData['email'] = $_POST['email'];
$arrData['fullname'] = $_POST['fullname'];
//if($_POST['user_name']){ $arrData['user_name'] = $_POST['user_name']; }
//if($_POST['user_pass']){ $arrData['user_pass'] = md5($_POST['user_pass']); }
foreach($arrData as $k => $v ){
$arrData[$k] = str_replace("'", "\'", $v);
}
//echo "<pre>"; print_r($arrData); exit();
$db->updateData("admin",$arrData,"id='".$_POST['id']."'");
$msg = $lang_set['edit_complete'];
$res = true;
}
$arrRes = $db->getOne("admin","*","id='".$_GET['id']."'");
?>
<div class="block">
<div class="block_head">
<div class="bheadl"></div>
<div class="bheadr"></div>
<h2><?php echo $lang_set['admin_edit']; ?></h2>
</div>
<!-- .block_head ends -->
<div class="block_content" id="add" >
<hr />
<?php if(@$res){?>
<div class="message success"><p><?php echo $msg;?></p></div>
<meta http-equiv="refresh" content="3;URL=index.php?name=admin&file=file_user&id=<?PHP echo $_GET['id'];?>">
<?php }?>
<form action="index.php?name=admin&file=file_user&act=editdata&id=<?PHP echo $_GET['id'];?>" method="post" enctype="multipart/form-data" onsubmit="return checkadmin();">
<input type="hidden" name="id" value="<?php echo $arrRes['id'];?>">
<p>
<label><?php echo $lang_set['username']; ?>:</label> <br />
<input type="text" class="text small" name="user" id="user" value="<?php echo @$arrRes['user'];?>" />
<span class="note error" id="span_user"><?php echo $lang_set['require']; ?>!</span>
</p>
<p>
<label><?php echo $lang_set['password']; ?>:</label><br />
<input type="text" class="text small" name="pwd" id="pwd" value="<?php echo @$arrRes['pwd'];?>" />
<span class="note error" id="span_pwd"><?php echo $lang_set['require']; ?>!</span>
</p>
<p>
<label><?php echo $lang_set['fullname']; ?>:</label><br />
<input type="text" class="text small" name="fullname" id="fullname" value="<?php echo @$arrRes['fullname'];?>" />
</p>
<p>
<label><?php echo $lang_set['email']; ?>:</label><br />
<input type="text" class="text small" name="email" id="email" value="<?php echo @$arrRes['email'];?>" />
</p>
<p>
<input type="submit" class="submit mid" value="<?php echo $lang_set['submit']; ?>"/>
</p>
</form>
</div><!-- .block_content ends -->
<div class="bendl"></div>
<div class="bendr"></div>
</div>