list of special blocks is now dynamic via ajax
This commit is contained in:
25
data/getKnownBlocksList.php
Normal file
25
data/getKnownBlocksList.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
// ---
|
||||
// --- La config globale
|
||||
// ---
|
||||
chdir('/opt/TOPISTO/apps');
|
||||
require_once '/opt/TOPISTO/apps/global/inc/config.php';
|
||||
|
||||
// ---
|
||||
// --- External dependances
|
||||
// ---
|
||||
require TOPISTO_PATH.'/ressources/vendor/autoload.php';
|
||||
|
||||
// ---
|
||||
// --- Internal dependances
|
||||
// ---
|
||||
require_once APP_PATH.'/blockchain/inc/block.php';
|
||||
|
||||
header('Content-Type: application/json');
|
||||
|
||||
echo blockchain::getSpecialBlocksJSON();
|
||||
|
||||
die();
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user