<?php define('_JEXEC', 1); define('JPATH_BASE', realpath(dirname(__FILE__) . '/')); require_once JPATH_BASE . '/includes/defines.php'; require_once JPATH_BASE . '/includes/framework.php'; $app = JFactory::getApplication('site'); $user = JFactory::getUser(); require_once "fch-lib.php"; require_once "config.php"; enableDebug(false); echo json_encode(onTheClock(leagueHandlerNoUI(null, getUserID())));
function dumpc($data, $depth, $return = false) { global $configVarDumper; $d = new DebugVarDumper(); foreach ($configVarDumper as $k => $v) { $d->{$k} = $v; } $d->highlight = false; if ($depth !== null) { $d->depth = $depth; } if (!enableDebug()) { return; } $ret = whereCalled(2) . "\n\n"; $ret .= $d->dumpAsString($data); if ($return) { return $ret; } echo $ret; }