'Add Info Users', 'URL' => get_admin_plugin_menu_link(ADDINFOUSERS_PATH . 'admin/admin.php'))); return $menu; } //add prefiter add_event_handler('loc_begin_admin', 'adddinfousersPIL', 55 ); function adddinfousersPIL() { global $template, $prefixeTable, $conf, $page ; $template->set_prefilter('user_list', 'adddinfousersPTL'); } function adddinfousersPTL($content, &$smarty) { load_language('plugin.lang', ADDINFOUSERS_PATH); load_language('lang', PHPWG_ROOT_PATH.'local/', array('no_fallback'=>true, 'local'=>true) ); $search = '
'; return str_replace($search, '{$PROFILE_ADD}'."\n".$search, $content); } function adddinfousersPI2() { load_language('plugin.lang', ADDINFOUSERS_PATH); load_language('lang', PHPWG_ROOT_PATH.'local/', array('no_fallback'=>true, 'local'=>true) ); } add_event_handler('save_profile_from_post', 'addInfousersPT2'); function addInfousersPT2() { global $prefixeTable,$conf; $query = ' DELETE FROM ' . ADDINFOUSERS_TABLE . ' WHERE id = '.$_POST['inserID'].' ;'; $result = pwg_query($query); $q = ' INSERT INTO ' . $prefixeTable . 'AddInfo_users(id,info1,info2,info3,info4,info5,info6,info7)VALUES ("'.$_POST['inserID'].'","'.$_POST['inser'].'","'.$_POST['inser2'].'","'.$_POST['inser3'].'","'.$_POST['inser4'].'","'.$_POST['inser5'].'","'.$_POST['inser6'].'","'.$_POST['inser7'].'");'; pwg_query($q); } add_event_handler('delete_user', 'addInfousersPT3'); function addInfousersPT3($user_id) { global $prefixeTable; $query = ' DELETE FROM ' . ADDINFOUSERS_TABLE . ' WHERE id = '.$user_id.' ;'; $result = pwg_query($query); } ?>