View file public_html/pub_phpcode.php

File size: 1.33Kb
<html>
<title>Get Php AdCode</title>
<?php include "inc/def.php"; ?>
<?php include "inc/usrchk.php";
if($guest==1) {
header("location:index.php");
} ?>
<?php include "inc/header.php"; ?>
<div class="line">Get PHP Publisher Code</div>
<div class="uright"><b>Copy and paste the PHP code on your site.</b></div>
<div class="uright">
<?php
$get = mysql_query("SELECT * FROM users WHERE user='$user'");
$get = mysql_fetch_array($get);
$id = $get['id'];
$key  = $get['skey'];
?>
<textarea cols='40' rows='10'><?php echo"<?php
"; ?>
## your settings are here. you can edit only this! ##

$pubkey="<?php echo $key; ?>";

$adult="true";

$banner="true";
## please dont edit below this line without permission of TricksCafe.Com | Its agains our copyrights. ##
## If u edit this code we will get automatically informed and u will be put in blacklist !! ##
function advt_req($pubkey,$adult,$banner){
$ip=rawurlencode($_SERVER['REMOTE_ADDR']);
$ua=rawurlencode($_SERVER['HTTP_USER_AGENT']);
$xti = "http://lol.mighost.asia/request.php?key=$pubkey&ip=$ip&ua=$ua&banner=$banner&adult=$adult";
$content=@file_get_contents($xti) or die(error());
print $content;
}

<?php echo"?>"; ?>

<?php echo"<?php
"; ?>
## Add below code wherever you want your ad. shown ##
advt_req($pubkey,$adult,$banner)
<?php echo"?>"; ?>

</textarea>


</div>
<?php include "inc/footer.php"; ?>
</html>