PageRenderTime 473ms queryTime 61ms sortTime 96ms getByIdsTime 160ms findMatchingLines 61ms

100+ results results for 'php extract' (473 ms)

Not the results you expected?
CpuIA32.h https://gitlab.com/envieidoc/Clover | C Header | 358 lines
                    
6which accompanies this distribution.  The full text of the license may be found at        
                    
7http://opensource.org/licenses/bsd-license.php                                            
                    
8                                                                                          
                    
346Routine Description:
                    
347  Extract CPU detail version infomation
                    
348
                    
                
BootManager.c https://gitlab.com/envieidoc/Clover | C | 412 lines
                    
7which accompanies this distribution.  The full text of the license may be found at
                    
8http://opensource.org/licenses/bsd-license.php
                    
9
                    
58  {
                    
59    FakeExtractConfig,
                    
60    FakeRouteConfig,
                    
                
polldaddy.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 401 lines
                    
1<?php
                    
2
                    
30
                    
31		extract( shortcode_atts( array(
                    
32			'survey'     => null,
                    
                
local.php https://gitlab.com/gabdark/aceit | PHP | 818 lines
                    
1<?php 
                    
2
                    
298			
                    
299			$field_group['local'] = 'php';
                    
300			
                    
304		// remove fields
                    
305		$fields = acf_extract_var($field_group, 'fields');
                    
306		
                    
                
Loader.php https://gitlab.com/buitenzorg812/garapic.cms | PHP | 481 lines
                    
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
                    
2
                    
12 *
                    
13 * Install this file as application/third_party/MX/Loader.php
                    
14 *
                    
314	{
                    
315		extract($_ci_data);
                    
316
                    
346
                    
347		extract($this->_ci_cached_vars);
                    
348
                    
352		{
                    
353			echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));
                    
354		}
                    
480/** load the CI class for Modular Separation **/
                    
481(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php';
                    
                
ez_sql_core.php https://github.com/LamCiuLoeng/BookShare.git | PHP | 552 lines
                    
1<?php
                    
2
                    
124
                    
125			// Extract var out of cached results based x,y vals
                    
126			if ( $this->last_result[$y] )
                    
189
                    
190			// Extract the column values
                    
191			for ( $i=0; $i < count($this->last_result); $i++ )
                    
                
arr.php https://gitlab.com/ken3/bluSky | PHP | 602 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
269	 *
                    
270	 * @param   array   $array      array to extract from
                    
271	 * @param   string  $key        key name
                    
284	 *     // Get the values "username", "password" from $_POST
                    
285	 *     $auth = Arr::extract($_POST, array('username', 'password'));
                    
286	 *
                    
286	 *
                    
287	 * @param   array   $array      array to extract keys from
                    
288	 * @param   array   $keys       list of key names
                    
291	 */
                    
292	public static function extract($array, array $keys, $default = NULL)
                    
293	{
                    
351	/**
                    
352	 * Recursive version of [array_map](http://php.net/array_map), applies one or more
                    
353	 * callbacks to all elements in an array, including sub-arrays.
                    
                
CListView.php https://gitlab.com/dannyrios81/bancoABC | PHP | 325 lines
                    
1<?php
                    
2/**
                    
78	 * @var array additional data to be passed to {@link itemView} when rendering each data item.
                    
79	 * This array will be extracted into local PHP variables that can be accessed in the {@link itemView}.
                    
80	 */
                    
                
class-wp-terms-list-table.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 454 lines
                    
1<?php
                    
2/**
                    
156
                    
157		extract( $args, EXTR_SKIP );
                    
158
                    
298		if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term )
                    
299			$actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url( "edit-tags.php?action=delete&amp;taxonomy=$taxonomy&amp;tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>";
                    
300		if ( $tax->public )
                    
331
                    
332		/** This filter is documented in wp-admin/edit-tag-form.php */
                    
333		$out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug ) . '</div>';
                    
343	function column_slug( $tag ) {
                    
344		/** This filter is documented in wp-admin/edit-tag-form.php */
                    
345		return apply_filters( 'editable_slug', $tag->slug );
                    
366		if ( 'attachment' == $this->screen->post_type )
                    
367			return "<a href='" . esc_url ( add_query_arg( $args, 'upload.php' ) ) . "'>$count</a>";
                    
368
                    
                
SelectableAssociationTrait.php https://gitlab.com/alexandresgv/siteentec | PHP | 341 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         3.0.0
                    
12 * @since         3.0.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
83        $finder = isset($options['finder']) ? $options['finder'] : $this->finder();
                    
84        list($finder, $opts) = $this->_extractFinder($finder);
                    
85        $fetchQuery = $this
                    
                
Ntp.php https://github.com/Exercise/zf2.git | PHP | 434 lines
                    
1<?php
                    
2/**
                    
251    /**
                    
252     * Extracts the binary data returned from the timeserver
                    
253     *
                    
256     */
                    
257    protected function _extract($binary)
                    
258    {
                    
                
yii.php https://gitlab.com/isdzulqor/Slis-Dev | PHP | 107 lines
                    
1<?php
                    
2/**
                    
5 * This file is automatically generated by 'yii message' command.
                    
6 * It contains the localizable messages extracted from source code.
                    
7 * You may modify this file by translating the extracted messages.
                    
                
shortcodes.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 334 lines
                    
1<?php
                    
2/**
                    
66 * function bartag_func($atts) {
                    
67 * 	extract(shortcode_atts(array(
                    
68 * 		'foo' => 'no foo',
                    
                
string.rst https://gitlab.com/albertkeba/docs | ReStructuredText | 300 lines
                    
42
                    
43.. php:staticmethod:: tokenize($data, $separator = ',', $leftBound = '(', $rightBound = ')')
                    
44
                    
50
                    
51        $data = "cakephp 'great framework' php";
                    
52        $result = String::tokenize($data, ' ', "'", "'");
                    
53        // result contains
                    
54        array('cakephp', "'great framework'", 'php');
                    
55
                    
63
                    
64.. php:staticmethod:: cleanInsert($string, $options = array())
                    
65
                    
81
                    
82.. php:staticmethod:: wrap($text, $options = array())
                    
83
                    
                
index.html https://gitlab.com/essere.lab.public/qualitas.class-corpus | HTML | 305 lines
                    
89<br>
                    
90<span class="element"><a href="http://jasperforge.org/scm/viewvc.php/tags/jr-3-7-4/jasperreports/demo/samples/xlsdatasource/?root=jasperreports" target="_blank">Browse Sample Source Files on SVN</a></span>
                    
91<table cellspacing="0" cellpadding="0" border="0" width="100%">
                    
187<br>
                    
188Data sources are very useful when data come as a set of structured records, either extracted from a 
                    
189relational database, or loaded from specific files. In order to become more familiar with data source 
                    
                
Save.php https://gitlab.com/yousafsyed/easternglamor | PHP | 298 lines
                    
1<?php
                    
2/**
                    
67     */
                    
68    protected function _extractData(
                    
69        \Magento\Framework\App\RequestInterface $request,
                    
119            $scope = sprintf('address/%s', $addressId);
                    
120            $addressData = $this->_extractData(
                    
121                $this->getRequest(),
                    
132            if (!empty($addressData['default_billing']) && $addressData['default_billing'] === 'true') {
                    
133                $extractedCustomerData[CustomerInterface::DEFAULT_BILLING] = $addressId;
                    
134                $addressData['default_billing'] = true;
                    
138            if (!empty($addressData['default_shipping']) && $addressData['default_shipping'] === 'true') {
                    
139                $extractedCustomerData[CustomerInterface::DEFAULT_SHIPPING] = $addressId;
                    
140                $addressData['default_shipping'] = true;
                    
154     */
                    
155    protected function _extractCustomerAddressData(array & $extractedCustomerData)
                    
156    {
                    
                
template.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 394 lines
                    
95 * Works by first retrieving the current slug for example 'category-default.php' and then
                    
96 * trying category ID, for example 'category-1.php' and will finally fallback to category.php
                    
97 * template, if those files don't exist.
                    
185 *
                    
186 * Attempts to locate 'home.php' first before falling back to 'index.php'.
                    
187 *
                    
193function get_home_template() {
                    
194	$templates = array( 'home.php', 'index.php' );
                    
195
                    
218 * Will first look for the specifically assigned page template
                    
219 * The will search for 'page-{slug}.php' followed by 'page-id.php'
                    
220 * and finally 'page.php'
                    
296 *
                    
297 * Some examples for the 'text/plain' mime type are 'text.php', 'plain.php', and
                    
298 * finally 'text_plain.php'.
                    
                
test_type_inference.cpp https://github.com/tmjnaid/hiphop-php.git | C++ | 451 lines
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
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   +----------------------------------------------------------------------+
                    
146  // extract() is the same as assigning values to l-dynamic variables
                    
147  VT("<?php function t($a) { extract($a);}",
                    
148     "void f_t(Variant v_a);\n"
                    
170  // r-value won't modify its type
                    
171  VT("<?php class T { const a = 'test'; } T::a + 1;",
                    
172     "extern const String q_t_a;\n"
                    
393
                    
394  VT("<?php $a = 1; t($a); function t($a) { r($a);} function r($a) {}",
                    
395     "Variant gv_a;\n"
                    
                
UploadHandler.php https://github.com/zikula-modules/Reviews.git | PHP | 404 lines
                    
1<?php
                    
2/**
                    
45        $this->imageFileTypes = array('gif', 'jpeg', 'jpg', 'png', 'swf');
                    
46        $this->forbiddenFileTypes = array('cgi', 'pl', 'asp', 'phtml', 'php', 'php3', 'php4', 'php5', 'exe', 'com', 'bat', 'jsp', 'cfm', 'shtml');
                    
47        $this->allowedFileSizes = array('review' => array('coverUpload' => 102400));
                    
129    
                    
130        // extract file extension
                    
131        $fileName = $file['name'];
                    
325                break;
                    
326            case UPLOAD_ERR_INI_SIZE: //uploaded file exceeds the upload_max_filesize directive in php.ini
                    
327                $errmsg = __('File too big', $dom);
                    
                
date.php https://github.com/chemila/kohana.git | PHP | 566 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
28	 * Timezone for formatted_time
                    
29	 * @link http://uk2.php.net/manual/en/timezones.php
                    
30	 * @var  string
                    
39	 *
                    
40	 * [!!] A list of time zones that PHP supports can be found at
                    
41	 * <http://php.net/timezones>.
                    
321		// Make the output values into keys
                    
322		extract(array_flip($output), EXTR_SKIP);
                    
323
                    
548	 *
                    
549	 * @see     http://php.net/manual/en/datetime.construct.php
                    
550	 * @param   string  datetime_str     datetime string
                    
                
user.php https://github.com/lamo2k123/yupe.git | PHP | 218 lines
                    
1<?php
                    
2/**
                    
5 * This file is automatically generated by 'yiic message' command.
                    
6 * It contains the localizable messages extracted from source code.
                    
7 * You may modify this file by translating the extracted messages.
                    
                
ApiQueryLogEvents.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 461 lines
                    
1<?php
                    
2/**
                    
28	// Eclipse helper - will be ignored in production
                    
29	require_once( 'ApiQueryBase.php' );
                    
30}
                    
48	public function execute() {
                    
49		$params = $this->extractRequestParams();
                    
50		$db = $this->getDB();
                    
182
                    
183			$vals = $this->extractRowInfo( $row );
                    
184			if ( !$vals ) {
                    
256
                    
257	private function extractRowInfo( $row ) {
                    
258		$vals = array();
                    
449		return array(
                    
450			'api.php?action=query&list=logevents'
                    
451		);
                    
                
yii.php https://gitlab.com/brucealdridge/yii2 | PHP | 114 lines
                    
1<?php
                    
2/**
                    
5* This file is automatically generated by 'yii message' command.
                    
6* It contains the localizable messages extracted from source code.
                    
7* You may modify this file by translating the extracted messages.
                    
                
paypal-return-in-web-accept-sp.inc.php https://gitlab.com/Gashler/sg | PHP | 148 lines
                    
1<?php
                    
2/**
                    
37		 *
                    
38		 * @return array|bool The original ``$paypal`` array passed in (extracted) from ``$vars``, or false when conditions do NOT apply.
                    
39		 */
                    
41		{
                    
42			extract($vars, EXTR_OVERWRITE | EXTR_REFS /* Extract all vars passed in from: ``c_ws_plugin__s2member_paypal_notify_in::paypal_notify()``. */);
                    
43
                    
                
Jplayer.as https://github.com/davemerwin/orcas-firstaid-animations.git | ActionScript | 380 lines
                    
6 * Dual licensed under the MIT and GPL licenses.
                    
7 *  - http://www.opensource.org/licenses/mit-license.php
                    
8 *  - http://www.gnu.org/copyleft/gpl.html
                    
121
                    
122				ExternalInterface.call(jQuery, "jPlayerFlashEvent", JplayerEvent.JPLAYER_READY, extractStatusData(commonStatus)); // See JplayerStatus() class for version number.
                    
123			}
                    
294			if(ExternalInterface.available) {
                    
295				ExternalInterface.call(jQuery, "jPlayerFlashEvent", e.type, extractStatusData(e.data));
                    
296			}
                    
297		}
                    
298		private function extractStatusData(data:JplayerStatus):Object {
                    
299			var myStatus = {
                    
311			};
                    
312			log("extractStatusData: sp="+myStatus.seekPercent+" cpr="+myStatus.currentPercentRelative+" cpa="+myStatus.currentPercentAbsolute+" ct="+myStatus.currentTime+" d="+myStatus.duration);
                    
313			return myStatus;
                    
                
exec.inc.php https://github.com/viglesiasce/testlink.git | PHP | 298 lines
                    
1<?php
                    
2/**
                    
11 * @copyright 	2005-2009, TestLink community 
                    
12 * @version    	CVS: $Id: exec.inc.php,v 1.60 2010/06/24 17:25:53 asimon83 Exp $
                    
13 * @link 		http://www.teamst.org/index.php
                    
34/** 
                    
35 * @uses  common.php required basic environment (configuration and core libraries) 
                    
36 **/
                    
36 **/
                    
37require_once('common.php');
                    
38
                    
93	
                    
94	// extract custom fields id.
                    
95	$map_nodeid_array_cfnames=null;
                    
                
test_ext_mailparse.cpp https://github.com/diegoIta/hiphop-php.git | C++ | 412 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
32  RUN_TEST(test_mailparse_msg_parse);
                    
33  RUN_TEST(test_mailparse_msg_extract_part_file);
                    
34  RUN_TEST(test_mailparse_msg_extract_whole_part_file);
                    
                
loco-translate-fr_FR.js https://gitlab.com/najomie/fit-hippie | JavaScript | 185 lines
                    
51    "Run Sync to update from source code": "Exécutez Synchro pour mettre à jour depuis le code source",
                    
52    "No strings could be extracted from source code": "Aucune chaîne de caractères n'a pu être extraire du code source",
                    
53    "Run Sync to update from %s": "Exécutez Synchro pour mettre à jour depuis %s",
                    
74    "File download failed": "Le téléchargement du fichier a échoué",
                    
75    "WPLANG is deprecated and should be removed from wp-config.php": "La constante WPLANG est dépréciée et devrait être supprimée de wp-config.php",
                    
76    "Unknown language": "Région inconnue",
                    
155    "Core": "Fichiers principaux",
                    
156    "PHP extension \"%s\" is not installed. If you experience problems you should install it": "",
                    
157    "Unknown error": "Erreur inconnue",
                    
178    "No source files in this package, nothing to sync": "Aucun fichier source dans ce paquetage, il n'y a rien à synchroniser",
                    
179    "No strings could be extracted from source files": "Aucune chaîne de caractères n'a pu être extraite des fichiers sources",
                    
180    "Translate WordPress plugins and themes directly in your browser": "",
                    
                
wp-cache-phase1.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 264 lines
                    
1<?php
                    
2// Pre-2.6 compatibility
                    
5
                    
6if( !include( WP_CONTENT_DIR . '/wp-cache-config.php' ) )
                    
7	return true;
                    
10
                    
11include( WPCACHEHOME . 'wp-cache-base.php');
                    
12
                    
26
                    
27require_once( WPCACHEHOME . 'wp-cache-phase2.php');
                    
28
                    
28
                    
29$plugins = glob( $wp_cache_plugins_dir . '/*.php' );
                    
30if( is_array( $plugins ) ) {
                    
48function gzip_accepted(){
                    
49	if( ini_get( 'zlib.output_compression' ) ) // don't compress WP-Cache data files when PHP is already doing it
                    
50		return false;
                    
                
MySql.php https://github.com/brtriver/sukonv.git | PHP | 437 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Lithium: the most rad php framework
                    
4 *
                    
5 * @copyright     Copyright 2010, Union of RAD (http://union-of-rad.org)
                    
6 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
                    
7 */
                    
90	/**
                    
91	 * Check for required PHP extension, or supported database feature.
                    
92	 *
                    
205		return $this->_filter(__METHOD__, $params, function($self, $params) {
                    
206			extract($params);
                    
207
                    
                
medias_kr.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 191 lines
                    
1<?php
                    
2// This is a SPIP language file  --  Ceci est un fichier langue de SPIP
                    
178	'upload_limit' => 'Ce fichier est trop gros pour le serveur ; la taille maximum autorisée en <i>upload</i> est de @max@.', # NEW
                    
179	'upload_zip_conserver' => 'Conserver l’archive après extraction', # NEW
                    
180	'upload_zip_decompacter' => 'décompressé et chaque élément qu\'il contient installé sur le site. Les fichiers qui seront alors installés sur le site sont :', # NEW
                    
                
ARC2_SemHTMLParser.php https://github.com/mterenzio/FollowThis.git | PHP | 339 lines
                    
1<?php
                    
2/*
                    
28    $this->bnode_id = 0;
                    
29    $this->auto_extract = $this->v('auto_extract', 1, $this->a);
                    
30    $this->extracted_formats = array();
                    
124  function done() {
                    
125    if ($this->auto_extract) {
                    
126      $this->extractRDF();
                    
315
                    
316  function extractRDF($formats = '') {
                    
317    $this->node_index = $this->getNodeIndex();
                    
320    foreach ($formats as $format) {
                    
321      if (!in_array($format, $this->extracted_formats)) {
                    
322        $comp = $this->camelCase($format) . 'Extractor';
                    
325          $e = new $cls($this->a, $this);
                    
326          $e->extractRDF();
                    
327        }
                    
                
arrayhelper.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 461 lines
                    
1<?php
                    
2/**
                    
204	/**
                    
205	 * Extracts a column from an array of arrays or objects
                    
206	 *
                    
436	 *
                    
437	 * @see     http://php.net/manual/en/function.array-unique.php
                    
438	 * @since   11.2
                    
                
course_bin.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 335 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
98
                    
99        require_once($CFG->dirroot . '/backup/util/includes/backup_includes.php');
                    
100
                    
190
                    
191        require_once($CFG->dirroot . '/backup/util/includes/restore_includes.php');
                    
192
                    
217
                    
218        // Extract the backup to tempdir.
                    
219        $fb = get_file_packer('application/vnd.moodle.backup');
                    
219        $fb = get_file_packer('application/vnd.moodle.backup');
                    
220        $fb->extract_to_pathname($file, $fulltempdir);
                    
221
                    
242                echo $backuprenderer->precheck_notices($results);
                    
243                echo $OUTPUT->continue_button(new \moodle_url('/course/view.php', array('id' => $this->_courseid)));
                    
244                echo $OUTPUT->footer();
                    
                
VariableCommentSniff.php https://bitbucket.org/lordgnu/php_codesniffer.git | PHP | 347 lines
                    
42 * @version   Release: @package_version@
                    
43 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
44 */
                    
314     *
                    
315     * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where this token was found.
                    
316     * @param int                  $stackPtr  The position where the double quoted
                    
320     */
                    
321    protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
322    {
                    
332     *
                    
333     * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where this token was found.
                    
334     * @param int                  $stackPtr  The position where the double quoted
                    
338     */
                    
339    protected function processVariableInString(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
340    {
                    
                
Dispatcher.php https://github.com/gustavor/lore.git | PHP | 326 lines
                    
1<?php
                    
2/**
                    
7 *
                    
8 * PHP 5
                    
9 *
                    
9 *
                    
10 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
11 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
17 * @link          http://cakephp.org CakePHP(tm) Project
                    
18 * @package       Cake.Routing
                    
18 * @package       Cake.Routing
                    
19 * @since         CakePHP(tm) v 0.2.9
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
57 *
                    
58 * Actions in CakePHP can be any public method on a controller, that is not declared in Controller.  If you
                    
59 * want controller methods to be public and in-accesible by URL, then prefix them with a `_`.
                    
                
chunk.php https://gitlab.com/hschoenburg/tlworks2 | PHP | 392 lines
                    
1<?php
                    
2
                    
2
                    
3include __DIR__ . "/XmlStreamReader/autoload.php";
                    
4
                    
168        $parseroptions = array(            
                    
169            "extractContainer" => false, // Required option
                    
170        );
                    
234        else
                    
235           $path = 'php://filter/read=preprocessxml/resource=' . $this->file;
                    
236    }
                    
368
                    
369class preprocessXml_filter extends php_user_filter {    
                    
370
                    
                
ext_continuation.cpp https://github.com/github-ivan/hiphop-php.git | C++ | 317 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com)         |
                    
6   | Copyright (c) 1997-2010 The PHP Group                                |
                    
7   +----------------------------------------------------------------------+
                    
7   +----------------------------------------------------------------------+
                    
8   | This source file is subject to version 3.01 of the PHP license,      |
                    
9   | that is bundled with this package in the file LICENSE, and is        |
                    
10   | available through the world-wide-web at the following url:           |
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
                
TranslationDebugCommand.php https://gitlab.com/Isaki/le331.fr | PHP | 268 lines
                    
63
                    
64  <info>php %command.full_name% --domain=messages en AcmeDemoBundle</info>
                    
65
                    
67
                    
68  <info>php %command.full_name% --only-missing en AcmeDemoBundle</info>
                    
69
                    
71
                    
72  <info>php %command.full_name% --only-unused en AcmeDemoBundle</info>
                    
73
                    
117
                    
118        // Extract used messages
                    
119        $extractedCatalogue = new MessageCatalogue($locale);
                    
123            if (is_dir($path)) {
                    
124                $this->getContainer()->get('translation.extractor')->extract($path, $extractedCatalogue);
                    
125            }
                    
                
view.php https://github.com/Socrattes2099/ezpublish.git | PHP | 255 lines
                    
1<?php
                    
2//
                    
99            // Without reference there will be a inconsistency with GLOBAL instance and stored ini file.
                    
100            $iniTemp = eZINI::create( $settingFile . '.append.php', $path, null, null, null, true );
                    
101            $iniTemp->removeSetting( $block, $setting );
                    
234    $iniFiles = array_merge( $iniFiles, eZDir::recursiveFindRelative( $iniPath, '', '.ini' ) );
                    
235    $iniFiles = array_merge( $iniFiles, eZDir::recursiveFindRelative( $iniPath, '', '.ini.append.php' ) );
                    
236}
                    
237
                    
238// extract all .ini files without path
                    
239$iniFiles = preg_replace('%.*/%', '', $iniFiles );
                    
239$iniFiles = preg_replace('%.*/%', '', $iniFiles );
                    
240// remove *.ini[.append.php] from file name
                    
241$iniFiles = preg_replace('%\.ini.*%', '.ini', $iniFiles );
                    
                
date.php https://github.com/alfons56/Kohana.git | PHP | 557 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
8 * @copyright  (c) 2007-2009 Kohana Team
                    
9 * @license    http://kohanaphp.com/license
                    
10 */
                    
28	 * Timezone for formatted_time
                    
29	 * @link http://uk2.php.net/manual/en/timezones.php
                    
30	 * @var  string 
                    
39	 *
                    
40	 * [!!] A list of time zones that PHP supports can be found at
                    
41	 * <http://php.net/timezones>.
                    
317		// Make the output values into keys
                    
318		extract(array_flip($output), EXTR_SKIP);
                    
319
                    
539	 *
                    
540	 * @see     http://php.net/manual/en/datetime.construct.php
                    
541	 * @param   string  datetime_str     datetime string
                    
                
info-table-design06.php https://gitlab.com/ezgonzalez/integral | PHP | 291 lines
                    
1<?php
                    
2/*
                    
8		$icon_type = $icon_img = $img_width = $icon = $icon_color = $icon_color_bg = $icon_size = $icon_style = $icon_border_style = $icon_border_radius = $icon_color_border = $icon_border_size = $icon_border_spacing = $el_class = $package_heading = $package_sub_heading = $package_price = $package_unit = $package_btn_text = $package_link = $package_featured = $color_bg_main = $color_txt_main = $color_bg_highlight = $color_txt_highlight = $color_scheme = $use_cta_btn = '';
                    
9		extract(shortcode_atts(array(
                    
10			'color_scheme' => 'black',
                    
                
image.php https://bitbucket.org/jstroschein/wordpress-3.5.1-clean.git | PHP | 412 lines
                    
1<?php
                    
2/**
                    
173	// exif contains a bunch of data we'll probably never need formatted in ways
                    
174	// that are difficult to use. We'll normalize it and just extract the fields
                    
175	// that are likely to be useful. Fractions and numbers are converted to
                    
                
function.patch https://bitbucket.org/deonjo/vulnerablity_crawler.git | Patch | 420 lines
                    
42     - Fixed error case handling in function_exists() PHP 5.3.x
                    
43     - Merged changes/fixes in import_request_variables()/extract() from upstream PHP
                    
44     - Fixed suhosin_header_handler to be PHP 5.3.x compatible
                    
78 	- Fixed PHP 5.3 compilation problem
                    
79 	- Changed PHP default POST handler to PHP's current handler
                    
80 
                    
172 
                    
173     - More compatible support for ap_php_snprintf() for old PHP
                    
174     - Changed phpinfo() output to put suhosin logo into a data: URL
                    
178 
                    
179     - Adding ap_php_snprintf() when compiling against PHP 4.3.9
                    
180     - Added suhosin.protectkey to remove cryptkeys from phpinfo() output
                    
246     - Changed definition of binary to: 0..31, 128..255 except whitespace
                    
247     - Added suhosin.log.phpscript(.name) directive to log to a PHP script
                    
248 	
                    
                
CBaseController.php https://github.com/sassman/django-benchmark.git | PHP | 296 lines
                    
1<?php
                    
2/**
                    
55 * @author Qiang Xue <qiang.xue@gmail.com>
                    
56 * @version $Id: CBaseController.php 2172 2010-06-07 19:56:01Z qiang.xue $
                    
57 * @package system.web
                    
76	 * @param string view file path
                    
77	 * @param array data to be extracted and made available to the view
                    
78	 * @param boolean whether the rendering result should be returned instead of being echoed
                    
100	 * Renders a view file.
                    
101	 * This method includes the view file as a PHP script
                    
102	 * and captures the display result if required.
                    
103	 * @param string view file
                    
104	 * @param array data to be extracted and made available to the view file
                    
105	 * @param boolean whether the rendering result should be returned as a string
                    
109	{
                    
110		// we use special variable names here to avoid conflict when extracting data
                    
111		if(is_array($_data_))
                    
                
shrewd-resume.php https://bitbucket.org/manvscode/shrewd-resume.git | PHP | 334 lines
                    
93		<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label> 
                    
94		<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
                    
95		</p>
                    
96		<p>
                    
97		<label for="<?php echo $this->get_field_id( 'display_on_page' ); ?>"><?php _e( 'Display Only On:' ); ?></label> 
                    
98		<?php $pages = get_pages( array(
                    
104
                    
105		<select class="widefat" id="<?php echo $this->get_field_id( 'display_on_page' ); ?>" name="<?php echo $this->get_field_name( 'display_on_page' ); ?>">
                    
106			<?php foreach( $pages as $page ): ?>
                    
107				<?php if( $page->post_name == $display_on_page ): ?>
                    
108				<option value="<?php echo $page->post_name; ?>" selected="selected"> <?php echo $page->post_title; ?> </option>
                    
109				<?php else: ?>
                    
109				<?php else: ?>
                    
110				<option value="<?php echo $page->post_name; ?>"> <?php echo $page->post_title; ?> </option>
                    
111				<?php endif; ?>
                    
                
gd.php https://bitbucket.org/seyar/kinda.local.git | PHP | 582 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
2/**
                    
3 * Support for image manipulation using [GD](http://php.net/GD).
                    
4 *
                    
8 * @copyright  (c) 2008-2009 Kohana Team
                    
9 * @license    http://kohanaphp.com/license.html
                    
10 */
                    
31		{
                    
32			// Get the version via a constant, available in PHP 5.
                    
33			Image_GD::$_bundled = GD_BUNDLED;
                    
39
                    
40			// Extract the bundled status
                    
41			Image_GD::$_bundled = (bool) preg_match('/\bbundled\b/i', $info['GD Version']);
                    
45		{
                    
46			// Get the version via a constant, available in PHP 5.2.4+
                    
47			$version = GD_VERSION;
                    
                
connection.php https://github.com/jrdoane/core.git | PHP | 434 lines
                    
1<?php
                    
2/**
                    
8 * @copyright  (c) 2008-2009 Kohana Team
                    
9 * @license    http://kohanaphp.com/license
                    
10 */
                    
23
                    
24	// Identifier for this connection within the PHP driver
                    
25	protected $_connection_id;
                    
46			// Determine if we can use mysqli_set_charset(), which is only
                    
47			// available on PHP 5.2.3+ when compiled against MySQL 5.0+
                    
48			static::$_set_names = ! function_exists('mysqli_set_charset');
                    
50
                    
51		// Extract the connection parameters, adding required variables
                    
52		extract($this->_config['connection'] + array(
                    
103
                    
104		// \xFF is a better delimiter, but the PHP driver uses underscore
                    
105		$this->_connection_id = sha1($hostname.'_'.$username.'_'.$password);
                    
                
providex.php https://github.com/pixelpost/ultralite2_docs.git | PHP | 299 lines
                    
1<?php
                    
2/******************************************************************************
                    
2/******************************************************************************
                    
3 * providex.php
                    
4 * ----------
                    
64            'enter', 'erase', 'error_handler', 'escape', 'event', 'execute',
                    
65            'exit', 'exitto', 'extract', 'file', 'find', 'floating point',
                    
66            'for', 'function', 'get_file_box', 'gosub', 'goto', 'grid',
                    
257    'URLS' => array(
                    
258        1 => 'http://www.allbasic.info./wiki/index.php/PX:Directive_{FNAME}',
                    
259        2 => 'http://www.allbasic.info./wiki/index.php/PX:System_function_{FNAME}',
                    
259        2 => 'http://www.allbasic.info./wiki/index.php/PX:System_function_{FNAME}',
                    
260        3 => 'http://www.allbasic.info./wiki/index.php/PX:System_variable_{FNAME}',
                    
261        4 => 'http://www.allbasic.info./wiki/index.php/PX:Nomads_{FNAME}',
                    
261        4 => 'http://www.allbasic.info./wiki/index.php/PX:Nomads_{FNAME}',
                    
262        5 => 'http://www.allbasic.info./wiki/index.php/PX:Mnemonic_{FNAMEU}'
                    
263        ),
                    
                
fr.php https://github.com/hecbuma/quali-fisioterapia.git | PHP | 88 lines
                    
1<?php
                    
2
                    
12$_MODULE['<{themeinstallator}prestashop>themeinstallator_0dea6caeb83e5c11d3678284e64ebed8'] = 'Une erreur est survenue durant l\'envoi du fichier';
                    
13$_MODULE['<{themeinstallator}prestashop>themeinstallator_c186217583219f4cd040d9ee8d388ffb'] = 'Une erreur est survenue durant l\'extraction du fichier zip';
                    
14$_MODULE['<{themeinstallator}prestashop>themeinstallator_0210b6456cdccad569cb56026bb0f689'] = 'Mauvais fichier de configuration';
                    
                
Extracted.php https://github.com/grjones/qframe.git | PHP | 274 lines
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Extracted.php 20893 2010-02-03 22:59:25Z yoshida@zend.co.jp $
                    
21 */
                    
29 *
                    
30 * Thes class allows to extract fonts already mentioned within PDF document and use them
                    
31 * for text drawing.
                    
37 */
                    
38class Zend_Pdf_Resource_Font_Extracted extends Zend_Pdf_Resource_Font
                    
39{
                    
127        $this->_underlinePosition  = null; // Can't be extracted
                    
128        $this->_underlineThickness = null; // Can't be extracted
                    
129        $this->_strikePosition     = null; // Can't be extracted
                    
270
                    
271        require_once 'Zend/Pdf/Exception.php';
                    
272        throw new Zend_Pdf_Exception(self::ENCODING_NOT_SUPPORTED);
                    
                
Imlib.php https://github.com/bermi/akelos.git | PHP | 379 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------+
                    
2// +----------------------------------------------------------------------+
                    
3// | PHP Version 4                                                        |
                    
4// +----------------------------------------------------------------------+
                    
4// +----------------------------------------------------------------------+
                    
5// | Copyright (c) 1997-2003 The PHP Group                                |
                    
6// +----------------------------------------------------------------------+
                    
6// +----------------------------------------------------------------------+
                    
7// | 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        |
                    
9// | available at through the world-wide-web at                           |
                    
10// | http://www.php.net/license/2_02.txt.                                 |
                    
11// | If you did not receive a copy of the PHP license and are unable to   |
                    
37 *
                    
38 * @see http://mmcc.cx/php_imlib/index.php
                    
39 * @version Revision: 1.0
                    
                
translate_interface.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 237 lines
                    
20    {
                    
21        $extractor = Core::make('multilingual/extractor');
                    
22        $this->set('extractor', $extractor);
                    
46            $u = new \User();
                    
47            $extractor = Core::make('multilingual/extractor');
                    
48            if ($u->isSuperUser()) {
                    
67                // First, we look in all the site sources for PHP code with GetText
                    
68                $baseTranslations = $extractor->extractTranslatableSiteStrings();
                    
69
                    
176            $translations = $section->getSectionInterfaceTranslations();
                    
177            $extractor = Core::make('multilingual/extractor');
                    
178            $extractor->mergeTranslationsWithSectionFile($section, $translations);
                    
220                if ($translation->hasExtractedComments()) {
                    
221                    $extractedComments = trim(implode("\n", $translation->getExtractedComments()));
                    
222                }
                    
                
cat_contractor_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 339 lines
                    
1<?
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/catalog/prolog.php");
                    
10$selfFolderUrl = $adminPage->getSelfFolderUrl();
                    
11$listUrl = $selfFolderUrl."cat_contractor_list.php?lang=".LANGUAGE_ID;
                    
12$listUrl = $adminSidePanelHelper->editUrlToPublicPage($listUrl);
                    
20{
                    
21	require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
                    
22
                    
25
                    
26	require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");
                    
27	die();
                    
82		{
                    
83			$applyUrl = $selfFolderUrl."cat_contractor_edit.php?lang=".LANGUAGE_ID."&ID=".$ID;
                    
84			$applyUrl = $adminSidePanelHelper->setDefaultQueryParams($applyUrl);
                    
                
Filesystem.php https://gitlab.com/techniconline/kmc | PHP | 426 lines
                    
1<?php namespace Illuminate\Filesystem;
                    
2
                    
156    /**
                    
157     * Extract the file name from a file path.
                    
158     *
                    
167    /**
                    
168     * Extract the file extension from a file path.
                    
169     *
                    
                
Message.php https://github.com/balupton/balphp.git | PHP | 402 lines
                    
1<?php
                    
2
                    
10 * @author     ##NAME## <##EMAIL##>
                    
11 * @version    SVN: $Id: Builder.php 6820 2009-11-30 17:27:49Z jwage $
                    
12 */
                    
354		Bal_Doctrine_Core::prepareFetchParams($params,array('Message','User','UserFrom','UserFor'));
                    
355		extract($params);
                    
356		
                    
                
PluginManager.plg.test.php https://bitbucket.org/valmy/openx.git | PHP | 299 lines
                    
1<?php
                    
2
                    
27
                    
28require_once LIB_PATH.'/Plugin/PluginManager.php';
                    
29
                    
74        define('OX_PLUGIN_ERROR_PACKAGE_DEFINITION_NOT_FOUND'   ,   -1);
                    
75        define('OX_PLUGIN_ERROR_PACKAGE_EXTRACT_FAILED'         ,   -2);
                    
76        define('OX_PLUGIN_ERROR_PACKAGE_PARSE_FAILED'           ,   -3);
                    
79        define('OX_PLUGIN_ERROR_PACKAGE_CONTENTS_MISMATCH'      ,   -6);
                    
80        define('OX_PLUGIN_ERROR_PLUGIN_EXTRACT_FAILED'          ,   -7);
                    
81        define('OX_PLUGIN_ERROR_PLUGIN_PARSE_FAILED'            ,   -8);
                    
165        $this->assertTrue(file_exists($path.'images/testPlugin2.jpg'));
                    
166        $this->assertTrue(file_exists($path.'testPlugin-common.php'));
                    
167        $this->assertTrue(file_exists($path.'testPlugin-index.php'));
                    
167        $this->assertTrue(file_exists($path.'testPlugin-index.php'));
                    
168        $this->assertTrue(file_exists($path.'testPlugin-page.php'));
                    
169
                    
                
BaselineGCMapIterator.java https://github.com/joekoolade/JEI.git | Java | 269 lines
                    
7 *
                    
8 *      http://www.opensource.org/licenses/eclipse-1.0.php
                    
9 *
                    
50    super(registerLocations);
                    
51    bridgeData = new ArchBridgeDataExtractor();
                    
52  }
                    
                
apbasic-widgets.php https://gitlab.com/pornmongkon.p/wordpress | PHP | 273 lines
                    
1<?php
                    
2/**
                    
196
                    
197	extract( $widget_field );
                    
198	
                    
223 */
                    
224require get_template_directory() . '/inc/widgets/widget-fields.php';
                    
225
                    
230 */
                    
231require get_template_directory() . '/inc/widgets/widget-testimonials.php';
                    
232
                    
237 */
                    
238require get_template_directory() . '/inc/widgets/wigets-features.php';
                    
239
                    
244 */
                    
245require get_template_directory() . '/inc/widgets/widgets-services.php';
                    
246
                    
                
Extracted.php https://github.com/Doap/iCms---intelligent-Content-management-system.git | PHP | 274 lines
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Extracted.php 20866 2010-02-03 05:30:07Z yoshida@zend.co.jp $
                    
21 */
                    
29 *
                    
30 * Thes class allows to extract fonts already mentioned within PDF document and use them
                    
31 * for text drawing.
                    
37 */
                    
38class Zend_Pdf_Resource_Font_Extracted extends Zend_Pdf_Resource_Font
                    
39{
                    
127        $this->_underlinePosition  = null; // Can't be extracted
                    
128        $this->_underlineThickness = null; // Can't be extracted
                    
129        $this->_strikePosition     = null; // Can't be extracted
                    
270
                    
271        require_once 'Zend/Pdf/Exception.php';
                    
272        throw new Zend_Pdf_Exception(self::ENCODING_NOT_SUPPORTED);
                    
                
font_container.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 298 lines
                    
1<?php
                    
2
                    
47		$values = array();
                    
48		extract( $this->_vc_font_container_parse_attributes( $settings['settings']['fields'], $value ) );
                    
49
                    
                
PredisClusterHashStrategy.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 398 lines
                    
1<?php
                    
2
                    
211    /**
                    
212     * Extracts the key from the first argument of a command instance.
                    
213     *
                    
222    /**
                    
223     * Extracts the key from a command with multiple keys only when all keys
                    
224     * in the arguments array produce the same hash.
                    
238    /**
                    
239     * Extracts the key from a command with multiple keys only when all keys
                    
240     * in the arguments array produce the same hash.
                    
259    /**
                    
260     * Extracts the key from BLPOP and BRPOP commands.
                    
261     *
                    
274    /**
                    
275     * Extracts the key from BITOP command.
                    
276     *
                    
                
BadBotBlocker.php https://gitlab.com/ebrjose/comcebu | PHP | 453 lines
                    
1<?php
                    
2namespace AIOSEO\Plugin\Common\Tools;
                    
87		'EroCrawler',
                    
88		'ExtractorPro',
                    
89		'Fasterfox',
                    
110		'libwww',
                    
111		'LinkextractorPro',
                    
112		'linko',
                    
136		'panscient.com',
                    
137		'PHP/5.{',
                    
138		'ProPowerBot/2.14',
                    
                
design-loop-style04.php https://gitlab.com/ezgonzalez/integral | PHP | 365 lines
                    
1<?php
                    
2function WooComposer_Loop_style04($atts,$element){
                    
8	$sale_price = $shortcode = $on_sale_alignment = $on_sale_style = $product_img_disp = '';
                    
9	extract(shortcode_atts(array(
                    
10		"disp_type" => "",
                    
                
options.php https://gitlab.com/code26/selah | PHP | 199 lines
                    
1<?php
                    
2/**
                    
19	public static function admin_page_url() {
                    
20		return admin_url('options-general.php');
                    
21	}
                    
23	public static function admin_page() {
                    
24		return 'options-general.php';
                    
25	}
                    
27	/**
                    
28	 * Extracts the last logged message from updraftplus last process
                    
29	 *
                    
58		global $updraftplus_admin;
                    
59		add_submenu_page('options-general.php', 'UpdraftPlus', __('UpdraftPlus Backups', 'updraftplus'), apply_filters('option_page_capability_updraft-options-group', 'manage_options'), "updraftplus", array($updraftplus_admin, "settings_output"));
                    
60	}
                    
66		$page = '';
                    
67		if ('options-general.php' == $pagenow) $page = "options.php";
                    
68
                    
                
InitializePasses.h https://gitlab.com/Birhetia/platform_external_llvm | C Header | 313 lines
                    
74void initializeCallGraphWrapperPassPass(PassRegistry &);
                    
75void initializeBlockExtractorPassPass(PassRegistry&);
                    
76void initializeBlockFrequencyInfoWrapperPassPass(PassRegistry&);
                    
80void initializeBreakCriticalEdgesPass(PassRegistry&);
                    
81void initializeCallGraphPrinterPass(PassRegistry&);
                    
82void initializeCallGraphViewerPass(PassRegistry&);
                    
165void initializeLoopDeletionPass(PassRegistry&);
                    
166void initializeLoopExtractorPass(PassRegistry&);
                    
167void initializeLoopInfoWrapperPassPass(PassRegistry&);
                    
255void initializeRegisterCoalescerPass(PassRegistry&);
                    
256void initializeSingleLoopExtractorPass(PassRegistry&);
                    
257void initializeSinkingPass(PassRegistry&);
                    
                
Extracted.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 261 lines
                    
1<?php
                    
2/**
                    
21/** Zend_Pdf_Resource_Font */
                    
22#require_once 'Zend/Pdf/Resource/Font.php';
                    
23
                    
24/** Zend_Pdf_Cmap */
                    
25#require_once 'Zend/Pdf/Cmap.php';
                    
26
                    
29/**
                    
30 * Extracted fonts implementation
                    
31 * 
                    
31 * 
                    
32 * Thes class allows to extract fonts already mentioned within PDF document and use them
                    
33 * for text drawing.
                    
39 */
                    
40class Zend_Pdf_Resource_Font_Extracted extends Zend_Pdf_Resource_Font
                    
41{
                    
                
Repository.php https://gitlab.com/yousafsyed/easternglamor | PHP | 412 lines
                    
1<?php
                    
2/**
                    
14 * A repository service for view assets
                    
15 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
16 */
                    
117     *
                    
118     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
119     */
                    
180        $this->updateDesignParams($params);
                    
181        list($module, $filePath) = self::extractModule($fileId);
                    
182        if (!$module && $params['module']) {
                    
265    {
                    
266        list($module, $filePath) = self::extractModule($fileId);
                    
267        if (!$module) {
                    
342    {
                    
343        list($module, $filePath) = self::extractModule($fileId);
                    
344        if ($module) {
                    
                
OracleSchemaManager.php https://gitlab.com/adrianjose605/SaintW | PHP | 322 lines
                    
1<?php
                    
2/*
                    
129        $type = $this->_platform->getDoctrineTypeMapping($dbType);
                    
130        $type = $this->extractDoctrineTypeFromComment($tableColumn['comments'], $type);
                    
131        $tableColumn['comments'] = $this->removeDoctrineTypeFromComment($tableColumn['comments'], $type);
                    
                
view.php https://github.com/joshuarubin/fuel_core.git | PHP | 423 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Fuel is a fast, lightweight, community driven PHP5 framework.
                    
4 *
                    
9 * @copyright  2010 - 2011 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
18 *
                    
19 * Acts as an object wrapper for HTML pages with embedded PHP, called "views".
                    
20 * Variables can be assigned with the view object and referenced locally within
                    
31 * @license		http://kohanaframework.org/license
                    
32 * @link		http://fuelphp.com/docs/classes/view.html
                    
33 */
                    
51	// File extension used for views
                    
52	protected $extension = 'php';
                    
53
                    
                
AuthorizeNetIPN.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 361 lines
                    
1<?php
                    
2/*
                    
77        // processor id & the handleNotification function (which should call the completetransaction api & by-pass this
                    
78        // entirely). The only thing the IPN class should really do is extract data from the request, validate it
                    
79        // & call completetransaction or call fail? (which may not exist yet).
                    
                
AbstractInput.php https://github.com/Proudio-Interactive/phpUnderControl.git | PHP | 368 lines
                    
6 *
                    
7 * Copyright (c) 2007-2010, Manuel Pichler <mapi@phpundercontrol.org>.
                    
8 * All rights reserved.
                    
41 * @subpackage Input
                    
42 * @author     Manuel Pichler <mapi@phpundercontrol.org>
                    
43 * @copyright  2007-2010 Manuel Pichler. All rights reserved.
                    
80 * @subpackage Input
                    
81 * @author     Manuel Pichler <mapi@phpundercontrol.org>
                    
82 * @copyright  2007-2010 Manuel Pichler. All rights reserved.
                    
93 */
                    
94abstract class phpucAbstractInput implements phpucInputI
                    
95{
                    
171            phpucChartI::TYPE_DOT,
                    
172            phpucChartI::TYPE_TIME
                    
173        );
                    
                
Extracted.php https://github.com/rogerwu99/punch_bantana.git | PHP | 261 lines
                    
1<?php
                    
2/**
                    
21/** Zend_Pdf_Resource_Font */
                    
22require_once 'Zend/Pdf/Resource/Font.php';
                    
23
                    
24/** Zend_Pdf_Cmap */
                    
25require_once 'Zend/Pdf/Cmap.php';
                    
26
                    
29/**
                    
30 * Extracted fonts implementation
                    
31 * 
                    
31 * 
                    
32 * Thes class allows to extract fonts already mentioned within PDF document and use them
                    
33 * for text drawing.
                    
39 */
                    
40class Zend_Pdf_Resource_Font_Extracted extends Zend_Pdf_Resource_Font
                    
41{
                    
                
tokenizer.php https://bitbucket.org/crevillo/enetcall.git | PHP | 293 lines
                    
1<?php
                    
2/**
                    
17 *
                    
18 * Token extraction
                    
19 * ----------------
                    
20 *
                    
21 * For the token extraction the reqular expressions in the $tokens property are
                    
22 * used. The $tokens array has to be build like, and can be created in the
                    
257
                    
258                    // Add token to extracted token list
                    
259                    $tokens[] = $newToken;
                    
                
Extracted.php https://bitbucket.org/areeves42/openfisma.git | PHP | 274 lines
                    
1<?php
                    
2/**
                    
24/** @see Zend_Pdf_Resource_Font */
                    
25// require_once 'Zend/Pdf/Resource/Font.php';
                    
26
                    
27/**
                    
28 * Extracted fonts implementation
                    
29 *
                    
29 *
                    
30 * Thes class allows to extract fonts already mentioned within PDF document and use them
                    
31 * for text drawing.
                    
37 */
                    
38class Zend_Pdf_Resource_Font_Extracted extends Zend_Pdf_Resource_Font
                    
39{
                    
44    const ENCODING_NOT_SUPPORTED  = 'Font encoding is not supported';
                    
45    const OPERATION_NOT_SUPPORTED = 'Operation is not supported for extracted fonts';
                    
46
                    
                
unit-testing.rst https://gitlab.com/x33n/respond | ReStructuredText | 201 lines
                    
16
                    
17In order to unit test your client, a developer would need to copy phpunit.xml.dist to phpunit.xml and make any needed
                    
18modifications.  As a best practice and security measure for you and your contributors, it is recommended to add an
                    
67may want to include at least one actual network test that can be run specifically through the command line using
                    
68`PHPUnit group annotations <http://www.phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.group>`_.
                    
69
                    
82If API  credentials are required to run your integration tests, you must add ``<php>`` parameters to your
                    
83phpunit.xml.dist file and extract these parameters in your bootstrap.php file.
                    
84
                    
87    <?xml version="1.0" encoding="UTF-8"?>
                    
88    <phpunit bootstrap="./tests/bootstrap.php" colors="true">
                    
89        <php>
                    
102
                    
103You can then extract the ``server`` variables in your bootstrap.php file by grabbing them from the ``$_SERVER``
                    
104superglobal: ``$apiUser = $_SERVER['API_USER'];``
                    
                
ajax_calls.php https://gitlab.com/staging06/myproject | PHP | 253 lines
                    
1<?php
                    
2
                    
2
                    
3include('config/config.php');
                    
4
                    
8
                    
9include('include/utils.php');
                    
10
                    
73            break;
                    
74        case 'extract':
                    
75            if (strpos($_POST['path'], '/') === 0 || strpos($_POST['path'], '../') !== false || strpos($_POST['path'], './') === 0) {
                    
119                    check_files_extensions_on_phar($phar, $files, '', $ext);
                    
120                    $phar->extractTo($current_path.fix_dirname($_POST['path']).'/', $files, true);
                    
121
                    
184			</div>
                    
185			<?php
                    
186            if (in_array(strtolower($info['extension']), $ext_music)) {
                    
                
class-wc-shortcode-my-account.php https://gitlab.com/webkod3r/tripolis | PHP | 363 lines
                    
1<?php
                    
2/**
                    
50
                    
51				wc_get_template( 'myaccount/form-login.php' );
                    
52
                    
86	private static function my_account( $atts ) {
                    
87		extract( shortcode_atts( array(
                    
88	    	'order_count' => 15
                    
90
                    
91		wc_get_template( 'myaccount/my-account.php', array(
                    
92			'current_user' 	=> get_user_by( 'id', get_current_user_id() ),
                    
266		if ( empty( $wp_hasher ) ) {
                    
267			require_once ABSPATH . 'wp-includes/class-phpass.php';
                    
268			$wp_hasher = new PasswordHash( 8, true );
                    
310			if ( empty( $wp_hasher ) ) {
                    
311				require_once ABSPATH . 'wp-includes/class-phpass.php';
                    
312				$wp_hasher = new PasswordHash( 8, true );
                    
                
ApiQueryDeletedrevs.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 408 lines
                    
1<?php
                    
2/**
                    
28	// Eclipse helper - will be ignored in production
                    
29	require_once( 'ApiQueryBase.php' );
                    
30}
                    
50		$db = $this->getDB();
                    
51		$params = $this->extractRequestParams( false );
                    
52		$prop = array_flip( $params['prop'] );
                    
390			'List the last deleted revisions of Main Page and Talk:Main Page, with content (mode 1):',
                    
391			'  api.php?action=query&list=deletedrevs&titles=Main%20Page|Talk:Main%20Page&drprop=user|comment|content',
                    
392			'List the last 50 deleted contributions by Bob (mode 2):',
                    
392			'List the last 50 deleted contributions by Bob (mode 2):',
                    
393			'  api.php?action=query&list=deletedrevs&druser=Bob&drlimit=50',
                    
394			'List the first 50 deleted revisions in the main namespace (mode 3):',
                    
394			'List the first 50 deleted revisions in the main namespace (mode 3):',
                    
395			'  api.php?action=query&list=deletedrevs&drdir=newer&drlimit=50',
                    
396			'List the first 50 deleted pages in the Talk namespace (mode 3):',
                    
                
tokenizer.php https://github.com/xc/zetacomponents.git | PHP | 277 lines
                    
1<?php
                    
2/**
                    
34 *
                    
35 * 1) Extract tokens from text
                    
36 * 2) Filter tokens
                    
37 *
                    
38 * Token extraction
                    
39 * ----------------
                    
40 *
                    
41 * For the token extraction the reqular expressions in the $tokens property are
                    
42 * used. The $tokens array has to be build like, and can be created in the
                    
70 *
                    
71 * After all tokens are extracted from the text, they may miss some values,
                    
72 * which may be required by the parser, like the level of title tokens. Those
                    
72 * which may be required by the parser, like the level of title tokens. Those
                    
73 * should be extracted and assigned during the filtering stage. For this the
                    
74 * filterTokens() method should be implemented, which may iterate over the
                    
                
Manager.js https://github.com/stephaneerard/qooxdoo.git | JavaScript | 443 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.
                    
236    /**
                    
237     * Extract the language part from a locale.
                    
238     *
                    
241     */
                    
242    __extractLanguage : function(locale)
                    
243    {
                    
260      this.__locale = value;
                    
261      this.__language = this.__extractLanguage(value);
                    
262    },
                    
382      if (locale) {
                    
383        var language = this.__extractLanguage(locale);
                    
384      }
                    
                
elfinder.fr.js https://github.com/codemotion/cogear.git | JavaScript | 192 lines
                    
41		'Unable to create archive'              : 'Impossible de créer une archive',
                    
42		'Unable to extract files from archive'  : 'Impossible d\'extraire les fichiers de l\'archive',
                    
43		'Unable to open broken link'            : 'Ce lien est brisé',
                    
127		'Javascript application'            : 'Application Javascript',
                    
128		'PHP source'                        : 'Document PHP',
                    
129		'HTML document'                     : 'Document HTML',
                    
177		'Donate to support project development' : 'Donner et encourager le développement du projet',
                    
178		'Javascripts/PHP programming: Dmitry (dio) Levashov, dio@std42.ru' : 'Javascripts/PHP programming: Dmitry (dio) Levashov, dio@std42.ru',
                    
179		'Python programming, techsupport: Troex Nevelin, troex@fury.scancode.ru' : 'Python programming, techsupport: Troex Nevelin, troex@fury.scancode.ru',
                    
                
FontDescriptor.php https://gitlab.com/Ltaimao/wecenter | PHP | 204 lines
                    
1<?php
                    
2/**
                    
24/** Internally used classes */
                    
25//require_once 'Zend/Pdf/Element/Array.php';
                    
26//require_once 'Zend/Pdf/Element/Dictionary.php';
                    
26//require_once 'Zend/Pdf/Element/Dictionary.php';
                    
27//require_once 'Zend/Pdf/Element/Name.php';
                    
28//require_once 'Zend/Pdf/Element/Numeric.php';
                    
30/** Zend_Pdf_Font */
                    
31//require_once 'Zend/Pdf/Font.php';
                    
32
                    
55    {
                    
56        //require_once 'Zend/Pdf/Exception.php';
                    
57        throw new Zend_Pdf_Exception('Zend_Pdf_Resource_Font_FontDescriptor is not intended to be instantiated');
                    
128        /**
                    
129         * The vertical stem width is not yet extracted from the OpenType font
                    
130         * file. For now, record zero which is interpreted as 'unknown'.
                    
                
configure.php https://github.com/v2ninad/nm_cake.git | PHP | 401 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(tm) Project
                    
15 * @package       cake.libs
                    
72			if (!include(CONFIGS . 'core.php')) {
                    
73				trigger_error(__("Can't find application core file. Please create %score.php, and make sure it is readable by PHP.", CONFIGS), E_USER_ERROR);
                    
74			}
                    
114			if (!include(CONFIGS . 'bootstrap.php')) {
                    
115				trigger_error(__("Can't find application bootstrap file. Please create %sbootstrap.php, and make sure it is readable by PHP.", CONFIGS), E_USER_ERROR);
                    
116			}
                    
201 *
                    
202 * @link http://book.cakephp.org/view/927/read
                    
203 * @param string $var Variable to obtain.  Use '.' to access array elements.
                    
                
Color.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 507 lines
                    
22 * @package	PHPExcel_Style
                    
23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package	PHPExcel_Style
                    
34 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_Style_Color implements PHPExcel_IComparable
                    
37{
                    
128	 *
                    
129	 * @return PHPExcel_Style_Color
                    
130	 */
                    
208	 * <code>
                    
209	 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->getColor()->applyFromArray( array('rgb' => '808080') );
                    
210	 * </code>
                    
                
symbol_table.cpp https://gitlab.com/iranjith4/hhvm | C++ | 318 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#include "hphp/compiler/analysis/symbol_table.h"
                    
18#include <map>
                    
                
CakeTestFixture.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 328 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
                    
12 * @package       Cake.TestSuite.Fixture
                    
12 * @package       Cake.TestSuite.Fixture
                    
13 * @since         CakePHP(tm) v 1.2.0.4667
                    
14 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
34/**
                    
35 * CakePHP's DBO driver (e.g: DboMysql).
                    
36 *
                    
184				if ($records !== false && !empty($records)) {
                    
185					$this->records = Hash::extract($records, '{n}.' . $model->alias);
                    
186				}
                    
                
Stream.php https://bitbucket.org/brunoMaurice/youfood.git | PHP | 497 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Stream.php 16971 2009-07-22 18:05:45Z mikaelkael $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Service/Amazon/S3.php';
                    
27
                    
28/**
                    
29 * Amazon S3 PHP stream wrapper
                    
30 *
                    
88                 */
                    
89                require_once 'Zend/Service/Amazon/S3/Exception.php';
                    
90                throw new Zend_Service_Amazon_S3_Exception("Unable to parse URL $path");
                    
97                 */
                    
98                require_once 'Zend/Service/Amazon/S3/Exception.php';
                    
99                throw new Zend_Service_Amazon_S3_Exception("Unknown client for wrapper {$url[0]}");
                    
                
questionusagebyactivity_test.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 284 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
29global $CFG;
                    
30require_once(dirname(__FILE__) . '/../lib.php');
                    
31require_once(dirname(__FILE__) . '/helpers.php');
                    
101
                    
102    public function test_extract_responses() {
                    
103        // Start a deferred feedback attempt with CBM and add the question to it.
                    
121        // Exercise SUT
                    
122        $submitteddata = $quba->extract_responses($slot, $getdata);
                    
123
                    
                
Search.php https://gitlab.com/digitalpoetry/exceptionally-timed | PHP | 462 lines
                    
64     */
                    
65    protected $allowed_file_types = 'html|htm|php|php4|php5|txt|md';
                    
66
                    
216                        'url' => $result_url,
                    
217                        'extract' => $this->buildExtract($excerpt, $term, $match[0][0])
                    
218                    ];
                    
339
                    
340        $extract = strip_tags($this->format($extract));
                    
341
                    
341
                    
342        $extract = $this->firstXWords($extract, $this->excerpt_length);
                    
343
                    
344        // Wrap the search term in a span we can style.
                    
345        $extract = str_ireplace($term, '<span class="term-hilight">' . $term . '</span>', $extract);
                    
346
                    
                
deprecated.php https://github.com/nerdfiles/sideshowtramps.com.git | PHP | 555 lines
                    
1<?php
                    
2/**
                    
62	$args = wp_parse_args( $args, $defaults );
                    
63	extract( $args );
                    
64
                    
                
StorageEngine.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 463 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
3/**
                    
4 * Library for extracting information about the available storage engines
                    
5 *
                    
5 *
                    
6 * @package PhpMyAdmin
                    
7 */
                    
38 *
                    
39 * @package PhpMyAdmin
                    
40 */
                    
56    var $comment
                    
57        = 'If you read this text inside phpMyAdmin, something went wrong...';
                    
58
                    
                
i18nTextCollector.php https://github.com/benbruscella/vpcounselling.com.git | PHP | 419 lines
                    
20 *
                    
21 * Requires PHP 5.1+ due to class_implements() limitations
                    
22 * 
                    
86		foreach($modules as $module) {
                    
87			// Only search for calls in folder with a _config.php file (which means they are modules)  
                    
88			$isValidModuleFolder = (
                    
333		if ($prio) {
                    
334			$php .= "array($eol\t'" . $value . "',$eol\t" . $prio;
                    
335			if ($comment) {
                    
337			}
                    
338			$php .= "$eol);";
                    
339		} else {
                    
376				
                    
377				fwrite($fh, "<"."?php{$eol}{$eol}global \$lang;{$eol}{$eol}" . $php . "{$eol}?".">");
                    
378				fclose($fh);
                    
                
mcu-cli.php https://gitlab.com/Slind/MCUpdater | PHP | 380 lines
                    
1#!/usr/bin/env php
                    
2<?php
                    
10 *    server jar.
                    
11 * 1) Copy the default config to 'mcu-cli-config.php'
                    
12 * 2) Edit your new config, updating at a minimum the pack url, server id,
                    
13 *    server jar, and memory settings.
                    
14 * 3) Execute mcu-cli.php and hope for the best :)
                    
15 *
                    
22
                    
23msg("MCU-CLI.php Starting...");
                    
24msg(date("r"));
                    
38// load config, copying from default if one is not found
                    
39$cfg_default_filename = "mcu-cli-config.default.php";
                    
40$cfg_filename = "mcu-cli-config.php";
                    
236	$type = (string)$xml->ModType;
                    
237	if( $type != "Regular" && $type != "Extract" ) {
                    
238		msg("  - skipping unsupported ModType $type");
                    
                
workspace.inc.php https://github.com/gbds/revolution.git | PHP | 188 lines
                    
1<?php
                    
2/**
                    
95$_lang['package_remove_info_success'] = 'Package successfully removed.';
                    
96$_lang['package_remove_info_tdir'] = 'Successfully removed extracted transport directory.';
                    
97$_lang['package_remove_info_tdir_start'] = 'Attempting to remove extracted transport directory...';
                    
141$_lang['provider_err_no_api_key'] = 'This Provider requires an API Key to connect. Please specify one.';
                    
142$_lang['provider_err_no_client'] = '<p><b>You do not have a viable REST client for your system.</b></p><p>Please install the cURL PHP extension or enable fsockopen, and try again.</p>';
                    
143$_lang['provider_err_nfs'] = 'Provider not found with ID [[+id]]';
                    
                
Preview.php https://github.com/michaelmcandrew/vaw.git | PHP | 235 lines
                    
1<?php
                    
2
                    
36
                    
37require_once 'CRM/Core/Form.php';
                    
38require_once 'CRM/Member/Import/Parser/Membership.php';
                    
143     * Process the mapped fields and map it into the uploaded file
                    
144     * preview the file and extract some summary statistics
                    
145     *
                    
                
CSV.php https://gitlab.com/hoanghung.dev/aloads | PHP | 352 lines
                    
27 */
                    
28class PHPExcel_Writer_CSV extends PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter
                    
29{
                    
89     *
                    
90     * @param    PHPExcel    $phpExcel    PHPExcel object
                    
91     */
                    
108        $saveDebugLog = PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->getWriteDebugLog();
                    
109        PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog(false);
                    
110        $saveArrayReturnType = PHPExcel_Calculation::getArrayReturnType();
                    
110        $saveArrayReturnType = PHPExcel_Calculation::getArrayReturnType();
                    
111        PHPExcel_Calculation::setArrayReturnType(PHPExcel_Calculation::RETURN_ARRAY_AS_VALUE);
                    
112
                    
150        PHPExcel_Calculation::setArrayReturnType($saveArrayReturnType);
                    
151        PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog($saveDebugLog);
                    
152    }
                    
                
helper_test.php https://bitbucket.org/moodle/moodle.git | PHP | 281 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
21global $CFG;
                    
22require_once($CFG->dirroot . '/repository/googledocs/tests/repository_googledocs_testcase.php');
                    
23require_once($CFG->dirroot . '/repository/googledocs/lib.php');
                    
94     * @dataProvider explode_node_path_provider
                    
95     * @param string $node The node string to extract information from
                    
96     * @param array $expected The expected array containing the information about the node
                    
                
Proxy.php https://bitbucket.org/cviolette/sugarcrm.git | PHP | 284 lines
                    
1<?php
                    
2
                    
26 */
                    
27require_once 'Zend/Uri/Http.php';
                    
28/**
                    
30 */
                    
31require_once 'Zend/Http/Client.php';
                    
32/**
                    
34 */
                    
35require_once 'Zend/Http/Client/Adapter/Socket.php';
                    
36
                    
125        if (! $this->socket) {
                    
126            require_once 'Zend/Http/Client/Adapter/Exception.php';
                    
127            throw new Zend_Http_Client_Adapter_Exception("Trying to write but we are not connected");
                    
133        if ($this->connected_to[0] != "tcp://$host" || $this->connected_to[1] != $port) {
                    
134            require_once 'Zend/Http/Client/Adapter/Exception.php';
                    
135            throw new Zend_Http_Client_Adapter_Exception("Trying to write but we are connected to the wrong proxy server");
                    
                
Annotation.php https://bitbucket.org/cryofrost/portal.git | PHP | 267 lines
                    
1<?php
                    
2
                    
10 * This is an annotation mapping driver for Tree
                    
11 * behavioral extension. Used for extraction of extended
                    
12 * metadata from Annotations specificaly for Tree
                    
18 * @link http://www.gediminasm.org
                    
19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
20 */
                    
                
class-fire-admin_init.php https://github.com/chopsuei3/oscc.git | PHP | 361 lines
                    
100          <p style="text-align:center">
                    
101            <a style="padding: 8px" class="button-primary" href="<?php echo admin_url().'update-core.php' ?>" title="<?php _e( 'Upgrade Wordpress Now' , 'customizr' ) ?>">
                    
102            <?php _e( 'Upgrade Wordpress Now' , 'customizr' ) ?></a>
                    
140           'title' =>  __( 'Help' , 'customizr' ),
                    
141           'href' => admin_url( 'themes.php?page=welcome.php&help=true' ),
                    
142           'meta'   => array(
                    
185                 <br/>
                    
186                  <a class="button-secondary customizr-help" title="documentation" href="<?php echo TC_WEBSITE ?>customizr" target="_blank"><?php _e( 'Read the documentation','customizr' ); ?></a>
                    
187              </div>
                    
271        <div class="feature-section images-stagger-left">
                    
272           <a class="" title="<?php _e('Visit the showcase','customizr') ?>" href="<?php echo TC_WEBSITE ?>customizr/showcase/" target="_blank"><img alt="Customizr Showcase" src="<?php echo TC_BASE_URL.'inc/admin/img/mu2.jpg' ?>" class=""></a>
                    
273          <h4 style="text-align: right"><?php _e('Find inspiration for your next Customizr based website!' ,'customizr') ?></h4>
                    
278          <p style="text-align:right">    
                    
279              <a class="button-primary review-customizr" title="<?php _e('Visit the showcase','customizr') ?>" href="<?php echo TC_WEBSITE ?>customizr/showcase/" target="_blank"><?php _e('Visit the showcase','customizr') ?> &raquo;</a>
                    
280          </p>
                    
                
bp-core-widgets.php https://github.com/pfond/PFOND.git | PHP | 334 lines
                    
47			<div class="item-options" id="members-list-options">
                    
48				<a href="<?php echo site_url( bp_get_members_root_slug() ); ?>" id="newest-members" <?php if ( $instance['member_default'] == 'newest' ) : ?>class="selected"<?php endif; ?>><?php _e( 'Newest', 'buddypress' ) ?></a>
                    
49				|  <a href="<?php echo site_url( bp_get_members_root_slug() ); ?>" id="recently-active-members" <?php if ( $instance['member_default'] == 'active' ) : ?>class="selected"<?php endif; ?>><?php _e( 'Active', 'buddypress' ) ?></a>
                    
120
                    
121		<p><label for="bp-core-widget-title"><?php _e('Title:', 'buddypress'); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" style="width: 100%" /></label></p>
                    
122
                    
200
                    
201		<p><label for="bp-core-widget-title"><?php _e('Title:', 'buddypress'); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" style="width: 100%" /></label></p>
                    
202
                    
202
                    
203		<p><label for="bp-core-widget-members-max"><?php _e('Max Members to show:', 'buddypress'); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'max_members' ); ?>" name="<?php echo $this->get_field_name( 'max_members' ); ?>" type="text" value="<?php echo esc_attr( $max_members ); ?>" style="width: 30%" /></label></p>
                    
204	<?php
                    
271
                    
272		<p><label for="bp-core-widget-members-max"><?php _e('Max Members to show:', 'buddypress'); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'max_members' ); ?>" name="<?php echo $this->get_field_name( 'max_members' ); ?>" type="text" value="<?php echo esc_attr( $max_members ); ?>" style="width: 30%" /></label></p>
                    
273	<?php
                    
                
 

Source

Language