<?php
|
|
#´´½¨ÈÕÆÚ£º2012-5-21 ÏÂÎç3:14:46
|
#×÷Õߣºzhouliang
|
|
include_once '/Common/Logging.php';
|
include_once '/Common/CommFunc.php';
|
include_once '/Common/Socket.php';
|
include_once 'AuthorityInfo.php';
|
include_once '/Common/Socket.php';
|
|
|
if( !GetKeyFromConfig( 'config.ini', 'Popedom', 'Popedom_count', $strPopedomCount, 'Read Popedom_count error!' ) )
|
{
|
exit();
|
}
|
|
$nCount=intval( $strPopedomCount );
|
|
$info=new AuthorityInfo();
|
|
for ( $nIndex=1; $nIndex<=$nCount; $nIndex++)
|
{
|
$strSection='Popedom_'.$nIndex;
|
|
GetKeyFromConfig( 'config.ini', $strSection, 'key', $strKey, "Read $strSection key error!" );
|
GetKeyFromConfig( 'config.ini', $strSection, 'pack_types', $strPackTypes, "Read $strSection pack_types error!" );
|
$info->AddInfo( $strKey, $strPackTypes );
|
}
|
|
//print $info->GetKeyFromValue( '0101' );
|
|
|
|
$original = json_decode( '{"aaa": "bbb","xxx":"asdasdasas"}' , true);
|
|
var_dump( $original )
|
// if( $info->IsExist( '123456', '0101' ) )
|
// {
|
// echo 1;
|
// }
|
// else
|
// {
|
// echo 0;
|
// }
|
?>
|