Linux sothorn202 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 202.28.82.202 | : 216.73.216.9
pkexec version 0.105
Cant Read [ /etc/named.conf ]
iqtd
RED EYES BYPASS SHELL!
Terminal
Auto Root
Adminer
Backdoor Destroyer
Kernel Exploit
Lock Shell
Lock File
Create User
+ Create Folder
+ Create File
/
home /
lifelonglearn /
work_181165 /
page /
couse /
[ HOME SHELL ]
NAME
SIZE
PERMISSION
ACTION
ManageCouse.php
2.36
KB
-rwxr-xr-x
index.css
5.07
KB
-rwxr-xr-x
index.js
5.11
KB
-rwxr-xr-x
index.php
1.08
KB
-rwxr-xr-x
managecouse.js
5.64
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : managecouse.js
var AuthToken = localStorage.getItem('AuthToken'); var page = 1 var show = 1 var showpage = 5 var row = 9 var totalpage = 0 var limit = 5 var data var cid = window.location.search.split('ID=')[1]; document.addEventListener("DOMContentLoaded", function(event) { var scrollpos = localStorage.getItem('scrollpos'); if (scrollpos) window.scrollTo(0, scrollpos); }); window.onbeforeunload = function(e) { localStorage.setItem('scrollpos', window.scrollY); }; $(document).ready(() => { render(); }) function render() { $(`.pagi-frame`).html(`<span class="loader"></span>`) $.ajax({ url: "API/couse/couseSelect", method: "POST", contentType: "application/json", dataType: "json", data: JSON.stringify({ page, row, cid, AuthToken }), }).done((res) => { data = res.data; // var newData = data[0].couse; // alert(newData.Unitname); // totalpage = res.row //alert(JSON.stringify(data)); if (data.length == 0 && totalpage !== 0) { render() //} else if (data.length == 0 && totalpage == 0) { // ValidData() } else { insert() } }).fail((err) => { ErrorTime(1500, err.responseJSON.message, false) return; }) } function ValidData() { $(`.pagi-frame`).html("") $(`#couse-list`).html("") $(`.pagi-frame`).html(`<p class="text-muted"><i class="fa-solid fa-circle-exclamation me-2"></i> ไม่มีข้อมูล</p>`) } function insert() { $(`#couse-list`).html("") var html = ""; var newData = data.couse; var userData = data.user; var teacher = data.mteacher; var student = data.mstudent; // $.each(teacher, function(key,val) { // alert(key+val['text']); // }); // var sampleArray = [{id:0,text:'enhancement'}, {id:1,text:'bug'} // ,{id:2,text:'duplicate'},{id:3,text:'invalid'} // ,{id:4,text:'wontfix'}]; $( '#teacher' ).select2( { data: teacher, theme: "bootstrap-5", width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style', //placeholder: $( this ).data( 'placeholder' ), } ); $( '#student').select2( { data: student, theme: "bootstrap-5", width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style', placeholder: $( this ).data( 'placeholder' ), closeOnSelect: false, } ); html += ` <div class="col-md-4 col-lg-3 pb-4"> <div class="card" style="width: 100%"> <img src="${newData.filetitle}" class="card-img-top" alt="..."> <div class="card-body"> <div class="title"> <span>${newData.Unitname}</span> </div> <div class="detail"><span>${newData.detail}</span> </div> <div class="profile"> <div class="img-content"><img src="${userData.avatar}" alt=""></div> <div class="name"><span>${userData.name}</span></div> </div> </div> </div> </div> ` $(`#couse-list`).html(html); } $("#ulpage").on("click", ".next", function(e) { if (page == totalpage) { return; } page = page + 1; checkpage(page); if (serch == false) { render(); } else { serchData(); } }); $("#ulpage").on("click", ".Previous", function(e) { if (page == 1) { return; } page = page - 1; checkpage(page); if (serch == false) { render(); } else { serchData(); } }); function checkpage(cu_page) { show = 0; showpage = Math.round(cu_page / 10) * 10; limit = showpage; page = cu_page; if (showpage == 0) { showpage = showpage + 5; show = showpage - 5 + 1; } else if (page == limit) { showpage = showpage + 5; show = showpage - 5 - 1; } else { show = showpage - 6; } if (showpage > totalpage) { showpage = totalpage; } if (page > showpage) { showpage = showpage + 5; show = showpage - 6; } } $("#ulpage").on("click", ".page", function(e) { var cu_page = Number(e.currentTarget.attributes["1"].nodeValue); if (cu_page == page || cu_page > totalpage) { return; } show = 0; showpage = Math.round(cu_page / 10) * 10; limit = showpage; page = cu_page; if (showpage == 0) { showpage = showpage + 5; show = showpage - 5 + 1; } else if (page == limit) { showpage = showpage + 5; show = showpage - 5 - 1; } else { show = showpage - 6; } if (showpage > totalpage) { showpage = totalpage; } if (page > showpage) { showpage = showpage + 5; show = showpage - 6; } if (serch == false) { render(); } else { serchData(); } }); $('body').on('click','#Updata',function(){ var formData = new FormData formData.append("cid",cid) formData.append("cousestudy", JSON.stringify($('form').serializeArray())) formData.append("AuthToken", AuthToken) $.ajax({ url: "API/couse/SaveCouseManage", method: "POST", processData: false, contentType: false, data: formData, }) .done((res) => { alert(res); staCouse = false; successTime(1500, "บันทึกสำเร็จ", () => { location.href = "couse" }) }) .fail((err) => { staCouse = false; err = JSON.parse(err.responseText); ErrorTime(1500, err.message, false); return; }); });
Close