Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Solved]: Can i use index.php to create a privacy policy page?  (Read 1923 times)

0 Members and 1 Guest are viewing this topic.

muffin

  • Coppermine newbie
  • Offline Offline
  • Posts: 4

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?
« Last Edit: May 17, 2008, 08:43:03 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Can i use index.php to create a privacy policy page?
« Reply #1 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.
Logged

muffin

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Can i use index.php to create a privacy policy page?
« Reply #2 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 21 queries.