Adding PHP to each webpage
David Denholm <[email protected]>
| Newsgroups | gmane.comp.genealogy.gramps.user |
|---|---|
| Message-ID | <[email protected]> |
I am hoping to use better minds than mine to find a solution:
I have a PHP secure website which uses a MySQL database. To ensure the
pages are served securely I need to add the following (in red if this works)
to the top of every webpage in the narrated web as produced by Gramps.
<?php require_once('../../private/initialize.php'); ?>
<?php $page_title = 'Family Tree'; ?>
<?php include(SHARED_PATH . '/staff_header.php'); ?>
[I would like to add the following to the end of every page in the narrated
website, but this is not critical:
<?php include(SHARED_PATH . '/staff_footer.php'); ?>
Is there any way to do this within GRAMPS? Or is there another way?
[For anyone more technically minded the staff_header.php includes the PHP to
require_login() and this makes sure that the page cannot be served without
the user being logged on (I could put this in each webpage directly but I
still have the same problem about how to add a standard bit of PHP in each
page. (I am using nginx, and I have been advised that using htaccess would
be inefficient.)]
Can anyone point me in the right direction?
Thanks (and by the way - Happy Christmas!)
David
-------------- next part --------------
An HTML attachment was scrubbed...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5977 bytes
Desc: not available
--
Gramps-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org