403Webshell
Server IP : 101.255.104.117  /  Your IP : 101.255.104.117
Web Server : Apache/2.4.34 (Win32) OpenSSL/1.0.2o PHP/5.6.38
System : Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
User : user ( 0)
PHP Version : 5.6.38
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  D:/xampp182/htdocs/sifeeder/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : D:/xampp182/htdocs/sifeeder/KelasKuliah.inc.php
<?php
$id = "";
$ip = "";
$userf = "";
$pwdf = "";
$buton = "Simpan";

?>
<h1 class="h3 mb-4 text-gray-800">Data Master Kelas Kuliah</h1>

<div class="container-fluid">

<!-- Page Heading -->
<?php
if(isset($_POST["SYNC"])) {
    $sql = "delete from f_kelaskuliah";
    $result = mysqli_query($conn, $sql);

	include 'feeder_ws.php';

	token();

	$feeder_token = $_SESSION['feeder_token'];

	$sync['act']="GetListKelasKuliah";
	$sync['token']=$feeder_token;
	$sync['key']=[
		"filter"=>"",
		"order"=>"",
		"limit"=>"100",
		"offset"=>"0"
	];

	$json_array = runWs($sync);
	// echo $json_array;
    $jsonn = json_decode($json_array,true);

    foreach($jsonn['data'] as $row) {
        $tbField[0] = "id_kelas_kuliah";
        $tbField[1] = "id_prodi";
        $tbField[2] = "nama_program_studi";
        $tbField[3] = "id_semester";
        $tbField[4] = "nama_semester";
        $tbField[5] = "id_matkul";
        $tbField[6] = "kode_mata_kuliah";
        $tbField[7] = "nama_mata_kuliah";
        $tbField[8] = "nama_kelas_kuliah";
        $tbField[9] = "sks";
        $tbField[10] = "nama_dosen";
        $tbField[11] = "jumlah_mahasiswa";
        $tbField[12] = "apa_untuk_pditt";

        $tbIsi[0] = "'".addslashes($row['id_kelas_kuliah'])."'";
        $tbIsi[1] = "'".$row['id_prodi']."'";
        $tbIsi[2] = "'".$row['nama_program_studi']."'";
        $tbIsi[3] = "'".$row['id_semester']."'";
        $tbIsi[4] = "'".$row['nama_semester']."'";
        $tbIsi[5] = "'".$row['id_matkul']."'";
        $tbIsi[6] = "'".$row['kode_mata_kuliah']."'";
        $tbIsi[7] = "'".$row['nama_mata_kuliah']."'";
        $tbIsi[8] = "'".$row['nama_kelas_kuliah']."'";
        $tbIsi[9] = "'".$row['sks']."'";
        $tbIsi[10] = "'".$row['nama_dosen']."'";
        $tbIsi[11] = "'".$row['jumlah_mahasiswa']."'";
        $tbIsi[12] = "'".$row['apa_untuk_pditt']."'";

        $nmField = compile_array($tbField);
        $isiField = compile_array($tbIsi);

        $sql = "insert into f_kelaskuliah (".$nmField.") values (".$isiField.")";

        if (mysqli_query($conn, $sql)) {
        } else {
            echo "Error: " . $sql . "<br>" . mysqli_error($conn);
        }
    }    
}

?>

                    <!-- DataTales Example -->
                    <div class="card shadow mb-4">
                        <div class="card-header py-3">
                            <h6 class="m-0 font-weight-bold text-primary">DataTables</h6>
                        </div>
                        <div class="card-body">
                            <div class="table-responsive">
                                <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
                                    <thead>
                                        <tr>
                                            <th>ID</th>
                                            <th>Prodi</th>
                                            <th>Semester</th>
                                            <th>MK</th>
                                            <th>Kelas</th>
                                            <th>Dosen</th>
                                            <th>J Mhs</th>
                                        </tr>
                                    </thead>
                                    <tfoot>
                                        <tr>
                                            <th>ID</th>
                                            <th>Prodi</th>
                                            <th>Semester</th>
                                            <th>MK</th>
                                            <th>Kelas</th>
                                            <th>Dosen</th>
                                            <th>J Mhs</th>
                                        </tr>
                                    </tfoot>
                                    <tbody>
                                    <?php
                                    $sql = "SELECT * FROM f_kelaskuliah order by id_kelas_kuliah desc";
                                    $result = mysqli_query($conn, $sql);

                                    if(mysqli_num_rows($result) > 0) {
                                        while($row = mysqli_fetch_assoc($result)) {
                                        ?>
                                        <tr>
                                            <td><?php echo $row['id_kelas_kuliah'];?></td>
                                            <td><?php echo $row['nama_program_studi'];?></td>
                                            <td><?php echo $row['nama_semester'];?></td>
                                            <td><?php echo $row['kode_mata_kuliah']."-".$row['nama_mata_kuliah'];?></td>
                                            <td><?php echo $row['nama_kelas_kuliah'];?></td>
                                            <td><?php echo $row['nama_dosen'];?></td>
                                            <td><?php echo $row['jumlah_mahasiswa'];?></td>
                                        </tr>
                                        <?php
                                        }
                                    }
                                        ?>
                                    </tbody>
                                </table>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                    <div class="col-lg-12">
                        <div class="p-5">
                            <form class="user" action="dashboard.php?KelasKuliah" accept-charset="utf-8" method="post">
                                <div class="form-group row">
                                    <div class="col-sm-3 mb-3 mb-sm-0">
                                        <button name="SYNC" type="submit" class="btn btn-primary btn-user btn-block">Sinkronkan</button>
                                    </div>
                                    <div class="col-sm-3">
                                        <button name="Cancel" type="submit" class="btn btn-primary btn-user btn-block">Cancel</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>

Youez - 2016 - github.com/yon3zu
LinuXploit