PageRenderTime 671ms queryFilters 48ms Sphinxql 229ms GetByIds 430ms meta 0ms repositoryFilters 0ms languageFilters 0ms sourceFilters 0ms

58 results for 'php md5 repo:frapi/frapi' (671 ms)

Source

Language

Repository

Http.php git://github.com/frapi/frapi.git | PHP | 847 lines
1<?php
2/**
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Http.php 20096 2010-01-06 02:05:09Z bkarwin $
21 */
26 */
27// require_once 'Zend/Auth/Adapter/Interface.php';
28
117     * List of the supported digest algorithms. I want to support both MD5 and
118     * MD5-sess, but MD5-sess won't make it into the first version.
119     *
121     */
122    protected $_supportedAlgos = array('MD5');
123
124    /**
125     * The actual algorithm to use. Defaults to MD5
126     *
S3.php git://github.com/frapi/frapi.git | PHP | 900 lines
1<?php
2/**
33/**
34 * Amazon S3 PHP connection class
35 *
84             */
85            // require_once 'Zend/Service/Amazon/S3/Exception.php';
86            throw new Zend_Service_Amazon_S3_Exception('Invalid endpoint supplied');
402        if(!is_resource($data)) {
403            $headers['Content-MD5'] = base64_encode(md5($data, true));
404        }
412
413        // Check the MD5 Etag returned by S3 against and MD5 of the buffer
414        if ($response->getStatus() == 200) {
483        if(!isset($meta['Content-MD5'])) {
484            $headers['Content-MD5'] = base64_encode(md5_file($path, true));
485        }
File.php git://github.com/frapi/frapi.git | PHP | 507 lines
1<?php
2
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
21 * @version    $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $
22 */
26 */
27// require_once "Zend/OpenId/Consumer/Storage.php";
28
75                 */
76                // require_once 'Zend/OpenId/Exception.php';
77                throw new Zend_OpenId_Exception(
85             */
86            // require_once 'Zend/OpenId/Exception.php';
87            throw new Zend_OpenId_Exception(
95             */
96            // require_once 'Zend/OpenId/Exception.php';
97            throw new Zend_OpenId_Exception(
Md5.php git://github.com/frapi/frapi.git | PHP | 183 lines
1<?php
2/**
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
19 * @version   $Id: Md5.php 20442 2010-01-20 15:15:40Z matthew $
20 */
24 */
25// require_once 'Zend/Validate/File/Hash.php';
26
27/**
28 * Validator for the md5 hash of given files
29 *
34 */
35class Zend_Validate_File_Md5 extends Zend_Validate_File_Hash
36{
39     */
40    const DOES_NOT_MATCH = 'fileMd5DoesNotMatch';
41    const NOT_DETECTED   = 'fileMd5NotDetected';
Socket.php git://github.com/frapi/frapi.git | PHP | 1,084 lines
1<?php
2/**
8 *
9 * Copyright (c) 2008-2011, Alexey Borzov <avb@php.net>
10 * All rights reserved.
37 * @package    HTTP_Request2
38 * @author     Alexey Borzov <avb@php.net>
39 * @license    http://opensource.org/licenses/bsd-license.php New BSD License
39 * @license    http://opensource.org/licenses/bsd-license.php New BSD License
40 * @version    SVN: $Id: Socket.php 309921 2011-04-03 16:43:02Z avb $
41 * @link       http://pear.php.net/package/HTTP_Request2
46 */
47require_once 'HTTP/Request2/Adapter.php';
48
51 *
52 * This adapter uses only PHP sockets and will work on almost any PHP
53 * environment. Code is based on original HTTP_Request PEAR package.
Memcacheq.php git://github.com/frapi/frapi.git | PHP | 428 lines
1<?php
2/**
25 */
26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
27
76        if (!extension_loaded('memcache')) {
77            // require_once 'Zend/Queue/Exception.php';
78            throw new Zend_Queue_Exception('Memcache extension does not appear to be loaded');
96        if ($result === false) {
97            // require_once 'Zend/Queue/Exception.php';
98            throw new Zend_Queue_Exception('Could not connect to MemcacheQ');
235    {
236        // require_once 'Zend/Queue/Exception.php';
237        throw new Zend_Queue_Exception('count() is not supported in this adapter');
267            'body'       => $message,
268            'md5'        => md5($message),
269        );
Activemq.php git://github.com/frapi/frapi.git | PHP | 336 lines
1<?php
2/**
30 */
31// require_once 'Zend/Queue/Stomp/Client.php';
32
35 */
36// require_once 'Zend/Queue/Stomp/Frame.php';
37
100        ) {
101            // require_once 'Zend/Queue/Exception.php';
102            throw new Zend_Queue_Exception("Unable to authenticate to '".$options['scheme'].'://'.$options['host'].':'.$options['port']."'");
219                                'body'       => $response->getBody(),
220                                'md5'        => md5($response->getBody())
221                            );
270            'body'       => $message,
271            'md5'        => md5($message),
272            'handle'     => null
Array.php git://github.com/frapi/frapi.git | PHP | 355 lines
1<?php
2/**
25 */
26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
27
28/**
29 * Class for using a standard PHP array as a queue
30 *
148             */
149            // require_once 'Zend/Queue/Exception.php';
150            throw new Zend_Queue_Exception('Queue does not exist');
174        if (!$this->isExists($queue->getName())) {
175            // require_once 'Zend/Queue/Exception.php';
176            throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());
182            'body'       => $message,
183            'md5'        => md5($message),
184            'handle'     => null,
File.php git://github.com/frapi/frapi.git | PHP | 442 lines
1<?php
2
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
21 * @version    $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $
22 */
26 */
27// require_once "Zend/OpenId/Provider/Storage.php";
28
102    {
103        $name = $this->_dir . '/assoc_' . md5($handle);
104        $lock = @fopen($this->_dir . '/assoc.lock', 'w+');
141    {
142        $name = $this->_dir . '/assoc_' . md5($handle);
143        $lock = @fopen($this->_dir . '/assoc.lock', 'w+');
186    {
187        $name = $this->_dir . '/assoc_' . md5($handle);
188        $lock = @fopen($this->_dir . '/assoc.lock', 'w+');
Font.php git://github.com/frapi/frapi.git | PHP | 732 lines
1<?php
2/**
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Font.php 20211 2010-01-12 02:14:29Z yoshida@zend.co.jp $
21 */
422    /**
423     * Array whose keys are the md5 hash of the full paths on disk for parsed
424     * fonts. The values are the font objects themselves.
483            case Zend_Pdf_Font::FONT_COURIER:
484                // require_once 'Zend/Pdf/Resource/Font/Simple/Standard/Courier.php';
485                $font = new Zend_Pdf_Resource_Font_Simple_Standard_Courier();
488            case Zend_Pdf_Font::FONT_COURIER_BOLD:
489                // require_once 'Zend/Pdf/Resource/Font/Simple/Standard/CourierBold.php';
490                $font = new Zend_Pdf_Resource_Font_Simple_Standard_CourierBold();
493            case Zend_Pdf_Font::FONT_COURIER_OBLIQUE:
494                // require_once 'Zend/Pdf/Resource/Font/Simple/Standard/CourierOblique.php';
495                $font = new Zend_Pdf_Resource_Font_Simple_Standard_CourierOblique();
Crammd5.php git://github.com/frapi/frapi.git | PHP | 108 lines
1<?php
2/**
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Crammd5.php 20096 2010-01-06 02:05:09Z bkarwin $
21 */
26 */
27// require_once 'Zend/Mail/Protocol/Smtp.php';
28
30/**
31 * Performs CRAM-MD5 authentication
32 *
38 */
39class Zend_Mail_Protocol_Smtp_Auth_Crammd5 extends Zend_Mail_Protocol_Smtp
40{
64    /**
65     * @todo Perform CRAM-MD5 authentication with supplied credentials
66     *
File.php git://github.com/frapi/frapi.git | PHP | 999 lines
1<?php
2/**
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $
21 */
25 */
26// require_once 'Zend/Cache/Backend/ExtendedInterface.php';
27
30 */
31// require_once 'Zend/Cache/Backend.php';
32
59     * - Type of read control (only if read control is enabled). Available values are :
60     *   'md5' for a md5 hash control (best but slowest)
61     *   'crc32' for a crc32 hash control (lightly less safe but faster, better choice)
827     * @param  string $data        Data
828     * @param  string $controlType Type of control 'md5', 'crc32' or 'strlen'
829     * @throws Zend_Cache_Exception
Sqs.php git://github.com/frapi/frapi.git | PHP | 436 lines
1<?php
2/**
25 */
26// require_once 'Zend/Service/Amazon/Abstract.php';
27
30 */
31// require_once 'Zend/Crypt/Hmac.php';
32
116                } else {
117                    // require_once 'Zend/Service/Amazon/Sqs/Exception.php';
118                    throw new Zend_Service_Amazon_Sqs_Exception($result->Error->Code);
142        if ($result->Error->Code !== null) {
143            // require_once 'Zend/Service/Amazon/Sqs/Exception.php';
144            throw new Zend_Service_Amazon_Sqs_Exception($result->Error->Code);
247                'handle'     => (string)$message->ReceiptHandle,
248                'md5'        => (string)$message->MD5OfBody,
249                'body'       => urldecode((string)$message->Body),
Hmac.php git://github.com/frapi/frapi.git | PHP | 181 lines
1<?php
2/**
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Hmac.php 20096 2010-01-06 02:05:09Z bkarwin $
21 */
25 */
26// require_once 'Zend/Crypt.php';
27
28/**
29 * PHP implementation of the RFC 2104 Hash based Message Authentication Code
30 * algorithm.
56    /**
57     * Hashing algorithm; can be the md5/sha1 functions or any algorithm name
58     * listed in the output of PHP 5.1.2+ hash_algos().
61     */
62    protected static $_hashAlgorithm = 'md5';
63
Db.php git://github.com/frapi/frapi.git | PHP | 536 lines
1<?php
2/**
25 */
26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
27
30 */
31// require_once 'Zend/Db/Select.php';
32
35 */
36// require_once 'Zend/Db.php';
37
40 */
41// require_once 'Zend/Queue/Adapter/Db/Queue.php';
42
344        $msg->body     = $message;
345        $msg->md5      = md5($message);
346        // $msg->timeout = ??? @TODO
Attribute.php git://github.com/frapi/frapi.git | PHP | 420 lines
1<?php
2/**
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
19 * @version    $Id: Attribute.php 20096 2010-01-06 02:05:09Z bkarwin $
20 */
31{
32    const PASSWORD_HASH_MD5   = 'md5';
33    const PASSWORD_HASH_SMD5  = 'smd5';
209    /**
210     * Converts a PHP data type into its LDAP representation
211     *
212     * @param  mixed $value
213     * @return string|null - null if the PHP data type cannot be converted.
214     */
220    /**
221     * Converts an LDAP value into its PHP data type
222     *
DbTable.php git://github.com/frapi/frapi.git | PHP | 487 lines
1<?php
2/**
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: DbTable.php 20096 2010-01-06 02:05:09Z bkarwin $
21 */
26 */
27// require_once 'Zend/Auth/Adapter/Interface.php';
28
31 */
32// require_once 'Zend/Db/Adapter/Abstract.php';
33
36 */
37// require_once 'Zend/Auth/Result.php';
38
97    /**
98     * $_credentialTreatment - Treatment applied to the credential, such as MD5() or PASSWORD()
99     *
SlideShare.php git://github.com/frapi/frapi.git | PHP | 619 lines
1<?php
2/**
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: SlideShare.php 20096 2010-01-06 02:05:09Z bkarwin $
21 */
25 */
26// require_once 'Zend/Http/Client.php';
27
30 */
31// require_once 'Zend/Cache.php';
32
35 */
36// require_once 'Zend/Service/SlideShare/SlideShow.php';
37
325        if(!file_exists($filename) || !is_readable($filename)) {
326            // require_once 'Zend/Service/SlideShare/Exception.php';
327            throw new Zend_Service_SlideShare_Exception("Specified Slideshow for upload not found or unreadable");
Delicious.php git://github.com/frapi/frapi.git | PHP | 616 lines
1<?php
2
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
21 * @version    $Id: Delicious.php 20096 2010-01-06 02:05:09Z bkarwin $
22 */
27 */
28// require_once 'Zend/Rest/Client.php';
29
32 */
33// require_once 'Zend/Json/Decoder.php';
34
37 */
38// require_once 'Zend/Service/Delicious/SimplePost.php';
39
42 */
43// require_once 'Zend/Service/Delicious/Post.php';
44
SeleniumTestCase.php git://github.com/frapi/frapi.git | PHP | 1,318 lines
49require_once 'PHPUnit/Util/Filter.php';
50require_once 'PHPUnit/Util/Test.php';
51require_once 'PHPUnit/Util/XML.php';
51require_once 'PHPUnit/Util/XML.php';
52require_once 'PHPUnit/Extensions/SeleniumTestCase/Driver.php';
53
53
54PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');
55
68 */
69abstract class PHPUnit_Extensions_SeleniumTestCase extends PHPUnit_Framework_TestCase
70{
1245
1246            if ($localpath && md5_file($localpath) == $data['md5']) {
1247                $coverageWithLocalPaths[$localpath] = $data['coverage'];
1 2 3