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: [Solved]: [Solved]: What am I doing wrong!  (Read 3375 times)

0 Members and 1 Guest are viewing this topic.

drnet.online

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
[Solved]: [Solved]: What am I doing wrong!
« on: June 02, 2009, 05:58:29 am »

I have put this code in the latestimages.php on my server:
Code: [Select]
<script language="javascript" type="text/javascript">
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
</script>
<style>
.latestimages a img {
border: 1px solid #DACEC0;
opacity:.80;
filter: alpha(opacity=80);
 -moz-opacity: 0.8;
padding: 2px;
margin: -1px;
 -moz-border-radius:  6px;
-webkit-border-radius: 6px;
border-radius: 6px;
}

.latestimages a img:hover {
border: 1px solid #DACEC0;
opacity:.90;
filter: alpha(opacity=90);
 -moz-opacity: 0.9;
padding: 2px;
margin: -1px;
 -moz-border-radius:  6px;
-webkit-border-radius: 6px;
border-radius: 6px;
}

 
</style> <div class="latestimages"><center>
<?php
  
include_once "./cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(1,4)
  
$options = array('windowtarget' => '_blank');
?>
</a></center>
And I get this when I try to link the frame:

Parse error: syntax error, unexpected T_VARIABLE in /home/trionetm/public_html/latestimages.php on line 37



PLEASE Help!
« Last Edit: June 03, 2009, 08:44:50 am by Joachim Müller »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: What am I doing wrong!
« Reply #1 on: June 02, 2009, 09:15:40 am »

Missing semicolon after $objCpm->cpm_viewLastAddedMedia(1,4)
Logged

drnet.online

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: What am I doing wrong!
« Reply #2 on: June 02, 2009, 03:57:18 pm »

Thanks! I feel dumb for such a small error :P  ::)
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.