แก้ไขได้แล้วคะ สำหรับ block php-nuke
save โค๊ดด้านล่างนี้เป็นชื่อไฟล์ block-backlinks.php เสร็จแล้วอัพไปไว้ที่ห้อง blocks ของ php-nuke
<?php
if (eregi("block-backlinks.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
ob_start();
include("backlinks.php"); // <--- ไฟล์ที่ต้องการนำเนื้อหามาแสดง!!!
$output = ob_get_contents();
ob_end_clean();
$content .= $output;
?>
save โค๊ด php ที่ได้จากทางเว็บ backlinks.com เป็นชื่อไฟล์ backlinks.php เสร็จแล้วอัพไปไว้ที่ root ของ php-nuke ตัวอย่างด้านล่างนี้โค๊ดของหนูนะคะ
<?php
// ********************************************************************
// Paste this block of code on your web page where you would like text
// links to be displayed. This code will dynamically add and remove text
// links on your web page according to your BackLinks.com settings.
// ********************************************************************
// The following variable defines whether links are opened in a new window
// (1 = Yes, 0 = No)
$OpenInNewWindow = "1";
// ********************************************************************
// Please DO NOT modify anything below
// ********************************************************************
$BLKey = "CP94-HB5Y-6N6X";
$QueryString = "LinkUrl=".urlencode((($_SERVER['HTTPS']=='on')?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
$QueryString .= "&Key=" .urlencode($BLKey);
$QueryString .= "&OpenInNewWindow=" .urlencode($OpenInNewWindow);
if(intval(get_cfg_var('allow_url_fopen')) && function_exists('readfile')) {
@readfile("http://www.backlinks.com/engine.php?".$QueryString);
}
elseif(intval(get_cfg_var('allow_url_fopen')) && function_exists('file')) {
if($content = @file("http://www.backlinks.com/engine.php?".$QueryString))
print @join('', $content);
}
elseif(function_exists('curl_init')) {
$ch = curl_init ("http://www.backlinks.com/engine.php?".$QueryString);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_exec ($ch);
if(curl_error($ch))
print "Error processing request";
curl_close ($ch);
}
else {
print "It appears that your web host has disabled all functions for handling remote pages and as a result the BackLinks software will not function on your web page. Please contact your web host for more information.";
}
?>
เสร็จแล้วสั่งให้ block-backlinks.php แสดงผลหากมีผู้ลงโฆษณาก็จะปรากฎลิ้งขึ้นมาคะรอรับเงินได้เลย
pr เยอะยิ่งได้เงินเยอะ