PageRenderTime 1628ms queryTime 88ms sortTime 616ms getByIdsTime 152ms findMatchingLines 237ms

100+ results results for 'php exp repo:pagelines/iBlogPro4' (1628 ms)

Not the results you expected?
ParameterTest.php https://gitlab.com/x33n/respond | PHP | 416 lines
                    
1<?php
                    
2
                    
120    /**
                    
121     * @expectedException InvalidArgumentException
                    
122     * @expectedExceptionMessage A [method] value must be specified for each complex filter
                    
                
Core.class.php https://gitlab.com/adamlwalker/generatedata | PHP | 511 lines
                    
46	// left as public, because they're often modified / accessed, and it's just too fussy otherwise. The
                    
47	// PHPDoc helps my IDE figure out what the hell each of them are
                    
48
                    
79	public static $dataTypePlugins;
                    
80	public static $exportTypePlugins;
                    
81
                    
208	 */
                    
209	public static function getDefaultExportType() {
                    
210		return self::$defaultExportType;
                    
313	/**
                    
314	 * Full installation of the program is determined by (a) the settings.php file existing and (b)
                    
315	 * the "installationComplete" setting value existing in the database. Note: this function assumes
                    
481		}
                    
482		self::$exportTypePlugins = ExportTypePluginHelper::getExportTypePlugins($runtimeContext);
                    
483	}
                    
                
bcm_umi_nand.c https://bitbucket.org/EaglesBlood_Development/eb_grouper.git | C | 579 lines
                    
6* under the terms of the GNU General Public License version 2, available at
                    
7* http://www.broadcom.com/licenses/GPLv2.php (the "GPL").
                    
8*
                    
10* software in any way with any other Broadcom software provided under a
                    
11* license other than the GPL, without Broadcom's express prior written
                    
12* consent.
                    
                
LimitTestCase.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 329 lines
                    
1<?php
                    
2/*
                    
5 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
                    
6 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
                    
7 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
28 * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
                    
29 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
30 * @category    Object Relational Mapping
                    
30 * @category    Object Relational Mapping
                    
31 * @link        www.phpdoctrine.org
                    
32 * @since       1.0
                    
                
string-util.cpp https://github.com/tstarling/hiphop-php.git | C++ | 461 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#include "hphp/runtime/base/string-util.h"
                    
18#include <algorithm>
                    
                
SYLK.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 450 lines
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
44 */
                    
45class PHPExcel_Reader_SYLK extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader
                    
46{
                    
213	/**
                    
214	 * Loads PHPExcel from file into PHPExcel instance
                    
215	 *
                    
216	 * @param 	string 		$pFilename
                    
217	 * @param	PHPExcel	$objPHPExcel
                    
218	 * @return 	PHPExcel
                    
220	 */
                    
221	public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel)
                    
222	{
                    
                
authentication_documentation.html https://github.com/grjones/trisano.git | HTML | 355 lines
                    
22                |
                    
23                <a href="expectation_documentation.html">Expectations</a>
                    
24                |
                    
198    function testSessionCookieSetBeforeForm() {
                    
199        $this-&gt;get('http://www.my-site.com/login.php');<strong>
                    
200        $this-&gt;assertCookie('SID');</strong>
                    
262    function testLoseAuthenticationAfterBrowserClose() {
                    
263        $this-&gt;get('http://www.my-site.com/login.php');
                    
264        $this-&gt;setField('u', 'Me');
                    
269        $this-&gt;restart();
                    
270        $this-&gt;get('http://www.my-site.com/restricted.php');
                    
271        $this-&gt;assertText('Access denied');</strong>
                    
340                |
                    
341                <a href="expectation_documentation.html">Expectations</a>
                    
342                |
                    
                
skeinforge_application.skeinforge_plugins.craft_plugins.export.html https://github.com/sialan/autonomous-sprayer.git | HTML | 216 lines
                    
18The export manual page is at:<br>
                    
19<a href="http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Export">http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Export</a><br>
                    
20 <br>
                    
52 <br>
                    
53<a name="Export Operations" id="Export Operations"></a><h3>Export Operations</h3>
                    
54
                    
54
                    
55Export presents the user with a choice of the export plugins in the export_plugins folder.  The chosen plugin will then modify the gcode or translate it into another format.  There is also the "Do Not Change Output" choice, which will not change the output.  An export plugin is a script in the export_plugins folder which has the getOutput function, the globalIsReplaceable variable and if it's output is not replaceable, the writeOutput function.<br>
                    
56 <br>
                    
147<dt><font face="helvetica, arial"><a href="skeinforge_application.skeinforge_plugins.craft_plugins.export.html#ExportRepository">ExportRepository</a>
                    
148</font></dt><dt><font face="helvetica, arial"><a href="skeinforge_application.skeinforge_plugins.craft_plugins.export.html#ExportSkein">ExportSkein</a>
                    
149</font></dt></dl>
                    
177
                    
178<dl><dt><a name="ExportSkein-getCraftedGcode"><strong>getCraftedGcode</strong></a>(self, exportRepository, gcodeText)</dt><dd><tt>Parse&nbsp;gcode&nbsp;text&nbsp;and&nbsp;store&nbsp;the&nbsp;export&nbsp;gcode.</tt></dd></dl>
                    
179
                    
                
OperationResponseParserTest.php https://gitlab.com/techniconline/kmc | PHP | 335 lines
                    
1<?php
                    
2
                    
243    /**
                    
244     * @expectedException \Guzzle\Service\Exception\ResponseClassException
                    
245     * @expectedExceptionMessage must exist
                    
260    /**
                    
261     * @expectedException \Guzzle\Service\Exception\ResponseClassException
                    
262     * @expectedExceptionMessage and implement
                    
                
CalculatorViewController.m https://github.com/oliverbarreto/CS193P-A4.git | Objective C | 376 lines
                    
157	
                    
158        display.text = [CalculatorBrain descriptionOfExpression:brain.expression];
                    
159        self.displayOperation.text = @"Op: ";
                    
185    //Call evaluateExpression:UssingVariablesValues:
                    
186    double myResult = [CalculatorBrain evaluateExpression:self.brain.expression
                    
187                                      usingVariableValues:self.brain.myVariables];
                    
205    //If not = present at the end of internalExpression
                    
206    if (![[CalculatorBrain descriptionOfExpression:self.brain.expression] hasSuffix:@"= "]) {
                    
207        [self.brain performOperation: @"="];
                    
210
                    
211    //Graph the expression (set initial zoom, evaluate the expression for all X axis values, draw points in graph, update graph view)
                    
212
                    
253        //Shows an AlertView Message with the current expression
                    
254        [self showAlertWithTitle:@"Current Expression" andMessage:[CalculatorBrain descriptionOfExpression:self.brain.expression]];
                    
255        
                    
                
fdt_ro.c https://gitlab.com/openbar/rpi-linux | C | 579 lines
                    
37 *     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
                    
38 *     CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
                    
39 *     INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
                    
330{
                    
331	const fdt32_t *php;
                    
332	int len;
                    
336	php = fdt_getprop(fdt, nodeoffset, "phandle", &len);
                    
337	if (!php || (len != sizeof(*php))) {
                    
338		php = fdt_getprop(fdt, nodeoffset, "linux,phandle", &len);
                    
338		php = fdt_getprop(fdt, nodeoffset, "linux,phandle", &len);
                    
339		if (!php || (len != sizeof(*php)))
                    
340			return 0;
                    
342
                    
343	return fdt32_to_cpu(*php);
                    
344}
                    
                
IWnoteboard_user_nova.tpl https://github.com/intraweb-modules13/IWnoteboard.git | Smarty Template | 355 lines
                    
44        if(f.m.value=="n"){
                    
45            f.action="index.php?module=IWnoteboard&func=crear"
                    
46        }else{
                    
46        }else{
                    
47            f.action="index.php?module=IWnoteboard&func=update"
                    
48        }
                    
62        var errorMsg = "";
                    
63        // regular expression to match requiredate format
                    
64        re = /^(\d{1,2})\/(\d{1,2})\/(\d{2})$/;
                    
                
TemperatureTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 447 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: TemperatureTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
22
                    
23if (!defined('PHPUnit_MAIN_METHOD')) {
                    
24    define('PHPUnit_MAIN_METHOD', 'Zend_Measure_TemperatureTest::main');
                    
29 */
                    
30require_once 'Zend/Measure/Temperature.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Registry.php';
                    
36
                    
44 */
                    
45class Zend_Measure_TemperatureTest extends PHPUnit_Framework_TestCase
                    
46{
                    
                
permissions.inc.php https://bitbucket.org/orchdork10159/dnsman.ly.git | PHP | 190 lines
                    
1<?php
                    
2/**
                    
62$_lang['perm.error_log_view_desc'] = 'Het bekijken van de error log.';
                    
63$_lang['perm.export_static_desc'] = 'Het exporteren van de site naar statisch HTML.';
                    
64$_lang['perm.file_create_desc'] = 'Om een bestand te maken.';
                    
                
class-config.php https://gitlab.com/iamgraeme/royalmile | PHP | 452 lines
                    
142
                    
143		if ( 'import-export' === $tool && filter_input( INPUT_POST, WPSEO_Export::NONCE_NAME ) !== null ) {
                    
144			$this->do_yoast_export();
                    
151	private function do_yoast_export() {
                    
152		check_admin_referer( WPSEO_Export::NONCE_ACTION, WPSEO_Export::NONCE_NAME );
                    
153
                    
159		$include_taxonomy = ! empty( $wpseo_post['include_taxonomy'] );
                    
160		$export           = new WPSEO_Export( $include_taxonomy );
                    
161
                    
179
                    
180		$export = new WPSEO_Export( $include_taxonomy );
                    
181		if ( $export->success ) {
                    
181		if ( $export->success ) {
                    
182			return $export->export_zip_url;
                    
183		}
                    
                
File.php https://github.com/grandison/budo16.git | PHP | 465 lines
                    
25 */
                    
26// require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
30 */
                    
31// require_once 'Zend/CodeGenerator/Php/Class.php';
                    
32
                    
38 */
                    
39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
                    
40{
                    
209            // require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
210            throw new Zend_CodeGenerator_Php_Exception('setDocblock() is expecting either a string, array or an instance of Zend_CodeGenerator_Php_Docblock');
                    
211        }
                    
293            // require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
294            throw new Zend_CodeGenerator_Php_Exception('Expecting either an array or an instance of Zend_CodeGenerator_Php_Class');
                    
295        }
                    
                
AbstractTableLayoutTest.php https://bitbucket.org/vvanuytven/php_auto.git | PHP | 509 lines
                    
1<?php
                    
2
                    
338    {
                    
339        $this->csrfProvider->expects($this->any())
                    
340            ->method('generateCsrfToken')
                    
471        // tag is missing. If someone renders a form with table layout
                    
472        // manually, she should call form_rest() explicitly within the <table>
                    
473        // tag.
                    
                
HTMLModuleManager.php https://github.com/squidjam/friendika.git | PHP | 403 lines
                    
1<?php
                    
2
                    
171        if (!$overload && isset($this->registeredModules[$module->name])) {
                    
172            trigger_error('Overloading ' . $module->name . ' without explicit overload parameter', E_USER_WARNING);
                    
173        }
                    
369
                    
370            // attribute value expansions
                    
371            $this->attrCollections->performInclusions($def->attr);
                    
371            $this->attrCollections->performInclusions($def->attr);
                    
372            $this->attrCollections->expandIdentifiers($def->attr, $this->attrTypes);
                    
373
                    
                
scalar_expression.cpp https://bitbucket.org/gnanakeethan/hiphop-php.git | C++ | 526 lines
                    
16
                    
17#include "hphp/compiler/expression/scalar_expression.h"
                    
18#include "hphp/util/parser/hphp.tab.hpp"
                    
46 int type, const std::string &value, bool quoted /* = false */)
                    
47    : Expression(EXPRESSION_CONSTRUCTOR_PARAMETER_VALUES(ScalarExpression)),
                    
48      m_type(type), m_value(value), m_originalValue(value), m_quoted(quoted) {
                    
54 bool quoted /* false */)
                    
55    : Expression(EXPRESSION_CONSTRUCTOR_PARAMETER_VALUES(ScalarExpression)),
                    
56      m_type(type), m_value(value), m_originalValue(value),
                    
62 CVarRef value, bool quoted /* = true */)
                    
63    : Expression(EXPRESSION_CONSTRUCTOR_PARAMETER_VALUES(ScalarExpression)),
                    
64      m_quoted(quoted) {
                    
94ExpressionPtr ScalarExpression::clone() {
                    
95  ScalarExpressionPtr exp(new ScalarExpression(*this));
                    
96  Expression::deepCopy(exp);
                    
                
Compass.php https://github.com/vivid-planet/library.git | PHP | 511 lines
                    
1<?php
                    
2require_once dirname(__FILE__) . '/../ExtensionInterface.php';
                    
212
                    
213            $ext = array_pop(explode('.', $file));
                    
214            if (isset($mimes[$ext])) {
                    
375        $args = func_get_args();
                    
376        $output = explode(',', array_pop($args));
                    
377
                    
378        for ($i = count($args) - 1; $i >= 0; $i--) {
                    
379            $current = explode(',', $args[$i]);
                    
380            $size = count($output);
                    
393    {
                    
394        $list = explode(',', $initial);
                    
395        foreach ($list as $k => $selector) {
                    
                
spatialreference_test.cpp https://github.com/libLAS/libLAS-1.6.git | C++ | 323 lines
                    
5// (See accompanying file LICENSE.txt or copy at
                    
6// http://www.opensource.org/licenses/bsd-license.php)
                    
7//
                    
200        const char* wkt_c = "COMPD_CS[\"WGS 84 + VERT_CS\",GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]],VERT_CS[\"NAVD88 height\",VERT_DATUM[\"North American Vertical Datum 1988\",2005,AUTHORITY[\"EPSG\",\"5103\"],EXTENSION[\"PROJ4_GRIDS\",\"g2003conus.gtx\"]],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"Up\",UP],AUTHORITY[\"EPSG\",\"5703\"]]]";
                    
201        const char* exp_gtiff = "Geotiff_Information:\n   Version: 1\n   Key_Revision: 1.0\n   Tagged_Information:\n      End_Of_Tags.\n   Keyed_Information:\n      GTRasterTypeGeoKey (Short,1): RasterPixelIsArea\n      GTModelTypeGeoKey (Short,1): ModelTypeGeographic\n      GeogAngularUnitsGeoKey (Short,1): Angular_Degree\n      GeogCitationGeoKey (Ascii,7): \"WGS 84\"\n      GeographicTypeGeoKey (Short,1): GCS_WGS_84\n      GeogInvFlatteningGeoKey (Double,1): 298.257223563    \n      GeogSemiMajorAxisGeoKey (Double,1): 6378137          \n      VerticalCitationGeoKey (Ascii,14): \"NAVD88 height\"\n      VerticalCSTypeGeoKey (Short,1): Unknown-5703\n      VerticalDatumGeoKey (Short,1): Unknown-5103\n      VerticalUnitsGeoKey (Short,1): Linear_Meter\n      End_Of_Keys.\n   End_Of_Geotiff.\n";
                    
202
                    
213
                    
214        ensure_equals("GeoTIFF Tags", gtiff, exp_gtiff );
                    
215
                    
                
wl_cfgp2p.h https://gitlab.com/SerenityS/slteskt_kernel | C Header | 429 lines
                    
8 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
10 * following added to such license:
                    
21 * software in any way with any other Broadcom software provided under a license
                    
22 * other than the GPL, without Broadcom's express prior written consent.
                    
23 *
                    
119	WLP2P_STATUS_IF_CHANGED,
                    
120	WLP2P_STATUS_LISTEN_EXPIRED,
                    
121	WLP2P_STATUS_ACTION_TX_COMPLETED,
                    
188		timer->function = func; \
                    
189		timer->expires = jiffies + msecs_to_jiffies(duration + extra_delay); \
                    
190		timer->data = (unsigned long) cfg; \
                    
235extern void
                    
236wl_cfgp2p_listen_expired(unsigned long data);
                    
237extern bool
                    
                
sqlite_driver.php https://gitlab.com/venenux/codeigniterpower | PHP | 660 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
7 * @package		CodeIgniter
                    
8 * @author		ExpressionEngine Dev Team
                    
9 * @copyright	Copyright (c) 2008 - 2011, EllisLab, Inc.
                    
29 * @category	Database
                    
30 * @author		ExpressionEngine Dev Team
                    
31 * @link		http://codeigniter.com/user_guide/database/
                    
658
                    
659/* End of file sqlite_driver.php */
                    
660/* Location: ./system/database/drivers/sqlite/sqlite_driver.php */
                    
                
setup.php https://github.com/Doap/xoops.git | PHP | 202 lines
                    
176define("_INSTALL_REQUIREMENT_SERVER_MOD_REWRITE", "Apache \"mod_rewrite\" module is required, check <a href='http://httpd.apache.org/docs/current/mod/mod_rewrite.html' title='mod_rewrite' target='_blank'>mod_rewrite</a> for details.");
                    
177define("_INSTALL_REQUIREMENT_SERVER_NOT_SUPPORTED", "The webserver is currently not supported, please use <a href='http://nginx.net' title='nginx' target='_blank'>nginx</a> or <a href='http://www.php.net/manual/en/book.apache.php' target='_blank' title='Apache'>Apache</a>.");
                    
178define("_INSTALL_REQUIREMENT_PHP", "PHP");
                    
179define("_INSTALL_REQUIREMENT_PDO", "PDO drivers");
                    
180define("_INSTALL_REQUIREMENT_PDO_PROMPT", "PHP Data Objects (PDO) extension with MySQL driver is required for regular Xoops Engine instances, check <a href='http://www.php.net/manual/en/book.pdo.php' title='PDO' target='_blank'>PDO manual</a> for details.");
                    
181define("_INSTALL_REQUIREMENT_PERSIST", "Persist options");
                    
190define("_INSTALL_EXTENSION_APC", "APC");
                    
191define("_INSTALL_EXTENSION_APC_PROMPT", 'The Alternative PHP Cache (APC) is highly recommended for high-performance senario. Refer to <a href="http://www.php.net/manual/en/intro.apc.php" target="_blank" title="APC introduction">APC introduction</a> for details.');
                    
192define("_INSTALL_EXTENSION_REDIS", "Redis");
                    
194define("_INSTALL_EXTENSION_MEMCACHED", "Memcached");
                    
195define("_INSTALL_EXTENSION_MEMCACHED_PROMPT", 'Memcached is highly recommended for high-performance yet robust distributed senario. Refer to <a href="http://www.php.net/manual/en/intro.memcached.php" target="_blank" title="Memcached introduction">Memcached introduction</a> for details.');
                    
196define("_INSTALL_EXTENSION_MEMCACHE", "Memcache");
                    
196define("_INSTALL_EXTENSION_MEMCACHE", "Memcache");
                    
197define("_INSTALL_EXTENSION_MEMCACHE_PROMPT", 'Memcache a widely used cache engine. Refer to <a href="http://www.php.net/manual/en/intro.memcache.php" target="_blank" title="Memcache introduction">Memcache introduction</a> for details.');
                    
198define("_INSTALL_EXTENSION_FILE", 'File');
                    
                
registry.php https://github.com/dg482/joomla-platform.git | PHP | 629 lines
                    
1<?php
                    
2/**
                    
11
                    
12JLoader::register('JRegistryFormat', dirname(__FILE__) . '/format.php');
                    
13
                    
107	{
                    
108		// Explode the registry path into an array
                    
109		if ($nodes = explode('.', $path))
                    
154		}
                    
155		// Explode the registry path into an array
                    
156		$nodes = explode('.', $path);
                    
326
                    
327		// Explode the registry path into an array
                    
328		if ($nodes = explode('.', $path))
                    
575
                    
576		$parts = explode('.', $path);
                    
577		if (count($parts) > 1)
                    
                
Url.php https://gitlab.com/x33n/respond | PHP | 548 lines
                    
1<?php
                    
2
                    
187        } else {
                    
188            list($host, $port) = explode(':', $host);
                    
189            $this->host = $host;
                    
350    {
                    
351        return array_slice(explode('/', $this->getPath()), 1);
                    
352    }
                    
                
Pager.php https://github.com/cawago/ci_campusync_auth.git | PHP | 576 lines
                    
1<?php
                    
2/*
                    
5 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
                    
6 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
                    
7 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
27 * @subpackage  Pager
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @version     $Revision$
                    
29 * @version     $Revision$
                    
30 * @link        www.phpdoctrine.org
                    
31 * @since       0.9
                    
                
Collection.php https://bitbucket.org/kdms/sh-magento.git | PHP | 371 lines
                    
1<?php
                    
2/**
                    
143            $subSelect = $this->getConnection()->select();
                    
144            $subSelect->from(array('existed_products' => $this->getTable('catalog/product')), new Zend_Db_Expr('1)'));
                    
145
                    
                
question_type_test.php https://bitbucket.org/moodle/moodle.git | PHP | 374 lines
                    
49
                    
50    public function assert_same_xml($expectedxml, $xml) {
                    
51        $this->assertEquals(str_replace("\r\n", "\n", $expectedxml),
                    
148
                    
149        $expected = \test_question_maker::make_question('ddwtos');
                    
150        $expected->stamp = $qdata->stamp;
                    
154
                    
155        $this->assertEquals($expected, $q);
                    
156    }
                    
242        $expectedq->defaultmark = 3;
                    
243        $expectedq->length = 1;
                    
244        $expectedq->penalty = 0.3333333;
                    
268
                    
269        $this->assert(new \question_check_specified_fields_expectation($expectedq), $q);
                    
270        $this->assertEquals($expectedq->hint, $q->hint);
                    
                
Command.php https://github.com/nicnocquee/PPION-Website.git | PHP | 512 lines
                    
1<?php
                    
2
                    
378            $name,
                    
379            $_SERVER['PHP_SELF'].' '.$name
                    
380        );
                    
467            $messages[] = '<comment>Help:</comment>';
                    
468            $messages[] = ' '.implode("\n ", explode("\n", $help))."\n";
                    
469        }
                    
493        $commandXML->appendChild($descriptionXML = $dom->createElement('description'));
                    
494        $descriptionXML->appendChild($dom->createTextNode(implode("\n ", explode("\n", $this->getDescription()))));
                    
495
                    
497        $help = $this->help;
                    
498        $helpXML->appendChild($dom->createTextNode(implode("\n ", explode("\n", $help))));
                    
499
                    
                
StorageServiceSettings.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 485 lines
                    
1<?php
                    
2
                    
10 * distributed under the License is distributed on an "AS IS" BASIS,
                    
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
                    
12 * See the License for the specific language governing permissions and
                    
14 * 
                    
15 * PHP version 5
                    
16 *
                    
18 * @package   WindowsAzure\Common\Internal
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright 2012 Microsoft Corporation
                    
21 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
22 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
23 */
                    
35 * @package   WindowsAzure\Common\Internal
                    
36 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
37 * @copyright 2012 Microsoft Corporation
                    
                
Particle3DTest.cpp https://github.com/dumganhar/cocos2d-x.git | C++ | 480 lines
                    
17 
                    
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
                    
19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
                    
36{
                    
37    ADD_TEST_CASE(Particle3DExplosionSystemDemo);
                    
38    ADD_TEST_CASE(Particle3DLineStreakDemo);
                    
78    listener->onTouchesEnded = CC_CALLBACK_2(Particle3DTestDemo::onTouchesEnded, this);
                    
79    _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this);
                    
80
                    
364
                    
365std::string Particle3DExplosionSystemDemo::subtitle() const 
                    
366{
                    
366{
                    
367    return "ExplosionSystem";
                    
368}
                    
                
XMLWriter.php https://gitlab.com/najomie/fit-hippie | PHP | 402 lines
                    
108    {
                    
109        if (in_array(XmlExportEngine::$exportOptions['xml_template_type'], array('custom', 'XmlGoogleMerchants'))) return true;
                    
110
                    
123        } else {
                    
124            if (XmlExportEngine::$is_preview && XmlExportEngine::$exportOptions['show_cdata_in_preview']) {
                    
125                $this->text('CDATABEGIN' . $value . 'CDATACLOSE');
                    
125                $this->text('CDATABEGIN' . $value . 'CDATACLOSE');
                    
126            } else if (XmlExportEngine::$is_preview && !XmlExportEngine::$exportOptions['show_cdata_in_preview']) {
                    
127                return $this->text($value);
                    
354
                    
355        if (XmlExportEngine::$is_preview && !XmlExportEngine::$exportOptions['show_cdata_in_preview']) {
                    
356            return $v;
                    
370        } else {
                    
371            if (XmlExportEngine::$is_preview && XmlExportEngine::$exportOptions['show_cdata_in_preview']) {
                    
372                return 'CDATABEGIN' . $v . 'CDATACLOSE';
                    
                
Grammar.php https://github.com/sergiosgc/Structures_Grammar.git | PHP | 407 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */
                    
11 *     where U is the set union operator and * is the Kleene star operator (the one
                    
12 *     used in regexps).
                    
13 *  d) A start symbol S that is a member of N
                    
                
Test.php https://github.com/KaRLsM/SIFO.git | PHP | 386 lines
                    
46
                    
47require_once 'PHPUnit/Util/Filesystem.php';
                    
48require_once 'PHPUnit/Util/Filter.php';
                    
49require_once 'PHPUnit/Util/Skeleton.php';
                    
50require_once 'PHPUnit/Util/Template.php';
                    
51
                    
51
                    
52PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');
                    
53
                    
57 * @category   Testing
                    
58 * @package    PHPUnit
                    
59 * @author     Sebastian Bergmann <sb@sebastian-bergmann.de>
                    
65 */
                    
66class PHPUnit_Util_Skeleton_Test extends PHPUnit_Util_Skeleton
                    
67{
                    
                
eventapi.html.md https://gitlab.com/ggsaavedra/PredictionIO | Markdown | 412 lines
                    
28```
                    
29$ PATH=$PATH:/home/yourname/PredictionIO/bin; export PATH
                    
30```
                    
109  </div>
                    
110  <div data-tab="PHP SDK" data-lang="php">
                    
111```php
                    
111```php
                    
112<?php
                    
113  require_once("vendor/autoload.php");
                    
204  </div>
                    
205  <div data-tab="PHP SDK" data-lang="php">
                    
206```php
                    
206```php
                    
207<?php
                    
208  require_once("vendor/autoload.php");
                    
                
MaildirFolderTest.php https://github.com/sidealice/zf2.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class MaildirFolderTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
203        try {
                    
204            // explicit call of __toString() needed for PHP < 5.2
                    
205            $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder');
                    
235
                    
236            // explicit call of __toString() needed for PHP < 5.2
                    
237            $found_folders[$folder->__toString()] = $localName;
                    
257
                    
258            // explicit call of __toString() needed for PHP < 5.2
                    
259            $found_folders[$folder->__toString()] = $localName;
                    
277
                    
278            // explicit call of __toString() needed for PHP < 5.2
                    
279            $found_folders[$folder->__toString()] = $localName;
                    
                
function_forumlist.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 386 lines
                    
39		$forum['icon'] = get_forumimg($forum['icon']);
                    
40		$forum['icon'] = '<a href="forum.php?mod=forumdisplay&fid='.$forum['fid'].'"><img src="'.$forum['icon'].'" align="left" alt="" /></a>';
                    
41	}
                    
44
                    
45	$forum['lastpost'] = is_string($forum['lastpost']) ? explode("\t", $forum['lastpost']) : $forum['lastpost'];
                    
46
                    
60		if($lastpost['author']) {
                    
61			$lastpost['author'] = '<a href="home.php?mod=space&username='.rawurlencode($lastpost['author']).'">'.$lastpost['author'].'</a>';
                    
62		}
                    
136				if($fid != $_G['forum']['fid']) {
                    
137					$visitedforums .= '<li><a href="forum.php?mod=forumdisplay&fid='.$fid.'">'.$_G['cache']['forums'][$fid]['name'].'</a></li>';
                    
138					if(++$count >= $_G['setting']['visitedforums']) {
                    
287	foreach(C::t('forum_forumrecommend')->fetch_all_by_fid($fid, $position) as $recommend) {
                    
288		if(($recommend['expiration'] && $recommend['expiration'] > TIMESTAMP) || !$recommend['expiration']) {
                    
289			if($recommend['filename'] && strexists($recommend['filename'], "\t")) {
                    
                
String.php https://github.com/almonk/Deadweight-CMS-1.git | PHP | 497 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * This software is provided 'as-is', without any express or implied warranty.
                    
7 * In no event will the authors be held liable for any damages arising from the use of this software.
                    
355					if (class_exists('Dwoo_Compiler', false) === false) {
                    
356						include DWOO_DIRECTORY . 'Dwoo/Compiler.php';
                    
357					}
                    
424		}
                    
425		return $dwoo->getCompileDir() . $this->compileId.'.d'.Dwoo::RELEASE_TAG.'.php';
                    
426	}
                    
454	/**
                    
455	 * returns some php code that will check if this template has been modified or not
                    
456	 *
                    
487		// enforce the correct mode for all directories created
                    
488		if (strpos(PHP_OS, 'WIN') !== 0 && $baseDir !== null) {
                    
489			$path = strtr(str_replace($baseDir, '', $path), '\\', '/');
                    
                
arr.php https://bitbucket.org/i1598/caiyun_stat.git | PHP | 602 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
122			// Split the keys by delimiter
                    
123			$keys = explode($delimiter, $path);
                    
124		}
                    
210		// Split the keys by delimiter
                    
211		$keys = explode($delimiter, $path);
                    
212
                    
351	/**
                    
352	 * Recursive version of [array_map](http://php.net/array_map), applies one or more
                    
353	 * callbacks to all elements in an array, including sub-arrays.
                    
403	 * Merges one or more arrays recursively and preserves all keys.
                    
404	 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)!
                    
405	 *
                    
552			// Create a static method callable command
                    
553			$command = explode('::', $command, 2);
                    
554		}
                    
                
ContributionPage.php https://github.com/michaelmcandrew/vaw.git | PHP | 354 lines
                    
1<?php
                    
2
                    
36
                    
37require_once 'CRM/Core/Form.php';
                    
38require_once 'CRM/Core/PseudoConstant.php';
                    
38require_once 'CRM/Core/PseudoConstant.php';
                    
39require_once 'CRM/Contribute/PseudoConstant.php';
                    
40
                    
115        // set up tabs
                    
116        require_once 'CRM/Contribute/Form/ContributionPage/TabHeader.php';
                    
117        CRM_Contribute_Form_ContributionPage_TabHeader::build( $this );
                    
224            //set defaults for pledgeBlock values.
                    
225            require_once 'CRM/Pledge/BAO/PledgeBlock.php';
                    
226            $pledgeBlockParams = array( 'entity_id'    => $this->_id,
                    
237            }
                    
238            require_once 'CRM/Core/BAO/CustomOption.php';
                    
239            if ( CRM_Utils_Array::value( 'pledge_frequency_unit', $pledgeBlockDefaults ) ) {
                    
                
Descarte.php https://gitlab.com/SFMSP/Hagape | PHP | 346 lines
                    
1<?php
                    
2
                    
154                $itensExcluidos = substr($data['idItensExcluidos'], 0, -1);
                    
155                $itensExcluidos = explode(',', $itensExcluidos);
                    
156                $itensExcluidos = $this->itemDescarteRepository->findIn($itensExcluidos);
                    
                
admin_review.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 501 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
2
                    
3require_once(APPPATH.'controllers/project.php');
                    
4
                    
463		
                    
464		$exp = explode( "|", $this->input->post("project_reviewer") );
                    
465		$reviewer = serialize($exp);
                    
469		$project_keywords_temp = $this->input->post( "project_keywords" );
                    
470		$project_keywords_exp = explode( ',', $project_keywords_temp );
                    
471		$project_keywordstrim = array();
                    
471		$project_keywordstrim = array();
                    
472		foreach( $project_keywords_exp as $k => $v ) {
                    
473			array_push($project_keywordstrim, trim($v));
                    
                
permissions.inc.php https://bitbucket.org/orchdork10159/dnsman.ly.git | PHP | 193 lines
                    
1<?php
                    
2/**
                    
65$_lang['perm.error_log_view_desc'] = 'Das Fehlerprotokoll anzeigen.';
                    
66$_lang['perm.export_static_desc'] = 'Die Site in statische HTML-Dateien exportieren.';
                    
67$_lang['perm.file_create_desc'] = 'Dateien anlegen.';
                    
                
CakeRoute.php https://github.com/gustavor/lore.git | PHP | 506 lines
                    
10 *
                    
11 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
12 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
17 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
18 * @link          http://cakephp.org CakePHP(tm) Project
                    
19 * @package       Cake.Routing.Route
                    
19 * @package       Cake.Routing.Route
                    
20 * @since         CakePHP(tm) v 1.3
                    
21 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
93/**
                    
94 * Check if a Route has been compiled into a regular expression.
                    
95 *
                    
102/**
                    
103 * Compiles the route's regular expression.  Modifies defaults property so all necessary keys are set
                    
104 * and populates $this->names with the named routing elements.
                    
                
SqlBase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 415 lines
                    
228    $error = FALSE;
                    
229    $exposed_options = $form_state->getValue(['pager_options', 'expose', 'items_per_page_options']);
                    
230    if (strpos($exposed_options, '.') !== FALSE) {
                    
251      if (array_search($items_per_page, $options) === FALSE) {
                    
252        $form_state->setErrorByName('pager_options][expose][items_per_page_options', $this->t("The <em>Exposed items per page</em> field's options must include the value from the <em>Items per page</em> field (@items_per_page).",
                    
253          ['@items_per_page' => $items_per_page])
                    
341  public function usesExposed() {
                    
342    return $this->itemsPerPageExposed() || $this->isOffsetExposed();
                    
343  }
                    
354    if ($this->itemsPerPageExposed()) {
                    
355      $options = explode(',', $this->options['expose']['items_per_page_options']);
                    
356      $sanitized_options = [];
                    
360        }
                    
361        if (!empty($this->options['expose']['items_per_page_options_all']) && !empty($this->options['expose']['items_per_page_options_all_label'])) {
                    
362          $sanitized_options['All'] = $this->options['expose']['items_per_page_options_all_label'];
                    
                
Resource.php https://github.com/rico/flextrine.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23568 2010-12-20 08:13:20Z mjh_ca $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
inputfilter.php https://github.com/chrisinammo/arthurmcneil.git | PHP | 551 lines
                    
2/**
                    
3 *  @class: InputFilter (PHP4 & PHP5, with comments)
                    
4 * @project: PHP Input Filter
                    
5 * @date: 10-05-2005
                    
6 * @version: 1.2.2_php4/php5
                    
7 * @author: Daniel Morris
                    
58	/**
                    
59	 * Method to be called by another php script. Processes for XSS and
                    
60	 * specified bad code.
                    
192				$isCloseTag		= true;
                    
193				list ($tagName)	= explode(' ', $currentTag);
                    
194				$tagName		= substr($tagName, 1);
                    
198				$isCloseTag		= false;
                    
199				list ($tagName)	= explode(' ', $currentTag);
                    
200			}
                    
                
fckconfig.js https://github.com/rvma07/siga.git | JavaScript | 335 lines
                    
57// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;	// ASP style server side code <%...%>
                    
58// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;	// PHP style server side code
                    
59// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;	// ASP.Net style tags <asp:control>
                    
89FCKConfig.SourcePopup	= false ;
                    
90FCKConfig.ToolbarStartExpanded	= true ;
                    
91FCKConfig.ToolbarCanCollapse	= true ;
                    
174FCKConfig.IeSpellDownloadUrl	= 'http://www.iespell.com/download.php' ;
                    
175FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ;	// Available extension: .php .cfm .pl
                    
176FCKConfig.FirefoxSpellChecker	= false ;
                    
285// Custom implementations should just ignore it.
                    
286var _FileBrowserLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
287var _QuickUploadLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
                
File.php https://github.com/Riges/KawaiViewModel.git | PHP | 468 lines
                    
25 */
                    
26require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
30 */
                    
31require_once 'Zend/CodeGenerator/Php/Class.php';
                    
32
                    
38 */
                    
39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
                    
40{
                    
209            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
210            throw new Zend_CodeGenerator_Php_Exception('setDocblock() is expecting either a string, array or an instance of Zend_CodeGenerator_Php_Docblock');
                    
211        }
                    
293            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
294            throw new Zend_CodeGenerator_Php_Exception('Expecting either an array or an instance of Zend_CodeGenerator_Php_Class');
                    
295        }
                    
                
Batch.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 514 lines
                    
1<?php
                    
2
                    
138   */
                    
139  public $exported_date;
                    
140
                    
409        ],
                    
410        'exported_date' => [
                    
411          'name' => 'exported_date',
                    
412          'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
                    
413          'title' => ts('Batch Exported Date'),
                    
414          'where' => 'civicrm_batch.exported_date',
                    
480  /**
                    
481   * Returns the list of fields that can be exported
                    
482   *
                    
486   */
                    
487  public static function &export($prefix = FALSE) {
                    
488    $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'batch', $prefix, []);
                    
                
innodb.lib.php https://gitlab.com/ctheilman92/Aging-In-Place | PHP | 411 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin-Engines
                    
7 */
                    
7 */
                    
8if (! defined('PHPMYADMIN')) {
                    
9    exit;
                    
14 *
                    
15 * @package PhpMyAdmin-Engines
                    
16 */
                    
362     * http://www.innodb.com/products/innodb_plugin
                    
363     * (do not confuse this with phpMyAdmin's storage engine plugins!)
                    
364     *
                    
376     * http://www.innodb.com/products/innodb_plugin
                    
377     * (do not confuse this with phpMyAdmin's storage engine plugins!)
                    
378     *
                    
                
web.php https://github.com/XioNoX/Benevolus.git | PHP | 509 lines
                    
1<?php
                    
2
                    
3/**
                    
4	Web pack for the PHP Fat-Free Framework
                    
5
                    
13
                    
14		@package Expansion
                    
15		@version 2.0.5
                    
79					$fdir=dirname($file);
                    
80					$rewrite=explode(
                    
81						'/',$path.($fdir!='.'?$fdir.'/':'').$url[2]
                    
205		if ($echo) {
                    
206			if (PHP_SAPI!='cli' && !headers_sent())
                    
207				header(self::HTTP_Content.': '.$mime[$ext[1]].'; '.
                    
246		// Check if valid route pattern
                    
247		list($method,$route)=explode(' ',$pattern,2);
                    
248		// Content divider
                    
                
Resource.php https://github.com/ianbogda/FileZ.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
auth_tkt.py https://bitbucket.org/eaviles/gobierno.git | Python | 380 lines
                    
122    far enough to determine what the expected digest should have
                    
123    been, expected is set.  This should not be shown by default,
                    
124    but can be useful for debugging.
                    
126    def __init__(self, msg, expected=None):
                    
127        self.expected = expected
                    
128        Exception.__init__(self, msg)
                    
156
                    
157    if expected != digest:
                    
158        raise BadTicket('Digest signature is not correct',
                    
158        raise BadTicket('Digest signature is not correct',
                    
159                        expected=(expected, digest))
                    
160
                    
348        cookies = [
                    
349            ('Set-Cookie', '%s=""; Expires="%s"; Path=/' % (self.cookie_name, expires)),
                    
350            ('Set-Cookie', '%s=""; Expires="%s"; Path=/; Domain=%s' %
                    
                
PersistentTokenBasedRememberMeServicesTest.php https://github.com/jdewit/symfony.git | PHP | 329 lines
                    
77        $tokenProvider
                    
78            ->expects($this->once())
                    
79            ->method('loadTokenBySeries')
                    
84        $userProvider
                    
85            ->expects($this->once())
                    
86            ->method('loadUserByUsername')
                    
147        $user
                    
148            ->expects($this->once())
                    
149            ->method('getRoles')
                    
279        $tokenProvider
                    
280            ->expects($this->once())
                    
281            ->method('createNewToken')
                    
294        $this->assertTrue($cookie->isHttpOnly());
                    
295        $this->assertTrue($cookie->getExpiresTime() > time() + 3590 && $cookie->getExpiresTime() < time() + 3610);
                    
296        $this->assertEquals('myfoodomain.foo', $cookie->getDomain());
                    
                
Response.php https://github.com/beberlei/zf2.git | PHP | 557 lines
                    
1<?php
                    
2
                    
117        416 => 'Requested range not satisfiable',
                    
118        417 => 'Expectation Failed',
                    
119        418 => 'I\'m a teapot',
                    
504     *
                    
505     * Currently requires PHP with zlib support
                    
506     *
                    
523     *
                    
524     * Currently requires PHP with zlib support
                    
525     *
                    
                
PhpClass.php https://github.com/adaykin/zf2.git | PHP | 562 lines
                    
148     *
                    
149     * @param Zend\CodeGenerator\Php\PhpFile $phpFile
                    
150     */
                    
150     */
                    
151    public function setPhpFile(PhpFile $phpFile)
                    
152    {
                    
333     * @param array|\Zend\CodeGenerator\Php\PhpProperty $property
                    
334     * @return \Zend\CodeGenerator\Php\PhpClass
                    
335     */
                    
393     * @param array $methods
                    
394     * @return \Zend\CodeGenerator\Php\PhpClass
                    
395     */
                    
558        $this->_properties = new PhpMember\MemberContainer(PhpMember\MemberContainer::TYPE_PROPERTY);
                    
559        $this->_methods = new PhpMember\MemberContainer(PhpMember\MemberContainer::TYPE_METHOD);
                    
560    }
                    
                
CookieJar.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 441 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage CookieJar
                    
18 * @version    $Id: CookieJar.php 24856 2012-06-01 01:10:47Z adamlundrigan $
                    
19 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
25 */
                    
26require_once "Zend/Uri.php";
                    
27/**
                    
29 */
                    
30require_once "Zend/Http/Cookie.php";
                    
31/**
                    
33 */
                    
34require_once "Zend/Http/Response.php";
                    
35
                    
142        } else {
                    
143            require_once 'Zend/Http/Exception.php';
                    
144            throw new Zend_Http_Exception( 'Supplient argument is not a valid cookie string or object' );
                    
                
VariantDataManager.java https://github.com/alexischr/gatk.git | Java | 287 lines
                    
53    public final ArrayList<String> annotationKeys;
                    
54    private final ExpandingArrayList<TrainingSet> trainingSets;
                    
55    private final VariantRecalibratorArgumentCollection VRAC;
                    
64        varianceVector = new double[this.annotationKeys.size()];
                    
65        trainingSets = new ExpandingArrayList<TrainingSet>();
                    
66    }
                    
133    public ExpandingArrayList<VariantDatum> getTrainingData() {
                    
134        final ExpandingArrayList<VariantDatum> trainingData = new ExpandingArrayList<VariantDatum>();
                    
135        for( final VariantDatum datum : data ) {
                    
148        // The return value is the list of training variants
                    
149        final ExpandingArrayList<VariantDatum> trainingData = new ExpandingArrayList<VariantDatum>();
                    
150
                    
183        numToAdd = Math.min(numToAdd, data.size());
                    
184        final ExpandingArrayList<VariantDatum> returnData = new ExpandingArrayList<VariantDatum>();
                    
185        for( int iii = 0; iii < numToAdd; iii++) {
                    
                
model_delete.test.php https://github.com/bb-dev/cakephp2x.git | PHP | 587 lines
                    
6 *
                    
7 * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
                    
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          https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
                    
15 * @package       cake
                    
16 * @subpackage    cake.tests.cases.libs.model
                    
17 * @since         CakePHP(tm) v 1.2.0.4206
                    
18 * @license       http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
                    
207		)));
                    
208		$this->assertEqual($result, $expected);
                    
209
                    
553		$result = $ThePaper->findById(2);
                    
554		$expected = array(
                    
555			array(
                    
                
ps_perm.php https://github.com/Shigaru/shigaru.git | PHP | 461 lines
                    
1<?php
                    
2if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
                    
4*
                    
5* @version $Id: ps_perm.php 1818 2009-06-23 19:07:21Z soeren_nb $
                    
6* @package VirtueMart
                    
8* @copyright Copyright (C) 2004-2009 soeren - All rights reserved.
                    
9* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
                    
10* VirtueMart is free software. This version may have been modified pursuant
                    
13* other free or open source software licenses.
                    
14* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
                    
15*
                    
185		else {
                    
186			$p1 = explode(",", $auth['perms']);
                    
187			$p2 = explode(",", $perms);
                    
240		if( $size==1 ) {
                    
241			$values[0] = $VM_LANG->_('PHPSHOP_SELECT');
                    
242		}
                    
                
adodb-session-clob.php https://github.com/usualoma/movabletype.git | PHP | 447 lines
                    
259-- Session: Only updating date - crc32 not changed</p>";
                    
260		$qry = "UPDATE $ADODB_SESSION_TBL SET expiry=$expiry WHERE sesskey='$key' AND expiry >= " . time();
                    
261		$rs = $ADODB_SESS_CONN->Execute($qry);
                    
265
                    
266	$arr = array('sesskey' => $key, 'expiry' => $expiry, 'data' => $val);
                    
267	if ($ADODB_SESSION_EXPIRE_NOTIFY) {
                    
298		if ($res && reset($res->fields) > 0) {
                    
299			$qry = sprintf("update %s set expiry = %d, data = %s where sesskey = '%s'", $ADODB_SESSION_TBL, $expiry, $lob_value, $key);
                    
300		} else {
                    
301			// insert
                    
302			$qry = sprintf("insert into %s (sesskey, expiry, data) values ('%s', %d, %s)", $ADODB_SESSION_TBL, $key, $expiry, $lob_value);
                    
303		}
                    
365		$t = time();
                    
366		$rs = $ADODB_SESS_CONN->Execute("SELECT expireref,sesskey FROM $ADODB_SESSION_TBL WHERE expiry < $t");
                    
367		$ADODB_SESS_CONN->SetFetchMode($savem);
                    
                
edit.php https://github.com/thisduck/wordpress.git | PHP | 294 lines
                    
29
                    
30	if ( strpos($sendback, 'post.php') !== false )
                    
31		$sendback = admin_url($post_new_file);
                    
37	} elseif ( ( $_REQUEST['action'] != -1 || $_REQUEST['action2'] != -1 ) && ( isset($_REQUEST['post']) || isset($_REQUEST['ids']) ) ) {
                    
38		$post_ids = isset($_REQUEST['post']) ? array_map( 'intval', (array) $_REQUEST['post'] ) : explode(',', $_REQUEST['ids']);
                    
39		$doaction = ($_REQUEST['action'] != -1) ? $_REQUEST['action'] : $_REQUEST['action2'];
                    
114	$submenu_file = "edit.php?post_type=$post_type";
                    
115	$post_new_file = "post-new.php?post_type=$post_type";
                    
116} else {
                    
163<?php screen_icon(); ?>
                    
164<h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="button add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php
                    
165if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
                    
170if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?>
                    
171<div id="message" class="updated"><p><strong><?php _e('This has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_REQUEST['posted'] ); ?>"><?php _e('View Post'); ?></a> | <a href="<?php echo get_edit_post_link( $_REQUEST['posted'] ); ?>"><?php _e('Edit Post'); ?></a></p></div>
                    
172<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
                    
                
config.cache.php https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters | PHP | 365 lines
                    
24  'cache_disabled' => '0',
                    
25  'cache_expires' => '0',
                    
26  'cache_format' => '0',
                    
31  'cache_resource' => '1',
                    
32  'cache_resource_expires' => '0',
                    
33  'cache_scripts' => '1',
                    
157  'phpthumb_nohotlink_text_message' => 'Off-server thumbnailing is not allowed',
                    
158  'phpthumb_nooffsitelink_enabled' => '',
                    
159  'phpthumb_nooffsitelink_erase_image' => '1',
                    
285  'phpthumbof.s3_key' => '',
                    
286  'phpthumbof.s3_secret_key' => '',
                    
287  'phpthumbof.s3_bucket' => '',
                    
288  'phpthumbof.s3_host_alias' => '',
                    
289  'phpthumbof.s3_path' => 'phpthumbof/',
                    
290  'phpthumbof.s3_cache_time' => '24',
                    
                
PersistenceBuilder.php https://github.com/l3l0/BehatExamples.git | PHP | 337 lines
                    
1<?php
                    
2/*
                    
3 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
                    
4 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
                    
5 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
                    
30 *
                    
31 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
32 * @link        www.doctrine-project.com
                    
317
                    
318        // Store a discriminator value if the embedded document is not mapped explicitely to a targetDocument
                    
319        if ( ! isset($embeddedMapping['targetDocument'])) {
                    
                
SqlitePlatform.php https://github.com/l3l0/BehatExamples.git | PHP | 469 lines
                    
1<?php
                    
2/*
                    
3 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
                    
4 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
                    
5 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
                    
35    /**
                    
36     * returns the regular expression operator
                    
37     *
                    
40     */
                    
41    public function getRegexpExpression()
                    
42    {
                    
52     */
                    
53    public function getNowExpression($type = 'timestamp')
                    
54    {
                    
73     */
                    
74    public function getTrimExpression($str, $pos = self::TRIM_UNSPECIFIED, $char = false)
                    
75    {
                    
                
tcp_cubic.c https://gitlab.com/karrei/inel-imx6-kernel | C | 497 lines
                    
9 * Available from:
                    
10 *  http://netsrv.csc.ncsu.edu/export/cubic_a_new_tcp_2008.pdf
                    
11 *
                    
16 * Available from:
                    
17 *  http://netsrv.csc.ncsu.edu/export/hystart_techreport_2008.pdf
                    
18 *
                    
19 * All testing results are available from:
                    
20 * http://netsrv.csc.ncsu.edu/wiki/index.php/TCP_Testing
                    
21 *
                    
                
index.php https://gitlab.com/Nilufarjahan/LabExam8 | PHP | 455 lines
                    
135            <li>
                    
136                <a href="../Birthday/create.php">
                    
137                    <span class="title">Add New</span>
                    
140            <li>
                    
141                <a href="../Birthday/index.php">
                    
142                    <span class="title">View List</span>
                    
248            <li>
                    
249                <a href="../SummaryOfOrganization/index.php">
                    
250                    <span class="title">View List</span>
                    
328                                <td><?php echo $oneData->birthday?></td>
                    
329                                <?php  echo "<td> <a href=\"edits.php?id=$oneData->id\"class=\"btn btn-info\" role=\"button\">Edit</a>  ";?>
                    
330                                <?php  echo " <a href=\"delete.php?id=$oneData->id\"class=\"btn btn-danger\" role=\"button\">Delete</a> ";?>
                    
331                            
                    
332                                <?php  echo " <a href=\"trash.php?id=$oneData->id\"class=\"btn btn-danger\" role=\"button\">Trash</a> </td> ";?>
                    
333                            </tr>
                    
                
trackback.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 372 lines
                    
11 * 
                    
12 * @version $Id: trackback_cls.php,v 1.2 2004/12/11 18:54:32 Ran Exp $
                    
13 * @copyright Copyright (c) 2004 Ran Aroussi (http://www.blogish.org)
                    
29	var $title = ''; // Retreives and holds $_POST['title'] (if not empty)
                    
30	var $expert = ''; // Retreives and holds $_POST['expert'] (if not empty)
                    
31
                    
150     * 	$tb_info = array('title' => string TRACKBACK_TITLE, 
                    
151     * 			'expert'	=> string TRACKBACK_EXPERT,
                    
152     * 			'permalink' => string PERMALINK_URL,
                    
207     * 
                    
208     * <code><?php
                    
209     * include('trackback_cls.php');
                    
211     * 
                    
212     * echo $trackback->rdf_autodiscover(string DATE, string TITLE, string EXPERT, string PERMALINK, string TRACKBACK [, string AUTHOR]);
                    
213     * ?></code>
                    
                
sitemailer_.php https://gitlab.com/nvtdn2006/azora | PHP | 384 lines
                    
1<?php
                    
2class SiteMailer
                    
52		$this->headers .= "MIME-Version: 1.0\r\n";		
                    
53		//$this->headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-" . $this->randomHash . "\"\r\n";
                    
54		$this->headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
                    
90			{
                    
91				$this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";
                    
92				$this->msgBody .= $this->attachment;				
                    
92				$this->msgBody .= $this->attachment;				
                    
93				$this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";
                    
94			}*/		
                    
130				break;	
                    
131			case 'sendPointshavebeenexpired':				
                    
132				$this->sendPointshavebeenexpired($property);			
                    
133				break;	
                    
134			case 'sendReminderforpointexpiration':				
                    
135				$this->sendReminderforpointexpiration($property);			
                    
                
Connection.php https://github.com/depage/depage-cms.git | PHP | 509 lines
                    
1<?php
                    
2
                    
206             * unidirectional heartbeat.  A response to an unsolicited Pong
                    
207             * frame is not expected.
                    
208             */
                    
496    /**
                    
497     * Returns a string export of the given binary data
                    
498     *
                    
501     */
                    
502    protected function export($data): string
                    
503    {
                    
503    {
                    
504        $export = '';
                    
505        foreach (str_split($data) as $chr) {
                    
505        foreach (str_split($data) as $chr) {
                    
506            $export .= '\\x' . ord($chr);
                    
507        }
                    
                
Listings.php https://github.com/ksecor/civicrm.git | PHP | 359 lines
                    
1<?php 
                    
2
                    
35
                    
36require_once 'CRM/Profile/Selector/Listings.php';
                    
37require_once 'CRM/Core/Selector/Controller.php';
                    
37require_once 'CRM/Core/Selector/Controller.php';
                    
38require_once 'CRM/Core/Page.php';
                    
39
                    
112        
                    
113        require_once 'CRM/Core/BAO/UFGroup.php';
                    
114        $this->_fields =
                    
154                $value = CRM_Utils_Request::retrieve( $name, 'String', $this, false, null, 'REQUEST' );
                    
155                if ( ! is_array($value) ) $value = explode(CRM_Core_BAO_CustomOption::VALUE_SEPERATOR, substr($value,1,-1));
                    
156            } else {
                    
161            if ( ( $name == 'group' || $name == 'tag' ) && ! empty( $value ) && ! is_array( $value ) ) {
                    
162                $v = explode( ',', $value );
                    
163                $value = array( );
                    
                
files.html https://github.com/mogria/mforms.git | HTML | 141 lines
                    
51Here is a list of all documented files with brief descriptions:<table>
                    
52  <tr><td class="indexkey">src/<b>loader.php</b> <a href="loader_8php_source.html">[code]</a></td><td class="indexvalue"></td></tr>
                    
53  <tr><td class="indexkey">src/<b>mforms.conf.php</b> <a href="mforms_8conf_8php_source.html">[code]</a></td><td class="indexvalue"></td></tr>
                    
53  <tr><td class="indexkey">src/<b>mforms.conf.php</b> <a href="mforms_8conf_8php_source.html">[code]</a></td><td class="indexvalue"></td></tr>
                    
54  <tr><td class="indexkey">src/checker/<b>Checker.php</b> <a href="Checker_8php_source.html">[code]</a></td><td class="indexvalue"></td></tr>
                    
55  <tr><td class="indexkey">src/checker/<b>CheckerChain.php</b> <a href="CheckerChain_8php_source.html">[code]</a></td><td class="indexvalue"></td></tr>
                    
55  <tr><td class="indexkey">src/checker/<b>CheckerChain.php</b> <a href="CheckerChain_8php_source.html">[code]</a></td><td class="indexvalue"></td></tr>
                    
56  <tr><td class="indexkey">src/checker/compare/<b>CompareChecker.php</b> <a href="CompareChecker_8php_source.html">[code]</a></td><td class="indexvalue"></td></tr>
                    
57  <tr><td class="indexkey">src/checker/compare/<b>EqualChecker.php</b> <a href="EqualChecker_8php_source.html">[code]</a></td><td class="indexvalue"></td></tr>
                    
75  <tr><td class="indexkey">src/checker/logical/<b>XorOperator.php</b> <a href="XorOperator_8php_source.html">[code]</a></td><td class="indexvalue"></td></tr>
                    
76  <tr><td class="indexkey">src/checker/regex/<b>AbstractRegularExpressionChecker.php</b> <a href="AbstractRegularExpressionChecker_8php_source.html">[code]</a></td><td class="indexvalue"></td></tr>
                    
77  <tr><td class="indexkey">src/checker/regex/<b>MailChecker.php</b> <a href="MailChecker_8php_source.html">[code]</a></td><td class="indexvalue"></td></tr>
                    
77  <tr><td class="indexkey">src/checker/regex/<b>MailChecker.php</b> <a href="MailChecker_8php_source.html">[code]</a></td><td class="indexvalue"></td></tr>
                    
78  <tr><td class="indexkey">src/checker/regex/<b>RegularExpressionChecker.php</b> <a href="RegularExpressionChecker_8php_source.html">[code]</a></td><td class="indexvalue"></td></tr>
                    
79  <tr><td class="indexkey">src/debug/<b>func.php</b> <a href="func_8php_source.html">[code]</a></td><td class="indexvalue"></td></tr>
                    
                
privacy_test.php https://github.com/andyjdavis/moodle.git | PHP | 318 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
27global $CFG;
                    
28require_once($CFG->dirroot . '/mod/assign/locallib.php');
                    
29require_once($CFG->dirroot . '/mod/assign/tests/privacy_test.php');
                    
129    /**
                    
130     * Test that feedback comments are exported for a user.
                    
131     */
                    
131     */
                    
132    public function test_export_feedback_user_data() {
                    
133        $this->resetAfterTest();
                    
159        $exportdata = new \mod_assign\privacy\assign_plugin_request_data($context, $assign, $grade, [], $user1);
                    
160        \assignfeedback_editpdf\privacy\provider::export_feedback_user_data($exportdata);
                    
161        // print_object($writer->get_files([get_string('privacy:path', 'assignfeedback_editpdf')]));
                    
                
index.php https://github.com/shamilcm/wireus.git | PHP | 291 lines
                    
4
                    
5<?php 
                    
6
                    
8        if($_SESSION['authuser']!=1)
                    
9                header("Location:../index.php");
                    
10      ?>  
                    
44
                    
45<?php
                    
46   include('../lib/header.php');
                    
54            <div id="pageleft">
                    
55              <?php
                    
56                        include('../lib/connectionfile.php');
                    
78                                        echo "<img src=\"$result_friendinfo[0]\" ></img>";
                    
79                                         $fname = explode(" ",$result_friendinfo[1]);
                    
80                                        echo "<div class=\"name\">".$fname[0]."</div></a>";
                    
                
sbhnddma.h https://github.com/netarchy/infuse4g-sources.git | C Header | 343 lines
                    
9 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
10 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
11 * following added to such license:
                    
22 * software in any way with any other Broadcom software provided under a license
                    
23 * other than the GPL, without Broadcom's express prior written consent.
                    
24 *
                    
24 *
                    
25 * $Id: sbhnddma.h,v 13.20.2.3 2010/10/14 22:21:29 Exp $
                    
26 */
                    
                
TemperatureTest.php https://github.com/christophervalles/Zend-Framework-Skeleton.git | PHP | 447 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: TemperatureTest.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
22
                    
23if (!defined('PHPUnit_MAIN_METHOD')) {
                    
24    define('PHPUnit_MAIN_METHOD', 'Zend_Measure_TemperatureTest::main');
                    
29 */
                    
30require_once 'Zend/Measure/Temperature.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Registry.php';
                    
36
                    
44 */
                    
45class Zend_Measure_TemperatureTest extends PHPUnit_Framework_TestCase
                    
46{
                    
                
json.php https://github.com/agnesrambaud/yacs.git | PHP | 373 lines
                    
1<?php
                    
2/**
                    
24 *
                    
25 * PHP versions 4 and 5
                    
26 *
                    
35 *
                    
36 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
                    
37 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
                    
55 * @license 	http://www.freebsd.org/copyright/freebsd-license.html
                    
56 * @link		http://pear.php.net/pepr/pepr-proposal-show.php?id=198
                    
57 */
                    
98 *				see argument 1 to JSON() above for array-parsing behavior.
                    
99 *				if var is a strng, note that encode() always expects it
                    
100 *				to be in ASCII or UTF-8 format!
                    
                
page.admin.webappSettings.tmpl https://github.com/snupple/torrentflux.git | Go Template | 312 lines
                    
15				<div align="center">
                    
16					<form name="theForm" action="admin.php?op=updateWebappSettings" method="post" onsubmit="return validateSettings('webapp')">
                    
17						<table cellpadding="5" cellspacing="0" border="0" width="100%">
                    
22										<li><strong>Form Auth</strong><br/>Standard form based authentication.</li>
                    
23										<li><strong>Form Auth + Cookie</strong><br/>Standard form based authentication using an 'autologin' cookie (expires after 30 days).</li>
                    
24										<li><strong>Form Auth + Image</strong><br/>Standard form based authentication using image based captcha validation (user must enter the characters displayed in a dynamically created image to validate).</li>
                    
39									<br /><br /><br />
                    
40									<img src="image.php?i=test" border="0" title="Test-Image">
                    
41								</td>
                    
                
wpsc-swfupload-handlers.js https://gitlab.com/endomorphosis/reservationtelco | JavaScript | 348 lines
                    
43	else {
                    
44		jQuery('#media-item-' + fileObj.id).load('async-upload.php', {attachment_id:serverData, fetch:f}, function(){prepareMediaItemInit(fileObj);updateMediaForm()});
                    
45	}
                    
61		// Tell the server to delete it. TODO: handle exceptions
                    
62		jQuery.ajax({url:'admin-ajax.php',type:'post',success:deleteSuccess,error:deleteError,id:fileObj.id,data:{
                    
63			id : this.id.replace(/[^0-9]/g,''),
                    
85	if ( data == '-1' )
                    
86		return itemAjaxError(this.id, 'You do not have permission. Has your session expired?');
                    
87	if ( data == '0' )
                    
150		output_html += "	<div id='gallery_image_"+image_id+"' class='previewimage'>\n";
                    
151		output_html += "		<a class='thickbox' rel='product_extra_image_"+image_id+"' href='admin.php?wpsc_admin_action=crop_image&amp;imagename="+image_src+"&amp;imgheight=480&amp;imgwidth=600&amp;product_id=103&amp;width=640&amp;height=342' id='extra_preview_link_"+image_id+"'>\n";
                    
152		output_html += "		<img title='Preview' alt='Preview' src='"+WPSC_IMAGE_URL+image_src+"' class='previewimage'/>\n";
                    
195			postVars = "product_id="+product_id+"&order="+order;
                    
196			jQuery.post( 'index.php?wpsc_admin_action=rearrange_images', postVars, function(returned_data) {
                    
197					eval(returned_data);
                    
                
lang_en.inc.php https://github.com/fishnix/vagrant_projects.git | PHP | 145 lines
                    
1<?php # $Id: lang_en.inc.php 2538 2009-07-04 00:16:18Z brockhaus $
                    
2
                    
5 *  @author Translator Name <yourmail@example.com>
                    
6 *  EN-Revision: Revision of lang_en.inc.php
                    
7 */
                    
26@define('PLUGIN_EVENT_SPAMBLOCK_ERROR_CAPTCHAS', 'You did not enter the correct string displayed in the spam-prevention image box. Please look at the image and enter the values displayed there.');
                    
27@define('PLUGIN_EVENT_SPAMBLOCK_ERROR_NOTTF', 'Captchas disabled on your server. You need GDLib and freetype libraries compiled to PHP, and need the .TTF files residing in your directory.');
                    
28
                    
47@define('PLUGIN_EVENT_SPAMBLOCK_REASON_IPFLOOD', 'IP-block');
                    
48@define('PLUGIN_EVENT_SPAMBLOCK_REASON_CAPTCHAS', 'Invalid captcha (Entered: %s, Expected: %s)');
                    
49@define('PLUGIN_EVENT_SPAMBLOCK_REASON_FORCEMODERATION', 'Auto-moderation after X days');
                    
71@define('PLUGIN_EVENT_SPAMBLOCK_FILTER_URLS', 'Wordfilter for URLs');
                    
72@define('PLUGIN_EVENT_SPAMBLOCK_FILTER_URLS_DESC', 'Regular Expressions allowed, separate strings by semicolons (;). You have to escape the @-sign with \\@.');
                    
73@define('PLUGIN_EVENT_SPAMBLOCK_FILTER_AUTHORS', 'Wordfilter for author names');
                    
                
Resource.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23567 2010-12-20 08:12:16Z mjh_ca $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
Editor.php https://github.com/adaykin/zf2.git | PHP | 601 lines
                    
1<?php
                    
2/**
                    
483        if (strstr($stylesheets, ';')) {
                    
484            $stylesheets = explode(';', $stylesheets);
                    
485        } elseif (!empty($stylesheets)) {
                    
543        $styleSheets = $this->getStyleSheets();
                    
544        $styleSheets = explode(';', $styleSheets);
                    
545        return in_array($styleSheet, $styleSheets);
                    
556        $styleSheets = $this->getStyleSheets();
                    
557        $styleSheets = explode(';', $styleSheets);
                    
558        if (false !== ($index = array_search($styleSheet, $styleSheets))) {
                    
                
RouteCollectionBuilderTest.php https://gitlab.com/ealexis.t/trends | PHP | 324 lines
                    
1<?php
                    
2
                    
18
                    
19class RouteCollectionBuilderTest extends \PHPUnit_Framework_TestCase
                    
20{
                    
24        $resolver = $this->getMock('Symfony\Component\Config\Loader\LoaderResolverInterface');
                    
25        $resolver->expects($this->once())
                    
26            ->method('resolve')
                    
30        $originalRoute = new Route('/foo/path');
                    
31        $expectedCollection = new RouteCollection();
                    
32        $expectedCollection->add('one_test_route', $originalRoute);
                    
32        $expectedCollection->add('one_test_route', $originalRoute);
                    
33        $expectedCollection->addResource(new FileResource(__DIR__.'/Fixtures/file_resource.yml'));
                    
34
                    
35        $resolvedLoader
                    
36            ->expects($this->once())
                    
37            ->method('load')
                    
                
permissions.inc.php https://github.com/goldsky/revolution.git | PHP | 189 lines
                    
1<?php
                    
2/**
                    
60$_lang['perm.error_log_view_desc'] = 'Untuk melihat log kesalahan.';
                    
61$_lang['perm.export_static_desc'] = 'Untuk mengekspor situs ke HTML statis.';
                    
62$_lang['perm.file_create_desc'] = 'Untuk membuat file.';
                    
                
phpBB.php https://bitbucket.org/adatux_/uakami.git | PHP | 538 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Implementation of phpBB converter.
                    
5 */
                    
5 */
                    
6class phpBB extends BBP_Converter_Base {
                    
7	function __construct() {
                    
121			'join_type'       => 'INNER',
                    
122			'join_expression' => 'USING (topic_id) WHERE posts.post_id = topics.topic_first_post_id',
                    
123			'to_type'         => 'topic',
                    
200			'join_type'       => 'INNER',
                    
201			'join_expression' => 'USING (tagid)',
                    
202			'to_type'         => 'tags',
                    
222			'join_type'       => 'LEFT',
                    
223			'join_expression' => 'USING (topic_id) WHERE posts.post_id != topics.topic_first_post_id',
                    
224			'to_type'         => 'reply'
                    
                
tbl_replace.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 414 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * usally called as form action from tbl_change.php to insert or update table rows
                    
7 *
                    
7 *
                    
8 * @version $Id: tbl_replace.php 12245 2009-02-23 08:36:34Z lem9 $
                    
9 *
                    
9 *
                    
10 * @todo 'edit_next' tends to not work as expected if used ... at least there is no order by
                    
11 *       it needs the original query and the row number and than replace the LIMIT clause
                    
54 */
                    
55require_once './libraries/common.inc.php';
                    
56
                    
69    $GLOBALS['js_include'][] = 'tbl_change.js';
                    
70    require_once './libraries/header.inc.php';
                    
71    require './tbl_change.php';
                    
                
Move.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 364 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP version 5                                                        |
                    
5// +----------------------------------------------------------------------+
                    
9// | This LICENSE is in the BSD license style.                            |
                    
10// | http://www.opensource.org/licenses/bsd-license.php                   |
                    
11// |                                                                      |
                    
28// | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS  |
                    
29// | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT    |
                    
30// | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS    |
                    
43//
                    
44// $Id: Move.php 12 2007-09-17 20:20:11Z killersoft $
                    
45//
                    
112 * <code>
                    
113 * <?php
                    
114 * require_once 'VersionControl/SVN.php';
                    
                
Entry.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 630 lines
                    
1<?php
                    
2
                    
10 * distributed under the License is distributed on an "AS IS" BASIS,
                    
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
                    
12 * See the License for the specific language governing permissions and
                    
14 * 
                    
15 * PHP version 5
                    
16 *
                    
18 * @package   WindowsAzure\Common\Internal\Atom
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright 2012 Microsoft Corporation
                    
21 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
22 * @link      https://github.com/WindowsAzure/azure-sdk-for-php
                    
23 */
                    
34 * @package   WindowsAzure\Common\Internal\Atom
                    
35 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
36 * @copyright 2012 Microsoft Corporation
                    
                
addons_modules.php https://bitbucket.org/mbaily/tremain.git | PHP | 468 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
2/**
                    
3 * ExpressionEngine - by EllisLab
                    
4 *
                    
4 *
                    
5 * @package		ExpressionEngine
                    
6 * @author		EllisLab Dev Team
                    
7 * @copyright	Copyright (c) 2003 - 2013, EllisLab, Inc.
                    
8 * @license		http://ellislab.com/expressionengine/user-guide/license.html
                    
9 * @link		http://ellislab.com
                    
17/**
                    
18 * ExpressionEngine Modules Administration Class
                    
19 *
                    
467/* End of file addons_modules.php */
                    
468/* Location: ./system/expressionengine/controllers/cp/addons_modules.php */
                    
                
PerformanceScenarioTest.cpp https://github.com/dumganhar/cocos2d-x.git | C++ | 438 lines
                    
15 
                    
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
                    
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
                    
77    listener->onTouchesMoved = CC_CALLBACK_2(ScenarioTest::onTouchesMoved, this);
                    
78    _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this);
                    
79
                    
                
BlockCommentSniff.php https://gitlab.com/0072016/PHP_CodeSniffer | PHP | 357 lines
                    
27 * @version   Release: @package_version@
                    
28 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
29 */
                    
64     */
                    
65    public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
66    {
                    
67        if ($this->_tabWidth === null) {
                    
68            $cliValues = $phpcsFile->phpcs->cli->getCommandLineValues();
                    
69            if (isset($cliValues['tabWidth']) === false || $cliValues['tabWidth'] === 0) {
                    
86        if ($tokens[$stackPtr]['code'] === T_DOC_COMMENT_OPEN_TAG) {
                    
87            $nextToken = $phpcsFile->findNext(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr + 1), null, true);
                    
88            $ignore    = array(
                    
105
                    
106            $prevToken = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr - 1), null, true);
                    
107            if ($tokens[$prevToken]['code'] === T_OPEN_TAG) {
                    
                
Index.php https://gitlab.com/tonycodes/october | PHP | 458 lines
                    
1<?php namespace Cms\Controllers;
                    
2
                    
92        $this->addJs('/modules/cms/assets/js/october.dragcomponents.js', 'core');
                    
93        $this->addJs('/modules/cms/assets/js/october.tokenexpander.js', 'core');
                    
94        $this->addJs('/modules/backend/formwidgets/codeeditor/assets/js/codeeditor.js', 'core');
                    
97
                    
98        // Preload Ace editor modes explicitly, because they could be changed dynamically
                    
99        // depending on a content block type
                    
284
                    
285    public function onExpandMarkupToken()
                    
286    {
                    
290
                    
291        // Can only expand components at this stage
                    
292        if ((!$type = post('tokenType')) && $type != 'component') {
                    
                
ThreeZero.php https://github.com/ksecor/civicrm.git | PHP | 271 lines
                    
1<?php
                    
2
                    
35
                    
36require_once 'CRM/Upgrade/Form.php';
                    
37require_once 'CRM/Core/OptionGroup.php';
                    
37require_once 'CRM/Core/OptionGroup.php';
                    
38require_once 'CRM/Core/OptionValue.php';
                    
39
                    
94        if (!CRM_Core_DAO::checkFieldExists('civicrm_report_instance', 'description')) {
                    
95            require_once 'CRM/Core/DAO/Domain.php';
                    
96            $domain = new CRM_Core_DAO_Domain;
                    
97            $domain->find(true);
                    
98            $locales = explode(CRM_Core_DAO::VALUE_SEPARATOR, $domain->locales);
                    
99
                    
109
                    
110        //We execute some part of php after sql and then again sql
                    
111        //So using conditions for skipping some part of sql CRM-4575
                    
                
UploadHandler.php https://github.com/zikula-modules/Reviews.git | PHP | 404 lines
                    
1<?php
                    
2/**
                    
45        $this->imageFileTypes = array('gif', 'jpeg', 'jpg', 'png', 'swf');
                    
46        $this->forbiddenFileTypes = array('cgi', 'pl', 'asp', 'phtml', 'php', 'php3', 'php4', 'php5', 'exe', 'com', 'bat', 'jsp', 'cfm', 'shtml');
                    
47        $this->allowedFileSizes = array('review' => array('coverUpload' => 102400));
                    
78        $fileName = $fileData[$fieldName]['name'];
                    
79        $fileNameParts = explode('.', $fileName);
                    
80        $extension = strtolower($fileNameParts[count($fileNameParts) - 1]);
                    
131        $fileName = $file['name'];
                    
132        $fileNameParts = explode('.', $fileName);
                    
133        $extension = strtolower($fileNameParts[count($fileNameParts) - 1]);
                    
184    
                    
185        $extensionarr = explode('.', $fileName);
                    
186        $meta = array();
                    
325                break;
                    
326            case UPLOAD_ERR_INI_SIZE: //uploaded file exceeds the upload_max_filesize directive in php.ini
                    
327                $errmsg = __('File too big', $dom);
                    
                
lexer.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 393 lines
                    
1<?php  // $Id: lexer.php,v 1.1 2005/01/31 07:39:03 moodler Exp $
                    
2
                    
2
                    
3/* PHP lexer code snarfed from the CVS tree for the lamplib project at 
                    
4 * http://sourceforge.net/projects/lamplib
                    
17    /**
                    
18     *    Compounded regular expression. Any of
                    
19     *    the contained patterns could match and
                    
83         *    Compounds the patterns into a single
                    
84         *    regular expression separated with the
                    
85         *    "or" operator. Caches the regex.
                    
165     *    Some optimisation to make the sure the
                    
166     *    content is only scanned by the PHP regex
                    
167     *    parser once. Lexer modes must not start
                    
                
filterlib.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 365 lines
                    
1<?php // $Id: filterlib.php,v 1.24.10.4 2009/02/18 11:02:11 stronk7 Exp $
                    
2      // Contains special functions that are particularly useful to filters
                    
65/// A list of open/close tags that we should not replace within
                    
66/// No reason why you can't put full preg expressions in here too
                    
67/// eg '<script(.+?)>' to match any type of script tag
                    
156
                    
157        /// Quote any regular expression characters and the delimiter in the work phrase to be searched
                    
158            $linkobject->work_phrase = preg_quote($linkobject->work_phrase, '/');
                    
171
                    
172    /// Regular expression modifiers
                    
173        $modifiers = ($linkobject->work_casesensitive) ? 's' : 'isu'; // works in unicode mode!
                    
178            $notfullmatches = array();
                    
179            $regexp = '/'.$filterinvalidprefixes.'('.$linkobject->work_phrase.')|('.$linkobject->work_phrase.')'.$filterinvalidsuffixes.'/'.$modifiers;
                    
180
                    
180
                    
181            preg_match_all($regexp,$text,$list_of_notfullmatches);
                    
182
                    
                
TrustRoot.php https://github.com/kbjr/EasyOpenID.git | PHP | 461 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
14
                    
15require_once OPENID_DIRECTORY.'Auth/OpenID/Discover.php';
                    
16
                    
17/**
                    
18 * A regular expression that matches a domain ending in a top-level domains.
                    
19 * Used in checking trust roots for sanity.
                    
134        $host = strtolower($parts['host']);
                    
135        $hostparts = explode('*', $host);
                    
136        switch (count($hostparts)) {
                    
213        
                    
214        $host_parts = explode('.', $parts['host']);
                    
215        if ($parts['wildcard']) {
                    
                
date_helper.php https://gitlab.com/ricoru21/py_incidencia | PHP | 611 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
7 * @package		CodeIgniter
                    
8 * @author		ExpressionEngine Dev Team
                    
9 * @copyright	Copyright (c) 2008 - 2011, EllisLab, Inc.
                    
23 * @category	Helpers
                    
24 * @author		ExpressionEngine Dev Team
                    
25 * @link		http://codeigniter.com/user_guide/helpers/date_helper.html
                    
68 *
                    
69 * This function is identical to PHPs date() function,
                    
70 * except that it allows date codes to be formatted using
                    
449
                    
450		$split = explode(' ', $datestr);
                    
451
                    
                
class-wpb-map.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 563 lines
                    
1<?php
                    
2/**
                    
12 * This class maps shortcodes settings to VC editors. You can manage add new shortcodes or manage default shortcodes
                    
13 * mapped in config/map.php. For developers it is possible to use API functions to add update settings attributes.
                    
14 *
                    
14 *
                    
15 * @see config/map.php
                    
16 * @see include/helpers/helpers_api.php
                    
59	 */
                    
60	protected static $tags_regexp;
                    
61
                    
126	 * You need to shortcode's tag and  settings to map correctly.
                    
127	 * Default shortcodes are mapped in config/map.php file.
                    
128	 * The best way is to call this method with "init" action callback function of WP.
                    
532	 */
                    
533	public static function getTagsRegexp() {
                    
534		if ( empty( self::$tags_regexp ) ) {
                    
                
Ods.php https://gitlab.com/rsilveira1987/Expresso | PHP | 400 lines
                    
1<?php
                    
2/**
                    
5 * @package     Tinebase
                    
6 * @subpackage    Export
                    
7 * @license     http://www.gnu.org/licenses/agpl.html AGPL Version 3
                    
17 * @package     Tinebase
                    
18 * @subpackage    Export
                    
19 */
                    
19 */
                    
20class Tinebase_Export_Spreadsheet_Ods extends Tinebase_Export_Spreadsheet_Abstract implements Tinebase_Record_IteratableInterface
                    
21{
                    
118    /**
                    
119     * generate export
                    
120     * 
                    
126        
                    
127        // build export table (use current table if using template)
                    
128        Tinebase_Core::getLogger()->info(__METHOD__ . '::' . __LINE__ . ' Creating export for ' . $this->_modelName . ' . ' . $this->_getDataTableName());
                    
                
 

Source

Language