Using security into own pages

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
arnaldofranco
User
Posts: 6

Using security into own pages

Post by arnaldofranco »

Greetings to everybody here.
To end the trial period i would like to know if is it possible to use the security from PHPMaker into my own coded pages?. I have one page selfcoded and a menù item to get it from PHPMaker application left side menu, but i want that just authorized users could launch it. Is it possible? How could I ?

Thanks and congratulations to PHPMaker Team about this great work. I plan to propose to my university definitely to programming RAD laboratories.

73s


danielc
User
Posts: 1601

Post by danielc »

You can enable [Generate a blank page] option in [Generate] panel. This page (blankpage.php) has security setup (see the generated code). You just rename this page and put your code inside. There is some comment where to put your server code and html code.


BillyG
User
Posts: 23

Post by BillyG »

Nice feature, but is it possible to make these blank generated pages following advanced security and user levels?
I mean, how can I make such a page only accessible to some user level accounts?


BillyG
User
Posts: 23

Post by BillyG »

Found a solution:

function MenuItem_Adding(&$Item) {

//var_dump($Item);
// Return FALSE if menu item not allowed

if (CurrentUserLevel() != 3 && $Item->Text == 'MyMenuItemDisplayText') {
return FALSE;
}

return TRUE;
}


Post Reply