_e('Manage Users', 'ihc'); ?> </a> </div> <?php //delete ihc_delete_users(); $form = ''; include_once IHC_PATH . 'classes/UserAddEdit.class.php'; $obj = new UserAddEdit(); if (isset($_REQUEST['Update'])) { //update $args = array('type' => 'edit', 'tos' => false, 'captcha' => false, 'action' => $url . '&tab=users', 'is_public' => false, 'user_id' => $_REQUEST['user_id']); $obj->setVariable($args); //setting the object variables $obj->save_update_user(); } else { if (isset($_REQUEST['Submit'])) { //create $args = array('user_id' => false, 'type' => 'create', 'tos' => false, 'captcha' => false, 'action' => $url . '&tab=users', 'is_public' => false); $obj->setVariable($args); //setting the object variables $obj->save_update_user(); } } $obj_form = new UserAddEdit(); if (isset($_REQUEST['ihc-edit-user'])) { ///EDIT USER FORM $args = array('user_id' => $_REQUEST['ihc-edit-user'], 'type' => 'edit', 'tos' => false, 'captcha' => false, 'action' => $url . '&tab=users', 'is_public' => false); $obj_form->setVariable($args); //setting the object variables
//PREVENT INFINITE REDIRECT LOOP wp_redirect($redirect_link); exit; } } } else { ////////////////////// REPLACE CONTENT, adding filter to block, show only the content add_filter('the_content', 'ihc_filter_content'); } } } function ihc_init_form_action($url) { /* * used on init action * form actions : * REGISTER * LOGIN * UPDATE * LOGOUT * RESET PASS * */ switch ($_REQUEST['ihcaction']) { case 'login': //login include_once IHC_PATH . 'public/functions/login.php'; ihc_login($url); break; case 'logout': //logout include_once IHC_PATH . 'public/functions/logout.php'; ihc_do_logout($url); break; case 'register': ///////////////////////////////register include_once IHC_PATH . 'classes/UserAddEdit.class.php'; $args = array('user_id' => false, 'type' => 'create', 'tos' => true, 'captcha' => true, 'action' => '', 'is_public' => true, 'url' => $url); $obj = new UserAddEdit(); $obj->setVariable($args); //setting the object variables