-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
329 changed files
with
5,099 additions
and
113,182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
require_once('Constants.php'); | ||
|
||
class EmailConstants extends Constants{ | ||
|
||
const SENDER_NAME = "SiGA"; | ||
const SENDER_EMAIL = "[email protected]"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,15 +3,7 @@ | |
class Admin extends CI_Controller { | ||
|
||
public function index() { | ||
$usuario = array( | ||
'nome' => 'admin', | ||
'email' => '[email protected]', | ||
'login' => 'admin', | ||
'senha' => 'random' | ||
); | ||
|
||
$this->session->set_userdata("current_user", $usuario); | ||
redirect('/'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | ||
|
||
require_once(APPPATH."/libraries/NotificationModel.php"); | ||
|
||
class NotificationAjax extends CI_Controller { | ||
|
||
public function setNotificationSeen(){ | ||
|
||
$notificationId = $this->input->post("notification"); | ||
|
||
$this->db->where(NotificationModel::ID_COLUMN, $notificationId); | ||
$this->db->update(NotificationModel::NOTIFICATION_TABLE, array(NotificationModel::SEEN_COLUMN => TRUE)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.