Heray-Was-Here
Server : Apache
System : Linux vps43555.mylogin.co 3.10.0-1160.53.1.vz7.185.3 #1 SMP Tue Jan 25 12:49:12 MSK 2022 x86_64
User : redsea ( 60651)
PHP Version : 7.4.32
Disable Function : NONE
Directory :  /proc/self/root/usr/local/ei/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/local/ei/ei-set-password.php
#!/usr/local/php7/bin/php
<?php
error_reporting(-1);

function usage() {
	return "\n" . $GLOBALS['argv'][0] . " [script_name] [script_installation_path] [template_name]
\t - script_name --> " . implode(', ', $GLOBALS['supported_scripts']);
}

require_once('ei-tools.php');

if (empty($argv[1])) err('Missing script name');
if (empty($argv[2])) err('Missing installation path');
if (empty($argv[3])) err('New password not provided');

$script = strtolower($argv[1]);
$path = $argv[2];
$password = $argv[3];

if (!is_dir($path) || !file_exists($path))
	err('Invalid installation path');


script_supported($script);

$config_file = script_config_file($script, $path);

if (!file_exists($config_file))
	err('Missing ' . $script . ' config file [' . $config_file . ']');

// get script details
$details = get_script_config($script, $config_file);

// set script password
set_script_password($script, $password, $details);

echo 1;

Hry