' . A_MSG_ST_EMAIL . '

'; } ?>
add('test_cookie', TEST_COOKIE); if (isset($_GET['loggedout']) && TRUE == $_GET['loggedout']) $notify = LOGGED_OUT; elseif (isset($_GET['registration']) && 'disabled' == $_GET['registration']) $errors->add('registerdisabled', USR_REG_NT); elseif (isset($_GET['checkemail']) && 'confirm' == $_GET['checkemail']) $notify = CHK_EMAIL_CNF; elseif (isset($_GET['checkemail']) && 'newpass' == $_GET['checkemail']) $notify = CHK_EMAIL_PW; elseif (isset($_GET['checkemail']) && 'registered' == $_GET['checkemail']) $notify = REG_CPL_EMAIL; if (is_user_logged_in()) { wp_redirect(site_url()); } if (is_user_logged_in()) { global $wpdb, $current_user; $userRole = ($current_user->data->wp_capabilities); $role = key($userRole); unset($userRole); $edit_anchr = ''; switch ($role) { case ('administrator' || 'editor' || 'contributor' || 'author'): break; default: break; } } //Call header.php get_header(); ?>
' . $notify . '

'; } ?> 0 && $errors->get_error_code()) : echo '
    '; foreach ($errors->errors as $error) { echo '
  • ' . $error[0] . '
  • '; } echo '
'; endif; //call login form geocraft_login_form(); //call registration form geocraft_register_form(get_permalink()); ?>
add('invalidkey', SRY_KEY_VALID); do_action('lost_password'); do_action('lostpassword_post'); //Call header.php get_header(); ?>

' . $notify . '

'; } ?> 0 && $errors->get_error_code()) : echo '
    '; foreach ($errors->errors as $error) { echo '
  • ' . $error[0] . '
  • '; } echo '
'; endif; ?>
options where option_name like 'pay_method_$method'"; $paymentinfo = $wpdb->get_results($paymentsql); if ($paymentinfo) { foreach ($paymentinfo as $paymentinfoObj) { $option_value = unserialize($paymentinfoObj->option_value); $paymentOpts = $option_value['payOpts']; $optReturnarr = array(); for ($i = 0; $i < count($paymentOpts); $i++) { $optReturnarr[$paymentOpts[$i]['fieldname']] = $paymentOpts[$i]['value']; } return $optReturnarr; } } } function listing_step() { global $step; for ($i = 1; $i <= 3; $i++) : echo '
  • '; switch ($i): case 1 : echo STEP1; break; case 2 : echo STEP2; break; case 3 : echo STEP3; break; endswitch; echo '
  • '; endfor; } /** * Function Name: geocraft_login_proceed_form * Description: This function validates login field and * Redirect to admin page * @global type $posted * @return type */ function geocraft_login_proceed_form() { global $posted; if ( isset( $_REQUEST['redirect_to'] ) ) $redirect_to = $_SERVER['HTTP_REFERER']; else $redirect_to = admin_url(); if ( is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos($redirect_to, 'https') ) && ( 0 === strpos($redirect_to, 'http') ) ) $secure_cookie = false; else $secure_cookie = ''; $user = wp_signon('', $secure_cookie); $redirect_to = apply_filters('login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user); if ( !is_wp_error($user) ) { if (user_can($user, 'manage_options')) : $redirect_to = admin_url(); endif; wp_safe_redirect($redirect_to); exit; } $errors = $user; return $errors; } /** * Function Name: geocraft_login_form * Description: This function creates user login form */ function geocraft_login_form($class=null) { ?>