<?php 
if(file_exists('../../..'.$_REQUEST['tenant'].'/config.php')){require_once('../../..'.$_REQUEST['tenant'].'/config.php'); }
if(file_exists('/config.php')){require_once('/config.php'); }

require "../../packages/phpqrcode/qrlib.php";
QRcode::png(getCompanyDetails('web').'/preview.php?repnumber='.$_REQUEST['repnumber'], '../../..'.TENANT_URL.'/images/repQR.png', 'L', 4, 2);
?>

<div class="row mb-5">
    <div class="col-12 text-center">
        <img src="images/repQR.png" height="300px">
    </div>
</div>

<div class="row">
    <div class="col-12 text-center">
        <h2>https://<?= getCompanyDetails('web').'/preview.php?repnumber='.$_REQUEST['repnumber']?></h2>
    </div>
</div>