News:

CRITICAL UPGRADE CPG RELEASE 1.6.30
Version 1.6.30 removes a serious security issue that could allow unauthorized access to modify your site. Upgrade as soon as possible.

Main Menu

Call Coppermine as an inclusion?

Started by aaalexxx, September 22, 2003, 01:12:39 PM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

aaalexxx

I call all the pages on my homepage via "include". That means I have the "main" page, let's call it goto.php. So, if I want to go to the guestbook I enter http://www.myhomepage.com/goto.php?location=guestbook

What would be perfect, was if I could do the same with coppermine. Something like http://www.myhomepage.com/goto.php?location=photogallery&sub=displayimage&album=1&pos=1

Then I could add the followig code to the goto.php:

<?php
if &#40;$location == "photogallery"&#41; &#123;
  
$query_string = substr&#40;getenv&#40;"QUERY_STRING"&#41;, strpos&#40;getenv&#40;"QUERY_STRING"&#41;, "&"&#41; + 1&#41;;
  
$coppermine_page = substr&#40;$query_string, 4, strpos&#40;$query_string, "&"&#41; - 4&#41;;
  
$query_rest = substr&#40;$query_string, strpos&#40;$query_string, "&"&#41; + 1&#41;;
  
include&#40;$coppermine_dir . $coppermine_page . "?" . $query_rest&#41;;
&#125;
?>

Maybe also:

How about making Coppermine call its own subpages via an "index.php"?

I'm not too sure if the phpnuke version would be what I need, although I don't have phpnuke installed??

Aleks.

PS. If I couldn't make myself clear post your questions here I'll try to answer them :)

Joachim Müller

won't work this way (at least not without massive modifications of coppermine) - check the template/theme stuff instead; you can make coppermine look&feel&smell just like the rest of your homepage.

GauGau