PATH:
home
/
centosnipponia
/
public_html
/
ticketing.nipponia.com
/
ticketing-old
#!/usr/bin/env php <?php /********************************************************************* manage.php CLI (command line interface) for osTicket management. Use php manage.php --help for detailed and updated getting started information. Jared Hancock <jared@osticket.com> Copyright (c) 2006-2015 osTicket http://www.osticket.com Released under the GNU General Public License WITHOUT ANY WARRANTY. See LICENSE.TXT for details. vim: expandtab sw=4 ts=4 sts=4: **********************************************************************/ require_once 'bootstrap.php'; // Make sure the script is executed via CLI if (!osTicket::is_cli()) die("Management only supported from command-line\n"); require_once CLI_DIR . 'cli.inc.php'; class Manager extends Module { var $prologue = "Manage one or more osTicket installations"; var $arguments = array( 'action' => "Action to be managed" ); var $usage = '$script action [options] [arguments]'; var $autohelp = false; function showHelp() { foreach (glob(CLI_DIR.'modules/*.php') as $script) include_once $script; global $registered_modules; $this->epilog = "Currently available modules follow. Use 'manage.php <module> --help' for usage regarding each respective module:"; parent::showHelp(); echo "\n"; ksort($registered_modules); $width = max(array_map('strlen', array_keys($registered_modules))); foreach ($registered_modules as $name=>$mod) echo str_pad($name, $width + 2) . $mod->prologue . "\n"; } function run($args, $options) { if ($options['help'] && !$args['action']) $this->showHelp(); else { $action = $args['action']; global $argv; foreach ($argv as $idx=>$val) if ($val == $action) unset($argv[$idx]); require_once CLI_DIR . "modules/{$args['action']}.php"; if (($module = Module::getInstance($action))) return $module->_run($args['action']); $this->stderr->write("Unknown action given\n"); $this->showHelp(); } } } $manager = new Manager(); $manager->_run(basename(__file__), false);
[+]
..
[+]
.well-known
[-] web.config
[edit]
[+]
images
[-] secure.inc.php
[edit]
[+]
include
[-] tickets.php
[edit]
[+]
form
[+]
attachments
[-] index.php
[edit]
[-] php.ini
[edit]
[-] view.php
[edit]
[+]
kb
[-] open.php
[edit]
[-] offline.php
[edit]
[+]
api
[+]
scp
[-] login.php
[edit]
[-] captcha.php
[edit]
[+]
css
[-] client.inc.php
[edit]
[-] logo.php
[edit]
[-] avatar.php
[edit]
[-] logout.php
[edit]
[-] manage.php
[edit]
[-] .user.ini
[edit]
[-] account.php
[edit]
[-] ajax.php
[edit]
[-] new.php
[edit]
[+]
pages
[+]
apps
[+]
js
[-] pwreset.php
[edit]
[-] file.php
[edit]
[-] bootstrap.php
[edit]
[-] profile.php
[edit]
[+]
assets
[-] main.inc.php
[edit]
[-] txets.php
[edit]
[-] .htaccess.disabled
[edit]