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: phpAds VS Gallery  (Read 13276 times)

0 Members and 1 Guest are viewing this topic.

CBR

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
phpAds VS Gallery
« on: January 29, 2004, 04:14:47 pm »

Quote
<?php

    if (@include(getenv('DOCUMENT_ROOT').'/phpAds/phpadsnew.inc.php')) {

        if (!isset($phpAds_context)) $phpAds_context = array();

        $phpAds_raw = view_raw ('', 1, '', '', '0', $phpAds_context);

        echo $phpAds_raw['html'];

    }

?>

PhpAds generated this code. And it is working in every ***.php or ***.html document. But in some reason it can not work if I add this code into theme.php
Could somebody explain the problem?
Logged

jdbaranger

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 169
    • Accro-Photo
phpAds VS Gallery
« Reply #1 on: January 29, 2004, 06:12:50 pm »

Hi,

Try adding this code in template.html rather than in theme.php.

Jean-Denis
Logged
Jean-Denis

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
phpAds VS Gallery
« Reply #2 on: January 29, 2004, 06:28:41 pm »

Actually, theme.php should be fine if you made the necessary adjustments. I suspect the path may be incorrect.  

Change:

 
Code: [Select]
if (@include(getenv('DOCUMENT_ROOT').'/phpAds/phpadsnew.inc.php'))

to:

 
Code: [Select]
if (@include('actual full file path'))

and see if that helps.
Logged
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.