Prospect of making ssi.php "private album" complia Prospect of making ssi.php "private album" complia
 

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

Prospect of making ssi.php "private album" complia

Started by Joe Belmaati, January 18, 2004, 01:53:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Joe Belmaati

Just a gentle request to see if anyone is working on solving the private album issues with ssi.php, so that no images from private albums will find their way onto publicly available pages.
Thank you very much in advance!
Best,
Joe Belmaati, Copenhagen

xarumanx

Why don't you try the rss mod posted in the mod section. It does respect the private albums if i recall correctly and you can also display everything you want with it's help and a decent rdf parser.

<?php echo signature(); ?>

Joe Belmaati

Thank you very much!
How do I set it up with a parser, and where do I find one..?

Thanks again

xarumanx

A pretty good RDS Client is the magpieRSS Parser. Download it here and follow the instructions. Basically you'll have to create a php file which you include on your mainpage. And one parameter for the include page is the rss file that the rss mod gereates.

<?php echo signature(); ?>

Joe Belmaati

Thank you very much!

I have installed the 4 required rss files to the same gallery as Coppermine (/gallery/) as per the instructions. Then I have used the magpie_simple.php as my php-file, but renamed it to picfetcher.php

Here is the code
<?php

define
&#40;'MAGPIE_DIR', '../'&#41;;
require_once&#40;MAGPIE_DIR.'rss_fetch.inc'&#41;;

$url $_GET['http&#58;//www.belmaati.com/gallery/rss.php'&#93;;

if &#40; $url &#41; &#123;
        
$rss fetch_rss&#40; $url &#41;;
        
        
echo "Channel&#58; " $rss->channel['title'&#93; . "<p>";
        
echo "<ul>";
        foreach &
#40;$rss->items as $item&#41; &#123;
                
$href $item['link'&#93;;
                
$title $item['title'&#93;;        
                
echo "<li><a href=$href>$title</a></li>";
        &
#125;
        
echo "</ul>";
&
#125;
?>



When I execute picfetcher.php I get the following error

QuoteWarning: Unable to access ../rss_fetch.inc in /hotel/belmaati/WWW/gallery/picfetcher.php on line 4

Fatal error: Failed opening required '../rss_fetch.inc' (include_path='.:/usr/local/lib/php') in /hotel/belmaati/WWW/gallery/picfetcher.php on line 4

It looks to me like I am not calling the directory correctly...but I haven't changed anything in the magpie_simple.php file, now named picfetcher.php, and the 4 magpie rss files are in the same directory.

Can you give me some kind of idea what I am doing wrong....?

Thank you very much in advance, I really appreciate it!!

Best,
Joe Belmaati
Copenhagen Denmark

xarumanx

You made a little error with the URL part in your picfetcher.php

Instead of

$url = $_GET['http://www.belmaati.com/gallery/rss.php'];


write

$url = "http://www.belmaati.com/gallery/rss.php";

to display the contents from the gallery RDF.

The thing with $_GET is only needed if you want to use one picfetch for many different galleries, for example

if($_GET['gallery'] == "maingallery") {
     $url ="http://www.belmaati.com/gallery/rss.php";
} elseif {$_GET['gallery'] == "secondgallery") {
     $url = "http://www.belmaati.com/gallery2/rss.php";
}

and so on...

<?php echo signature(); ?>

viajero

Hi Xarumanx,



greetings from germany ...
until now it was never necessary to contact you guys, i could found everything by searching through the forum, but you wrote

QuoteA pretty good RDS Client is the magpieRSS Parser. Download it here and follow the instructions. Basically you'll have to create a php file which you include on your mainpage. And one parameter for the include page is the rss file that the rss mod gereates.

I came to the same point as Joe Belmaati, used the same example from "magpie" to test it and it works,
in this file I understand what is it doing and getting written to the browser
but I donĀ“t wont to use these  i would like to see the thumbnails with the description as it is coded in the rss file


but now I got confused - And one parameter for the include page is the rss file that the rss mod gereates" - what do you mean with that ? Maybe I overlooked something or I have to rewrite that samplefile to my own use, but I think this is not the point, any suggestions ?

here my linkto the example   for the magpie example,
but how to include it correctly ...

thanx  :roll: