PluginProbe
ShiftController Employee Shift Scheduling / 2.2.3
ShiftController Employee Shift Scheduling v2.2.3
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
← All changes | application/modules/wordpress/controllers/auth.php +3 -50 3.2.42.2.3 View file →
@@ -1,61 +1,14 @@
1 1 <?php defined('BASEPATH') OR exit('No direct script access allowed');
2 -class Auth_Wordpress_HC_Controller extends _Front_HC_Controller
2 +class Wordpress_Auth_controller extends Front_Controller
3 3 {
4 4 function __construct()
5 5 {
6 - // redirect to wp login page
7 -/*
8 6 $app = $this->config->item('nts_app');
9 7
8 + // redirect to wp login page
10 9 $return_to = isset( $GLOBALS['NTS_CONFIG'][$app]['FRONTEND_WEBPAGE'] ) ? $GLOBALS['NTS_CONFIG'][$app]['FRONTEND_WEBPAGE'] : get_bloginfo('wpurl');
11 10 $to = wp_login_url( $return_to );
12 - $this->redirect($to);
13 - exit;
14 -*/
15 - }
16 -
17 - public function login_url()
18 - {
19 - $app = $this->config->item('nts_app');
20 - $return_to = isset( $GLOBALS['NTS_CONFIG'][$app]['FRONTEND_WEBPAGE'] ) ? $GLOBALS['NTS_CONFIG'][$app]['FRONTEND_WEBPAGE'] : get_bloginfo('wpurl');
21 - $to = wp_login_url( $return_to );
22 - return $to;
23 - }
24 -
25 - public function login()
26 - {
27 - $to = $this->login_url();
28 - $this->redirect($to);
29 - exit;
30 - }
31 -
32 - public function logout_url()
33 - {
34 - $app = $this->config->item('nts_app');
35 - $return_to = isset( $GLOBALS['NTS_CONFIG'][$app]['FRONTEND_WEBPAGE'] ) ? $GLOBALS['NTS_CONFIG'][$app]['FRONTEND_WEBPAGE'] : get_bloginfo('wpurl');
36 - $to = wp_logout_url( $return_to );
37 - return $to;
38 - }
39 -
40 - public function logout()
41 - {
42 - $to = $this->logout_url();
43 - $this->redirect($to);
44 - exit;
45 - }
46 -
47 - public function password_url()
48 - {
49 - $app = $this->config->item('nts_app');
50 - $return_to = isset( $GLOBALS['NTS_CONFIG'][$app]['FRONTEND_WEBPAGE'] ) ? $GLOBALS['NTS_CONFIG'][$app]['FRONTEND_WEBPAGE'] : get_bloginfo('wpurl');
51 - $to = get_edit_user_link() . '#password';
52 - return $to;
53 - }
54 -
55 - public function password()
56 - {
57 - $to = $this->password_url();
58 - $this->redirect($to);
11 + ci_redirect( $to, 'refresh');
59 12 exit;
60 13 }
61 14 }