Server IP : 51.89.169.208 / Your IP : 3.148.107.92 Web Server : Apache System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64 User : yellowleaf ( 1019) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/yellowleaf/public_html/pages/ |
Upload File : |
<?php session_start(); header('Content-Type: text/html; charset=utf-8'); $path = $_SERVER['DOCUMENT_ROOT']; include_once $path.'/connect_db.php'; ?> <!doctype html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Your Local Business Directory - YellowLeaf UK</title> <meta name="description" content="Your local business directory. Find products or services in your area fast with Yellow Leaf UK. Submit your business free to our online business directory. Get your business page now."> <link href="style.css" rel="stylesheet" type="text/css"> <link rel="icon" type="image/ico" href="http://www.yellowleaf.co.uk/favicon.ico"/> <script src="/js/js.js"></script> </head> <body onload="box_border_color(1);"> <? include 'top_bar2.php';echo $top_bar; ?> <div align="center" style="margin-top:60px;"> <a href="/" style="border:0;outline:none;"><img border="0" src="/img/logo.png" /></a> </div> <div align="center" style="margin-top:40px;"> <div class="curv3 sbox"> <? include 'search_box.php'; ?> </div> </div> <div align="center" class="tbwdth" style="margin-top:40px;padding:0 15px"> Welcome to YellowLeaf UK - Your local business directory in United Kingdom. Find local businesses pages in your area. Get promotions, business reviews, maps and directions. Browse our online business directory completely free now! </div> <div align="center" style="margin-top:20px;"> <a href="/advertise/"><img border="0" class="tbwdth" src="img/ad_banner.jpg"></a> </div> <div align="center" style="margin-top:40px;"> <table class="tbwdth"> <tr> <td style="font-family: arial;font-size: 14pt;font-weight:bold;padding:8px 0px">Latest Businesses on YellowLeaf UK</td> </tr> <tr> <td> <?php $a = mysqli_query($mysql_connect,"SELECT * FROM ads where active='1' order by adid desc limit 20"); $ad_numrow=mysqli_num_rows($a); if($ad_numrow==0){ ?> <div style="text-align:center;padding: 15px;font-weight: bold;background:#fafafa;">Currently updating</div> <? }else{ while($b = mysqli_fetch_array($a)){ $r_adid=$b['adid']; $r_ad_name=strtolower($b['companyname']); $r_ad_name = preg_replace("/[^A-Za-z 0-9]/", "", $r_ad_name); $r_ad_name=str_replace(" "," ",$r_ad_name); $ad_name=str_replace(" ","-",$r_ad_name); ?> <div class="cn_shaddow u-full-width" style="max-width:460px;height:120px;float:left;margin:7px 12px 12px 0;border:1px solid #dcdcdc;display:table;"> <div style="width:110px;text-align:center;height:82px;margin-top:18px;overflow:hidden;display:table-cell;vertical-align: middle"> <? if($b['image']!=''){ echo '<img width="80" style="border:1px solid #d1d1d1;" src="/members/uploads/logo/'.$b['image'].'">'; }else{ echo '<img width="80" style="border:1px solid #d1d1d1;" src="/img/no_logo.png">'; } ?> </div> <div style="width:340px;height:80px;padding:5px;text-align:left;margin-top:10px;display:table-cell;"> <!-- Business Name --> <a style="font-size:11pt;" href="pages/<?=$r_adid?>-<?=$ad_name?>.html"><?=$b['companyname']?></a> <!-- Description --> <div style="margin:5px 0px;color:#666;font-size:10pt;line-height:18px"> <? $lngth = 100; $subDesc=substr(strip_tags($b['description']),0,$lngth); if(strlen($b['description'])>$lngth){echo $subDesc.'...';}else{echo strip_tags($b['description']);} ?> </div> </div> </div> <? } } ?> </td> </tr> </table> </div> <div class="tbwdth" style="margin-top:40px;"> <div style="margin-bottom:10px;font-family: arial;font-size: 14pt;font-weight:bold;">Local Businesses in Popular Counties</div> <div class="cn_shaddow cont_cn" style="padding:15px;border:1px solid #ddd;margin-top:0;"> <div class="horiz_list prod" style="margin:0;padding:0;overflow:hidden"> <? $area_sql = mysqli_query($mysql_connect,"SELECT * FROM ads WHERE active='1' GROUP BY county_name ORDER BY `county_name` ASC"); $num_rows = mysqli_num_rows($area_sql); $num=0; while($area_row = mysqli_fetch_array($area_sql)){ $area_name=$area_row['county_name']; //// replacing space with dash /************** displayed on the page *************/ $area_link=strtolower($area_name); $area_link=str_replace(" ","-",$area_link); $result = '<div><a href="/business/'.$area_link.'.html" title="Local '.$area_name.' Business Directory">'.$area_name.'</a></div>'; $area_code[$num]=$result; $num++; } $numcols = 5; // Default # of Columns $numitems = count($area_code); // Number of Items $numrows = ceil($numitems/$numcols); // Number of Rows echo '<table class="tblBusCounty" width="100%">'; for ($row=1; $row <= $numrows; $row++) { $cell = 0; echo ' <tr>'."\n"; for ($col=1; $col <= $numcols; $col++) { echo ' <td>'."\n"; if ($col===1) { $cell += $row; echo $area_code[$cell - 1]; }else{ $cell += $numrows; echo $area_code[$cell - 1]; } echo ' </td>'."\n"; } echo ' </tr>'."\n"; } echo '</table>'; ?> </div> </div> </div> <? include 'footer.php'; ?> </body> </html>