Prevent Guest access

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
User avatar
shasta59
AppGini Super Hero
AppGini Super Hero
Posts: 231
Joined: 2013-01-08 19:40
Location: Calgary, Alberta, Canada

Prevent Guest access

Post by shasta59 » 2013-01-20 19:10

Want to prevent people from browsing your appgini app as a guest? Many ways to do it but the easiest I found is to just comment out the line in login.php which displays the guest access. This way, if you wish to change it back later there is only one little change to make. Or if you overwrite the file it is easy to change it.

Open the login.php file with your favourite text editor and find the following lines:

<fieldset id="actions">
<label><?php echo $Translation['browse as guest']; ?></label>
</fieldset>


Modify the code to look like the following: (the changes are in red)

<fieldset id="actions">
<!--<label><?php echo $Translation['browse as guest']; ?></label>-->
</fieldset>[/color]

Then just upload this file to your server and the guest button will no longer show up.

Enjoy

Alan
Calgary, Alberta, Canada - Using Appgini 5.50 -

Post Reply