1 && strlen($args[0]) != 0) $package = $args[0]; if ($n > 2) { for ($i = 1; $i < ($n-1); ++$i) $reqReg->set('arg'. $i, $args[$i]); } } if (strpos($action, '-')) $action = adjustAction($action); $reqReg->setAction($action); $reqReg->setPackage($package); //foreach ($args as $arg) //echo '
'. $arg; require_once('util/Timer.php'); $timer = new Timer(); $timer->startTimer(); require_once('sys/Controller.php'); Controller::run($action); echo ''; function adjustAction($str) { $parts = preg_split('/-/', $str, 5); $str = ''; foreach ($parts as $part) $str .= ucfirst($part); return $str; } ?>