コード例 #1
0
ファイル: webcam.php プロジェクト: BackupTheBerlios/dilps
include_once 'session.inc.php';
// include( 'db.inc.php' );
include 'PhpRequestAndSessionWrapper.class.php';
include 'DilpsBarcodeAndFileChecker.class.php';
include 'AxisImageAcquisition.class.php';
ini_set('display_errors', 1);
ini_set('magic_quotes_runtime', 0);
error_reporting(E_ALL);
// print_r($_REQUEST);
/*
echo ("SESSION-before:");
print_r($_SESSION);
echo ("\n<br>\n");
*/
$rasWrapper = new PhpRequestAndSessionWrapper($_POST, $_GET, $_SESSION);
$barcode = $rasWrapper->getValue('post', 'barcode');
if (empty($barcode)) {
    $barcode = $rasWrapper->getValue('get', 'barcode');
}
// standardmaessig kamera 1 verwenden
$useWebcamNo = 1;
if ($rasWrapper->getValue('post', 'useWebcamNo') === false) {
    if ($rasWrapper->getValue('session', 'useWebcamNo') !== false) {
        $useWebcamNo = $rasWrapper->getValue('session', 'useWebcamNo');
    }
} else {
    if ($rasWrapper->getValue('post', 'useWebcamNo') == 2) {
        $useWebcamNo = 2;
    } else {
        $useWebcamNo = 1;
コード例 #2
0
ファイル: index.php プロジェクト: BackupTheBerlios/dilps
	<tr>
		<td colspan="3" style="height: 40px;">&nbsp;
			
		</td>
	</tr>
	
	<!-- result -->
	<tr>
		<td style="vertical-align: top; text-align: center; width: 100%">
			<table class="query" cellspacing="0" cellpadding="0" style="width: 60%; vertical-align: top; text-align: center;">
				<tr>
					<td colspan="3" style="text-align: center;">
					
					<?php 
if (isset($_POST['saved']) && $_POST['saved'] == 1) {
    $rasWrapper = new PhpRequestAndSessionWrapper($_POST, $_GET, $_SESSION);
    if (!$rasWrapper->getValue('post', 'barcode')) {
        echo "Fehler bei der Übergabe des Barcodes\n";
    } else {
        ?>
								<!-- barcode o.k. -->
								<?php 
        $barcode = $rasWrapper->getValue('post', 'barcode');
        // eventuell noch vorhandene, nicht mehr gewünschte Werte aus der Session entfernen
        $unsetSessionValues = array('type', 'name', 'location', 'institution', 'material', 'technique', 'format', 'literature', 'commentary');
        foreach ($unsetSessionValues as $valueKey) {
            $rasWrapper->unsetValue('session', $valueKey);
            // echo ("\$rasWrapper->unsetValue('session',$valueKey); aufgerufen\n<br>\n");
        }
        ?>
								<!-- session bereinigt -->