100+ results results for 'php base64_encode repo:MightyGorgon/icy_phoenix' (184 ms)
1<?php 2/** 2/** 3 * Fuel is a fast, lightweight, community driven PHP5 framework. 4 * 9 * @copyright 2010 - 2011 Fuel Development Team 10 * @link http://fuelphp.com 11 */ 154 /* 155 * Not yet supported as there is no gzdecode() PHP method as of yet 156 case 'GZIP': 195 /* 196 * Not yet supported as there is no gzdecode() PHP method as of yet 197 case 'GZIP': 289 { 290 $return = base64_encode($return); 291 }pma_gis_visualization.php https://bitbucket.org/pavolve/masterskayaludmila.git | PHP | 464 lines
1<?php 2/** 4 * 5 * @package PhpMyAdmin-GIS 6 */ 228 // base64 encode 229 $encoded = base64_encode($output); 230 return '<img src="data:image/png;base64,'. $encoded .'" />'; 297 298 include_once './libraries/tcpdf/tcpdf.php'; 299default.php https://github.com/projectfork/Projectfork.git | PHP | 266 lines
63 </div> 64 <a class="btn button" id="print_btn" href="javascript:void(0);" onclick="window.open('<?php echo JRoute::_($print_url);?>', 'print', '<?php echo $print_opt; ?>')"> 65 <?php echo JText::_('COM_PROJECTFORK_PRINT'); ?> 206 <a class="btn btn-mini" href="<?php echo JRoute::_(PFmilestonesHelperRoute::getMilestoneRoute($item->slug, $item->project_slug));?>#comments"> 207 <span aria-hidden="true" class="icon-comment"></span> <?php echo $item->comments; ?> <?php echo JText::_('COM_PROJECTFORK_COMMENTS'); ?> 208 </a> 214 <span aria-hidden="true" class="icon-list-view"></span> 215 <?php echo (int) $item->tasklists;?> <?php echo JText::_('JGRID_HEADING_TASKLISTS'); ?> 216 </a> 222 <span aria-hidden="true" class="icon-checkmark"></span> 223 <?php echo (int) $item->tasks;?> <?php echo JText::_('JGRID_HEADING_TASKS'); ?> 224 </a> 230 <span aria-hidden="true" class="icon-flag-2"></span> 231 <?php echo (int) $item->attachments;?> <?php echo JText::_('COM_PROJECTFORK_FIELDSET_ATTACHMENTS'); ?> 232 </a>SessionTest.php https://bitbucket.org/jokusafet/magento2.git | PHP | 242 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 24 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com) 25 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 26 */ 27 28class Mage_Core_Model_Resource_SessionTest extends PHPUnit_Framework_TestCase 29{ 94 * 95 * @param PHPUnit_Framework_MockObject_MockObject $connection 96 */ 133 if ($isDataEncoded) { 134 $sessionData = base64_encode($sessionData); 135 }contact.php https://gitlab.com/billyprice1/cfimagehost-on-openshift | PHP | 179 lines
90 $headers = 'From: ' . $name . '<' . $email . '>' . $ent; 91 $headers .= 'X-Mailer: PHP/' . phpversion() . $ent; 92 $headers .= 'MIME-Version: 1.0' . $ent; 123<?php }else{ // show contact form ?> 124 <p class="teaser"><?php echo _T("site_contact_des",'<a href="faq.php" title="'._T("site_faq_title").'">'._T("site_faq_title").'</a>');?></p> 125 <div id="form"> 125 <div id="form"> 126 <form method="post" action="contact.php"> 127 <?php echo is_errors('name');?> 128 <div class="code_box"> 129 <label for="name"><?php echo _T("site_contact_form_name");?></label> 130 <input name="name" type="text" id="name" class="text_input" size="24" value="<?php echo err_ReSet('name');?>" /> 146 </div> 147 <div class="code_box"><label><?php echo _T("site_contact_form_captcha_img");?></label><a href="#Reload Captcha" onclick="document.getElementById('captchaImg').src = 'img/captcha.img.php?img<?php echo $captcha_light;?>&' + Math.random(); return false" class="creload"><img src="img/captcha.img.php?img<?php echo $captcha_light;?>&<?php echo time();?>" alt="captcha" title="<?php echo _T("site_contact_form_captcha_image_title");?>" class="captcha" id="captchaImg" /></a></div> 148 <div class="code_box"><label></label><input type="submit" class="button" value="<?php echo _T("site_contact_form_send");?>" /></div>DbalSessionHandler.php https://gitlab.com/martinstti/silex-microframework-rest | PHP | 246 lines
1<?php 2 150 { 151 $encoded = base64_encode($data); 152lxportmonitor.php https://github.com/yourhty/hypervm.git | PHP | 526 lines
1<?php 2 212 $server = $global_remoteserver; 213 $var = base64_encode(serialize($rmt)); 214 $data = send_to_some_http_server_monitor($server, "", $port, $var); 243 244 $ch = curl_init("http://$raddress:$port/htmllib/mibin/monitordata.php"); 245 curl_setopt($ch, CURLOPT_POST, true); 462 463 $val = @ file_get_contents("commands.php"); 464 if ($val === "2") {class-waf-transforms.php https://gitlab.com/chernushov881/charity-fund | PHP | 342 lines
1<?php 2/** 79 */ 80 public function base64_encode( $value ) { 81 return base64_encode( $value );sale_note_a5.blade.php https://gitlab.com/laher01/factu40 | PHP | 272 lines
1@php 2 $establishment = $document->establishment; 9 10@endphp 11<html> 21 <div class="company_logo_box"> 22 <img src="data:{{mime_content_type(public_path("storage/uploads/logos/{$company->logo}"))}};base64, {{base64_encode(file_get_contents(public_path("storage/uploads/logos/{$company->logo}")))}}" alt="{{$company->name}}" class="company_logo" style="max-width: 150px;"> 23 </div> 159 @if($row->discounts) 160 @php 161 $total_discount_line = 0; 164 } 165 @endphp 166 {{ number_format($total_discount_line, 2) }} 255 <strong>PAGOS:</strong> </td></tr> 256 @php 257 $payment = 0;quotation_a5.blade.php https://gitlab.com/laher01/factu40 | PHP | 338 lines
1@php 2 $establishment = $document->establishment; 6 $tittle = $document->prefix.'-'.str_pad($document->id, 8, '0', STR_PAD_LEFT); 7@endphp 8<html> 18 <div class="company_logo_box"> 19 <img src="data:{{mime_content_type(public_path("storage/uploads/logos/{$company->logo}"))}};base64, {{base64_encode(file_get_contents(public_path("storage/uploads/logos/{$company->logo}")))}}" alt="{{$company->name}}" class="company_logo" style="max-width: 150px;"> 20 </div> 227 @if($row->discounts) 228 @php 229 $total_discount_line = 0; 232 } 233 @endphp 234 {{ number_format($total_discount_line, 2) }} 323 <strong>PAGOS:</strong> </td></tr> 324 @php 325 $payment = 0;Rsa.php https://bitbucket.org/areeves42/openfisma.git | PHP | 324 lines
1<?php 2/** 25 */ 26// require_once 'Zend/Crypt/Rsa/Key/Private.php'; 27 30 */ 31// require_once 'Zend/Crypt/Rsa/Key/Public.php'; 32 72 if (!extension_loaded('openssl')) { 73 // require_once 'Zend/Crypt/Rsa/Exception.php'; 74 throw new Zend_Crypt_Rsa_Exception('Zend_Crypt_Rsa requires openssl extention to be loaded.'); 141 if ($format == self::BASE64) { 142 return base64_encode($signature); 143 } 178 if ($format == self::BASE64) { 179 return base64_encode($encrypted); 180 }confirmation_email.php https://bitbucket.org/anneivycat/california-tour.git | PHP | 242 lines
1<?php 2 29 fclose($file_handle); 30 $file_content = chunk_split(base64_encode($file_content)); 31 $file_name = basename($attachment);xmlrpc.php https://github.com/tylermorten/kohana-gravatar.git | PHP | 309 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 13 * @copyright (c) 2009-2010 Kohana Team 14 * @license http://kohanaphp.com/license 15 */ 163 // Encode the image resource 164 $encoded_image = base64_encode($resource); 165 236 * Processes an XML-RPC response based on the method and parameters passed 237 * to it. This method uses PHP streams over cURL, which makes it available 238 * to the vast majority of systems.Compass.php https://github.com/vivid-planet/library.git | PHP | 511 lines
1<?php 2require_once dirname(__FILE__) . '/../ExtensionInterface.php'; 189 $mime = $info['mime']; 190 $data = base64_encode(file_get_contents($path)); 191 # todo - do not return encoded if file size > 32kb 209 $path = self::compassResolvePath(array_shift($args)); 210 $data = base64_encode(file_get_contents($path)); 211 $format = array_shift($args);Curl.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 576 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 205 $this->_auth['password'] = $pass; 206 //$val= base64_encode( "$login:$pass" ); 207 //$this->addHeader( "Authorization", "Basic $val" ); 252 * 253 * @param string $uri uri relative to host, ex. "/index.php" 254 */class.php https://gitlab.com/alexprowars/bitrix | PHP | 524 lines
1<?php 2 238 $signer = new Main\Security\Sign\Signer; 239 $this->arResult['$signedParams'] = $signer->sign(base64_encode(serialize($this->arParams)), 'sale.order.payment.change'); 240 }tasks.php https://github.com/projectfork/Projectfork.git | PHP | 195 lines
1<?php 2/** 74 $message = JText::sprintf('COM_PROJECTFORK_ERROR_SAVEPRIORITY_FAILED', $model->getError()); 75 $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list, false), $message, 'error'); 76 return false; 80 $message = JText::_('COM_PROJECTFORK_SUCCESS_TASK_SAVEPRIORITY'); 81 $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list, false), $message); 82 return true; 106 $message = JText::sprintf('COM_PROJECTFORK_ERROR_ADDUSER_FAILED', $model->getError()); 107 $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list, false), $message, 'error'); 108 return false; 112 $message = JText::_('COM_PROJECTFORK_SUCCESS_TASK_ADDUSER'); 113 $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list, false), $message); 114 return true; 138 $message = JText::sprintf('COM_PROJECTFORK_ERROR_ADDUSER_FAILED', $model->getError()); 139 $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list, false), $message, 'error'); 140 return false;Google.php https://github.com/michaelmcandrew/citylink.git | PHP | 274 lines
1<?php 2 35 36require_once 'CRM/Core/Payment.php'; 37 150 151 $cartVal = base64_encode($cart->GetXML()); 152 $signatureVal = base64_encode($cart->CalcHmacSha1($cart->GetXML())); 156 157 require_once 'HTTP/Request.php'; 158 $params = array( 'method' => HTTP_REQUEST_METHOD_POST, 266 static function getArrayFromXML( $xmlData ) { 267 require_once 'Google/library/xml-processing/xmlparser.php'; 268 $xmlParser = new XmlParser($xmlData);sentry.php https://bitbucket.org/wadep_ascensor/cffc-document-manager.git | PHP | 614 lines
1<?php 2/** 392 'password_reset_hash' => $hash, 393 'link' => base64_encode($login_column_value).'/'.$update['password_reset_hash'] 394 ); 517 // create and encode string 518 $cookie_string = base64_encode($login_column.':'.$cookie_pass); 519init_model.php https://github.com/ibnoe/Microweber.git | PHP | 404 lines
1<?php 2 6//l setcookie ( string $name [, string $value [, int $expire=0 [, string $path [, string $domain [, bool $secure=false [, bool $httponly=false ]]]]]] ) 7//setcookie ( 'fckEditor_filesurl', base64_encode ( $media_url ), time () + 36000, '/' ); 8$media_url = base_url (); 12/*if ($_COOKIE ['fckEditor_filespath'] == false) { 13 setcookie ( 'fckEditor_filespath', base64_encode ( MEDIAFILES ), time () + 36000, '/' ); 14} 15if ($_COOKIE ['fckEditor_filesurl'] == false) { 16 setcookie ( 'fckEditor_filesurl', base64_encode ( $media_url ), time () + 36000, '/' ); 17} 69 70 $cache_file = $dir2.'index.php'; 71 if(is_file($cache_file) == true){ 79 $handle = (@opendir ( $dir )); 80 //require_once ($dir . 'options.php'); 81 while ( false !== ($file = readdir ( $handle )) ) {mail.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 406 lines
1<?php 2class Mail { 92 $header .= 'Date: ' . date('D, d M Y H:i:s O') . $this->newline; 93 $header .= 'From: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline; 94 $header .= 'Reply-To: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline; 95 $header .= 'Return-Path: ' . $this->from . $this->newline; 96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline; 97 //$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline; 137 $message .= 'X-Attachment-Id: ' . basename(urlencode($attachment)) . $this->newline . $this->newline; 138 $message .= chunk_split(base64_encode($content)); 139 } 147 if ($this->parameter) { 148 mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header, $this->parameter); 149 } else { 149 } else { 150 mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header); 151 }Mail.inc.php https://github.com/mbehiels/pkp-lib.git | PHP | 460 lines
1<?php 2 7/** 8 * @file classes/mail/Mail.inc.php 9 * 212 /* Encode the contents in base64. */ 213 $content = chunk_split(base64_encode($content), MAIL_WRAP, MAIL_EOL); 214 array_push($attachments, array('filename' => $fileName, 'content-type' => $contentType, 'disposition' => $contentDisposition, 'content' => $content)); 439 if (Config::getVar('email', 'smtp')) { 440 fatalError("There was an error sending this email. Please check your PHP error log for more information."); 441 return false;sale_note_a4.blade.php https://gitlab.com/laher01/factu40 | PHP | 300 lines
1@php 2 $establishment = $document->establishment; 10 11@endphp 12<html> 22 <div class="company_logo_box"> 23 <img src="data:{{mime_content_type(public_path("storage/uploads/logos/{$company->logo}"))}};base64, {{base64_encode(file_get_contents(public_path("storage/uploads/logos/{$company->logo}")))}}" alt="{{$company->name}}" class="company_logo" style="max-width: 150px;"> 24 </div> 164 @inject('itemLotGroup', 'App\Services\ItemLotsGroupService') 165 @php 166 $lot_code = isset($row->item->lots_group) ? collect($row->item->lots_group)->first(function($row){ return $row->checked == true;}):null; 166 $lot_code = isset($row->item->lots_group) ? collect($row->item->lots_group)->first(function($row){ return $row->checked == true;}):null; 167 @endphp 168 {{ 185 @if($row->discounts) 186 @php 187 $total_discount_line = 0;localization.php https://github.com/foxluck/otdelstroy.git | PHP | 202 lines
1<?php 2/* 3 $init_required = false; 4 require_once( "../../../common/html/includes/httpinit.php" ); 5 5 6 require_once( WBS_DIR."/published/wbsadmin/wbsadmin.php" ); 7 118 { 119 $type_ids[] = base64_encode($value); 120 $type_names[] = $value; 153 154 $preproc = new php_preprocessor( $templateName, $kernelStrings, $language, "wbsadmin" ); 155AccountController.php https://github.com/hukumonline/admin.git | PHP | 238 lines
1<?php 2 81 82 //$m = $formater->_writeConfirmIndividualEmail($mailcontent,$value['fullname'],$value['username'],$value['password'],$payment,$disc,$total,base64_encode($id),$value['email']); 83 $m = $formater->_writeConfirmIndividualEmail($mailcontent,$value['aro_groups'],$value['fullname'],$value['username'],$value['password'],$payment,$disc,$total,base64_encode($id),$value['email']); 96 97 //$m = $formater->_writeConfirmCorporateEmail($mailcontent,$value['fullname'],$value['company'],$payment,$disc,$total,$value['username'],base64_encode($id),$value['email']); 98 $m = $formater->_writeConfirmCorporateEmail($mailcontent,$value['aro_groups'],$value['fullname'],$value['company'],$payment,$disc,$total,$value['username'],base64_encode($id),$value['email']); 104 $mailcontent = $formater->getMailContent('konfirmasi email gratis'); 105 $m = $formater->_writeConfirmFreeEmail($mailcontent,$value['fullname'],$value['username'],$value['password'],base64_encode($id),$value['email'],$aReturn['name']); 106WebhookTesting.php https://gitlab.com/cividesk-civicrm/com.cividesk.payment.braintree | PHP | 391 lines
1<?php 2namespace Braintree; 7 { 8 $payload = base64_encode(self::_sampleXml($kind, $id)) . "\n"; 9 $signature = Configuration::publicKey() . "|" . Digest::hexDigestSha1(Configuration::privateKey(), $payload);ShoutBox.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 225 lines
1<?php 2/** 11 * @copyright Copyright © 2010-2011 Jack Phoenix 12 * @license The MIT License - http://www.opensource.org/licenses/mit-license.php 13 * ----------------------------------------------------------------------- 21 * Note: $IP is your MediaWiki install dir. 22 * 2. Enable the extension by adding this line to your LocalSettings.php: 23 * require_once( $IP . '/extensions/ShoutBox/ShoutBox.php' ); 80$dir = dirname( __FILE__ ) . '/'; 81$wgExtensionMessagesFiles['ShoutBox'] = $dir . 'ShoutBox.i18n.php'; 82 131 ); 132 return '<pre>@SBCONTENT@' . base64_encode( serialize( $params ) ) . '@SBCONTENT@</pre>'; 133 }SAMLFlowTest.php https://bitbucket.org/hatim_alam/sugar-8.git | PHP | 335 lines
1<?php 2/* 96 97 parse_str(parse_url($location, PHP_URL_QUERY), $parameters); 98 $xml = $this->decodeSAMLAssertion($parameters['SAMLRequest']); 159 $response = $this->webClient->getResponse(); 160 parse_str(parse_url($response->getTargetUrl(), PHP_URL_QUERY), $parameters); 161 238 239 parse_str(parse_url($location, PHP_URL_QUERY), $parameters); 240 $xml = $this->decodeSAMLAssertion($parameters['SAMLRequest']); 322 { 323 return base64_encode($assertion); 324 }sessions.php https://github.com/ZenMagick/zc-base.git | PHP | 211 lines
1<?php 2/** 2/** 3 * functions/sessions.php 4 * Session functions 9 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 10 * @version $Id: sessions.php 16745 2010-06-17 12:02:17Z wilt $ 11 */ 53 if (!is_object($db)) { 54 //PHP 5.2.0 bug workaround ... 55 $db = new queryFactory(); 57 } 58 $val = base64_encode($val); 59google.php https://gitlab.com/Ltaimao/wecenter | PHP | 210 lines
1<?php 2/* 137 { 138 $redirect_url .= 'url-' . base64_encode($state['return_url']); 139 }crypt.html https://github.com/sublimeowl/docs.git | HTML | 186 lines
31 </p> 32 <p>It uses the encryption and hashing methods provided by PHPSecLib, so it's not dependent on external modules being available, such as mcrypt.</p> 33 37 <p> 38 The Crypt class is configured through the <kbd>app/config/crypt.php</kbd> configuration file. It will be generated and populated with random values when you first use the Crypt class or if one of the required configuration values is missing. 39 </p> 40 <p class="note"> 41 Note that this will require write access to app/config/crypt.php! If this is not possible, make sure all configuration settings are set! 42 </p> 78 <p class="note"> 79 If you assign keys manually, note that they are base64_encoded, and the length must be a multiple of 4 to be able to decode it. Make sure the length is correct! 80 </p> 107 <th><kbd>$key</kbd></th> 108 <td><pre class="php"><code>false</code></pre></td> 109 <td>Optional custom key value to be used to encode the value passsed. If false, the config value '<strong>crypto_key</strong>' is used.</td>hash.js https://gitlab.com/LisovyiEvhenii/ismextensions | JavaScript | 162 lines
8 * It is also available through the world-wide-web at this URL: 9 * http://opensource.org/licenses/afl-3.0.php 10 * If you did not receive a copy of the license and are unable to 22 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 23 * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 24 */ 58{ 59 var base64_encodetable = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; 60 var result = ""; 67 x = what.charCodeAt( ptr++ ); 68 result += base64_encodetable.charAt( ( x >> 2 ) & 63 ); 69 71 { 72 result += base64_encodetable.charAt( ( x << 4 ) & 63 ); 73 result += "==";hash.js https://github.com/rgranadino/magento-mirror.git | JavaScript | 162 lines
8 * It is also available through the world-wide-web at this URL: 9 * http://opensource.org/licenses/afl-3.0.php 10 * If you did not receive a copy of the license and are unable to 22 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com) 23 * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 24 */ 58{ 59 var base64_encodetable = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; 60 var result = ""; 67 x = what.charCodeAt( ptr++ ); 68 result += base64_encodetable.charAt( ( x >> 2 ) & 63 ); 69 71 { 72 result += base64_encodetable.charAt( ( x << 4 ) & 63 ); 73 result += "==";function.fetch.php https://gitlab.com/piotr-zuralski/demo-zuralski-trojmiastopl-articles | PHP | 216 lines
1<?php 2/** 14 * Purpose: fetch file, web or ftp data and display results 15 * @link http://smarty.php.net/manual/en/language.function.fetch.php {fetch} 16 * (Smarty online manual) 172 if(!empty($user) && !empty($pass)) { 173 fputs($fp, "Authorization: BASIC ".base64_encode("$user:$pass")."\r\n"); 174 }hash.js https://bitbucket.org/sevenly/magento-ce.git | JavaScript | 162 lines
8 * It is also available through the world-wide-web at this URL: 9 * http://opensource.org/licenses/afl-3.0.php 10 * If you did not receive a copy of the license and are unable to 22 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 23 * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 24 */ 58{ 59 var base64_encodetable = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; 60 var result = ""; 67 x = what.charCodeAt( ptr++ ); 68 result += base64_encodetable.charAt( ( x >> 2 ) & 63 ); 69 71 { 72 result += base64_encodetable.charAt( ( x << 4 ) & 63 ); 73 result += "==";callback.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 81 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 24 */ 25require_once(dirname(dirname(dirname(__FILE__))).'/config.php'); 26$json = required_param('tlelinks', PARAM_RAW); 57 58$source = base64_encode(serialize((object)array('url'=>$url,'filename'=>$filename))); 59index.php https://github.com/CORE-POS/IS4C.git | PHP | 179 lines
1<?php 2 2 3//header('Location: ../../modules/plugins2.0/DBA/DBAReport.php'); 4//exit; 5 6include(dirname(__FILE__) . '/../../config.php'); 7include_once(__DIR__ . '/../../classlib2.0/FannieAPI.php'); 96 $name = $_REQUEST['repName']; 97 $saveableQ = base64_encode($_REQUEST['query']); 98 119 $header = "Reporting for DBAs"; 120 $page_title = "Fannie :: Skip learning PHP/HTML"; 121 include(__DIR__ . '/../../src/header.html'); 140 $.ajax({ 141 url:'index.php', 142 type:'get',amazon_associates_source.php https://github.com/radig/datasources.git | PHP | 216 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package datasources 16 * @subpackage datasources.models.datasources 17 * @since CakePHP Datasources v 0.3 18 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 19 * 20 * A CakePHP datasource for interacting with the amazon associates API. 21 *blog_item.php https://github.com/spn87/101.git | PHP | 167 lines
1<?php 2/** 2/** 3 * @version $Id: blog_item.php 20196 2011-01-09 02:40:25Z ian $ 4 * @package Joomla.Site 21 22<?php if ($this->item->state == 0) : ?> 23<div class="system-unpublished"> 23<div class="system-unpublished"> 24<?php endif; ?> 25<?php if ($params->get('show_title')) : ?> 25<?php if ($params->get('show_title')) : ?> 26 <h2 class="item-page-title<?php echo $this->pageclass_sfx?>"> 27 <?php if ($params->get('link_titles') && $params->get('access-view')) : ?> 27 <?php if ($params->get('link_titles') && $params->get('access-view')) : ?> 28 <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>"> 29 <?php echo $this->escape($this->item->title); ?></a>blog_item.php https://bitbucket.org/asosso/joomla25.git | PHP | 175 lines
1<?php 2/** 21 22<?php if ($this->item->state == 0) : ?> 23<div class="system-unpublished"> 23<div class="system-unpublished"> 24<?php endif; ?> 25<?php if ($params->get('show_title')) : ?> 26 <h2> 27 <?php if ($params->get('link_titles') && $params->get('access-view')) : ?> 28 <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>"> 28 <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>"> 29 <?php echo $this->escape($this->item->title); ?></a> 30 <?php else : ?> 133 endif; ?> 134 src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/> 135 </div>SIG.php git://github.com/s9y/Serendipity.git | PHP | 459 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 6 * 7 * PHP Version 5 8 * 44 * @copyright 2010 Mike Pultz <mike@mikepultz.com> 45 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 46 * @version SVN: $Id$ 46 * @version SVN: $Id$ 47 * @link http://pear.php.net/package/Net_DNS2 48 * @since File available since Release 0.6.0 102 * @author Mike Pultz <mike@mikepultz.com> 103 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 104 * @link http://pear.php.net/package/Net_DNS2 251 ); 252 $this->signature = base64_encode( 253 substr($this->rdata, 18 + ($sigoffset - $offset))hash.js https://github.com/gryzz/crystal_magento.git | JavaScript | 162 lines
8 * It is also available through the world-wide-web at this URL: 9 * http://opensource.org/licenses/afl-3.0.php 10 * If you did not receive a copy of the license and are unable to 22 * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com) 23 * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 24 */ 58{ 59 var base64_encodetable = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; 60 var result = ""; 67 x = what.charCodeAt( ptr++ ); 68 result += base64_encodetable.charAt( ( x >> 2 ) & 63 ); 69 71 { 72 result += base64_encodetable.charAt( ( x << 4 ) & 63 ); 73 result += "==";ValidateTest.php https://bitbucket.org/jonbiard/nucleus.git | PHP | 229 lines
1<?php 2namespace Nucleus\Library\Test\Validator; 4use Nucleus\Library\Validator\Validate; 5use PHPUnit_Framework_TestCase; 6 6 7class ValidateTest extends PHPUnit_Framework_TestCase 8{ 14 /** 15 * @SuppressWarnings(PHPMD.ExcessiveMethodLength) 16 */ 83 $this->assertTrue($validate->isTrim('te st')); 84 $this->assertTrue($validate->isURL('http://www.php.net/manual/en/timezones.america.php')); 85 $this->assertTrue($validate->isURL('http://ca1.php.net/manual-lookup.php?pattern=test&lang=en&scope=quickref')); 224 $this->assertFalse($validate->notTrim('te st')); 225 $this->assertFalse($validate->notURL('http://www.php.net/manual/en/timezones.america.php')); 226 $this->assertFalse($validate->notURL('http://ca1.php.net/manual-lookup.php?pattern=x&lang=en&scope=quickref'));quotation_a4.blade.php https://gitlab.com/laher01/factu40 | PHP | 221 lines
1@php 2 $establishment = $document->establishment; 5 $tittle = $document->prefix.'-'.str_pad($document->id, 8, '0', STR_PAD_LEFT); 6@endphp 7<html> 17 <div class="company_logo_box"> 18 <img src="data:{{mime_content_type(public_path("storage/uploads/logos/{$company->logo}"))}};base64, {{base64_encode(file_get_contents(public_path("storage/uploads/logos/{$company->logo}")))}}" alt="{{$company->name}}" class="company_logo" style="max-width: 150px;"> 19 </div> 142 @if($row->discounts) 143 @php 144 $total_discount_line = 0; 147 } 148 @endphp 149 {{ number_format($total_discount_line, 2) }}addmedia.php https://gitlab.com/ppapadatis/Videolearn | PHP | 188 lines
1<?php 2/** 2/** 3 * @version SVN $Id: addmedia.php 1014 2013-01-30 14:36:00Z dhorsfall $ 4 * @package hwdMediaShare 57 { 58 JFactory::getApplication()->enqueueMessage(JText::sprintf('COM_HWDMS_SUCCESSFULLY_UPLOADED_X', $model->_title).' (<a href="index.php?option=com_hwdmediashare&task=mediaform.edit&id='.$model->_id.'&return='.base64_encode(hwdMediaShareHelperRoute::getMediaItemRoute($model->_id)).'">'.JText::_('COM_HWDMS_EDIT_MEDIA').'</a>)'); 59 $this->setRedirect(hwdMediaShareHelperRoute::getMediaItemRoute($model->_id)); 102 { 103 JFactory::getApplication()->enqueueMessage(JText::sprintf('COM_HWDMS_SUCCESSFULLY_UPLOADED_X', $model->_title).' (<a href="index.php?option=com_hwdmediashare&task=mediaform.edit&id='.$model->_id.'">'.JText::_('COM_HWDMS_EDIT_MEDIA').'</a>)'); 104 $this->setRedirect(hwdMediaShareHelperRoute::getMyMediaRoute()); 146 { 147 JFactory::getApplication()->enqueueMessage(JText::sprintf('COM_HWDMS_SUCCESSFULLY_ADDED_X', $model->_title).' (<a href="index.php?option=com_hwdmediashare&task=mediaform.edit&id='.$model->_id.'&return='.base64_encode(hwdMediaShareHelperRoute::getMediaItemRoute($model->_id)).'">'.JText::_('COM_HWDMS_EDIT_MEDIA').'</a>)'); 148 $this->setRedirect(hwdMediaShareHelperRoute::getMediaItemRoute($model->_id));SMTPMailer.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 381 lines
1<?php 2 3/** 4 * @file classes/mail/SMTPMailer.inc.php 5 * 16 17// $Id: SMTPMailer.inc.php,v 1.5 2009/05/13 00:13:20 asmecher Exp $ 18 256 $authString = $this->username . chr(0x00) . $this->username . chr(0x00) . $this->password; 257 if (!$this->send('AUTH', 'PLAIN ' . base64_encode($authString))) 258 return false; 270 return false; 271 if (!$this->send(base64_encode($this->username))) 272 return false; 274 return false; 275 if (!$this->send(base64_encode($this->password))) 276 return false;index.php https://bitbucket.org/mkjinesh/pcs.git | PHP | 57 lines
1<?php 2error_reporting(0); 3define('ok',1); 4$page = "home.php"; 5mysql_connect("localhost", "root", "amma") or die('Error'); 12 } else { 13 setcookie('auth', base64_encode($_POST['login'].'|'.$_POST['pwd'])); 14 header("Location: ./index.php"); 28 echo 'Hello, '.$login.'!<br>Your country: '.$country.'<br>City: '.$city.'<br>Phone number: '.$phone.'<br>Secret PIN-code: '.$pin.'<br>'; 29 echo '<br><a href="?page=home.php">home</a>'; 30 echo '<br><a href="?page=news.php">news</a>'; 30 echo '<br><a href="?page=news.php">news</a>'; 31 echo '<br><a href="?page=download.php">download</a>'; 32 echo '<br><a href="?page=users.php">Users</a><br><br>'; 34 35 $whitelist = array('news.php', 'home.php', 'download.php','users.php'); 36 if (isset($_GET['page'])) {default.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 206 lines
45?> 46<form action="<?php echo JRoute::_('index.php?option=com_menus&view=menus');?>" method="post" name="adminForm" id="adminForm"> 47<?php if (!empty( $this->sidebar)) : ?> 58 <label class="filter-search-lbl" for="filter_search"><?php echo JText::_('COM_MENUS_MENU_SEARCH_FILTER'); ?></label> 59 <input type="text" name="filter_search" id="filter_search" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" title="<?php echo JText::_('COM_MENUS_ITEMS_SEARCH_FILTER'); ?>" /> 60 <button type="submit"><?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></button> 109 <?php if ($canManageItems) : ?> 110 <a href="<?php echo JRoute::_('index.php?option=com_menus&view=items&menutype=' . $item->menutype); ?>"> 111 <?php echo $this->escape($item->title); ?></a> 116 <?php if ($canEdit) : ?> 117 <?php echo '<a href="'.JRoute::_('index.php?option=com_menus&task=menu.edit&id='.$item->id).' title='.$this->escape($item->description).'">'. 118 $this->escape($item->menutype).'</a>'; ?>) 124 <td class="center btns"> 125 <a href="<?php echo JRoute::_('index.php?option=com_menus&view=items&menutype='.$item->menutype.'&filter_published=1');?>"> 126 <?php echo $item->count_published; ?></a>helper.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 366 lines
1<?php 2/** 130 { 131 $url = 'index.php?Itemid=' . $itemId; 132 } 142 143 return base64_encode($url); 144 } 188 { 189 $fbProfileURL = 'https://www.facebook.com/profile.php?id='.$fbUserId; 190 $fbAvatarSize = $this->getJFBConnectAvatarSize();S3Signature.php https://gitlab.com/x33n/respond | PHP | 268 lines
1<?php 2/** 135 { 136 return base64_encode(hash_hmac('sha1', $string, $credentials->getSecretKey(), true)); 137 }callback.php https://github.com/raymanuk/moodle.git | PHP | 81 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 24 */ 25require_once(dirname(dirname(dirname(__FILE__))).'/config.php'); 26$json = required_param('tlelinks', PARAM_RAW); 57 58$source = base64_encode(json_encode(array('url'=>$url,'filename'=>$filename))); 59inbox.php https://gitlab.com/JLHasson/Wordflow.git | PHP | 274 lines
157<!-- START THE PM FORM AND DISPLAY LIST --> 158<form name="myform" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data"> 159 <table width="94%" border="0" align="center" cellpadding="4"> 201 <td width="4%" valign="top"> 202 <input type="checkbox" name="cb<?php echo $row['id']; ?>" id="cb" value="<?php echo $row['id']; ?>" /> 203 </td> 203 </td> 204 <td width="20%" valign="top"><div class="message_name"><a href="profile.php?id=<?php echo $Sid; ?>"><?php echo $Fname.' '. $Lname ;?></a></div></td> 205 <td width="58%" valign="top"> 206 <span style="padding:3px;"> 207 <a class="<?php echo $textWeight; ?>" id="subj_line_<?php echo $row['id']; ?>" style="cursor:pointer;" onclick="markAsRead(<?php echo $row['id']; ?>)"><?php echo stripslashes($row['subject']); ?></a> 208 </span> 210 <?php echo stripslashes(wordwrap(nl2br($row['message']), 54, "\n", true)); ?> 211 <br /><br /><a href="javascript:toggleReplyBox('<?php echo stripslashes($row['subject']); ?>','<?php echo $my_name; ?>','<?php echo $my_id; ?>','<?php echo $fullName; ?>','<?php echo $fr_id; ?>','<?php echo $thisRandNum; ?>')">Reply</a><br /> 212 </div>game_entrance_config.php https://github.com/karlom/gameadmin.git | PHP | 210 lines
1<?php 2/** 6// 导入配置文件 7include_once '../../../protected/config/config.php'; 8include_once SYSDIR_ADMIN_INCLUDE.'/global.php'; 40 41 $postData = urlencode(base64_encode(json_encode($data))); 42 $params = "timestamp={$timestamp}&key={$key}&data={$postData}"; 42 $params = "timestamp={$timestamp}&key={$key}&data={$postData}"; 43 $apiUrl = $entranceUrl."api/setClientVars.php"; 44 54 $params = "timestamp={$timestamp}&key={$key}&switch={$switch}"; 55 $apiUrl = $entranceUrl."api/setServerStatus.php"; 56 65 $params = "timestamp={$timestamp}&key={$key}&switch={$switch}"; 66 $apiUrl = $entranceUrl."api/setSimulationLoginStatus.php"; 67admin-framework-settings.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 306 lines
59 $framework_options[] = array( "name" => "Enable Custom Navigation", 60 "desc" => "Enable the old <strong>Custom Navigation</strong> menu item. Try to use <a href='".home_url()."/wp-admin/nav-menus.php'>WP Menus</a> instead, as this function is outdated.", 61 "id" => $shortname."_woonav", 219 <form action="" enctype="multipart/form-data" id="wooform" method="post"> 220 <?php 221 // Add nonce for added security. 241 <img alt="WooThemes" src="<?php echo get_template_directory_uri(); ?>/functions/images/logo.png"/> 242 <?php } ?> 243 </div> 244 <div class="theme-info"> 245 <span class="theme"><?php echo $themename; ?> <?php echo $local_version; ?></span> 246 <span class="framework">Framework <?php echo $woo_framework_version; ?></span> 251 <ul> 252 <li class="changelog"><a title="Theme Changelog" href="<?php echo $manualurl; ?>#Changelog">View Changelog</a></li> 253 <li class="docs"><a title="Theme Documentation" href="<?php echo $manualurl; ?>">View Themedocs</a></li>Attribute.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 372 lines
1<?php 2/** 277 } 278 return $method . base64_encode($rawHash); 279 }Utils.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 133 lines
1<?php 2/* 25 { 26 $b64 = base64_encode($data); 27 $b64 = str_replace( 54 * @link http://solarphp.com/ 55 * @link http://svn.solarphp.com/core/trunk/Solar/Json.php 56 * @link http://framework.zend.com/svn/framework/standard/trunk/library/Zend/Json/Decoder.phpdownloads-list.php https://gitlab.com/Fraternal-Group/fraternal | PHP | 85 lines
10 <th><?php _e('Plugin', 'installer') ?></th> 11 <th><?php _e('Current version', 'installer') ?></th> 12 <th><?php _e('Released', 'installer') ?></th> 34 ?> 35 <input type="checkbox" name="downloads[]" value="<?php echo base64_encode(json_encode($download_data)); ?>" <?php 36 if($this->plugin_is_installed($download['name'], $download['slug'], $download['version']) && !$this->plugin_is_embedded_version($download['name'], $download['slug']) || WP_Installer()->dependencies->cant_download($repository_id) ): ?>disabled="disabled"<?php endif; ?> /> 45 <span class="<?php echo $class ?>"><?php echo $v; ?></span> 46 <?php if($this->plugin_is_embedded_version($download['name'], $download['slug'])): ?> <?php _e('(embedded)', 'installer'); ?><?php endif; ?> 47 <?php endif; ?> 49 <td> 50 <span class="installer-status-installing"><?php _e('installing...', 'installer') ?></span> 51 <span class="installer-status-updating"><?php _e('updating...', 'installer') ?></span> 52 <span class="installer-status-installed" data-fail="<?php _e('failed!', 'installer') ?>"><?php _e('installed', 'installer') ?></span> 53 <span class="installer-status-updated" data-fail="<?php _e('failed!', 'installer') ?>"><?php _e('updated', 'installer') ?></span> 54 </td>tables.php https://github.com/Ratmir15/Joomla---formula-of-success.git | PHP | 299 lines
1<?php 2/** 42 // Base64-encode the value 43 $value2 = JoomlapackCUBETables::_getBase64() ? base64_encode($value) : $value; 44 210 { 211 $_hasBase64 = function_exists('base64_encode') && function_exists('base64_decode'); 212 }Profiler.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 296 lines
1<?php 2 142 { 143 return base64_encode(serialize($profile)); 144 } 177 * 178 * @see http://php.net/manual/en/datetime.formats.php for the supported date/time formats 179 */sale_note_ticket.blade.php https://gitlab.com/laher01/factu40 | PHP | 216 lines
1@php 2 $establishment = $document->establishment; 8 9@endphp 10<html> 18 <div class="text-center company_logo_box pt-5"> 19 <img src="data:{{mime_content_type(public_path("storage/uploads/logos/{$company->logo}"))}};base64, {{base64_encode(file_get_contents(public_path("storage/uploads/logos/{$company->logo}")))}}" alt="{{$company->name}}" class="company_logo_ticket contain"> 20 </div> 203 <tr><td><strong>PAGOS:</strong> </td></tr> 204 @php 205 $payment = 0; 205 $payment = 0; 206 @endphp 207 @foreach($payments as $row) 208 <tr><td>- {{ $row->date_of_payment->format('d/m/Y') }} - {{ $row->payment_method_type->description }} - {{ $row->reference ? $row->reference.' - ':'' }} {{ $document->currency_type->symbol }} {{ $row->payment }}</td></tr> 209 @php 210 $payment += (float) $row->payment;default_item.php https://github.com/3den/J-MediaGalleries.git | PHP | 150 lines
19<div class="system-unpublished"> 20<?php endif; ?> 21<?php if ($params->get('show_title')) : ?> 22 <h2> 23 <?php if ($params->get('link_titles') && $params->get('access-view')) : ?> 24 <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>"> 74 </dd> 75<?php endif; ?> 76<?php if ($params->get('show_category')) : ?> 103 <dd class="createdby"> 104 <?php $author = $params->get('link_author', 0) ? JHTML::_('link',JRoute::_('index.php?option=com_users&view=profile&member_id='.$this->item->created_by),$this->item->author) : $this->item->author; ?> 105 <?php $author=($this->item->created_by_alias ? $this->item->created_by_alias : $author);?> 142 </p> 143<?php endif; ?> 144offline.php https://bitbucket.org/ghazalp/jsbootstrap.git | PHP | 84 lines
17<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" /> 18<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/template.css" type="text/css" media="screen" /> 19 28<link rel="apple-touch-icon" sizes="114x114" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/img/ico/apple-touch-icon-114x114.png" /> 29<link rel="apple-touch-icon" sizes="72x72" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/img/ico/apple-touch-icon-72x72.png" /> 30<link rel="apple-touch-icon" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/img/ico/apple-touch-icon-57x57.png" /> 40 <?php if ($app->getCfg('offline_image')) : ?> 41 <img src="<?php echo $app->getCfg('offline_image'); ?>" alt="<?php echo $app->getCfg('sitename'); ?>" /> 42 <?php endif; ?> 51 <?php endif; ?> 52 <form action="<?php echo JRoute::_('index.php', true); ?>" method="post" name="login" id="form-login"> 53 <fieldset class="input"> 72 <input type="hidden" name="task" value="user.login" /> 73 <input type="hidden" name="return" value="<?php echo base64_encode(JURI::base()); ?>" /> 74 <?php echo JHTML::_( 'form.token' ); ?>CetakBarcode.php https://gitlab.com/alfiantaufani/koperasi-tugas-kuliah | PHP | 59 lines
1<?php 2defined('BASEPATH') OR exit('No direct script access allowed'); 27 { 28 require 'vendor/autoload.php'; 29 $generator = new Picqer\Barcode\BarcodeGeneratorPNG(); 38 <br> 39 <img src="data:image/png;base64,' . base64_encode($generator->getBarcode($data->barcode_sendiri, $generator::TYPE_CODE_128, $height, $width)) . '"> 40 <br>form.php https://github.com/projectfork/Projectfork.git | PHP | 137 lines
1<?php 2/** 14// Base this model on the backend version. 15JLoader::register('PFcommentsModelComment', JPATH_ADMINISTRATOR . '/components/com_pfcomments/models/comment.php'); 16 111 { 112 return base64_encode($this->getState('return_page')); 113 }search.php https://bitbucket.org/myockey/clearcreek-chapel-website.git | PHP | 151 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 66 // Save the search 67 $search = rawurlencode(base64_encode($search)); 68 149 150/* End of file search.php */ 151/* Location: ./system/expressionengine/controllers/cp/search.php */Smtp.php https://github.com/jyxo/php-no-namespace.git | PHP | 342 lines
1<?php 2 3/** 4 * Jyxo PHP Library 5 * 10 * It is also available through the world-wide-web at this URL: 11 * https://github.com/jyxo/php/blob/master/license.txt 12 */ 21 * @copyright Copyright (c) 2005-2011 Jyxo, s.r.o. 22 * @license https://github.com/jyxo/php/blob/master/license.txt 23 * @author Jaroslav Hanslík 152 } 153 $this->writeData(base64_encode($user)); 154 $response = $this->readData(); 157 } 158 $this->writeData(base64_encode($password)); 159 $response = $this->readData();securesettings.php https://github.com/CCI-Studios/Wee-Magazine.git | PHP | 144 lines
1<?php 2/** 27 28 $filename = dirname(__FILE__).'/../serverkey.php'; 29 if(file_exists($filename)) { 43 { 44 // Do we have the encypt.php plugin? 45 $filename = dirname(__FILE__).'/../utils/encrypt.php'; 51 52 // Do we have base64_encode/_decode required for encryption? 53 if(!function_exists('base64_encode') || !function_exists('base64_decode')) return false; 94 // Note: CBC returns the encrypted data as a binary string and requires Base 64 encoding 95 $settingsINI = '###AES128###'.base64_encode($encrypted); 96 }Embed.php https://github.com/hgmnz/Bogota-Conf-Website.git | PHP | 95 lines
1<?php 2/** 10 * @copyright 2009-2010 Anthony Short. All rights reserved. 11 * @license http://opensource.org/licenses/bsd-license.php New BSD License 12 * @link https://github.com/anthonyshort/csscaffold/master 61 { 62 $data = base64_encode(file_get_contents($path)); 63 $scaffold->cache->set($id,$data,$mod_time,false);Abstract.php https://github.com/jkonieczny/Zend.git | PHP | 189 lines
1<?php 2/** 22 23require_once 'Zend/Service/Amazon/Abstract.php'; 24 24 25require_once 'Zend/Service/Amazon/Ec2/Response.php'; 26 158 159 require_once 'Zend/Crypt/Hmac.php'; 160 $hmac = Zend_Crypt_Hmac::compute($this->_getSecretKey(), 'SHA1', $data, Zend_Crypt_Hmac::BINARY); 161 162 return base64_encode($hmac); 163 } 183 $message = $xpath->evaluate('string(Message/text())', $node); 184 require_once 'Zend/Service/Amazon/Ec2/Exception.php'; 185 throw new Zend_Service_Amazon_Ec2_Exception($message, 0, $code);accounts.activation.php https://gitlab.com/Nightprince/Warcry-CMS | PHP | 263 lines
1<?php 2if (!defined('init_engine')) 77 { 78 return base64_encode($this->key); 79 } 128 ** - Returned when the accounts query failed 129 ** - Returned when the PHPMailer class failed to send mail 130 ** -------------------------------------------------------------------------------------------- 135 136 //setup the PHPMailer class 137 $mail = new PHPMailerLite(); 161 $search = array('{FIRST_NAME}', '{LAST_NAME}', '{URL}'); 162 $replace = array($row['firstName'], $row['lastName'], $config['BaseURL'] . '/index.php?page=activation&key=' . $this->get_encodedKey()); 163 $message = str_replace($search, $replace, $message);view.html.php https://gitlab.com/ppapadatis/Videolearn | PHP | 284 lines
1<?php 2/** 2/** 3 * @version SVN $Id: view.html.php 1184 2013-02-25 15:34:00Z dhorsfall $ 4 * @package hwdMediaShare 53 hwdMediaShareFactory::load('files'); 54 JLoader::register('JHtmlHwdIcon', JPATH_COMPONENT . '/helpers/icon.php'); 55 89 $this->assign('columns', $params->get('list_columns', 3)); 90 $this->assign('return', base64_encode(JFactory::getURI()->toString())); 91 190 $pluginClass = 'plgHwdmediashare'.$config->get('platform'); 191 $pluginPath = JPATH_ROOT.'/plugins/hwdmediashare/'.$config->get('platform').'/'.$config->get('platform').'.php'; 192htmlpurifier.php https://gitlab.com/isdzulqor/Slis-Dev | PHP | 316 lines
1<?php 2 12 * For help migrating from your previous markup language to pure HTML 13 * please check the migrate.bbcode.php file. 14 * 92 if (!$message_id && defined('PHORUM_CONTROL_CENTER')) { 93 // we're in control.php, so it was double-escaped 94 $body = str_replace(array('<','>','&', '"'), array('<','>','&','"'), $body); 106 $updated_message['meta'] = $message['meta']; 107 $updated_message['meta']['body_cache'] = base64_encode($body); 108 $updated_message['meta']['body_cache_serial'] = $cache_serial; 122// ----------------------------------------------------------------------- 123// This is fragile code, copied from read.php:596 (Phorum 5.2.6). Please 124// keep this code in-sync with Phorum 205 * Ensure that our format hook is processed last. Also, loads the library. 206 * @credits <http://secretsauce.phorum.org/snippets/make_bbcode_last_formatter.php.txt> 207 */member_connect_register.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 127 lines
1<?php 2 6 * 7 * $Id: member_connect_register.php 28644 2012-03-06 13:44:19Z houdelei $ 8 */ 96 dsetcookie('connect_js_name', 'user_bind', 86400); 97 dsetcookie('connect_js_params', base64_encode(serialize(array('type' => 'register'))), 86400); 98 dsetcookie('connect_login', 1, 31536000);CrashDump.php https://gitlab.com/matthww/Elywing | PHP | 259 lines
1<?php 2 134 135 if($this->server->getProperty("auto-report.send-phpinfo", true) !== false){ 136 ob_start(); 136 ob_start(); 137 phpinfo(); 138 $this->data["phpinfo"] = ob_get_contents(); 235 $this->data["general"]["uname"] = php_uname("a"); 236 $this->data["general"]["php"] = phpversion(); 237 $this->data["general"]["zend"] = zend_version(); 237 $this->data["general"]["zend"] = zend_version(); 238 $this->data["general"]["php_os"] = PHP_OS; 239 $this->data["general"]["os"] = Utils::getOS(); 241 $this->addLine("uname -a: " . php_uname("a")); 242 $this->addLine("PHP version: " . phpversion()); 243 $this->addLine("Zend version: " . zend_version());crypt.php https://github.com/akutaktau/feedmalaya.git | PHP | 331 lines
1<?php 2/** 4 * 5 * Fuel is a fast, lightweight, community driven PHP5 framework. 6 * 11 * @copyright 2010 - 2011 Fuel Development Team 12 * @link http://fuelphp.com 13 */ 23 * @author Harro "WanWizard" Verton 24 * @link http://fuelphp.com/docs/classes/crypt.html 25 */ 149 return strtr( 150 base64_encode($value), 151 array( 210 // houston, we have a problem! 211 throw new \Fuel_Exception('Encrypted string was encrypted using the PHP mcrypt library, which is not loaded on this system.'); 212 }SiteController.php https://gitlab.com/irvanresna/sensasi | PHP | 168 lines
1<?php 2 16 // page action renders "static" pages stored under 'protected/views/site/pages' 17 // They can be accessed via: index.php?r=site/page&view=FileName 18 'page'=>array( 29 { 30 // renders the view file 'protected/views/site/index.php' 31 // using the default layout 'protected/views/layouts/main.php' 37 38 // renders the view file 'protected/views/site/index.php' 39 // using the default layout 'protected/views/layouts/main.php' 47 48 // renders the view file 'protected/views/site/index.php' 49 // using the default layout 'protected/views/layouts/main.php' 57 58 // renders the view file 'protected/views/site/index.php' 59 // using the default layout 'protected/views/layouts/main.php'Observer.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 296 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 114 ); 115 $linkHash = strtr(base64_encode(microtime() . $linkPurchased->getId() . $orderItem->getId() 116 . $product->getId()), '+/=', '-_,');lib.php https://github.com/tcubansk/moodle.git | PHP | 236 lines
1<?php 2 109 foreach ($files as $file) { 110 $params = base64_encode(serialize($file)); 111 // Check that file exists and accessible 157 * @global object $DB 158 * @param string $encoded The information of file, it is base64 encoded php serialized data 159 * @param string $draftitemid itemidEncrypt.php https://github.com/holsinger/openfloor.git | PHP | 397 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 122 } 123 return base64_encode($enc); 124 }Api.php https://gitlab.com/billyprice1/bdApi | PHP | 274 lines
1<?php 2 9 $url = call_user_func_array('sprintf', array( 10 '%s/index.php?oauth/authorize/&client_id=%s&redirect_uri=%s&response_type=code&scope=%s', 11 rtrim($provider['root'], '/'), 19 ) { 20 $extraParams['state'] = base64_encode(json_encode(array( 21 'time' => XenForo_Application::$time, 35 return call_user_func_array('sprintf', array( 36 '%s/index.php?tools/login&oauth_token=%s&redirect_uri=%s', 37 rtrim($provider['root'], '/'), 45 return call_user_func_array('sprintf', array( 46 '%s/index.php?tools/logout&oauth_token=%s&redirect_uri=%s', 47 rtrim($provider['root'], '/'), 214 $uri = call_user_func_array('sprintf', array( 215 '%s/index.php?%s', 216 rtrim($provider['root'], '/'),browseremulator.class.php https://github.com/itspriddle/itt-capstone.git | PHP | 270 lines
1<?php 2/*************************************************************************** 160 $headers["Authorization"] = 161 "Basic ".base64_encode ($this->authUser.":".$this-> 162 authPass);CHANGELOG.md https://gitlab.com/reasonat/test8 | Markdown | 128 lines
14 - implemented different session locking strategies to prevent loss of data by concurrent access to the same session 15 - [BC BREAK] save session data in a binary column without base64_encode 16 - [BC BREAK] added lifetime column to the session table which allows to have different lifetimes for each session 67 * [BC BREAK] moved management of the locale from the Session class to the Request class 68 * added a generic access to the PHP built-in filter mechanism: ParameterBag::filter() 69 * made FileBinaryMimeTypeGuesser command configurable 71 * added support for the PATCH method in Request 72 * removed the ContentTypeMimeTypeGuesser class as it is deprecated and never used on PHP 5.3 73 * added ResponseHeaderBag::makeDisposition() (implements RFC 6266) 80 * Added internal storage driver proxy mechanism for forward compatibility with 81 PHP 5.4 `\SessionHandler` class. 82 * Added session handlers for custom Memcache, Memcached and Null session save handlers. 86 is a mediator for the session storage internals including the session handlers 87 which do the real work of participating in the internal PHP session workflow. 88 * [BC BREAK] Introduced mock implementations of `SessionStorage` to enable unitautoptimizeBase.php https://gitlab.com/hop23typhu/list-theme | PHP | 317 lines
1<?php 2if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 38 } 39 } else if ((strpos($url,'//')===false) && (strpos($url,parse_url(AUTOPTIMIZE_WP_SITE_URL,PHP_URL_HOST))===false)) { 40 $url = AUTOPTIMIZE_WP_SITE_URL.$url; 43 // first check; hostname wp site should be hostname of url 44 $thisHost=@parse_url($url,PHP_URL_HOST); 45 if ($thisHost!==parse_url(AUTOPTIMIZE_WP_SITE_URL,PHP_URL_HOST)) { 59 if (!empty($this->cdn_url)) { 60 $multidomains[]=parse_url($this->cdn_url,PHP_URL_HOST); 61 } 66 if (in_array($thisHost,$multidomains)) { 67 $url=str_replace($thisHost, parse_url(AUTOPTIMIZE_WP_SITE_URL,PHP_URL_HOST), $url); 68 } else { 98 // do the actual parse_url 99 $out = parse_url($in,PHP_URL_HOST); 100helper.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 582 lines
1<?php 2/** 324 case 'sha': 325 $encrypted = base64_encode(mhash(MHASH_SHA1, $plaintext)); 326 return ($show_encrypt) ? '{SHA}' . $encrypted : $encrypted; 334 case 'md5-base64': 335 $encrypted = base64_encode(mhash(MHASH_MD5, $plaintext)); 336 return ($show_encrypt) ? '{MD5}' . $encrypted : $encrypted; 338 case 'ssha': 339 $encrypted = base64_encode(mhash(MHASH_SHA1, $plaintext . $salt) . $salt); 340 return ($show_encrypt) ? '{SSHA}' . $encrypted : $encrypted; 342 case 'smd5': 343 $encrypted = base64_encode(mhash(MHASH_MD5, $plaintext . $salt) . $salt); 344 return ($show_encrypt) ? '{SMD5}' . $encrypted : $encrypted; 523 { 524 $stat = array(php_uname()); 525 }view.html.php https://gitlab.com/ppapadatis/Videolearn | PHP | 153 lines
1<?php 2/** 2/** 3 * @version SVN $Id: view.html.php 459 2012-08-13 12:58:37Z dhorsfall $ 4 * @package hwdMediaShare 36 hwdMediaShareFactory::load('files'); 37 JLoader::register('JHtmlHwdIcon', JPATH_COMPONENT . '/helpers/icon.php'); 38 JLoader::register('JHtmlString', JPATH_LIBRARIES.'/joomla/html/html/string.php'); 68 $this->assign('display', $state->get('media.display')); 69 $this->assign('return', base64_encode(JFactory::getURI()->toString())); 70OAuth.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 201 lines
1<?php 2 6 * 7 * $Id: OAuth.php 29306 2012-04-01 03:42:53Z houdelei $ 8 */ 80 $utilService = Cloud::loadClass('Service_Util'); 81 return base64_encode($utilService->hashHmac('sha1', $str, $key, true)); 82 }icon.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 299 lines
1<?php 2/** 37 38 $url = 'index.php?option=com_content&task=article.add&return=' . base64_encode($uri) . '&a_id=0&catid=' . $category->id; 39 84 { 85 require_once JPATH_SITE . '/components/com_mailto/helpers/mailto.php'; 86 90 $link = $base . JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid, $article->language), false); 91 $url = 'index.php?option=com_mailto&tmpl=component&template=' . $template . '&link=' . MailToHelper::addLink($link); 92 176 177 $url = 'index.php?option=com_content&task=article.edit&a_id=' . $article->id . '&return=' . base64_encode($uri); 178base64.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 267 lines
55 56PHPAPI unsigned char *php_base64_encode(const unsigned char *str, int length, int *ret_length) /* {{{ */ 57{ 136 137PHPAPI unsigned char *php_base64_decode(const unsigned char *str, int length, int *ret_length) /* {{{ */ 138{ 142 143PHPAPI unsigned char *php_base64_decode_ex(const unsigned char *str, int length, int *ret_length, zend_bool strict) /* {{{ */ 144{ 219 Encodes string using MIME base64 algorithm */ 220PHP_FUNCTION(base64_encode) 221{ 228 } 229 result = php_base64_encode((unsigned char*)str, str_len, &ret_length); 230 if (result != NULL) {lib.php https://github.com/kpike/moodle.git | PHP | 184 lines
1<?php 2 74 $pathnodes = array(); 75 $encodedpath = base64_encode(serialize($fileinfo->get_params())); 76 $pathnodes[] = array('name'=>$fileinfo->get_visible_name(), 'path'=>$encodedpath); 79 $params = $level->get_params(); 80 $encodedpath = base64_encode(serialize($params)); 81 if ($params['contextid'] != $context->id) { 96 $subdir_children = $child->get_children(); 97 $encodedpath = base64_encode(serialize($params)); 98 $node = array( 107 } else { 108 $encodedpath = base64_encode(serialize($child->get_params())); 109 $node = array(SharedAccessSignature.php https://github.com/grjones/qframe.git | PHP | 307 lines
1<?php 2/** 24 */ 25require_once 'Zend/Service/WindowsAzure/Credentials/CredentialsAbstract.php'; 26 29 */ 30require_once 'Zend/Service/WindowsAzure/Storage.php'; 31 34 */ 35require_once 'Zend/Http/Client.php'; 36 146 $stringToSign = implode("\n", $stringToSign); 147 $signature = base64_encode(hash_hmac('sha256', $stringToSign, $this->_accountKey, true)); 148authentication.php git://pkgs.fedoraproject.org/pgfouine | PHP | 219 lines
1<?php 2 /** 5 * @subpackage WebTester 6 * @version $Id: authentication.php,v 1.1 2005/11/09 23:41:18 gsmet Exp $ 7 */ 10 */ 11 require_once(dirname(__FILE__) . '/http.php'); 12 214 $request->addHeaderLine( 215 'Authorization: Basic ' . base64_encode("$username:$password")); 216 }cookie.test.php https://github.com/geeknbar/projet-tut-site-web.git | PHP | 438 lines
9 * 10 * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite> 11 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 17 * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests 18 * @package cake 235 236 $this->Controller->Cookie->write(array('Encrytped_array' => array('name' => 'CakePHP', 'version' => '1.2.0.x', 'tag' =>'CakePHP Rocks!'))); 237 $this->Controller->Cookie->write(array('Encrytped_multi_cookies.name' => 'CakePHP')); 400 $data = $this->Controller->Cookie->read('Plain_array'); 401 $expected = array('name' => 'CakePHP', 'version' => '1.2.0.x', 'tag' =>'CakePHP Rocks!'); 402 $this->assertEqual($data, $expected); 404 $data = $this->Controller->Cookie->read('Plain_multi_cookies'); 405 $expected = array('name' => 'CakePHP', 'version' => '1.2.0.x', 'tag' =>'CakePHP Rocks!'); 406 $this->assertEqual($data, $expected);Abstract.php https://github.com/ticean/magento-mirror.git | PHP | 231 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 28 29require_once('googleresponse.php'); 30require_once('googlemerchantcalculations.php'); 30require_once('googlemerchantcalculations.php'); 31require_once('googleresult.php'); 32require_once('googlerequest.php'); 155 { 156 $auth = 'Basic '.base64_encode($this->getMerchantId().':'.$this->getMerchantKey()); 157smtp.php https://gitlab.com/alexprowars/bitrix | PHP | 512 lines
1<?php 2 275 "AUTH PLAIN\x00%s", 276 base64_encode(sprintf( 277 "\x00%s\x00%s", 288 "AUTH LOGIN\x00%s\x00%s", 289 base64_encode($this->options['login']), 290 base64_encode($this->options['password'])SubscribeRemoteCalendar.php https://github.com/Excito/kronolith.git | PHP | 76 lines
1<?php 2/** 4 * 5 * $Horde: kronolith/lib/Forms/SubscribeRemoteCalendar.php,v 1.1.2.1 2007/12/20 14:12:36 jan Exp $ 6 * 13/** Variables */ 14require_once 'Horde/Variables.php'; 15 16/** Horde_Form */ 17require_once 'Horde/Form.php'; 18 19/** Horde_Form_Renderer */ 20require_once 'Horde/Form/Renderer.php'; 21 57 if ($key) { 58 require_once 'Horde/Secret.php'; 59 $username = base64_encode(Secret::write($key, $username));topicform.php https://github.com/projectfork/Projectfork.git | PHP | 270 lines
1<?php 2/** 228 if ($item_id) $append .= '&Itemid=' . $item_id; 229 if ($return) $append .= '&return='.base64_encode($return); 230 245 if (empty($return) || !JUri::isInternal(base64_decode($return))) { 246 return JRoute::_('index.php?option=com_pfforum&view=' . $this->view_list, false); 247 } 266 if ($task == 'save') { 267 $this->setRedirect(JRoute::_('index.php?option=com_pfforum&view=' . $this->view_list, false)); 268 }database.php https://gitlab.com/seckmaster/Cloud-password | PHP | 146 lines
1<?php 2 $host = "localhost"; // Host name 26 27 // encrypts string (source: http://alias.io/2010/01/store-passwords-safely-with-php-and-mysql/) 28 function _Crypt($string) { 28 function _Crypt($string) { 29 $salt = strtr(base64_encode(mcrypt_create_iv(16, MCRYPT_DEV_URANDOM)), '+', '.'); 30 $cost = 10; 44 $_SESSION["user"] = $username; 45 header("Location: ../user/index.php"); 46 exit();browseremulator.class.php https://github.com/Bigjoos/U-232-V3.git | PHP | 210 lines
1<?php 2############################################################################### 130 if ($this->authUser != "" AND $this->authPass != "") 131 $headers["Authorization"] = "Basic ".base64_encode ($this->authUser.":".$this->authPass); 132 199 * <li>1: Date (e.g. "Date: Sun, 08 Jun 2008 16:36:37 GMT")</li> 200 * <li>2: ServerInfo (e.g. "Server: Apache/2.2.3 (Ubuntu) PHP/5.2.1"</li> 201 * <li>3: Content length (e.g. "Content-Length: 214"</li>data_collector.rst https://github.com/sebio/symfony-docs.git | ReStructuredText | 169 lines
97 98 .. code-block:: php 99 142 base64 value for an image with this little script: ``echo 143 base64_encode(file_get_contents($_SERVER['argv'][1]));``. 144 163 164 .. code-block:: php 165index.php https://github.com/zsalwen/Service-Office.git | PHP | 68 lines
52 53 if(isset($_SERVER['PHP_AUTH_USER'])) 54 { 55 printf('<param name="chap" value="%s">', 56 base64_encode($_SERVER['PHP_AUTH_USER'].":".$_SERVER['PHP_AUTH_PW'])); 57 }settings-data.php https://gitlab.com/Gashler/sg | PHP | 292 lines
1<?php 2/** 56 //Encode 57 $export = base64_encode(serialize($export)); 58displayimage.php https://github.com/cpg-contrib/coppermine.git | PHP | 347 lines
20define('INDEX_PHP', true); 21define('DB_INPUT_PHP', true); 22define('DELETE_PHP', true); 27 */ 28require('include/init.inc.php'); 29 32 */ 33require_once('classes/cpgAlbumFactory.class.php'); 34require_once('classes/cpgTemplate.class.php'); 34require_once('classes/cpgTemplate.class.php'); 35require('classes/cpgDisplayImageData.class.php'); 36require_once('classes/cpgProcessComments.class.php'); 247if ($config->conf['show_bbcode_help']) { 248 $miscArr['bbcodeHelp'] = cpgUtils::cpgDisplayHelp('f=index.html&base=64&h='.urlencode(base64_encode(serialize($lang_bbcode_help_title.' '))).'&t='.urlencode(base64_encode(serialize($lang_bbcode_help))),470,245); 249}broadcast_server.class.php https://gitlab.com/x33n/ampache | PHP | 442 lines
1<?php 2/* vim:set softtabstop=4 shiftwidth=4 expandtab: */ 155 $broadcast->update_song($song_id); 156 $this->broadcastMessage($clients, self::BROADCAST_SONG, base64_encode($this->getSongJS($song_id))); 157 295 // Send current song and song position to 296 $this->broadcastMessage(array($from), self::BROADCAST_SONG, base64_encode($this->getSongJS($broadcast->song))); 297 $this->broadcastMessage(array($from), self::BROADCAST_SONG_POSITION, $broadcast->song_position);parse.php https://gitlab.com/fabiorf/parse.com-php-library | PHP | 220 lines
1<?php 2include 'parseConfig.php'; 2include 'parseConfig.php'; 3include 'parseObject.php'; 4include 'parseQuery.php'; 4include 'parseQuery.php'; 5include 'parseUser.php'; 6include 'parseFile.php'; 6include 'parseFile.php'; 7include 'parsePush.php'; 8include 'parseGeoPoint.php'; 8include 'parseGeoPoint.php'; 9include 'parseACL.php'; 10include 'parseCloud.php'; 51 curl_setopt($c, CURLOPT_TIMEOUT, 30); 52 curl_setopt($c, CURLOPT_USERAGENT, 'parse.com-php-library/2.0'); 53 curl_setopt($c, CURLOPT_RETURNTRANSFER, true);mdl.passport.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 303 lines
1<?php 2require_once('plugin.php'); 126 } 127 return base64_encode($this->passport_key($tmp, $key)); 128 } 204 function setCookie($name,$value,$expire=false,$path=null){ 205 $cookiePath = substr(PHP_SELF, 0, strrpos(PHP_SELF, '/')).'/'; 206 $cookieLife = 3600;Widget.php https://gitlab.com/yousafsyed/easternglamor | PHP | 417 lines
1<?php 2/** 388 { 389 return strtr(base64_encode($string), '+/=', ':_-'); 390 }Installer.php https://gitlab.com/Skull3x/GladiatorMine | PHP | 223 lines
1<?php 2 181 $config->set("enable-rcon", true); 182 $password = substr(base64_encode(@Utils::getRandomBytes(20, false)), 3, 10); 183 $config->set("rcon.password", $password);news.class.php https://github.com/iconifyit/SkyBlue-1.1.git | PHP | 152 lines
1<?php 2 45 46 $_POST['intro'] = base64_encode(stripslashes(urldecode($_POST['intro']))); 47 $_POST['text'] = base64_encode(stripslashes(urldecode($_POST['text']))); 106 $_POST['text'] = 107 base64_encode(stripslashes(urldecode($_POST['text']))); 108 }default.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 168 lines
37</script> 38<form action="<?php echo JRoute::_('index.php?option=com_menus&view=menus');?>" method="post" name="adminForm" id="adminForm"> 39<?php if (!empty( $this->sidebar)) : ?> 49 <label for="filter_search" class="element-invisible"><?php echo JText::_('COM_MENUS_MENU_SEARCH_FILTER');?></label> 50 <input type="text" name="filter_search" id="filter_search" placeholder="<?php echo JText::_('COM_MENUS_MENU_SEARCH_FILTER'); ?>" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" title="<?php echo JText::_('COM_MENUS_ITEMS_SEARCH_FILTER'); ?>" /> 51 </div> 125 <td class="center btns"> 126 <a class="badge badge-error" href="<?php echo JRoute::_('index.php?option=com_menus&view=items&menutype='.$item->menutype.'&filter_published=-2');?>"> 127 <?php echo $item->count_trashed; ?></a> 139 <?php if ($canEdit) : ?> 140 <a class="small modal" href="<?php echo JRoute::_('index.php?option=com_modules&task=module.edit&id='.$module->id.'&return='.$return.'&tmpl=component&layout=modal');?>" rel="{handler: 'iframe', size: {x: 1024, y: 450}, onClose: function() {window.location.reload()}}" title="<?php echo JText::_('COM_MENUS_EDIT_MODULE_SETTINGS');?>"> 141 <?php echo JText::sprintf('COM_MENUS_MODULE_ACCESS_POSITION', $this->escape($module->title), $this->escape($module->access_title), $this->escape($module->position)); ?></a> 149 <?php elseif ($modMenuId) : ?> 150 <a href="<?php echo JRoute::_('index.php?option=com_modules&task=module.add&eid=' . $modMenuId . '¶ms[menutype]='.$item->menutype); ?>"> 151 <?php echo JText::_('COM_MENUS_ADD_MENU_MODULE'); ?></a>password.c https://gitlab.com/envieidoc/advancedtomato2 | C | 460 lines
22 23#include "php.h" 24#if HAVE_CRYPT 48 49static char* php_password_get_algo_name(const php_password_algo algo) 50{ 59 60static php_password_algo php_password_determine_algo(const char *hash, const size_t len) 61{ 89 } 90 buffer = php_base64_encode((unsigned char*) str, (int) str_len, (int*) &ret_len); 91 if (ret_len < out_len) { 160 result = safe_emalloc(length, 1, 1); 161 if (php_password_salt_to64(buffer, raw_length, length, result) == FAILURE) { 162 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Generated salt too short");BigMath.php https://gitlab.com/x33n/ampache | PHP | 451 lines
1<?php 2 6 * 7 * PHP versions 4 and 5 8 * 20 */ 21require_once 'Auth/OpenID/CryptUtil.php'; 22 25 */ 26require_once 'Auth/OpenID.php'; 27 39 * 40 * @param integer $long The long number (can be a normal PHP 41 * integer or a number created by one of the available long number 124 { 125 return base64_encode($this->longToBinary($str)); 126 }setup_accounts.php https://github.com/zerustech/ezpublish.git | PHP | 247 lines
1<?php 2/** 13 14$dc = "dc=phpuc,dc=ez,dc=no"; 15$host = "phpuc.ez.no"; 37$chewbaccaDN = 38Ldap::add( $connection, 'chewbacca', '{MD5}' . base64_encode( pack( 'H*', md5( 'aaawwwwrrrkk' ) ) ), "ou=StarWars,{$dc}", 'Chewbacca', 'Chewbacca', 39 array( 'givenName' => 'Chewbacca', 43$hanSoloDN = 44Ldap::add( $connection, 'han.solo', '{MD5}' . base64_encode( pack( 'H*', md5( 'leiaishot' ) ) ), "ou=StarWars,{$dc}", 'Solo', 'Han Solo', 45 array( 'givenName' => 'Han', 49$princessLeiaDN = 50Ldap::add( $connection, 'leia', '{MD5}' . base64_encode( pack( 'H*', md5( 'bunhead' ) ) ), "ou=StarWars,{$dc}", 'Organa', 'Leia Organa', 51 array( 'givenName' => 'Leia', 55$darthVaderDN = 56Ldap::add( $connection, 'darth.vader', '{MD5}' . base64_encode( pack( 'H*', md5( 'whosyourdaddy' ) ) ), "ou=StarWars,{$dc}", 'Skywalker', 'Anakin Skywalker', 57 array( 'givenName' => 'Anakin',Client.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 427 lines
1<?php 2 134 $curlVersion = curl_version(); 135 return $this->userAgentPrefix . 'MaxMind-WS-API/' . Client::VERSION . ' PHP/' . PHP_VERSION . 136 ' curl/' . $curlVersion['version']; 143 'Authorization: Basic ' 144 . base64_encode($this->userId . ':' . $this->licenseKey), 145 'Accept: application/json'func.php https://bitbucket.org/atulsavaliya/all-in-one-social-post.git | PHP | 57 lines
1<?php 2 40 41 return base64_encode($img); 42 } else {Plain.php https://gitlab.com/rsilveira1987/Expresso | PHP | 96 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Plain.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 21 */ 26 */ 27require_once 'Zend/Mail/Protocol/Smtp.php'; 28 91 $this->_expect(334); 92 $this->_send(base64_encode(chr(0) . $this->_username . chr(0) . $this->_password)); 93 $this->_expect(235);utilities.class.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 399 lines
1<?php 2/* 26 * @copyright See the included NOTICE.md file for more information. 27 * @link http://aws.amazon.com/php/ PHP Developer Center 28 */ 104 105 return base64_encode($raw); 106 } 195 * @author Ryan Parman <ryan@getcloudfusion.com> 196 * @license http://www.php.net/license/3_01.txt PHP License 197 * @param integer $size (Required) Filesize in bytes. 334 * 335 * @license http://us.php.net/manual/en/function.base64-decode.php#81425 PHP License 336 * @param string $s (Required) The string to test. 380 * 381 * @author Alix Axel <http://www.php.net/manual/en/function.com-create-guid.php#99425> 382 * @license http://www.php.net/license/3_01.txt PHP Licenseactions.class.php https://github.com/sanjuro/Meteb.git | PHP | 142 lines
1<?php 2 99 // $newQuoteResponseObj = new newQuoteResponse(); 100 $newQuoteResponseString = base64_encode($metebPDF->output_html()); 101view.html.php https://gitlab.com/ppapadatis/Videolearn | PHP | 218 lines
1<?php 2/** 2/** 3 * @version SVN $Id: view.html.php 917 2013-01-16 10:58:32Z dhorsfall $ 4 * @package hwdMediaShare 41 hwdMediaShareFactory::load('utilities'); 42 JLoader::register('JHtmlHwdIcon', JPATH_COMPONENT . '/helpers/icon.php'); 43 JLoader::register('JHtmlString', JPATH_LIBRARIES.'/joomla/html/html/string.php'); 63 $this->assign('columns', $params->get('list_columns', 3)); 64 $this->assign('return', base64_encode(JFactory::getURI()->toString())); 65plg.inc.php https://github.com/drietsch/newcms.git | PHP | 304 lines
1<?php 2/** 21 22include_once ($_SERVER["DOCUMENT_ROOT"] . "/webEdition/we/include/we.inc.php"); 23include_once ($_SERVER["DOCUMENT_ROOT"] . "/webEdition/we/include/we_classes/html/we_button.inc.php"); 23include_once ($_SERVER["DOCUMENT_ROOT"] . "/webEdition/we/include/we_classes/html/we_button.inc.php"); 24include_once ($_SERVER['DOCUMENT_ROOT'] . "/webEdition/we/include/we_classes/html/we_multibox.inc.php"); 25include_once ($_SERVER['DOCUMENT_ROOT'] . "/webEdition/we/include/we_classes/html/we_htmlSelect.inc.php"); 25include_once ($_SERVER['DOCUMENT_ROOT'] . "/webEdition/we/include/we_classes/html/we_htmlSelect.inc.php"); 26include_once ($_SERVER["DOCUMENT_ROOT"] . "/webEdition/we/include/we_language/" . $GLOBALS["WE_LANGUAGE"] . "/cockpit.inc.php"); 27include_once ($_SERVER["DOCUMENT_ROOT"] . "/webEdition/we/include/we_widgets/dlg/prefs.inc.php"); 71function dn64(){ 72 return opener.base64_encode(dn()); 73} 108$_userName = $_SESSION['user']['Username']; 109@require ($_SERVER["DOCUMENT_ROOT"] . WE_TRACKER_DIR . "/includes/showme.inc.php"); 110//$_dns = getDomainList($_userName,$_md5passwd);invoice_a4.blade.php https://gitlab.com/laher01/factu40 | PHP | 338 lines
1@php 2 $establishment = $document->establishment; 17 18@endphp 19<html> 29 <div class="company_logo_box"> 30 <img src="data:{{mime_content_type(public_path("storage/uploads/logos/{$company->logo}"))}};base64, {{base64_encode(file_get_contents(public_path("storage/uploads/logos/{$company->logo}")))}}" alt="{{$company->name}}" class="company_logo" style="max-width: 150px;"> 31 </div> 225 @if($row->discounts) 226 @php 227 $total_discount_line = 0; 230 } 231 @endphp 232 {{ number_format($total_discount_line, 2) }}SharedAccessSignature.php https://github.com/vivid-planet/library.git | PHP | 305 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: SharedAccessSignature.php 20785 2010-01-31 09:43:03Z mikaelkael $ 20 */ 24 */ 25require_once 'Zend/Service/WindowsAzure/Credentials/CredentialsAbstract.php'; 26 29 */ 30require_once 'Zend/Service/WindowsAzure/Storage.php'; 31 34 */ 35require_once 'Zend/Http/Client.php'; 36 146 $stringToSign = implode("\n", $stringToSign); 147 $signature = base64_encode(hash_hmac('sha256', $stringToSign, $this->_accountKey, true)); 148upgrade.php https://bitbucket.org/moodle/moodle.git | PHP | 139 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 47 if ($apikey = get_config('block_tag_youtube', 'apikey')) { 48 require_once($CFG->libdir . '/google/lib.php'); 49 $client = get_google_client(); 125 126 $blockinstance->configdata = base64_encode(serialize($blockconfig)); 127 $DB->update_record('block_instances', $blockinstance);blog_item.php https://gitlab.com/ricardosanchez/prueba | PHP | 172 lines
1<?php 2/** 19 20<?php if ($this->item->state == 0 || strtotime($this->item->publish_up) > strtotime(JFactory::getDate()) 21 || ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != '0000-00-00 00:00:00' )) : ?> 22<div class="system-unpublished"> 23<?php endif; ?> 24<?php if ($params->get('show_title')) : ?> 25 <h2> 26 <?php if ($params->get('link_titles') && $params->get('access-view')) : ?> 27 <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>"> 27 <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>"> 28 <?php echo $this->escape($this->item->title); ?></a> 29 <?php else : ?> 129 endif; ?> 130 src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/> 131 </div>Encrypter.php https://gitlab.com/nmhieucoder/laravel_tintuc | PHP | 240 lines
1<?php 2 98 99 // Once we get the encrypted value we'll go ahead and base64_encode the input 100 // vector and create the MAC for the encrypted value so we can then verify 101 // its authenticity. Then, we'll JSON the data into the "payload" array. 102 $mac = $this->hash($iv = base64_encode($iv), $value); 103 109 110 return base64_encode($json); 111 }AuthenticationHttpTest.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 458 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 5 * 6 * @package PhpMyAdmin-test 7 */ 10 11require_once 'libraries/config.default.php'; 12require_once 'test/PMATestCase.php'; 16 * 17 * @package PhpMyAdmin-test 18 */ 141 $_REQUEST['old_usr'] = '1'; 142 $GLOBALS['cfg']['Server']['LogoutURL'] = 'http://phpmyadmin.net/logout'; 143 145 0, 0, 0, 146 array('Location: http://phpmyadmin.net/logout' . ((SID) ? '?' . SID : '')) 147 );Key.php https://github.com/drobbins/s3db.git | PHP | 316 lines
1<?php 2/** 9 * 10 * LICENSE: This source file is subject to version 3.0 of the PHP license 11 * that is available through the world-wide-web at the following URI: 11 * that is available through the world-wide-web at the following URI: 12 * http://www.php.net/license/3_0.txt. If you did not receive a copy of 13 * the PHP License and are unable to obtain it through the web, please 13 * the PHP License and are unable to obtain it through the web, please 14 * send a note to license@php.net so we can mail you a copy immediately. 15 * 19 * @copyright 2005, 2006 Alexander Valyalkin 20 * @license http://www.php.net/license/3_0.txt PHP License 3.0 21 * @version 1.2.0b 89 * @copyright 2005, 2006 Alexander Valyalkin 90 * @license http://www.php.net/license/3_0.txt PHP License 3.0 91 * @link http://pear.php.net/package/Crypt_RSAdefault.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 93 lines
13 <?php echo $this->folderList; ?> 14 <button type="button" id="upbutton" title="<?php echo JText::_('Directory Up') ?>"><?php echo JText::_('Up') ?></button> 15 </div> 20 </fieldset> 21 <iframe id="imageframe" name="imageframe" src="index.php?option=com_media&view=imagesList&tmpl=component&folder=<?php echo $this->state->folder?>"></iframe> 22 30 <select size="1" id="f_align" title="Positioning of this image"> 31 <option value="" selected="selected"><?php echo JText::_('Not Set') ?></option> 32 <option value="left"><?php echo JText::_('Left') ?></option> 78<?php if ($canUpload) : ?> 79 <form action="<?php echo JURI::base(); ?>index.php?option=com_media&task=file.upload&tmpl=component&<?php echo $this->session->getName().'='.$this->session->getId(); ?>&pop_up=1&<?php echo JUtility::getToken();?>=1" id="uploadForm" method="post" enctype="multipart/form-data"> 80 <fieldset> 90 </fieldset> 91 <input type="hidden" name="return-url" value="<?php echo base64_encode('index.php?option=com_media&view=images&tmpl=component&e_name='.JRequest::getCmd('e_name')); ?>" /> 92</form>lib.php https://github.com/danmarsden/moodle.git | PHP | 111 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 106 $DB->update_record('block_instances', ['id' => $instance->id, 107 'configdata' => base64_encode(serialize($config)), 'timemodified' => time()]); 108 }class-itsec-ipcheck.php https://gitlab.com/sokeara/ayana-journeys | PHP | 392 lines
1<?php 2 190 * 191 * there is a native PHP hmac function, but we use this one for 192 * the widest compatibility with older PHP versions 213 214 return base64_encode( $hmac ); 215helper.php https://gitlab.com/ppapadatis/Videolearn | PHP | 209 lines
1<?php 2/** 2/** 3 * @version $Id: helper.php 1665 2012-10-01 10:04:50Z lefteris.kavadas $ 4 * @package K2 11 12JLoader::register('K2HelperRoute', JPATH_SITE.DS.'components'.DS.'com_k2'.DS.'helpers'.DS.'route.php'); 13JLoader::register('K2HelperUtilities', JPATH_SITE.DS.'components'.DS.'com_k2'.DS.'helpers'.DS.'utilities.php'); 34 35 return base64_encode($url); 36 } 58 59 require_once (JPATH_SITE.DS.'components'.DS.'com_k2'.DS.'helpers'.DS.'permissions'.'.php'); 60 64 if (K2HelperPermissions::canAddItem()) 65 $profile->addLink = JRoute::_('index.php?option=com_k2&view=item&task=add&tmpl=component'); 66yandex_setup.php https://gitlab.com/Rad1calDreamer/honey | PHP | 463 lines
2//<title>Yandex</title> 3IncludeModuleLangFile($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/catalog/export_setup_templ.php'); 4 24 { 25 $XML_DATA = base64_encode(stripslashes($arOldSetupVars['XML_DATA'])); 26 } 28 { 29 $XML_DATA = base64_encode($arOldSetupVars['XML_DATA']); 30 } 134 "TITLE"=>GetMessage("CATI_ADM_RETURN_TO_LIST_TITLE"), 135 "LINK"=>"/bitrix/admin/cat_export_setup.php?lang=".LANGUAGE_ID, 136 "ICON"=>"btn_list", 198 ), 199 "ClearSelected(); BX('id_ifr').src='/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID=0&'+'".bitrix_sessid_get()."';", 200 "ClearSelected(); BX('id_ifr').src='/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID='+this[this.selectedIndex].value+'&'+'".bitrix_sessid_get()."';",Util.php https://bitbucket.org/sonnylazuardi/konsol.git | PHP | 389 lines
1<?php 2/** 2/** 3 * Slim - a micro PHP 5 framework 4 * 193 $iv = self::get_iv($expires, $secret); 194 $secureString = base64_encode(self::encrypt($value, $key, $iv, array( 195 'algorithm' => $algorithm, 241 * This method will construct and set the HTTP `Set-Cookie` header. Slim 242 * uses this method instead of PHP's native `setcookie` method. This allows 243 * more control of the HTTP header irrespective of the native implementation's 243 * more control of the HTTP header irrespective of the native implementation's 244 * dependency on PHP versions. 245 * 304 * instead of PHP's native `setcookie` method. This allows more control of the HTTP header 305 * irrespective of PHP's native implementation's dependency on PHP versions. 306 *