[eluser]mattthehoople[/eluser]
would something like...
Code:
class Sysadmin extends Controller {
function Sysadmin() {
parent::__construct();
if($_SERVER['REQUEST_METHOD']!='CLI') {
die("Only accessible via the shell.");
}
}
function index() {
etc...
...do the trick? (I'm not sure, it's not my code...)