예제 #1
0
		/**
		 * pre-dispatching logic for admin page controllers
		 */
		public function __adminInit() {
			$input = new PMAI_Input();
			$page = strtolower($input->getpost('page', ''));
			if (preg_match('%^' . preg_quote(str_replace('_', '-', self::PREFIX), '%') . '([\w-]+)$%', $page)) {
				$this->adminDispatcher($page, strtolower($input->getpost('action', 'index')));
			}
		}