08-02-2017, 09:23 PM
Hi guys!
Today i have something for adult marketers. It's a plugin called pornoknox and this plugin can import adult videos from few sites.
Features:
publicar.php
license.php
Download:
Today i have something for adult marketers. It's a plugin called pornoknox and this plugin can import adult videos from few sites.
Features:
Quote:Features:
Automatic search for random videos
Two players available to choose from
100% responsive custom players
HTML5 Technology, Bootstrap and VideoJS
Search Fluency
publicar.php
PHP Code:
<?php if(isset($_POST['publicar'])){ $totalvideos = $_POST['total_videos'];
$reproductor = $_POST['selectplayer'];
$publicados = 0;
$servidor = 'servidor='.$_POST['servidor'].' ';
for ($i=1;
$i<=$totalvideos;
$i++) { if (($_POST['check_'.$i])=='on'){$chon = 1;
} else{ $chon=0;
} if ($chon == 1){ $publicados++;
$linkvideo = $_POST['video_url_'.$i];
$videotitulo = $_POST['video_titulo_'.$i];
$videodescripcion = $_POST['video_text_'.$i];
$videothumb = $_POST['imagen_url_'.$i];
$categoria = $_POST['cat_'.$i];
$tags = $_POST['tags_'.$i];
$post_status = 'publish';
if ($reproductor == 'videojs'){ $shortcode = '[pornokoxhtml5js '.$servidor .$_POST['video_player_'.$i].']';
} else{ $shortcode = '[pornokoxhtml5 '.$servidor .$_POST['video_player_'.$i].']';
} $entrada = $shortcode."<br/>".$videodescripcion;
$post_time=current_time('timestamp');
$new_post = array( 'ID' => '', 'post_title' => $videotitulo, 'post_content' => $entrada, 'post_status' => $post_status, 'tags_input' => $tags, 'post_date' => date('Y-m-d H:i:s',$post_time), 'post_category' => array( 'category' => $categoria ) );
$post_id = wp_insert_post($new_post);
$thumb_url = $videothumb;
require_once(ABSPATH . 'wp-admin/includes/file.php');
require_once(ABSPATH . 'wp-admin/includes/media.php');
set_time_limit(300);
if ( ! empty($thumb_url) ) { $tmp = download_url( $thumb_url );
preg_match('/[^\?]+\.(jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/', $thumb_url, $matches);
$file_array['name'] = basename($matches[0]);
$file_array['tmp_name'] = $tmp;
if ( is_wp_error( $tmp ) ) { @unlink($file_array['tmp_name']);
$file_array['tmp_name'] = '';
} $thumbid = media_handle_sideload( $file_array, $post_id, $desc );
if ( is_wp_error($thumbid) ) { @unlink($file_array['tmp_name']);
return $thumbid;
} } set_post_thumbnail( $post_id, $thumbid );
} } include("plugin-parts/head.php");
include("plugin-parts/form-parts/formpublicado.php");
include("/plugin-parts/footer.php");
} ?>
license.php
PHP Code:
<?php require_once( explode( "wp-content" , __FILE__ )[0] . "wp-load.php" );
define('PORNOKOX_PLUGIN_SECRET_KEY', '5955b69ab1b9b2.39089405');
define('PORNOKOX_PLUGIN_LICENSE_SERVER_URL', 'https://pornokox.elbarrunto.com');
define('PORNOKOX_PLUGIN_ITEM_REFERENCE', 'PornoKox Premium');
if (isset($_REQUEST['license_key'])){ if (isset($_POST['opciones']) and& $_POST['opciones'] == 'activar') { $license_key = $_REQUEST['license_key'];
$api_params = array( 'slm_action' => 'slm_activate', 'secret_key' => PORNOKOX_PLUGIN_SECRET_KEY, 'license_key' => $license_key, 'registered_domain' => $_SERVER['SERVER_NAME'], 'item_reference' => urlencode(PORNOKOX_PLUGIN_ITEM_REFERENCE), );
$query = esc_url_raw(add_query_arg($api_params, PORNOKOX_PLUGIN_LICENSE_SERVER_URL));
$response = wp_remote_get($query, array('timeout' => 20, 'sslverify' => false));
if (is_wp_error($response)){ echo '<fieldset><div class="key-success"> >> Unexpected Error! The query returned with an error. << </div></fieldset>';
} $license_data = json_decode(wp_remote_retrieve_body($response));
if($license_data->result == 'success'){ $mensaje = '<fieldset><div class="key-success"> >> '.$license_data->message.' << </div></fieldset><br/>';
echo $mensaje;
update_option('license_key', $license_key);
update_option('license_notice', $mensaje);
} else{ echo '<fieldset><div class="key-success">'.$license_data->message.'</div></fieldset><br/>';
} } if (isset($_POST['opciones']) and& $_POST['opciones'] == 'desactivar') { $license_key = $_REQUEST['license_key'];
$api_params = array( 'slm_action' => 'slm_deactivate', 'secret_key' => PORNOKOX_PLUGIN_SECRET_KEY, 'license_key' => $license_key, 'registered_domain' => $_SERVER['SERVER_NAME'], 'item_reference' => urlencode(PORNOKOX_PLUGIN_ITEM_REFERENCE), );
$query = esc_url_raw(add_query_arg($api_params, PORNOKOX_PLUGIN_LICENSE_SERVER_URL));
$response = wp_remote_get($query, array('timeout' => 20, 'sslverify' => false));
if (is_wp_error($response)){ echo '<fieldset><div class="key-success"> >> Unexpected Error! The query returned with an error. << </div></fieldset>';
} $license_data = json_decode(wp_remote_retrieve_body($response));
if($license_data->result == 'success'){ $mensaje = '<fieldset><div class="key-success"> >> '.$license_data->message.' << </div></fieldset><br/>';
echo $mensaje;
update_option('license_key', '');
update_option('license_notice', '');
} else{ echo '<fieldset><div class="key-success">'.$license_data->message.'</div></fieldset><br/>';
} } } ?>
Download:
Code:
https://pornokox.elbarrunto.com/api/updates/?action=download&slug=PornoKox