RE: [+18][UWAGA] WTP Pro Plugin + Theme Updated ! - mcraft - 07-04-2016 10:43
Można Prosić o reup ?
RE: [+18][UWAGA] WTP Pro Plugin + Theme Updated ! - Vasaki - 08-04-2016 04:18
http://www54.zippyshare.com/v/2m14qnnh/file.html
RE: [+18][UWAGA] WTP Pro Plugin + Theme Updated ! - mcraft - 08-04-2016 12:48
Dzięki serdeczne
A może jesteś wstanie mi pomoc ?
Chodzi o to że zrobiłem to co napisane w pliku Crack_Read_me do kroku 4 ponieważ w kroku nr 5 mam już problem mianowicie :
Parse error: syntax error, unexpected '$table_name' (T_VARIABLE) in /home/mcraf/ftp/BLOGI/girlbook_pl/wp-content/plugins/wp-tube-plugin/wtp_functions.php on line 162
i stoję bo nie wiem czemu taki błąd
RE: [+18][UWAGA] WTP Pro Plugin + Theme Updated ! - Vasaki - 10-04-2016 10:25
Nie znam tego skryptu na pamięć wrzuć go na wklejto.pl i podeślij mi 
Albo wklej tutaj, może ktoś jeszcze będzie wiedział o co chodzi to Ci pomoże
RE: [+18][UWAGA] WTP Pro Plugin + Theme Updated ! - mcraft - 10-04-2016 21:23
Kod:
<?php
$table_prefix = $wpdb->prefix;
$wp_posts = "posts";
$wtpfeeds = "wtp";
$wtpconf = "wtpconfig";
$tabletopost = "$table_prefix$wp_posts";
$tablewtpfeeds = "$table_prefix$wtpfeeds";
$tablewtpconfig = "$table_prefix$wtpconf";
$page=$_SERVER['QUERY_STRING'];
function returnImage($text) {
//$text = html_entity_decode($text, ENT_QUOTES, 'UTF-8');
//echo $text;
$pattern = "/<img[^>]+\>/i";
preg_match($pattern, $text, $matches);
$text = $matches[0];
return $text;
}
function scrapeImage($text) {
$pattern = '/src=[\'"]?([^\'" >]+)[\'" >]/';
preg_match($pattern, $text, $link);
$link = $link[1];
return $link;
}
function shortdesc($string, $length) {
$suffix = '...';
$short_desc = trim(str_replace("\n", ' ', str_replace("\r", ' ', strip_tags(StupefyEntities($string)))));
$desc = trim(substr($short_desc, 0, $length));
$lastchar = substr($desc, -1, 1);
if ($lastchar == '.' || $lastchar == '!' || $lastchar == '?') $suffix='';
$desc .= $suffix;
}
// SmartyPants 1.5.1 changes rolled in May 2004 by Alex Rosenberg, http://monauraljerk.org/smartypants-php/
function StupefyEntities($s = '') {
$inputs = array('–', '—', '‘', '’', '“', '”', '…', '[', ']');
$outputs = array('-', '--', "'", "'", '"', '"', '...', '[', ']');
$s = str_replace($inputs, $outputs, $s);
return $s;
}
function newsk() {
$length = 10;
$characters = "0123456789abcdefghijklmnopqrstuvwxyz";
for ($p = 0; $p < $length; $p++) {
$string .= $characters[mt_rand(0, strlen($characters))];
}
return $string;
}
function fixkeywords($keywords) {
$keywords = preg_replace('/(\'|")/', '', $keywords);
$keywords = trim($keywords);
$keywords = ucwords($keywords);
//$keywords = addslashes($keywords);
$keywords = ereg_replace("[.!#?$%&@*¨]","",$keywords);
$keywords = str_replace(" ", ',', $keywords);
return $keywords;
}
function fixpornkeywords($keywords) {
$array = explode(' ', $keywords);
foreach($array as $k => $v) {
if(strlen($v) <= 3) {
$array[$k]="";
}
else {
$array[$k] = $v;
}
}
$keywords = implode(' ', $array);
$keywords = addslashes($keywords);
$keywords = str_replace("It ", '', $keywords);
$keywords = str_replace("And ", '', $keywords);
$keywords = str_replace("In ", '', $keywords);
$keywords = str_replace("At ", '', $keywords);
$keywords = str_replace("The ", '', $keywords);
$keywords = str_replace("A ", '', $keywords);
$keywords = str_replace("On ", '', $keywords);
$keywords = str_replace("Gets ", '', $keywords);
$keywords = str_replace("Her ", '', $keywords);
$keywords = str_replace("Him ", '', $keywords);
$keywords = str_replace("E ", '', $keywords);
$keywords = str_replace("With ", '', $keywords);
$keywords = str_replace("- ", '', $keywords);
$keywords = str_replace("_ ", '', $keywords);
$keywords = str_replace(" ", ',', $keywords);
$keywords = preg_replace('/(\'|")/', '', $keywords);
return $keywords;
}
function makethumbtitle($thumbtitle) {
$thumbtitle = stripslashes($thumbtitle);
$thumbtitle = trim($thumbtitle);
$thumbtitle = ereg_replace("[.!#?$%&@:*¨]","",$thumbtitle);
$thumbtitle = str_replace("-", "", $thumbtitle);
$thumbtitle = str_replace(" ", "_", $thumbtitle);
$thumbtitle = str_replace(" ", "_", $thumbtitle);
$thumbtitle = str_replace(',', "", $thumbtitle);
$thumbtitle = preg_replace('/(\'|")/', '', $thumbtitle);
return $thumbtitle;
}
if($page=="page=wp-tube-plugin/wtp_transaction_info.php")
{
global $wpdb;
$table_name = $wpdb->prefix . "options";
$myinfo=$wpdb->get_results("SELECT option_value FROM $table_name WHERE option_name = 'admin_email'");
foreach ($myinfo as $wtpsettings) {
$adminemail = $wtpsettings->option_value;
}
$table_name = $wpdb->prefix . "transaction_info";
$my_payment_info = $wpdb->get_results("SELECT tid, paypal_email, paypal_transaction_id FROM $table_name WHERE tid = '1'");
foreach ($my_payment_info as $wtpsettings) {
$wtppaypalemail = $wtpsettings->paypal_email;
$wtppaypaltransactionid = $wtpsettings->paypal_transaction_id;
}
$table_name = $wpdb->prefix . "transaction_info";
if($_POST['wtp_paypal_email']=="")
{
$wtp_paypal_email = $wtppaypalemail;
}
else
{
$wtp_paypal_email = $_POST['wtp_paypal_email'];
}
if($_POST['wtp_paypal_transaction_id']=="")
{
$wtp_paypal_transaction_id = $wtppaypaltransactionid;
}
else
{
$wtp_paypal_transaction_id = $_POST['wtp_paypal_transaction_id'];
}
$wpdb->query("UPDATE $table_name SET paypal_email = '$wtp_paypal_email', paypal_transaction_id = '$wtp_paypal_transaction_id' WHERE tid = '1'");
if($_REQUEST['action'] == "savesettings") {
echo "<font color=green>New wtp Payment Settings saved!</font><br>";
}
/**
$c_auth = curl_init();
$url_auth="http://www.wp-tube-plugin.com/txn.php?paypal_email=$wtp_paypal_email&txnid=$wtp_paypal_transaction_id&domain=$_SERVER[HTTP_HOST]";
curl_setopt($c_auth, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($c_auth, CURLOPT_URL, $url_auth );
curl_setopt($c_auth, CURLOPT_RETURNTRANSFER, 1);
$curlresult_auth = curl_exec($c_auth);
if(trim($curlresult_auth) == "No")
{
$wpdb->query("UPDATE ".$wpdb->prefix."wtpconfig SET site_status = '1' WHERE tid = '1'");
}
else
{
$wpdb->query("UPDATE ".$wpdb->prefix."wtpconfig SET site_status = '0' WHERE tid = '1'");
}
**/
$table_name = $wpdb->prefix . "transaction_info";
$my_payment_info = $wpdb->get_results("SELECT tid, paypal_email, paypal_transaction_id FROM $table_name WHERE tid = '1'");
foreach ($my_payment_info as $wtpsettings) {
$wtp_paypal_email = $wtpsettings->paypal_email;
$wtp_paypal_transaction_id = $wtpsettings->paypal_transaction_id;
}
}
function copy_image_curl($url_source,$saveimageto) {
if ( ini_get( 'allow_url_fopen' ) ) {
@copy($url_source, $saveimageto);
} else {
$my_curl = curl_init($url_source);
$fs_file = fopen($saveimageto, "w");
curl_setopt($my_curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($my_curl, CURLOPT_FILE, $fs_file);
curl_setopt($my_curl, CURLOPT_HEADER, 0);
curl_exec($my_curl);
curl_close($my_curl);
fclose($fs_file);
}
}
function savepost($table_prefix, $mytemplate, $category, $postname, $keywords, $thumbnail, $duration, $description, $postcontent, $poststatus, $title, $commentstatus, $pingstatus, $copyimages, $type, $imglib, $feedhost, $vidcod) {
global $wpdb;
$wtp_savepost = array();
$wtp_savepost['post_title'] = $title;
$wtp_savepost['post_content'] = $description;
$wtp_savepost['post_status'] = $poststatus; // if you want save as draft or pending then please change "publish" to "draft" or "pending"
$wtp_savepost['post_author'] = 1;
$wtp_savepost['comment_status'] = $commentstatus;
$wtp_savepost['ping_status'] = $pingstatus;
// feed object to wp_insert_post
$post_id = wp_insert_post($wtp_savepost);
$guid = get_permalink($post_id);
$copyimages="yes";
if ($copyimages == "yes") {
$thumbtitle = sanitize_title($title);
$thumbtitle = ereg_replace("[.!#?$%&@*¨]","",$thumbtitle);
$day=date("d");
$month=date("m");
$year=date("Y");
$thumbpath = ABSPATH . "wp-content/videoimages/";
$thumbpath1 = ABSPATH . "wp-content/videoimages/$year/";
$thumbpath2 = ABSPATH . "wp-content/videoimages/$year/$month/";
$thumbpath3 = ABSPATH . "wp-content/videoimages/$year/$month/$day/";
if(!file_exists($thumbpath)) {
mkdir($thumbpath, 0777);
}
if(!file_exists($thumbpath1)) {
mkdir($thumbpath1, 0777);
}
if(!file_exists($thumbpath2)) {
mkdir($thumbpath2, 0777);
}
if(!file_exists($thumbpath3)) {
mkdir($thumbpath3, 0777);
}
$thumbname = "".$thumbpath3."".$post_id."_".substr($thumbtitle,0,25).".jpg";
copy_image_curl($thumbnail, $thumbname);
$siteurl = get_bloginfo('url');
$thumbnail;
if (!file_exists($thumbname)){
$videoimage = $thumbnail;
} else {
$videoimage = "".$siteurl."/wp-content/videoimages/$year/$month/$day/".$post_id."_".substr($thumbtitle,0,25).".jpg";
$videoimage;
if ($imglib == "yes") {
$imglocation = "../wp-content/videoimages/$year/$month/$day/".$post_id."_".substr($thumbtitle,0,25).".jpg";
$attachment = array(
'post_title' => $title,
'post_content' => '',
'post_type' => 'attachment',
'post_parent' => $post_id,
'guid' => $videoimage,
'post_mime_type' => 'image/jpeg'
);
$attach_id = wp_insert_attachment( $attachment, $imglocation, $post_id );
$attach_data = wp_generate_attachment_metadata( $attach_id, $imglocation );
wp_update_attachment_metadata( $attach_id, $attach_data );
}
}
} else {
$videoimage = $thumbnail;
}
$usetemplate = $mytemplate;
$usetemplate = str_replace("[videoimage]", $videoimage, $usetemplate);
$usetemplate = str_replace("[videotitle]", $title, $usetemplate);
$usetemplate = str_replace("[posturl]", $guid, $usetemplate);
$usetemplate = str_replace("[videodescription]", $description, $usetemplate);
$usetemplate = str_replace("[hide]", "<!--more-->", $usetemplate);
$usetemplate = str_replace("[videoplayer]", "<!--videoplayer-->".$postcontent."<!--endvideoplayer-->", $usetemplate);
$usetemplate .= "<!--START-wtp-INFO - Do not remove these lines--><!--vidsource:$feedhost--><!--vidcod:$vidcod--><!--vidimage:$videoimage--><!--viddesc:$description--><!--END-wtp-INFO-->";
$usetemplate = addslashes($usetemplate);
$wpdb->query("UPDATE $wpdb->posts SET post_content = '$usetemplate' WHERE ID = '$post_id'");
$getposts = $wpdb->get_results("SELECT ID, post_content, post_title, guid FROM $wpdb->posts WHERE ID = '$post_id' AND post_content LIKE '%".$wtpinfo."%'");
foreach ($getposts as $postinfo) {
$the_post_content = $postinfo->post_content;
$pattern = "/vidimage[^>]+\>/i";
preg_match($pattern, $the_post_content, $matches);
$vidimage = $matches[0];
$vidimage = str_replace("vidimage:", "", $vidimage);
$vidimage = str_replace("-->", "", $vidimage);
$vidimage = str_replace("http://", "", $vidimage);
$videoimage = "http://".$vidimage."";
}
$catarray = array($category);
wp_set_post_categories($post_id, $catarray);
$keywords = explode(',', $keywords);
foreach ($keywords as $thetag) {
wp_add_post_tags($post_id, $thetag);
}
add_post_meta($post_id, 'wtp_video_player', $postcontent, true);
add_post_meta($post_id, 'wtp_thumb_url', $videoimage, true);
add_post_meta($post_id, 'duration', $duration, true);
return $post_id;
}
?>
o to ten kod
tu niżej podaje kod który wymagał edycji wg. instrukcji
Kod:
/**
$c_auth = curl_init();
$url_auth="http://www.wp-tube-plugin.com/txn.php?paypal_email=$wtp_paypal_email&txnid=$wtp_paypal_transaction_id&domain=$_SERVER[HTTP_HOST]";
curl_setopt($c_auth, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($c_auth, CURLOPT_URL, $url_auth );
curl_setopt($c_auth, CURLOPT_RETURNTRANSFER, 1);
$curlresult_auth = curl_exec($c_auth);
if(trim($curlresult_auth) == "No")
{
$wpdb->query("UPDATE ".$wpdb->prefix."wtpconfig SET site_status = '1' WHERE tid = '1'");
}
else
{
$wpdb->query("UPDATE ".$wpdb->prefix."wtpconfig SET site_status = '0' WHERE tid = '1'");
}
**/
A tutaj linijka 162
Kod:
$table_name = $wpdb->prefix . "transaction_info";
RE: [+18][UWAGA] WTP Pro Plugin + Theme Updated ! - dzenus - 11-04-2016 17:30
Może ktoś jeszcze podrzucić sprawdzone pliki szablonu i wtyczki ?
RE: [+18][UWAGA] WTP Pro Plugin + Theme Updated ! - ostry2ostry - 16-04-2016 09:48
Po zainstalowaniu wywala mi takie coś
Your WTP(Pro) License Has Been Terminate
Czy to już nie działą czy trzeba to jakoś aktywować ?
RE: [+18][UWAGA] WTP Pro Plugin + Theme Updated ! - kamillowad - 16-04-2016 12:12
zlecenie:
zapłace osobie która poprowadzi mnie krok po kroku przez zainstalowanie tego
lub wykona to samodzielnie
Priv
RE: [+18][UWAGA] WTP Pro Plugin + Theme Updated ! - dobrydiler - 16-04-2016 16:06
@[kamillowad] Poszło PW.
RE: [+18][UWAGA] WTP Pro Plugin + Theme Updated ! - biger - 15-01-2018 17:54
Można reup motywu?
|