/******************************************************************************
* Copyright 1991-2006 by ADIC, Inc. All rights reserved.
* No part of this work may be reproduced or transmitted in any
* form or by any means, electronic or mechanical, including
* photocopying and recording, or by any information storage
* or retrieval system, except as may be expressly permitted by
* the 17 U.S.C. section 101, et. seq., or in writing by
* ADIC, Inc.
*******************************************************************************/
// Don't include the common file so we can use this page even if the user is not logged in.
//include('common_user_inc.htm');
session_start();
$isLoggedIn = false;
if( isset($_SESSION['user']) )
{
$user = $_SESSION['user'];
$isLoggedIn = true;
$descriptions = get_firmware_versions($user);
$product_info = get_product_info($user);
}
error_log(print_r($_SERVER, true));
?>
Library Info
The info page on =$_SERVER["HTTP_HOST"]?> was called from =$_SERVER[REMOTE_ADDR]?>
if( isset($_SERVER[HTTP_REFERER]) )
echo " and refered by ". $_SERVER[HTTP_REFERER]
?>
if( $isLoggedIn == true )
{
?>
|
foreach($descriptions as $description)
{
?>
= $description->component ?> |
= $description->version ?> |
}
?>
|
Serial Number: |
=$product_info->serialnumber?> |
Alternat ID: |
=$product_info->alternateId?> |
Product Version: |
=$product_info->productversion?> |
BSP level: |
=$product_info->bsp_level?> |
Last Update: |
=$product_info->lastupdate?> |
|
}
else
{
echo '
';
echo 'You are not logged into the library
No library data will be shown, only the php info.';
}
?>
phpinfo();
?>