0byt3m1n1
Path:
/
data
/
17
/
1
/
18
/
11
/
1670011
/
user
/
1801231
/
htdocs
/
marketting
/
system
/
application
/
controllers
/
[
Home
]
File: logout.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | COPYRIGHT NOTICE | Copyright 2008 JROX Technologies, Inc. All Rights Reserved. | ------------------------------------------------------------------------- | This script may be only used and modified in accordance to the license | agreement attached (license.txt) except where expressly noted within | commented areas of the code body. This copyright notice and the | comments above and below must remain intact at all times. By using this | code you agree to indemnify JROX Technologies, Inc, its corporate agents | and affiliates from any liability that might arise from its use. | | Selling the code for this program without prior written consent is | expressly forbidden and in violation of Domestic and International | copyright laws. | | ------------------------------------------------------------------------- | FILENAME - logout.php | ------------------------------------------------------------------------- | | This controller logs out the admin | */ class Logout extends Public_Controller { function logout() { parent::Public_Controller(); } function index() { //first get all the users memberships $mem = $this->session->userdata('jrox_current_memberships'); delete_cookie('jrox_login'); if (!empty($mem)) { foreach ($mem as $row) { delete_cookie('jrox_group_login_' . $row['product_id']); } } //logout the membe and destroy the session $this->session->sess_destroy(); if ($this->config->item('member_url_logout_redirect')) { redirect_301($this->config->item('member_url_logout_redirect'), true, false); } else { redirect(); } } } ?>