Location: PHPKode > projects > Ikbin > index.php
<?php
/*******************************************************************************
*	IKBIN (http://ikbin.sourceforge.net)
*	Copyright (C) 2007 ikbin project administrators 
*
*************************************************************************************/
	require_once('config.frontend.php');
	$sql=new sqluser;
	$sql->db=new User_db;
	$sql->db->connect();
	$groups=$sql->listgroups();
	
	$p=new page;
	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $GLOBALS['CONF_shortsitename']; ?> | binary search</title>
<meta name="verify-v1" content="xtp14WFF3ryCb4hBR4lInkGbjY3lNdQtGHGX3uFqkiQ=" />
<?php echo $p->phead();?>
<script src="js/cart.js" language="JavaScript" ></script>
<script type="text/javascript">
if(gc('ighome')=='true'){window.location='ig.php';}

function toggleAdvanced(){
	var ad=obj('advanced');
	var ai=obj('aI');

	if(ad.style.display=='none'){
		ad.style.display='block';
		ai.innerHTML='-';
	}else{
		ad.style.display='none';
		ai.innerHTML='+';
	}
}

function obj(i){
return document.getElementById(i);
}
function ps(){
	document.getElementById("sm").innerHTML='Try out the personalized homepage to save searches and see the most recent files in your favorite groups. <br/> (cookies required)';
}

</script>

</head>

<body onload="ps();minCart();">
	
<?php echo $p->fp();?>
	<center>
		<div class="logo">
		<img  src="ikbin.gif" alt="ikbin.info"/>
		</div>
		<br/>
		<div id="sm"></div>
		<br/>
		<div class="search">
		
    <form action="search.php" method="get" name="f">
      <input name="q" type="text" id="q" size=55 />
			<br/>
			Maximum Age:
      		<select name="a" id="a">
        		<option value="1">24 hours</option>
				<option value="7" selected>1 week</option>
				<option value="14">2 weeks</option>
				<option value="21">3 weeks</option>
				<option value="50">50 days</option>
				<option value="70">70 days</option>
				<option value="99">99 days</option>
				<option value="all">*-- all --*</option>
			</select>
			Results per Page:
      		<select name="r" id="r">
        		<option>25</option>
				<option>50</option>
				<option>100</option>
				<option>250</option>
			</select>
      		<input type="submit" name="Submit" value="Search" />
      		<br/>
			<div id="advanced" class="advanced" style="display:none">
				Newsgroup:
		        <select name="g" id="g">
					<option value="">all groups</option>
					<?php foreach($groups as $key => $value){
						echo '<option value="'.$value.'">'.$value.'</option>';
						}
					?>						
				</select>
				<br/>
				Sort by:
				<select name="s" id="s">Date
					<option value="desc_date">date (most recent first)</option>
					<option value="asc_date">date (oldest first)</option>
					<option value="poster">poster</option>
					<option value="subject">subject</option>
				</select>
				<br/>
				Only files with .NFO <input name="n" type="checkbox" id="n" value="1" />
        		<br/>
				Size between <input name="minsize" type="text" id="minsize" size="10" />
        		MB and <input name="maxsize" type="text" id="maxsize" size="10" /> MB
				<br/>
			</div>
		</form>
		<span id="aI">+</span><a href="#" onclick="javascript:toggleAdvanced();return false;">advanced</a>
		</div>
	<br/>
  <div id="about" class="about"> <font color="#FF9933">ikbin<font color="#E27625"></font></font> 
    is an open source PHP/MYSQL binary newsgroup indexer that creates NZB files. 
    <br/> 
		You can try it out here, and then download it at <a href="http://sourceforge.net/projects/ikbin/">sourceforge.net</a>.
	</div>
	<br/>
	<br/>
	<div id="javascript">You are viewing the site with reduced features.  Consider enabling javascript.</div>
	<script type="text/javascript">document.getElementById("javascript").innerHTML='';</script>
	<div id="youshouldusefirefox"></div>
	</center>

</body>
</html>
Return current item: Ikbin