Example #1
0
Desenvolvedor: Edmar Moretti edmar.moretti@gmail.com

Este programa é software livre; você pode redistribuí-lo
e/ou modificá-lo sob os termos da Licença Pública Geral
GNU conforme publicada pela Free Software Foundation;

Este programa é distribuído na expectativa de que seja útil,
porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita
de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA.
Consulte a Licença Pública Geral do GNU para mais detalhes.
Você deve ter recebido uma cópia da Licença Pública Geral do
GNU junto com este programa; se não, escreva para a
Free Software Foundation, Inc., no endereço
59 Temple Street, Suite 330, Boston, MA 02111-1307 USA.

Arquivo:

i3geo/admin/xmlsistemas.php
*/
error_reporting(0);
if (!isset($locaplic)) {
    include dirname(__FILE__) . "/../ms_configura.php";
}
include_once $locaplic . "/admin/safe.php";
include_once $locaplic . "/admin/php/xml.php";
if (!isset($perfil)) {
    $perfil = "";
}
echo header("Content-type: application/xml");
echo geraXmlSistemas($perfil, $locaplic);
Example #2
0
 function pegaSistemas()
 {
     error_reporting(0);
     include_once $this->locaplic . "/admin/php/xml.php";
     $xmlsistemas = simplexml_load_string(geraXmlSistemas(implode(" ", $this->perfil), $this->locaplic));
     $sistemas = array();
     foreach ($xmlsistemas->SISTEMA as $s) {
         $publicado = $this->ixml($s, "PUBLICADO");
         if (strtolower($publicado) != "nao" || $this->editor) {
             $nomesis = $this->ixml($s, "NOMESIS");
             $ps = $this->ixml($s, "PERFIL");
             $perfis = str_replace(",", " ", $ps);
             $perfis = explode(" ", $perfis);
             if ($this->array_in_array($this->perfil, $perfis) || $ps == "") {
                 $funcoes = array();
                 foreach ($s->FUNCAO as $f) {
                     $n = $this->ixml($f, "NOMEFUNCAO");
                     $a = $this->ixml($f, "ABRIR");
                     $w = $this->ixml($f, "JANELAW");
                     $h = $this->ixml($f, "JANELAH");
                     $p = $this->ixml($f, "PERFIL");
                     if ($this->array_in_array($this->perfil, $perfis) || $p == "") {
                         $funcoes[] = array("NOME" => $n, "ABRIR" => $a, "W" => $w, "H" => $h);
                     }
                 }
                 $sistemas[] = array("PUBLICADO" => $publicado, "NOME" => $nomesis, "FUNCOES" => $funcoes);
             }
         }
     }
     return $sistemas;
 }