checking more the downloaded file by wget - it looks like that only html part of code is downloaded and php part not - so probably can be used directly without security risk - but not sure for that.
Maybe - can someone else share the opinion regarding security of code from the example from link above - I mean is the password in that file protected from being disclosed?
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Changing SQL query of the Browse Form
-
- nuBuilder Team
- Posts: 508
- Joined: Fri Dec 28, 2018 1:41 pm
- Location: Krakow, Poland
- Has thanked: 11 times
- Been thanked: 18 times
Re: Changing SQL query of the Browse Form
If you like nuBuilder, please leave a review on SourceForge
Re: Changing SQL query of the Browse Form
Thanks Januz,
I have figured a way out, needs some testing, we'll see how it works.
regards
nc07
I have figured a way out, needs some testing, we'll see how it works.
regards
nc07
-
- nuBuilder Team
- Posts: 508
- Joined: Fri Dec 28, 2018 1:41 pm
- Location: Krakow, Poland
- Has thanked: 11 times
- Been thanked: 18 times
Re: Changing SQL query of the Browse Form
Hi,
If you need some data just for review only - so maybe you could use directly www page(s) - and protect them with the password(s). Then they will have access to data even without login into nuBuilder.
If you need some data just for review only - so maybe you could use directly www page(s) - and protect them with the password(s). Then they will have access to data even without login into nuBuilder.
If you like nuBuilder, please leave a review on SourceForge
Re: Changing SQL query of the Browse Form
Thanks Januz,Janusz wrote:Hi,
If you need some data just for review only - so maybe you could use directly www page(s) - and protect them with the password(s). Then they will have access to data even without login into nuBuilder.
At the moment I would like them to access data through NuBuilder user but may be later we may consider other options.
regards
nc07
Re: Changing SQL query of the Browse Form
nc07,
See if this makes sense.
It will allow any of 3 users.
Create a Table and Form... With these fields...
(I have invented a field I have called sto_zzzzsys_user_id in your storage table.)
WHERE 'manager_id' = '#USER_ID#' gets General Manager (hard coded User ID)
OR sto_zzzzsys_user_id = '#USER_ID#' gets User
OR (sal_code = '#ACCESS_LEVEL_CODE#' AND man_zzzzsys_user_id = '#USER_ID#') gets Manager
Steven
See if this makes sense.
It will allow any of 3 users.
Create a Table and Form... With these fields...
Code: Select all
$s = "
CREATE TABLE #TABLE_ID#
SELECT * FROM storage
JOIN manager ON man_zzzzsys_user_id = sto_zzzzsys_user_id
JOIN access ON zzzzsys_access_id = man_zzzzsys_access_id
WHERE 'manager_id' = '#USER_ID#'
OR sto_zzzzsys_user_id = '#USER_ID#'
OR (sal_code = '#ACCESS_LEVEL_CODE#' AND man_zzzzsys_user_id = '#USER_ID#')
";
WHERE 'manager_id' = '#USER_ID#' gets General Manager (hard coded User ID)
OR sto_zzzzsys_user_id = '#USER_ID#' gets User
OR (sal_code = '#ACCESS_LEVEL_CODE#' AND man_zzzzsys_user_id = '#USER_ID#') gets Manager
Steven
You do not have the required permissions to view the files attached to this post.
Re: Changing SQL query of the Browse Form
Thanks, Steven for your guidance,
I will do trials and let you know of the outcome.
Best Regards
nc07
I will do trials and let you know of the outcome.
Best Regards
nc07