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: static php page?  (Read 2812 times)

0 Members and 1 Guest are viewing this topic.

wipqozn1

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
static php page?
« on: May 13, 2007, 10:22:19 pm »

Is there any possibility of creating .php page within Coppermine? MINICMS doesn't allow for including php code or external files and I didn't found nothing else.

I just would like to add page with "most time-spenders" php code and have no idea how could I do it.
« Last Edit: May 14, 2007, 12:29:10 am by Nibbler »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: static php page?
« Reply #1 on: May 13, 2007, 10:29:27 pm »

If you want to create a new page with the coppermine template, put this into a new php file:
Code: [Select]
<?php 
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');

pageheader('page title');

pagefooter(); 
?>
Logged

wipqozn1

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
Re: static php page?
« Reply #2 on: May 14, 2007, 12:05:24 am »

Thank You :-)
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.