Updated app URLs with index.php so that they work without URL rewrite
This commit is contained in:
parent
4b98409c08
commit
efaa5bdf85
8 changed files with 17 additions and 17 deletions
|
@ -26,7 +26,7 @@ class Backend extends CI_Controller {
|
|||
* appear when the page loads.
|
||||
*/
|
||||
public function index($appointment_hash = '') {
|
||||
$this->session->set_userdata('dest_url', $this->config->item('base_url') . '/backend');
|
||||
$this->session->set_userdata('dest_url', $this->config->item('base_url') . '/index.php/backend');
|
||||
if (!$this->hasPrivileges(PRIV_APPOINTMENTS)) return;
|
||||
|
||||
$this->load->model('appointments_model');
|
||||
|
@ -220,7 +220,7 @@ class Backend extends CI_Controller {
|
|||
$user_id = $this->session->userdata('user_id');
|
||||
if ($user_id == FALSE) { // User not logged in, display the login view.
|
||||
if ($redirect) {
|
||||
header('Location: ' . $this->config->item('base_url') . '/user/login');
|
||||
header('Location: ' . $this->config->item('base_url') . '/index.php/user/login');
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -230,7 +230,7 @@ class Backend extends CI_Controller {
|
|||
$role_priv = $this->db->get_where('ea_roles', array('slug' => $role_slug))->row_array();
|
||||
if ($role_priv[$page] < PRIV_VIEW) { // User does not have the permission to view the page.
|
||||
if ($redirect) {
|
||||
header('Location: ' . $this->config->item('base_url') . '/user/no_privileges');
|
||||
header('Location: ' . $this->config->item('base_url') . '/index.php/user/no_privileges');
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
// ------------------------------------------------------ ?>
|
||||
<?php $hidden = ($privileges[PRIV_APPOINTMENTS]['view'] == TRUE) ? '' : 'hidden'; ?>
|
||||
<?php $active = ($active_menu == PRIV_APPOINTMENTS) ? 'active' : ''; ?>
|
||||
<a href="<?php echo $base_url; ?>/backend" class="menu-item <?php echo $hidden; ?><?php echo $active; ?>"
|
||||
<a href="<?php echo $base_url; ?>/index.php/backend" class="menu-item <?php echo $hidden; ?><?php echo $active; ?>"
|
||||
title="<?php echo $this->lang->line('manage_appointment_record_hint'); ?>">
|
||||
<?php echo $this->lang->line('calendar'); ?>
|
||||
</a>
|
||||
|
@ -93,7 +93,7 @@
|
|||
// ------------------------------------------------------ ?>
|
||||
<?php $hidden = ($privileges[PRIV_CUSTOMERS]['view'] == TRUE) ? '' : 'hidden'; ?>
|
||||
<?php $active = ($active_menu == PRIV_CUSTOMERS) ? 'active' : ''; ?>
|
||||
<a href="<?php echo $base_url; ?>/backend/customers" class="menu-item <?php echo $hidden; ?><?php echo $active; ?>"
|
||||
<a href="<?php echo $base_url; ?>/index.php/backend/customers" class="menu-item <?php echo $hidden; ?><?php echo $active; ?>"
|
||||
title="<?php echo $this->lang->line('manage_customers_hint'); ?>">
|
||||
<?php echo $this->lang->line('customers'); ?>
|
||||
</a>
|
||||
|
@ -102,7 +102,7 @@
|
|||
// ------------------------------------------------------ ?>
|
||||
<?php $hidden = ($privileges[PRIV_SERVICES]['view'] == TRUE) ? '' : 'hidden'; ?>
|
||||
<?php $active = ($active_menu == PRIV_SERVICES) ? 'active' : ''; ?>
|
||||
<a href="<?php echo $base_url; ?>/backend/services" class="menu-item <?php echo $hidden; ?><?php echo $active; ?>"
|
||||
<a href="<?php echo $base_url; ?>/index.php/backend/services" class="menu-item <?php echo $hidden; ?><?php echo $active; ?>"
|
||||
title="<?php echo $this->lang->line('manage_services_hint'); ?>">
|
||||
<?php echo $this->lang->line('services'); ?>
|
||||
</a>
|
||||
|
@ -111,7 +111,7 @@
|
|||
// ------------------------------------------------------ ?>
|
||||
<?php $hidden = ($privileges[PRIV_USERS]['view'] == TRUE) ? '' : 'hidden'; ?>
|
||||
<?php $active = ($active_menu == PRIV_USERS) ? 'active' : ''; ?>
|
||||
<a href="<?php echo $base_url; ?>/backend/users" class="menu-item <?php echo $hidden; ?><?php echo $active; ?>"
|
||||
<a href="<?php echo $base_url; ?>/index.php/backend/users" class="menu-item <?php echo $hidden; ?><?php echo $active; ?>"
|
||||
title="<?php echo $this->lang->line('manage_users_hint'); ?>">
|
||||
<?php echo $this->lang->line('users'); ?>
|
||||
</a>
|
||||
|
@ -121,14 +121,14 @@
|
|||
<?php $hidden = ($privileges[PRIV_SYSTEM_SETTINGS]['view'] == TRUE
|
||||
|| $privileges[PRIV_USER_SETTINGS]['view'] == TRUE) ? '' : 'hidden'; ?>
|
||||
<?php $active = ($active_menu == PRIV_SYSTEM_SETTINGS) ? 'active' : ''; ?>
|
||||
<a href="<?php echo $base_url; ?>/backend/settings" class="menu-item <?php echo $hidden; ?><?php echo $active; ?>"
|
||||
<a href="<?php echo $base_url; ?>/index.php/backend/settings" class="menu-item <?php echo $hidden; ?><?php echo $active; ?>"
|
||||
title="<?php echo $this->lang->line('settings_hint'); ?>">
|
||||
<?php echo $this->lang->line('settings'); ?>
|
||||
</a>
|
||||
|
||||
<?php // LOGOUT MENU ITEM
|
||||
// ------------------------------------------------------ ?>
|
||||
<a href="<?php echo $base_url; ?>/user/logout" class="menu-item"
|
||||
<a href="<?php echo $base_url; ?>/index.php/user/logout" class="menu-item"
|
||||
title="<?php echo $this->lang->line('log_out_hint'); ?>">
|
||||
<?php echo $this->lang->line('log_out'); ?>
|
||||
</a>
|
||||
|
|
|
@ -88,7 +88,7 @@
|
|||
<?php echo $this->lang->line('book_appointment_title'); ?>
|
||||
</a>
|
||||
|
||||
<a href="<?php echo $this->config->base_url(); ?>backend" class="btn btn-danger btn-large">
|
||||
<a href="<?php echo $this->config->base_url(); ?>/index.php/backend" class="btn btn-danger btn-large">
|
||||
<i class="icon-wrench icon-white"></i>
|
||||
<?php echo $this->lang->line('backend_section'); ?>
|
||||
</a>
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
$('.alert').addClass('alert-success');
|
||||
$('.alert').show();
|
||||
setTimeout(function() {
|
||||
window.location.href = GlobalVariables.baseUrl + '/backend';
|
||||
window.location.href = GlobalVariables.baseUrl + '/index.php/backend';
|
||||
}, 1000);
|
||||
}
|
||||
}, 'json');
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
$('form').submit(function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
var postUrl = GlobalVariables.baseUrl + '/user/ajax_forgot_password';
|
||||
var postUrl = GlobalVariables.baseUrl + '/index.php/user/ajax_forgot_password';
|
||||
var postData = {
|
||||
'username': $('#username').val(),
|
||||
'email': $('#email').val()
|
||||
|
@ -125,7 +125,7 @@
|
|||
<?php echo $this->lang->line('regenerate_password'); ?>
|
||||
</button>
|
||||
|
||||
<a href="<?php echo $base_url; ?>/user/login" class="user-login">
|
||||
<a href="<?php echo $base_url; ?>/index.php/user/login" class="user-login">
|
||||
<?php echo $this->lang->line('go_to_login'); ?></a>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
$('#login-form').submit(function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
var postUrl = GlobalVariables.baseUrl + '/user/ajax_check_login';
|
||||
var postUrl = GlobalVariables.baseUrl + '/index.php/user/ajax_check_login';
|
||||
var postData = {
|
||||
'username': $('#username').val(),
|
||||
'password': $('#password').val()
|
||||
|
@ -136,7 +136,7 @@
|
|||
|
||||
<br><br>
|
||||
|
||||
<a href="<?php echo $base_url; ?>/user/forgot_password" class="forgot-password">
|
||||
<a href="<?php echo $base_url; ?>/index.php/user/forgot_password" class="forgot-password">
|
||||
<?php echo $this->lang->line('forgot_your_password'); ?></a>
|
||||
|
|
||||
<span id="select-language" class="badge badge-inverse">
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
<?php echo $this->lang->line('book_appointment_title'); ?>
|
||||
</a>
|
||||
|
||||
<a href="<?php echo $this->config->base_url(); ?>/backend" class="btn btn-danger btn-large">
|
||||
<a href="<?php echo $this->config->base_url(); ?>/index.php/backend" class="btn btn-danger btn-large">
|
||||
<i class="icon-home icon-white"></i>
|
||||
<?php echo $this->lang->line('backend_section'); ?>
|
||||
</a>
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
|
||||
<br>
|
||||
|
||||
<a href="<?php echo $this->config->base_url(); ?>backend" class="btn btn-success btn-large">
|
||||
<a href="<?php echo $this->config->base_url(); ?>/index.php/backend" class="btn btn-success btn-large">
|
||||
<i class="icon-calendar icon-white"></i>
|
||||
<?php echo $this->lang->line('backend_calendar'); ?>
|
||||
</a>
|
||||
|
|
Loading…
Reference in a new issue