forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: muffin on May 17, 2008, 05:03:51 pm

Title: [Solved]: Can i use index.php to create a privacy policy page?
Post by: muffin on May 17, 2008, 05:03:51 pm
Hello, i need to create a privacy policy page where i basically want the header and footer to identify the page as being part of my site but the rest of the page content stripped out so that i can place privacy policy information on that page.

Can i use index.php for this, renaming the file to privacy_policy.php and what code from the index.php file would i need to strip out for this please?
Title: Re: Can i use index.php to create a privacy policy page?
Post by: Nibbler on May 17, 2008, 05:36:53 pm
Here's what I use.

Code: [Select]
<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2007 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.11
  $Source$
  $Revision: 3406 $
  $Author: gaugau $
  $Date: 2006-12-27 10:12:12 +0100 (Wed, 27 Dec 2006) $
**********************************************/

define('IN_COPPERMINE'true);

require(
'include/init.inc.php');

pageheader('Privacy policy');


starttable(600'Privacy Policy');

echo <<< EOT

<tr>
<td class="tableb">
Privacy policy goes here
</td>
</tr>

EOT;

endtable();

pagefooter();

Just upload that as privacy_policy.php and add a link to it.
Title: Re: Can i use index.php to create a privacy policy page?
Post by: muffin on May 17, 2008, 08:00:02 pm
Hello Nibbler, thats perfect, its just what i needed, i now have my privacy policy in place, thanks very much for providing the code.