Пример #1
0
 function exec()
 {
     if ($this->authenticated) {
         $this->setPostFields($this->fields);
         return simplexml_load_string(parent::exec());
     } else {
         return simplexml_load_file('http://' . $this->getUrl() . "?" . http_build_query($this->fields));
     }
 }
Пример #2
0
 public static function destroy()
 {
     self::$conn = NULL;
 }
Пример #3
0
<?php 
//header("Content-Type: text/html; charset=utf-8");
include 'conect.php';
include 'functions.php';
//ATRIBUTOS
$conexion = new Conect();
$fun = new functions();
$IdPais = (int) $_GET['IdPais'];
if ($IdPais != 0) {
    $db = $conexion->conectarse();
    $db->Execute("SET NAMES 'utf8'");
    $r = $db->Execute("SELECT        DocumentoPais.Descripcion, Paises.Descripcion AS Pais\r\nFROM            DocumentoPais INNER JOIN\r\n                         Paises ON DocumentoPais.IdPais = Paises.Id WHERE (DocumentoPais.IdPais =  " . $IdPais . ")");
    echo $variable;
    while (!$r->EOF) {
        echo " <h4>" . $fun->fixEncoding($r->fields[1]) . "</h4>\r\n              <div class=\"tiitlePart\"> \r\n               </div>\r\n               <div class=\"detaPart\">               \r\n               <p>" . $fun->fixEncoding($r->fields[0]) . "</p>               \r\n               </div>";
        $r->MoveNext();
    }
}
Пример #4
0
 public function __destruct()
 {
     Conect::destroy();
 }