up
This commit is contained in:
2025-09-14 23:13:06 +07:00
parent ee892854a6
commit 9690ed5634
80 changed files with 8417 additions and 0 deletions

20
SH/english.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
# Kiểm tra số lượng tham số đầu vào
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <courseid> <topicid>"
exit 1
fi
# Gán tham số đầu vào vào biến
COURSEID=$1
TOPICID=$2
# Lấy đường dẫn thư mục hiện tại
CURRENT_DIR=$(pwd)
# Chạy lệnh PHP với các tham số, sử dụng mdl.media từ thư mục hiện tại
/usr/local/lsws/lsphp82/bin/php /home/english.huph.edu.vn/public_html/english/page.php "$CURRENT_DIR/mdl.media" "$COURSEID" "$TOPICID"
# Hiển thị thông báo hoàn tất
echo "Command executed with mdl.media from $CURRENT_DIR, courseid=$COURSEID, and topicid=$TOPICID"