You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @copyright Authors
*/
ob_start();
include('../../../../index.php');
ob_end_clean();
$CI =& get_instance();
$CI->load->driver('session');
$session = @$_SESSION['logged_in_langgardalem'];
if($session == TRUE) {
$codeigniterAuth = true;
} else {
$codeigniterAuth = false;
}
/**
* Check if user is authorized
*
*
* @return boolean true if access granted, false if no access
*/
function auth() {
// You can insert your own code over here to check if the user is authorized.
// If you use a session variable, you've got to start the session first (session_start())
return $GLOBALS['codeigniterAuth'];
}
// we instantiate the Filemanager
$fm = new Filemanager();
?>
I activate CSRF protection on config CI, each Form have script like this : <input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>">
If i deactivate that fiture, it's success. But how set the filemanager with CSRF Protection ? where i must set the token ??
Activity
simogeo commentedon Feb 4, 2017
Be sure the auth() method in config file returns true.
jamboljack commentedon Feb 6, 2017
Where is the location of file ??
jamboljack commentedon Feb 6, 2017
Oh,, I see,, wait
jamboljack commentedon Feb 6, 2017
jamboljack commentedon Feb 6, 2017
simogeo commentedon Feb 7, 2017
I guess session_start() is missing
jamboljack commentedon Feb 8, 2017
I activate CSRF protection on config CI, each Form have script like this :
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>">If i deactivate that fiture, it's success. But how set the filemanager with CSRF Protection ? where i must set the token ??
simogeo commentedon Feb 8, 2017
it is not implemented