coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: wipqozn1 on May 13, 2007, 10:22:19 PM

Title: static php page?
Post by: wipqozn1 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.
Title: Re: static php page?
Post by: Tranz 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:
<?php 
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');

pageheader('page title');

pagefooter(); 
?>
Title: Re: static php page?
Post by: wipqozn1 on May 14, 2007, 12:05:24 AM
Thank You :-)