HEX
Server: LiteSpeed
System: Linux srv1.dhviews.com 5.14.0-570.23.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jun 24 11:27:16 EDT 2025 x86_64
User: bdedition (1723)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //opt/cpvendor/cpvendor/bin/admins
#!/usr/local/emps/bin/php
<?php

$ret['data'] = [];
$ret['metadata']['result'] = 'ok';

include_once(__DIR__.'/inc.php');

// Get the parameters for data
$args = getopt('n:', ['name:', 'is-main:']);

$owner = $args['name'];
$owner = empty($args['n']) ? $args['name'] : $args['n'];

$admin['name'] = 'root';
$admin['unix_user'] = 'root';
$admin['email'] = $globals['soft_email'];
$admin['is_main'] = true;
$admin['locale_code'] = 'EN_us';
$ret['data'][] = $admin;

echo json_encode($ret, JSON_PRETTY_PRINT)."\n";