# shiftcontroller/2.1.0/application/modules/wordpress/controllers/auth.php

ShiftController Employee Shift Scheduling, version 2.1.0. 15 lines.

- Page: https://pluginprobe.com/plugins/shiftcontroller/2.1.0/code/application/modules/wordpress/controllers/auth.php
- Raw: https://pluginprobe.com/plugins/shiftcontroller/2.1.0/raw/application/modules/wordpress/controllers/auth.php
- Modified: 2014-01-08T18:20:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/shiftcontroller/2.1.0/code/application/modules/wordpress/controllers/auth.php#L10-L20`.

```php
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Wordpress_Auth_controller extends Front_Controller
{
	function __construct()
	{
		$app = $this->config->item('nts_app');

	// redirect to wp login page
		$return_to = isset( $GLOBALS['NTS_CONFIG'][$app]['FRONTEND_WEBPAGE'] ) ? $GLOBALS['NTS_CONFIG'][$app]['FRONTEND_WEBPAGE'] : get_bloginfo('wpurl');
		$to = wp_login_url( $return_to );
		ci_redirect( $to, 'refresh');
		exit;
	}
}

```
