Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

ACL

Asked Modified Viewed 8,752 times
A
arced
A
arced 10
ARCED
  • Junior Member, joined since
  • Contributed 17 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Junior Member

www.php-fusion.co.uk/infusions/addondb/img/screenshots/t_650.jpgpage user access control with basic & advanced setting. it restrict users from accessing certain page & some security option. Other alias name maybe a "Simple ACL" ?

read manual for how to use it.



-- View this Addon --

Updated Version:

- Ver 1.01 : add modul synchrozine (to fix ambigues menu link after deleted from "site link"wink . download it here http://www.ziddu.com/download/1364537...1.zip.html
Edited by arced on 02-02-2011 09:10,
0 replies

14 posts

R
Rolf Mayer
R
Ex
  • Senior Member, joined since
  • Contributed 391 posts on the community forums.
  • Started 7 threads in the forums
answered
Senior Member

Looks interesting.
0 replies
A
arced
A
arced 10
ARCED
  • Junior Member, joined since
  • Contributed 17 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

Ypsilon wrote:
Looks interesting.


you're welcome to try it. please give me feedback later about the infusion

thx, arced ;)
0 replies
R
Rolf Mayer
R
Ex
  • Senior Member, joined since
  • Contributed 391 posts on the community forums.
  • Started 7 threads in the forums
answered
Senior Member

As soon as I tried it out, I'll let you (us) know...
0 replies
— 1 month later —
G
Goldenhawk
G
When you teach, teaches at the same time to doubt what you teach...
  • Member, joined since
  • Contributed 57 posts on the community forums.
  • Started 14 threads in the forums
answered
Member

Hi,
I've installed ACL v.1.01
I've done exactly shown in readme file.
When i tried to retrieve TESTING page (as suggested in readme) (as admin) the page is shown.
When i go in Homepage as visitor (not logged in) at acl_panel place is shown this message:
Notice: Undefined index: user_id in /web/xxx/xxxx/xxxx/home/infusions/acl/acl_panel.php on line 25
as shown in attached screenshot.
Where i've done mistakes?

www.scuolaleopardi.org/images/error.png
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

In theme.php its probably missing...

global $userdata;
0 replies
G
Goldenhawk
G
When you teach, teaches at the same time to doubt what you teach...
  • Member, joined since
  • Contributed 57 posts on the community forums.
  • Started 14 threads in the forums
answered
Member

I used as theme, Fusionist, by Arly, and go great: never modified by me...
(this is initial code of Fusionist theme.php):
+-------------------------------------------------------+
| Filename: theme.php                                   |
| Author: Harly Petersen                                |
| Homepage: http://php-fusion.openworld.dk/             |
+-------------------------------------------------------+
| This theme is released under the terms and conditions |
| of the GNU Affero GPL v3.                             |
+------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
/* original theme copyright by fildelare.org */
/* converted by StarglowOne @ www.starglowone.com */
define("THEME_WIDTH", "85%");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='bullet.gif' style='border:0' />");
define("THEME_BULLET2", "<span class='bullet2'>&middot;</span>");

require_once INCLUDES."theme_functions_include.php";

function render_page($license=false) {

   global $settings, $main_style, $locale, $aidlink, $userdata, $msg_count;


@arced: how can i solve this issue ?
Edited by Goldenhawk on 03-03-2011 00:21,
0 replies
L
lelebart
L
I don't know! I don't know why I did it, I don't know why I enjoyed it, and I don't know why I'll do it again! Bart Simpson
  • Member, joined since
  • Contributed 133 posts on the community forums.
  • Started 21 threads in the forums
answered
Member

$userdata is filled only for logged-in users, so (it's not a them-issue): or you set the panel visible for members (admins is better?) only, or we should do some mods to the infusion: on acl_panel.php find
if(acl_check($userdata['user_id'])===false){
replace with
if(!iMEMBER || (acl_check($userdata['user_id'])===false)){


edit: be careful: this code works only with v1.00
0 replies
G
Goldenhawk
G
When you teach, teaches at the same time to doubt what you teach...
  • Member, joined since
  • Contributed 57 posts on the community forums.
  • Started 14 threads in the forums
answered
Member

without this mod (tnx lelebart), i was enabled acl_panel and i logged in as admin; so, as admin, error isn't shown and ACL protected page is SHOWN; when i logged-off error shown. If i go disable acl_panel, ACL protected page is always shown... i'vent understood... (anyway, thanks lelebart)
0 replies
G
Goldenhawk
G
When you teach, teaches at the same time to doubt what you teach...
  • Member, joined since
  • Contributed 57 posts on the community forums.
  • Started 14 threads in the forums
answered
Member

@lelebart: I'VE DONE THE MOD! BUT THE SITE IS BLOCKED !!!
0 replies
L
lelebart
L
I don't know! I don't know why I did it, I don't know why I enjoyed it, and I don't know why I'll do it again! Bart Simpson
  • Member, joined since
  • Contributed 133 posts on the community forums.
  • Started 21 threads in the forums
answered
Member

i was using v1.00, not v1.01 (which is *not* hosted here)
enable this panel for members only! or modify [syntaxhighlighter brush=php,first-line=25,highlight=0,collapse=false,html-script=false]if(acl_check($userdata['user_id'])===false){
header("location:".INFUSIONS."acl/blocked.php"wink;
}[/syntaxhighlighter] into [syntaxhighlighter brush=php,first-line=25,highlight=0,collapse=false,html-script=false]if(iMEMBER) {
if(acl_check($userdata['user_id'])===false){
header("location:".INFUSIONS."acl/blocked.php"wink;
}
}[/syntaxhighlighter]
0 replies
G
Goldenhawk
G
When you teach, teaches at the same time to doubt what you teach...
  • Member, joined since
  • Contributed 57 posts on the community forums.
  • Started 14 threads in the forums
answered
Member

this mod was already done by me, but the result was as described above by me... ACL protected page was SHOWN always, (logged in as admin, as NOT logged, or as logged as another member). The acl_panel is linked at ACL process: if it is disabled ACL not perform the page protection
0 replies
A
arced
A
arced 10
ARCED
  • Junior Member, joined since
  • Contributed 17 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

Goldenhawk2011 wrote:
Hi,
I've installed ACL v.1.01
I've done exactly shown in readme file.
When i tried to retrieve TESTING page (as suggested in readme) (as admin) the page is shown.
When i go in Homepage as visitor (not logged in) at acl_panel place is shown this message:
Notice: Undefined index: user_id in /web/xxx/xxxx/xxxx/home/infusions/acl/acl_panel.php on line 25
as shown in attached screenshot.
Where i've done mistakes?

www.scuolaleopardi.org/images/error.png



hi,
sorry for late reply. just open and read this support forum smile.

solution is ... try to modify acl_panel.php with :

error_reporting("E_ALL^E_NOTICE"wink;

if(acl_check($userdata['user_id'])===false){
header("location:".INFUSIONS."acl/blocked.php"wink;
}


let me know if that not solve your problem.

thx,arced
Edited by arced on 07-03-2011 10:30,
0 replies
G
Goldenhawk
G
When you teach, teaches at the same time to doubt what you teach...
  • Member, joined since
  • Contributed 57 posts on the community forums.
  • Started 14 threads in the forums
answered
Member

Hi.
dont worry, i've done [as suggested by lelebart] as shown:
//if(acl_check($userdata['user_id'])===false){
if(iMEMBER)
{
   if(acl_check($userdata['user_id'])===false)   {
      header("location:".INFUSIONS."acl/blocked.php");
   }
//header("location:".INFUSIONS."acl/blocked.php");
}

say me if this is wrong, or i must mod with your suggestions above.
Thanks
0 replies
A
arced
A
arced 10
ARCED
  • Junior Member, joined since
  • Contributed 17 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

Goldenhawk2011 wrote:
Hi.
dont worry, i've done [as suggested by lelebart] as shown:
//if(acl_check($userdata['user_id'])===false){
if(iMEMBER)
{
   if(acl_check($userdata['user_id'])===false)   {
      header("location:".INFUSIONS."acl/blocked.php");
   }
//header("location:".INFUSIONS."acl/blocked.php");
}

say me if this is wrong, or i must mod with your suggestions above.
Thanks


no problem with the solution that lelebart gave you...
same concept...with mine.

thx, arced
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 14 posts
  • Votes 0 votes
  • Topic users 5 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet