コード例 #1
0
ファイル: xmlidentifica.php プロジェクト: edmarmoretti/i3geo
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/xmlidentifica.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 geraXmlIdentifica($perfil, $locaplic);
コード例 #2
0
 function pegaSistemasI()
 {
     error_reporting(0);
     include_once $this->locaplic . "/admin/php/xml.php";
     $xmlsistemas = simplexml_load_string(geraXmlIdentifica(implode(" ", $this->perfil), $this->locaplic));
     $sistemas = array();
     foreach ($xmlsistemas->FUNCAO 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 == "") {
                 $sistemas[] = array("PUBLICADO" => $publicado, "NOME" => $nomesis, "TARGET" => $this->ixml($s, "TARGET"), "ABRIR" => $this->ixml($s, "ABRIR"));
             }
         }
     }
     return $sistemas;
 }