PageRenderTime 1557ms queryTime 133ms sortTime 544ms getByIdsTime 72ms findMatchingLines 300ms

100+ results results for 'php define repo:louieDA/bestilblomster' (1557 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
                    
                
standard.php https://gitlab.com/pollux1er/PerencoCanteenAdmin | 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
                    
                
homefeatured.php https://gitlab.com/staging06/myproject | 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');
                    
                
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'),
                    
                
ResponseHeaderBag.php https://gitlab.com/judielsm/Handora | PHP | 322 lines
                    
1<?php
                    
2
                    
314
                    
315        // public if s-maxage is defined, private otherwise
                    
316        if (!isset($this->cacheControl['s-maxage'])) {
                    
                
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.",

                    
                
package-summary.html https://bitbucket.org/mobileup/facebook-android-sdk.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>
                    
                
config.php https://bitbucket.org/kudutest/moodlegit.git | PHP | 258 lines
                    
1<?php
                    
2
                    
2
                    
3defined('MOODLE_INTERNAL') || die();
                    
4
                    
91    'base' => array(
                    
92        'file' => 'general.php',
                    
93        'regions' => array('side-pre', 'side-post'),
                    
96    'standard' => array(
                    
97        'file' => 'general.php',
                    
98        'regions' => array('side-pre', 'side-post'),
                    
101    'course' => array(
                    
102        'file' => 'general.php',
                    
103        'regions' => array('side-pre', 'side-post'),
                    
107    'coursecategory' => array(
                    
108        'file' => 'general.php',
                    
109        'regions' => array('side-pre', 'side-post'),
                    
                
reportlib_test.php https://bitbucket.org/kudutest/moodlegit.git | PHP | 197 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
17/**
                    
18 * Unit tests for grade/report/lib.php.
                    
19 *
                    
20 * @pacakge  core_grade
                    
21 * @category phpunit
                    
22 * @author   Andrew Davis
                    
25
                    
26defined('MOODLE_INTERNAL') || die();
                    
27
                    
28global $CFG;
                    
29require_once($CFG->dirroot.'/grade/lib.php');
                    
30require_once($CFG->dirroot.'/grade/report/lib.php');
                    
                
class.splitmerge.plugin.php https://github.com/Emaratilicious/Garden.git | PHP | 195 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
10
                    
11// Define the plugin:
                    
12$PluginInfo['SplitMerge'] = array(
                    
111      
                    
112      $Sender->Render($this->GetView('splitcomments.php'));
                    
113   }
                    
187      
                    
188      $Sender->Render($this->GetView('mergediscussions.php'));
                    
189   }
                    
                
Maildir.php https://github.com/kervin/kyzstudio.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://github.com/kervin/kyzstudio.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     *
                    
                
LBFgcac.plugin.php https://github.com/md-tech/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.
                    
                
csharp.php https://github.com/pixelpost/ultralite2_docs.git | 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'
                    
                
constants.php https://github.com/naderman/phpbb-orchestra.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.9');
                    
29
                    
30// QA-related
                    
31// define('PHPBB_QA', 1);
                    
32
                    
                
ParserWiki.i18n.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 263 lines
                    
1<?php
                    
2/**
                    
11$messages['en'] = array(
                    
12	'parserwiki-desc' => ' Allows to define a grammar in a wiki then use that grammar to input information to the same wiki',
                    
13);
                    
188$messages['no'] = array(
                    
189	'parserwiki-desc' => 'Gjør det mulig å definere en grammatikk i en wiki og deretter bruke denne grammatikken til å legge inn informasjon til den samme wikien',
                    
190);
                    
                
standard.php https://gitlab.com/jLKisni/furandpaw-frontend | 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
                    
                
debugger.test.php https://github.com/campagsi/bisad.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			}
                    
                
Regex.php https://github.com/grjones/qframe.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     *
                    
                
Unit_test.php https://gitlab.com/rezaul007/Hospital-information-bank | 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	{
                    
                
shmop.c https://gitlab.com/envieidoc/tomato | 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/rbe/listaTareas | 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
                    
                
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
                    
                
Abstract.php https://github.com/rgranadino/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) 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
                    
                
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
                    
                
wl_iw.h https://bitbucket.org/androidarmv6/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="
                    
                
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	
                    
                
Abstract.php https://bitbucket.org/sevenly/magento-ce.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
                    
                
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 */
                    
                
pi.splitter.php https://bitbucket.org/tdevonshire/guinness-jazz-festival.git | PHP | 324 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/*
                    
6 Copyright: Oliver Heine
                    
7 http://utilitees.de/ee.php/splitter
                    
8--------------------------------------------------------
                    
12========================================================
                    
13 File: pi.splitter.php
                    
14--------------------------------------------------------
                    
34                        'pi_author'		=> 'Oliver Heine',
                    
35                        'pi_author_url'		=> 'http://utilitees.de/ee.php/splitter',
                    
36                        'pi_description'	=> 'Split any kind of lists into blocks.',
                    
57
                    
58        if (!defined('PAGINATION')) define('PAGINATION', '<!-- pagination //-->') ;        
                    
59        // find pagination
                    
310
                    
311<?php
                    
312$buffer = ob_get_contents();
                    
                
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 
                    
                
Abstract.php https://bitbucket.org/jokusafet/magento2.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 X.commerce, 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
                    
                
Bootup.php https://bitbucket.org/larryg/powerhut.git | PHP | 223 lines
                    
1<?php // vi: set fenc=utf-8 ts=4 sw=4 et:
                    
2/*
                    
30    {
                    
31        function_exists('utf8_encode') or require __DIR__ . '/Bootup/utf8_encode.php';
                    
32    }
                    
40            {
                    
41                user_error('php.ini settings: Please disable mbstring.encoding_translation or set mbstring.http_input to "pass"',  E_USER_WARNING);
                    
42            }
                    
45            {
                    
46                user_error('php.ini settings: Please disable mbstring.func_overload', E_USER_WARNING);
                    
47            }
                    
75        }
                    
76        else if (!defined('MB_OVERLOAD_MAIL'))
                    
77        {
                    
77        {
                    
78            require __DIR__ . '/Bootup/mbstring.php';
                    
79        }
                    
                
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://github.com/jvrao/nfs-ganesha.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"
                    
                
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     *
                    
                
shmop.c https://bitbucket.org/luobailiang/php-src.git | C | 377 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | PHP version 5                                                        |
                    
4   +----------------------------------------------------------------------+
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 1997-2012 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
                    
                
simbio_form_maker.inc.php https://github.com/awriel/s3st15_matoa.git | PHP | 261 lines
                    
1<?php
                    
2/**
                    
24// be sure that this file not accessed directly
                    
25if (!defined('INDEX_AUTH')) {
                    
26    die("can not access this file directly");
                    
30
                    
31require 'simbio_form_element.inc.php';
                    
32
                    
                
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;
                    
                
OS_main.h https://github.com/kroolik/TrinityCore.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
                    
                
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;
                    
                
rl2.c https://bitbucket.org/Mali_Laurent/ps50c550.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
                    
                
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.",

                    
                
components.php https://github.com/kelios/imshop.git | PHP | 354 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
58
                    
59			if ( file_exists(APPPATH.'modules/'.$db_modules[$i]['name'].'/admin.php') )
                    
60			{
                    
85
                    
86		if ( file_exists(APPPATH.'modules/'.$module.'/'.$module.'.php') AND $this->is_installed($module) == 0 )
                    
87		{
                    
126
                    
127		if ( file_exists(APPPATH.'modules/'.$module.'/'.$module.'.php')  AND $this->is_installed($module) == 1 )
                    
128		{
                    
166				{
                    
167					$info_file = APPPATH.'modules/'.$file.'/module_info.php';
                    
168					$com_file_admin = APPPATH.'modules/'.$file.'/admin.php';
                    
267		$module = $this->input->post('component');
                    
268		$info_file = realpath(APPPATH.'modules/'.$module).'/module_info.php';
                    
269
                    
                
CustomGroup.php https://github.com/timstephenson/NatureBridge.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( );
                    
                
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 {
                    
                
adodb-odbc_db2.inc.php https://github.com/md-tech/openemr.git | PHP | 368 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
                    
                
html.php https://github.com/pratikdhaboo/kodelearn.git | PHP | 386 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
                
istack.c https://bitbucket.org/tim_heap/tidy-html5.git | C | 367 lines
                    
28    newattrs->asp = attrs->asp ? TY_(CloneNode)(doc, attrs->asp) : NULL;
                    
29    newattrs->php = attrs->php ? TY_(CloneNode)(doc, attrs->php) : NULL;
                    
30    return newattrs;
                    
263
                    
264#if 0 && defined(_DEBUG)
                    
265    if ( lexer->istacksize == 0 )
                    
                
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                }
                    
                
ini_setting.cpp https://github.com/kevlund/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;
                    
                
options.php https://github.com/PressCrew/infinity.git | PHP | 403 lines
                    
1<?php
                    
2/**
                    
218{
                    
219	// define default args
                    
220	$defaults = new stdClass;
                    
246	infinity_dashboard_load_template(
                    
247		'options/menu.php',
                    
248		array( 'sections' => $sections )
                    
278	infinity_dashboard_load_template(
                    
279		'options/menu-section.php',
                    
280		array(
                    
298	infinity_dashboard_load_template(
                    
299		'options/menu-options.php',
                    
300		array( 'options' => $options )
                    
396	// add form processing
                    
397	if ( defined( 'DOING_AJAX' ) ) {
                    
398		add_action( 'wp_ajax_infinity_options_update', array( ICE_Policy::options()->registry(), 'process_form_ajax' ) );
                    
                
BannerInfo.php https://github.com/orchestra-io/sample-openx.git | PHP | 344 lines
                    
1<?php
                    
2
                    
24+---------------------------------------------------------------------------+
                    
25$Id: BannerInfo.php 67065 2010-11-17 23:16:15Z chris.nutting $
                    
26*/
                    
34// Require the base Info class.
                    
35require_once MAX_PATH . '/lib/OA/Info.php';
                    
36
                    
160     * Frequency capping: total views per period.
                    
161     * (defined in seconds by "block").
                    
162     *
                    
                
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     *
                    
                
filter.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 169 lines
                    
1<?php
                    
2
                    
26
                    
27defined('MOODLE_INTERNAL') || die();
                    
28
                    
                
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     */
                    
                
chamber.py https://github.com/sialan/autonomous-sprayer.git | Python | 234 lines
                    
6The chamber manual page is at:
                    
7http://fabmetheus.crsndoo.com/wiki/index.php/Skeinforge_Chamber
                    
8
                    
15
                    
16Defines the print_bed temperature in Celcius by adding an M140 command.
                    
17
                    
20
                    
21Defines the chamber temperature in Celcius by adding an M141 command.
                    
22
                    
25
                    
26Defines the holding pressure of a mechanism, like a vacuum table or electromagnet, to hold the bed surface or object, by adding an M142 command.  The holding pressure is in bar. For hardware which only has on/off holding, when the holding pressure is zero, turn off holding, when the holding pressure is greater than zero, turn on holding. 
                    
27
                    
59Kulitorum has made a heated bed.  It is a 5mm Alu sheet with a pattern laid out in kapton tape.  The wire is a 0.6mm2 Konstantin wire and it's held in place by small pieces of kapton tape.  The description and picture is at:
                    
60http://gallery.kulitorum.com/main.php?g2_itemId=283
                    
61
                    
                
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
                    
                
show_entries_anonym.php https://github.com/kpike/moodle.git | PHP | 229 lines
                    
1<?php
                    
2
                    
10
                    
11require_once("../../config.php");
                    
12require_once("lib.php");
                    
12require_once("lib.php");
                    
13require_once($CFG->libdir.'/tablelib.php');
                    
14
                    
25
                    
26$url = new moodle_url('/mod/feedback/show_entries_anonym.php', array('id'=>$id));
                    
27// if ($userid !== '') {
                    
63///////////////////////////////////////////////////////////////////////////
                    
64include('tabs.php');
                    
65
                    
87    // preparing the table for output
                    
88    $baseurl = new moodle_url('/mod/feedback/show_entries_anonym.php');
                    
89    $baseurl->params(array('id'=>$id, 'do_show'=>$do_show, 'showall'=>$showall));
                    
                
timeline.lib.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 234 lines
                    
1<?php
                    
2/* For licensing terms, see /license.txt */
                    
10 */
                    
11define('TIMELINE_STATUS_ACTIVE', '1');
                    
12define('TIMELINE_STATUS_INACTIVE', '2');
                    
43		$html .= '<div class="actions">';
                    
44        //$html .= '<a href="career_dashboard.php">'.Display::return_icon('back.png',get_lang('Back'),'','32').'</a>';     	
                    
45		$html .= '<a href="'.api_get_self().'?action=add">'.Display::return_icon('add.png', get_lang('Add'),'','32').'</a>';        				
                    
182    public function get_url($id) {
                    
183        return api_get_path(WEB_AJAX_PATH).'timeline.ajax.php?a=get_timeline_content&id='.intval($id);
                    
184    }
                    
                
bcmsdh.h https://bitbucket.org/Tofe/picasso-kernel.git | C Header | 238 lines
                    
10 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
11 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
12 * following added to such license:
                    
36#define BCMSDH_ERROR_VAL	0x0001 /* Error */
                    
37#define BCMSDH_INFO_VAL		0x0002 /* Info */
                    
38extern const uint bcmsdh_msglevel;
                    
39
                    
40#define BCMSDH_ERROR(x)
                    
41#define BCMSDH_INFO(x)
                    
42
                    
43#if (defined(BCMSDIOH_STD) || defined(BCMSDIOH_BCM) || defined(BCMSDIOH_SPI))
                    
44#define BCMSDH_ADAPTER
                    
77
                    
78#if defined(DHD_DEBUG)
                    
79/* Query pending interrupt status from the host controller */
                    
                
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}
                    
                
horizontal_shard.py https://bitbucket.org/zzzeek/sqlalchemy.git | Python | 256 lines
                    
5# This module is part of SQLAlchemy and is released under
                    
6# the MIT License: https://www.opensource.org/licenses/mit-license.php
                    
7
                    
9
                    
10Defines a rudimental 'horizontal sharding' system which allows a Session to
                    
11distribute queries and persistence operations across multiple databases.
                    
                
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.
                    
                
FUTracker.h https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git | C Header | 378 lines
                    
5	
                    
6	MIT License: http://www.opensource.org/licenses/mit-license.php
                    
7*/
                    
9#ifndef _FU_TRACKER_H_
                    
10#define _FU_TRACKER_H_
                    
11
                    
                
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
                    
                
SaxRepresentation.java https://bitbucket.org/haris_peco/debrief.git | Java | 241 lines
                    
12 * You can obtain a copy of the LGPL 2.1 license at
                    
13 * http://www.opensource.org/licenses/lgpl-2.1.php
                    
14 * 
                    
15 * You can obtain a copy of the CDDL 1.0 license at
                    
16 * http://www.opensource.org/licenses/cddl1.php
                    
17 * 
                    
18 * You can obtain a copy of the EPL 1.0 license at
                    
19 * http://www.opensource.org/licenses/eclipse-1.0.php
                    
20 * 
                    
196            throw new IOException(
                    
197                    "Couldn't parse the source representation: no content restlet defined.");
                    
198        }
                    
                
PimpleTest.php https://bitbucket.org/laborautonomo/laborautonomo-site.git | PHP | 270 lines
                    
1<?php
                    
2
                    
36 */
                    
37class PimpleTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
112     * @expectedException InvalidArgumentException
                    
113     * @expectedExceptionMessage Identifier "foo" is not defined.
                    
114     */
                    
188     * @expectedException InvalidArgumentException
                    
189     * @expectedExceptionMessage Identifier "foo" is not defined.
                    
190     */
                    
224     * @expectedException InvalidArgumentException
                    
225     * @expectedExceptionMessage Identifier "foo" is not defined.
                    
226     */
                    
                
proxy.php https://bitbucket.org/asikart-extension/joomclouds-client.git | PHP | 284 lines
                    
1<?php
                    
2/**
                    
11// no direct access
                    
12defined('_JEXEC') or die;
                    
13
                    
106            jimport('joomla.filesystem.path');
                    
107            if ($path = JPath::find(self::$includePaths[$prefix], strtolower($file) . '.php'))
                    
108            {
                    
202     *
                    
203     * @see     http://php.net/manual/en/function.call-user-func-array.php
                    
204     */
                    
208        {
                    
209            // PHP 5.3 workaround
                    
210            $temp = array();
                    
                
 

Source

Language