Пример #1
0
<?php

/* Copyright (c) H. Reimers reimers@heye-tammo.de*/
require_once '../preload.php';
//Create Session an load Config
check_login_logout("eingabe");
//Test if Session is valid ($step)
test_session(2);
//print_r($_SESSION);
$lastpage = "picture_rotage.php";
//$nextpage="picture_crop2.php";
$nextpage = "data_input.php";
$filename = $_SESSION["image_temp_filename"];
$settings = $_SESSION["settings"];
//Bild drehen
if (isset($_POST["rotage"])) {
    $_SESSION["rotage"] = $_POST["rotage"];
}
//Bilddaten bestimmen, ist für die größe der CSS-Container wichtig
$settings = $_SESSION["settings"];
$image_height = $settings["show_picture_max_height"];
$image_width = $settings["show_picture_max_width"];
//echo "image_height:$image_height-image_width:$image_width<br>"; //Debug
if ($image_height > $image_width) {
    //hochformat
    $max_xy = $image_height;
    $img_padding = $image_height - $image_width;
} else {
    //querformat
    $max_xy = $image_width;
    $img_padding = ($image_width - $image_height) / 2;
Пример #2
0
<?php

/* Copyright (c) H. Reimers reimers@heye-tammo.de*/
require_once '../preload.php';
//Create Session an load Config
check_login_logout("upload");
echo create_header($_SESSION["settings"]["html_title"], "", "", "", "", "logolisa.svg");
?>
			<h3>LiSA - Upload!</h3>
			<p>
				<form action='select_class.php' method='POST' >
					<input type='submit' value='Bilder einer Klasse hochladen'>
				</form>
			</p>	

<?php 
$body = "<br>IP:" . $_SERVER["REMOTE_ADDR"] . "<br>";
echo create_footer("{$body}");
?>





Пример #3
0
<?php

/* Copyright (c) H. Reimers reimers@heye-tammo.de*/
require_once '../preload.php';
//Create Session an load Config
check_login_logout("admin");
//System auf UTF-8 einstellen
if (function_exists('iconv') && PHP_VERSION_ID < 50600) {
    //Older PHP Version
    iconv_set_encoding("input_encoding", $_SESSION["settings"]["character_encoding"]);
    iconv_set_encoding("internal_encoding", $_SESSION["settings"]["character_encoding"]);
    iconv_set_encoding("output_encoding", $_SESSION["settings"]["character_encoding"]);
} elseif (PHP_VERSION_ID >= 50600) {
    ini_set("default_charset", $_SESSION["settings"]["character_encoding"]);
}
header("Content-Type: text/html; charset=UTF-8");
$error = "";
//Prüfen ob maximal Alter übertragen wurde
$imgDateNewer = null;
if (isset($_POST["imgdate"])) {
    if (strlen($_POST["imgdate"]) >= 6) {
        $date_tmp = explode(".", $_POST["imgdate"]);
        if (sizeof($date_tmp == 3)) {
            $imgDateNewer = mktime(0, 0, 0, $date_tmp[1], $date_tmp[0], $date_tmp[2]);
        }
    }
}
//Daten der Schüler einlesen
ob_start();
getDir("../" . $_SESSION["settings"]["images_matching_lisa"], "MAINDIRECTORY", "lisa");
$student_data = lisaDirToStudentData($_SESSION["lisa"], $_SESSION["settings"]["images_matching_lisa"]);
Пример #4
0
<?php

/* Copyright (c) H. Reimers reimers@heye-tammo.de*/
require_once '../preload.php';
//Create Session an load Config
check_login_logout(false);
//area = false => auto = folder name
header("Content-Type: text/html; charset=UTF-8");
$UserTextAllClasses = "Alle Klassen";
//Erkennung ob eine oder alle Klassen selektiert worden sind. Wird als Platzhalter der Klassenliste hinzugefügt
$zipencoding = isset($_POST["zipencoding"]) ? $_POST["zipencoding"] : "CP437";
//Prüfen ob maximal Alter übertragen wurde
$imgDateNewer = null;
if (isset($_POST["imgfrom"])) {
    if (strlen($_POST["imgfrom"]) >= 6) {
        $date_tmp = explode(".", $_POST["imgfrom"]);
        if (sizeof($date_tmp == 3)) {
            $imgDateNewer = mktime(0, 0, 0, $date_tmp[1], $date_tmp[0], $date_tmp[2]);
        }
    }
}
$imgDateOlder = null;
if (isset($_POST["imguntil"])) {
    if (strlen($_POST["imguntil"]) >= 6) {
        $date_tmp = explode(".", $_POST["imguntil"]);
        if (sizeof($date_tmp == 3)) {
            $imgDateOlder = mktime(0, 0, 0, $date_tmp[1], $date_tmp[0], $date_tmp[2]) + 60 * 60 * 24;
            // mktime(0,0,0,0,1,0); //+1 Tag
        }
    }
}