A page with the theme A page with the theme
 

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

A page with the theme

Started by antisa33, September 23, 2005, 04:46:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

antisa33

hello !
i use this code to make a page with my coppermine theme and menu but when i put it in a directory it wont work, i have tried with ../ :
require('../include/init.inc.php');
But it dont work too, how can i do that ?
for example this page is here /test/index.php
thanks a lot !

<?php

define('IN_COPPERMINE', true);
require('include/init.inc.php');
pageheader('titre !');


?>       
html code
<?php

pagefooter();
?>

artistsinhawaii

Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

antisa33

Thanks but it is not good for me because he said
They will have to reside inside the coppermine folder, or the subsequent includes will fail to work. HTH

And me i put my file into a sub directory  ??? How can i do ?

artistsinhawaii

I'm not sure that can be done.

But why do you need that page to be in a subfolder?  Why not simply have it point to the files you need in the subfolder, but keep it in the coppermine folder?

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Tranz

hmmm.... try using the absolute path, like /home/username/public_html...etc as an example.

antisa33

Quotehmmm.... try using the absolute path, like /home/username/public_html...etc as an example.
It doesn't work !!!

Nibbler

You'd need to chdir to your coppermine directory before you include if you use this method


chdir('..');
define('IN_COPPERMINE', true);
require('include/init.inc.php');


Then you may also need to add an html base tag into your head to correct any path discrepancy .