All pastes #952822 Raw Edit

Someone

public php v1 · immutable
#952822 ·published 2008-03-22 15:41 UTC
rendered paste body
<?phpsession_start();require('config.php');require($conf['site']['incdir'] . 'db.inc.php');require($conf['site']['incdir'] . 'functions.inc.php');if(!isset($_GET['slot']) || !slot_valid($_GET['slot'])) {header("Location: " . $conf['site']['adr']); die();}$slot = sql_escape($_GET['slot']);$slot_link = $conf['site']['adr'] . 'link.php?slot=' . $slot;if(isset($_SESSION['class']) && ($_SESSION['class'] == 'up')) {	// register slot for uploader	if(!slot_exists($slot)) slot_register($slot);		if((sql_get_up($slot) == 0) && (sql_get_down($slot) == 1)) {		$message = upload_form($slot);	}		else {		$message = "<p>u haz been given slot to uploadz, now giev link below (v) to ur frend.</p><br /><a href=\"$slot_link\">$slot_link</a>\n";	}		}else {		if(!slot_exists($slot)) {header("Location: " . $conf['site']['adr']); die();}		// register downloader	$_SESSION['class'] = 'down';		if((sql_get_up($slot) == 1) && (sql_get_down($slot) == 1)) {		//$message = start_download($slot);		header("Location: http://" . $conf['site']['host'] . ":" . $conf['site']['daemonport2'] . "/download/" . $slot); die();	}		else {		sql_change_down($slot); // 0 -> 1		$message = "<p>u r valid downloader, wait for frend to start uploading!</p>\n";	}	}?><?phprequire($conf['site']['incdir'] . 'header.inc.php');?><div id="container">	<div id="content">		<?php echo $message; ?>	</div><!-- content -->	</div><!-- container --><?phprequire($conf['site']['incdir'] . 'footer.inc.php');?>