PluginProbe
ShiftController Employee Shift Scheduling / 3.2.4
ShiftController Employee Shift Scheduling v3.2.4
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
shiftcontroller / application / modules / wordpress / controllers / auth.php

auth.php in ShiftController Employee Shift Scheduling 3.2.4, at application/modules/wordpress/controllers/auth.php

62 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php defined('BASEPATH') OR exit('No direct script access allowed');
2 class Auth_Wordpress_HC_Controller extends _Front_HC_Controller
3 {
4 function __construct()
5 {
6 // redirect to wp login page
7 /*
8 $app = $this->config->item('nts_app');
9
10 $return_to = isset( $GLOBALS['NTS_CONFIG'][$app]['FRONTEND_WEBPAGE'] ) ? $GLOBALS['NTS_CONFIG'][$app]['FRONTEND_WEBPAGE'] : get_bloginfo('wpurl');
11 $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);
59 exit;
60 }
61 }
62