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
4c6a24bd
Commit
4c6a24bd
authored
Oct 03, 2023
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed socialpost
parent
455fd32e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
functions-forms-save.php
includes/functions-forms-save.php
+8
-2
wcpms.php
templates/admin/wcpms.php
+1
-1
video.php
templates/video.php
+0
-4
No files found.
includes/functions-forms-save.php
View file @
4c6a24bd
...
...
@@ -367,7 +367,7 @@ function save_sexhack_video_forms( $post_id)
$duration
=
$_POST
[
'video_createDuration_gif'
];
$start
=
$_POST
[
'video_createStart_gif'
];
$fps
=
$_POST
[
'video_createFPS_gif'
];
sh_add_video_job
(
$video
->
id
,
'create_gif'
,
json_encode
(
array
(
'start'
=>
$start
,
'fps'
=>
$fps
,
'duration'
=>
$duration
)));
sh_add_video_job
(
$video
->
id
,
'create_gif'
,
json_encode
(
array
(
'start'
=>
$start
,
'fps'
=>
$fps
,
'duration'
=>
$duration
,
'file'
=>
$selectedv
)));
$video
->
gif
=
false
;
}
else
...
...
@@ -394,7 +394,7 @@ function save_sexhack_video_forms( $post_id)
$duration
=
$_POST
[
'video_createDuration_gif_small'
];
$start
=
$_POST
[
'video_createStart_gif_small'
];
$fps
=
$_POST
[
'video_createFPS_gif_small'
];
sh_add_video_job
(
$video
->
id
,
'create_gif_small'
,
json_encode
(
array
(
'start'
=>
$start
,
'fps'
=>
$fps
,
'duration'
=>
$duration
)));
sh_add_video_job
(
$video
->
id
,
'create_gif_small'
,
json_encode
(
array
(
'start'
=>
$start
,
'fps'
=>
$fps
,
'duration'
=>
$duration
,
'file'
=>
$selectedv
)));
$video
->
gif_small
=
false
;
}
else
...
...
@@ -412,7 +412,13 @@ function save_sexhack_video_forms( $post_id)
else
$video
->
preview
=
false
;
// Socialpost
if
(
!
$admin
)
{
//sh_add_video_job($video->id, 'socialpost_text'); // Not needed. shmproc will give you the text to do if it doesn't exists already
sh_add_video_job
(
$video
->
id
,
'socialpost_media'
,
$selectedv
);
}
// Save the video data in the database.
...
...
templates/admin/wcpms.php
View file @
4c6a24bd
...
...
@@ -25,7 +25,7 @@ $plans = wp_SexHackMe\sh_get_subscription_plans();
?>
<style>
.cozmolabs-banner
{
display
:
none
;
}
.cozmo
s
labs-banner
{
display
:
none
;
}
</style>
<div
class=
"wrap"
>
<?php
do_settings_sections
(
'sexhackme-wcpms-settings'
);
?>
...
...
templates/video.php
View file @
4c6a24bd
...
...
@@ -26,10 +26,6 @@ namespace wp_SexHackMe;
if
(
!
defined
(
'ABSPATH'
)
)
exit
;
sexhack_log
(
"PORCALAPUPAZZA"
);
sexhack_log
(
get_query_var
(
'sh_video'
,
'NONEEEEEEEEEEEEEE!!!'
));
$sh_video
=
get_query_var
(
'sh_video'
,
false
);
if
(
!
$sh_video
)
{
wp_redirect
(
get_permalink
(
get_option
(
'sexhack_video404_page'
,
'0'
)));
...
...
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