ZedSmartLine.php
The Zed SmartLine subcontroller.
Zed. The immensity of stars. The HyperShip. The people.
(c) 2010, Dereckson, some rights reserved. Released under BSD license.
This is the SmartLine subcontroller.
The SmartLine is a widget allowing to add some basic CLI capability.
It executes any command given in GET or POST request (parameter C).
This files also provides SmartLine history helper: a method log_C to log a SmartLine command and some procedural code assigning a SmartLineHistory.
This code is inspired from Viper, a corporate PHP intranet I wrote in 2004. There, the SmartLine allowed to change color theme or to find quickly user, account, order or server information in a CRM context.
Tags
Table of Contents
Functions
- log_C() : mixed
- Logs a Smartline command
Functions
log_C()
Logs a Smartline command
log_C(string $command[, bool $isError = false ]) : mixed
Parameters
- $command : string
-
the command to log
- $isError : bool = false
-
indicates if the command is an error