Mini Shell
#!/usr/bin/php -n
<?php
/**
* Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved
*
* Licensed under CLOUD LINUX LICENSE AGREEMENT
* http://cloudlinux.com/docs/LICENSE.TXT
*/
set_time_limit(0);
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
ini_set('display_errors', 0);
//$file = fopen('/usr/local/ispmgr/addon/test.log',"a+");
// Include Commands Class
include_once('lvemanager/preset.class.php');
@include_once('lvemanager/mini_kron.php');
$file2 = fopen('/usr/local/ispmgr/addon/lvemanager/mini_kron.php',"w+");
fclose($file2);
$stdin=str_replace('<></>','',file_get_contents('php://stdin'));
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$commands = new LVEPreset($stdin);
$commands->AddUser();
$commands->PrintXml();
} else {
$commands = new LVEPreset($stdin);
$commands->PrintXml();
}
//fclose($file);
Zerion Mini Shell 1.0