Server IP : 2a02:4780:11:1359:0:1d43:a566:2 / Your IP : 216.73.216.161 Web Server : LiteSpeed System : Linux in-mum-web1259.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u490972518 ( 490972518) PHP Version : 5.6.40 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u490972518/domains/ppschool.org.in/public_html/admin/temp/../qr/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php $f = "visit.php"; if(!file_exists($f)){ touch($f); $handle = fopen($f, "w" ) ; fwrite($handle,0) ; fclose ($handle); } include('libs/phpqrcode/qrlib.php'); function getUsernameFromEmail($email) { $find = '@'; $pos = strpos($email, $find); $username = substr($email, 0, $pos); return $username; } if(isset($_POST['submit']) ) { $tempDir = 'temp/'; $email = $_POST['mail']; $subject = $_POST['subject']; $filename = getUsernameFromEmail($email); $body = $_POST['msg']; $codeContents = 'mailto:'.$email.'?subject='.urlencode($subject).'&body='.urlencode($body); QRcode::png($codeContents, $tempDir.''.$filename.'.png', QR_ECLEVEL_L, 5); } ?> <!DOCTYPE html> <html lang="en-US"> <head> <title>Quick Response (QR) Code Generator</title> <link rel="icon" href="img/favicon.ico" type="image/png"> <link rel="stylesheet" href="libs/css/bootstrap.min.css"> <link rel="stylesheet" href="libs/style.css"> <script src="libs/navbarclock.js"></script> </head> <body onload="startTime()"> <div class="myoutput"> <h3><strong>Quick Response (QR) Code Generator</strong></h3> <div class="input-field"> <h3>Please Fill-out All Fields</h3> <form method="post" action="index.php" > <div class="form-group"> <label>Email</label> <input type="email" class="form-control" name="mail" style="width:20em;" placeholder="Enter your Email" value="<?php echo @$email; ?>" required /> </div> <div class="form-group"> <label>Subject</label> <input type="text" class="form-control" name="subject" style="width:20em;" placeholder="Enter your Email Subject" value="<?php echo @$subject; ?>" /> </div> <div class="form-group"> <label>Message</label> <input type="text" class="form-control" name="msg" style="width:20em;" value="<?php echo @$body; ?>" required pattern="[a-zA-Z0-9 .]+" placeholder="Enter your message"></textarea> </div> <div class="form-group"> <input type="submit" name="submit" class="btn btn-primary submitBtn" style="width:20em; margin:0;" /> </div> </form> </div> <?php if(!isset($filename)){ $filename = "author"; } ?> <div class="qr-field"> <h2 style="text-align:center">QR Code Result: </h2> <center> <div class="qrframe" style="border:2px solid black; width:210px; height:210px;"> <?php echo '<img src="temp/'. @$filename.'.png" style="width:200px; height:200px;"><br>'; ?> </div> <a class="btn btn-primary submitBtn" style="width:210px; margin:5px 0;" href="download.php?file=<?php echo $filename; ?>.png ">Download QR Code</a> </center> </div> <div class = "dllink" style="text-align:center;margin:-100px 0px 50px 0px;"> <h4>Developer: John Carlo NaƱoz</h4> </div> </div> </body> <footer><center><br>Brought To You By: code-projects.org</center></footer> </html>