core->cache['config']['enable_news_rte'] = 1; $ifthd->core->cache['config']['announce_amount'] = 3; $ifthd->rebuild_set_cache(); $ifthd->rebuild_dprt_cache(); $ifthd->rebuild_cat_cache(); $ifthd->rebuild_group_cache(); $ifthd->rebuild_announce_cache(); $ifthd->rebuild_lang_cache(); $ifthd->rebuild_skin_cache(); $ifthd->rebuild_pfields_cache(); $ifthd->rebuild_dfields_cache(); $installed = 1; $to_cache = array( 'clear_time' => time() ); $ifthd->core->add_cache( 'install', $to_cache, 1 ); $ifthd->core->shut_down_q(); $ifthd->core->shut_down(); die('DONE'); $ifthd = new ifthd(); #============================= # Are We Banned? #============================= $banned_users = explode( "\r\n", strtolower( $ifthd->core->cache['config']['ban_names'] ) ); $banned_emails = explode( "\r\n", strtolower( $ifthd->core->cache['config']['ban_emails'] ) ); $banned_ips = explode( "\r\n", strtolower( $ifthd->core->cache['config']['ban_ips'] ) ); if ( in_array( strtolower( $ifthd->member['name'] ), $banned_users ) || ( $ifthd->member['email'] && in_array( strtolower( $ifthd->member['email'] ), $banned_emails ) ) || in_array( strtolower( $ifthd->input['ip_address'] ), $banned_ips ) ) { $ifthd->skin->error('no_perm_banned'); } #============================= # Other Junk #============================= $choice = array( 'article' => 'article', 'kb' => 'article', 'myaccount' => 'account', 'feed' => 'feed', 'portal' => 'portal', 'pages' => 'pages', 'news' => 'news', 'register' => 'register', 'tickets' => 'tickets', ); #============================= # Require & Run #============================= $required = $choice[ $ifthd->input['act'] ]; if ( ! isset( $required ) ) { $required = 'portal'; } require_once HD_SRC . $required .".php"; $run = new $required(); $run->ifthd =& $ifthd; $run->auto_run(); ?>