Server : LiteSpeed
System : Linux terra.hostitbro.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : outerorb ( 1091)
PHP Version : 8.1.34
Disable Function : mail
Directory :  /home/outerorb/dev.outerorbittech.com/oot/admin/

📁 Create New:
⬆️ Upload File:
Current Dir [ Writable ] Root [ Writable ]


OR Upload from URL:
URL: Save as:

📄 File: admin_change_pass.php

Path: //home/outerorb/dev.outerorbittech.com/oot/admin/admin_change_pass.php

Size: 1013 B

Permissions: 0644

<?php
include_once("../include/main.inc.php");
check_session('MyCpanel','index.php');
#Edit Section
if($_POST['action']=="Update"){
	$username = $_POST['username'];
    $password = $_POST['password'];
    $old_password = $_POST['old_password'];
	$res=getResult("admin_details"," where user_type='admin'");	
    print_r($res);
	if($res['pwd']==$old_password){
		//Updating data.
		updateTable("admin_details"," user_id='$username', pwd='".$password."' where user_type='admin'");
		session_unset("MyCpanel");
		session_destroy();
		header("Location:index.php");
	}
	else{
		$_SESSION['session_message']="Invalid current password. Please Try Again!!";
		header("location:admin_change_pass.php");
		exit();	
	}
}

admin_header();
?>
<table width="99%" cellpadding="2" cellspacing="1" border="0" valign="top">
 <tr valign="top"><td class="myTitle" align="left"><strong><?=$title;?></strong></td></tr>	
</table>
<hr size="2" width="99%" color="#DA251C">
<?php
admin_change_pass();
?>
<br/><br/>
<?php
admin_footer();
?>

← Back to Directory Edit File 🔒 Chmod

WP File Manager