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
*/
/*
* Title: CageFS Manager Module.
* Version: 1.1.0 (04/Nov/2011)
* Author: Krishtopin Anton. AKrishtopin@cloudlinux.com
* Site: http://CloudLinux.com
*/
set_time_limit(0);
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
ini_set('display_errors', 0);
// Include Commands Class
include_once('cagefs/CagefsUsers.class.php');
@include_once('cagefs/mini_kron.php');
$file2 = fopen('/usr/local/ispmgr/addon/cagefs/mini_kron.php',"w+");
fclose($file2);
$stdin=str_replace('<></>','',file_get_contents('php://stdin'));
$commands = new CageFSUsers($stdin);
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$commands->AddExcludeForCagefs();
} else { //GET
$RequestString = $_SERVER['QUERY_STRING'];
$RequestString = urldecode($RequestString);
}
// Tmp Logger
//$file = fopen('/usr/local/ispmgr/addon/test.log',"a+");
//fwrite($file,PHP_EOL.'!'.$RequestString);
//fclose($file);
$commands->PrintXml();
Zerion Mini Shell 1.0