Server IP : 202.29.229.35 / Your IP : 3.132.213.245 Web Server : Apache System : Linux aapanel2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 User : www ( 1001) PHP Version : 5.5.38 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/www.ivecr2.ac.th/stdcard/cropper/ |
Upload File : |
<?php @session_start(); if($_GET['v'] != "h" && $_GET['v'] != "w"){ exit("error"); } /*if($_SESSION['start_login'] != 1){ //echo '<META HTTP-EQUIV="Refresh" CONTENT="0;URL=http://std-card.lbtech.ac.th/login.php">'; exit("dsfsdf"); }*/ include("../connect/connect.php"); $qeury = mysql_query("SELECT * FROM tblstd_idcard WHERE student_id = '".$_GET['id']."'") or die(mysql_error()); $num = mysql_num_rows($qeury); if($num != 1){ echo '<META HTTP-EQUIV="Refresh" CONTENT="0;URL=http://std-card.lbtech.ac.th/login.php">'; exit("sdfsd"); } $data = mysql_fetch_assoc($qeury); ?> <!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"> <meta name="description" content="A basic demo of Cropper."> <meta name="keywords" content="HTML, CSS, JS, JavaScript, jQuery plugin, image cropping, front-end, frontend, web development"> <meta name="author" content="Fengyuan Chen"> <title>Cropper</title> <link href="assets/css/bootstrap.min.css" rel="stylesheet"> <link href="dist/cropper.css" rel="stylesheet"> <link href="demo/css/main.css" rel="stylesheet"> </head> <body> <!-- Content --> <div class="container"> <center> <div class="thumbnail"> <h3><?php echo $data['student_id']." || ".$data['stu_fname']." ".$data['stu_lname'];?></h3><br /> <h4><?php echo $data['major_name'].$data['minor_name'];?></h4> <br /> </div> <!-- <h3 class="page-header">Demo:</h3> --> <div class="img-container"> <img src="../photo_std/<?php echo $_GET['id'];?>.jpg" alt="Picture"> </div> <div class="col-md-9 docs-buttons"> <div class="btn-group btn-group-crop"> <!--<button class="btn btn-primary" data-method="getDataURL" type="button"> <span class="docs-tooltip" data-toggle="tooltip" title="$().cropper("getDataURL")"> Get Data URL </span> </button>--> <form id="myform" method="post" action="upload.php" enctype="multipart/form-data"> <input type="hidden" name="v" value="<?php echo $_GET['v'];?>"/> <input type="hidden" name="id" value="<?php echo $_GET['id'];?>"/> <input id="mydata" type="hidden" name="mydata" value=""/> <button class="btn btn-primary" data-method="getDataURL" data-option="image/jpeg" type="button"> <!--<span class="docs-tooltip" data-toggle="tooltip" title="$().cropper("getDataURL", "image/jpeg")">--> Crop <!--</span>--> </button> </form> <!--<button class="btn btn-primary" data-method="getDataURL" data-option="image/webp" type="button"> <span class="docs-tooltip" data-toggle="tooltip" title="$().cropper("getDataURL", "image/webp")"> WEBP </span> </button> <button class="btn btn-primary" data-method="getDataURL" data-option="{ "width": 160, "height": 90 }" type="button"> <span class="docs-tooltip" data-toggle="tooltip" title="$().cropper("getDataURL", { "width": 160, "height": 90 })"> 160 × 90 </span> </button> <button class="btn btn-primary" data-method="getDataURL" data-option="{ "width": 320, "height": 180 }" type="button"> <span class="docs-tooltip" data-toggle="tooltip" title="$().cropper("getDataURL", { "width": 320, "height": 180 })"> 320 × 180 </span> </button>--> </div> <div class="btn-group btn-group-crop"> <a href="../webcam/video.php?id=<?php echo $_GET['id'];?>&show=1"> <button class="btn btn-info">กลับ</button> </a> </div> <!-- Show the cropped image in modal --> <div class="modal fade docs-cropped" id="getDataURLModal" aria-hidden="true" aria-labelledby="getDataURLTitle" role="dialog" tabindex="-1"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button class="close" data-dismiss="modal" type="button" aria-hidden="true">×</button> <h4 class="modal-title" id="getDataURLTitle">Cropped</h4> </div> <div class="modal-body"></div> <!-- <div class="modal-footer"> <button class="btn btn-primary" data-dismiss="modal" type="button">Close</button> </div> --> </div> </div> </div><!-- /.modal --> <!-- <div class="col-md-3 docs-toggles"> <div class="btn-group btn-group-justified" data-toggle="buttons"> <label class="btn btn-primary active" data-method="setAspectRatio" data-option="1.7777777777777777" title="Set Aspect Ratio"> <input class="sr-only" id="aspestRatio1" name="aspestRatio" value="1.7777777777777777" type="radio"> <span class="docs-tooltip" data-toggle="tooltip" title="$().cropper("setAspectRatio", 16 / 9)"> 16:9 </span> </label> <label class="btn btn-primary" data-method="setAspectRatio" data-option="1.3333333333333333" title="Set Aspect Ratio"> <input class="sr-only" id="aspestRatio2" name="aspestRatio" value="1.3333333333333333" type="radio"> <span class="docs-tooltip" data-toggle="tooltip" title="$().cropper("setAspectRatio", 4 / 3)"> 4:3 </span> </label> <label class="btn btn-primary" data-method="setAspectRatio" data-option="1" title="Set Aspect Ratio"> <input class="sr-only" id="aspestRatio3" name="aspestRatio" value="1" type="radio"> <span class="docs-tooltip" data-toggle="tooltip" title="$().cropper("setAspectRatio", 1 / 1)"> 1:1 </span> </label> <label class="btn btn-primary" data-method="setAspectRatio" data-option="0.6666666666666666" title="Set Aspect Ratio"> <input class="sr-only" id="aspestRatio4" name="aspestRatio" value="0.6666666666666666" type="radio"> <span class="docs-tooltip" data-toggle="tooltip" title="$().cropper("setAspectRatio", 2 / 3)"> 2:3 </span> </label> <label class="btn btn-primary" data-method="setAspectRatio" data-option="NaN" title="Set Aspect Ratio"> <input class="sr-only" id="aspestRatio5" name="aspestRatio" value="NaN" type="radio"> <span class="docs-tooltip" data-toggle="tooltip" title="$().cropper("setAspectRatio", NaN)"> Free </span> </label> </div> </div>--> </div> <!-- Scripts --> <script src="assets/js/jquery.min.js"></script> <script src="assets/js/bootstrap.min.js"></script> <script src="dist/cropper.js"></script> <script src="demo/js/main.js"></script> </body> </html>