Heray-Was-Here
Server : Apache
System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : calvet ( 273824)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /proc/thread-self/root/usr/local/ei/ei/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/thread-self/root/usr/local/ei/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