PageRenderTime 3948ms queryTime 426ms sortTime 646ms getByIdsTime 131ms findMatchingLines 206ms

100+ results results for 'php define' (3948 ms)

Not the results you expected?
ChangeLog-4.8.md https://gitlab.com/ealexis.t/trends | Markdown | 220 lines
                    
8
                    
9* Fixed [phpunit-mock-objects/#301](https://github.com/sebastianbergmann/phpunit-mock-objects/issues/301): `PHPUnit_Framework_MockObject_MockBuilder::getMock()` calls `PHPUnit_Framework_TestCase::getMock()` with more arguments than accepted
                    
10
                    
42
                    
43* Reverted the changes introduced in PHPUnit 4.8.20 as the only thing the new version constraint in `composer.json` achieved was locking PHP 7 users to PHPUnit 4.8.19
                    
44
                    
48
                    
49* Changed PHP version constraint in `composer.json` to prevent installing PHPUnit 4.8 on PHP 7
                    
50* `phpunit.phar` will now refuse to work on PHP 7
                    
117* Fixed [#1898](https://github.com/sebastianbergmann/phpunit/issues/1898): `@covers` and `@uses` cannot be used for namespaced functions
                    
118* Fixed [#1901](https://github.com/sebastianbergmann/phpunit/issues/1901): `--self-update` updates to PHPUnit 5, even on PHP < 5.6
                    
119
                    
175
                    
176* Fixed [#1815](https://github.com/sebastianbergmann/phpunit/issues/1815): `phpunit --self-update` does not work in PHPUnit 4.8.0
                    
177
                    
                
metaboxes.php https://gitlab.com/webkod3r/tripolis | PHP | 272 lines
                    
127				<?php if ( 'page' == $tab_name && 'product' == $post_type ) : ?>
                    
128					<li<?php echo $class_active; ?>><a href="<?php echo $tab_name; ?>"><?php echo $tabs_names[$post_type]; ?></a></li>
                    
129				<?php else : ?>
                    
162			<div class="pyre_field">
                    
163				<input type="text" id="pyre_<?php echo $id; ?>" name="pyre_<?php echo $id; ?>" value="<?php echo get_post_meta( $post->ID, 'pyre_' . $id, true ); ?>" />
                    
164			</div>
                    
185						<?php $selected = ( $key == get_post_meta( $post->ID, 'pyre_' . $id, true ) ) ? 'selected="selected"' : ''; ?>
                    
186						<option <?php echo $selected; ?> value="<?php echo $key; ?>"><?php echo $option; ?></option>
                    
187					<?php endforeach; ?>
                    
238			<div class="pyre_field">
                    
239				<textarea cols="120" rows="<?php echo $rows; ?>" id="pyre_<?php echo $id; ?>" name="pyre_<?php echo $id; ?>"><?php echo $value; ?></textarea>
                    
240			</div>
                    
258				<div class="pyre_upload">
                    
259					<div><input name="pyre_<?php echo $id; ?>" class="upload_field" id="pyre_<?php echo $id; ?>" type="text" value="<?php echo get_post_meta( $post->ID, 'pyre_' . $id, true ); ?>" /></div>
                    
260					<div class="fusion_upload_button_container"><input class="fusion_upload_button" type="button" value="<?php _e( 'Browse', 'Avada' ); ?>" /></div>
                    
                
apc-handle.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 238 lines
                    
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        |
                    
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   +----------------------------------------------------------------------+
                    
17#ifndef incl_HPHP_APC_HANDLE_H_
                    
18#define incl_HPHP_APC_HANDLE_H_
                    
19
                    
22#include "hphp/util/atomic.h"
                    
23#include "hphp/util/hash.h"
                    
24#include "hphp/util/lock.h"
                    
27
                    
28#if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__))
                    
29# if defined(__LITTLE_ENDIAN__)
                    
                
LexerTest.php https://gitlab.com/judielsm/Handora | PHP | 246 lines
                    
1<?php
                    
2
                    
2
                    
3namespace PhpParser;
                    
4
                    
4
                    
5class LexerTest extends \PHPUnit_Framework_TestCase
                    
6{
                    
15    public function testError($code, $message) {
                    
16        if (defined('HHVM_VERSION')) {
                    
17            $this->markTestSkipped('HHVM does not throw warnings from token_get_all()');
                    
28
                    
29        $this->fail('Expected PhpParser\Error');
                    
30    }
                    
33        return array(
                    
34            array('<?php /*', 'Unterminated comment on line 1'),
                    
35            array('<?php ' . "\1", 'Unexpected character "' . "\1" . '" (ASCII 1) on unknown line'),
                    
                
csharp.php https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | PHP | 249 lines
                    
1<?php
                    
2/*************************************************************************************
                    
2/*************************************************************************************
                    
3 * csharp.php
                    
4 * ----------
                    
68        2 => array(
                    
69            '#elif', '#endif', '#endregion', '#else', '#error', '#define', '#if',
                    
70            '#line', '#region', '#undef', '#warning'
                    
                
homefeatured.php https://gitlab.com/ptisky/API_prestashop | PHP | 272 lines
                    
1<?php
                    
2/*
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/afl-3.0.php
                    
11* If you did not receive a copy of the license and are unable to
                    
22*  @copyright  2007-2015 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
26
                    
27if (!defined('_PS_VERSION_'))
                    
28	exit;
                    
115	{
                    
116		if (isset($this->context->controller->php_self) && $this->context->controller->php_self == 'index')
                    
117			$this->context->controller->addCSS(_THEME_CSS_DIR_.'product_list.css');
                    
                
standard.php https://gitlab.com/BambooTech/summa-examen | PHP | 389 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
37 */
                    
38defined('BASEPATH') OR exit('No direct script access allowed');
                    
39
                    
40/**
                    
41 * PHP ext/standard compatibility package
                    
42 *
                    
51
                    
52if (is_php('5.5'))
                    
53{
                    
63	 *
                    
64	 * @link	http://php.net/array_column
                    
65	 * @param	string	$array
                    
                
ro.php https://gitlab.com/ptisky/API_prestashop | PHP | 147 lines
                    
1<?php

                    
2/**

                    
31

                    
32    // Date time formats. See http://www.php.net/manual/en/function.strftime.php

                    
33    '_dateTimeFull' => "%A, %e %B, %Y %H:%M",

                    
65    "Non-existing directory type." => "Tip director non-existent.",

                    
66    "Undefined MIME types." => "Tipuri MIME nefedinite.",

                    
67    "Fileinfo PECL extension is missing." => "Extensia PECL lipsește.",

                    
                
shmop.c https://gitlab.com/envieidoc/advancedtomato2 | C | 377 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | PHP version 5                                                        |
                    
4   +----------------------------------------------------------------------+
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 1997-2014 The PHP Group                                |
                    
6   +----------------------------------------------------------------------+
                    
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        |
                    
113
                    
114#define PHP_SHMOP_GET_RES \
                    
115	shmop = zend_list_find(shmid, &type);	\
                    
127{
                    
128	struct php_shmop *shmop = (struct php_shmop *)rsrc->ptr;
                    
129
                    
                
sqlite3_driver.php https://gitlab.com/rezaul007/Hospital-information-bank | PHP | 360 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
37 */
                    
38defined('BASEPATH') OR exit('No direct script access allowed');
                    
39
                    
                
standard.php https://gitlab.com/crisol/api.clicktransferscancun | PHP | 389 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
37 */
                    
38defined('BASEPATH') OR exit('No direct script access allowed');
                    
39
                    
40/**
                    
41 * PHP ext/standard compatibility package
                    
42 *
                    
51
                    
52if (is_php('5.5'))
                    
53{
                    
63	 *
                    
64	 * @link	http://php.net/array_column
                    
65	 * @param	array	$array
                    
                
ResponseHeaderBag.php https://gitlab.com/kimting254/wbms | PHP | 322 lines
                    
1<?php
                    
2
                    
314
                    
315        // public if s-maxage is defined, private otherwise
                    
316        if (!isset($this->cacheControl['s-maxage'])) {
                    
                
Unit_test.php https://gitlab.com/gundambison/secure | PHP | 405 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
37 */
                    
38defined('BASEPATH') OR exit('No direct script access allowed');
                    
39
                    
147	 */
                    
148	public function run($test, $expected = TRUE, $test_name = 'undefined', $notes = '')
                    
149	{
                    
                
Abstract.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 362 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
44     *
                    
45     * This array contain default values for attributes which was redefine
                    
46     * value for store
                    
                
class.jetpack-twitter-cards.php https://gitlab.com/thisishayat/itv-2016 | PHP | 213 lines
                    
1<?php
                    
2
                    
7 *
                    
8 * @see /wp-content/blog-plugins/open-graph.php
                    
9 * @see https://dev.twitter.com/cards/overview
                    
19
                    
20		/** This action is documented in class.jetpack.php */
                    
21		if ( apply_filters( 'jetpack_disable_twitter_cards', false ) ) {
                    
29		$site_tag = self::site_tag();
                    
30		/** This action is documented in modules/sharedaddy/sharing-sources.php */
                    
31		$site_tag = apply_filters( 'jetpack_sharing_twitter_via', $site_tag, ( is_singular() ? $post->ID : null ) );
                    
31		$site_tag = apply_filters( 'jetpack_sharing_twitter_via', $site_tag, ( is_singular() ? $post->ID : null ) );
                    
32		/** This action is documented in modules/sharedaddy/sharing-sources.php */
                    
33		$site_tag = apply_filters( 'jetpack_twitter_cards_site_tag', $site_tag, $og_tags );
                    
62		if ( empty( $og_tags['twitter:image'] ) && empty( $og_tags['twitter:image:src'] ) ) {
                    
63			if ( ! class_exists( 'Jetpack_Media_Summary' ) && defined('IS_WPCOM') && IS_WPCOM ) {
                    
64				include( WP_CONTENT_DIR . '/lib/class.wpcom-media-summary.php' );
                    
                
Value.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 288 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * LICENSE: This source file is subject to version 2.02 of the PHP license,
                    
8 * that is bundled with this package in the file LICENSE, and is available at
                    
8 * that is bundled with this package in the file LICENSE, and is available at
                    
9 * through the world-wide-web at http://www.php.net/license/2_02.txt.  If you
                    
10 * did not receive a copy of the PHP license and are unable to obtain it
                    
10 * did not receive a copy of the PHP license and are unable to obtain it
                    
11 * through the world-wide-web, please send a note to license@php.net so we can
                    
12 * mail you a copy immediately.
                    
20 * @copyright  2003-2007 The PHP Group
                    
21 * @license    http://www.php.net/license/2_02.txt  PHP License 2.02
                    
22 * @link       http://pear.php.net/package/SOAP
                    
                
TimeType.php https://gitlab.com/freebird/WebApp | PHP | 250 lines
                    
1<?php
                    
2
                    
147            // we need to force the browser to display the seconds by
                    
148            // adding the HTML attribute step if not already defined.
                    
149            // Otherwise the browser will not display and so not send the seconds
                    
                
debugger.test.php https://github.com/bostonphp/Boston-PHP-Checkin-Raffle-App.git | PHP | 336 lines
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP Project
                    
15 * @package       cake
                    
16 * @subpackage    cake.tests.cases.libs
                    
17 * @since         CakePHP(tm) v 1.2.0.5432
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
51			if (file_exists(APP . DS . 'vendors' . DS . 'simpletest' . DS . 'reporter.php')) {
                    
52				define('SIMPLETESTVENDORPATH', 'APP' . DS . 'vendors');
                    
53			} else {
                    
53			} else {
                    
54				define('SIMPLETESTVENDORPATH', 'CORE' . DS . 'vendors');
                    
55			}
                    
                
package-summary.html https://bitbucket.org/apegroup_freddielusthed/apegroup-facebook-android.git | HTML | 211 lines
                    
91<TD WIDTH="15%"><B><A HREF="../../../com/facebook/model/GraphLocation.html" title="interface in com.facebook.model">GraphLocation</A></B></TD>
                    
92<TD>Provides a strongly-typed representation of a Location as defined by the Graph API.</TD>
                    
93</TR>
                    
95<TD WIDTH="15%"><B><A HREF="../../../com/facebook/model/GraphMultiResult.html" title="interface in com.facebook.model">GraphMultiResult</A></B></TD>
                    
96<TD>Defines a GraphObject that represents the result of a query that returns multiple GraphObjects
                    
97 nested under a "data" property.</TD>
                    
108<TR BGCOLOR="white" CLASS="TableRowColor">
                    
109<TD WIDTH="15%"><B><A HREF="../../../com/facebook/model/GraphPlace.html" title="interface in com.facebook.model">GraphPlace</A></B></TD>
                    
110<TD>Provides a strongly-typed representation of a Place as defined by the Graph API.</TD>
                    
113<TD WIDTH="15%"><B><A HREF="../../../com/facebook/model/GraphUser.html" title="interface in com.facebook.model">GraphUser</A></B></TD>
                    
114<TD>Provides a strongly-typed representation of a User as defined by the Graph API.</TD>
                    
115</TR>
                    
                
Configurable.php https://bitbucket.org/acidel/buykoala.git | PHP | 222 lines
                    
1<?php

                    
2/**

                    
9 * It is also available through the world-wide-web at this URL:

                    
10 * http://opensource.org/licenses/osl-3.0.php

                    
11 * If you did not receive a copy of the license and are unable to

                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)

                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)

                    
25 */

                    
60    /**

                    
61     * Reindex temporary (price result data) for defined product(s)

                    
62     *

                    
                
VaultTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 266 lines
                    
1<?php
                    
2/**
                    
24 * Class VaultTest
                    
25 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
26 */
                    
26 */
                    
27class VaultTest extends \PHPUnit_Framework_TestCase
                    
28{
                    
53     * @expectedException \LogicException
                    
54     * @expectedExceptionMessage Token metadata should be defined
                    
55     */
                    
                
CustomGroup.php https://github.com/michaelmcandrew/vaw.git | PHP | 248 lines
                    
1<?php
                    
2
                    
35 * @copyright CiviCRM LLC (c) 2004-2011
                    
36 * @version $Id: CustomGroup.php 32998 2011-03-14 22:00:35Z kurund $
                    
37 */
                    
41 */
                    
42require_once 'api/v2/utils.php';
                    
43
                    
90    
                    
91    require_once 'CRM/Utils/String.php';
                    
92    if (! isset( $params['title'] ) ||
                    
104    
                    
105    require_once 'CRM/Core/BAO/CustomGroup.php';
                    
106    $customGroup = CRM_Core_BAO_CustomGroup::create($params);                             
                    
143    // convert params array into Object
                    
144    require_once 'CRM/Core/DAO/CustomGroup.php';
                    
145    $values = new CRM_Core_DAO_CustomGroup( );
                    
                
RedirectRequestSubscriberTest.php https://gitlab.com/Drulenium-bot/redirect | PHP | 280 lines
                    
1<?php
                    
2
                    
12use Drupal\Tests\UnitTestCase;
                    
13use PHPUnit_Framework_MockObject_MockObject;
                    
14use Symfony\Component\HttpFoundation\RedirectResponse;
                    
35    $request_query = array('key' => 'val');
                    
36    // The query defined by the redirect entity.
                    
37    $redirect_query = array('dummy' => 'value');
                    
37    $redirect_query = array('dummy' => 'value');
                    
38    // The expected final query. This query must contain values defined
                    
39    // by the redirect entity and values from the accessed url.
                    
181   *
                    
182   * @return PHPUnit_Framework_MockObject_MockObject
                    
183   *   The redirect repository.
                    
204   *
                    
205   * @return PHPUnit_Framework_MockObject_MockObject
                    
206   *   The mocked redirect object.
                    
                
AjaxContextTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 265 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: AjaxContextTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
23// Call Zend_Controller_Action_Helper_AjaxContextTest::main() if this source file is executed directly.
                    
24if (!defined("PHPUnit_MAIN_METHOD")) {
                    
25    define("PHPUnit_MAIN_METHOD", "Zend_Controller_Action_Helper_AjaxContextTest::main");
                    
28
                    
29require_once 'Zend/Controller/Action/Helper/AjaxContext.php';
                    
30
                    
30
                    
31require_once 'Zend/Controller/Action.php';
                    
32require_once 'Zend/Controller/Action/HelperBroker.php';
                    
33require_once 'Zend/Controller/Front.php';
                    
34require_once 'Zend/Controller/Request/Http.php';
                    
35require_once 'Zend/Controller/Request/Simple.php';
                    
                
en.php https://github.com/masuman/elgg-1.git | PHP | 217 lines
                    
1<?php
                    
2	/**
                    
184	
                    
185			'dgroups:nowidgets' => 'No widgets have been defined for this group.',
                    
186	
                    
                
RuleSetCompiler.js https://gitlab.com/nguyenthehiep3232/marius | JavaScript | 379 lines
                    
1/*
                    
2	MIT License http://www.opensource.org/licenses/mit-license.php
                    
3	Author Tobias Koppers @sokra
                    
88						} else {
                    
89							current = undefined;
                    
90							break;
                    
92					}
                    
93					if (current !== undefined) {
                    
94						if (!condition.fn(current)) return false;
                    
98					const value = data[p];
                    
99					if (value !== undefined) {
                    
100						if (!condition.fn(value)) return false;
                    
165		const unhandledProperties = new Set(
                    
166			Object.keys(rule).filter(key => rule[key] !== undefined)
                    
167		);
                    
                
MigrationTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 271 lines
                    
1<?php
                    
2
                    
200/**
                    
201 * Defines the TestMigration class.
                    
202 */
                    
263/**
                    
264 * Defines the RequirementsAwareSourceInterface.
                    
265 */
                    
268/**
                    
269 * Defines the RequirementsAwareDestinationInterface.
                    
270 */
                    
                
ShellDispatcher.php https://github.com/suzuki/candycane.git | PHP | 332 lines
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @since         CakePHP(tm) v 2.0
                    
86			define('CAKE_CORE_INCLUDE_PATH', dirname(dirname(dirname(__FILE__))));
                    
87			define('CAKEPHP_SHELL', true);
                    
88			if (!defined('CORE_PATH')) {
                    
88			if (!defined('CORE_PATH')) {
                    
89				define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
                    
90			}
                    
101		if (!$this->_bootstrap()) {
                    
102			$message = "Unable to load CakePHP core.\nMake sure " . DS . 'lib' . DS . 'Cake exists in ' . CAKE_CORE_INCLUDE_PATH;
                    
103			throw new CakeException($message);
                    
                
dannys_temperatureRGB_setupFINISHEDMODULAR.pde https://github.com/DannyGITHUB/Danny-Huynh-3292443.git | Processing | 232 lines
                    
151/*
                    
152 * getVoltage() - returns the voltage on the analog input defined by
                    
153 * pin
                    
160// Following code used was sourced from Action Script;
                    
161// http://www.actionscript.org/forums/showthread.php3?t=15155
                    
162// Code functions as a converter for changing a hue, saturation and brightness 
                    
                
Atom.js https://github.com/stephaneerard/qooxdoo.git | JavaScript | 364 lines
                    
11     LGPL: http://www.gnu.org/licenses/lgpl.html
                    
12     EPL: http://www.eclipse.org/org/documents/epl-v10.php
                    
13     See the LICENSE file in the project's top-level directory for details.
                    
50 */
                    
51qx.Class.define("qx.ui.layout.Atom",
                    
52{
                    
                
setup.php https://gitlab.com/crsr/medtrade | PHP | 290 lines
                    
65if (($gm = extension_loaded("gmagick")) || ($im = extension_loaded("imagick"))) {
                    
66  $server_configs["GMagick or IMagick"]["value"] = ($im ? "IMagick ".phpversion("imagick") : "GMagick ".phpversion("gmagick"));
                    
67}
                    
79    <tr>
                    
80      <td class="title"><?php echo $label; ?></td>
                    
81      <td><?php echo ($server_config["required"] === true ? "Yes" : $server_config["required"]); ?></td>
                    
81      <td><?php echo ($server_config["required"] === true ? "Yes" : $server_config["required"]); ?></td>
                    
82      <td class="<?php echo ($server_config["result"] ? "ok" : (isset($server_config["fallback"]) ? "warning" : "failed")); ?>">
                    
83        <?php
                    
104$dompdf_constants = array();
                    
105$defined_constants = get_defined_constants(true);
                    
106
                    
230
                    
231  <?php foreach($defined_constants["user"] as $const => $value) { ?>
                    
232    <tr>
                    
                
forum_config.php https://github.com/Bigjoos/U-232-V3.git | PHP | 142 lines
                    
1<?php
                    
2/**
                    
14***************************************************************/
                    
15if (!defined('IN_INSTALLER09_ADMIN')) {
                    
16    $HTMLOUT.= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                    
27}
                    
28require_once (INCL_DIR.'html_functions.php');
                    
29require_once (CLASS_DIR.'class_check.php');
                    
49    sql_query('UPDATE forum_config SET delete_for_real = '.sqlesc($delete_for_real).', min_delete_view_class = '.sqlesc($min_delete_view_class).', readpost_expiry = '.sqlesc($readpost_expiry).', min_upload_class = '.sqlesc($min_upload_class).', accepted_file_extension = '.sqlesc($accepted_file_extension).',  accepted_file_types = '.sqlesc($accepted_file_types).', max_file_size = '.$max_file_size.', upload_folder = '.sqlesc($upload_folder).' WHERE id = '.sqlesc($config_id));
                    
50    header('Location: staffpanel.php?tool=forum_config&action=forum_config');
                    
51    die();
                    
52}
                    
53$main_links = '<p><a class="altlink" href="staffpanel.php?tool=over_forums&amp;action=over_forums">Over Forums</a> :: 
                    
54						<a class="altlink" href="staffpanel.php?tool=forum_manage&amp;action=forum_manage">Forum Manager</a> :: 
                    
71}
                    
72$HTMLOUT.= $main_links.'<form method="post" action="staffpanel.php?tool=forum_config&amp;action=forum_config">
                    
73			<input type="hidden" name="do_it" value="1" />
                    
                
node13.html https://bitbucket.org/toponado/nfs-proxy.git | HTML | 266 lines
                    
18
                    
19<LINK REL="STYLESHEET" HREF="index.php?page=nfs-ganesha-adminguide/nfs-ganesha-adminguide.css">
                    
20
                    
20
                    
21<LINK REL="next" HREF="index.php?page=nfs-ganesha-adminguide/node14">
                    
22<LINK REL="previous" HREF="index.php?page=nfs-ganesha-adminguide/node12">
                    
22<LINK REL="previous" HREF="index.php?page=nfs-ganesha-adminguide/node12">
                    
23<LINK REL="up" HREF="index.php?page=nfs-ganesha-adminguide/node4">
                    
24<LINK REL="next" HREF="index.php?page=nfs-ganesha-adminguide/node14">
                    
29<A NAME="tex2html254"
                    
30  HREF="index.php?page=nfs-ganesha-adminguide/node14">
                    
31<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
                    
33<A NAME="tex2html250"
                    
34  HREF="index.php?page=nfs-ganesha-adminguide/node4">
                    
35<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
                    
                
LBFgcac.plugin.php https://github.com/amcl/openemr.git | PHP | 288 lines
                    
1<?php
                    
2// Copyright (C) 2009-2011 Rod Roark <rod@sunsetsystems.com>
                    
9// This provides enhancement functions for the LBFgcac visit form.
                    
10// It is invoked by interface/forms/LBF/new.php.
                    
11
                    
93// The purpose of this function is to create JavaScript for the <head>
                    
94// section of the page.  This in turn defines desired javaScript
                    
95// functions.
                    
                
Regex.php https://gitlab.com/luisrepo/ClienteWS | PHP | 269 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Regex.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Controller_Router_Route_Abstract */
                    
24require_once 'Zend/Controller/Router/Route/Abstract.php';
                    
25
                    
67    /**
                    
68     * Matches a user submitted path with a previously defined route.
                    
69     * Assigns and returns an array of defaults on a successful match.
                    
92
                    
93        // array_filter_key()? Why isn't this in a standard PHP function set yet? :)
                    
94        foreach ($values as $i => $value) {
                    
159    /**
                    
160     * Assembles a URL path defined by this route
                    
161     *
                    
                
Regex.php https://github.com/vivid-planet/library.git | PHP | 269 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Regex.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Controller_Router_Route_Abstract */
                    
24require_once 'Zend/Controller/Router/Route/Abstract.php';
                    
25
                    
67    /**
                    
68     * Matches a user submitted path with a previously defined route.
                    
69     * Assigns and returns an array of defaults on a successful match.
                    
92
                    
93        // array_filter_key()? Why isn't this in a standard PHP function set yet? :)
                    
94        foreach ($values as $i => $value) {
                    
159    /**
                    
160     * Assembles a URL path defined by this route
                    
161     *
                    
                
jquery.lazy.js https://gitlab.com/Mirros/cdnjs | JavaScript | 276 lines
                    
7 * Dual licensed under the MIT and GPL v2 licenses:
                    
8 * http://www.opensource.org/licenses/mit-license.php
                    
9 * http://www.gnu.org/licenses/gpl-2.0.html
                    
13
                    
14(function($, window, document, undefined)
                    
15{
                    
                
view.html.php https://gitlab.com/julienv/joomleague | PHP | 279 lines
                    
1<?php defined( '_JEXEC' ) or die( 'Restricted access' );
                    
2
                    
4
                    
5require_once( JLG_PATH_SITE.DS."assets".DS."classes".DS."open-flash-chart".DS."open-flash-chart.php" );
                    
6
                    
160
                    
161			//colors defined for ranking table lines
                    
162			//todo: add support for more than 2 lines
                    
                
grid.import.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 215 lines
                    
6 * Dual licensed under the MIT and GPL licenses:
                    
7 * http://www.opensource.org/licenses/mit-license.php
                    
8 * http://www.gnu.org/licenses/gpl-2.0.html
                    
183                        ret = "{"+ xmlJsonClass.toJson(gprm,o.root,o.ident,false)+"}";
                    
184                        if(gprm.postData.filters !== undefined) {
                    
185                            ret=ret.replace(/filters":"/,'filters":');
                    
                
ArrayStorage.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 348 lines
                    
1<?php
                    
2/**
                    
17 *
                    
18 * Defines an ArrayObject interface for accessing session storage, with options
                    
19 * for setting metadata, locking, and marking as isImmutable.
                    
                
view.html.php https://bitbucket.org/eternaware/joomus.git | PHP | 271 lines
                    
1<?php
                    
2/**
                    
9
                    
10defined('_JEXEC') or die;
                    
11
                    
11
                    
12require_once JPATH_COMPONENT.'/models/category.php';
                    
13
                    
                
Manager.js https://bitbucket.org/gtong/javascripts.git | JavaScript | 254 lines
                    
60 */
                    
61Ext.define('Ext.direct.Manager', {
                    
62
                    
111     *     var pollProv = new Ext.direct.PollingProvider({
                    
112     *         url: 'php/poll2.php'
                    
113     *     });
                    
116     *         "type":"remoting",       // create a {@link Ext.direct.RemotingProvider}
                    
117     *         "url":"php\/router.php", // url to connect to the Ext.Direct server-side router.
                    
118     *         "actions":{              // each property within the actions object represents a Class
                    
134     *         type: 'polling', // create a {@link Ext.direct.PollingProvider}
                    
135     *         url:  'php/poll.php'
                    
136     *     }, pollProv); // reference to previously created instance
                    
                
gridfs_stream.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 368 lines
                    
47static int gridfs_close(php_stream *stream, int close_handle TSRMLS_DC);
                    
48static int gridfs_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);
                    
49static int gridfs_option(php_stream *stream, int option, int value, void *ptrparam TSRMLS_DC);
                    
112/* returns FAILURE on failure */
                    
113#define READ_ARRAY_PROP(dest, name, toVariable) \
                    
114	if (zend_hash_find(HASH_P(dest), name, strlen(name) + 1, (void**)&toVariable) == FAILURE) { \
                    
121
                    
122#define TO_INT(size, len) { \
                    
123	if (Z_TYPE_PP(size) == IS_DOUBLE) { \
                    
184/* {{{ array fstat($fp) */
                    
185static int gridfs_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC)
                    
186{
                    
352		case PHP_STREAM_OPTION_CHECK_LIVENESS:
                    
353			ret = self->size == self->offset ? PHP_STREAM_OPTION_RETURN_ERR : PHP_STREAM_OPTION_RETURN_OK;
                    
354			break;
                    
                
rl2.c https://github.com/tsangpozheng/iFrameExtractor.git | C | 300 lines
                    
26 * For more information regarding the RL2 file format, visit:
                    
27 *   http://wiki.multimedia.cx/index.php?title=RL2
                    
28 *
                    
38
                    
39#define EXTRADATA1_SIZE (6 + 256 * 3) ///< video base, clr, palette
                    
40
                    
40
                    
41#define FORM_TAG MKBETAG('F', 'O', 'R', 'M')
                    
42#define RLV2_TAG MKBETAG('R', 'L', 'V', '2')
                    
42#define RLV2_TAG MKBETAG('R', 'L', 'V', '2')
                    
43#define RLV3_TAG MKBETAG('R', 'L', 'V', '3')
                    
44
                    
                
plugin.js https://gitlab.com/wuhang2003/phpwind | JavaScript | 211 lines
                    
1/*
                    
2 * PHPWind WindEditor Plugin
                    
3 * @Copyright 	: Copyright 2011, phpwind.com
                    
8 */
                    
9;(function ( $, window, undefined ) {
                    
10	var WindEditor = window.WindEditor;
                    
                
nl.php https://gitlab.com/ptisky/API_prestashop | PHP | 154 lines
                    
1<?php

                    
2/**

                    
33

                    
34    // Date time formats. See http://www.php.net/manual/en/function.strftime.php

                    
35    '_dateTimeFull' => "%A, %e.%B.%Y %H:%M",

                    
67    "Non-existing directory type." => "Het maptype bestaat niet.",

                    
68    "Undefined MIME types." => "Onbekend MIME type.",

                    
69    "Fileinfo PECL extension is missing." => "Bestandsinformatie PECL extensie ontbreekt.",

                    
                
Maildir.php https://bitbucket.org/kdms/sh-magento.git | PHP | 265 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Maildir.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
26 */
                    
27#require_once 'Zend/Mail/Storage/Folder.php';
                    
28
                    
31 */
                    
32#require_once 'Zend/Mail/Storage/Folder/Interface.php';
                    
33
                    
36 */
                    
37#require_once 'Zend/Mail/Storage/Maildir.php';
                    
38
                    
92             */
                    
93            #require_once 'Zend/Mail/Storage/Exception.php';
                    
94            throw new Zend_Mail_Storage_Exception('no valid dirname given in params');
                    
                
Regex.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 269 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Regex.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Controller_Router_Route_Abstract */
                    
24#require_once 'Zend/Controller/Router/Route/Abstract.php';
                    
25
                    
67    /**
                    
68     * Matches a user submitted path with a previously defined route.
                    
69     * Assigns and returns an array of defaults on a successful match.
                    
92
                    
93        // array_filter_key()? Why isn't this in a standard PHP function set yet? :)
                    
94        foreach ($values as $i => $value) {
                    
159    /**
                    
160     * Assembles a URL path defined by this route
                    
161     *
                    
                
Abstract.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
44     *
                    
45     * This array contain default values for attributes which was redefine
                    
46     * value for store
                    
                
lib_test.php https://bitbucket.org/moodle/moodle.git | PHP | 219 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
32
                    
33defined('MOODLE_INTERNAL') || die();
                    
34
                    
34
                    
35require_once(__DIR__ . '/local/ltiadvantage/lti_advantage_testcase.php');
                    
36
                    
178        // Set page URL to prevent debugging messages.
                    
179        $PAGE->set_url('/enrol/editinstance.php');
                    
180
                    
208
                    
209        require_once($CFG->dirroot . '/enrol/locallib.php');
                    
210        $manager = new course_enrolment_manager($PAGE, $course);
                    
                
Abstract.php https://bitbucket.org/netglue/zf-1.12-release.git | PHP | 304 lines
                    
1<?php
                    
2
                    
26 */
                    
27require_once 'Zend/Feed/Element.php';
                    
28
                    
32 *
                    
33 * Zend_Feed_Abstract implements two core PHP 5 interfaces: ArrayAccess and
                    
34 * Iterator. In both cases the collection being treated as an array is
                    
82                 */
                    
83                require_once 'Zend/Feed/Exception.php';
                    
84                throw new Zend_Feed_Exception('Feed failed to load, got response code ' . $response->getStatus() . '; request: ' . $client->getLastRequest() . "\nresponse: " . $response->asString());
                    
117        if (!$status) {
                    
118            // prevent the class to generate an undefined variable notice (ZF-2590)
                    
119            if (!isset($php_errormsg)) {
                    
120                if (function_exists('xdebug_is_enabled')) {
                    
121                    $php_errormsg = '(error message not available, when XDebug is running)';
                    
122                } else {
                    
                
wl_iw.h https://bitbucket.org/cyanogenmod/zte-kernel-msm7x27.git | C Header | 279 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:
                    
28#ifndef _wl_iw_h_
                    
29#define _wl_iw_h_
                    
30
                    
36
                    
37#define WL_SCAN_PARAMS_SSID_MAX 	10
                    
38#define GET_SSID			"SSID="
                    
38#define GET_SSID			"SSID="
                    
39#define GET_CHANNEL			"CH="
                    
40#define GET_NPROBE 			"NPROBE="
                    
40#define GET_NPROBE 			"NPROBE="
                    
41#define GET_ACTIVE_ASSOC_DWELL  	"ACTIVE="
                    
42#define GET_PASSIVE_ASSOC_DWELL  	"PASSIVE="
                    
                
TranslationUpdateCommand.php https://gitlab.com/cuza/Clinic_Recods | PHP | 216 lines
                    
1<?php
                    
2
                    
56Example running against a Bundle (AcmeBundle)
                    
57  <info>php %command.full_name% --dump-messages en AcmeBundle</info>
                    
58  <info>php %command.full_name% --force --prefix="new_" fr AcmeBundle</info>
                    
60Example running against app messages (app/Resources folder)
                    
61  <info>php %command.full_name% --dump-messages en</info>
                    
62  <info>php %command.full_name% --force --prefix="new_" fr</info>
                    
91
                    
92        // Define Root Path to App folder
                    
93        $transPaths = array($kernel->getRootDir().'/Resources/');
                    
                
chart.php https://github.com/Proudio-Interactive/phpUnderControl.git | PHP | 296 lines
                    
1<?php
                    
2/**
                    
16 *           Output driver used for chart
                    
17 * @property ezcGraphPalette $palette
                    
18 *           Palette used for colorization of chart
                    
71    {
                    
72        $this->palette = new ezcGraphPaletteTango();
                    
73        $this->data = new ezcGraphChartDataContainer( $this );
                    
89
                    
90        // Define standard renderer and driver
                    
91        $this->properties['driver'] = new ezcGraphSvgDriver();
                    
174            case 'palette':
                    
175                if ( $propertyValue instanceof ezcGraphPalette )
                    
176                {
                    
181                {
                    
182                    throw new ezcBaseValueException( "palette", $propertyValue, "instanceof ezcGraphPalette" );
                    
183                }
                    
                
constants.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 282 lines
                    
1<?php
                    
2/**
                    
3*
                    
4* @package phpBB3
                    
5* @version $Id$
                    
5* @version $Id$
                    
6* @copyright (c) 2005 phpBB Group
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
13*/
                    
14if (!defined('IN_PHPBB'))
                    
15{
                    
27// phpBB Version
                    
28define('PHPBB_VERSION', '3.0.11');
                    
29
                    
30// QA-related
                    
31// define('PHPBB_QA', 1);
                    
32
                    
                
class-ms-rule-url-model.php https://gitlab.com/najomie/fit-hippie | PHP | 391 lines
                    
1<?php
                    
2/**
                    
79					if ( $this->get_membership()->is_base() ) {
                    
80						// For guests all defined URL groups are denied.
                    
81						$has_access = false;
                    
281	 * Serializes this rule in a single array.
                    
282	 * We don't use the PHP `serialize()` function to serialize the whole object
                    
283	 * because a lot of unrequired and duplicate data will be serialized
                    
                
class.importcontroller.php https://github.com/dkobia/Garden.git | PHP | 210 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
                
ee2e8044711aa72b8acd6199a8d340c7e0cdefd4.blockspecials-home.tpl.php https://gitlab.com/nghiep5890/prestashop | PHP | 200 lines
                    
1<?php /*%%SmartyHeaderCode:2413358371c43434db6-66734500%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
                    
2$_valid = $_smarty_tpl->decodeProperties(array (
                    
27),true); /*/%%SmartyHeaderCode%%*/?>
                    
28<?php if ($_valid && !is_callable('content_58371c43463bb4_30370757')) {function content_58371c43463bb4_30370757($_smarty_tpl) {?>		
                    
29									
                    
199
                    
200<?php }} ?>
                    
201
                    
                
Facebook.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 193 lines
                    
1<?php
                    
2
                    
21    /**
                    
22     * Defined scopes
                    
23     *
                    
                
soundcloud.php https://gitlab.com/Gashler/sg | PHP | 261 lines
                    
1<?php
                    
2/*
                    
185	$url = set_url_scheme( 'https://w.soundcloud.com/player/?' . http_build_query( $options['params'] ) );
                    
186	// Set default width if not defined
                    
187	$width = isset($options['width']) && $options['width'] !== 0 ? $options['width'] : '100%';
                    
187	$width = isset($options['width']) && $options['width'] !== 0 ? $options['width'] : '100%';
                    
188	// Set default height if not defined
                    
189	$height = isset($options['height']) && $options['height'] !== 0
                    
204	$url = set_url_scheme( 'https://player.soundcloud.com/player.swf?' . http_build_query($options['params']) );
                    
205	// Set default width if not defined
                    
206	$width = isset( $options['width'] ) && $options['width'] !== 0 ? $options['width'] : '100%';
                    
206	$width = isset( $options['width'] ) && $options['width'] !== 0 ? $options['width'] : '100%';
                    
207	// Set default height if not defined
                    
208	$height = isset( $options['height'] ) && $options['height'] !== 0 ? $options['height'] : ( soundcloud_url_has_tracklist( $options['url'] ) ? '255' : '81');
                    
242		foreach ( $matches as $match ) {
                    
243			$args = parse_url( html_entity_decode( $match[1] ), PHP_URL_QUERY );
                    
244			$args = wp_parse_args( $args );
                    
                
AbstractModel.php https://gitlab.com/yousafsyed/easternglamor | PHP | 377 lines
                    
1<?php
                    
2/**
                    
19     *
                    
20     * This array contain default values for attributes which was redefine
                    
21     * value for store
                    
315     * @return  bool
                    
316     * @SuppressWarnings(PHPMD.BooleanGetMethodName)
                    
317     */
                    
                
class.php https://gitlab.com/alexprowars/bitrix | PHP | 393 lines
                    
1<?php
                    
2if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true)
                    
231	{
                    
232		if (!defined('LANDING_TMP_CATALOG_SHOWED'))
                    
233		{
                    
233		{
                    
234			define('LANDING_TMP_CATALOG_SHOWED', true);
                    
235			$this->params['FIRST_TIME'] = true;
                    
                
grid.locale-en.js https://gitlab.com/techniconline/kmc | JavaScript | 201 lines
                    
6     * Dual licensed under the MIT and GPL licenses:
                    
7     * http://www.opensource.org/licenses/mit-license.php
                    
8     * http://www.gnu.org/licenses/gpl.html
                    
66                url: "is not a valid URL. Prefix required ('http://' or 'https://')",
                    
67                nodefined: " is not defined!",
                    
68                novalue: " return value is required!",
                    
138                masks: {
                    
139                    // see http://php.net/manual/en/function.date.php for PHP format used in jqGrid
                    
140                    // and see http://docs.jquery.com/UI/Datepicker/formatDate
                    
143                    // information about date, time, numbers and currency formats used in different countries
                    
144                    // one should just convert the information in PHP format
                    
145                    ISO8601Long: "Y-m-d H:i:s",
                    
                
report.php https://github.com/cmiic/moodle.git | PHP | 219 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
17/**
                    
18 * This file defines the quiz responses report class.
                    
19 *
                    
25
                    
26defined('MOODLE_INTERNAL') || die();
                    
27
                    
27
                    
28require_once($CFG->dirroot . '/mod/quiz/report/attemptsreport.php');
                    
29require_once($CFG->dirroot . '/mod/quiz/report/responses/responses_options.php');
                    
29require_once($CFG->dirroot . '/mod/quiz/report/responses/responses_options.php');
                    
30require_once($CFG->dirroot . '/mod/quiz/report/responses/responses_form.php');
                    
31require_once($CFG->dirroot . '/mod/quiz/report/responses/last_responses_table.php');
                    
31require_once($CFG->dirroot . '/mod/quiz/report/responses/last_responses_table.php');
                    
32require_once($CFG->dirroot . '/mod/quiz/report/responses/first_or_all_responses_table.php');
                    
33
                    
                
html.php https://github.com/zelu/core.git | PHP | 380 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
                
adodb-db2.inc.php https://github.com/telmomenezes/bloxx.git | PHP | 361 lines
                    
1<?php
                    
2/* 
                    
12 
                    
13From phpdb list:
                    
14
                    
19
                    
20After "playing" a little bit with the php-scripts that try
                    
21to connect to the IBM DB2, we set the optional parameter
                    
28
                    
29Therfore, PHP is just almost fast as calling the DB2
                    
30from Servlets using JDBC (don't take too much care
                    
36problem when trying to connect to DB2 from
                    
37PHP.
                    
38
                    
48SQL_ATTR_ODBC_CURSORS (DB2 CLI v5) 
                    
49This connection attribute is defined by ODBC, but is not supported by DB2
                    
50CLI. Any attempt to set or get this attribute will result in an SQLSTATE of
                    
                
threshold_8h-source.html https://bitbucket.org/wallwizz/imagemagick-6.8.4-for-bb10.git | HTML | 69 lines
                    
16<a name="l00007"></a>00007 <span class="comment">  </span>
                    
17<a name="l00008"></a>00008 <span class="comment">    http://www.imagemagick.org/script/license.php</span>
                    
18<a name="l00009"></a>00009 <span class="comment">  </span>
                    
27<a name="l00018"></a>00018 <span class="preprocessor">#ifndef _MAGICKCORE_THRESHOLD_H</span>
                    
28<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define _MAGICKCORE_THRESHOLD_H</span>
                    
29<a name="l00020"></a>00020 <span class="preprocessor"></span>
                    
29<a name="l00020"></a>00020 <span class="preprocessor"></span>
                    
30<a name="l00021"></a>00021 <span class="preprocessor">#if defined(__cplusplus) || defined(c_plusplus)</span>
                    
31<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
                    
59<a name="l00050"></a>00050 
                    
60<a name="l00051"></a>00051 <span class="preprocessor">#if defined(__cplusplus) || defined(c_plusplus)</span>
                    
61<a name="l00052"></a>00052 <span class="preprocessor"></span>}
                    
                
AuthChoice.php https://gitlab.com/itlboy/yii2-starter-installed | PHP | 285 lines
                    
1<?php
                    
2/**
                    
25 *
                    
26 * ```php
                    
27 * <?= yii\authclient\widgets\AuthChoice::widget([
                    
35 *
                    
36 * ```php
                    
37 * <?php
                    
39 * ?>
                    
40 * <?php $authAuthChoice = AuthChoice::begin([
                    
41 *     'baseAuthUrl' => ['site/auth']
                    
43 * <ul>
                    
44 * <?php foreach ($authAuthChoice->getClients() as $client): ?>
                    
45 *     <li><?= $authAuthChoice->clientLink($client) ?></li>
                    
45 *     <li><?= $authAuthChoice->clientLink($client) ?></li>
                    
46 * <?php endforeach; ?>
                    
47 * </ul>
                    
                
IOFactory.php https://gitlab.com/ilyales/vigma | PHP | 289 lines
                    
3/**    PHPExcel root directory */
                    
4if (!defined('PHPEXCEL_ROOT')) {
                    
5    /**
                    
8    define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../');
                    
9    require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
10}
                    
46    private static $searchLocations = array(
                    
47        array( 'type' => 'IWriter', 'path' => 'PHPExcel/Writer/{0}.php', 'class' => 'PHPExcel_Writer_{0}' ),
                    
48        array( 'type' => 'IReader', 'path' => 'PHPExcel/Reader/{0}.php', 'class' => 'PHPExcel_Reader_{0}' )
                    
180    /**
                    
181     * Loads PHPExcel from file using automatic PHPExcel_Reader_IReader resolution
                    
182     *
                    
213    /**
                    
214     * Create PHPExcel_Reader_IReader for file using automatic PHPExcel_Reader_IReader resolution
                    
215     *
                    
                
lmbObject.class.php https://github.com/idler/limb.git | PHP | 408 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * Limb PHP Framework
                    
4 *
                    
8 */
                    
9lmb_require('limb/core/src/lmbSetInterface.interface.php');
                    
10lmb_require('limb/core/src/exception/lmbNoSuchMethodException.class.php');
                    
10lmb_require('limb/core/src/exception/lmbNoSuchMethodException.class.php');
                    
11lmb_require('limb/core/src/exception/lmbNoSuchPropertyException.class.php');
                    
12/**
                    
65 *
                    
66 * @version $Id: lmbObject.class.php 5567 2007-04-06 14:37:24Z serega $
                    
67 * @package core
                    
83  {
                    
84    $this->_registerPredefinedVariables();
                    
85
                    
                
DetailView.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 207 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
49
                    
50require_once('include/upload_file.php');
                    
51require_once('include/DetailView/DetailView.php');
                    
71} else {
                    
72	header("Location: index.php?module=Accounts&action=index");
                    
73}
                    
121);
                    
122require_once('include/Smarty/plugins/function.sugar_action_menu.php');
                    
123$action_button = smarty_function_sugar_action_menu(array(
                    
134$xtpl->assign("GRIDLINE", $gridline);
                    
135$xtpl->assign("PRINT_URL", "index.php?".$GLOBALS['request_string']);
                    
136$xtpl->assign("ID", $focus->id);
                    
183	$the_note = $notes_list[$i];
                    
184	$attachments .= "<a href=\"index.php?entryPoint=download&id={$the_note->id}&type=Notes\">".$the_note->name."</a><br />";
                    
185}
                    
                
OS_main.h https://github.com/Gintama/SkyFireEMU.git | C Header | 310 lines
                    
27
                    
28# if !defined (ACE_DOESNT_DEFINE_MAIN)
                    
29
                    
45
                    
46# if defined (ACE_WIN32) && defined (ACE_USES_WCHAR)
                    
47#   define ACE_TMAIN wmain
                    
75
                    
76#   if defined (ACE_VXWORKS) && !defined (__RTP__)
                    
77
                    
122
                    
123#   elif defined (ACE_VXWORKS) && (ACE_VXWORKS <= 0x640) && defined (__RTP__)
                    
124
                    
155
                    
156#     if defined (ACE_WIN32) && defined (ACE_USES_WCHAR)
                    
157
                    
                
view.html.php https://gitlab.com/ricardosanchez/prueba | PHP | 317 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * @version     $Id: view.html.php 3012 2011-11-16 10:29:35Z geraintedwards $
                    
6 * @package     JEvents
                    
12// Check to ensure this file is included in Joomla!
                    
13defined('_JEXEC') or die();
                    
14
                    
21 */
                    
22include_once(JEV_ADMINPATH."/views/icalrepeat/view.html.php");
                    
23
                    
28	function __construct($config = array()){
                    
29		include_once(JPATH_ADMINISTRATOR.'/'."includes".'/'."toolbar.php");
                    
30		parent::__construct($config);	
                    
42		$editStrings = "";
                    
43		include(JEV_ADMINLIBS."/editStrings.php");		
                    
44		$document->addScriptDeclaration($editStrings);
                    
                
acf-repeater-update.php https://gitlab.com/pankajmohale/chef2go | PHP | 474 lines
                    
1<?php 
                    
2
                    
2
                    
3if( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
                    
4
                    
69			
                    
70			require_once ABSPATH . 'wp-admin/includes/plugin.php';
                    
71			
                    
107	
                    
108	function request( $query = 'index.php', $body = null ) {
                    
109		
                    
274					'acf_version'	=> get_option('acf_version'),
                    
275					'acf_pro'		=> (defined('ACF_PRO') && ACF_PRO),
                    
276				)),
                    
416*
                    
417*  Example: <?php $acf_updates = acf_updates(); ?>
                    
418*
                    
                
script.php https://gitlab.com/ricardosanchez/prueba | PHP | 353 lines
                    
1<?php
                    
2/**
                    
9
                    
10defined('_JEXEC') or die;
                    
11
                    
70	/**
                    
71	 * Minimum PHP version required to install the extension
                    
72	 *
                    
75	 */
                    
76	protected $minimumPhp;
                    
77
                    
108		// Check for the minimum PHP version before continuing
                    
109		if (!empty($this->minimumPhp) && !version_compare(PHP_VERSION, $this->minimumPhp, '>'))
                    
110		{
                    
110		{
                    
111			JLog::add(JText::sprintf('JLIB_INSTALLER_MINIMUM_PHP', $this->minimumPhp), JLog::WARNING, 'jerror');
                    
112		}
                    
                
edit-attachment-rows.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 239 lines
                    
61		?>
                    
62		<th scope="row" class="check-column"><?php if ( current_user_can('edit_post', $post->ID) ) { ?><input type="checkbox" name="media[]" value="<?php the_ID(); ?>" /><?php } ?></th>
                    
63		<?php
                    
86		?>
                    
87		<td <?php echo $attributes ?>><strong><?php if ( $is_trash ) echo $att_title; else { ?><a href="<?php echo get_edit_post_link( $post->ID, true ); ?>" title="<?php echo esc_attr(sprintf(__('Edit &#8220;%s&#8221;'), $att_title)); ?>"><?php echo $att_title; ?></a><?php } ?></strong>
                    
88		<p>
                    
182			?>
                    
183			<td <?php echo $attributes ?>><strong><a href="<?php echo get_edit_post_link( $post->post_parent ); ?>"><?php echo $title ?></a></strong>, <?php echo get_the_time(__('Y/m/d')); ?></td>
                    
184			<?php
                    
202			echo '<strong>';
                    
203		comments_number("<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link */ _x('0', 'comment count') . '</span></a>', "<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link */ _x('1', 'comment count') . '</span></a>', "<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link: % will be substituted by comment count */ _x('%', 'comment count') . '</span></a>');
                    
204		if ( $left )
                    
213		<td <?php echo $attributes ?>>
                    
214		<a href="media.php?action=edit&amp;attachment_id=<?php the_ID(); ?>" title="<?php echo esc_attr(sprintf(__('Edit &#8220;%s&#8221;'), $att_title)); ?>"><?php _e('Edit'); ?></a> |
                    
215		<a href="<?php the_permalink(); ?>"><?php _e('Get permalink'); ?></a>
                    
                
jquery.lazyload.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 210 lines
                    
6 * Licensed under the MIT license:
                    
7 *   http://www.opensource.org/licenses/mit-license.php
                    
8 *
                    
57            /* Maintain BC for a couple of versions. */
                    
58            if (undefined !== options.failurelimit) {
                    
59                options.failure_limit = options.failurelimit; 
                    
61            }
                    
62            if (undefined !== options.effectspeed) {
                    
63                options.effect_speed = options.effectspeed; 
                    
70        /* Cache container as jQuery as object. */
                    
71        $container = (settings.container === undefined ||
                    
72                      settings.container === window) ? $window : $(settings.container);
                    
144        
                    
145        if (settings.container === undefined || settings.container === window) {
                    
146            fold = $window.height() + $window.scrollTop();
                    
                
HarmonyImportSpecifierDependency.js https://gitlab.com/ahmad.jamal/sally | JavaScript | 321 lines
                    
1/*
                    
2	MIT License http://www.opensource.org/licenses/mit-license.php
                    
3	Author Tobias Koppers @sokra
                    
46		this.namespaceObjectAsContext = false;
                    
47		this.call = undefined;
                    
48		this.directImport = undefined;
                    
48		this.directImport = undefined;
                    
49		this.shorthand = undefined;
                    
50		this.asiSafe = undefined;
                    
51		/** @type {Set<string> | boolean} */
                    
52		this.usedByExports = undefined;
                    
53	}
                    
79		const meta = moduleGraph.getMetaIfExisting(this);
                    
80		if (meta === undefined) return this.ids;
                    
81		const ids = meta[idsSymbol];
                    
                
auth_lang.php https://gitlab.com/Anas7232/Layout-Changes | PHP | 158 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
                
ElementTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 205 lines
                    
1<?php
                    
2
                    
43
                    
44    // Verify that all options appear in their defined order.
                    
45    foreach (['checkbox', 'radio'] as $type) {
                    
62
                    
63    // Verify that all options appear in their defined order, taking a custom
                    
64    // #weight into account.
                    
                
ListBullet.php https://gitlab.com/oritadeu/dompdf | PHP | 248 lines
                    
1<?php
                    
2/**
                    
142        // Handle list-style-image
                    
143        // If list style image is requested but missing, fall back to predefined types
                    
144        if ($style->list_style_image !== "none" &&
                    
152            // See also Image::get_min_max_width
                    
153            // Tested php ver: value measured in px, suffix "px" not in value: rtrim unnecessary.
                    
154            //$w = $frame->get_width();
                    
                
archive-contact_persons.php https://gitlab.com/zohaibsaleem/dev | PHP | 237 lines
                    
130 
                    
131    // Define the query
                    
132    $args = array(
                    
147 
                    
148        <?php $do_not_duplicate = $post->ID; ?>
                    
149        <div <?php post_class('element-item col-sm-6 col-md-4 '); ?> data-category="transition">
                    
168								<?php $image = get_field('contact_person_image');?>
                    
169								<img height="100px" class="image-responsive" src="<?php echo $image['sizes']['thumbnail']; ?>" alt="<?php echo $image['alt']; ?>" />
                    
170								</div>
                    
171								<div class="content-2-3">
                    
172								<?php the_field('contact_person_address'); ?>
                    
173								</div>
                    
177								<div class="content-1-1">
                    
178								<?php the_field('contact_person_address'); ?>
                    
179								</div>
                    
                
view.html.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 343 lines
                    
1<?php
                    
2/**
                    
9
                    
10defined('_JEXEC') or die;
                    
11
                    
                
ini_setting.cpp https://github.com/github-ivan/hiphop-php.git | C++ | 325 lines
                    
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   +----------------------------------------------------------------------+
                    
32extern bool zend_parse_ini_string
                    
33(HPHP::CStrRef str, HPHP::CStrRef filename, int scanner_mode,
                    
34 HPHP::IniSetting::PFN_PARSER_CALLBACK callback, void *arg);
                    
35
                    
36namespace HPHP {
                    
37///////////////////////////////////////////////////////////////////////////////
                    
96
                    
97static void php_simple_ini_parser_cb
                    
98(String *arg1, String *arg2, String *arg3, int callback_type, void *arg) {
                    
231  if (name == "hphp.compiler_id") {
                    
232    value = String(getHphpCompilerId());
                    
233    return true;
                    
                
recode_torrent.php https://gitlab.com/protoneutron/xbtbb3cker | PHP | 309 lines
                    
10
                    
11if (!defined('IN_PHPBB'))
                    
12{
                    
17{
                    
18	global $config, $phpbb_root_path, $user, $db, $phpEx, $request;
                    
19
                    
56
                    
57	$tracker_url=generate_board_url($config['ppkbb_phpannounce_enabled'] && $config['ppkbb_phpannounce_url'] ? false : true);
                    
58	if(!$config['ppkbb_announce_url'])
                    
59	{
                    
60		$config['ppkbb_announce_url']=$tracker_url.($config['ppkbb_phpannounce_enabled'] && $config['ppkbb_phpannounce_url'] ? '' : ':'.$config['ppkbb_xclisten_port']);
                    
61	}
                    
63	{
                    
64		$config['ppkbb_announce_url']=($config['ppkbb_phpannounce_enabled'] && $config['ppkbb_phpannounce_url'] ? $tracker_url : $config['ppkbb_announce_url'].':'.$config['ppkbb_xclisten_port']);
                    
65	}
                    
                
Parser.php https://github.com/jessfishenden/mrbs-mcr.git | PHP | 356 lines
                    
1<?php
                    
2//
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP Version 4                                                        |
                    
5// +----------------------------------------------------------------------+
                    
5// +----------------------------------------------------------------------+
                    
6// | Copyright (c) 1997-2003 The PHP Group                                |
                    
7// +----------------------------------------------------------------------+
                    
7// +----------------------------------------------------------------------+
                    
8// | This source file is subject to version 2.02 of the PHP license,      |
                    
9// | that is bundled with this package in the file LICENSE, and is        |
                    
10// | available at through the world-wide-web at                           |
                    
11// | http://www.php.net/license/2_02.txt.                                 |
                    
12// | If you did not receive a copy of the PHP license and are unable to   |
                    
13// | obtain it through the world-wide-web, please send a note to          |
                    
14// | license@php.net so we can mail you a copy immediately.               |
                    
15// +----------------------------------------------------------------------+
                    
                
Environment.php https://gitlab.com/alexandresgv/siteentec | PHP | 343 lines
                    
1<?php
                    
2/**
                    
107                $migration->setAdapter($proxyAdapter);
                    
108                /** @noinspection PhpUndefinedMethodInspection */
                    
109                $migration->change();
                    
112            } else {
                    
113                /** @noinspection PhpUndefinedMethodInspection */
                    
114                $migration->change();
                    
                
tools.js https://gitlab.com/ptisky/API_prestashop | JavaScript | 251 lines
                    
8* It is also available through the world-wide-web at this URL:
                    
9* http://opensource.org/licenses/afl-3.0.php
                    
10* If you did not receive a copy of the license and are unable to
                    
21*  @copyright  2007-2013 PrestaShop SA
                    
22*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23*  International Registered Trademark & Property of PrestaShop SA
                    
27{
                    
28	if (typeof(roundMode) === 'undefined')
                    
29		roundMode = 2;
                    
29		roundMode = 2;
                    
30	if (typeof(precision) === 'undefined')
                    
31		precision = 2;
                    
82{
                    
83	// if you modified this function, don't forget to modify the PHP function displayPrice (in the Tools.php class)
                    
84	blank = '';
                    
                
image.html https://bitbucket.org/snail/mrpmvc.git | HTML | 268 lines
                    
97			var fileManager = null;
                    
98			var allowUpload = (typeof KE.g[id].allowUpload == 'undefined') ? true : KE.g[id].allowUpload;
                    
99			var allowFileManager = (typeof KE.g[id].allowFileManager == 'undefined') ? false : KE.g[id].allowFileManager;
                    
100			var referMethod = (typeof KE.g[id].referMethod == 'undefined') ? '' : KE.g[id].referMethod;
                    
101			var imageUploadJson = (typeof KE.g[id].imageUploadJson == 'undefined') ? '../../php/upload_json.php' : KE.g[id].imageUploadJson;
                    
102			var lang = KE.lang.plugins.image;
                    
163					heightBox.value = imgNode.height;
                    
164					titleBox.value = (typeof imgNode.alt != 'undefined') ? imgNode.alt : imgNode.title;
                    
165					for (var i = 0, len = alignElements.length; i < len; i++) {
                    
                
class.ShowFleet1Page.php https://github.com/jstar88/LibreTitan.git | PHP | 265 lines
                    
1<?php
                    
2
                    
8
                    
9if(!defined('INSIDE')){ die(header ( 'location:../../' ));}
                    
10
                    
61				{
                    
62					header ( 'location:game.php?page=fleet' );
                    
63				}
                    
82		{
                    
83			header ( 'location:game.php?page=fleet' );
                    
84		}
                    
                
PSServer.js https://github.com/socialplanning/oc-js.git | JavaScript | 282 lines
                    
26  if (!this._serverConfig) {
                    
27    Xinha._getback(Xinha.getPluginDir("PSServer") + "/config.inc.php",
                    
28                   function(config) { 
                    
69  var self = this;
                    
70  Xinha._getback(Xinha.getPluginDir("PSServer") + "/backend.php?directory&listing",
                    
71                 function(json) { 
                    
77var treeRecurse = function treeRecurse(tree, callback, root) {
                    
78  if (typeof root == 'undefined') {
                    
79    root = '/';
                    
178  // model it off of this HTML fragment:
                    
179  //  <form target="importFrame" action="../plugins/PSServer/backend.php?upload&amp;replace=false&amp;" id="importForm" method="post" enctype="multipart/form-data">
                    
180  //    File: <input type="file" name="filedata" /><input type="submit" value="_(Import)" />
                    
187  form.setAttribute('method', 'post');
                    
188  form.setAttribute('action', Xinha.getPluginDir("PSServer") + "/backend.php?upload&replace=true&");
                    
189
                    
                
Feed.php https://gitlab.com/geeta7/drupal | PHP | 315 lines
                    
1<?php
                    
2
                    
141   */
                    
142  protected function defineOptions() {
                    
143    $options = parent::defineOptions();
                    
261      case 'path':
                    
262        $form['path']['#description'] = $this->t('This view will be displayed by visiting this path on your site. It is recommended that the path be something like "path/%/%/feed" or "path/%/%/rss.xml", putting one % in the path for each contextual filter you have defined in the view.');
                    
263    }
                    
                
Symbol.php https://gitlab.com/oytunistrator/coffeescript-php | PHP | 288 lines
                    
2/**
                    
3 * PHP_ParserGenerator, a php 5 parser generator.
                    
4 * 
                    
45 * @version   CVS: $Id: Symbol.php 302382 2010-08-17 06:08:09Z jespino $
                    
46 * @link      http://pear.php.net/package/PHP_ParserGenerator
                    
47 * @since     File available since Release 0.1.0
                    
57 * @version   Release: @package_version@
                    
58 * @link      http://pear.php.net/package/PHP_ParserGenerator
                    
59 * @since     Class available since Release 0.1.0
                    
133     * One of PHP_ParserGenerator_Symbol::LEFT,
                    
134     * PHP_ParserGenerator_Symbol::RIGHT, PHP_ParserGenerator_Symbol::NONE
                    
135     * or PHP_ParserGenerator_Symbol::UNK
                    
276     */
                    
277    public static function same_symbol(PHP_ParserGenerator_Symbol $a, PHP_ParserGenerator_Symbol $b)
                    
278    {
                    
                
HeaderBag.php https://gitlab.com/oytunistrator/92five | PHP | 350 lines
                    
1<?php
                    
2
                    
173    /**
                    
174     * Returns true if the HTTP header is defined.
                    
175     *
                    
258    /**
                    
259     * Returns true if the Cache-Control directive is defined.
                    
260     *
                    
274     *
                    
275     * @return mixed|null The directive value if defined, null otherwise
                    
276     */
                    
                
class_check.php https://github.com/Bigjoos/U-232-V2.git | PHP | 199 lines
                    
1<?php
                    
2/**
                    
25// require PIN:
                    
26require_once 'include/class_check.php';
                    
27class_check(UC_MODERATOR, true, true); // staff class check & require PIN
                    
28// USAGE in non-staff pages: //
                    
29require_once 'include/class_check.php';
                    
30class_check(UC_POWER_USER, false);     // use for non-staff pages
                    
33
                    
34if (!defined('TBVERSION')) { //cannot access this file directly
                    
35    $HTMLOUT='';
                    
77            // have sent a username/pass and are using their own username
                    
78            if (isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW']) 
                    
79                && $_SERVER['PHP_AUTH_USER'] === ($CURUSER['username'])) {
                    
81                // generate a passhash from the sent password
                    
82                 $hash = md5($INSTALLER09['site']['salt2'].$_SERVER['PHP_AUTH_PW'].$CURUSER['secret']);
                    
83                 
                    
                
ipsearch.php https://github.com/Bigjoos/U-232-V1.git | PHP | 255 lines
                    
1<?php
                    
2/**
                    
8 **/
                    
9if ( ! defined( 'IN_TBDEV_ADMIN' ) )
                    
10{
                    
23}
                    
24require_once(INCL_DIR.'user_functions.php');
                    
25require_once(INCL_DIR.'html_functions.php');
                    
25require_once(INCL_DIR.'html_functions.php');
                    
26require_once(INCL_DIR.'pager_functions.php');
                    
27
                    
33
                    
34require_once(INCL_DIR.'class_check.php');
                    
35class_check(UC_STAFF);
                    
58$HTMLOUT .="<h1>Search in IP History</h1>\n
                    
59<form method='post' action='staffpanel.php?tool=ipsearch&amp;action=ipsearch'>\n
                    
60<table align='center' border='1' cellspacing='0' width='115' cellpadding='5'>\n
                    
                
widget-hero-unit.php https://gitlab.com/luyxtran264/myproject | PHP | 190 lines
                    
153			<label for="<?php echo esc_attr( $this->get_field_id( 'hero_unit_title' ) ); ?>"><?php esc_html_e('Hero unit title:', 'transfers') ?></label>
                    
154			<input type="text" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'hero_unit_title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'hero_unit_title' ) ); ?>" value="<?php echo esc_attr( $instance['hero_unit_title'] ); ?>" />
                    
155		</p>
                    
164			<label for="<?php echo esc_attr( $this->get_field_id( 'hero_unit_sub_title' ) ); ?>"><?php esc_html_e('Hero unit sub title:', 'transfers') ?></label>
                    
165			<input type="text" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'hero_unit_sub_title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'hero_unit_sub_title' ) ); ?>" value="<?php echo esc_attr( $instance['hero_unit_sub_title'] ); ?>" />
                    
166		</p>
                    
169			<label for="<?php echo esc_attr( $this->get_field_id( 'button_1_url' ) ); ?>"><?php esc_html_e('Button 1 url', 'transfers') ?></label>
                    
170			<input type="text" placeholder="http://" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'button_1_url' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'button_1_url' ) ); ?>" value="<?php echo esc_attr( $instance['button_1_url'] ); ?>" />
                    
171		</p>
                    
174			<label for="<?php echo esc_attr( $this->get_field_id( 'button_1_text' ) ); ?>"><?php esc_html_e('Button 1 text', 'transfers') ?></label>
                    
175			<input type="text" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'button_1_text' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'button_1_text' ) ); ?>" value="<?php echo esc_attr( $instance['button_1_text'] ); ?>" />
                    
176		</p>
                    
184			<label for="<?php echo esc_attr( $this->get_field_id( 'button_2_text' ) ); ?>"><?php esc_html_e('Button 2 text', 'transfers') ?></label>
                    
185			<input type="text" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'button_2_text' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'button_2_text' ) ); ?>" value="<?php echo esc_attr( $instance['button_2_text'] ); ?>" />
                    
186		</p>
                    
                
pixfmt-reserved.rst https://gitlab.com/kush/linux | ReStructuredText | 283 lines
                    
15
                    
16These formats are not defined by this specification, they are just
                    
17listed for reference and to avoid naming conflicts. If you want to
                    
18register your own format, send an e-mail to the linux-media mailing list
                    
19`https://linuxtv.org/lists.php <https://linuxtv.org/lists.php>`__
                    
20for inclusion in the ``videodev2.h`` file. If you want to share your
                    
230	All numbers in the second plane are also in big endian order.
                    
231	Remaining data in the second plane is undefined. The information
                    
232	in the second plane allows to easily find location of the pointer
                    
                
xhistogram.c https://gitlab.com/storedmirrors/git | C | 378 lines
                    
7 * accompanies this distribution, is reproduced below, and is
                    
8 * available at http://www.eclipse.org/org/documents/edl-v10.php
                    
9 *
                    
45
                    
46#define MAX_PTR	UINT_MAX
                    
47#define MAX_CNT	UINT_MAX
                    
48
                    
49#define LINE_END(n) (line##n + count##n - 1)
                    
50#define LINE_END_PTR(n) (*line##n + *count##n - 1)
                    
79
                    
80#define LINE_MAP(i, a) (i->line_map[(a) - i->ptr_shift])
                    
81
                    
81
                    
82#define NEXT_PTR(index, ptr) \
                    
83	(index->next_ptrs[(ptr) - index->ptr_shift])
                    
                
umil.php https://github.com/paul999/umil.git | PHP | 131 lines
                    
1<?php
                    
2/**
                    
7 * @version $Id$
                    
8 * @copyright (c) 2008 phpBB Group
                    
9 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
11 *
                    
12 * Ελληνική μετάφραση από την ομάδα του phpbbgr.com
                    
13 * http://phpbbgr.com
                    
18 */
                    
19if (!defined('IN_PHPBB'))
                    
20{
                    
                
Abstract.php https://github.com/arush/desparation-deprecated.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
44     *
                    
45     * This array contain default values for attributes which was redefine
                    
46     * value for store
                    
                
PwPostDoPoll.php https://gitlab.com/wuhang2003/phpwind | PHP | 329 lines
                    
1<?php
                    
2defined('WEKIT_VERSION') || exit('Forbidden');
                    
9 * @author MingXing Sun <mingxing.sun@aliyun-inc.com>
                    
10 * @copyright ©2003-2103 phpwind.com
                    
11 * @license http://www.phpwind.com
                    
11 * @license http://www.phpwind.com
                    
12 * @version $Id: PwPostDoPoll.php 23975 2013-01-17 10:20:11Z jieyin $
                    
13 * @package forum
                    
                
CustomGroup.php https://github.com/szantog/panparks.git | PHP | 248 lines
                    
1<?php
                    
2
                    
35 * @copyright CiviCRM LLC (c) 2004-2011
                    
36 * @version $Id: CustomGroup.php 33007 2011-03-14 22:52:10Z kurund $
                    
37 */
                    
41 */
                    
42require_once 'api/v2/utils.php';
                    
43
                    
90    
                    
91    require_once 'CRM/Utils/String.php';
                    
92    if (! isset( $params['title'] ) ||
                    
104    
                    
105    require_once 'CRM/Core/BAO/CustomGroup.php';
                    
106    $customGroup = CRM_Core_BAO_CustomGroup::create($params);                             
                    
143    // convert params array into Object
                    
144    require_once 'CRM/Core/DAO/CustomGroup.php';
                    
145    $values = new CRM_Core_DAO_CustomGroup( );
                    
                
Deserializer.php https://bitbucket.org/openfisma-ondemand/openfisma.git | PHP | 306 lines
                    
1<?php
                    
2/**
                    
23/** Zend_Amf_Constants */
                    
24// require_once 'Zend/Amf/Constants.php';
                    
25
                    
26/** @see Zend_Amf_Parse_Deserializer */
                    
27// require_once 'Zend/Amf/Parse/Deserializer.php';
                    
28
                    
29/**
                    
30 * Read an AMF0 input stream and convert it into PHP data types
                    
31 *
                    
61     * @param  integer $typeMarker
                    
62     * @return mixed whatever the data type is of the marker in php
                    
63     * @throws Zend_Amf_Exception for invalid type
                    
91
                    
92            // undefined
                    
93            case Zend_Amf_Constants::AMF0_UNDEFINED:
                    
                
index.mustache https://github.com/vrennert/yui3.git | Mustache | 306 lines
                    
17    The DataSource Utility uses a callback mechanism to manage the data
                    
18    retrieval process across a wide variety of potential sources. Define your
                    
19    callback object with custom functions that will execute when the data
                    
62    script callback parameter in order for the response to return properly.
                    
63    This parameter specifies the name of the internally defined function that
                    
64    the return data will be wrapped in when it returns to the page. 
                    
124```
                    
125var myDataSource = new Y.DataSource.IO({source:"./myScript.php"});
                    
126```
                    
                
config.php https://github.com/andreabix/moodle.git | PHP | 256 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
30
                    
31defined('MOODLE_INTERNAL') || die();
                    
32
                    
89    'base' => array(
                    
90        'file' => 'general.php',
                    
91        'regions' => array('side-pre', 'side-post'),
                    
94    'standard' => array(
                    
95        'file' => 'general.php',
                    
96        'regions' => array('side-pre', 'side-post'),
                    
99    'course' => array(
                    
100        'file' => 'general.php',
                    
101        'regions' => array('side-pre', 'side-post'),
                    
105    'coursecategory' => array(
                    
106        'file' => 'general.php',
                    
107        'regions' => array('side-pre', 'side-post'),
                    
                
AdminBarMenu.php https://gitlab.com/ebrjose/comcebu | PHP | 380 lines
                    
1<?php
                    
2
                    
139			}() );",
                    
140			$is_wp_531_plus ? "document.addEventListener( 'DOMContentLoaded', wpforms_admin_bar_menu_init );" : "if ( typeof( jQuery ) != 'undefined' ) { jQuery( wpforms_admin_bar_menu_init ); } else { document.addEventListener( 'DOMContentLoaded', wpforms_admin_bar_menu_init ); }"
                    
141		);
                    
196				'title' => 'WPForms' . $indicator,
                    
197				'href'  => admin_url( 'admin.php?page=wpforms-overview' ),
                    
198			]
                    
219				'title'  => esc_html__( 'Notifications', 'wpforms-lite' ) . ' <div class="wp-core-ui wp-ui-notification wpforms-menu-notification-indicator"></div>',
                    
220				'href'   => admin_url( 'admin.php?page=wpforms-overview' ),
                    
221			]
                    
238				'title'  => esc_html__( 'All Forms', 'wpforms-lite' ),
                    
239				'href'   => admin_url( 'admin.php?page=wpforms-overview' ),
                    
240			]
                    
257				'title'  => esc_html__( 'Add New', 'wpforms-lite' ),
                    
258				'href'   => admin_url( 'admin.php?page=wpforms-builder' ),
                    
259			]
                    
                
Upload.php https://gitlab.com/Ltaimao/wecenter | PHP | 251 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25//require_once 'Zend/Validate/Abstract.php';
                    
26
                    
55    protected $_messageTemplates = array(
                    
56        self::INI_SIZE       => "File '%value%' exceeds the defined ini size",
                    
57        self::FORM_SIZE      => "File '%value%' exceeds the defined form size",
                    
61        self::CANT_WRITE     => "File '%value%' can't be written",
                    
62        self::EXTENSION      => "A PHP extension returned an error while uploading the file '%value%'",
                    
63        self::ATTACK         => "File '%value%' was illegally uploaded. This could be a possible attack",
                    
113            if (count($return) === 0) {
                    
114                //require_once 'Zend/Validate/Exception.php';
                    
115                throw new Zend_Validate_Exception("The file '$file' was not found");
                    
152    /**
                    
153     * Defined by Zend_Validate_Interface
                    
154     *
                    
                
core.php https://github.com/Xobb/kohana-formo.git | PHP | 454 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2
                    
403	{
                    
404		// The defined view file takes precendence over the default one
                    
405		// and the parameter passed into generate() takes first precedence
                    
434
                    
435		// If prefix is still set to NULL and config file has one defined, use the config prefix
                    
436		if ($prefix === NULL AND $_prefix = Kohana::config('formo')->view_prefix)
                    
                
html.php https://github.com/lysender/simplestore.git | PHP | 380 lines
                    
1<?php defined('SYSPATH') or die('No direct access allowed.');
                    
2/**
                    
                
index.php https://bitbucket.org/adaltan/parkavn-git.git | PHP | 163 lines
                    
21/**
                    
22 * Step 3: Define the Slim application routes
                    
23 *
                    
23 *
                    
24 * Here we define several Slim application routes that respond
                    
25 * to appropriate HTTP request methods. In this example, the second
                    
28 * second argument should be any variable that returns `true` for
                    
29 * `is_callable()`. An example GET route for PHP < 5.3 is:
                    
30 *
                    
102                    <li>Read the <a href="http://www.slimframework.com/documentation/stable" target="_blank">online documentation</a></li>
                    
103                    <li>Follow <a href="http://www.twitter.com/slimphp" target="_blank">@slimphp</a> on Twitter</li>
                    
104                </ol>
                    
117                <p>
                    
118                    Follow <a href="http://www.twitter.com/slimphp" target="_blank">@slimphp</a> on Twitter to receive the very latest news
                    
119                    and updates about the framework.
                    
                
Inline.js https://github.com/Wkasel/qooxdoo.git | JavaScript | 325 lines
                    
11     LGPL: http://www.gnu.org/licenses/lgpl.html
                    
12     EPL: http://www.eclipse.org/org/documents/epl-v10.php
                    
13     See the LICENSE file in the project's top-level directory for details.
                    
46 */
                    
47qx.Class.define("qx.ui.root.Inline",
                    
48{
                    
154          // check for implicit height. Set the height explicit to prevent that
                    
155          // the element grows indefinetely
                    
156          if (elementDimensions.height >= 1 &&
                    
                
adminControllers.js https://bitbucket.org/snakeyyy/srs.git | JavaScript | 251 lines
                    
60        event.endJSON = fixDate(event.end);
                    
61        if (event.block) { //php si neumi poradit s html apod v jsondecode
                    
62            event.block.perex = '';
                    
68                if ($.inArray(val, seen) >= 0)
                    
69                    return undefined;
                    
70                seen.push(val);
                    
72            if (key == 'source') { // tyto data nepotřebujeme
                    
73                return undefined;
                    
74            }
                    
116    $scope.remove = function (event) {
                    
117        if (event.block != null || event.block != undefined) {
                    
118            event.block.program_count--;
                    
126        this.event = $scope.event;
                    
127        if ($scope.event.block != undefined && $scope.event.block != null) {
                    
128            var id = $scope.event.block.id
                    
                
mbfilter_utf16.c https://gitlab.com/envieidoc/tomato | C | 316 lines
                    
25 * The source code included in this files was separated from mbfilter.c
                    
26 * by moriyoshi koizumi <moriyoshi@php.net> on 4 dec 2002.
                    
27 * 
                    
119
                    
120#define CK(statement)	do { if ((statement) < 0) return (-1); } while (0)
                    
121
                    
                
Upload.php https://gitlab.com/rsilveira1987/Expresso | PHP | 251 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25require_once 'Zend/Validate/Abstract.php';
                    
26
                    
55    protected $_messageTemplates = array(
                    
56        self::INI_SIZE       => "File '%value%' exceeds the defined ini size",
                    
57        self::FORM_SIZE      => "File '%value%' exceeds the defined form size",
                    
61        self::CANT_WRITE     => "File '%value%' can't be written",
                    
62        self::EXTENSION      => "A PHP extension returned an error while uploading the file '%value%'",
                    
63        self::ATTACK         => "File '%value%' was illegally uploaded. This could be a possible attack",
                    
113            if (count($return) === 0) {
                    
114                require_once 'Zend/Validate/Exception.php';
                    
115                throw new Zend_Validate_Exception("The file '$file' was not found");
                    
152    /**
                    
153     * Defined by Zend_Validate_Interface
                    
154     *
                    
                
PropelCSVParser.php https://gitlab.com/Isaki/le331.fr | PHP | 314 lines
                    
1<?php
                    
2
                    
12 * CSV parser. Converts data between associative array and CSV formats.
                    
13 * CSV parsing code borrowed from php-csv-utils by Luke Visinoni
                    
14 * http://code.google.com/p/php-csv-utils/
                    
25
                    
26    // these settings are predefined for Excel CSV format
                    
27
                    
                
ImageCache.php https://gitlab.com/susmitha.plts/photographer_portfolio | PHP | 328 lines
                    
1<?php
                    
2
                    
75                    
                    
76                // define path in filesystem
                    
77                if (isset($manager->config['cache']['path'])) {
                    
                
SideEffectsSniff.php https://gitlab.com/yousafsyed/easternglamor | PHP | 229 lines
                    
26 * @version   Release: @package_version@
                    
27 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
28 */
                    
52     */
                    
53    public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
54    {
                    
62        $tokens = $phpcsFile->getTokens();
                    
63        $result = $this->_searchForConflict($phpcsFile, 0, ($phpcsFile->numTokens - 1), $tokens);
                    
64
                    
83     *
                    
84     * @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
                    
85     * @param int                  $start     The token to start searching from.
                    
91     */
                    
92    private function _searchForConflict(PHP_CodeSniffer_File $phpcsFile, $start, $end, $tokens)
                    
93    {
                    
                
Upload.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 251 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25#require_once 'Zend/Validate/Abstract.php';
                    
26
                    
55    protected $_messageTemplates = array(
                    
56        self::INI_SIZE       => "File '%value%' exceeds the defined ini size",
                    
57        self::FORM_SIZE      => "File '%value%' exceeds the defined form size",
                    
61        self::CANT_WRITE     => "File '%value%' can't be written",
                    
62        self::EXTENSION      => "A PHP extension returned an error while uploading the file '%value%'",
                    
63        self::ATTACK         => "File '%value%' was illegally uploaded. This could be a possible attack",
                    
113            if (count($return) === 0) {
                    
114                #require_once 'Zend/Validate/Exception.php';
                    
115                throw new Zend_Validate_Exception("The file '$file' was not found");
                    
152    /**
                    
153     * Defined by Zend_Validate_Interface
                    
154     *
                    
                
model.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 353 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* @version		$Id: model.php 14401 2010-01-26 14:10:00Z louis $
                    
4* @package		Joomla.Framework
                    
6* @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
                    
7* @license		GNU/GPL, see LICENSE.php
                    
8* Joomla! is free software. This version may have been modified pursuant
                    
11* other free or open source software licenses.
                    
12* See COPYRIGHT.php for copyright notices and details.
                    
13*/
                    
15// Check to ensure this file is within the rest of the framework
                    
16defined('JPATH_BASE') or die();
                    
17
                    
88			$this->addTablePath($config['table_path']);
                    
89		} else if (defined( 'JPATH_COMPONENT_ADMINISTRATOR' )){
                    
90			$this->addTablePath(JPATH_COMPONENT_ADMINISTRATOR.DS.'tables');
                    
                
 

Source

Language