Full private Photoshow

View previous topic View next topic Go down

Full private Photoshow

Post  linken on Wed Aug 29, 2012 8:26 pm

Hello,

This is a simple upgrade to allow only connected user to access to the gallery.

Simply add at the beginning of the "public function toHTML(){" in the "src/classes/MainPage.php" the following lines:

Code:
session_start();
if (!isset($_SESSION['login'])) {
   header ('Location: ?t=Log');
   exit();
}

PS : sorry for my english, I'm french Wink


linken

Posts : 2
Join date : 2012-08-29

View user profile

Back to top Go down

THANKS!

Post  alexandorov on Fri Sep 28, 2012 2:30 am

I was looking how to do this.

Merci Wink

alexandorov

Posts : 1
Join date : 2012-09-28

View user profile

Back to top Go down

Re: Full private Photoshow

Post  nawak on Wed Aug 21, 2013 10:46 am

Salut,

j'aime bien ta modification pour le coup çà privatise bien l'outil,
cependant les tokens ne fonctionnent plus alors que la possibilité de donner accès à un album par un lien est une option assez importante pour moi.
Aurez-tu une astuce pour forcer l'authentification sauf ceux qui viennent d'un lien token ?

++++ Merci

nawak

Posts : 2
Join date : 2013-08-21

View user profile

Back to top Go down

Re: Full private Photoshow

Post  Sponsored content Today at 6:50 pm


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum