Skip to content

Commit

Permalink
Relase
Browse files Browse the repository at this point in the history
  • Loading branch information
Emre Akay committed Sep 27, 2013
1 parent c834be7 commit 9e58c34
Show file tree
Hide file tree
Showing 3 changed files with 488 additions and 395 deletions.
13 changes: 8 additions & 5 deletions application/config/aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
// perms to group
'perm_to_group' => 'aauth_perm_to_group',
// pm table
'pm' => 'aauth_pm',
'pms' => 'aauth_pms',


// remember time // 60*60*24*3 (default 3 days)
// remember time
'remember' => ' +3 days',

// pasword maximum char long (min is 4)
Expand All @@ -50,14 +50,15 @@
// default 10 times in one minute
'try' => 10,

// to register email verifitaion need? true / false
'verification' => false,

// system email.
'email' => 'emre@emreakay.com',
'email' => 'admin@admin.com',
'name' => 'Emre Akay',
'subject' => 'Account Vertification',
'reset' => 'Pasword Reset',

// to register email verifitaion need? true / false
'verification' => true,

// error mesages
// change to your language
Expand All @@ -80,6 +81,8 @@
'exceeded' => 'Login try limit exceeded.',
'no_user' => 'User not Exist',
'group_exist' => 'Group already exists',
'self_pm' => 'It is not reasonable to send pm to yourself :)',
'no_pm' => 'Pm not found',

//info
'already_member' => 'User already member of group',
Expand Down
38 changes: 22 additions & 16 deletions application/controllers/example.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,25 @@
* @property Login_control $Login_control
* @property Aauth $aauth Description
*/
class Login extends CI_Controller {
class Example extends CI_Controller {

public function __construct() {
parent::__construct();
// Your own constructor code
$this->load->library("Aauth");
}

function deneme(){
public function index() {

echo "<pre>";
if ($this->aauth->login('admin@admin.com', 'password', true))
echo 'tmm';

//echo date("Y-m-d H:i:s");
}

function debug(){

echo "<pre>";

print_r(
//$this->aauth->is_admin()
Expand All @@ -45,15 +52,22 @@ function deneme(){
//$this->aauth->send_pm(1,2,'asd')
//$this->session->flashdata('d')
//$this->aauth->add_member(1,1)
$this->aauth->create_user('asd@asd.co','d')

//$this->aauth->create_user('asd@asd.co','d')
//$this->aauth->send_pm(1,2,'asd','sad')
//$this->aauth->list_pms(1,0,3,1)
//$this->aauth->get_pm(6, false)
//$this->aauth->delete_pm(6)
//$this->aauth->set_as_read_pm(13)
//$this->aauth->create_group('aa')
$this->aauth->create_perm('asdda')
//''

);

echo '<br>---- errrroor --- <br>';
echo '<br>---- error --- <br>';
echo $this->aauth->get_errors();

echo '<br>---- infoviç --- <br>';
echo '<br>---- info --- <br>';
echo $this->aauth->get_infos();

echo "</pre>";
Expand All @@ -71,22 +85,14 @@ function flash(){
}


function ayar() {
function settings() {

//echo $this->aauth->_get_login_attempts(4);
//echo $this->aauth->get_user_id('emre@emreakay.com');
//$this->aauth->_increase_login_attempts('emre@emreakay.com');
//$this->aauth->_reset_login_attempts(1);
}

public function index() {

if ($this->aauth->login('emre@emreakay.com', '111111', true))
echo 'tmm';

//echo date("Y-m-d H:i:s");
}


public function is_loggedin() {

Expand Down
Loading

0 comments on commit 9e58c34

Please sign in to comment.