CodeIgniter Forums
acces - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: acces (/showthread.php?tid=42741)



acces - El Forum - 06-17-2011

[eluser]nolaeh[/eluser]
How to set a access like the access there is for System and application

and how to remove the acces from system and application?


acces - El Forum - 06-17-2011

[eluser]marcogmonteiro[/eluser]
Can you explain a little further on your question?


acces - El Forum - 06-17-2011

[eluser]brucebat[/eluser]
I think he means having a .htaccess in the root directory that will apply to all sub directories.


acces - El Forum - 06-17-2011

[eluser]osci[/eluser]
remove all .htaccess files from all subfolders, add +indexes, AddType application/x-httpd-php-source .phps,... seriously why would you want that?


acces - El Forum - 06-17-2011

[eluser]adityamenon[/eluser]
System and Application already are inaccessible by public. If you want a file to be un-executable by non-CI scripts, just add this line on top:

Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>



acces - El Forum - 06-18-2011

[eluser]nolaeh[/eluser]
well it wasnt what i search for. but it asked my question. I searched for something like realms.. but it wasnt like that


acces - El Forum - 06-18-2011

[eluser]osci[/eluser]
I did a check on realms and found that
Quote:A realm is a way of associating a group of users and the protocol used to verify their credentials.

Is realms authentication set up in server configuration?

Or elaborate a little about what you mean realms (I'm not familiar but interested to know). Maybe a link to see what you mean?


acces - El Forum - 06-18-2011

[eluser]adityamenon[/eluser]
I think you're looking for something like user roles and permissions regarding file access, like Drupal. CI definitely doesn't support this natively: you'll have to either write a few classes yourself, built upon the great IonAuth (https://github.com/benedmunds/CodeIgniter-Ion-Auth) to help you with the permissions.