All pastes #1418934 Raw Edit

lynx_std.php

public php v1 · immutable
#1418934 ·published 2009-05-11 06:03 UTC
rendered paste body
<?phpdefine('RAPIDLEECH', 'yes');$maxf=25;require_once("config.php");define('DOWNLOAD_DIR', (substr($download_dir, 0, 6) == "ftp://" ? '' : $download_dir));define('IMAGE_DIR', 'misc/');define('CLASS_DIR', './');define('CONFIG_DIR', './');define('LANG_DIR', 'languages/');define('PHP_DOWNLOADER', 'index.php');$show_del = $deletelink_in_lynx;require_once("other.php");require_once(LANG_DIR."language.$lang.inc.php");if(isset($_GET["smode"])){if($_GET["smode"]=="nodelete"){$safemode = true;}else{$safemode = false;}}else{$safemode = false;}#=====================if ($login===true){if(!isset($_SERVER['PHP_AUTH_USER']) || ($loggeduser = logged_user($users)) === false)	{		header("WWW-Authenticate: Basic realm=\"Rx08\"");		header("HTTP/1.0 401 Unauthorized");		exit("<html>$nn<head>$nn<title>:: Rx08 ::</title>$nn<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1251\"><style type=\"text/css\">$nn<!--$nn@import url(\"".IMAGE_DIR."style_sujancok.css\");$nn-->$nn</style>$nn</head>$nn<body>$nn<h1>Rx08: NuLL</h1>$nn</body>$nn</html>");	}}define('VERSION', "[ TuxiNuX::TimSukses ][ ccpb::kaskus ]");?><!DOCTYPE html public "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>::LINKS(Rx08)::</title><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><link rel="shortcut icon" href="<?php echo IMAGE_DIR.'idmdl.gif'?>" type="image/gif"><SCRIPT LANGUAGE="JavaScript">function hdNfo(name){    var elem = document.getElementById("p"+name);    if (elem.style.display=="") {        elem.style.display="none";    } else {        elem.style.display="";    }    var elem2 = document.getElementById("pb"+name);    if (elem.style.display=="") {        elem2.src = "http://i32.tinypic.com/ejtnk2.jpg";    } else {        elem2.src = "http://i26.tinypic.com/11aaee8.jpg";    }}function nfoUp(){	var el = document.getElementById("totfile").innerHTML;	document.getElementById("totfileUp").innerHTML=el;	el = document.getElementById("totsz").innerHTML;	document.getElementById("totszUp").innerHTML=el;	el = document.getElementById("usage").innerHTML;	document.getElementById("usageUp").innerHTML=el;}function clk(idck){  var cur = document.getElementById(idck).checked;  document.getElementById(idck).checked = !cur;}</script><style type="text/css"><!--@import url("<?php print IMAGE_DIR;?>style_anu.css");--></style></head><body><center><a href="index.php"><img src="<?php echo IMAGE_DIR.'rl_lgo.gif'?>" alt="2.3"></a><?php//SHOW TIME WORK$is_worktime = cek_worktime($workstart, $workend);if(!$is_worktime && $limit_timework){  $limitmsg="";  if(!$is_worktime){    if(!empty($limitmsg)){$limitmsg.="<br>";}$limitmsg.=$gtxt['worktime_alert'];    echo "<div style=\"padding-top:20px;padding-bottom:20px;\"><div style=\"background:#800000;width:400px;font-weight:bold\">$limitmsg</div></div>";  }}else{?><table width="60%" cellpadding="0" cellspacing="0"><tr class="klapptitel"  style="display: none;">	<td class="Black10" align=left id="nfo"><a href="javascript:hdNfo('1')" ><div><img src="http://i32.tinypic.com/ejtnk2.jpg" id="pb1" border="0" alt="-"/>&nbsp;&lt;NFO&gt; </div></a></td>	</tr>	<tr>	<td valign="top" align=center>	<div class="klappo" style="display:" id="p1">	<table>	<tr class="Black10"><td valign="top" align=left><!-- Message UP  !--></td><td valign="top" align="center" id="usageUp"><tbody><noscript><p><br><b><?echo $gtxt['js_disable'];?></b></noscript></tbody></td></tr></table></div></td></tr></table><!--    <table class="tab-content" id="tb1" name="tb" cellspacing="5" width="100%"><tr><td align="center" style="font-size:15px;">	<br> <b>Under Maintenance...!</b> <br><br>Sorry for this inconvenience!<br><br></td></tr></table>--><?php$show_all = false;$_COOKIE["showAll"] = 0;_create_list();if($list){?><script language="javascript">var dFile = new Object();var text = "", thead, tfoot;<?php $total_size = 0; $c = 0; $nn = "\n"; echo "var _dlpath = '".($download_dir != "" ? "$download_dir" : "/")."';$nn$nn"; foreach($list as $key => $file)  {  if(file_exists($file["name"])){	 $c++;     $total_size+=filesize($file["name"]);	 	 echo 'dFile["'.$file["date"].'"] = new Object();'.$nn;	 echo 'dFile["'.$file["date"].'"]["name"] = "'.basename($file["name"]).'"'.$nn;	 echo 'dFile["'.$file["date"].'"]["size"] = "'.$file["size"].'"'.$nn;	 echo 'dFile["'.$file["date"].'"]["delkey"] = "'.str_replace("=","",rotN(base64_encode($file["date"].':'.'apus'),13)).'"'.$nn;	 		}  } // end loop all files  echo 'total_size = "'.$total_size.'";'."$nn";  echo 'c = "'.$c.'";'."$nn";?>      var thead = "<table id='fltbl' style='display: none;'><tr>";   thead+= "<tr class='Black10'><td></td><td id='totfileUp'></td>";   thead+= "<td align='right' id='totszUp'></td><td></td></tr>";   thead+= "<tr bgcolor='#4B433B' valign='bottom' align='center'>";   thead+= "<td id='tdSelAll'><b>&nbsp;<img src='<?php echo IMAGE_DIR.'ldng.gif'?>'>&nbsp;</b></td>";   thead+= "<td align=right><b>&nbsp;<?echo $ltxt['_fname'];?> &nbsp;</b></td>";   thead+= "<td align=left><b>&raquo;&nbsp;|&nbsp;<?echo $gtxt['tabel_sz'];?>&nbsp;</b></td>";   thead+= "<td><b>&nbsp;<?echo $gtxt['tabel_dt'];?></b></td>";   thead+= "<?php if($show_del && !$disable_deleting){?><td><b>&nbsp;<?echo $gtxt['act_del'];?></b></td><?php }?></tr>";      var tfoot = "<tfoot><div id='endlist' style='display: none;'>endx</div>";   tfoot+= "<tr bgcolor='#4B433B' class='Black10'><td><input type=checkbox id='chksAll' onClick='javascript:sAll(this.checked);'></td>";   tfoot+= "<td id='totfile'><?php echo 'Total : <font color=#00FF33><b>'.$c.'</b></font> file(s)';?></td>";   tfoot+= "<td align='right' id='totsz'><?php echo '<font color=#00FF33><b>'.bytesToKbOrMbOrGb($total_size).'</b></font>';?> </td>";   tfoot+= "<td align=right></td><?php  if($show_del && !$disable_deleting){?><td></td><?php }?></tr></tfoot>";         var dtemplate = "<tr id='brs((chkidx))' onMouseDown='clk(\"chkfL-((chkidx))\")' onMouseOver='this.bgColor=\"#FCC283\";' onMouseOut='if(document.getElementById(\"chkfL-((chkidx))\").checked){this.bgColor=\"#B1F4AE\";} else{this.bgColor=\"#D49659\";}' bgcolor='#D49659' style='color: black;cursor:pointer;'>";   dtemplate+= "<td><input type=checkbox id='chkfL-((chkidx))' onClick='clk(\"chkfL-((chkidx))\")'></td>";   dtemplate+= "<td align=right><span id='fN-((chkidx))'>((filename))</span></td>";   dtemplate+= "<td align=left><a id='fL-((chkidx))' href='((dlpath))((filename))' title='((filename))'>";   dtemplate+= "<img src=\'misc/idmdl.gif\'></a>[<b>((filesize))</b>]</td>";   dtemplate+= "<td align=right>&nbsp;&nbsp;((formatdate))</td>";   dtemplate+= "<td align=center><a id='dL-((chkidx))' title='Delete: ((filename))' href='del.php?d=((b64filename))' onclick='opennewwindow(this.id);return false;'> <img src='http://i44.tinypic.com/166d8bd.png'></a></td></tr>";	//  chkidx; filename; dlpath; filesize; formatdate; b64filename;    function trparser()   {     var _tpl = "", i = 0;	 for(var date in dFile)	 {	   pfile = dFile[date];	   _tpl = dtemplate;	   // do replacement string;  10-May-2009, 23:09	   var now = new Date(parseInt(date) * 1000);	   dDate = now.toGMTString("dd-mmm-yy, HH:MM");	   dDate = dDate.split(" ");	   _tpl = _tpl.replace(/\(\(chkidx\)\)/g, i);	   _tpl = _tpl.replace(/\(\(filename\)\)/g, pfile["name"]);	   _tpl = _tpl.replace(/\(\(filesize\)\)/g, pfile["size"]);	   _tpl = _tpl.replace(/\(\(formatdate\)\)/g, dDate[1]+'-'+dDate[2]+'-'+dDate[3].substr(2,2)+', '+dDate[4].substr(0,2)+':'+dDate[4].substr(3,2));	   _tpl = _tpl.replace(/\(\(dlpath\)\)/g, _dlpath);	   _tpl = _tpl.replace(/\(\(b64filename\)\)/g, pfile["delkey"]);	   text+= _tpl;	   i++;	 }   }   </script><?php}?><table id='tblbaru'><tr><td><div id="dtblbaru"></div></td></tr></table><script language="javascript">var dwindow = '<?php echo '_'.substr(md5(time()),0,7).'_'; ?>';var idwindow = new Array();function opennewwindow(id) {	var options = "width=700,height=250,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no";	var start_link = document.getElementById(id);	idwindow[id] = window.open(start_link, dwindow+id, options);	idwindow[id].opener=self;	idwindow[id].focus();}function sAll(niLai){	var dc;	diq=document.getElementById('add_comment').checked=false;	document.getElementById('comment').style.display='none';	for (i=0;i< <?php echo $c;?> ;i++) {	   document.getElementById('chkfL-'+i).checked=niLai;	   dc = document.getElementById('brs'+i);	   if(niLai){dc.bgColor='#B1F4AE';}else{dc.bgColor='#D49659';}	}}function highlight(field) {        field.focus(); field.select(); }function GenTag(){	 var displ=document.getElementById('add_comment').checked?'':'none'; if(!displ){ var chk,buFF="",kd=unescape("%B2"),nC=<?php echo $c;?>,cLnk=0,AdL=<?php echo $auto_del_time; ?>; var ttip="",ttip2="",ttip3="",ttip4="",delink=""; var codeTagOnly = document.getElementById('wterm').checked ? false:true; //true is without Term of Download var DelLink = <?php if($show_del && !$disable_deleting){?>document.getElementById('dellnk').checked ? true:false;<?php }else{echo 'false;';}?> //true is with Delete Link var poslynx, hostpath = document.location.href; poslynx = hostpath.lastIndexOf("/"); hostpath = hostpath.substring(0,poslynx+1);  if(!codeTagOnly){	ttip="\n[SIZE=1]Term of Download:";	if(AdL>0)ttip3="\n-Limit: AutoDelete: [b][color=red]" + AdL +" hour(s)[/color][/b]";	if(DelLink)ttip3+="\n-Delete the file(s) using [i]Delete-Link[/i] after ur download's done";	ttip4="";  }    delink="\n[SPOILER=Delete-Link][SIZE=2][CODE]";    for (i=0;i< nC ;i++) {    chk=document.getElementById('chkfL-'+i).checked;	if((chk)&&(chk!='')) {		buFF=buFF+"\n"+ (document.getElementById('fL-'+i));		if(DelLink){			delink=delink+"\n"+ document.getElementById('dL-'+i);		}		cLnk++;	}  }  delink=delink+"\n[/CODE][/SIZE][/SPOILER]";    if(buFF!=''){	buFF="[CODE]" + (buFF) + "\n[/CODE]";	if(DelLink){buFF=buFF+delink;}	buFF+=ttip;	if(cLnk>1){buFF+=ttip2+ttip3;}	else{buFF+=ttip3;}	buFF+=ttip4;	if(!codeTagOnly){ buFF+="[/SIZE]";}  }}if(buFF!="") { document.getElementById('comment').style.display=displ;   document.getElementById('cmtarea').value=buFF;  } else{document.getElementById('comment').style.display='none'; } }  document.getElementById("tdSelAll").innerHTML='<input type=checkbox id="chksAll" onClick="javascript:sAll(this.checked);">';  document.getElementById("usageUp").innerHTML='&nbsp;';</script><table width="60%" align=center cellpadding="0" cellspacing="0"><tbody id="checknavigat" style="DISPLAY: none;"><tr><td align="center"><label><input type="checkbox" name="wterm" id="wterm" onClick="javascript:GenTag();" checked>&nbsp;<?echo $ltxt['_term'];?> </label>&nbsp;&nbsp;<?php if($show_del && !$disable_deleting){?> <label><input type="checkbox" name="dellnk" id="dellnk" onClick="javascript:GenTag();">&nbsp;<?echo $ltxt['_deletelink'];?></label>&nbsp;&nbsp;<?php}?><input type="checkbox" name="add_comment" id="add_comment" onClick="javascript:GenTag();">&nbsp;<a onClick="javascript:var diq=document.getElementById('add_comment');if(!diq.checked){diq.checked=true;}GenTag();"><u><label for="cmtarea"><?echo $ltxt['_genlink'];?></label></u></a></td></tr><tr id="comment" style="DISPLAY: none;"><td align="center"><textarea id="cmtarea" name="comment" rows="5" style="color:#666; width:90%; font-family:verdana,lucida,arial; font-size: 7pt;" readonly="yes" onFocus='highlight(this);'></textarea><br/></td></tr></tbody><?php}?><tr align=center><td id="usage"><br><?phpif($auto_del_time>0)	{	echo "<span style='color:#239FD9'>".$gtxt['_autodel'].":&nbsp;<b style='color:#00FF33'>".$auto_del_time."</b>&nbsp;hour(s)</span>";	echo "<span style=\"cursor:pointer;\" title=\"".$gtxt['_bypass_autodel'].": &amp;smode=nodelete\">&nbsp;<b class=\"g\"><a href=\"?smode=nodelete\">?</a></b>&nbsp;</span>";	if($safemode)  // Do safe-mode:: inactive auto deletion temporary on access your RL	  {		echo "&nbsp;<blink><small style=\"color:#FFFF00;\">safemode</small></blink>";	  }	  else{		  purge_files($auto_del_time);	  }	}if($lowlimitsize>0)	{	echo "&nbsp;||&nbsp;<span style='color:#239FD9'>".$gtxt['_minfilesize'].":&nbsp;<b style='color:#FF8700'>".$lowlimitsize."</b>&nbsp;MB</span>";	}if($limitsize>0)	{	echo "&nbsp;||&nbsp;<span style='color:#239FD9'>".$gtxt['_maxfilesize'].":&nbsp;<b style='color:#FF8700'>".$limitsize."</b>&nbsp;MB</span>";	}if(!empty($add_ext_5city))	{	echo "&nbsp;||&nbsp;<span style=\"color:#239FD9\">".$gtxt['_fakeext'].":&nbsp;<b><a style=\"color:red\" href=\"javascript:void(0)\" title=\"Auto rename extension with this\">.$add_ext_5city</a></b></span>";	}if($limit_timework)	{	echo "<br><span style=\"color:#239FD9\">".$gtxt['_timework'].":&nbsp;</span><b style=\"color:#FF8700;\">$workstart</b>&nbsp;upto&nbsp;<b style=\"color:#FF8700;\">$workend</b>";	}?><br><?phpif($server_info){if(@file_exists(CLASS_DIR."sinfo.php")) require_once("sinfo.php");}else echo "<hr>";?>  </td></tr><tr><td><div align="center"><?php print VERSION; ?><hr></div></td></tr></table><?phpif($c>$maxf){?>	<script>		nfoUp();	</script><?php}?>	<script type="text/javascript">		trparser();		//var dtabelbaru = document.getElementById("tabelbaru");		var dtabelbaru = document.getElementById("tblbaru").getElementsByTagName("div")[0];		dtabelbaru.innerHTML = thead + text + tfoot;		document.getElementById('fltbl').style.display='';		document.getElementById('checknavigat').style.display='';/*		var ed=diq=document.getElementById('endlist').innerHTML;		document.getElementById('nfo').style.display='none';		function chkEnd(){		  if((ed==undefined)||(ed!='endx')){settimeout("chkEnd();",3000);}		  else {		    document.getElementById('fltbl').style.display='';		  }		}		chkEnd();*/									</script><br/></body></html>