|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 60
Members: 0
Total: 60
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Help me again to decode this |
|
Posted: Wed Apr 13, 2011 5:07 pm |
|
|
mamamia |
Regular user |
|
|
Joined: Apr 13, 2011 |
Posts: 5 |
|
|
|
|
|
|
|
|
Last edited by mamamia on Thu Apr 14, 2011 3:11 am; edited 1 time in total |
|
|
|
|
|
|
|
Posted: Wed Apr 13, 2011 5:44 pm |
|
|
johnburn |
Advanced user |
|
|
Joined: Jan 14, 2011 |
Posts: 199 |
Location: Malaysia |
|
|
|
|
|
|
Code: | <?php
include("dbconnect.php");
function disguise_curl($url)
{
$curl = curl_init();
$header[0] = "Accept: text/xml,application/xml,application/xhtml+xml,";
$header[0] .= "text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";
$header[] = "Cache-Control: max-age=0";
$header[] = "Connection: keep-alive";
$header[] = "Keep-Alive: 300";
$header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
$header[] = "Accept-Language: en-us,en;q=0.5";
$header[] = "Pragma: "; // browsers keep this blank.
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_USERAGENT, 'Googlebot/2.1 (+http://www.google.com/bot.html)');
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
curl_setopt($curl, CURLOPT_REFERER, 'http://www.google.com');
curl_setopt($curl, CURLOPT_ENCODING, '');
curl_setopt($curl, CURLOPT_AUTOREFERER, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_TIMEOUT, 1000);
$html = curl_exec($curl);
curl_close($curl);
return $html;
}
// function for showing an admin error message in a table
function errormess2($hiba){
?>
<div id="status_msg">
<h3>The following error(s) were found</h3>
<p><?php echo $hiba;?></p>
</div>
<!-- <table width=80% align=center bgcolor=#CCCCCC cellspacing=1 cellpadding=3>
<tr><td bgcolor=darkred><b><font color=white>A következõ hibá(k) fordultak elõ:</font></b></td></tr>
<tr><td bgcolor=#FFFFFF align=center><?php //echo $hiba;?></td></tr></table>-->
<?php
}
// function for showing an error message in a table
function errormess($hiba){
?>
<div id="status_msg">
<h3>The following error(s) were found</h3>
<p><?php echo $hiba;?></p>
</div>
<?php
}
// function for showing a success message
function successmess($hiba){
?>
<div id="status_msg">
<h3>Your submission has been received successfully</h3>
<p><?php echo $hiba;?></p>
</div>
<?php
}
// shows referral credit earnings from a user
function getearnbylevel($did,$level){
$szint = "refpc".$level;
$var = mysql_query("SELECT $szint FROM setupinfo") or die(mysql_error());
$sor=mysql_fetch_array($var);
$earn = getsurfedcredits($did);
$res = ($earn/100)*$sor[$szint];
return $res;
}
// shows total referral credit earnings by level
function gettotalbylevel($uid,$level){
$o = "referrer".$level;
$var = mysql_query("SELECT username FROM users WHERE $o='$uid' AND status='active'") or die(mysql_error());
$res = 0;
while ($sor=@mysql_fetch_array($var)){
@extract($sor);
$res = $res + getearnbylevel($username,$level);
}
return $res;
}
// shows total referral credit earnings
function gettotalrefcredits($uid){
$i=1; $total = 0;
$var = mysql_query("SELECT rlevels FROM setupinfo") or die(mysql_error());
extract(mysql_fetch_array($var));
while ($i<=$rlevels){
$total = $total + gettotalbylevel($uid,$i);
$i=$i+1;
}
return $total;
}
function showlink($lid){
$var = mysql_query("SELECT * FROM textlinks WHERE linkid=$lid");
@extract(@mysql_fetch_array($var));
$var = mysql_query("UPDATE textlinks SET limpress=limpress+1 WHERE linkid=$lid") or die(mysql_error());
print("<a href=textout.php?url=$lurl target=_blank>$ltitle</a>");
}
function showeverylink($divider){
$var = mysql_query("SELECT linkid FROM textlinks WHERE lexpire>lhits ORDER BY rand()");
while($sor=@mysql_fetch_array($var)){
@extract($sor); showlink($linkid); print($divider);
}
}
function showrandomlink(){
$var = mysql_query("SELECT * FROM textlinks WHERE lexpire>lhits ORDER BY rand()");
$sor = @mysql_fetch_array($var);
$lid = $sor["linkid"]; showlink($lid);
}
function error_mess($errmess){
print("<center><font color=darkred>$errmess</font></center>");
}
function showbanner(){
$sql=mysql_query("SELECT * FROM banner WHERE remain>0 order by rand()");
$sor=@mysql_fetch_array($sql);
$flink=$sor["linkurl"]; $furl=$sor["imageurl"]; $fnum=$sor["banid"];
echo"<a href=out.php?bannerid=$fnum target=blank><img src='$furl' border=0></a>";
mysql_query("UPDATE banner SET remain=remain-1 WHERE banid=$fnum");
}
function total_members(){
$var = mysql_query("SELECT username FROM users WHERE status='active'") or die(mysql_error());
return (mysql_num_rows($var));
}
function total_sites(){
$var = mysql_query("SELECT s_id FROM sites") or die(mysql_error());
return (mysql_num_rows($var));
}
function total_active_sites(){
$var = mysql_query("SELECT s_id FROM sites WHERE s_status='A'") or die(mysql_error());
return (mysql_num_rows($var));
}
function total_banners(){
$var = mysql_query("SELECT * FROM banner") or die(mysql_error());
return (mysql_num_rows($var));
}
function getsurfedcredits($uid){
$var = mysql_query("SELECT earned FROM users WHERE username='$uid'") or die(mysql_error());
extract(mysql_fetch_array($var));
return $earned;
}
function getdirectcredits($uid){
$var = mysql_query("SELECT earned FROM users WHERE username='$uid'") or die(mysql_error());
@extract(@mysql_fetch_array($var));
$var = mysql_query("SELECT s_amount FROM debits WHERE s_user='$uid' AND s_type=0") or die(mysql_error());
while ($sor=@mysql_fetch_array($var)){
@extract($sor);
$earned = $earned-$s_amount;
}
$var = mysql_query("SELECT s_amount FROM credits WHERE s_user='$uid' AND s_type=0") or die(mysql_error());
while ($sor=@mysql_fetch_array($var)){
@extract($sor);
$earned = $earned+$s_amount;
}
return $earned;
}
function isIDexists($tablename,$id){
$query = "SELECT * FROM ".$tablename." WHERE ".$id[0]."=".$id[1];
$result = mysql_query($query);
if($result){
if(mysql_num_rows($result) > 0){
return true;
}
}
return false;
}
function getbanners($uid){
$total = getdirectbanners($uid) + gettotalrefbanners($uid);
return $total;
}
function getcredits($uid){
$total = getdirectcredits($uid) + gettotalrefcredits($uid);
return $total;
}
function pds_footer() {
$content = 'Powered by <a href="http://www.phpdirsubmit.com">PHP Dir Submit</a>';
echo $content;
}
// site variables
$var = mysql_query('SELECT * FROM config') or die(mysql_error());
if (mysql_num_rows($var)>0){
while($sor=mysql_fetch_array($var)){
extract($sor);
$sitetitle = "$title";
$site_url = "$site_url";
$adminmail = "$admin_email";
$signup_bonus = "$s_bonus";
$credit_cost = "$credit_cost";
$admin_paypal = "$pp_email";
$packworth_20 = "$pack_20";
$packworth_50 = "$pack_50";
$packworth_100 = "$pack_100";
$monthly_fee = "$monthly_cost";
$pp_pdtkey="$pdtkey";
$pp_subscribebid="$subscribebid";
$free_unlimited = "$unlimiteduse";
$hp_title = "$hptitle";
$hp_description = "$hpdescription";
$hp_keywords = "$hpkeywords";
}
}
?> |
|
|
|
|
|
|
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
|
|
|
|
|
|