Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 23. Nov 2024, 07:50

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 7. Nov 2008, 06:08 
Offline

Joined: 21. Oct 2008, 02:56
Posts: 9
Hi Michael,

I am using Advanced Login System, a php security script to secure our web site where we have TWG installed. I would like to integrate the ALS
script into TWG. The following code:

<?php
session_start();
include ("alssystem/functions.php");
check_login();
?>

is normally included at the top of any php pages that we want to secure, and works by checking that the person is logged into that page, or the web site.

Before I start testing, I thought I should ask you if I am likely to break TWG by including that code, and if not, which files would I need to include the code in, in order to require our web site members be logged in before accessing the TWG page?

I realize that this is not directly related to TWG, but I am thinking it should be fairly simple to do.

Thank you for any ideas you might have on this.[/url]

_________________
Ralph Moore
Indianapolis, IN USA


Top
 Profile  
 
 Post subject:
PostPosted: 7. Nov 2008, 19:46 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
You have to add this at index.php and image.php. if you want to secure the admin (which needs his own login anyway) you have to modify admin/index.php.

You don't have to start the session. This is already done in TWG.

you just have to do this after '/inc/startsession.inc.php'; is included.

/Michael


Top
 Profile  
 
 Post subject: Thanks for replying
PostPosted: 8. Nov 2008, 07:06 
Offline

Joined: 21. Oct 2008, 02:56
Posts: 9
I was thinking it might be something like that, but it doesn't work.

I am guessing that the ALS system relies on starting the session itself as it uses session info to control access time limits, etc.

Obviously, I need to study about passing info between scripts or getting scripts to work together.

I created the web site using XSitePro and I might be able to use the iframe method that you referenced in the HowTo's.

Hopefully, i will figure it out eventually. Thanks again for the info.

_________________
Ralph Moore
Indianapolis, IN USA


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
powered by phpbb | Datenschutz/ Privacy policy