getDB(); $param = $system->getRequest()->getParam(); $types = array( 'boolean','code','date','datetime','email','file','float','html','image','integer', 'option','password','set','string','text','time','url'); $code = 1; foreach($types as $type) { $search = array(); $search['site_id'] = 0; $search['key'] = 'editors.' . $type; $search['instance'] = ''; $update = array(); $update['value'] = $param['editor'][$type]; $insert = array_merge($search, $update); $db->table('websitesettings')->insertOrUpdate($search, $insert, $update); } $system->cacheClean(); $response->setRedirectURL(_SELF_ . '?cat=' . $this->getMyRef() . '&action=valueeditors&code=' . $code); } public function runIndex(Response $response) { $system = System::getInstance(); $part = $system->getTarget('part'); $action = $system->getTarget('action'); ob_start(); include (__DIR__ . __DS__ . 'page.' . $part . '.' . $action . '.php'); $response->setFragment('CONTENT', ob_get_clean()); } public function runValueeditors(Response $response) { $system = System::getInstance(); $part = $system->getTarget('part'); $action = $system->getTarget('action'); ob_start(); include (__DIR__ . __DS__ . 'page.' . $part . '.' . $action . '.php'); $response->setFragment('CONTENT', ob_get_clean()); } public function runModules(Response $response) { $system = System::getInstance(); $part = $system->getTarget('part'); $action = $system->getTarget('action'); ob_start(); include (__DIR__ . __DS__ . 'page.' . $part . '.' . $action . '.php'); $response->setFragment('CONTENT', ob_get_clean()); } public function runComponents(Response $response) { $system = System::getInstance(); $part = $system->getTarget('part'); $action = $system->getTarget('action'); ob_start(); include (__DIR__ . __DS__ . 'page.' . $part . '.' . $action . '.php'); $response->setFragment('CONTENT', ob_get_clean()); } public function runLog(Response $response) { $system = System::getInstance(); $part = $system->getTarget('part'); $action = $system->getTarget('action'); ob_start(); include (__DIR__ . __DS__ . 'page.' . $part . '.' . $action . '.php'); $response->setFragment('CONTENT', ob_get_clean()); } }