This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function getAvatar() { | |
$email = 'seu@email.com.br'; // e-mail de cadastro para pegar as imagens | |
$default = '_img/sem-imagem-perfil.png'; // imagem alternativa para se não existir | |
$size = 25; // tamanho da imagem | |
$grav_url = "http://www.gravatar.com/avatar/" . md5( strtolower( trim( $email ) ) ) . | |
"?d=" . urlencode( $default ) . "&s=" . $size; | |
return $grav_url; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$Produto = EscapeWork::getClass('Produto'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$xml = '<Credenciais xmlns="http://sofis.com.br/"><codigo>'.self::CODIGO.'</codigo><senha>'.self::SENHA.'</senha></Credenciais>'; | |
$soapAuthVar = new SoapVar($xml, XSD_ANYXML, null, null, null); | |
$soapAuthHeader = new SoapHeader(self::WSDL, 'Credenciais', $soapAuthVar); | |
$this->soap->__setSoapHeaders( array($soapAuthHeader) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /servico/nododoarquivo.asmx HTTP/1.1 | |
Host: sofis.servehttp.com | |
Content-Type: text/xml; charset=utf-8 | |
Content-Length: length | |
SOAPAction: "http://servidor/NomeDaFuncao" | |
<?xml version="1.0" encoding="utf-8"?> | |
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> | |
<soap:Header> | |
<Credenciais xmlns="http://sofis.com.br/"> |
NewerOlder