PageRenderTime 1537ms queryTime 169ms sortTime 341ms getByIdsTime 70ms findMatchingLines 86ms

100+ results results for 'php key' (1537 ms)

Not the results you expected?
class-wp-image-editor.php https://gitlab.com/Gashler/dp | PHP | 403 lines
                    
1<?php
                    
2/**
                    
372		$mime_types = wp_get_mime_types();
                    
373		$extensions = array_keys( $mime_types );
                    
374
                    
                
class-wp-filesystem-base.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 321 lines
                    
1<?php
                    
2/**
                    
188
                    
189		foreach ( $folder_parts as $key ) {
                    
190			if ( $key == $last_path )
                    
196			// If it reaches the end, and still cant find it, it'll return false for the entire function.
                    
197			if ( isset($files[ $key ]) ){
                    
198				//Lets try that folder:
                    
198				//Lets try that folder:
                    
199				$newdir = trailingslashit(path_join($base, $key));
                    
200				if ( $this->verbose )
                    
222	 *
                    
223	 * From the PHP documentation page for fileperms()
                    
224	 *
                    
279 	 *
                    
280	 * @link http://docs.php.net/manual/en/function.chmod.php#49614
                    
281	 * @since 2.5
                    
                
jquery.serializejson.js https://gitlab.com/Mirros/cdnjs | JavaScript | 193 lines
                    
22    $.each(formAsArray, function (i, input) {
                    
23      keys = f.splitInputNameIntoKeysArray(input.name); // "some[deep][key]" => ['some', 'deep', 'key']
                    
24      value = f.parseValue(input.value, opts); // string, number, boolean or null
                    
61    optWithDefaults: function(key, options) {
                    
62      return (options[key] !== false) && (options[key] !== '') && (options[key] || $.serializeJSON.defaultOptions[key]);
                    
63    },
                    
128        } else {
                    
129          o[key] = value; // other keys can be used as object keys or array indexes
                    
130        }
                    
142          lastVal = o[lastIdx];
                    
143          if (f.isObject(lastVal) && (f.isUndefined(lastVal[nextKey]) || keys.length > 2)) { // if nextKey is not present in the last object element, or there are more keys to deep set
                    
144            key = lastIdx; // then set the new value in the same object element
                    
149
                    
150        // o[key] defaults to object or array, depending if nextKey is an array index (int or '') or an object key (string)
                    
151        if (f.isUndefined(o[key])) {
                    
                
developer_generates_method.feature https://gitlab.com/Pasantias/pasantiasASLG | Gherkin Specification | 417 lines
                    
6  Scenario: Generating a method
                    
7    Given the spec file "spec/CodeGeneration/MethodExample1/MarkdownSpec.php" contains:
                    
8      """
                    
8      """
                    
9      <?php
                    
10
                    
12
                    
13      use PhpSpec\ObjectBehavior;
                    
14      use Prophecy\Argument;
                    
24      """
                    
25    And the class file "src/CodeGeneration/MethodExample1/Markdown.php" contains:
                    
26      """
                    
26      """
                    
27      <?php
                    
28
                    
                
AddressBookUpgradeScript.class.php https://gitlab.com/x33n/ProjectPier-Core | PHP | 220 lines
                    
1<?php
                    
2
                    
42      
                    
43      $config_is_set = require_once INSTALLATION_PATH . '/config/config.php';
                    
44      if (!$config_is_set) {
                    
112        `name` varchar(50) $default_collation NOT NULL default '',
                    
113        PRIMARY KEY  (`id`)
                    
114      ) ENGINE=InnoDB $default_charset;";
                    
                
Phrase.php https://gitlab.com/Ltaimao/wecenter | PHP | 270 lines
                    
124// Allow to use wildcards within phrases
                    
125// They are either removed by text analyzer or used as a part of keyword for keyword fields
                    
126//
                    
127//        if (strpos($this->_phrase, '?') !== false || strpos($this->_phrase, '*') !== false) {
                    
128//            //require_once 'Zend/Search/Lucene/Search/QueryParserException.php';
                    
129//            throw new Zend_Search_Lucene_Search_QueryParserException('Wildcards are only allowed in a single terms.');
                    
133        if ($this->_field === null) {
                    
134            //require_once 'Zend/Search/Lucene/Search/Query/Boolean.php';
                    
135            $query = new Zend_Search_Lucene_Search_Query_Boolean();
                    
159        // encoding is not used since we expect binary matching
                    
160        //require_once 'Zend/Search/Lucene/Index/Term.php';
                    
161        $term = new Zend_Search_Lucene_Index_Term($this->_phrase, $this->_field);
                    
162        if ($index->hasTerm($term)) {
                    
163            //require_once 'Zend/Search/Lucene/Search/Query/Term.php';
                    
164            $query = new Zend_Search_Lucene_Search_Query_Term($term);
                    
                
DB_result.php https://gitlab.com/ricoru21/py_incidencia | PHP | 410 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
64	{
                    
65		if (array_key_exists($class_name, $this->custom_result_object))
                    
66		{
                    
82
                    
83			foreach ($row as $key => $value)
                    
84			{
                    
84			{
                    
85				$object->$key = $value;
                    
86			}
                    
178
                    
179			// array_key_exists() instead of isset() to allow for MySQL NULL values
                    
180			if (array_key_exists($n, $this->row_data))
                    
                
translated-object.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 272 lines
                    
1<?php
                    
2
                    
77	 *
                    
78	 * @param array $translations an associative array of translations with language code as key and translation id as value
                    
79	 */
                    
89	 * @param int   $id           post id or term id
                    
90	 * @param array $translations an associative array of translations with language code as key and translation id as value
                    
91	 */
                    
99			$translations = array_diff( $translations, array( 0 ) ); // don't keep non translated languages
                    
100			$translations = array_intersect_key( $translations, array_flip( $this->model->get_languages_list( array( 'fields' => 'slug' ) ) ) ); // keep only valid languages slugs as keys
                    
101
                    
120					$d = unserialize( $term->description );
                    
121					$d = is_array( $d ) ? array_diff_key( $d, $old_translations ) : array(); // remove old translations
                    
122					$d = array_merge( $d, $translations ); // add new one
                    
154			$d = unserialize( $term->description );
                    
155			$slug = array_search( $id, $this->get_translations( $id ) ); // in case some plugin stores the same value with different key
                    
156			unset( $d[ $slug ] );
                    
                
manage.tpl.htm https://gitlab.com/Ltaimao/wecenter | HTML | 255 lines
                    
9						<div class="mod-head common-head">
                    
10							<h2><span class="pull-right"><a class="text-color-999" href="topic/<?php echo $this->topic_info['url_token']; ?>"><?php _e('返回话题'); ?> »</a></span><?php _e('管理话题'); ?> - <?php echo $this->topic_info['topic_title']; ?></h2>
                    
11						</div>
                    
50									<div class="topic-bar clearfix">
                    
51										<?php foreach ($this->merged_topics_info AS $key => $val) { ?>
                    
52										<span class="topic-tag">
                    
69								<?php foreach ($this->parent_topics AS $key => $val) { ?>
                    
70								<option value="<?php echo $val['topic_id']; ?>"<?php if ($val['topic_id'] == $this->topic_info['parent_id']) { ?> selected="selected"<?php } ?>><?php echo $val['topic_title']; ?></option>
                    
71								<?php } ?>
                    
101							<p><b>• <?php _e('话题别名'); ?>:</b> <?php _e('如果该话题还有其他的表达方式, 您可以为其创建别名以便其他人能更好的找到该话题'); ?></p>
                    
102							<p><b>• <?php _e('话题合并'); ?>:</b> <?php _e('如果该话题跟另一个话题意义相近, 您可以将此话题合并至其他话题'); ?></p>
                    
103						</div>
                    
105							<?php if ($this->user_info['permission']['is_administortar'] OR $this->user_info['permission']['is_moderator']) { ?>
                    
106							<a onclick="AWS.ajax_request(G_BASE_URL + '/topic/ajax/lock/', 'topic_id=<?php echo $this->topic_info['topic_id']; ?>');" class="btn btn-success <?php if ($this->topic_info['topic_lock']) { ?>active<?php } ?>"><?php if ($this->topic_info['topic_lock']) { ?><?php _e('解除锁定'); ?><?php } else { ?><?php _e('锁定话题'); ?><?php } ?></a>&nbsp;
                    
107							<a onclick="AWS.dialog('confirm', {'message' : '<?php _e('确认删除?'); ?>'}, function(){AWS.ajax_request(G_BASE_URL + '/topic/ajax/remove/', 'topic_id=<?php echo $this->topic_info['topic_id']; ?>');});" class="btn btn-gray"><?php _e('删除话题'); ?></a>
                    
                
QueryBuilder.php https://gitlab.com/brucealdridge/yii2 | PHP | 260 lines
                    
1<?php
                    
2/**
                    
23    /**
                    
24     * @var array mapping from abstract column types (keys) to physical column types (values).
                    
25     */
                    
26    public $typeMap = [
                    
27        Schema::TYPE_PK => 'NUMBER(10) NOT NULL PRIMARY KEY',
                    
28        Schema::TYPE_BIGPK => 'NUMBER(20) NOT NULL PRIMARY KEY',
                    
136            $value = $this->db->useMaster(function (Connection $db) use ($tableSchema) {
                    
137                return $db->createCommand("SELECT MAX(\"{$tableSchema->primaryKey}\") FROM \"{$tableSchema->name}\"")->queryScalar();
                    
138            }) + 1;
                    
147     */
                    
148    public function addForeignKey($name, $table, $columns, $refTable, $refColumns, $delete = null, $update = null)
                    
149    {
                    
191        if (empty($names) && $tableSchema !== null) {
                    
192            $columns = !empty($tableSchema->primaryKey) ? $tableSchema->primaryKey : reset($tableSchema->columns)->name;
                    
193            foreach ($columns as $name) {
                    
                
VCardTest.php https://gitlab.com/deichbrise/vcard-viewhelper | PHP | 355 lines
                    
1<?php
                    
2
                    
5// required to load
                    
6require_once __DIR__ . '/../vendor/autoload.php';
                    
7
                    
8/*
                    
9 * This file is part of the VCard PHP Class from Jeroen Desloovere.
                    
10 *
                    
17/**
                    
18 * This class will test our VCard PHP Class which can generate VCards.
                    
19 *
                    
21 */
                    
22class VCardTest extends \PHPUnit_Framework_TestCase
                    
23{
                    
217    {
                    
218        foreach ($emails as $key => $email) {
                    
219            if (is_string($key)) {
                    
                
Abstract.php https://gitlab.com/yousafsyed/easternglamor | PHP | 385 lines
                    
137        if (1 == count($this)) {
                    
138            $keys = $this->getKeys();
                    
139            $key  = array_shift($keys);
                    
270        $this->_captureType = $type;
                    
271        if ((null !== $key) && is_scalar($key)) {
                    
272            $this->_captureKey = (string) $key;
                    
287        if (null !== $this->_captureKey) {
                    
288            $key = $this->_captureKey;
                    
289        }
                    
291            case self::SET:
                    
292                if (null !== $key) {
                    
293                    $this[$key] = $data;
                    
341    {
                    
342        $keys = $this->getKeys();
                    
343        if (0 == count($keys)) {
                    
                
Collect.php https://gitlab.com/yousafsyed/easternglamor | PHP | 313 lines
                    
1<?php
                    
2/**
                    
209    {
                    
210        $changesArrayKeys = array_keys($changes);
                    
211        foreach ($changesArrayKeys as $changesKey) {
                    
211        foreach ($changesArrayKeys as $changesKey) {
                    
212            if ($changesKey != 'state' && $changesKey != 'active' && $changesKey != 'setup_version') {
                    
213                unset($changes[$changesKey]);
                    
302
                    
303        $arrayModuleNames = array_keys($configModules);
                    
304        $uninstalledModuleChanges = $this->setUninstalledModuleChanges($dbModuleArray, $arrayModuleNames);
                    
                
loader.js https://gitlab.com/LisovyiEvhenii/ismextensions | JavaScript | 285 lines
                    
8 * It is also available through the world-wide-web at this URL:
                    
9 * http://opensource.org/licenses/afl-3.0.php
                    
10 * If you did not receive a copy of the license and are unable to
                    
22 * @copyright   Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
23 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
24 */
                    
47            this.options.parameters += '&' + Object.toQueryString({
                    
48                form_key: FORM_KEY
                    
49            });
                    
52                this.options.parameters = {
                    
53                    form_key: FORM_KEY
                    
54                };
                    
56            if (!this.options.parameters.form_key) {
                    
57                this.options.parameters.form_key = FORM_KEY;
                    
58            }
                    
                
Event.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 340 lines
                    
167        foreach ($previous as $key => $value) {
                    
168            if (array_key_exists($key, $current) && !is_null($current[$key]) && is_array($previous[$key])) {
                    
169                if (!is_string($key) || is_array($current[$key])) {
                    
169                if (!is_string($key) || is_array($current[$key])) {
                    
170                    $current[$key] = $this->_mergeNewDataRecursive($previous[$key], $current[$key]);
                    
171                }
                    
171                }
                    
172            } elseif (!array_key_exists($key, $current) || is_null($current[$key])) {
                    
173                $current[$key] = $previous[$key];
                    
173                $current[$key] = $previous[$key];
                    
174            } elseif (!is_array($previous[$key]) && !is_string($key)) {
                    
175                $current[] = $previous[$key];
                    
289        if (!is_array($key)) {
                    
290            $key = array($key => $value);
                    
291        }
                    
                
panels_layouts_ui.class.php https://gitlab.com/manuvelasco/agostoliquida | PHP | 245 lines
                    
1<?php
                    
2
                    
62    // Create a display for editing:
                    
63    $cache_key = 'builder-' . $form_state['item']->name;
                    
64
                    
65    // Load the display being edited from cache, if possible.
                    
66    if (!empty($_POST) && is_object($cache = panels_edit_cache_get($cache_key))) {
                    
67      $display = &$cache->display;
                    
71
                    
72      panels_cache_clear('display', $cache_key);
                    
73      $cache = new stdClass();
                    
78      $display->layout_settings = $form_state['item']->settings;
                    
79      $display->cache_key = $cache_key;
                    
80      $display->editing_layout = TRUE;
                    
110
                    
111    $form_state['cache_key'] = $cache_key;
                    
112    $form_state['content_types'] = $cache->content_types;
                    
                
MailboxHeader.php https://gitlab.com/dsasmita/talita-shop | PHP | 358 lines
                    
88     * <code>
                    
89     * <?php
                    
90     * //Sets two mailboxes in the Header, one with a personal name
                    
116     * <code>
                    
117     * <?php
                    
118     * $header = new Swift_Mime_Headers_MailboxHeader('From',
                    
142    /**
                    
143     * Get all mailboxes in this Header as key=>value pairs.
                    
144     *
                    
147     * <code>
                    
148     * <?php
                    
149     * $header = new Swift_Mime_Headers_MailboxHeader('From',
                    
256        foreach ($mailboxes as $key => $value) {
                    
257            if (is_string($key)) { //key is email addr
                    
258                $address = $key;
                    
                
OS_NS_stdlib.h https://gitlab.com/Kanedias/MangosDeprecated | C Header | 332 lines
                    
9 *  @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
                    
10 *  @author Jesper S. M|ller<stophph@diku.dk>
                    
11 *  @author and a cast of thousands...
                    
97  ACE_NAMESPACE_INLINE_FUNCTION
                    
98  void *bsearch (const void *key,
                    
99                 const void *base,
                    
                
MysqliStatement.php https://gitlab.com/techniconline/kmc | PHP | 370 lines
                    
1<?php
                    
2/*
                    
94            // Index 0 is types
                    
95            // Need to init the string else php think we are trying to access it as a array.
                    
96            $bindedValues = array(0 => str_repeat('s', $paramCount));
                    
184                $refs = array();
                    
185                foreach ($this->_rowBindedValues as $key => &$value) {
                    
186                    $refs[$key] =& $value;
                    
                
CakeTestFixture.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 328 lines
                    
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
                    
148				$this->fields = $model->schema(true);
                    
149				$this->fields[$model->primaryKey]['key'] = 'primary';
                    
150				$this->table = $db->fullTableName($model, false, false);
                    
162				$this->fields = $model->schema(true);
                    
163				$this->primaryKey = $model->primaryKey;
                    
164				ClassRegistry::flush();
                    
284				foreach ($this->records as $record) {
                    
285					$fields = array_merge($fields, array_keys(array_intersect_key($record, $this->fields)));
                    
286				}
                    
                
quickstart.html.md.erb https://gitlab.com/admin-github-cloud/incubator-predictionio | Ruby HTML | 357 lines
                    
61```
                    
62$ curl -i -X POST http://localhost:7070/events.json?accessKey=$ACCESS_KEY \
                    
63-H "Content-Type: application/json" \
                    
81client = predictionio.EventClient(
                    
82    access_key=<ACCESS KEY>,
                    
83    url=<URL OF EVENTSERVER>,
                    
99
                    
100  <div data-tab="PHP SDK" data-lang="php">
                    
101```php
                    
163```
                    
164$ curl -i -X POST http://localhost:7070/events.json?accessKey=$ACCESS_KEY \
                    
165-H "Content-Type: application/json" \
                    
295  </div>
                    
296  <div data-tab="PHP SDK" data-lang="php">
                    
297```php
                    
                
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";
                    
96	}	
                    
97	foreach ($pack->Server as $key => $val) {
                    
98		$base = identify_server($val, $server_id);
                    
                
FormTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 268 lines
                    
1<?php
                    
2/**
                    
11 */
                    
12class FormTest extends \PHPUnit_Framework_TestCase
                    
13{
                    
90     * @magentoAppIsolation enabled
                    
91     * @magentoDataFixture Magento/Store/_files/core_fixturestore.php
                    
92     *
                    
119     * @magentoAppIsolation enabled
                    
120     * @magentoDataFixture Magento/Store/_files/core_fixturestore.php
                    
121     */
                    
126                \Magento\Catalog\Model\Product::class,
                    
127                ['data' => ['entity_id' => 1, 'name' => 'product1', 'url_key' => 'product2']]
                    
128            ),
                    
141     * @magentoAppIsolation enabled
                    
142     * @magentoDataFixture Magento/Store/_files/core_fixturestore.php
                    
143     *
                    
                
TaxTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 281 lines
                    
1<?php
                    
2/**
                    
12 *
                    
13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
14 */
                    
14 */
                    
15class TaxTest extends \PHPUnit_Framework_TestCase
                    
16{
                    
22    /**
                    
23     * @var \PHPUnit_Framework_MockObject_MockObject
                    
24     */
                    
27    /**
                    
28     * @var \PHPUnit_Framework_MockObject_MockObject
                    
29     */
                    
32    /**
                    
33     * @var \PHPUnit_Framework_MockObject_MockObject
                    
34     */
                    
                
ItemsController.php https://gitlab.com/nitm/yii2-cms | PHP | 229 lines
                    
1<?php
                    
2namespace nitm\cms\modules\entity\controllers;
                    
62                    $this->flash('success', Yii::t('nitm/cms', 'Item created'));
                    
63                    return $this->redirect(['/admin/'.$this->module->id.'/items/form/update/', 'id' => $model->primaryKey]);
                    
64                } else {
                    
93                    $this->flash('success', Yii::t('nitm/cms', 'Item updated'));
                    
94                    return $this->redirect(['/admin/'.$this->module->id.'/items/form/update', 'id' => $model->primaryKey]);
                    
95                } else {
                    
                
class-wc-report-taxes-by-date.php https://gitlab.com/campus-academy/krowkaramel | PHP | 264 lines
                    
34			href="#"
                    
35			download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time( 'timestamp' ) ); ?>.csv"
                    
36			class="export_csv"
                    
162			$key              = date( ( 'month' === $this->chart_groupby ) ? 'Ym' : 'Ymd', strtotime( $tax_row->post_date ) );
                    
163			$tax_rows[ $key ] = isset( $tax_rows[ $key ] ) ? $tax_rows[ $key ] : (object) array(
                    
164				'tax_amount'          => 0,
                    
190			$key              = date( ( 'month' === $this->chart_groupby ) ? 'Ym' : 'Ymd', strtotime( $tax_row->post_date ) );
                    
191			$tax_rows[ $key ] = isset( $tax_rows[ $key ] ) ? $tax_rows[ $key ] : (object) array(
                    
192				'tax_amount'          => 0,
                    
212					<th class="total_row"><?php _e( 'Number of orders', 'woocommerce' ); ?></th>
                    
213					<th class="total_row"><?php _e( 'Total sales', 'woocommerce' ); ?> <?php echo wc_help_tip( __( "This is the sum of the 'Order total' field within your orders.", 'woocommerce' ) ); ?></th>
                    
214					<th class="total_row"><?php _e( 'Total shipping', 'woocommerce' ); ?> <?php echo wc_help_tip( __( "This is the sum of the 'Shipping total' field within your orders.", 'woocommerce' ) ); ?></th>
                    
215					<th class="total_row"><?php _e( 'Total tax', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'This is the total tax for the rate (shipping tax + product tax).', 'woocommerce' ) ); ?></th>
                    
216					<th class="total_row"><?php _e( 'Net profit', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'Total sales minus shipping and tax.', 'woocommerce' ) ); ?></th>
                    
217				</tr>
                    
                
html.php https://gitlab.com/Bartwillemsen/aurora-framework | PHP | 376 lines
                    
1<?php
                    
2namespace Aurora;
                    
37
                    
38		return '<script src="'.$url.'"'.static::attributes($attributes).'></script>'.PHP_EOL;
                    
39	}
                    
62		foreach ($defaults as $attribute => $default) {
                    
63			if (! array_key_exists($attribute, $attributes)) {
                    
64				$attributes[$attribute] = $default;
                    
69
                    
70		return '<link href="'.$url.'"'.static::attributes($attributes).'>'.PHP_EOL;
                    
71	}
                    
288	 *
                    
289	 * Numeric-keyed attributes will be assigned the same key and value to handle
                    
290	 * attributes such as "autofocus" and "required".
                    
300
                    
301			if (is_numeric($key)) $key = $value;
                    
302
                    
                
field_link_color.php https://gitlab.com/eita/agencia-consumo-responsavel | PHP | 207 lines
                    
1<?php
                    
2
                    
158
                    
159                    foreach ( $style as $key => $value ) {
                    
160                        if ( is_numeric( $key ) ) {
                    
163                            if ( count( $this->field['output'] ) == 1 ) {
                    
164                                $styleString .= $this->field['output'][0] . ":" . $key . "{" . $value . '}';
                    
165                            } else {
                    
167                                foreach($this->field['output'] as $k => $sel) {
                    
168                                    $blah .= $sel . ':' . $key . ',';
                    
169                                }
                    
183
                    
184                    foreach ( $style as $key => $value ) {
                    
185                        if ( is_numeric( $key ) ) {
                    
189                            if ( count( $this->field['compiler'] ) == 1 ) {
                    
190                                $styleString .= $this->field['compiler'][0] . ":" . $key . "{" . $value . '}';
                    
191                            } else {
                    
                
Old.php https://gitlab.com/Skull3x/Small-ZC-Plugins | PHP | 308 lines
                    
1<?php
                    
2
                    
41		$time *= 1000;
                    
42		echo " Done! ($time ms)" . PHP_EOL;
                    
43	}
                    
134				$output .= array_shift($msgs);
                    
135				foreach($msgs as $key => $value){
                    
136					$this->api->schedule(40 * ($key + 1), [$issuer, "sendChat"], $value, false, "ChatLineBreaker"); // why did you add this 5th arg...
                    
291			$cur = substr($str, $i, 9);
                    
292			$key = Binary::readLong(substr($cur, 0, 8));
                    
293			$number = ord(substr($str, 8));
                    
295			$length = $number & 0b01111111;
                    
296			$this->database[$key] = [$bool, $length];
                    
297		}
                    
                
MineBlock.php https://gitlab.com/Skull3x/MineBlock | PHP | 275 lines
                    
1<?php
                    
2// This Plugin is Made by DeBe (hu6677@naver.com)
                    
187		$b = $event->getBlock();
                    
188		$key = $this->getKey($b);
                    
189		if(!isset($this->mb[$key])) return;
                    
190		if(!$event->getPlayer()->hasPermission("debe.mineblock.break")) return $event->setCancelled();
                    
191		$mb = $this->mb[$key];
                    
192		$rand = $this->rand[$key];
                    
211	public function getDrop($mb,$rand){
                    
212		$mb = $this->mb[$key];
                    
213		$rand = $this->rand[$key];
                    
232
                    
233	public function getKey($i){
                    
234		return $i->getID().":".$i->getDamage();
                    
                
class-gsc-table.php https://gitlab.com/bhargavi_dcw/dflocal | PHP | 385 lines
                    
1<?php
                    
2/**
                    
6if ( ! class_exists( 'WP_List_Table' ) ) {
                    
7	require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
                    
8}
                    
146	 * @param array  $item        Data array.
                    
147	 * @param string $column_name Column name key.
                    
148	 *
                    
320		// When there is a raw field of it, sort by this field.
                    
321		if ( array_key_exists( $orderby . '_raw', $a ) && array_key_exists( $orderby . '_raw', $b ) ) {
                    
322			$orderby = $orderby . '_raw';
                    
342
                    
343		require WPSEO_PATH . '/admin/google_search_console/views/gsc-create-redirect.php';
                    
344
                    
                
SmtpTransport.php https://gitlab.com/grlopez90/servipro | PHP | 375 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://cakephp.org CakePHP(tm) Project
                    
14 * @package       Cake.Network.Email
                    
14 * @package       Cake.Network.Email
                    
15 * @since         CakePHP(tm) v 2.0.0
                    
16 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
249		$bcc = $email->bcc();
                    
250		return array_merge(array_keys($to), array_keys($cc), array_keys($bcc));
                    
251	}
                    
290		$from = $this->_prepareFromAddress($email);
                    
291		$this->_smtpSend($this->_prepareFromCmd(key($from)));
                    
292
                    
                
GeneralItemCollection.php https://gitlab.com/laher01/factu40 | PHP | 201 lines
                    
1<?php
                    
2
                    
13    {
                    
14        return $this->collection->transform(function ($row, $key) {
                    
15            /** @var \App\Models\Tenant\DocumentItem|\App\Models\Tenant\PurchaseItem|mixed|\App\Models\Tenant\SaleNoteItem|mixed $row */
                    
                
WorkflowTypeInterface.php https://gitlab.com/andecode/theme-spark | PHP | 351 lines
                    
1<?php
                    
2
                    
15  /**
                    
16   * The key of the global workflow plugin form.
                    
17   */
                    
17   */
                    
18  const PLUGIN_FORM_KEY = 'configure';
                    
19
                    
83   * @param array $dependencies
                    
84   *   An array of dependencies that will be deleted keyed by dependency type.
                    
85   *
                    
127   * @return \Drupal\workflows\StateInterface[]
                    
128   *   An array of workflow states, keyed by state IDs.
                    
129   *
                    
                
Feed.php https://bitbucket.org/simukti/zf1.git | PHP | 320 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Feed.php 24593 2012-01-05 20:35:02Z matthew $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';
                    
26
                    
58        $this->_setExplicit($this->_dom, $this->_base);
                    
59        $this->_setKeywords($this->_dom, $this->_base);
                    
60        $this->_setNewFeedUrl($this->_dom, $this->_base);
                    
134        }
                    
135        foreach ($cats as $key=>$cat) {
                    
136            if (!is_array($cat)) {
                    
221    {
                    
222        $keywords = $this->getDataContainer()->getItunesKeywords();
                    
223        if (!$keywords || empty($keywords)) {
                    
                
using.sessions.md https://bitbucket.org/alvinpd/monsterninja.git | Markdown | 223 lines
                    
32    // Set session data
                    
33    $_SESSION[$key] = $value;
                    
34
                    
39    // Set session data
                    
40    $session->set($key, $value);
                    
41
                    
42    // Set cookie data
                    
43    Cookie::set($key, $value);
                    
44
                    
56    // Get cookie data
                    
57    $data = Cookie::get($key, $default_value);
                    
58
                    
131Native
                    
132: Stores session data in the default location for your web server. The storage location is defined by [session.save_path](http://php.net/manual/session.configuration.php#ini.session.save-path) in `php.ini` or defined by [ini_set](http://php.net/ini_set).
                    
133
                    
                
test.php https://bitbucket.org/mkrasuski/magento-ce.git | PHP | 305 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
25 */
                    
26include "lib/Varien/Object.php";
                    
27
                    
51                            $actions = $this->getOrderActions();
                    
52                            $actions = join(', ', array_keys($actions));
                    
53                            #echo "<tr><td>$orderStatus</td><td>$paymentStatus</td><td>$shippingStatus</td><td>$refundStatus</td><td>$returnStatus</td><td>$adminStatus</td><td>$frontendStatus</td><td>$actions</td></tr>";
                    
                
EditView.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 238 lines
                    
1<?php
                    
2/*+**********************************************************************************
                    
10
                    
11require_once('Smarty_setup.php');
                    
12require_once('data/Tracker.php');
                    
12require_once('data/Tracker.php');
                    
13require_once('include/utils/utils.php');
                    
14
                    
100elseif (!isset($focus->parent_type)) {
                    
101	$focus->parent_type = $app_list_strings['record_type_default_key'];
                    
102}
                    
173$smarty->assign("IMAGE_PATH", $image_path);
                    
174$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
                    
175$smarty->assign("ID", $focus->id);
                    
189if (isset($focus->parent_type) && $focus->parent_type != "") {
                    
190        $change_parent_button = "<input title='".$app_strings['LBL_CHANGE_BUTTON_TITLE']."' accessKey='".$app_strings['LBL_CHANGE_BUTTON_KEY']."' vtiger_tabindex='3' type='button' class='button' value='".$app_strings['LBL_CHANGE_BUTTON_LABEL']."' name='button' LANGUAGE=javascript onclick='return window.open(\"index.php?module=\"+ document.EditView.parent_type.value + \"&action=Popup&html=Popup_picker&form=TasksEditView\",\"test\",\"width=600,height=400,resizable=1,scrollbars=1\");'>";
                    
191        $smarty->assign("CHANGE_PARENT_BUTTON", $change_parent_button);
                    
                
index.html https://bitbucket.org/edwong57/broad_domain_db.git | HTML | 237 lines
                    
10    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                    
11    <meta name="keywords" content="canvasxpress, canvas, html5, graph, chart, plot, javascript, javascript library, genomic, scientific, android, animation, bar graph, line graph, dotplot, boxplot, heatmap, newick, scatter, 3d, pie, correlation, venn, network, market, candlestick, genome browser, isaac neuhaus"/>
                    
12    <meta name="description" content=""/>
                    
33        <div class="share">
                    
34          <a class="addthis_button" href="http://addthis.com/bookmark.php?v=250&amp;username=xa-4c58a3ba2ff9a164">
                    
35            <img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/>
                    
102            <h3>Share canvasXpress</h3>
                    
103            <a class="addthis_button" href="http://addthis.com/bookmark.php?v=250&amp;username=xa-4c58a3ba2ff9a164">
                    
104              <img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/>
                    
                
Feed.php https://bitbucket.org/ksekar/campus.git | PHP | 320 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Feed.php 24594 2012-01-05 21:27:01Z matthew $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';
                    
26
                    
58        $this->_setExplicit($this->_dom, $this->_base);
                    
59        $this->_setKeywords($this->_dom, $this->_base);
                    
60        $this->_setNewFeedUrl($this->_dom, $this->_base);
                    
134        }
                    
135        foreach ($cats as $key=>$cat) {
                    
136            if (!is_array($cat)) {
                    
221    {
                    
222        $keywords = $this->getDataContainer()->getItunesKeywords();
                    
223        if (!$keywords || empty($keywords)) {
                    
                
HashMap.class.php https://bitbucket.org/stk2k/charcoalphp2.1.git | PHP | 386 lines
                    
41    {
                    
42        return array_key_exists( $key, $this->values );
                    
43    }
                    
299     *
                    
300     * @param string $key           Key string to get
                    
301     * @param bool $default_value   default value
                    
315     *
                    
316     * @param string $key          Key string to get
                    
317     * @param int $default_value   default value
                    
331     *
                    
332     * @param string $key            Key string to get
                    
333     * @param float $default_value   default value
                    
377            }
                    
378            $key = Charcoal_System::toString($key);
                    
379            $value = Charcoal_System::toString($value);
                    
                
result.php https://bitbucket.org/moodle/moodle.git | PHP | 300 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
127        // Inside a list element [.] means sublist (pair) and [:] a range.
                    
128        foreach ($list as $key => $item) {
                    
129            if (strpos($item, '[.]') !== false) {
                    
129            if (strpos($item, '[.]') !== false) {
                    
130                $list[$key] = explode('[.]', $item);
                    
131            } else if (strpos($item, '[:]') !== false) {
                    
131            } else if (strpos($item, '[:]') !== false) {
                    
132                $list[$key] = explode('[:]', $item);
                    
133            }
                    
239        $result = [];
                    
240        foreach ($data as $key => $value) {
                    
241            $description = $this->get_description($value);
                    
241            $description = $this->get_description($value);
                    
242            $index = $value->id ?? $key;
                    
243            $index = trim($index);
                    
                
json.php https://bitbucket.org/zachisit/zachis.it-m.git | PHP | 275 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* REST Application Programming Interface PHP class for the WordPress plugin NextGEN Gallery
                    
4* Should emulate some kind of Flickr JSON callback : ?callback=json&format=json&api_key=1234567890&method=search&term=myterm
                    
8* 
                    
9* @require		PHP 5.2.0 or higher
                    
10* 
                    
22    var $format		=	false;		// $_GET['format'] 	: Return a XML oder JSON output
                    
23	var $api_key	=	false;		// $_GET['api_key']	: Protect the access via a random key (required if user is not logged into backend)
                    
24	var $method		=	false;		// $_GET['method']	: search | gallery | image | album | tag | autocomplete
                    
57		if ( !function_exists('json_encode') )
                    
58			wp_die('Json_encode not available. You need to use PHP 5.2');
                    
59		
                    
61		$this->format 	= isset($_GET['format']) ? strtolower( $_GET['format'] ) : false;
                    
62		$this->api_key 	= isset($_GET['api_key'])? $_GET['api_key'] : false; 
                    
63		$this->method 	= isset($_GET['method']) ? strtolower( $_GET['method'] ) : false; 
                    
                
Abstract.php https://bitbucket.org/acidel/buykoala.git | PHP | 287 lines
                    
1<?php

                    
2/**

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

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

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

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

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

                    
25 */

                    
101            // insert new index

                    
102            $this->useDisableKeys(false);

                    
103            $this->insertFromTable($this->getIdxTable(), $this->getMainTable());

                    
103            $this->insertFromTable($this->getIdxTable(), $this->getMainTable());

                    
104            $this->useDisableKeys(true);

                    
105

                    
                
Eav.php https://bitbucket.org/acidel/buykoala.git | PHP | 268 lines
                    
1<?php

                    
2/**

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

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

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

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

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

                    
25 */

                    
203        if (is_array($attrData)) {

                    
204            foreach (array_keys($attrData) as $attributeCode) {

                    
205                if ($this->_attributeIsIndexable($attributeCode)) {

                    
                
wp-cache-f091d5ab40590bc01ee8ea7afc5372b1.html https://gitlab.com/endomorphosis/reservationtelco | HTML | 371 lines
                    
9	<meta name="author" content="Pivot Group" />
                    
10	<meta name="keywords" content="reservation telephone company" />
                    
11	<meta name="description" content="" />
                    
29<script type='text/javascript' src='http://localhost:8888/reservation-telephone-company/wp-content/plugins/gs-presentation/js/gs-presentation.js?ver=3.0-RC1-15112'></script>
                    
30<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://localhost:8888/reservation-telephone-company/xmlrpc.php?rsd" />
                    
31<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://localhost:8888/reservation-telephone-company/wp-includes/wlwmanifest.xml" /> 
                    
156     }
                    
157     .cat-key {
                    
158        width:100%;
                    
213  (function(){document.write(unescape('%3Cscript src=\'' + (document.location.protocol == 'https:' ? "https:" : "http:") + '//static.olark.com/js/wc.js\' type=\'text/javascript\'%3E%3C/script%3E'));})();
                    
214  </script> <div id="olark-data"><a class="olark-key" id="olark-6934-244-10-6575" title="Powered by Olark" href="http://olark.com/about" rel="nofollow">Powered by Olark</a></div> <script type="text/javascript"> wc_init(); </script>
                    
215
                    
                
pyodbc.py https://gitlab.com/ztane/sqlalchemy | Python | 260 lines
                    
4# This module is part of SQLAlchemy and is released under
                    
5# the MIT License: http://www.opensource.org/licenses/mit-license.php
                    
6
                    
51  string that includes the port
                    
52  information as a separate ``port`` keyword. This will create the
                    
53  following connection string::
                    
63If you require a connection string that is outside the options
                    
64presented above, use the ``odbc_connect`` keyword to pass in a
                    
65urlencoded connection string. What gets passed in will be urldecoded
                    
                
Store.php https://gitlab.com/ealexis.t/trends | PHP | 707 lines
                    
155    {
                    
156        $this->bagData[$bag->getStorageKey()] = $this->pull($bag->getStorageKey(), []);
                    
157    }
                    
285        foreach (array_merge($this->bags, [$this->metaBag]) as $bag) {
                    
286            $key = $bag->getStorageKey();
                    
287
                    
382    /**
                    
383     * Put a key / value pair or array of key / value pairs in the session.
                    
384     *
                    
394
                    
395        foreach ($key as $arrayKey => $arrayValue) {
                    
396            $this->set($arrayKey, $arrayValue);
                    
477    {
                    
478        $keys = is_array($keys) ? $keys : func_get_args();
                    
479
                    
                
Font.php https://gitlab.com/adamlwalker/generatedata | PHP | 640 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_Font implements PHPExcel_IComparable
                    
37{
                    
153			$this->_strikethrough	= NULL;
                    
154			$this->_color			= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional);
                    
155		} else {
                    
155		} else {
                    
156			$this->_color	= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor);
                    
157		}
                    
                
TwitterOAuthTest.php https://gitlab.com/Hungcis/testvagrant | PHP | 241 lines
                    
1<?php
                    
2/**
                    
8
                    
9class TwitterOAuthTest extends \PHPUnit_Framework_TestCase
                    
10{
                    
15    {
                    
16        $this->twitter = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET);
                    
17    }
                    
26    {
                    
27        $twitter = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET);
                    
28        $twitter->setOauthToken(ACCESS_TOKEN, ACCESS_TOKEN_SECRET);
                    
36    {
                    
37        $twitter = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET);
                    
38        $result = $twitter->oauth2('oauth2/token', array('grant_type' => 'client_credentials'));
                    
50    {
                    
51        $twitter = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, null, $accessToken->access_token);
                    
52        $result = $twitter->get('statuses/user_timeline', array('screen_name' => 'twitterapi'));
                    
                
VarCloner.php https://gitlab.com/Sigpot/AirSpot | PHP | 324 lines
                    
1<?php
                    
2
                    
62            $j = -1;                    // Position in the currently iterated array
                    
63            $fromObjCast = array_keys($queue[$i]);
                    
64            $fromObjCast = array_keys(array_flip($fromObjCast)) !== $fromObjCast;
                    
66            foreach ($queue[$i] as $k => $v) {
                    
67                // $k is the original key
                    
68                // $v is the original value or a stub object in case of hard references
                    
148                    case 'object':
                    
149                        if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) {
                    
150                            $stub = new Stub();
                    
164                                } else {
                    
165                                    $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE));
                    
166                                }
                    
300        $obj = (object) array();
                    
301        self::$hashOffset = 16 - PHP_INT_SIZE;
                    
302        self::$hashMask = -1;
                    
                
sweetalert2.css https://gitlab.com/ptisky/API_prestashop | CSS | 595 lines
                    
8 * It is also available through the world-wide-web at this URL:
                    
9 * http://opensource.org/licenses/afl-3.0.php
                    
10 * If you did not receive a copy of the license and are unable to
                    
21 * @copyright 2015-2016 Cubyn
                    
22 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23 */
                    
258
                    
259@-webkit-keyframes showSweetAlert {
                    
260  0% {
                    
275
                    
276@keyframes showSweetAlert {
                    
277  0% {
                    
292
                    
293@-webkit-keyframes hideSweetAlert {
                    
294  0% {
                    
                
GetCharactersCharacterIdMailMailIdOk.php https://gitlab.com/mglinski/php-esi-lib | PHP | 394 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
84    /**
                    
85     * Array of attributes where the key is the local name, and the value is the original name
                    
86     * @var string[]
                    
                
editor.php https://gitlab.com/ppapadatis/Videolearn | PHP | 321 lines
                    
135                // check user groups - a value should always be set
                    
136                $groups = array_intersect($keys, explode(',', $item->types));
                    
137
                    
271
                    
272            self::$params[$signature] = new WFParameter($data, $options['path'], $options['key']);
                    
273        }
                    
279     * Get a parameter by key
                    
280     * @param $key Parameter key eg: editor.width
                    
281     * @param $fallback Fallback value
                    
283     */
                    
284    public function getParam($key, $fallback = '', $default = '', $type = 'string', $allowempty = true) {
                    
285        // get all keys
                    
285        // get all keys
                    
286        $keys = explode('.', $key);
                    
287
                    
                
Generator.php https://gitlab.com/gideonmarked/PLCPortal | PHP | 365 lines
                    
1<?php
                    
2
                    
79	protected $sources = array();
                    
80	protected $source_keys = array();
                    
81
                    
290
                    
291		$this->source_keys = array_flip(array_keys($this->sources));
                    
292
                    
346	protected function findFileIndex($filename){
                    
347		return $this->source_keys[$filename];
                    
348	}
                    
                
wc-meta-box-functions.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 223 lines
                    
1<?php
                    
2/**
                    
160
                    
161	foreach ( $field['options'] as $key => $value ) {
                    
162
                    
162
                    
163		echo '<option value="' . esc_attr( $key ) . '" ' . selected( esc_attr( $field['value'] ), esc_attr( $key ), false ) . '>' . esc_html( $value ) . '</option>';
                    
164
                    
198
                    
199    foreach ( $field['options'] as $key => $value ) {
                    
200
                    
202        		name="' . esc_attr( $field['name'] ) . '"
                    
203        		value="' . esc_attr( $key ) . '"
                    
204        		type="radio"
                    
205        		class="' . esc_attr( $field['class'] ) . '"
                    
206        		' . checked( esc_attr( $field['value'] ), esc_attr( $key ), false ) . '
                    
207        		/> ' . esc_html( $value ) . '</label>
                    
                
user_waiting.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 222 lines
                    
1<?php
                    
2
                    
34    {
                    
35        Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name );
                    
36        die();
                    
43    {
                    
44        Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name );
                    
45        die();
                    
51    `regdate`, `website`, `location`, `yim`, `telephone`, `fax`, `mobile`, `question`, 
                    
52    `answer`, `passlostkey`, `view_mail`, `remember`, `in_groups`, `active`, `checknum`, 
                    
53    `last_login`, `last_ip`, `last_agent`, `last_openid`
                    
73        $subject = $lang_module['adduser_register'];
                    
74        $message = sprintf( $lang_module['adduser_register_info'], $full_name, $global_config['site_name'], NV_MY_DOMAIN . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name, $row['username'] );
                    
75        $message .= "<br /><br />------------------------------------------------<br /><br />";
                    
79    
                    
80    Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=user_waiting" );
                    
81    die();
                    
                
UpgradeWizardCommon.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 251 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
45
                    
46require_once('include/utils/db_utils.php');
                    
47require_once('include/utils/zip_utils.php');
                    
60}
                    
61$form_action = "index.php?module=Administration&view=" . $view . "&action=UpgradeWizard";
                    
62
                    
67$GLOBALS['subdirs'] = array('full', 'langpack', 'module', 'patch', 'theme');
                    
68// array of special scripts that are executed during (un)installation-- key is type of script, value is filename
                    
69
                    
71{
                    
72	define('SUGARCRM_PRE_INSTALL_FILE', 'scripts/pre_install.php');
                    
73	define('SUGARCRM_POST_INSTALL_FILE', 'scripts/post_install.php');
                    
73	define('SUGARCRM_POST_INSTALL_FILE', 'scripts/post_install.php');
                    
74	define('SUGARCRM_PRE_UNINSTALL_FILE', 'scripts/pre_uninstall.php');
                    
75	define('SUGARCRM_POST_UNINSTALL_FILE', 'scripts/post_uninstall.php');
                    
                
Chooser_Meta_Box.php https://gitlab.com/ezgonzalez/integral | PHP | 306 lines
                    
94
                    
95		$current_linked_posts = get_post_meta( $post_id, $this->linked_posts->get_meta_key( $this->post_type ), false );
                    
96
                    
122
                    
123		?><script type="text/template" id="tmpl-tribe-select-<?php echo esc_attr( $this->post_type ); ?>"><?php $this->single_post_dropdown( 0 ); ?></script><?php
                    
124
                    
148		<tr class="saved-linked-post">
                    
149			<td style="width:170px"><?php
                    
150				$this->move_handle();
                    
150				$this->move_handle();
                    
151				?><label data-l10n-create-<?php echo esc_attr( $this->post_type ); ?>="<?php printf( esc_attr__( 'Create New %s', 'the-events-calendar' ), $this->singular_name ); ?>"><?php printf( esc_html__( 'Use Saved %s:', 'the-events-calendar' ), $this->singular_name ); ?></label>
                    
152			</td>
                    
180				<?php if ( empty( $linked_post_id ) ) { ?> style="display:none;"<?php } ?>
                    
181				data-admin-url="<?php echo esc_url( admin_url( 'post.php?action=edit&post=' ) ); ?>"
                    
182				href="<?php echo esc_url( admin_url( sprintf( 'post.php?action=edit&post=%s', $linked_post_id ) ) ); ?>"
                    
                
InstallSchema.php https://gitlab.com/yousafsyed/easternglamor | PHP | 407 lines
                    
1<?php
                    
2/**
                    
19     * {@inheritdoc}
                    
20     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
21     */
                    
164            'Sort order'
                    
165        )->addForeignKey(
                    
166            $installer->getFkName('widget_instance', 'theme_id', 'theme', 'theme_id'),
                    
231            'instance_id'
                    
232        )->addForeignKey(
                    
233            $installer->getFkName('widget_instance_page', 'instance_id', 'widget_instance', 'instance_id'),
                    
270            ['type' => \Magento\Framework\DB\Adapter\AdapterInterface::INDEX_TYPE_UNIQUE]
                    
271        )->addForeignKey(
                    
272            $installer->getFkName('widget_instance_page_layout', 'page_id', 'widget_instance_page', 'page_id'),
                    
276            \Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
                    
277        )->addForeignKey(
                    
278            $installer->getFkName(
                    
                
eventapi.html.md https://gitlab.com/ggsaavedra/PredictionIO | Markdown | 412 lines
                    
70
                    
71Take note of the *Access Key* and *App ID* generated. You need the *Access Key*
                    
72to use the Event API. You should see something like the following output:
                    
86For example, the following shows how one can create an event involving a single entity.
                    
87Replace the value of `accessKey` by the *Access Key* generated for your App.
                    
88
                    
211
                    
212  $accessKey = 'YOUR_ACCESS_KEY';
                    
213  $client = new EventClient($accessKey);
                    
396```
                    
397$ curl -i -X GET "http://localhost:7070/events.json?accessKey=<your_accessKey>&startTime=<time in ISO8601 format>&untilTime=<time in ISO8601 format>"
                    
398```
                    
402```
                    
403$ curl -i -X GET "http://localhost:7070/events.json?accessKey=<your_accessKey>&entityType=<your_entityType>&entityId=<your_entityId>&untilTime=<time in ISO801 format>"
                    
404```
                    
                
arr.php https://gitlab.com/ken3/bluSky | PHP | 602 lines
                    
34
                    
35		// If the array keys of the keys match the keys, then the array must
                    
36		// not be associative (e.g. the keys array looked like {0:0, 1:1...}).
                    
36		// not be associative (e.g. the keys array looked like {0:0, 1:1...}).
                    
37		return array_keys($keys) !== $keys;
                    
38	}
                    
296		{
                    
297			$found[$key] = isset($array[$key]) ? $array[$key] : $default;
                    
298		}
                    
380			{
                    
381				$array[$key] = Arr::map($callbacks, $array[$key]);
                    
382			}
                    
382			}
                    
383			elseif ( ! is_array($keys) or in_array($key, $keys))
                    
384			{
                    
                
PackageCreator.php https://gitlab.com/oytunistrator/92five | PHP | 371 lines
                    
1<?php namespace Illuminate\Workbench;
                    
2
                    
103	{
                    
104		foreach (array('PhpUnit', 'Travis', 'Composer', 'Ignore') as $file)
                    
105		{
                    
110	/**
                    
111	 * Write the PHPUnit stub file.
                    
112	 *
                    
116	 */
                    
117	protected function writePhpUnitFile(Package $package, $directory)
                    
118	{
                    
118	{
                    
119		$stub = __DIR__.'/stubs/phpunit.xml';
                    
120
                    
120
                    
121		$this->files->copy($stub, $directory.'/phpunit.xml');
                    
122	}
                    
                
common.js https://gitlab.com/ctheilman92/Aging-In-Place | JavaScript | 288 lines
                    
18 *
                    
19 * The content for this is normally loaded from Header.class.php or
                    
20 * Response.class.php and executed by ajax.js
                    
23    /**
                    
24     * @var hash params An associative array of key value pairs
                    
25     * @access private
                    
30        /**
                    
31         * Saves all the key value pair that
                    
32         * are provided in the input array
                    
50        /**
                    
51         * Retrieves a value given its key
                    
52         * Returns empty string for undefined values
                    
53         *
                    
54         * @param string name The key
                    
55         *
                    
                
settings_lang.php https://gitlab.com/Riky_Lesmana/SugarSweetCakes | PHP | 160 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2
                    
31$lang['settings:date_format']					= 'Format Tanggal';
                    
32$lang['settings:date_format_desc']				= 'Bagaimana tanggal mesti ditampilkan di dalam situs d? Gunakan <a target="_blank" href="http://php.net/manual/en/function.date.php">format tanggal</a> dari PHP - atau - gunakan format dari <a target="_blank" href="http://php.net/manual/en/function.strftime.php">string yang diformat sebagai date</a> dari PHP.';
                    
33
                    
85
                    
86$lang['settings:akismet_api_key']				= 'Akismet API Key';
                    
87$lang['settings:akismet_api_key_desc']			= 'Akismet adalah spam-blocker dari tim WordPress. Alat ini mengontrol datangnya spam tanpa memaksa pengguna untuk melalui  pengecekan manusia dengan form CAPTCHA.';
                    
159
                    
160/* End of file settings_lang.php */
                    
161
                    
                
Descarte.php https://gitlab.com/SFMSP/Hagape | PHP | 346 lines
                    
1<?php
                    
2
                    
194
                    
195                foreach ($data['id-produto'] as $key => $item) {
                    
196                    if (!isset($itensDesc[$item])) {
                    
196                    if (!isset($itensDesc[$item])) {
                    
197                        $itemDescarte['qtd'] = $data['qtd-produto'][$key];
                    
198                        $itemDescarte['custoMedio'] = $data['preco-medio'][$key];
                    
198                        $itemDescarte['custoMedio'] = $data['preco-medio'][$key];
                    
199                        $itemDescarte['valorTotal'] = $data['valor-total'][$key];
                    
200                        $itemDescarte['solicitacaoDescarte'] = $this->getEm()->getReference('Estoque\Entity\SolicitacaoDescarte', $solicitacaoDescarte->getId());
                    
200                        $itemDescarte['solicitacaoDescarte'] = $this->getEm()->getReference('Estoque\Entity\SolicitacaoDescarte', $solicitacaoDescarte->getId());
                    
201                        $itemDescarte['produto'] = $this->getEm()->getReference('Estoque\Entity\Produto', $data['id-produto'][$key]);
                    
202
                    
207
                    
208                        if (!$this->estoqueProdutoService->adicionarEstoque($data['id-produto'][$key], $solicitacaoDescarte->getEstoqueOrigem()->getId(), $data['qtd-produto'][$key], '-', false)) {
                    
209                            $this->getEm()->rollback();
                    
                
Deal.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 461 lines
                    
1<?php
                    
2/*
                    
21{
                    
22  protected $collection_key = 'targetingCriterion';
                    
23  /**
                    
                
Batch.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 514 lines
                    
1<?php
                    
2
                    
156  /**
                    
157   * Returns foreign keys and entity references.
                    
158   *
                    
437  /**
                    
438   * Return a mapping from field-name to the corresponding key (as used in fields()).
                    
439   *
                    
442   */
                    
443  public static function &fieldKeys() {
                    
444    if (!isset(Civi::$statics[__CLASS__]['fieldKeys'])) {
                    
444    if (!isset(Civi::$statics[__CLASS__]['fieldKeys'])) {
                    
445      Civi::$statics[__CLASS__]['fieldKeys'] = array_flip(CRM_Utils_Array::collect('name', self::fields()));
                    
446    }
                    
446    }
                    
447    return Civi::$statics[__CLASS__]['fieldKeys'];
                    
448  }
                    
                
index.html https://gitlab.com/bappy_023/fast-project | HTML | 215 lines
                    
13    <meta name="description" content="XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl." />
                    
14    <meta name="keywords" content="xampp, apache, php, perl, mysql, open source distribution" />
                    
15
                    
61              <li class=""><a href="/dashboard/es/howto.html">HOW-TO Guides</a></li>
                    
62              <li class=""><a target="_blank" href="/dashboard/phpinfo.php">PHPInfo</a></li>
                    
63              <li id="locales" class="has-dropdown">
                    
121    <div class="large-12 columns">
                    
122      <h1><img src="/dashboard/images/xampp-logo.svg" />XAMPP <span>Apache + MySQL + PHP + Perl</span></h1>
                    
123    </div>
                    
133    <p>
                    
134      You have successfully installed XAMPP on this system! Now you can start using Apache, MySQL, PHP and other components.
                    
135      You can find more info in the <a href="/dashboard/es/faq.html">Preguntas frecuentes</a> section or check the <a href="/dashboard/es/howto.html">HOW-TO Guides</a> for getting started with PHP applications.
                    
                
index.html https://gitlab.com/bappy_023/fast-project | HTML | 215 lines
                    
13    <meta name="description" content="XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl." />
                    
14    <meta name="keywords" content="xampp, apache, php, perl, mysql, open source distribution" />
                    
15
                    
61              <li class=""><a href="/dashboard/zh_cn/howto.html">HOW-TO Guides</a></li>
                    
62              <li class=""><a target="_blank" href="/dashboard/phpinfo.php">PHPInfo</a></li>
                    
63              <li id="locales" class="has-dropdown">
                    
121    <div class="large-12 columns">
                    
122      <h1><img src="/dashboard/images/xampp-logo.svg" />XAMPP <span>Apache + MySQL + PHP + Perl</span></h1>
                    
123    </div>
                    
133    <p>
                    
134      You have successfully installed XAMPP on this system! Now you can start using Apache, MySQL, PHP and other components.
                    
135      You can find more info in the <a href="/dashboard/zh_cn/faq.html">常见问题</a> section or check the <a href="/dashboard/zh_cn/howto.html">HOW-TO Guides</a> for getting started with PHP applications.
                    
                
Cdn_CloudFrontFsd_Popup.php https://gitlab.com/karlen/ayo_wp | PHP | 345 lines
                    
41	public function w3tc_ajax_cdn_cloudfront_fsd_list_distributions() {
                    
42		$access_key = $_REQUEST['access_key'];
                    
43		$secret_key = $_REQUEST['secret_key'];
                    
44
                    
45		$api = new Cdn_CloudFrontFsd_Api( $access_key, $secret_key );
                    
46		if ( empty( $access_key ) || empty( $secret_key ) ) {
                    
89	public function w3tc_ajax_cdn_cloudfront_fsd_view_distribution() {
                    
90		$access_key = $_REQUEST['access_key'];
                    
91		$secret_key = $_REQUEST['secret_key'];
                    
119		} else {
                    
120			$api = new Cdn_CloudFrontFsd_Api( $access_key, $secret_key );
                    
121
                    
330		$c->set( 'cdn.cloudfront_fsd.access_key', $access_key );
                    
331		$c->set( 'cdn.cloudfront_fsd.secret_key', $secret_key );
                    
332		$c->set( 'cdn.cloudfront_fsd.distribution_id', $distribution_id );
                    
                
definitions.php https://gitlab.com/scsistemas/superprime | PHP | 262 lines
                    
1<?php
                    
2	//$urlWS = 'http://qa.superprimeweb.com/admin/index.php?';
                    
2	//$urlWS = 'http://qa.superprimeweb.com/admin/index.php?';
                    
3    $urlWS = 'http://localhost:8080/superprime/admin/index.php?';
                    
4	$rutaFotos = '../images/fotos/';
                    
5	//$rutaFotos = $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] . '/backend/images/fotos/';
                    
6	$variable = array('ml_id','ml_secretKey', 'ml_authCode', 'ml_token', 'ml_fecToken', 'ml_expires', 'ml_redirectUri');
                    
7	//ini_set('display_errors', '1');
                    
8	foreach ($variable as $key ) {
                    
9		$dataML[$key] = obtenerClaveValor($urlWS, $key);
                    
10	}
                    
66					    	'client_id' => $dataML['ml_id'],
                    
67							'client_secret' => $dataML['ml_secretKey'],
                    
68							'code' => $dataML['ml_authCode'],
                    
107					    	'client_id' => $dataML['ml_id'],
                    
108							'client_secret' => $dataML['ml_secretKey'],
                    
109							'refresh_token' => $dataML['ml_authCode']);
                    
                
logout_8php_source.html https://gitlab.com/zaverichintan/geometry_viewer | HTML | 132 lines
                    
6<meta name="generator" content="Doxygen 1.8.4"/>
                    
7<title>BRL-CAD Online Geometry Viewer: accounts/logout.php Source File</title>
                    
8<link href="tabs.css" rel="stylesheet" type="text/css"/>
                    
47               alt=""/>
                    
48          <input type="text" id="MSearchField" value="Search" accesskey="S"
                    
49               onfocus="searchBox.OnSearchFieldFocus(true)" 
                    
50               onblur="searchBox.OnSearchFieldFocus(false)" 
                    
51               onkeyup="searchBox.OnSearchFieldChange(event)"/>
                    
52          </span><span class="right">
                    
68     onmouseout="return searchBox.OnSearchSelectHide()"
                    
69     onkeydown="return searchBox.OnSearchSelectKey(event)">
                    
70<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>
                    
88<div class="contents">
                    
89<a href="logout_8php.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;&lt;?php</div>
                    
90<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">/*                         L O G O U T . P H P</span></div>
                    
                
index.php https://gitlab.com/Nilufarjahan/LabExam8 | PHP | 455 lines
                    
12if(isset($_REQUEST['search']) )$allData =  $orgObject->search($_REQUEST);
                    
13$availableKeywords=$orgObject->getAllKeywords();
                    
14$comma_separated_keywords= '"'.implode('","',$availableKeywords).'"';
                    
171            <li>
                    
172                <a href="../Gender/create.php">
                    
173                    <span class="title">Add New</span>
                    
272            <a href="xl.php" class="btn btn-primary" role="button">Download as XL</a>
                    
273            <a href="email.php?list=1" class="btn btn-primary" role="button">Email to friend</a>
                    
274        </td>
                    
328                                <td><?php echo $oneData->birthday?></td>
                    
329                                <?php  echo "<td> <a href=\"edits.php?id=$oneData->id\"class=\"btn btn-info\" role=\"button\">Edit</a>  ";?>
                    
330                                <?php  echo " <a href=\"delete.php?id=$oneData->id\"class=\"btn btn-danger\" role=\"button\">Delete</a> ";?>
                    
331                            
                    
332                                <?php  echo " <a href=\"trash.php?id=$oneData->id\"class=\"btn btn-danger\" role=\"button\">Trash</a> </td> ";?>
                    
333                            </tr>
                    
                
hostkreskoweczki.py https://gitlab.com/Ghoz/iptvplayer-for-e2 | Python | 318 lines
                    
60        self.MAIN_URL      = 'http://www.kreskoweczki.pl/'
                    
61        self.SEARCH_URL    = self.MAIN_URL + 'search.php?keywords='
                    
62        self.DEFAULT_ICON  = "http://www.kreskoweczki.pl/uploads/custom-logo.png"
                    
179            
                    
180        videoData = self.cm.ph.getSearchGroups(videoUrl, "/embed/proxy[^.]+?.php")
                    
181        if '' != videoData:
                    
                
TextArea.php https://gitlab.com/ElvisAns/tiki | PHP | 377 lines
                    
201        $fieldType = $this->getIndexableType();
                    
202        $baseKey = $this->getBaseKey();
                    
203
                    
235        global $prefs;
                    
236        $baseKey = $this->getBaseKey();
                    
237
                    
237
                    
238        $data = [$baseKey, "{$baseKey}_raw"];
                    
239
                    
252        global $prefs;
                    
253        $baseKey = $this->getBaseKey();
                    
254
                    
270        $permName = $this->getConfiguration('permName');
                    
271        $baseKey = $this->getBaseKey();
                    
272        $name = $this->getConfiguration('name');
                    
                
class-cp-user-relationships.php https://gitlab.com/clusterpress/clusterpress | PHP | 543 lines
                    
1<?php
                    
2/**
                    
104
                    
105		$type['name'] = sanitize_key( $type['name'] );
                    
106
                    
110
                    
111		$this->types[ $type['name'] ] =  (object) array_intersect_key( $type, array(
                    
112			'name'             => '',
                    
152
                    
153		$name = sanitize_key( $name );
                    
154
                    
179
                    
180		$r = array_intersect_key( $args, array(
                    
181			'user_id'      => 0,
                    
230
                    
231		$r = array_intersect_key( $args, array(
                    
232			'secondary_id' => null,
                    
                
class-wp-terms-list-table.php https://gitlab.com/haque.mdmanzurul/barongbarong | PHP | 454 lines
                    
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 );
                    
410			<fieldset><div class="inline-edit-col">
                    
411				<h4><?php _e( 'Quick Edit' ); ?></h4>
                    
412
                    
418				<label>
                    
419					<span class="title"><?php _e( 'Slug' ); ?></span>
                    
420					<span class="input-text-wrap"><input type="text" name="slug" class="ptitle" value="" /></span>
                    
440		<p class="inline-edit-save submit">
                    
441			<a accesskey="c" href="#inline-edit" class="cancel button-secondary alignleft"><?php _e( 'Cancel' ); ?></a>
                    
442			<a accesskey="s" href="#inline-edit" class="save button-primary alignright"><?php echo $tax->labels->update_item; ?></a>
                    
                
user.inc.php https://gitlab.com/haque.mdmanzurul/modx-improve-carolyn | PHP | 202 lines
                    
1<?php
                    
2/**
                    
70$_lang['user_changeddata'] = 'Your data has been changed. Please log in again.';
                    
71$_lang['user_class_key_desc'] = 'The MODX Class Key for this user. Do not change this unless you know what you are doing.';
                    
72$_lang['user_created_password_message'] = 'The User has been created. The password is: [[+password]]';
                    
                
RouteCollectionBuilderTest.php https://gitlab.com/ealexis.t/trends | PHP | 324 lines
                    
1<?php
                    
2
                    
18
                    
19class RouteCollectionBuilderTest extends \PHPUnit_Framework_TestCase
                    
20{
                    
118        $this->assertCount(5, $actualCollection);
                    
119        $actualRouteNames = array_keys($actualCollection->all());
                    
120        $this->assertEquals(array(
                    
130        $defaults = $checkoutRoute->getDefaults();
                    
131        $this->assertArrayHasKey('_locale', $defaults);
                    
132        $this->assertEquals('fr', $defaults['_locale']);
                    
148        $actualCollection = $collectionBuilder->build();
                    
149        $actualRouteNames = array_keys($actualCollection->all());
                    
150        $this->assertEquals(array(
                    
                
Index.php https://gitlab.com/tonycodes/october | PHP | 458 lines
                    
1<?php namespace Cms\Controllers;
                    
2
                    
154        foreach ($fields as $field) {
                    
155            if (array_key_exists($field, $_POST)) {
                    
156                $templateData[$field] = Request::input($field);
                    
336
                    
337        if (!array_key_exists($type, $types)) {
                    
338            throw new ApplicationException(trans('cms::lang.template.invalid_type'));
                    
398
                    
399        if (!array_key_exists($type, $formConfigs)) {
                    
400            throw new ApplicationException(trans('cms::lang.template.not_found'));
                    
413    {
                    
414        if (!array_key_exists('component_properties', $_POST)) {
                    
415            return $settings;
                    
417
                    
418        if (!array_key_exists('component_names', $_POST) || !array_key_exists('component_aliases', $_POST)) {
                    
419            throw new ApplicationException(trans('cms::lang.component.invalid_request'));
                    
                
class-wpb-map.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 563 lines
                    
1<?php
                    
2/**
                    
12 * This class maps shortcodes settings to VC editors. You can manage add new shortcodes or manage default shortcodes
                    
13 * mapped in config/map.php. For developers it is possible to use API functions to add update settings attributes.
                    
14 *
                    
14 *
                    
15 * @see config/map.php
                    
16 * @see include/helpers/helpers_api.php
                    
126	 * You need to shortcode's tag and  settings to map correctly.
                    
127	 * Default shortcodes are mapped in config/map.php file.
                    
128	 * The best way is to call this method with "init" action callback function of WP.
                    
174				$sort = new Vc_Sort( self::$sc[ $tag ]['params'] );
                    
175				self::$sc[ $tag ]['params'] = $sort->sortByKey();
                    
176			}
                    
233		$sort = new Vc_Sort( self::$user_sorted_sc );
                    
234		self::$user_sorted_sc = $sort->sortByKey();
                    
235	}
                    
                
Template.php https://github.com/ceefour/magento-mirror.git | PHP | 272 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
213        $params = $tokenizer->tokenize();
                    
214        foreach ($params as $key => $value) {
                    
215        	if (substr($value, 0, 1) === '$') {
                    
215        	if (substr($value, 0, 1) === '$') {
                    
216        	    $params[$key] = $this->_getVariable(substr($value, 1), null);
                    
217        	}
                    
                
l10n_client.php https://github.com/zulu/MyGallery3.git | PHP | 284 lines
                    
43  static function server_uid($api_key=null) {
                    
44    $api_key = $api_key == null ? self::api_key() : $api_key;
                    
45    $parts = explode(":", $api_key);
                    
49  private static function _sign($payload, $api_key=null) {
                    
50    $api_key = $api_key == null ? self::api_key() : $api_key;
                    
51    return md5($api_key . $payload . self::client_token());
                    
142        $root_entry = ORM::factory("incoming_translation")
                    
143          ->where(array("key" => $key, "locale" => "root"))
                    
144          ->find();
                    
144          ->find();
                    
145        $entry->key = $key;
                    
146        $entry->message = $root_entry->message;
                    
173             ->get() as $row) {
                    
174      $key = $row->key;
                    
175      if (!isset($request->{$key})) {
                    
                
rpcconsole.cpp https://gitlab.com/Quetzalcoatl/VekitaCoin | C++ | 433 lines
                    
221{
                    
222    if(event->type() == QEvent::KeyPress) // Special key handling
                    
223    {
                    
223    {
                    
224        QKeyEvent *keyevt = static_cast<QKeyEvent*>(event);
                    
225        int key = keyevt->key();
                    
234            {
                    
235                QApplication::postEvent(ui->messagesWidget, new QKeyEvent(*keyevt));
                    
236                return true;
                    
242            if(obj == ui->messagesWidget && (
                    
243                  (!mod && !keyevt->text().isEmpty() && key != Qt::Key_Tab) ||
                    
244                  ((mod & Qt::ControlModifier) && key == Qt::Key_V) ||
                    
247                ui->lineEdit->setFocus();
                    
248                QApplication::postEvent(ui->lineEdit, new QKeyEvent(*keyevt));
                    
249                return true;
                    
                
gallery.tpl.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 122 lines
                    
37      <div class="tubepress_thumb">
                    
38        <a id="tubepress_image_<?php echo $video->getId(); ?>_<?php echo ${org_tubepress_api_const_template_Variable::GALLERY_ID}; ?>" rel="tubepress_<?php echo ${org_tubepress_api_const_template_Variable::EMBEDDED_IMPL_NAME}; ?>_<?php echo ${org_tubepress_api_const_template_Variable::PLAYER_NAME}; ?>_<?php echo ${org_tubepress_api_const_template_Variable::GALLERY_ID}; ?>">
                    
39          <img alt="<?php echo htmlspecialchars($video->getTitle(), ENT_QUOTES, "UTF-8"); ?>" src="<?php echo $video->getThumbnailUrl(); ?>" width="<?php echo ${org_tubepress_api_const_template_Variable::THUMBNAIL_WIDTH}; ?>" height="<?php echo ${org_tubepress_api_const_template_Variable::THUMBNAIL_HEIGHT}; ?>" />
                    
43          <?php if (${org_tubepress_api_const_template_Variable::META_SHOULD_SHOW}[org_tubepress_api_const_options_names_Meta::TITLE]): ?>
                    
44          <dt class="tubepress_meta tubepress_meta_title"><?php echo ${org_tubepress_api_const_template_Variable::META_LABELS}[org_tubepress_api_const_options_names_Meta::TITLE]; ?></dt><dd class="tubepress_meta tubepress_meta_title"><a id="tubepress_title_<?php echo $video->getId(); ?>_<?php echo ${org_tubepress_api_const_template_Variable::GALLERY_ID}; ?>" rel="tubepress_<?php echo ${org_tubepress_api_const_template_Variable::EMBEDDED_IMPL_NAME}; ?>_<?php echo ${org_tubepress_api_const_template_Variable::PLAYER_NAME}; ?>_<?php echo ${org_tubepress_api_const_template_Variable::GALLERY_ID}; ?>"><?php echo htmlspecialchars($video->getTitle(), ENT_QUOTES, "UTF-8"); ?></a></dd>
                    
45          <?php endif; ?>
                    
58
                    
59          <dt class="tubepress_meta tubepress_meta_keywords"><?php echo ${org_tubepress_api_const_template_Variable::META_LABELS}[org_tubepress_api_const_options_names_Meta::KEYWORDS]; ?></dt><dd class="tubepress_meta tubepress_meta_keywords"><?php echo $raw = htmlspecialchars(implode(" ", $video->getKeywords()), ENT_QUOTES, "UTF-8"); ?></dd>
                    
60          <?php endif; ?>
                    
63
                    
64          <dt class="tubepress_meta tubepress_meta_url"><?php echo ${org_tubepress_api_const_template_Variable::META_LABELS}[org_tubepress_api_const_options_names_Meta::URL]; ?></dt><dd class="tubepress_meta tubepress_meta_url"><a rel="external nofollow" href="<?php echo $video->getHomeUrl(); ?>"><?php echo ${org_tubepress_api_const_template_Variable::META_LABELS}[org_tubepress_api_const_options_names_Meta::URL]; ?></a></dd>
                    
65          <?php endif; ?>
                    
91
                    
92          <dt class="tubepress_meta tubepress_meta_rating"><?php echo ${org_tubepress_api_const_template_Variable::META_LABELS}[org_tubepress_api_const_options_names_Meta::RATING]; ?></dt><dd class="tubepress_meta tubepress_meta_rating"><?php echo $video->getRatingAverage(); ?></dd>
                    
93          <?php endif; ?>
                    
                
publicize.php https://gitlab.com/endomorphosis/falkenstein | PHP | 307 lines
                    
1<?php
                    
2/**
                    
26
                    
27		require_once dirname( __FILE__ ) . '/publicize/publicize.php';
                    
28
                    
29		if ( $this->in_jetpack )
                    
30			require_once dirname( __FILE__ ) . '/publicize/publicize-jetpack.php';
                    
31		else {
                    
31		else {
                    
32			require_once dirname( dirname( __FILE__ ) ) . '/mu-plugins/keyring/keyring.php';
                    
33			require_once dirname( __FILE__ ) . '/publicize/publicize-wpcom.php';
                    
35
                    
36		require_once dirname( __FILE__ ) . '/publicize/ui.php';
                    
37		$publicize_ui = new Publicize_UI();
                    
                
sysvmsg.c https://gitlab.com/envieidoc/advancedtomato2 | C | 477 lines
                    
2  +----------------------------------------------------------------------+
                    
3  | PHP Version 5                                                        |
                    
4  +----------------------------------------------------------------------+
                    
4  +----------------------------------------------------------------------+
                    
5  | Copyright (c) 1997-2014 The PHP Group                                |
                    
6  +----------------------------------------------------------------------+
                    
262
                    
263	mq->key = key;
                    
264	mq->id = msgget(key, 0);
                    
268		if (mq->id < 0)	{
                    
269			php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for key 0x%lx: %s", key, strerror(errno));
                    
270			efree(mq);
                    
342
                    
343	messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf));
                    
344
                    
                
Ods.php https://gitlab.com/rsilveira1987/Expresso | PHP | 400 lines
                    
1<?php
                    
2/**
                    
228
                    
229        foreach($this->_columnStyles as $key => $style) {
                    
230            $this->_activeTable->appendColumn($style);
                    
                
Curl.php https://gitlab.com/yousafsyed/easternglamor | PHP | 453 lines
                    
272            }
                    
273            $options[$key] += in_array($options[$key]['type'], $this->selectOptions)
                    
274                ? ['values' => $customOption['options']]
                    
346     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
347     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
348     */
                    
352            foreach ($this->priceData as $key => $data) {
                    
353                $field[$data['name']] = $this->priceData[$key]['data'][$field[$key]];
                    
354                unset($field[$key]);
                    
370            foreach ($this->fptData as $key => $data) {
                    
371                $field[$data['name']] = $this->fptData[$key]['data'][$field[$key]];
                    
372                unset($field[$key]);
                    
390            } elseif (is_array($data[$key])) {
                    
391                $data[$key] = $this->filter($data[$key]);
                    
392            }
                    
                
Flat.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 362 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
28    /**
                    
29     * Data key for matching result to be saved in
                    
30     */
                    
30     */
                    
31    const EVENT_MATCH_RESULT_KEY = 'catalog_product_flat_match_result';
                    
32
                    
120        $data = $event->getNewData();
                    
121        if (isset($data[self::EVENT_MATCH_RESULT_KEY])) {
                    
122            return $data[self::EVENT_MATCH_RESULT_KEY];
                    
                
search.php https://gitlab.com/alexprowars/bitrix | PHP | 532 lines
                    
1<?php
                    
2/**
                    
57						"=EXTERNAL_AUTH_ID" => "replica",
                    
58						"=XML_ID" => array_keys($searchResult),
                    
59					),
                    
143	{
                    
144		foreach($usersList as $key => $value)
                    
145		{
                    
145		{
                    
146			if (array_key_exists($value["crmEntity"], $searchResult))
                    
147			{
                    
152		$crmUsersListTmp = $usersListTmp= array();
                    
153		foreach($usersList as $key => $user)
                    
154		{
                    
156			{
                    
157				$crmUsersListTmp[$key] = $user;
                    
158			}
                    
                
template.php https://gitlab.com/alexprowars/bitrix | PHP | 409 lines
                    
12Loc::loadMessages(__FILE__);
                    
13?><div class="container-fluid"><?php
                    
14if (!empty($arResult['ERRORS']['FATAL']))
                    
119
                    
120		foreach ($arResult['ORDERS'] as $key => $order)
                    
121		{
                    
294
                    
295		foreach ($arResult['ORDERS'] as $key => $order)
                    
296		{
                    
393		$javascriptParams = array(
                    
394			"url" => CUtil::JSEscape($this->__component->GetPath().'/ajax.php'),
                    
395			"templateFolder" => CUtil::JSEscape($templateFolder),
                    
399		);
                    
400		$javascriptParams = CUtil::PhpToJSObject($javascriptParams);
                    
401		?>
                    
                
Value.php https://github.com/sitengine/sitengine.git | PHP | 401 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Value.php 12721 2008-11-20 18:21:58Z matthew $
                    
21 */
                    
24/** Zend_XmlRpc_Value_Exception */
                    
25require_once 'Zend/XmlRpc/Value/Exception.php';
                    
26
                    
27/** Zend_XmlRpc_Value_Scalar */
                    
28require_once 'Zend/XmlRpc/Value/Scalar.php';
                    
29
                    
30/** Zend_XmlRpc_Value_Base64 */
                    
31require_once 'Zend/XmlRpc/Value/Base64.php';
                    
32
                    
33/** Zend_XmlRpc_Value_Boolean */
                    
34require_once 'Zend/XmlRpc/Value/Boolean.php';
                    
35
                    
                
header.php https://gitlab.com/tusharbd/RestaurantManagementSystem | PHP | 265 lines
                    
243
                    
244                                <li class= "<?php getActiveCurrent("index.php") ?>"><a href="index.php">home</a></li>
                    
245                                <li class="<?php getActiveCurrent("menu.php") ?>"><a href="menu.php">menu</a></li>
                    
247<!--                                <li class="--><?php //getActiveCurrent("blog.php") ?><!--"><a href="blog.php">blog</a></li>-->
                    
248                                <li class="<?php getActiveCurrent("contact.php") ?>"><a href="contact.php">contacts</a></li>
                    
249
                    
249
                    
250                                <li id="refreshCart" class="<?php getActiveCurrent("cart.php") ?>"><a href="cart.php" type="button" class="badge1" data-badge=" <?php echo $total?>">Cart</a></li>
                    
251                                <?php if($loggedIn) {?>
                    
251                                <?php if($loggedIn) {?>
                    
252                                <li class="<?php getActiveCurrent("profile.php") ?>"><a href="profile.php">Profile</a></li>
                    
253                                <?php } else { ?>
                    
253                                <?php } else { ?>
                    
254                                <li class="<?php getActiveCurrent("Profile/signup.php") ?>"><a href="User/Profile/signup.php">Login/Signup</a></li>
                    
255                                <?php } ?>
                    
                
signup.php https://gitlab.com/tusharbd/RestaurantManagementSystem | PHP | 211 lines
                    
1<?php
                    
2include_once('../../../../vendor/autoload.php');
                    
60
                    
61                        <?php  if(isset($_SESSION['message']) )if($_SESSION['message']!=""){ ?>
                    
62
                    
64                                <center>
                    
65                                    <?php if((array_key_exists('message',$_SESSION)&& (!empty($_SESSION['message'])))) {
                    
66                                        echo "&nbsp;".Message::message();
                    
73
                    
74                        <?php } ?>
                    
75
                    
93                        <h1>
                    
94                            <a href="index.php">
                    
95                                <img src="../../../../resource/images/logo.png" alt="Logo alt" >
                    
210
                    
211<?php  include('../../footer.php')?>
                    
                
derivative.inc.php https://gitlab.com/team_fsn/fsn-php | PHP | 540 lines
                    
1<?php
                    
2// +-----------------------------------------------------------------------+
                    
2// +-----------------------------------------------------------------------+
                    
3// | Piwigo - a PHP based photo gallery                                    |
                    
4// +-----------------------------------------------------------------------+
                    
71      $this->flags |= self::IS_MIMETYPE;
                    
72      if ( ($size=@getimagesize(PHPWG_ROOT_PATH.$this->rel_path)) === false)
                    
73      {
                    
74        $this->rel_path = 'themes/default/icon/mimetypes/unknown.png';
                    
75        $size = getimagesize(PHPWG_ROOT_PATH.$this->rel_path);
                    
76      }
                    
97      }
                    
98      elseif (!array_key_exists('width', $infos))
                    
99      {
                    
379      $rel_url = 'i';
                    
380      if ($conf['php_extension_in_urls']) $rel_url .= '.php';
                    
381      if ($conf['question_mark_in_urls']) $rel_url .= '?';
                    
                
BaseVarDumper.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 272 lines
                    
97                } else {
                    
98                    $keys = array_keys($var);
                    
99                    $spaces = str_repeat(' ', $level * 4);
                    
100                    self::$_output .= '[';
                    
101                    foreach ($keys as $key) {
                    
102                        self::$_output .= "\n" . $spaces . '    ';
                    
128                    foreach ($dumpValues as $key => $value) {
                    
129                        $keyDisplay = strtr(trim($key), "\0", ':');
                    
130                        self::$_output .= "\n" . $spaces . "    [$keyDisplay] => ";
                    
176                    $keys = array_keys($var);
                    
177                    $outputKeys = ($keys !== range(0, count($var) - 1));
                    
178                    $spaces = str_repeat(' ', $level * 4);
                    
179                    self::$_output .= '[';
                    
180                    foreach ($keys as $key) {
                    
181                        self::$_output .= "\n" . $spaces . '    ';
                    
                
store.php https://gitlab.com/reclamare/mao | PHP | 124 lines
                    
1<?php
                    
2// Heading
                    
38$_['entry_meta_description']           = 'Описание Мета-тегов';
                    
39$_['entry_meta_keyword']               = 'Ключевые слова Мета-тегов';
                    
40$_['entry_layout']                     = 'Макет по умолчанию';
                    
                
class-wp-media-list-table.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 396 lines
                    
50				$total_orphans = $wpdb->get_var( "SELECT COUNT( * ) FROM $wpdb->posts WHERE post_type = 'attachment' AND post_status != 'trash' AND post_parent < 1" );
                    
51		$matches = wp_match_mime_types(array_keys($post_mime_types), array_keys($_num_posts));
                    
52		foreach ( $matches as $type => $reals )
                    
202?>
                    
203		<td <?php echo $attributes ?>><?php
                    
204			if ( $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true ) ) {
                    
270?>
                    
271		<td <?php echo $attributes ?>><?php echo has_excerpt() ? $post->post_excerpt : ''; ?></td>
                    
272<?php
                    
291?>
                    
292		<td <?php echo $attributes ?>><?php echo $h_time ?></td>
                    
293<?php
                    
313?>
                    
314			<td <?php echo $attributes ?>><?php _e( '(Unattached)' ); ?><br />
                    
315			<?php if( $user_can_edit ) {?>
                    
                
Cost_Utils.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 481 lines
                    
1<?php
                    
2/**
                    
232			default:
                    
233				$cost = $costs[ max( array_keys( $costs ) ) ];
                    
234				break;
                    
281			LEFT JOIN {$wpdb->postmeta}
                    
282			          ON ( post_id = ID AND meta_key = '_EventCost' )
                    
283
                    
345			if ( is_numeric( $numeric_cost ) ) {
                    
346				// Creates a Well Balanced Index that will perform good on a Key Sorting method
                    
347				$index = str_replace( array( '.', ',' ), '', number_format( $numeric_cost, $max ) );
                    
410		$string_min_key   = min( $merging_has_min, $original_has_min );
                    
411		if ( array_key_exists( $string_min_key, $sorted_mins ) ) {
                    
412			$cost_min = $sorted_mins[ $string_min_key ];
                    
422		$string_max_key   = max( $merging_has_max, $original_has_max );
                    
423		if ( array_key_exists( $string_max_key, $sorted_maxs ) ) {
                    
424			$cost_max = $sorted_maxs[ $string_max_key ];
                    
                
Application.php https://gitlab.com/rsilveira1987/Expresso | PHP | 374 lines
                    
127        if (!empty($options['phpsettings'])) {
                    
128            $this->setPhpSettings($options['phpsettings']);
                    
129        }
                    
182    {
                    
183        return array_key_exists($key, $this->_options);
                    
184    }
                    
211                if (is_array($array2[$key])) {
                    
212                    $array1[$key] = (array_key_exists($key, $array1) && is_array($array1[$key]))
                    
213                                  ? $this->mergeOptions($array1[$key], $array2[$key]) 
                    
232        foreach ($settings as $key => $value) {
                    
233            $key = empty($prefix) ? $key : $prefix . $key;
                    
234            if (is_scalar($value)) {
                    
236            } elseif (is_array($value)) {
                    
237                $this->setPhpSettings($value, $key . '.');
                    
238            }
                    
                
SensorRunner.php https://gitlab.com/Drulenium-bot/monitoring | PHP | 351 lines
                    
1<?php
                    
2/**
                    
40  /**
                    
41   * List of sensors info keyed by sensor name that are meant to run.
                    
42   *
                    
                
SetTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 295 lines
                    
1<?php
                    
2/** 
                    
11 
                    
12class SetTest extends \PHPUnit_Framework_TestCase
                    
13{
                    
14    /**
                    
15     * @var \PHPUnit_Framework_MockObject_MockObject|Set
                    
16     */
                    
19    /**
                    
20     * @var \PHPUnit_Framework_MockObject_MockObject
                    
21     */
                    
24    /**
                    
25     * @var \PHPUnit_Framework_MockObject_MockObject
                    
26     */
                    
29    /**
                    
30     * @var \PHPUnit_Framework_MockObject_MockObject
                    
31     */
                    
                
Cloud.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 410 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26#require_once 'Zend/Tag/Item.php';
                    
27
                    
64    /**
                    
65     * Option keys to skip when calling setOptions()
                    
66     *
                    
115
                    
116        foreach ($options as $key => $value) {
                    
117            if (in_array(strtolower($key), $this->_skipOptions)) {
                    
120
                    
121            $method = 'set' . ucfirst($key);
                    
122            if (method_exists($this, $method)) {
                    
133     * $tags should be an array containing single tags as array. Each tag
                    
134     * array should at least contain the keys 'title' and 'weight'. Optionally
                    
135     * you may supply the key 'url', to which the tag links to. Any additional
                    
                
db_datadict.php https://gitlab.com/albert925/lading-ach | PHP | 325 lines
                    
113
                    
114        $indexes_info[$row['Key_name']]['Comment']     = $row['Comment'];
                    
115
                    
175    <th width="80"><?php echo $strType; ?></th>
                    
176<?php /*    <th width="50"><?php echo $strAttr; ?></th>*/ ?>
                    
177    <th width="40"><?php echo $strNull; ?></th>
                    
178    <th width="70"><?php echo $strDefault; ?></th>
                    
179<?php /*    <th width="50"><?php echo $strExtra; ?></th>*/ ?>
                    
180    <?php
                    
265    <td<?php echo $type_nowrap; ?> xml:lang="en" dir="ltr"><?php echo $type; ?></td>
                    
266<?php /*    <td<?php echo $type_nowrap; ?>><?php echo $strAttribute; ?></td>*/ ?>
                    
267    <td><?php echo (($row['Null'] == 'NO') ? $strNo : $strYes); ?></td>
                    
268    <td nowrap="nowrap"><?php if (isset($row['Default'])) { echo $row['Default']; } ?></td>
                    
269<?php /*    <td<?php echo $type_nowrap; ?>><?php echo $row['Extra']; ?></td>*/ ?>
                    
270        <?php
                    
                
CAutoComplete.php https://gitlab.com/zenfork/vektor | PHP | 294 lines
                    
1<?php
                    
2/**
                    
61	 * @var integer the delay in milliseconds the autocompleter waits after
                    
62	 * a keystroke to activate itself. Defaults to 400.
                    
63	 */
                    
97	 * be automatically selected on tab/return, even if it has not been handpicked
                    
98	 * by keyboard or mouse action. If there is a handpicked (highlighted) result,
                    
99	 * that result will take precedence. Defaults to true.
                    
                
QueryPluginBase.php https://gitlab.com/reasonat/test8 | PHP | 353 lines
                    
1<?php
                    
2
                    
170    if (!isset($group)) {
                    
171      $group = empty($groups) ? 1 : max(array_keys($groups)) + 1;
                    
172    }
                    
250   *
                    
251   * Available keys for each table:
                    
252   * - base: The actual base table (i.e. "user" for an author relationship).
                    
259   * @return array
                    
260   *   An array of table information, keyed by table alias.
                    
261   */
                    
                
mysql.php https://gitlab.com/nacridan/Nacridan | PHP | 372 lines
                    
10if (!function_exists('mysql_connect'))
                    
11	exit('This PHP environment doesn\'t have MySQL support built in. MySQL support is required if you want to use a MySQL database to run this forum. Consult the PHP documentation for further assistance.');
                    
12
                    
253		{
                    
254			$field_data['datatype'] = preg_replace(array_keys($this->datatype_transformations), array_values($this->datatype_transformations), $field_data['datatype']);
                    
255
                    
269
                    
270		// If we have a primary key, add it
                    
271		if (isset($schema['PRIMARY KEY']))
                    
271		if (isset($schema['PRIMARY KEY']))
                    
272			$query .= 'PRIMARY KEY ('.implode(',', $schema['PRIMARY KEY']).'),'."\n";
                    
273
                    
276		{
                    
277			foreach ($schema['UNIQUE KEYS'] as $key_name => $key_fields)
                    
278				$query .= 'UNIQUE KEY '.($no_prefix ? '' : $this->prefix).$table_name.'_'.$key_name.'('.implode(',', $key_fields).'),'."\n";
                    
                
Client.php https://bitbucket.org/cryofrost/portal.git | PHP | 489 lines
                    
113     *
                    
114     * @param string $key   A key of the parameter
                    
115     * @param string $value A value of the parameter
                    
124     *
                    
125     * @param string $key     A key of the parameter to get
                    
126     * @param string $default A default value when key is undefined
                    
129     */
                    
130    public function getServerParameter($key, $default = '')
                    
131    {
                    
131    {
                    
132        return (isset($this->server[$key])) ? $this->server[$key] : $default;
                    
133    }
                    
226
                    
227        return $this->request($form->getMethod(), $form->getUri(), $form->getPhpValues(), $form->getPhpFiles());
                    
228    }
                    
                
Config.php https://bitbucket.org/webpolis/liiv.git | PHP | 514 lines
                    
26 */
                    
27require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ResourceTypeConfig.php";
                    
28/**
                    
30 */
                    
31require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ThumbnailsConfig.php";
                    
32/**
                    
34 */
                    
35require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ImagesConfig.php";
                    
36
                    
67     */
                    
68    var $_licenseKey = "";
                    
69    /**
                    
452        if (isset($GLOBALS['config']['LicenseKey'])) {
                    
453            $this->_licenseKey = (string)$GLOBALS['config']['LicenseKey'];
                    
454        }
                    
                
 

Source

Language