Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WordPress_SexHackMe_Plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SexHackMe
WordPress_SexHackMe_Plugin
Commits
98d086fb
Commit
98d086fb
authored
Jul 14, 2022
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XFrameBypass, Cam4 and Chaturbate support rewritten
parent
c97547f3
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
89 additions
and
101 deletions
+89
-101
xframebypass.php
deprecated/xframebypass.php
+0
-52
class-livecam-site-support.php
includes/class-livecam-site-support.php
+40
-44
class-paid-member-subscriptions-integration.php
includes/class-paid-member-subscriptions-integration.php
+2
-0
class-shortcodes.php
includes/class-shortcodes.php
+26
-0
class-tgm-plugin-activation.php
includes/class-tgm-plugin-activation.php
+4
-0
class-video-players.php
includes/class-video-players.php
+4
-0
functions-crypto.php
includes/functions-crypto.php
+3
-0
functions-utils.php
includes/functions-utils.php
+2
-0
sexhackme.php
sexhackme.php
+8
-5
No files found.
deprecated/xframebypass.php
deleted
100644 → 0
View file @
c97547f3
<?php
/**
* Copyright: 2022 (c)Franco (nextime) Lanza <franco@nexlab.it>
* License: GNU/GPL version 3.0
*
* This file is part of SexHackMe Wordpress Plugin.
*
* SexHackMe Wordpress Plugin is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License,
* or (at your option) any later version.
*
* SexHackMe Wordpress Plugin is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SexHackMe Wordpress Plugin. If not, see <https://www.gnu.org/licenses/>.
*/
namespace
wp_SexHackMe
;
if
(
!
class_exists
(
'XFrameByPass'
))
{
class
XFrameByPass
{
public
function
__construct
()
{
sexhack_log
(
'XFrameByPass() Instanced'
);
add_shortcode
(
'xfbp'
,
array
(
$this
,
'xfbp_shortcode_fn'
));
}
public
function
xfbp_shortcode_fn
(
$attributes
,
$content
)
{
extract
(
shortcode_atts
(
array
(
'url'
=>
'https://www.sexhack.me'
,
),
$attributes
));
return
'<iframe is="x-frame-bypass" src="'
.
$url
.
'"></iframe>'
;
}
}
}
$SEXHACK_SECTION
=
array
(
'class'
=>
'XFrameByPass'
,
'description'
=>
'Bypass iframe limitation with x-frame-bypass'
,
'name'
=>
'sexhackme_xframebypass'
);
?>
deprecated/cam4_chaturbate_live
.php
→
includes/class-livecam-site-support
.php
View file @
98d086fb
...
...
@@ -21,16 +21,14 @@
namespace
wp_SexHackMe
;
if
(
!
class_exists
(
'Cam4ChaturbateLive'
))
{
class
Cam4ChaturbateLive
{
public
function
__construct
()
{
add_shortcode
(
'sexhacklive'
,
array
(
$this
,
'sexhack_live'
));
sexhack_log
(
'Cam4ChaturbateLive() Instanced'
);
}
// Exit if accessed directly
if
(
!
defined
(
'ABSPATH'
)
)
exit
;
public
function
parse_chaturbate
(
$html
)
if
(
!
class_exists
(
'ChaturbateLive'
))
{
class
ChaturbateLive
{
public
static
function
parseSite
(
$html
)
{
$dom
=
new
DOMDocument
;
@
$dom
->
loadHTML
(
$html
);
...
...
@@ -48,8 +46,24 @@ if(!class_exists('Cam4ChaturbateLive')) {
return
FALSE
;
}
public
static
function
getStream
(
$model
)
{
$vurl
=
false
;
//$this->parse_chaturbate(sexhack_getURL('https://chaturbate.com/'.$model.'/'));
if
(
!
$vurl
)
{
return
'<p>Chaturbate '
.
$model
.
"'s cam is OFFLINE</p>"
;
}
return
'<a href="https://chaturbate.com/'
.
$model
.
'/" target="_black" >Chaturbate '
.
$model
.
':</a> '
.
sh_hls_player
(
$vurl
);
}
}
}
public
function
parse_cam4
(
$html
)
if
(
!
class_exists
(
'Cam4Live'
))
{
class
Cam4Live
{
public
static
function
parseSite
(
$html
)
{
$dom
=
new
DOMDocument
;
@
$dom
->
loadHTML
(
$html
);
...
...
@@ -59,51 +73,33 @@ if(!class_exists('Cam4ChaturbateLive')) {
return
FALSE
;
}
public
function
sexhacklive_getChaturbate
(
$model
)
{
$vurl
=
false
;
//$this->parse_chaturbate(sexhack_getURL('https://chaturbate.com/'.$model.'/'));
if
(
!
$vurl
)
{
return
'<p>Chaturbate '
.
$model
.
"'s cam is OFFLINE</p>"
;
}
return
'<a href="https://chaturbate.com/'
.
$model
.
'/" target="_black" >Chaturbate '
.
$model
.
':</a> '
.
SexhackHlsPlayer
::
addPlayer
(
$vurl
);
}
public
function
sexhacklive_getCam4
(
$model
)
{
public
static
function
getStream
(
$model
)
{
$vurl
=
false
;
//$this->parse_cam4(sexhack_getURL('https://www.cam4.com/'.$model));
if
(
!
$vurl
)
{
return
'<p>Cam4 '
.
$model
.
"'s cam is OFFLINE</p>"
;
}
return
'<a href="https://chaturbate.com/'
.
$model
.
'/" target="_blank" >Cam4 '
.
$model
.
":</a> "
.
SexhackHlsPlayer
::
addPlayer
(
$vurl
);
}
public
function
sexhack_live
(
$attributes
,
$content
)
{
extract
(
shortcode_atts
(
array
(
'site'
=>
'chaturbate'
,
'model'
=>
'sexhackme'
,
),
$attributes
));
if
(
$site
==
'chaturbate'
)
{
return
$this
->
sexhacklive_getChaturbate
(
$model
);
}
else
if
(
$site
==
'cam4'
)
{
return
$this
->
sexhacklive_getCam4
(
$model
);
}
return
'<p>CamStreamDL Error: wrong site option '
.
$site
.
'</p> '
;
return
'<a href="https://chaturbate.com/'
.
$model
.
'/" target="_blank" >Cam4 '
.
$model
.
":</a> "
.
sh_hls_player
(
$vurl
);
}
}
}
if
(
!
class_exists
(
'LiveCamSite'
))
{
class
LiveCamSite
{
public
static
function
getCamStream
(
$site
,
$model
)
{
if
(
$site
==
'chaturbate'
)
return
ChaturbateLive
::
getStream
(
$model
);
else
if
(
$site
==
'cam4'
)
return
Cam4Live
::
getStream
(
$model
);
return
false
;
}
}
}
$SEXHACK_SECTION
=
array
(
'class'
=>
'Cam4ChaturbateLive'
,
'description'
=>
'Add shortcodes for retrieve cam4 and/or chaturbate live streaming (it needs HLS player active!!) Shortcuts: [sexhacklive site="chaturbate|cam4" model="modelname"] '
,
'name'
=>
'sexhackme_cam4chaturbate_live'
);
?>
includes/class-paid-member-subscriptions-integration.php
View file @
98d086fb
...
...
@@ -21,6 +21,8 @@
namespace
wp_SexHackMe
;
// Exit if accessed directly
if
(
!
defined
(
'ABSPATH'
)
)
exit
;
class
SexHackPMSHelper
{
...
...
includes/class-shortcodes.php
View file @
98d086fb
...
...
@@ -21,6 +21,10 @@
namespace
wp_SexHackMe
;
// Exit if accessed directly
if
(
!
defined
(
'ABSPATH'
)
)
exit
;
if
(
!
class_exists
(
'SH_Shortcodes'
))
{
class
SH_Shortcodes
{
...
...
@@ -32,6 +36,8 @@ if(!class_exists('SH_Shortcodes')) {
'sexvideo'
=>
__CLASS__
.
'::video_xr'
,
'sh_videoxr'
=>
__CLASS__
.
'::video_xr'
,
'sh_videohls'
=>
__CLASS__
.
'::video_hls'
,
'xfbp'
=>
__CLASS__
.
'::xframe_bypass'
,
'sexhacklive'
=>
__CLASS__
.
'::sexhacklive'
,
);
foreach
(
$shortcodes
as
$shortcode_tag
=>
$shortcode_func
)
{
...
...
@@ -58,6 +64,26 @@ if(!class_exists('SH_Shortcodes')) {
return
"<div class='sexvideo_videojs'>"
.
sh_xr_player
(
$url
,
$posters
)
.
"</div>"
;
}
public
static
function
xframe_bypass
(
$attr
,
$cont
)
{
extract
(
shortcode_atts
(
array
(
'url'
=>
'https://www.sexhack.me'
,
),
$attr
));
return
'<iframe is="x-frame-bypass" src="'
.
$url
.
'"></iframe>'
;
}
public
static
function
sexhacklive
(
$attr
,
$cont
)
{
extract
(
shortcode_atts
(
array
(
'site'
=>
'chaturbate'
,
'model'
=>
'sexhackme'
,
),
$attributes
));
$ret
=
LiveCamSite
::
getCamStream
(
$site
,
$model
);
if
(
$ret
)
return
$ret
;
return
'<p>CamStreamDL Error: wrong site option '
.
$site
.
'</p> '
;
}
}
}
...
...
includes/class-tgm-plugin-activation.php
View file @
98d086fb
...
...
@@ -32,6 +32,10 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
// Exit if accessed directly
if
(
!
defined
(
'ABSPATH'
)
)
exit
;
if
(
!
class_exists
(
'TGM_Plugin_Activation'
)
)
{
/**
...
...
includes/class-video-players.php
View file @
98d086fb
...
...
@@ -21,6 +21,10 @@
namespace
wp_SexHackMe
;
// Exit if accessed directly
if
(
!
defined
(
'ABSPATH'
)
)
exit
;
if
(
!
class_exists
(
'SH_VideoPlayer'
))
{
class
SH_VideoPlayer
{
...
...
includes/functions-crypto.php
View file @
98d086fb
...
...
@@ -21,6 +21,9 @@
namespace
wp_SexHackMe
;
// Exit if accessed directly
if
(
!
defined
(
'ABSPATH'
)
)
exit
;
function
is_valid_eth_address
(
$addr
)
{
...
...
includes/functions-utils.php
View file @
98d086fb
...
...
@@ -21,6 +21,8 @@
namespace
wp_SexHackMe
;
// Exit if accessed directly
if
(
!
defined
(
'ABSPATH'
)
)
exit
;
if
(
!
function_exists
(
'sexhack_log'
)){
...
...
sexhackme.php
View file @
98d086fb
...
...
@@ -207,24 +207,27 @@ if(!class_exists('SexHackMe_Plugin')) {
/* Manage Plugin Dependencies */
if
(
file_exists
(
SH_PLUGIN_DIR_PATH
.
'includes/class-tgm-plugin-activation.php'
)
)
include_once
(
SH_PLUGIN_DIR_PATH
.
'includes/class-tgm-plugin-activation.php'
)
;
include_once
SH_PLUGIN_DIR_PATH
.
'includes/class-tgm-plugin-activation.php'
;
/* Utils */
if
(
file_exists
(
SH_PLUGIN_DIR_PATH
.
'includes/functions-utils.php'
)
)
include_once
(
SH_PLUGIN_DIR_PATH
.
'includes/functions-utils.php'
)
;
include_once
SH_PLUGIN_DIR_PATH
.
'includes/functions-utils.php'
;
/* Cryptocurrencies utils */
if
(
file_exists
(
SH_PLUGIN_DIR_PATH
.
'includes/functions-crypto.php'
)
)
include_once
(
SH_PLUGIN_DIR_PATH
.
'includes/functions-crypto.php'
)
;
include_once
SH_PLUGIN_DIR_PATH
.
'includes/functions-crypto.php'
;
/* Paid Member Subscription utils */
if
(
file_exists
(
SH_PLUGIN_DIR_PATH
.
'includes/class-paid-member-subscriptions-integration.php'
)
)
include_once
(
SH_PLUGIN_DIR_PATH
.
'includes/class-paid-member-subscriptions-integration.php'
)
;
include_once
SH_PLUGIN_DIR_PATH
.
'includes/class-paid-member-subscriptions-integration.php'
;
/* Video Players */
if
(
file_exists
(
SH_PLUGIN_DIR_PATH
.
'includes/class-video-players.php'
)
)
include_once
(
SH_PLUGIN_DIR_PATH
.
'includes/class-video-players.php'
)
;
include_once
SH_PLUGIN_DIR_PATH
.
'includes/class-video-players.php'
;
/* Cam4 and Chaturbate support */
if
(
file_exists
(
SH_PLUGIN_DIR_PATH
.
'includes/class-livecam-site-support.php'
)
)
include_once
SH_PLUGIN_DIR_PATH
.
'includes/class-livecam-site-support.php'
;
/* Shortcodes */
if
(
file_exists
(
SH_PLUGIN_DIR_PATH
.
'includes/class-shortcodes.php'
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment