PATH:
home
/
centosnipponia
/
public_html
/
ticketing.nipponia.com
/
include
/
cli
/
modules
<?php class CronManager extends Module { var $prologue = 'CLI cron manager for osTicket'; var $arguments = array( 'action' => array( 'help' => 'Action to be performed', 'options' => array( 'fetch' => 'Fetch email', 'search' => 'Build search index' ), ), ); function run($args, $options) { Bootstrap::connect(); $ost = osTicket::start(); switch (strtolower($args[0])) { case 'fetch': Cron::MailFetcher(); break; case 'search': $ost->searcher->backend->IndexOldStuff(); break; } } } Module::register('cron', 'CronManager'); ?>
[+]
..
[-] file.php
[edit]
[-] unpack.php
[edit]
[-] upgrade.php
[edit]
[-] user.php
[edit]
[-] cron.php
[edit]
[-] deploy.php
[edit]
[-] import.php
[edit]
[-] agent.php
[edit]
[-] serve.php
[edit]
[-] i18n.php
[edit]
[-] package.php
[edit]
[-] list.php
[edit]
[-] org.php
[edit]
[-] export.php
[edit]
[-] .htaccess.disabled
[edit]