-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
45 lines (44 loc) · 944 Bytes
/
index.php
File metadata and controls
45 lines (44 loc) · 944 Bytes
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
<?php
try{
echo 'Try init core: ';
include '../BtcRelax/core.inc';
$vCore=\BtcRelax\Core::getIstance(false,true);
if($vCore instanceof \BtcRelax\Core){
echo "Ok";
echo "<br>Try init AM: ";
$vAM=\BtcRelax\Core::createAM();
if($vAM instanceof \BtcRelax\AM){
echo "Ok. Can <a href=\"vendor/btcrelax/services-api/scripts/login_as.php\">login as</a>";
}
else{
echo "Fail";
}
echo "<br>Try init OM: ";
$vOM=\BtcRelax\Core::createOM();
if($vOM instanceof \BtcRelax\OM){
echo "Ok";
}
else{
echo "Fail";
}
echo "<br>Try init RE: ";
$vRE=\BtcRelax\Core::createRE();
if($vRE instanceof \BtcRelax\RE){
echo "Ok";
}
else{
echo "Fail";
}
echo "<br>Try init PM: ";
$vPM=\BtcRelax\Core::createPM();
if($vPM instanceof \BtcRelax\PM){
echo "Ok";
}
else{
echo "Fail";
}
}
}
catch(Exception$e){
echo \sptintf("Error:%s",$e->getMessage());
}