forked from SimplesIP/pabx-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
804 B
29 lines
804 B
<?php |
|
|
|
if ($isPbxRequest) { |
|
ob_start(); /* para iniciar o buffer de saída. |
|
* Qualquer saída gerada após ob_start() será capturada no buffer. |
|
*/ |
|
} |
|
|
|
$info = array(); |
|
if (VerificaPerfilAcesso($dbcon, $idProg, $info)) { |
|
if ($info !== false) { |
|
include($info["arquivo"]); |
|
if ($info["exit"]) |
|
exit; |
|
} |
|
} |
|
else { |
|
@header("Location: index.php?idProg=56"); |
|
exit; |
|
} |
|
|
|
if ($isPbxRequest) { |
|
$conteudo = ob_get_contents(); /* Use ob_get_contents() para obter o conteúdo capturado. |
|
* Esse conteúdo será inserido no master.tpl |
|
* $smarty->assign('conteudo', $conteudo); |
|
*/ |
|
ob_end_clean(); |
|
} |
|
?>
|
|
|