33+ results for 'php base64_encode repo:devthiagolino/GePro - Sistema' (617 ms)
143 <th colspan="2" > 144 <img src="<?php echo $src;?>" alt="<?php echo $data->camara." - ".$data->numero?>" id="imagen" width="320" height="240" onerror="errorImg(this);"> 145 <br><div id="divmensaje" ></div> 150 <div align="right" style="float:left;" > 151 <a href="downloadFile.php?file=<?php echo $srcMovie;?>" target="ifrm1"><img src="../images/Video-Camera-32x15.png" alt="Descargar Video" title="Descargar Video" border="0" ></a> 152 <?php 153 if ($data->idplantafisica){ 154 ?><a href="mapaGetZonasCamaras.php?idcamara=<?php echo $data->idcamara;?>&idplantafisica=<?php echo $data->idplantafisica;?>&idevento=<?php echo $data->idevento;?>" ><img src="../images/Layers-Map-32x16.png" alt="" title="Ubicación de la cámara"/></a><?php 155 } 161 <div style="width: 40%;float:left;" > 162 <?php echo trim($data->camara ." - ".$data->numero);?> 163 </div> 171 <td> 172 <input type="text" name="pais" size="30" maxlength="100" title="País" value="<?php echo $data->pais;?>" readonly> 173 </td>buscador.control.php https://gitlab.com/talueses/SIPVE | PHP | 170 lines
1<?php 2/*******************************************************************************\ 5 * === SIPve === 6 * Sistema Integrado de Protección con capacidades de Videovigilancia 7 * Control de Acceso y Carnetización para el resguardo físico de instalaciones. 37?> 38<?php 39/** 88 public static function getObjBuscador($value,$description, $table, $arg) { 89 $table = base64_encode($table); 90 $arg = base64_encode($arg); 99 $str .= $ntab." $('#".Controller::setNameMakeCombo($value)."Buscador').fcbkcomplete({\n"; 100 $str .= $ntab." json_url: '../../inicio/view/buscadorData.php?value=".base64_encode($value)."&description=".base64_encode($description)."&tabla=".$table."&arg=".$arg."',\n"; 101 $str .= $ntab." addontab: true,\n";auth.php git://github.com/KumbiaPHP/KumbiaPHP.git | PHP | 332 lines
13 * @copyright Copyright (c) 2005 - 2020 KumbiaPHP Team (http://www.kumbiaphp.com) 14 * @license https://github.com/KumbiaPHP/KumbiaPHP/blob/master/LICENSE New BSD License 15 */ 19 */ 20require_once __DIR__.'/auth_interface.php'; 21 22// Evita problemas al actualizar de la beta2 23if (session_status() !== PHP_SESSION_ACTIVE) { 24 session_start(); 53 /** 54 * Indica si un usuario debe loguearse sólo una vez en el sistema desde 55 * cualquier parte. 209 } 210 $options = array('username' => $_SERVER['PHP_AUTH_USER'], 'password' => $_SERVER['PHP_AUTH_PW']); 211 $this->adapter_object->set_params($options);setPTZcommand.php https://gitlab.com/talueses/SIPVE | PHP | 63 lines
1<?php 2/*******************************************************************************\ 5 * === SIPve === 6 * Sistema Integrado de Protección con capacidades de Videovigilancia 7 * Control de Acceso y Carnetización para el resguardo físico de instalaciones. 37?> 38<?php 39require_once "../controller/monitorremoto.control.php"; // Class CONTROLLER 47 $_REQUEST["comando"] .= "center=".$_REQUEST["x"].",".$_REQUEST["y"]; 48 $_REQUEST["comando"] = base64_encode($_REQUEST["comando"]); 49 ?> 50 <script type="text/javascript" language="javascript"> 51 setTimeout('window.parent.setPTZcommand(\'<?php echo base64_encode("/axis-cgi/com/ptz.cgi?query=position");?>\');',1000); 52 </script> 52 </script> 53 <?php 54}auth.php http://tiendasikah.googlecode.com/svn/trunk/ | PHP | 295 lines
9 * It is also available through the world-wide-web at this URL: 10 * http://wiki.kumbiaphp.com/Licencia 11 * If you did not receive a copy of the license and are unable to 12 * obtain it through the world-wide-web, please send an email 13 * to license@kumbiaphp.com so we can send you a copy immediately. 14 * 18 * @package Auth 19 * @copyright Copyright (c) 2005-2009 Kumbia Team (http://www.kumbiaphp.com) 20 * @license http://wiki.kumbiaphp.com/Licencia New BSD License 24 */ 25require_once CORE_PATH . 'libs/auth/auth_interface.php'; 26class Auth 174 } else { 175 $options = array("username" => $_SERVER['PHP_AUTH_USER'] , "password" => $_SERVER['PHP_AUTH_PW']); 176 $this->adapter_object->set_params($options);_pdf.php https://bitbucket.org/webdev_pe/dmejiasoft.git | PHP | 75 lines
1<?php 2session_start(); 3ob_start(); 4require("../../poo/clases/getConection.php"); 5$cn=new getConection(); 6$sql=utf8_decode(base64_decode($_GET['s'])); 7$cn->ejecutar_sql(base64_encode($sql)); 8?> 18 <table class="page_header"> 19 <tr><td style="width: 100%; text-align: left">Sistema Integral de Control y Procesos de Racaudación de Inmuebles</td></tr> 20 </table> 40 <tbody> 41 <?php $i=1; while($cell=$cn->resultado_sql()){ ?> 42 <tr bgcolor="<?=($i%2==0)?"#ffffff":"#e2e4ff"?>"> 50 </tr> 51 <?php } $cn->limpiar_sql(); $cn->cerrar_sql(); ?> 52 </tbody>02_modificar.php https://bitbucket.org/webdev_pe/dmejiasoft.git | PHP | 317 lines
53 }); 54 <?php if($cel['nivel']=="a"){?>$("#lzona").fadeOut("slow");<?php }?> 55 <?php if($cel['nivel']=="o"){?>$("#luser").fadeOut("slow");<?php }?> 102 if(niv=="a"){ 103 $.post("sicpri/12_usuarios/dao.php",{opt:"u", i:i, nom:nom, ape:ape, tdc:tdc, ndc:ndc, usu:usu, pas:pas, dir:dir, eml:eml, tel:tel, cla:cla, mov:mov, nex:nex, rpc:rpc, rpm:rpm, niv:niv, zon:zon,p1:p1,p2:p2,p3:p3,p4:p4,p5:p5,p6:p6,p7:p7,d1:d1,d2:d2,d3:d3,d4:d4,d5:d5,d6:d6,d7:d7,ds:ds,hs:hs},function(data){ 104 if(data==1){ 105 alert("Usuario modificado correctamente."); 106 $.post("sicpri/12_usuarios/06_historial.php",function(data){ 107 $("#contenido_sicpri").html(data); 221 <div id="checkbox_nivel"> 222 <input type="radio" name="nivel" id="nv_mas" value="a" <?php if($cel['nivel']=="a"){?>checked="checked"<?php }?> /> 223 <label for="nv_mas"><span class="ui-icon ui-icon-person"></span>ADMINISTRADOR</label> 223 <label for="nv_mas"><span class="ui-icon ui-icon-person"></span>ADMINISTRADOR</label> 224 <input type="radio" name="nivel" id="nv_col" value="o" <?php if($cel['nivel']=="o"){?>checked="checked"<?php }?> /> 225 <label for="nv_col"><span class="ui-icon ui-icon-person"></span>OPERADOR</label>consultar_factura_con.php https://bitbucket.org/osmary/gestioninventario.git | PHP | 124 lines
1<?php 2 22 $this->data['ambiente'] = $this->Utilidades_db_mod->ambiente[1]; 23 $this->data['titulo_pagina'] = $this->config->item('nombre_sistema'); 24 $this->data['contenido'] = 'login_view'; 118 $pdfString = $this->pdf->Output("Reporte.pdf", 'S'); 119 $pdfBase64 = base64_encode($pdfString); 120 $this->data['datos_tmp'] = 'data:application/pdf;base64,' . $pdfBase64;detalle.php https://bitbucket.org/webdev_pe/dmejiasoft.git | PHP | 95 lines
1<?php 2require("../../poo/clases/getConection.php"); 17} 18$cn->ejecutar_sql(base64_encode($sql)); 19?> 36 <h1>Detalle de préstamos</h1> 37 <a href="../index.php" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Inicio</a> 38 </div><!-- /header --> 41 <div class="content-primary"> 42 <?php 43 $cn2=new getConection(); 48 } 49 $cn2->ejecutar_sql(base64_encode($sql2)); 50 $cel2=$cn2->resultado_sql(); 55 <!--br/> 56 <a href="prestamo.php?c=<?=$cod?>" data-role='button' data-icon='plus' data-iconpos='top' data-theme='b'>NUEVO CRÉDITO PARA <?=strtoupper($cod)?></a--> 57 <br/>index.php https://bitbucket.org/webdev_pe/dmejiasoft.git | PHP | 63 lines
1<?php 2include("detectmobilebrowser.php"); 3session_start(); 4require_once("poo/clases/getConection.php"); 5if(isset($_COOKIE['sicprii']) && $_COOKIE['sicprii']!=""){ 6 $cn=new getConection(); 7 $sql=base64_encode("select user, pswd from si_usuarios where id_usu=".base64_decode($_COOKIE['sicprii'])); 8 $cn->ejecutar_sql($sql); 34<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 35<title>SIPC - SISTEMA INTEGRAL DE PRÉSTAMOS Y COBRANZAS</title> 36<link href="images/favicon.png" rel="shortcut icon" />actualizar_orden_obrero_con.php https://bitbucket.org/osmary/gestioninventario.git | PHP | 184 lines
1<?php 2 22 $this->data['ambiente'] = $this->Utilidades_db_mod->ambiente[1]; 23 $this->data['titulo_pagina'] = $this->config->item('nombre_sistema'); 24 $this->data['contenido'] = 'login_view'; 177 $pdfString = $this->pdf->Output("Reporte.pdf", 'S'); 178 $pdfBase64 = base64_encode($pdfString); 179 $this->data['datos_tmp'] = 'data:application/pdf;base64,' . $pdfBase64;detalle.php https://bitbucket.org/webdev_pe/dmejiasoft.git | PHP | 81 lines
1<?php 2require("../../poo/clases/getConection.php"); 9cod_cli='".$cod."'"; 10$cn->ejecutar_sql(base64_encode($sql)); 11?> 28 <h1>Detalle de préstamos</h1> 29 <a href="../index.php" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Inicio</a> 30 </div><!-- /header --> 33 <div class="content-primary"> 34 <?php 35 $cn2=new getConection(); 36 $sql2="select concat(nom_cli,' ',ape_cli) as 'nombres' from si_clientes where cod_cli='".$cod."'"; 37 $cn2->ejecutar_sql(base64_encode($sql2)); 38 $cel2=$cn2->resultado_sql(); 42 <br/> 43 <a href="prestamo.php?c=<?=$cod?>" data-role='button' data-icon='plus' data-iconpos='top' data-theme='b'>NUEVO CRÉDITO PARA <?=strtoupper($cod)?></a> 44 <br/>_pdf.php https://bitbucket.org/webdev_pe/dmejiasoft.git | PHP | 89 lines
1<?php 2session_start(); 3ob_start(); 4require("../../poo/clases/getConection.php"); 5$cn=new getConection(); 6$sql=utf8_decode(base64_decode($_GET['s'])); 7$cn->ejecutar_sql(base64_encode($sql)); 8?> 18 <table class="page_header"> 19 <tr><td style="width: 100%; text-align: left">Sistema Integral de Control y Procesos de Racaudación de Inmuebles</td></tr> 20 </table> 43 <tbody> 44 <?php $i=1; while($cell=$cn->resultado_sql()){ ?> 45 <tr bgcolor="<?=($i%2==0)?"#ffffff":"#e2e4ff"?>"> 50 <td align="center"> 51 <?php 52 echo ($cell['residencial']==1)?" R":"";SscHelper.php https://gitlab.com/israel.correa/Expresso.git | PHP | 136 lines
1<?php 2/** 19 /** 20 * Monta a url de chamada do Sistema Segurança Corporativo com os parametros exigidos 21 * @param string $operacao: 28 29 // url do IDP do SSC cadastrado em config.inc.php 30 $urlIDP = Tinebase_Core::getConfig()->global->plugins->ssc->hostIDP; 31 32 // url do IDP do SSC cadastrado em config.inc.php 33 $referer = Tinebase_Core::getConfig()->global->plugins->ssc->referer; 34 // encode base64 exigido pelo SSC 35 $referer = base64_encode( $referer ); 36 77 /** 78 * Monta o XML esperado no Sistema Seguran�a Corporativo (SSC) ao solicitar o login 79 * @return string do xml na base64Authentication.class.php https://bitbucket.org/ronaldobrandini/framework.git | PHP | 169 lines
1<?php 2 8 * 9 * Classe responsavel pelo login do sistema 10 * 42 $this->context->smarty->assign('redirect', \core\lib\Tools::getValue('redirect')); 43 $this->context->smarty->assign('token', base64_encode(md5($cookieData->ipAddress))); 44 $this->context->smarty->assign('bodyClass', 'lock-screen');Usuario.php https://bitbucket.org/efepimenta/snep-3.git | PHP | 206 lines
1<?php 2/** 18 19require_once "Snep/Channel.php"; 20 23 * 24 * Classe que representa usuários do sistema. Geralmente associados a ramais e 25 * agentes. 141 $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv); 142 return base64_encode($output); 143 }FaturaSimples.php https://bitbucket.org/bisa_desenvolvimento/filiadosweb.git | PHP | 277 lines
1<?php 2 106 107 $headers = array('Authorization: Basic '.base64_encode(self::$apiKey.':')); 108 228 /** 229 * Deleta um registro do sistema. 230 *Valida.class.php https://bitbucket.org/sounet/otimizar.git | PHP | 234 lines
1<?php 2/** 107 self::$Data = AesCtr::encrypt(self::$Data, "mi@dia#", 256); 108 self::$Data = base64_encode(self::$Data); 109 return self::$Data; 133 public static function EnviarEmail($assunto,$msg_mail,$emailremetente,$nomeremetente,$emaildestino,$nomedestino){ 134 require_once(__DIR__."/../../class/Library/PHPMailer/class.phpmailer.php"); 135 $mail = new PHPMailer(); 166 public static function Base3($senha){ 167 return base64_encode(base64_encode(base64_encode($senha))); 168 }auth.php https://bitbucket.org/yickson/evento.git | PHP | 307 lines
12 * obtain it through the world-wide-web, please send an email 13 * to license@kumbiaphp.com so we can send you a copy immediately. 14 * 16 * @package Auth 17 * @copyright Copyright (c) 2005 - 2017 Kumbia Team (http://www.kumbiaphp.com) 18 * @license http://wiki.kumbiaphp.com/Licencia New BSD License 22 */ 23require_once __DIR__ .'/auth_interface.php'; 24 49 /** 50 * Indica si un usuario debe loguearse solo una vez en el sistema desde 51 * cualquier parte 186 } else { 187 $options = array("username" => $_SERVER['PHP_AUTH_USER'], "password" => $_SERVER['PHP_AUTH_PW']); 188 $this->adapter_object->set_params($options);enviar.php https://gitlab.com/sotitrox/granada.git | PHP | 122 lines
1<?php 2include('recursos/estatico/librerias/Parsedown.php'); 3require_once('recursos/estatico/librerias/conectorpump.php'); 4require_once('sistema/configuracion.php'); 5$url = $_POST["url"]; 114 $url = $actividad['object']['url']; 115 $mensaje = rawurlencode(base64_encode("<b><a href=".$url.">".$titulo."</a></b> ha sido escrita con éxito.")); 116 header('Location: index.php?mensaje='.$mensaje); 118else { 119 $mensaje = rawurlencode(base64_encode("Error al escribir el mensaje, intente nuevamente, si el problema persiste, contacte al administrador.")); 120 header('Location: index.php?mensaje='.$mensaje);create_cookie.php https://github.com/mayconbordin/CookieHMAC-Example.git | PHP | 62 lines
1<?php 2 3//Inclui as bibliotecas necessárias 4require ('./lib/Browser/Browser.php'); 5require ('./lib/Ip.php'); 11//Poderia ser ainda a senha do usuário. Neste caso a challenge é uma chave criada 12//através do sistema de login CHAP. 13//http://en.wikipedia.org/wiki/Challenge-handshake_authentication_protocol 40//Codifica o cookie 41$cookie = base64_encode($cookie); 42loginUserIntoSystemByCPFOrCNPJAndPassword.php https://gitlab.com/culturagovbr/simec | PHP | 47 lines
1<?php 2 if (isset($_POST['submit'])) { 2 if (isset($_POST['submit'])) { 3 require_once("../connector.php"); 4 require("../debug.php"); 8 try { 9 msgOutput("[SIMEC] LOGAR USUÁRIO NO SISTEMA POR CPF/CNPJ E SENHA"); 10 $SSDWs = new SSDWsAuth($tmpDir, $clientCert, $privateKey, $privateKeyPassword, $trustedCaChain); 20 21 $cpfOrCnpj = base64_encode($_POST['cpfOrCnpj']); 22 $password = base64_encode($_POST['password']); 37?> 38 <h3>[SIMEC] LOGAR USUÁRIO NO SISTEMA POR CPF/CNPJ E SENHA</h3> 39 <form method="POST"> 43 </form> 44<?php 45 }editar.php https://bitbucket.org/mwbs/crud-phpoo.git | PHP | 55 lines
1<?php 2 include $caminho . "view/topo.php"; 7 <h3>Usuários</h3> 8 <p>Área destinada para os usuários cadastrados no sistema</p> 9 </div> 12 <div class="col-sm-3"> 13 <a href="<?php echo $caminho.'HomeController.php?tag=cadastrar'; ?>" class="btn btn-primary text-center"> 14 <span class="glyphicon glyphicon-plus" aria-hidden="true"> </span> 24 25 <form action="<?php echo $caminho . 'controller/UsuarioController.php'; ?>" method="POST"> 26 45 <input type="hidden" name="hash" value="<?php echo sha1('atualizar'); ?>"> 46 <input type="hidden" name="cod" value="<?php echo base64_encode($registro['id']); ?>"> 47 54 55<?php include $caminho . "view/rodape.php"; ?> 56index.php https://bitbucket.org/mwbs/crud-phpoo.git | PHP | 74 lines
6 <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a> 7 <?php echo $mensagem; ?> 8 </div> 18 <div class="col-sm-3"> 19 <a href="<?php echo $caminho . 'controller/UsuarioController.php?tag=' .base64_encode('cadastrar'); ?>" class="btn btn-primary text-center"> 20 <span class="glyphicon glyphicon-plus" aria-hidden="true"> </span> 50 <td> 51 <a class="btn btn-success" href="<?php echo $caminho.'controller/UsuarioController.php?tag='.base64_encode('editar').'&cod='. base64_encode($registro['id']); ?>" role="button"> 52 <span class="glyphicon glyphicon-pencil" aria-hidden="true"> </span> 53 </a> 54 <a class="btn btn-danger" href="<?php echo $caminho.'controller/UsuarioController.php?tag='.base64_encode('deletar').'&cod='. base64_encode($registro['id']); ?>" role="button"> 55 <span class="glyphicon glyphicon-trash" aria-hidden="true"> </span> 73 74<?php include $caminho . "view/rodape.php"; ?> 75index.php https://gitlab.com/ualmtorres/OSM_APIREST.git | PHP | 107 lines
1<?php 2// Instantiate the class responsible for implementing a micro application 20function home() { 21 header('Location:../useOfTheAPI.php'); 22} 26 27include("../connection.php"); 28 37 38include("../connection.php"); 39 50 51include("../connection.php"); 52 71 72// Cerrar el recurso cURL y liberar recursos del sistema 73curl_close($ch);funcoes.php https://bitbucket.org/cristianhaas/sistemaescolar.git | PHP | 273 lines
1<?php 2function crip($msg){ 7 8 return base64_encode(utf8_encode( mcrypt_encrypt( 9 39 //importa o phpmailer 40 require '../classes/PHPMailerAutoload.php'; 41 46 global $error; 47 $mail = new PHPMailer(); 48 $mail->IsSMTP(); // Ativar SMTP 55 $mail->Password = GPWD; 56 $mail->SetFrom(GUSER, "Sistema Escolar"); 57 175*imagesx() e imagesy() respectivamente. para mais informações sobre as funções utilizadas neste 176*script, acesse www.php.net 177*/ClaseBase.php https://gitlab.com/maccevedor/zend.git | PHP | 361 lines
1<?php 2/** 3 * @package co.org.lavado.app 4 * @subpackage sistema 5 */ 6 7require_once 'Auditoria.php'; 8require_once 'Variable.php'; 16 * @package co.org.lavado.app 17 * @subpackage sistema 18 */ 291 if(!empty($this->firma)) 292 $this->firma=base64_encode($this->firma); 293auth.php https://github.com/joanhey/KumbiaPHP.git | PHP | 319 lines
9 * It is also available through the world-wide-web at this URL: 10 * http://wiki.kumbiaphp.com/Licencia 11 * If you did not receive a copy of the license and are unable to 12 * obtain it through the world-wide-web, please send an email 13 * to license@kumbiaphp.com so we can send you a copy immediately. 14 * 16 * @package Auth 17 * @copyright Copyright (c) 2005-2014 Kumbia Team (http://www.kumbiaphp.com) 18 * @license http://wiki.kumbiaphp.com/Licencia New BSD License 22 */ 23require_once CORE_PATH . 'libs/auth/auth_interface.php'; 24 188 } else { 189 $options = array("username" => $_SERVER['PHP_AUTH_USER'], "password" => $_SERVER['PHP_AUTH_PW']); 190 $this->adapter_object->set_params($options);auth.php https://bitbucket.org/govaniso/kumbiaphp.git | PHP | 295 lines
9 * It is also available through the world-wide-web at this URL: 10 * http://wiki.kumbiaphp.com/Licencia 11 * If you did not receive a copy of the license and are unable to 12 * obtain it through the world-wide-web, please send an email 13 * to license@kumbiaphp.com so we can send you a copy immediately. 14 * 18 * @package Auth 19 * @copyright Copyright (c) 2005-2012 Kumbia Team (http://www.kumbiaphp.com) 20 * @license http://wiki.kumbiaphp.com/Licencia New BSD License 24 */ 25require_once CORE_PATH . 'libs/auth/auth_interface.php'; 26class Auth 174 } else { 175 $options = array("username" => $_SERVER['PHP_AUTH_USER'] , "password" => $_SERVER['PHP_AUTH_PW']); 176 $this->adapter_object->set_params($options);__init__.py https://bitbucket.org/Lundberg/djangosaml2 | Python | 338 lines
1# Copyright (C) 2011 Yaco Sistemas (http://www.yaco.es) 2# Copyright (C) 2010 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> 25 26from saml2.s_utils import decode_base64_and_inflate, deflate_and_base64_encode 27 73 self.assertEquals(url.hostname, 'idp.example.com') 74 self.assertEquals(url.path, '/simplesaml/saml2/idp/SSOService.php') 75 81 expected_request = """<?xml version='1.0' encoding='UTF-8'?> 82<samlp:AuthnRequest xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" AssertionConsumerServiceURL="http://sp.example.com/saml2/acs/" Destination="https://idp.example.com/simplesaml/saml2/idp/SSOService.php" ID="XXXXXXXXXXXXXXXXXXXXXX" IssueInstant="2010-01-01T00:00:00Z" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" ProviderName="Test SP" Version="2.0"><saml:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">http://sp.example.com/saml2/metadata/</saml:Issuer><samlp:NameIDPolicy AllowCreate="true" Format="urn:oasis:names:tc:SAML:2.0:nameid-format:transient" /></samlp:AuthnRequest>""" 83 xml = decode_base64_and_inflate(saml_request) 94 self.assertEquals(url.hostname, 'idp.example.com') 95 self.assertEquals(url.path, '/simplesaml/saml2/idp/SSOService.php') 96 111 for i in range(1, 4): 112 link = '/login/?idp=https://idp%d.example.com/simplesaml/saml2/idp/metadata.php&next=/' 113 self.assertContains(response, link % i)update_db.php https://github.com/amoro119/nbneptune.com.git | PHP | 420 lines
21 <p> 22 <?php printf('%s', base64_encode(serialize($_POST)).' (file: update_db.php - '.__LINE__.' - '. $folder_path . WP_CAROUSEL_WP_BLOG_HEADER_FILE .' )'); ?> 23 </p> 183 <div class="error"> 184 <p><?php printf('Action can\'t be performed because a correct action indicator has not been sent: update_db.php:%s', __LINE__); ?></p> 185 </div> 205 <div class="error"> 206 <p><?php printf('File <code>%s</code> can\'t be read!', $folder_path . WP_CAROUSEL_WP_BLOG_HEADER_FILE); ?></p> 207 </div> 211 <div class="updated fade blue-message"> 212 <p>Click <a href="admin.php?page=edit-carousel-<?php echo $carousel_id; ?>&action=<?php echo $action_sended; ?>&in_mode=<?php echo $action_to_perform; ?>">here</a> to save changes.</p> 213 </div> 268 <p> 269 <?php printf('%s', base64_encode(serialize($_POST)).' (file: update_db.php - '.__LINE__.')'); ?> 270 </p>AclPlugin.php https://github.com/mineirim/observer.git | PHP | 138 lines
1<?php 2class My_Plugin_AclPlugin extends Zend_Controller_Plugin_Abstract { 13 $token = base64_decode($token); 14 if (strpos(substr($token, 0, strlen(base64_encode(date('Ymd')))), base64_encode(date('Ymd'))) === 0) { 15 $email = base64_decode(substr($token, strlen(base64_encode(date('Ymd'))))); 28 $request->setParam('format', 'json'); 29 $sistemasModel = new Data_Model_DbTable_Sistemas(); 30 $systoken = $request->getHeader('systoken'); 31 if (!$systoken) { 32 throw new Zend_Exception('O sistema não está cadastrado/autorizado no SISPLAN', 1); 33 34 } else { 35 $sistema = $sistemasModel->fetchRow(['chave=?' => $systoken]); 36 if (count($sistema) === 0) { 38 } else { 39 \Zend_Registry::set('sistema', $sistema); 40 }__init__.py https://bitbucket.org/leifj/djangosaml2 | Python | 418 lines
1# Copyright (C) 2011 Yaco Sistemas (http://www.yaco.es) 2# Copyright (C) 2010 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> 28 29from saml2.s_utils import decode_base64_and_inflate, deflate_and_base64_encode 30 82 self.assertEquals(url.hostname, 'idp.example.com') 83 self.assertEquals(url.path, '/simplesaml/saml2/idp/SSOService.php') 84 90 expected_request = """<?xml version='1.0' encoding='UTF-8'?> 91<samlp:AuthnRequest AssertionConsumerServiceURL="http://sp.example.com/saml2/acs/" Destination="https://idp.example.com/simplesaml/saml2/idp/SSOService.php" ID="XXXXXXXXXXXXXXXXXXXXXX" IssueInstant="2010-01-01T00:00:00Z" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" ProviderName="Test SP" Version="2.0" xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"><saml:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">http://sp.example.com/saml2/metadata/</saml:Issuer><samlp:NameIDPolicy AllowCreate="true" Format="urn:oasis:names:tc:SAML:2.0:nameid-format:transient" /></samlp:AuthnRequest>""" 92 xml = decode_base64_and_inflate(saml_request) 103 self.assertEquals(url.hostname, 'idp.example.com') 104 self.assertEquals(url.path, '/simplesaml/saml2/idp/SSOService.php') 105 120 for i in range(1, 4): 121 link = '/login/?idp=https://idp%d.example.com/simplesaml/saml2/idp/metadata.php&next=/' 122 self.assertContains(response, link % i)