Here are the entire mod_coppermine.php
The module for joomla, that should have taken pictures from the coppermine photoalbum and shown them in a "box" in the joomla site.
<?php
/**
* @copyright (C) 2007 Der-Reisende.de
* @license
http://www.gnu.org/copyleft/gpl.html GNU/GPL
**/
//begin validation
defined( '_VALID_MOS' ) or die( 'Restricted access' );
//end validation
//begin module parameters
// $gallery = $params->get('gallery'); // Galeriepfad, nicht verwendet
$cpmFetch = $params->get('cpmFetch');// Pfad zu cpmfetch
$quelle =$params->get('quelle'); // Option album= Album, cat=Kategorie
$typ = $params->get('typ'); // Option last= zuletzt hinzugefuegt, random = Zufall, mostviewed = am meisten angesehen, toprated = am besten bewertet
$column = $params->get('column'); // Spalte
$rows = $params->get('rows');
$id = $params->get('id'); // Nummer des Albums/Kategorie
$imagesize =$params->get ('imagesize'); // thumb = Thumbnail, int = Intermediate, large = Gross
$imagelink =$params->get ('imagelink'); // standard = normaler Bildlink, none = kein Link, album = Link zum Album, large = Link zum Bild
$windowtarget =$params->get ('windowtarget'); // _parent = gleiches Fenster, _blank = Neues Fenster
$css_imagestyle = $params->get('css_cpgimage'); // IMG
$css_table = $params->get('css_cpgtable'); // TABLE
$css_tablehead = $params->get('css_cpgtablehead'); // TH
$css_row = $params->get('css_cpgrow'); // TR
$css_cell = $params->get('css_cpgcolumn'); // TD
$css_link = $params->get('css_cpglink'); // A
$imagewidth = $params->get('cpgimagewidth');
$imageheight = $params->get('cpgimageheight');
$resize =$params->get('resize');
$subtitle = $params->get('subtitle');
$alttag = $params->get('alttag');
$moduleclass_sfx = $params->get('moduleclass_sfx');
//end module parameters
$gallery = $cpmFetch .'/cpmfetch_config.php'; // Anhaengen der Config Datei fuer cpmfetch
// Zusammensetzen des Strings, entweder fuer Album oder Kategorie
$id = $quelle.'='.$id;
// Uergeben der Parameter in das Options Feld
$options ['subtitle'] = $subtitle;
$options ['alttag'] = $alttag;
$options ['imagestyle'] = $css_imagestyle;
$options ['tablestyle'] = $css_table;
$options ['cellstyle'] = $css_cell;
$options ['tableheadstyle'] = $css_tablehead;
$options ['rowstyle'] = $css_row;
$options ['linkstyle'] = $css_link;
$options ['imagesize'] = $imagesize;
$options ['imagelink'] = $imagelink;
$options ['windowtarget'] = $windowtarget;
// due a display bug in Iexplorer -> dont use these parameters
if ( $resize == '1' )
{
$options ['imageheight'] = $imageheight;
$options ['imagewidth'] = $imagewidth;
}
// echo "<center>";
// echo $id;
// echo $quelle;
// echo $typ;
// echo $rows;
// echo $column;
// echo $css_table;
require_once $cpmFetch."/cpmfetch.php";
$objCpm = new cpm($gallery);
switch ($typ)
{
case 'last': //Zuletzt hinzugefuegt
$objCpm->cpm_viewLastAddedMediaFrom($id,$rows, $column, $options);
break;
case 'random': // Zufallsbilder
$objCpm->cpm_viewRandomMediaFrom($id,$rows, $column, $options);
break;
case 'mostviewed': // am meisten angesehen
$objCpm->cpm_viewRandomMostViewedMediaFrom($id,$rows, $column, $options);
break;
case 'toprated': // am besten bewertet
$objCpm->cpm_viewTopRatedMediaFrom($id,$rows, $column, $options);
break;
case 'mostrated': // am haeufigsten bewertet
$objCpm->cpm_viewMostVotedMediaFrom($id,$rows, $column, $options);
break;
}
$objCpm->cpm_close();
echo "</enter";
?>
Hope this will help you help us