Yohanne Posted December 4, 2013 Share Posted December 4, 2013 Hi coders, i need an advice for having this situation and i don't know if you are already encounter this scenario. please visit this site : www.silvertec.com and please click first ABOUT US and 2nd is PRODUCT and after cleking the product you found out the error. a link that out of a system. and i really no idea where it comes. and when i check the code so far, there is nothing wrong with code. please advice what to do and to ignore that link. so far my code below for link. <script> function about_us() { window.location.assign("aboutus.php") } function product_s() { window.location.assign("products.php") } function comming_soon() { window.location.assign("comingsoon.php") } function support_us() { window.location.assign("support.php") } function contact_us() { window.location.assign("contactus.php") } </script> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td width="191"><a href="index.php"><img src="<?=$bannerpath.$row_logo['image_1']?>" height="31" border="0" title="silvertec logo" /></a></td> <td valign="bottom"> <table border="0" cellspacing="0" cellpadding="0" width="812" height="39" background="images/menu.png"> <tr> <td width="36" align="center"><a href="index.php"><img src="images/home2.png" width="14" height="14" border="0" /></a></td> <td width="154" class="menu_btn" onclick="about_us()">About Us</td> <td width="154" class="menu_btn" onclick="product_s()">Products</td> <td width="154" class="menu_btn" onclick="comming_soon()">Online shop</td> <td width="154" class="menu_btn" onclick="support_us()">Support</td> <td width="154" class="menu_btn" onclick="contact_us()">Contact Us</td> </tr> </table> </td> </tr> </table> Quote Link to comment https://forums.phpfreaks.com/topic/284506-link-error/ Share on other sites More sharing options...
Yohanne Posted December 5, 2013 Author Share Posted December 5, 2013 Any body knows about this link: it like a virus, i got 1times in every 24 hours. i don't how it to remove, since also hosting company they don't know how it to remove. http://a3tnznttchql96wzu1sqqzn43234e344e1b839d1ca3926541232438e.baskentegitimmerkezi.com/index2.php please help. Quote Link to comment https://forums.phpfreaks.com/topic/284506-link-error/#findComment-1461319 Share on other sites More sharing options...
QuickOldCar Posted December 5, 2013 Share Posted December 5, 2013 I got a similar url but different domain when trying products, but when tried to get to it again I couldn't and everything worked fine. My advice would be to look for any suspicious files located on your server, you may be able to narrow it down by date and when you first noticed the issue. Quote Link to comment https://forums.phpfreaks.com/topic/284506-link-error/#findComment-1461368 Share on other sites More sharing options...
QuickOldCar Posted December 5, 2013 Share Posted December 5, 2013 If this just happens on products,maybe is something in that code doing it as well, you can try posting products.php code here in bb code tags. Quote Link to comment https://forums.phpfreaks.com/topic/284506-link-error/#findComment-1461369 Share on other sites More sharing options...
Yohanne Posted December 6, 2013 Author Share Posted December 6, 2013 Okay, Thank you for your response. and here is the code for producs.php <? include("top.inc.php")?> <? $cate_ar = array(); $sql = "select * from stcms_products_cate where markasdelete = 0 and is_post = 1 order by ordernum"; $res = mysql_query($sql); while ($row = mysql_fetch_array($res)){ $temp = array(); $temp['id'] = $row['id']; $temp['image_1'] = $row['image_1']; $temp['image_2'] = $row['image_2']; $temp['hotitemlist'] = array(); $sql2 = "select sp.id,sp.image_hot"; $sql2 .= " from stcms_products sp, stcms_products_highlight sph"; $sql2 .= " where sp.parent = '".$row['id']."' and sp.is_post = 1 and sp.markasdelete = 0 and sph.product_id = sp.id"; $sql2 .= " order by sph.ordernum"; $res2 = mysql_query($sql2); while ($row2 = mysql_fetch_array($res2)){ $temp['hotitemlist'][] = $row2; } $cate_ar[] = $temp; } $product_banner = ""; $sql = "select image_1 from stcms_products_banner where id = 1"; $res = mysql_query($sql); $row = mysql_fetch_array($res); if (file_exists($bannerpath.$row['image_1']) && $row['image_1'] != ""){ $product_banner = $bannerpath.$row['image_1']; } $type_photo_ar = array(); $sql = "select * from stcms_products_type_photo where id = 1"; $res = mysql_query($sql); $row = mysql_fetch_array($res); foreach ($_pro_type_ar2 as $key => $value){ if (file_exists($bannerpath.$row['image_'.$key]) && $row['image_'.$key] != ""){ $type_photo_ar[$key] = $bannerpath.$row['image_'.$key]; } if (file_exists($bannerpath.$row['image_'.$key.'_over']) && $row['image_'.$key.'_over'] != ""){ $type_photo_ar[$key.'_over'] = $bannerpath.$row['image_'.$key.'_over']; } else if (file_exists($bannerpath.$row['image_'.$key]) && $row['image_'.$key] != ""){ $type_photo_ar[$key.'_over'] = $bannerpath.$row['image_'.$key]; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <? include("title.php")?> <link href="includes/css/style.css" rel="stylesheet" type="text/css"> <link href="includes/css/contentslider.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="includes/js/contentslider.js"></script> <script> 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];} } function chhotitem(id){ if (id == 2){ document.getElementById('hotitemlist_1').style.display = "none"; document.getElementById('hotitemlist_2').style.display = ""; } else { document.getElementById('hotitemlist_1').style.display = ""; document.getElementById('hotitemlist_2').style.display = "none"; } } var current_cate = "<?=$cate_ar['0']['id']?>"; function chhotitem2(id){ if (current_cate != id){ document.getElementById('hotitemlist_c'+id).style.display = ""; document.getElementById('hotitemlist_c'+current_cate).style.display = "none"; current_cate = id; } } </script> </head> <body onload="MM_preloadImages( <? foreach ($cate_ar as $key => $value){?> <? if ($key == 0){?> '<?=$productcatepath.$value['image_2']?>' <? } else {?> ,'<?=$productcatepath.$value['image_2']?>' <? } ?> <? } ?> <? foreach ($_pro_type_ar2 as $key => $value){?> ,'<?=$type_photo_ar[$key.'_over']?>' <? } ?> );"> <table border="0" cellspacing="0" cellpadding="0" class="mainw"> <tr> <td align="center"><? include "header.php"?></td> </tr> <tr> <td align="center" valign="top" style="padding-top:5px;"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <? if ($product_banner != ""){?> <tr> <td align="center"><img src="<?=$product_banner?>" width="1000" border="0" /></td> </tr> <? } ?> <tr> <td style="padding-top:10px;"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <? foreach ($cate_ar as $key => $value){?> <td align="center"><div><a href="productslist.php?cid=<?=$value['id']?>" onmouseover="chhotitem2('<?=$value['id']?>');MM_swapImage('Image<?=$key?>','','<?=$productcatepath.$value['image_2']?>',1)" onmouseout="MM_swapImgRestore()"><img src="<?=$productcatepath.$value['image_1']?>" width="320" border="0" name="Image<?=$key?>" id="Image<?=$key?>" /></a></div> <div class="hotstr1"> </div> </td> <? } ?> </tr> </table> </td> </tr> <tr> <td style="padding-left:18px;"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td valign="bottom"><a href="productslist.php?ctype=MO" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('pImage_mo','','<?=$type_photo_ar['mo_over']?>',1)"><img src="<?=$type_photo_ar['mo']?>" name="pImage_mo" border="0" id="pImage_mo" /></a></td> <td valign="bottom"><a href="productslist.php?ctype=LA" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('pImage_la','','<?=$type_photo_ar['la_over']?>',1)"><img src="<?=$type_photo_ar['la']?>" name="pImage_la" border="0" id="pImage_la" /></a></td> <td valign="bottom"><a href="productslist.php?ctype=BA" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('pImage_ba','','<?=$type_photo_ar['ba_over']?>',1)"><img src="<?=$type_photo_ar['ba']?>" name="pImage_ba" border="0" id="pImage_ba" /></a></td> <td valign="bottom"><a href="productslist.php?ctype=AD" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('pImage_ad','','<?=$type_photo_ar['ad_over']?>',1)"><img src="<?=$type_photo_ar['ad']?>" name="pImage_ad" border="0" id="pImage_ad" /></a></td> </tr> <tr> <td valign="bottom"><a href="productslist.php?ctype=EA" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('pImage_ea','','<?=$type_photo_ar['ea_over']?>',1)"><img src="<?=$type_photo_ar['ea']?>" name="pImage_ea" border="0" id="pImage_ea" /></a></td> <td valign="bottom"><a href="productslist.php?ctype=SP" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('pImage_sp','','<?=$type_photo_ar['sp_over']?>',1)"><img src="<?=$type_photo_ar['sp']?>" name="pImage_sp" border="0" id="pImage_sp" /></a></td> <td valign="bottom"><a href="productslist.php?ctype=CA" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('pImage_ca','','<?=$type_photo_ar['ca_over']?>',1)"><img src="<?=$type_photo_ar['ca']?>" name="pImage_ca" border="0" id="pImage_ca" /></a></td> <td valign="bottom"><a href="productslist.php?ctype=MOU" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('pImage_mou','','<?=$type_photo_ar['mou_over']?>',1)"><img src="<?=$type_photo_ar['mou']?>" name="pImage_mou" border="0" id="pImage_mou" /></a></td> </tr> </table> </td> </tr> <? foreach ($cate_ar as $key => $value){?> <tr id="hotitemlist_c<?=$value['id']?>" <? if ($key > 0){?>style="display:none"<? } ?>> <td class="pro_hotitemlist"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <? foreach ($value['hotitemlist'] as $key2 => $value2){?> <td align="center"><a href="products_detail.php?id=<?=$value2['id']?>"><img src="<?=$productpath.$value2['image_hot']?>" width="243" border="0" /></a></td> <? if (($key2+1) % 3 == 0){?> </tr><tr> <? } ?> <? } ?> </tr> </table> </td> </tr> <? } ?> <? /*<tr id="hotitemlist_1" style="display:none"> <td class="pro_hotitemlist"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td align="center"><a href="products_detail.php?id=22"><img src="temp/4.png" width="243" height="152" border="0" /></a></td> <td align="center"><a href="products_detail.php?id=20"><img src="temp/5.png" width="243" height="152" border="0" /></a></td> <td align="center"><a href="products_detail.php?id=21"><img src="temp/6.png" width="243" height="152" border="0" /></a></td> </tr> </table> </td> </tr> <tr id="hotitemlist_2" style="display:none"> <td class="pro_hotitemlist"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td align="center"><a href="products_detail.php?id=31"><img src="temp/1.png" width="243" height="152" border="0" /></a></td> <td align="center"><a href="products_detail.php?id=34"><img src="temp/2.png" width="243" height="152" border="0" /></a></td> <td align="center"><a href="products_detail.php?id=38"><img src="temp/3.png" width="243" height="152" border="0" /></a></td> </tr> </table> </td> </tr> */ ?> </table> </td> </tr> <tr> <td align="center" valign="bottom" height="120"><? include "logo.php"?></td> </tr> <tr> <td><? include "footer.php"?></td> </tr> </table> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/284506-link-error/#findComment-1461448 Share on other sites More sharing options...
QuickOldCar Posted December 7, 2013 Share Posted December 7, 2013 Nothing should be doing it there. Can look in top.inc.php,header.php,footer.php or within your imageslider script? Quote Link to comment https://forums.phpfreaks.com/topic/284506-link-error/#findComment-1461552 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.