function awcsf_admin_membertitle_func() { global $action_url, $wgRequest; $mem_cls = new awcsf_admin_membertitle(); Set_AWC_Forum_BreadCrumbs(get_awcsforum_word('cf_display_mem_titles'), true); switch ($action_url['todo']) { case 'insert_new': $mem_cls->insert_new(); break; case 'get_all': $mem_cls->get_all(); break; case 'saveEdit': $mem_cls->saveEdit(); break; } }
$emotions[':roll:'] = 'rolleyes.gif'; $emotions[':thumbsdown:'] = 'thumbsdown.gif'; $emotions[':thumbsup:'] = 'thumbsup.gif'; $awc_f_emotions = $dbw->tableName('awc_f_emotions'); foreach ($emotions as $q => $a) { # $res = $dbr->select( 'awc_f_emotions', # array( 'e_code' ), array('e_code' => $q) , __METHOD__); $r = $dbr->selectRow('awc_f_emotions', array('e_code'), array('e_code' => $q), __METHOD__); # awc_pdie($r); if (!$r) { $dbw->insert('awc_f_emotions', array('e_code' => $q, 'e_pic' => $a)); } } require_once awc_dir . 'admin.php'; require_once awc_dir . 'includes/admin/admin_memtitle.php'; $memTitle_cls = new awcsf_admin_membertitle(); $memTitle_cls->insert_new('Just Got Here', '0'); $memTitle_cls->insert_new('Clicked A Few Times', '5'); $memTitle_cls->insert_new('Gets Around', '45'); $memTitle_cls->insert_new('Forum Regular', '175'); $memTitle_cls->insert_new('Forum Vet', '300'); global $awcs_forum_config; #require_once( awc_dir . 'admin.php' ); $awcs_forum_config = new awcf_fake_class(); $awcs_forum_config->thmn_id = 0; require_once awc_dir . 'includes/admin/admin_funk.php'; require_once awc_dir . 'includes/admin/admin_lang_funk.php'; require_once awc_dir . 'includes/admin/admin_css_funk.php'; require_once awc_dir . 'includes/admin/admin_tplt.php'; $lang_cls = new awc_admin_lang_cls(); $tplt_cls = new awc_admin_tplt_cls();