1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-27 00:06:14 +01:00
openstamanager/modules/gestione_componenti/init.php
Thomas Zilio 1c9e7b1634 Commit iniziale (r1662)
Migrazione da SourceForge, partendo dal commit 1662 della carrtella trunk/openstamanager.
2017-08-04 16:28:16 +02:00

11 lines
328 B
PHP

<?php
include_once __DIR__.'/../../core.php';
$cmp = \Util\Ini::getList($docroot.'/files/my_impianti/');
if (!empty($id_record) && isset($cmp[$id_record - 1])) {
$records[0]['nomefile'] = $cmp[$id_record - 1][0];
$records[0]['contenuto'] = file_get_contents($docroot.'/files/my_impianti/'.$records[0]['nomefile']);
}