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
a9baca30
Commit
a9baca30
authored
Jul 27, 2022
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a couple of minor bugs for php 8.1 compatibility
parent
31b5ea65
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
6 deletions
+12
-6
class-admin.php
includes/class-admin.php
+0
-2
class-integrate-google-drive.php
includes/class-integrate-google-drive.php
+2
-1
class-shortcodes.php
includes/class-shortcodes.php
+1
-1
class-storefront.php
includes/class-storefront.php
+6
-1
class-widgets.php
includes/class-widgets.php
+2
-0
video.php
templates/video.php
+1
-1
No files found.
includes/class-admin.php
View file @
a9baca30
...
...
@@ -103,8 +103,6 @@ if(!class_exists('SH_Admin')) {
break
;
}
sexhack_log
(
"UPDATE OPTIONS: "
.
$option
.
" OLD
$old
NEW
$new
"
);
sexhack_log
(
get_option
(
'neew_rewrite_flush'
,
'NOT SET'
));
}
...
...
includes/class-integrate-google-drive.php
View file @
a9baca30
...
...
@@ -131,7 +131,8 @@ if(!class_exists('SH_GDrive')) {
if
(
$gfile
&&
(
$gfile
[
'type'
]
!=
'application/vnd.google-apps.folder'
))
{
$file
=
"https://drive.google.com/open?action=igd-wc-download&id="
.
$gfile
[
'id'
];
$file
=
"https://drive.google.com/uc?export=download&confirm=t&id="
.
$gfile
[
'id'
];
//$file="https://drive.google.com/open?action=igd-wc-download&id=".$gfile['id'];
}
}
...
...
includes/class-shortcodes.php
View file @
a9baca30
...
...
@@ -80,7 +80,7 @@ if(!class_exists('SH_Shortcodes')) {
extract
(
shortcode_atts
(
array
(
'site'
=>
'chaturbate'
,
'model'
=>
'sexhackme'
,
),
$attr
ibutes
));
),
$attr
));
$ret
=
LiveCamSite
::
getCamStream
(
$site
,
$model
);
if
(
$ret
)
return
$ret
;
return
'<p>CamStreamDL Error: wrong site option '
.
$site
.
'</p> '
;
...
...
includes/class-storefront.php
View file @
a9baca30
...
...
@@ -35,7 +35,7 @@ if(!class_exists('SH_StoreFront')) {
remove_action
(
'storefront_header'
,
'storefront_product_search'
,
40
);
// Remove StoreFront credits
add_filter
(
'storefront_credit_link'
,
false
);
add_filter
(
'storefront_credit_link'
,
'wp_SexHackMe\SH_StoreFront::credits'
);
// add footer disclaimer
//add_action('storefront_footer', 'wp_SexHackMe\sh_get_disclaimer')); // XXX I don't like positioning this way. Fix in CSS or sobstitute footer theme file?
...
...
@@ -45,6 +45,11 @@ if(!class_exists('SH_StoreFront')) {
}
public
static
function
credits
(
$cred
)
{
return
''
;
}
}
}
...
...
includes/class-widgets.php
View file @
a9baca30
...
...
@@ -115,6 +115,8 @@ if(!class_exists('SH_GalleryWidget')) {
{
global
$post
;
if
(
!
is_object
(
$post
))
return
;
$pattern
=
get_shortcode_regex
();
if
(
preg_match_all
(
'/'
.
$pattern
.
'/s'
,
$post
->
post_content
,
$matches
)
...
...
templates/video.php
View file @
a9baca30
...
...
@@ -182,7 +182,7 @@ get_header(); ?>
default
:
// public too!
if
(
$hls_public
&&
$video
->
video_type
==
'VR'
)
echo
do_shortcode
(
"[sexvideo url=
\"
"
.
$hls_public
.
"
\"
posters=
\"
"
.
$thumb
.
"
\"
]"
);
else
if
(
$hls_public
)
echo
do_shortcode
(
"[sexhls url=
\"
"
.
$hls
.
"
\"
posters=
\"
"
.
$thumb
.
"
\"
]"
);
else
if
(
$hls_public
)
echo
do_shortcode
(
"[sexhls url=
\"
"
.
$hls
_public
.
"
\"
posters=
\"
"
.
$thumb
.
"
\"
]"
);
else
if
(
$gif_preview
)
echo
'<img class="sexhack_videopreview" src="'
.
$gif_preview
.
'" loading="lazy"></img>'
;
else
echo
'<img class="sexhack_videopreview" src="'
.
$thumb
.
'" loading="lazy"></img>'
;
}
...
...
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