|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 104
Members: 0
Total: 104
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Is it possible to decrypt these files? |
|
Posted: Mon Feb 21, 2011 10:14 pm |
|
|
FreedomFighter |
Beginner |
|
|
Joined: Feb 21, 2011 |
Posts: 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Tue Feb 22, 2011 2:50 am |
|
|
tsabitah |
Valuable expert |
|
|
Joined: Jul 07, 2010 |
Posts: 328 |
Location: surabaya |
|
|
|
|
|
|
http://pastebin.com/W8jkQXWd
Code: | <?php
// Load PT Theme Options
require_once(PT_ADMIN . '/options-config.php');
// install PT Options for the first time
if ( get_option('pt_site_options') === FALSE && get_option('pt_design_options') === FALSE ) {
$pt_site = array();
foreach ( $pt_site_options as $value ) {
if( isset($value['id']) && isset($value['std']) ) {
$pt_site[] = array( 'id' => $value['id'], 'value' => $value['std'] );
}
}
update_option( 'pt_site_options', $pt_site );
$pt_design = array();
foreach ( $pt_design_options as $value ) {
if( isset($value['id']) && isset($value['std']) ) {
$pt_design[] = array( 'id' => $value['id'], 'value' => $value['std'] );
}
}
update_option( 'pt_design_options', $pt_design );
$pt_integrate = array();
foreach ( $pt_integrate_options as $value ) {
if( isset($value['id']) && isset($value['std']) ) {
$pt_integrate[] = array( 'id' => $value['id'], 'value' => $value['std'] );
}
}
update_option( 'pt_integrate_options', $pt_integrate );
$pt_page = array();
foreach ( $pt_generator_options as $value ) {
if( $value['type'] != 'instantpage' ) {
$pt_page[] = array( 'id' => $value['id'], 'value' => $value['std'] );
}
}
update_option( 'pt_generator_options', $pt_page );
}
if ( get_option('pt_version') === FALSE ) {
$pt_versions = array(
'current' => $pt_version,
'new' => $pt_version,
'update' => false,
);
update_option( 'pt_version', $pt_versions );
}
$pt_version_db = get_option('pt_version');
if ( $pt_version_db['current'] != $pt_version ) {
$pt_versions = array(
'current' => $pt_version,
'new' => $pt_version,
'update' => false,
);
update_option( 'pt_version', $pt_versions );
}
$membersite = false;
$site_options = maybe_unserialize(get_option('pt_site_options'));
$design_options = maybe_unserialize(get_option('pt_design_options'));
$page_options = maybe_unserialize(get_option('pt_generator_options'));
$integrate_options = maybe_unserialize(get_option('pt_integrate_options'));
$pt_all_options = array_merge($site_options, $design_options);
foreach ( $pt_all_options as $value ) {
$$value['id'] = $value['value'];
}
foreach ( $integrate_options as $value ) {
$$value['id'] = $value['value'];
}
if ( file_exists( PT_SKINS . '/' . $pt_theme['skins'] . '/layout.php' ) ) {
require_once( PT_SKINS . '/' . $pt_theme['skins'] . '/layout.php' );
}
// Load PT Classes
require_once(PT_CLASSES . '/API.php');
require_once(PT_CLASSES . '/Fonts.php');
require_once(PT_CLASSES . '/Fields.php');
require_once(PT_CLASSES . '/Options.php');
require_once(PT_CLASSES . '/Seo.php');
require_once(PT_CLASSES . '/Css.php');
require_once(PT_CLASSES . '/Widgets.php');
require_once(PT_CLASSES . '/Cloaker.php');
if ( is_admin() ) {
// Load PT Admin
require_once(PT_ADMIN . '/admin-init.php');
require_once(PT_ADMIN . '/admin-functions.php');
require_once(PT_ADMIN . '/control-panel.php');
}
$option_key = unique_option();
if ( get_option( $option_key ) && get_option( $option_key ) != '' ) {
// Load PT Custom Meta Box
require_once(PT_ADMIN . '/landing-page.php');
require_once(PT_ADMIN . '/meta-options.php');
require_once(PT_ADMIN . '/meta-boxes.php');
// Load PT TinyMce
require_once(PT_SCRIPTS . '/tinymce/pt-tinymce.php');
}
// Load PT Theme Library
require_once(PT_FUNCTIONS . '/theme.php');
require_once(PT_FUNCTIONS . '/comments.php');
if ( get_option( $option_key ) && get_option( $option_key ) != '' ) {
require_once(PT_FUNCTIONS . '/header.php');
}
require_once(PT_FUNCTIONS . '/pagenavi.php');
require_once(PT_FUNCTIONS . '/register.php');
// Load PT Layouts
require_once(PT_LAYOUTS . '/media.php');
require_once(PT_LAYOUTS . '/loops.php');
require_once(PT_LAYOUTS . '/sidebars.php');
require_once(PT_LAYOUTS . '/html.php');
require_once(PT_LAYOUTS . '/minisite.php');
require_once(PT_LAYOUTS . '/membership.php');
require_once(PT_LAYOUTS . '/site.php');
function unique_option() {
$domain = $_SERVER['HTTP_HOST'];
$dom_enc = md5( base64_encode( $domain ) );
$new_option = 'pt_' . $dom_enc;
return $new_option;
}
function pt_create_oto_table()
{
global $wpdb;
$table = $wpdb->prefix . 'profitstheme_oto';
if ($wpdb->get_var("SHOW TABLES LIKE '$table'") != $table) {
$create_table = "CREATE TABLE `$table` (
`oto_id` int(11) NOT NULL auto_increment,
`uv_id` varchar(225) NOT NULL,
`post_id` int(11) NOT NULL default '0',
PRIMARY KEY (`oto_id`)
) COLLATE utf8_general_ci;";
$wpdb->query($create_table);
}
}
function pt_check_requirement()
{
$errormsg = '';
$wp_dir = ABSPATH . '/wp-content/uploads/';
$thumb_dir = TEMPLATEPATH . '/cache/';
$custom_css = TEMPLATEPATH . '/lib/css/custom.css';
if ( is_dir($wp_dir) ) {
if ( !is_writeable( $wp_dir ) ) {
$errormsg .= '<p style="line-height:16px"><span style="color:#cc0000"><strong>' . str_replace('//', '/', $wp_dir) . '</strong> is NOT writeable.</span> To enable file uploading via WP dashboard, please chmod it to <strong>777</strong>.</p>';
}
}
if ( !is_writeable( $thumb_dir ) ) {
$errormsg .= '<p style="line-height:16px"><span style="color:#cc0000"><strong>' . str_replace('//', '/', $thumb_dir) . '</strong> is NOT writeable.</span> To enable dynamic thumbnails and image resizer, please chmod it to <strong>777</strong>.</p>';
}
if ( !is_writeable( $custom_css ) ) {
$errormsg .= '<p style="line-height:16px"><span style="color:#cc0000"><strong>' . str_replace('//', '/', $custom_css) . '</strong> is NOT writeable.</span> To enable Dynamic Layout and Design, please chmod it to <strong>666</strong>.</p>';
}
if ( $errormsg != '' ) {
echo '<div class="error fade"><p><strong>WARNING:</strong></p>' . $errormsg . '<p><a href="#" target="_blank">Click here</a> to learn more about how to chmod a file or directory (hint: You can do this in less than 2 minutes).</div>';
}
}
add_action( 'admin_notices', 'pt_check_requirement');
function pt_activation_notice()
{
global $option_key;
if ( get_option('pt_theme_trial') ) {
echo '<div class="updated fade"><p style="line-height:16px"><strong>You are using a trial version of Profits Theme.</strong> You can go to <a href="http://profitstheme.com/" target="_blank">http://profitstheme.com/</a> to obtain a full license.</p><p>Trial will be expired on <em>' . date(get_option('links_updated_date_format'), get_option('PT_pt_trial')) . '</em></p></div>';
} else if ( get_option('pt_theme_disable') ) {
echo '<div class="error fade"><p style="line-height:16px"><strong>Your Profits Theme\'s license has been disabled because one of the following reasons:</strong></p><p>• You are using an invalid or blocked license,<br />• Your license has expired, or<br />• You asked for a refund.</p><p>You may reactivate Profits Theme by going to <a href="http://profitstheme.com/" target="_blank">http://profitstheme.com/</a> to obtain a new license.</p></div>';
} else {
if ( !get_option( $option_key ) ) {
echo '<div class="error fade"><p style="line-height:16px"><strong>You are using an unregistered version of Profits Theme.</strong> You can activate Profits Theme by <a href="' . get_bloginfo( 'wpurl' ) . '/wp-admin/admin.php?page=pt_register_options">clicking here</a>. If you need a license, please go to <a href="http://profitstheme.com/" target="_blank">http://profitstheme.com/</a>.</p></div>';
}
}
}
add_action( 'admin_notices', 'pt_activation_notice');
function pt_update_notice()
{
$get_version_info = get_option('pt_version');
$output = '';
if ( $get_version_info['update'] == true ) {
$output .= '<div class="updated fade"><p><strong>Profits Theme ' . $get_version_info['new'] . '</strong> is available! <a href="' . admin_url('admin.php?page=pt_update_options') . '">Please update now</a>.</p></div>';
}
echo $output;
}
add_action( 'admin_notices', 'pt_update_notice');
if ( is_admin() && get_option($option_key) !== FALSE ) {
//global $option_key;
$args = array(
'serial' => rtrim(get_option('pt_serial_key')),
'api' => trim(get_option('pt_api_key')),
'domain' => $_SERVER['HTTP_HOST'],
);
$request = new PtApiRequest( 'http://ptapi.getprofitsfast.com/' . trim(get_option('pt_email_address')) . '/validation', 'POST', $args );
$request->setAcceptType('application/json');
$request->execute();
$result = proccesAPI($request->getResponseBody());
if( $result['message'] == 'License Inactive' || $result['message'] == 'License Expired' || $result['message'] == 'License Not Found' ) {
delete_option($option_key);
delete_option('pt_serial_key');
delete_option('pt_api_key');
delete_option('pt_email_address');
delete_option('pt_theme_trial');
add_option('pt_theme_disable', 'true');
}
// check for PT update
$request = new PtApiRequest( 'http://ptapi.getprofitsfast.com/text/update', 'GET' );
$request->setAcceptType('application/json');
$request->execute();
$result = proccesAPI($request->getResponseBody(), 'version');
$get_version = get_option('pt_version');
if ( $get_version['current'] < $result['version'] ) {
// Add new version
$pt_versions = array(
'current' => $get_version['current'],
'new' => $result['version'],
'update' => true,
'url' => $result['url']
);
update_option( 'pt_version', $pt_versions );
}
}
|
|
|
|
|
|
|
|
|
|
Posted: Wed Feb 23, 2011 12:39 am |
|
|
FreedomFighter |
Beginner |
|
|
Joined: Feb 21, 2011 |
Posts: 2 |
|
|
|
|
|
|
|
|
|
|
|
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|