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: A page with the theme  (Read 4878 times)

0 Members and 1 Guest are viewing this topic.

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
A page with the theme
« on: September 23, 2005, 04:46:06 am »

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();
?>
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: A page with the theme
« Reply #1 on: September 23, 2005, 04:56:34 am »

Logged
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
Re: A page with the theme
« Reply #2 on: September 23, 2005, 05:06:12 am »

Thanks but it is not good for me because he said
Code: [Select]
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 ?
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: A page with the theme
« Reply #3 on: September 23, 2005, 06:33:52 am »

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
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: A page with the theme
« Reply #4 on: September 23, 2005, 07:13:05 am »

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

antisa33

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 181
    • Free french kids coloring
Re: A page with the theme
« Reply #5 on: September 23, 2005, 12:44:22 pm »

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

Nibbler

  • Guest
Re: A page with the theme
« Reply #6 on: September 23, 2005, 03:26:28 pm »

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

Code: [Select]
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 .
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.