server/onyx/include/admin/home.php

16 lines
314 B
PHP
Raw Normal View History

2013-11-08 18:15:17 +00:00
<?php
if(!defined('ONYX')) exit;
//TODO handle the path ?
$ca_file = ONYX . '../misc/fic_pki/cacert.crt';
//TODO check permission ?
if (file_exists($ca_file))
{
$data = openssl_x509_parse(file_get_contents(ONYX . '../misc/fic_pki/cacert.crt'));
$template->assign("cert", $data);
}
return "admin/home";