<?php
$name = $_REQUEST['name'];
$date = date("Y-m-d");
if($name)
{
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta property="og:url"           content="https://rgfindia.org/pledge/certificate-english.php?name=<?php echo $name; ?>" />
        <meta property="og:type"          content="website" />
        <meta property="og:title"         content="RGF INDIA" />
        <meta property="og:description"   content="Sadbhavana Pledge Certificate" />
        <meta property="og:image"         content="https://rgfindia.org/pledge/images/eng-certificate.jpg" />
        
                        <meta name="twitter:site" content="RGF INDIA">
<meta name="twitter:creator" content="RGF INDIA">
<meta name="twitter:url" content="https://rgfindia.org/pledge/certificate-hindi.php?name=<?php echo $name; ?>">
<meta name="twitter:title" content="RGF INDIA">
<meta name="twitter:description" content="Sadbhavana Pledge Certificate">
        
    <title>Certificate</title>
    <link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
     <link rel="stylesheet" href="./css/custom.css">
    <style>
        *{margin:0px; padding: 0px; font-family: 'Open Sans', sans-serif;}
           .container {
  position: relative;
  text-align: center;
  color: white;
}

    </style>
</head>

<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<script type="text/javascript">// <![CDATA[
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];
if(!d.getElementById(id)){js=d.createElement(s);js.id=id;
js.async=true;
js.src="//platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js,fjs);
}}(document,"script","twitter-wjs");
// ]]></script>

    <div class="container rgf-certificate">
        <img class="img-fluid img-responsive" src="./images/hindi-certificate.jpg"  alt="">
        <div class="date" ><?php echo $name; ?></div>
        <div class="date date-sign" ><?php echo $name; ?></div>
        <!-- <div class="pic"><img src="./userimage/<?php echo $userimage; ?>" width="225" height="260"></div> -->
  
      </div>
    
    
    <div style="text-align:center; margin-bottom:10px;">
       <div class="fb-share-button" 
data-href="https://rgfindia.org/pledge/certificate-english.php?name=<?php echo $name; ?>" 
data-layout="button_count">
</div>
        
 <a href="https://twitter.com/share" style="margin-top:20px!important;" class="twitter-share-button">Tweet</a>  
        </div>
</body>
</html>
<?php
}
else
{
    header("location:http://rgfindia.org/pledge/");
}
?>