[Solved]: Can i use index.php to create a privacy policy page? [Solved]: Can i use index.php to create a privacy policy page?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: Can i use index.php to create a privacy policy page?

Started by muffin, May 17, 2008, 05:03:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

muffin

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?

Nibbler

Here's what I use.


<?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.

muffin

Hello Nibbler, thats perfect, its just what i needed, i now have my privacy policy in place, thanks very much for providing the code.