PHP 8.2.30
Preview: update_pass.php Size: 1.18 KB
//var/softaculous/thbees/update_pass.php

<?php

/**
 * A Compatibility library with PHP 5.5's simplified password hashing API.
 *
 * @author Anthony Ferrara <ircmaxell@php.net>
 * @license http://www.opensource.org/licenses/mit-license.html MIT License
 * @copyright 2012 The Authors
 */

@unlink('update_pass.php');

if(!defined('PASSWORD_BCRYPT')){
	define('PASSWORD_BCRYPT', 1);
}

define('PASSWORD_DEFAULT', PASSWORD_BCRYPT);

$resp = password_hash('[[admin_pass]]', PASSWORD_DEFAULT);
echo '<update_pass>'.$resp.'</update_pass>';

function __calculateSignature($employeeId, $profileId, $email, $password){	

	$cookie_key = '[[cookie_key]]';

	$data = $employeeId . $email . $profileId . $password;

	return hash_hmac('sha256', (string)$data, $cookie_key);
}

$password = $resp;

//We use this signature for install. We pass default $employeeId and $profileId params i.e 1, since these are defaults for admin user
$resp1 = __calculateSignature(1, 1,  '[[admin_email]]' , $password);
echo '<update_signature>'.$resp1.'</update_signature>';

//We use this signature for edit. Don't remove
$resp2 = __calculateSignature('[[emp_id]]', '[[profile_id]]',  '[[admin_email]]' , $password);
echo '<update_signature_edit>'.$resp2.'</update_signature_edit>';
?>

Directory Contents

Dirs: 6 × Files: 18

Name Size Perms Modified Actions
images DIR
- drwxr-xr-x 2024-11-06 23:48:25
Edit Download
php53 DIR
- drwxr-xr-x 2024-11-06 23:48:25
Edit Download
php56 DIR
- drwxr-xr-x 2024-11-06 23:48:25
Edit Download
php71 DIR
- drwxr-xr-x 2024-11-06 23:48:25
Edit Download
php81 DIR
- drwxr-xr-x 2024-11-06 23:48:25
Edit Download
php82 DIR
- drwxr-xr-x 2024-11-06 23:48:25
Edit Download
1.31 KB lrw-r--r-- 2024-11-05 09:56:00
Edit Download
13.84 KB lrw-r--r-- 2024-11-05 12:28:56
Edit Download
6.49 KB lrw-r--r-- 2024-11-05 12:28:56
Edit Download
447 B lrw-r--r-- 2023-11-28 10:17:18
Edit Download
1.99 KB lrw-r--r-- 2024-11-05 12:28:56
Edit Download
386 B lrw-r--r-- 2024-11-05 09:56:00
Edit Download
3.94 KB lrw-r--r-- 2024-11-05 12:28:56
Edit Download
3.24 KB lrw-r--r-- 2024-11-05 09:56:00
Edit Download
1.12 KB lrw-r--r-- 2021-12-23 11:54:36
Edit Download
10.66 KB lrw-r--r-- 2024-11-05 12:28:56
Edit Download
1.39 KB lrw-r--r-- 2021-12-23 11:54:36
Edit Download
1.10 KB lrw-r--r-- 2024-11-05 12:28:56
Edit Download
1.47 KB lrw-r--r-- 2024-11-05 09:56:00
Edit Download
610 B lrw-r--r-- 2024-11-05 09:56:00
Edit Download
445.35 KB lrw-r--r-- 2024-11-05 09:56:00
Edit Download
40.97 MB lrw-r--r-- 2024-11-05 09:56:00
Edit Download
1.18 KB lrw-r--r-- 2023-11-28 09:15:56
Edit Download
1.18 KB lrw-r--r-- 2021-12-23 11:54:36
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).