Develop and Download Open Source Software

Browse CVS Repository

Annotation of /xoonips/AL/sotest.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download) (as text)
Mon Dec 6 01:45:50 2004 UTC (19 years, 4 months ago) by aga
Branch: MAIN
CVS Tags: mv_to_sourceforge_20050217, AL_PORTING, MergePnt_20051116, REL20051226, XOONIPS_RC1, REL20060323, tag20060615, tag20070307current, tag20061115, MergePnt_20051220, tag20061130, merge_to_20060605, tag20070307, REL20060213, RELENG_2_0_0a_RELEASE, RELEASE_1_0_0, RELEASE_1_0_1, demo20050128, tag20060622, merge_to_20060411, HEAD
Branch point for: XOONIPS_STABLE_32, XOONIPS_STABLE, XOONIPS_STABLE_3, XOONIPS_STABLE_2
Changes since 1.1: +44 -31 lines
File MIME type: application/x-httpd-php
・コメントつけ.
・開放忘れ修正.

1 aga 1.1 <?php
2    
3     // remove next comment if necessary
4 aga 1.2 $path = '../../../../../../../../home/aga/public_html/AL/VPAL.so';
5     if (dl($path) == FALSE) {
6     echo "hoge";;
7     }
8    
9     // AL???炭?泥
10     $result = vp_initialize_db( "localhost", "", "", "aga_xoops", "x" );
11     if (!result) {
12     echo "huga";
13     }
14     $hoge = NULL;
15     vp_create_session( NULL, 123, &$hoge );
16     var_dump( $hoge );
17    
18     $VPSID = 1486;
19     $result = vp_is_valid_session_id($VPSID);
20     var_dump( $result );
21    
22     $uid = 1;
23     $result = vp_is_moderator( $VPSID, $uid );
24     var_dump( $result );
25    
26     $result = vp_get_last_error_string();
27     var_dump( $result );
28    
29     $criteria = array();
30    
31     $gids = array();
32     $result = vp_get_groups_by_uid( $VPSID, $uid, $criteria, $gids );
33     var_dump( $result );
34     var_dump( $gids );
35     echo "<br>\n";
36    
37    
38     $gids = array( 2, 1487, 1488 );
39     $groups = array();
40     $result = vp_get_groups( $VPSID, $gids, array(), &$groups );
41     var_dump( $result );
42     var_dump( $groups );
43     echo "<br>\n";
44    
45    
46    
47    
48 aga 1.1
49     ?>

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26