select('article', '*', 'type = '.$type); while($DbRow = $Query->fetch_array()) { echo '
'.$DbRow['name'].'
'.$DbRow['text'].'
'; } } function show_mass() { global $database; $Query = $database->select('mass', '*', 'time > now()'); while($DbRow = $Query->fetch_array()) { echo '
'.$DbRow['time'].' '.$DbRow['text'].'
'; } } function show_login() { echo '
'.GIF_PASS.'
'; } function show_upload_mass() { echo UPLOAD_MASS.'
'.GIF_DATE.'
'.GIF_FILE.'
'; } function save_file() { if (array_key_exists('date',$_POST) ) { if (is_uploaded_file($_FILES['file']['tmp_name'])) { echo "Soubor ". $_FILES['file']['name'] ." Byl nahrán"; $tmp_name = $_FILES["file"]["tmp_name"]; move_uploaded_file($tmp_name, "mass/".$_POSS['date']); } else { echo "Possible file upload attack: "; echo "filename '". $_FILES['file']['tmp_name'] . "'."; } } } ?>