forked from axiom-team/astrXbian
19 lines
697 B
PHP
19 lines
697 B
PHP
|
<?php
|
||
|
require_once('conf.php');
|
||
|
require_once('functions.php');
|
||
|
|
||
|
// require('php-ipfs-api/vendor/autoload.php');
|
||
|
// use Cloutier\PhpIpfsApi\IPFS;
|
||
|
// $ipfs = new IPFS("astroport", "8181", IPFS_API_PORT);
|
||
|
// echo 'IPFS id : ' . $ipfs->id() . '<br />';
|
||
|
|
||
|
|
||
|
$videosList = array();
|
||
|
exec("/bin/bash -c './get_astrxbian_index.sh'", $videos);
|
||
|
// exec("/bin/bash -c './get_youtube_videos.sh'", $videos);
|
||
|
// echo file_get_contents("http://youtube2.com/ipns/12D3KooWHLLohhFqwTs3Ccego51w1Q2WUQ8JmhSMWtsZnQpMigHY/.12D3KooWHLLohhFqwTs3Ccego51w1Q2WUQ8JmhSMWtsZnQpMigHY/FASTRXBIAN");
|
||
|
|
||
|
// echo shell_exec('whoami'); // Pour savoir quel utilisateur système exécute les scripts PHP
|
||
|
|
||
|
$videos = array_reverse($videos);
|