Commit 5a84b4e 1 parent ca809e1 commit 5a84b4e Copy full SHA for 5a84b4e
File tree 1 file changed +23
-1
lines changed
1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 12
12
if ( isset ( $ _SERVER ['REQUEST_URI ' ] ) )
13
13
$ uri = substr ( $ _SERVER ['REQUEST_URI ' ], strlen ( W8IO_ROOT ) );
14
14
else
15
- $ uri = 'tx/eekbucus8sk6qp49ynwysszgmqv3qo8zukjdlhesxrbf ' ;
15
+ $ uri = 'j13/10 ' ;
16
16
17
17
$ js = false ;
18
18
25
25
$ arg3 = $ uri [4 ] ?? false ;
26
26
$ arg4 = $ uri [5 ] ?? false ;
27
27
28
+ if ( $ address === 'j13 ' )
29
+ {
30
+ require_once 'include/RO.php ' ;
31
+ $ RO = new RO ( W8DB );
32
+ $ q = $ RO ->db ->query ( 'SELECT * FROM pts WHERE r2 = 13 ORDER BY r0 DESC LIMIT 100 ' );
33
+ $ n = 0 ;
34
+ $ json = [];
35
+ $ max = 100 ;
36
+ if ( $ f !== false )
37
+ $ max = min ( (int )$ f , $ max );
38
+ foreach ( $ q as $ r )
39
+ {
40
+ $ txkey = $ r [1 ];
41
+ $ txid = $ RO ->getTxIdByTxKey ( $ txkey );
42
+ $ json [] = $ txid ;
43
+ if ( ++$ n >= $ max )
44
+ break ;
45
+ }
46
+
47
+ exit ( json_encode ( $ json ) );
48
+ }
49
+
28
50
if ( empty ( $ address ) )
29
51
$ address = 'GENERATORS ' ;
30
52
You can’t perform that action at this time.
0 commit comments