hxp
2025-06-04 f4a514d5ac952110da846636ecbb9de951eaf3d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?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;
// }
?>