All pastes #610163 Raw Edit

Something

public text v1 · immutable
·published 2007-07-09 09:05 UTC
rendered paste body
<?php
include('inc/clog.php');
include('inc/db.php');
include('inc/head.php');
include('inc/menu.php');
include('inc/right.php');
include('inc/left.php');
$error = 0;
if ($logged == 0){
	header("Location: login.php");
}
else {
	//При ъплоад.
	if ("$_GET[act]" == "Y") {
		if (!($_FILES['uploadedfile']['name'])) { //Ако не е въведена снимка ?
			echo "<center><h3>Моля изберете снимка!</h3></center><br>";
			include('inc/upform.php');
		}
		else {
			$upimg = $_FILES['uploadedfile']['tmp_name'];
			@$upimgget = @getimagesize($upimg);
			if (!($upimgget)) { $error = 1; }
			if ($error ==0) { include('inc/upload.php'); } else {
			echo "<center><h3>Невалидна снимка!</h3></center><br>";
			include('inc/upform.php');
			}
		}

	}
	else {
		include('inc/upform.php');
	}
}
include('inc/foot.php');
?>