Server IP : 51.89.169.208 / Your IP : 216.73.216.57 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/advertise/ |
Upload File : |
<?php header("location:/promote/");exit; session_start(); $_SESSION = array(); $path = $_SERVER['DOCUMENT_ROOT']; include_once $path.'/connect_db.php'; if(isset($_POST['submit'])){ $ename=strtolower(addslashes($_POST['ename'])); $epass=addslashes($_POST['epass']); $contactname=ucwords(addslashes($_POST['contactname'])); $surname=ucwords(addslashes($_POST['surname'])); $address=addslashes($_POST['address']); $zip=addslashes($_POST['zip']); $phone=addslashes($_POST['phone']); $validator=addslashes($_POST['validator']); $recaptcha=addslashes($_POST['g-recaptcha-response']); $secret='6LdRRgUTAAAAACf7fpSBOzH4gdLv0MGoDZlg8ZlK'; $url="https://www.google.com/recaptcha/api/siteverify?secret=".$secret."&response=".$recaptcha."&remoteip=".$_SERVER['REMOTE_ADDR']; $res=file_get_contents($url); $res= json_decode($res, true); //if(!$res['success']){ /// captcha verification if(!$_POST){ /// captcha verification //$error_veri = TRUE; }else{ //////////////////CHECK IF MEMBER EXISTS//////////////////// //////////////////////////////////////////////////////////// $checkuser = $connect->query("SELECT * FROM members WHERE ename = \"$ename\""); $username_exist = $checkuser->num_rows; if($username_exist > 0){ $error1 = TRUE; }else{ //////////////////CREATE NEW MEMBER///////////////////////// //////////////////////////////////////////////////////////// $time = time(); $q1 = "insert into members set regdate = '$time', ename = '$ename', epass = '$epass', contactname = '$contactname', surname = '$surname'"; $r1 = $connect->query($q1) or die($connect->error); if ($r1) { $memberid = $connect->insert_id; } /////////////SEND EMAIL ON REGISTRATION///////////////////// //////////////////////////////////////////////////////////// $to = "$contactname <$ename>"; $subject_em = "Registration at YellowLeaf - Your account details"; $email_message = ' <div style="margin-bottom:5px;">Dear <b>'.$contactname.'</b></div> <div> Welcome to YellowLeaf.<br><br> Here are your account details which you will need when you log into YellowLeaf members area.<br><br> <b>Email:</b> '.$ename.'<br> <b>Password:</b> '.$epass.'<br><br> <a href="http://www.yellowleaf.co.uk/login/">Click here to log into your YellowLeaf members account.</a> </div>'; // message template which includes $message and $email_message include '../email_tmp/em_tmp.php'; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: YellowLeaf <support@yellowleaf.co.uk>' . "\r\n"; mail($to, $subject_em, $message, $headers,"-f support@yellowleaf.co.uk"); /////// KILL OFF ANY SESSION OR COOKIES MADE session_destroy(); setcookie("yl_user", $_SESSION['ename'], time()-60*60*24*100, "/"); //////////////////REGISTRATION COMPLETE///////////////////// //////////////////////////////////////////////////////////// $success=TRUE; } } } ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Free Business Advertising - Business Local Listings</title> <script src="/js/js.js"></script> <meta name="description" content="Promote your local business with our free advertising listings, sign up to advertise your business today its completely free."> <link href="/style.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="/js/jquery.js"></script> <script language="javascript"> <!-- // When the Document Object Model is ready jQuery(document).ready(function(){ // 'catTopPosition' is the amount of pixels #cat // is from the top of the document var catTopPosition = jQuery('#register').offset().top; // When #scroll is clicked jQuery('#register_btn').click(function(){ // Scroll down to 'catTopPosition' jQuery('html, body').animate({scrollTop:catTopPosition}, 'slow'); // This stops the anchor link from acting like a normal anchor link return false; }); }); <? if($error_veri||$error1){ echo "$(window).load(function () { var catTopPosition = jQuery('#register').offset().top; jQuery('html, body').animate({scrollTop:catTopPosition}, 'slow'); });"; } ?> function CheckRegister(){ var em = /@/; var pc = /[^ +](.*) (.*)/; if(document.RegForm.contactname.value==""){ window.alert('Please enter your firstname'); document.RegForm.contactname.focus(); return false; } if(document.RegForm.surname.value==""){ window.alert('Please enter your surname'); document.RegForm.surname.focus(); return false; } if(document.RegForm.ename.value==""){ window.alert('Please enter your email address'); document.RegForm.ename.focus(); return false; } if(!em.test(document.RegForm.ename.value)){ alert("Please enter a valid email address"); document.RegForm.ename.focus(); return false; } if(document.RegForm.ename.value !== document.RegForm.cename.value){ window.alert('Your emails do not match'); document.RegForm.epass.focus(); return false; } if(document.RegForm.epass.value==""){ window.alert('Please enter your password'); document.RegForm.epass.focus(); return false; } if(document.RegForm.epass.value !== document.RegForm.cepass.value){ window.alert('Your passwords do not match'); document.RegForm.epass.focus(); return false; } if(document.RegForm.validator.value==""){ window.alert('Please enter the 4 letters you see in the word verification box.'); document.RegForm.validator.focus(); return false; } } function terms(pageURL, title,w,h) { var left = (screen.width/2)-(w/2); var top = (screen.height/2)-(h/2); window.open (pageURL, title, 'scrollbars=yes, width='+w+', height='+h+', top='+top+', left='+left); } //--> </script> <script src='https://www.google.com/recaptcha/api.js'></script> <style> .title_desc{font-size:9pt;color:#555;font-weight:normal;margin:5px 0 10px} .regTblInfo td{padding:8px 10px;font-size:10pt} .regInfoTr{background:#fafafa;height:75px;} .ltbs-cn td{border-bottom:1px solid #dbcead} .regInfo .regInfoImg{padding:10px 5px 10px 20px} .ltbusiness{padding:7px 10px;font-weight:bold;background: #ffce22;background: -moz-linear-gradient(top, #ffce22 0%, #ffb603 100%);background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffce22), color-stop(100%,#ffb603));background: -webkit-linear-gradient(top, #ffce22 0%,#ffb603 100%);background: -o-linear-gradient(top, #ffce22 0%,#ffb603 100%);background: -ms-linear-gradient(top, #ffce22 0%,#ffb603 100%);background: linear-gradient(to bottom, #ffce22 0%,#ffb603 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffce22', endColorstr='#ffb603',GradientType=0 );} </style> </head> <body> <? if($_GET['ref']=='lp'){echo '<div style="height:30px"></div>';}else{include '../header.php';} ?> <div class="tbwdth" style="line-height:22px;color:#666;"> <?if($success==TRUE){?> <table> <tr> <td valign="top" style="padding:10px 30px 10px 10px;"> <img src="/img/tick.png" /> </td> <td> <div style="letter-spacing: 2px;font-weight:bold;font-size:14pt;color:#197AC4;margin-bottom:15px;">Thank Your For Registering With YellowLeaf</div> <div style="margin-bottom:15px;">You have successfully created your account with YellowLeaf. An email has been sent to your email address regarding your login details.</div> <div style="margin-bottom:25px;"> The email has been sent to: <span style="font-weight:bold;color:#ce5b4e;font-style:italic"><?=$ename?></span></div> <a class="button blue" style="border:0px;margin-top:20px" name="submit" type="submit" href="/login">Click here to Login ></a> </td> </tr> </table> </div> <?}else{?> <table class="tbwdth"> <tr> <td style="line-height:20px;color:#444;padding-right:30px;" valign="top"> <div style="font-size:16pt;font-weight:bold;margin:10px 0">Get New Customers To Your Business...</div> <div style="font-size:21pt;font-weight:bold;margin:0 0 15px;color:#197ac4;">Free Business Advertising - Advertise your Business today!</div> <div style="letter-spacing: 6px;font-size:14pt;">YOUR LOCAL BUSINESS DIRECTORY<br><br> </div></td> </tr> <tr> <td style="line-height:22px;color:#444;" valign="top"> <table width="100%"> <tr> <td valign="top"> <!-- register info --> <table class="regTblInfo regInfo" width="100%"> <tr class="regInfoTr"> <td class="regInfoImg" valign="top"><img border="0" src="/img/tick_medium.png"></td> <td valign="top"><div class="regDescTitle">COMPLETELY FREE</div> Adding your business on YellowLeaf is completely free of charge.</td> </tr> <tr class="regInfoTr" style="background:#f3f3f3;"> <td class="regInfoImg" valign="top"><img border="0" src="/img/tick_medium.png"></td> <td valign="top"><div class="regDescTitle">INSTANT CHANGES</div> Instantly change your business advert on YellowLeaf without any hassle or confusion.</td> </tr> <tr class="regInfoTr"> <td class="regInfoImg" valign="top"><img border="0" src="/img/tick_medium.png"></td> <td valign="top"><div class="regDescTitle">BUSINESS PROFILE</div> Become more known and build your reputation on the web.</td> </tr> <tr class="regInfoTr" style="background:#f3f3f3;"> <td class="regInfoImg" valign="top"><img border="0" src="/img/tick_medium.png"></td> <td valign="top"><div class="regDescTitle">PHOTO UPLOAD</div> YellowLeaf provides you the opportunity to promote your business with photos.</td> </tr> <tr class="regInfoTr"> <td class="regInfoImg" valign="top"><img border="0" src="/img/tick_medium.png"></td> <td valign="top"><div class="regDescTitle">SEARCH ENGINE OPTIMISED</div> Get found on search engines, your business advert will be search engine optimised.</td> </tr> <tr class="regInfoTr" style="background:#f3f3f3;"> <td class="regInfoImg" valign="top"><img border="0" src="/img/tick_medium.png"></td> <td valign="top"><div class="regDescTitle">LINK TO YOUR WEBSITE</div> If you have a website, promote it free. Get a free link to your website, increase exposure to your website.</td> </tr> <tr class="regInfoTr"> <td class="regInfoImg" valign="top"><img border="0" src="/img/tick_medium.png"></td> <td valign="top"><div class="regDescTitle">SOCIAL LINKS</div> Increase your business popularity by promoting all of your major social links of your business from Facebook, Twittier and many more.</td> </tr> <tr class="regInfoTr" style="background:#f3f3f3;"> <td class="regInfoImg" valign="top"><img border="0" src="/img/tick_medium.png"></td> <td valign="top"><div class="regDescTitle">PROMOTIONS FACILITY</div> Does your business have promotions to offer to your customers? Add UNLIMITED amount of promotions.</td> </tr> <tr class="regInfoTr"> <td class="regInfoImg" valign="top"><img border="0" src="/img/tick_medium.png"></td> <td valign="top"><div class="regDescTitle">BOOST YOUR SALES</div> Advertise with YellowLeaf and increase your exposure and boost your sales.</td> </tr> <tr class="regInfoTr" style="background:#f3f3f3;"> <td class="regInfoImg" valign="top"><img border="0" src="/img/tick_medium.png"></td> <td valign="top"><div class="regDescTitle">LOCALLY TARGETED ADS</div> Your advert will be targeted to particular users that are located near you.</td> </tr> </table> </td> <td valign="top" style="padding-left:30px;width:360px;"> <!-- register button --> <div class="curv3" style="border:1px solid #aaa;padding:10px 15px;margin-bottom:25px;"> <b>READY TO ADVERTISE YOUR BUSINESS?</b><br> <div style="margin-bottom:15px;">Click on the button below to create your free YellowLeaf account and instantly start advertising your business.</div> <div align="center"><a class="button green" style="margin-bottom:15px;width:270px;text-align:center;" id="register_btn" href="#">CLICK HERE TO REGISTER >></a></div> </div> <!-- latest submitted --> <div class="curv3" style="border:1px solid #ffca1d;border-bottom:1px solid #ffca1d;"> <div class="ltbusiness">NEW BUSINESSES JOINED YELLOWLEAF</div> <table width="100%" class="ltbs-cn regTblInfo"> <?php $a = $connect->query("SELECT * FROM ads where active='1' order by adid desc limit 6"); $ad_numrow=$a->num_rows; if($ad_numrow==0){?> <div style="text-align:center;padding: 15px;font-weight: bold;background:#fafafa;">Currently updating</div> <? }else{ while($b = $a->fetch_array()){ $r_adid=strtolower($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); ?> <tr> <td valign="middle"> <? if($b['image']!=''){ echo '<img width="70" style="border:1px solid #d1d1d1;" src="/members/uploads/logo/'.$b['image'].'">'; }else{ echo '<img width="70" style="border:1px solid #d1d1d1;" src="/img/no_logo.png">'; } ?> </td> <td valign="top"> <!-- 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 = 70; $subDesc=substr($b['description'],0,$lngth); if(strlen($str)<$lngth){echo $subDesc.'...';}else{$b['description'];} ?> </div> </td> </tr> <? } }?> </table> </div> </td> </tr> </table> </td> </tr> <tr> <td style="padding-top:20px;"> <div id="register" style="color:#333;font-size:18pt;font-weight:bold;margin-top:50px">REGISTER NOW TO PROMOTE YOUR BUSINESS...</div> <div style="color:#555;font-size:12pt;margin:5px 0px 20px;">To register please complete the form below.</div> <form name="RegForm" action="index.html" method="POST" onsubmit="return CheckRegister();"> <div class="dvBox"> <div class="regTitle" style="margin-top:0px;"> <div style="color:#197AC4;font-size:13pt;">Personal Details</div> <div class="title_desc">Please enter your personal details. This will be used to make contact if required.</div> <table style="margin-bottom:30px;"> <tr> <td> <div class="regTitle" style="margin-top:0px;">Enter Your First Name:</div> <input style="margin-top:0px;" type="text" name="contactname" class="txbox" size="36" value="<?=$contactname?>"> </td> <td style="padding-left:40px;"> <div class="regTitle" style="margin-top:0px;">Enter Your Surname:</div> <input type="text" name="surname" class="txbox" size="36" value="<?=$surname?>"> </td> </tr> </table> <div style="color:#197AC4;font-size:13pt;">Account Details</div> <div class="title_desc"> Please enter your email address and then choose a password. You will need this information everytime you log into your user account. </div> <div style="font-weight:bold;color:red;font-size:10pt;"> <? if($error1==TRUE){?> ERROR:<br> This email address is currently in use. Please choose another email address.<br> If this is your account, please <a style="color:#15c" href="/login">click here to login >.</a> <?}?> <? if($error_veri==TRUE){?> <div style="font-size:12pt;">ERROR:<div> Your word verification does not match below.<br>You must prove you're not a robot. Please try again. <?}?> </div> </div> <table> <tr> <td> <div class="regTitle" style="margin-top:0px;">Email Address:</div> <input type="text" name="ename" class="txbox" size="36" value="<?=$ename?>"> </td> <td style="padding-left:40px;"> <div class="regTitle" style="margin-top:0px;">Re-Enter Your Email Address Again:</div> <input type="text" name="cename" class="txbox" size="36" value="<?=$ename?>"> </td> </tr> <tr> <td> <div class="regTitle">Enter a Password:</div> <input type="password" name="epass" class="txbox" size="36" value="<?=$epass?>"> </td> <td style="padding-left:40px;"> <div class="regTitle">Re-Enter Password Again:</div> <input type="password" name="cepass" class="txbox" size="36" value="<?=$epass?>"> </td> </tr> <tr> <td colspan="2"> <div style="color:#197AC4;font-size:13pt;margin-top:35px;font-weight:bold;">Word Verification</div> <div class="title_desc" style="margin-bottom:16px"> Word Verification prevents automated systems from adding accounts to YellowLeaf. <br><br><b>Please enter the 4 letters you see on the left into the box on the right:</b> </div> <div style="margin-top:5px;margin-left:2px;"> <div class="g-recaptcha" data-sitekey="6LdRRgUTAAAAAJYEstk-LeYizt-WOhZSOYabZUK6"></div></div> </td> </tr> </table> <input class="fancyBtn blueBtn" style="border:0px;margin-top:20px;" name="submit" type="submit" value="Click here to Register >"> </div> </form> </td> </tr> </table> <? } include '../footer.php'; ?> </body> </html>