100+ results results for 'php key repo:rogers-dwiputra/pa' (1031 ms)
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); 287Feed.php https://github.com/quarkness/piwik.git | PHP | 320 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Feed.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25// require_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)) {ArgvInput.php https://github.com/Exercise/symfony.git | PHP | 313 lines
1<?php 2 187 * 188 * @param string $shortcut The short option key 189 * @param mixed $value The value for the option 204 * 205 * @param string $name The long option key 206 * @param mixed $value The value for the optionclass-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.5jquery.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])) {class-wp-image-editor.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 403 lines
1<?php 2/** 372 $mime_types = wp_get_mime_types(); 373 $extensions = array_keys( $mime_types ); 374AddressBookUpgradeScript.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;";TaggableBehavior.php https://github.com/mmonguilod/sfPropel15TaggableBehaviorPlugin.git | PHP | 304 lines
11 'tagging_table' => '%TABLE%_tagging', 12 'tagging_table_phpname' => '%PHPNAME%Tagging', 13 'tag_table' => 'taggable_tag', 39 $tagTableName = $this->getTagTableName(); 40 $tagTablePhpName = $this->replaceTokens($this->parameters['tag_table_phpname']); 41 46 'name' => $tagTableName, 47 'phpName' => $tagTablePhpName, 48 'package' => $table->getPackage(), 92 'name' => $taggingTableName, 93 'phpName' => $this->replaceTokens($this->parameters['tagging_table_phpname']), 94 'package' => $table->getPackage(), 298 '%TABLE%' => $table->getName(), 299 '%PHPNAME%' => $table->getPhpName(), 300 ));WSClaim.class.php https://github.com/md-tech/openemr.git | PHP | 255 lines
1<?php 2 2 3require_once (dirname(__FILE__) . "/WSWrapper.class.php"); 4include_once (dirname(__FILE__) . "/../sqlconf.php"); 5include_once (dirname(__FILE__) . "/../sql.inc"); 6include_once (dirname(__FILE__) . "/../../includes/config.php"); 7 136 // in OpenEMR. 137 $codekey = $result->fields['code']; 138 if ($result->fields['modifier']) $codekey .= ':' . $result->fields['modifier']; 139 140 $tii['maincode'] = $codekey; 141 $tii['itemtext'] = $result->fields['code_type'] . ":" . 141 $tii['itemtext'] = $result->fields['code_type'] . ":" . 142 $codekey . " " . $result->fields['code_text'] . " " . 143 $result->fields['justify'];json.php https://bitbucket.org/antonyravel/cape-resorts.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;MailboxHeader.php https://bitbucket.org/amitholkar/zenfile-18-05.git | 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;Api_channel_categories.php https://bitbucket.org/mbaily/tremain.git | PHP | 404 lines
133 { 134 $sel = (isset($catarray[$key])) ? TRUE : FALSE; 135 $depth = 1; 136 137 $this->categories[$key] = array($key, $val[1], (int) $val[2], $val[3], $sel, $depth, FALSE, $val[4], $val[5], $val[6]); 138 //$this->categories[$key] = array('cat_id' => $key, 'cat_name' => $val['1'], 'group_id' => $val['2'], 'group_name' => $val['3'], 'selected' => $sel, 'depth' => $depth); 138 //$this->categories[$key] = array('cat_id' => $key, 'cat_name' => $val['1'], 'group_id' => $val['2'], 'group_name' => $val['3'], 'selected' => $sel, 'depth' => $depth); 139 $this->_category_subtree($key, $cat_array, $depth, $selected); 140 } 174 175 foreach ($cat_array as $key => $val) 176 { 180 $this->categories[$key] = array($key, $val['1'], (int) $val['2'], $val['3'], $sel, $depth, (int) $val[0], $val[4], $val[5]); 181 //$this->categories[$key] = array('cat_id' => $key, 'cat_name' => $val['1'], 'group_id' => $val['2'], 'group_name' => $val['3'], 'selected' => $sel, 'depth' => $depth); 182APCCacheMode.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 299 lines
1<?php 2 5 protected $userMode = false; 6 protected $fieldKey; 7 11 $this->userMode = $opts->getValue( 'mode' ) === SpecialAPC::MODE_USER_CACHE; 12 $this->fieldKey = $this->userMode ? 'info' : ( ini_get( 'apc.stat' ) ? 'inode' : 'filename' ); 13 } 35 foreach ( $cache[$list] as $entry ) { 36 if ( md5( $entry[$this->fieldKey] ) !== $object ) continue; 37 38 $size = 0; 39 foreach ( $entry as $key => $value ) { 40 switch ( $key ) { 45 case 'deletion_time': 46 $value = $this->formatValue( $key, $value ); 47 if ( !$value ) {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> 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);developer_generates_method.feature https://gitlab.com/kimting254/wbms | 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 28loader.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 }test.php https://gitlab.com/LisovyiEvhenii/ismextensions | 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>";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 }String.php https://github.com/rgranadino/magento-mirror.git | PHP | 302 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 */ 181 $spaceLen = 0; 182 foreach ($split as $key => $part) { 183 if ($trim) { 183 if ($trim) { 184 // ignore spaces (even keys) 185 if ($key % 2) { 283 /** 284 * Sorts array with multibyte string keys 285 *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;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 }manual.htm https://github.com/philwhln/ajax-upload.git | HTML | 230 lines
49 new AjaxUpload('test1', { 50 action: 'upload-test.php', 51 onComplete: function(file, response){ 64 new AjaxUpload('test1a', { 65 action: 'upload-test.php', 66 name: 'userfile[]', 82 new AjaxUpload('#test2', { 83 action: 'upload-test.php', 84 onComplete: function(file, response){ 99var upload = new AjaxUpload(jQuery('#test4'), { 100 action: 'upload-test.php', 101 name: 'woohoo-custom-name', 102 data: { 103 'key1': "This data won't be sent, we will overwrite it." 104 },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); 105Eav.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)) {quickstart.html.md.erb https://gitlab.com/github-cloud-corporation/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```phpmcu-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 */Preview.php https://github.com/michaelmcandrew/vaw.git | PHP | 235 lines
36 37require_once 'CRM/Core/Form.php'; 38require_once 'CRM/Member/Import/Parser/Membership.php'; 167 foreach ($mapper as $key => $value) { 168 $mapperKeys[$key] = $mapper[$key][0]; 169 170 if (is_numeric($mapper[$key][1])) { 171 $mapperLocType[$key] = $mapper[$key][1]; 172 } else { 172 } else { 173 $mapperLocType[$key] = null; 174 } 176 if (!is_numeric($mapper[$key][2])) { 177 $mapperPhoneType[$key] = $mapper[$key][2]; 178 } else {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 {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). 133properties.cache.php https://bitbucket.org/orchdork10159/dnsman.ly.git | PHP | 89 lines
1<?php return array ( 2 'bottom' => 'Bottom', 44 'prop_tolinks.tagkey_desc' => 'The REQUEST var of the tag value. Used in the links generated for each tag result.', 45 'prop_tolinks.tagkeyvar_desc' => 'The REQUEST var of the tv name. Used in the links generated for each tag result', 46 'grt.tst_beginswith' => 'Begins With', 59 'prop_grt.limit_desc' => 'The result limit per page; can be overridden in the $_REQUEST.', 60 'prop_grt.offset_desc' => 'The offset, or record position to start at within the collection for rendering results for the current page; should be calculated based on page variable set in pageVarKey.', 61 'prop_grt.tvfilters_desc' => 'Delimited-list of TemplateVar values to filter resources by. Supports two delimiters and two value search formats. THe first delimeter || represents a logical OR and the primary grouping mechanism. Within each group you can provide a comma-delimited list of values. These values can be either tied to a specific TemplateVar by name, e.g. myTV==value, or just the value, indicating you are searching for the value in any TemplateVar tied to the Resource. An example would be &tvFilters=`filter2==one,filter1==bar%||filter1==foo`. <br />NOTE: filtering by values uses a LIKE query and % is considered a wildcard. <br />ANOTHER NOTE: This only looks at the raw value set for specific Resource, i. e. there must be a value specifically set for the Resource and it is not evaluated.', 73 'prop_grt.page_desc' => 'The page to display; this is determined based on the value indicated by the page variable set in pageVarKey, typically in the $_REQUEST.', 74 'prop_grt.pagevarkey_desc' => 'The key of a property that indicates the current page.', 75 'prop_grt.totalvar_desc' => 'The key of a placeholder that must contain the total records in the limitable collection being paged.', 78 'prop_grt.elementclass_desc' => 'The class of element that will be called by the getPage snippet instance.', 79 'prop_grt.pagenavvar_desc' => 'The key of a placeholder to be set with the paging navigation controls.', 80 'prop_grt.pagenavtpl_desc' => 'Content representing a single page navigation control.', 86 'prop_grt.tagkey_desc' => 'The key to set the tags filter by.', 87 'prop_grt.tagkeyvar_desc' => 'Optional. Name of the REQUEST param key. If exists in the REQUEST - it overrides tagkey. Setting it to empty - it will disable this override.', 88 'prop_grt.tagrequestparam_desc' => 'The REQUEST param key being sent that will be the value for the tags filter.',loader.js https://bitbucket.org/sevenly/magento-ce.git | 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) 2012 Magento Inc. (http://www.magentocommerce.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 }UndeployedMetaDataImplementation.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 211 lines
1<?php 2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 38 39require_once 'modules/ModuleBuilder/MB/ModuleBuilder.php' ; 40require_once 'modules/ModuleBuilder/parsers/views/AbstractMetaDataImplementation.php' ; 40require_once 'modules/ModuleBuilder/parsers/views/AbstractMetaDataImplementation.php' ; 41require_once 'modules/ModuleBuilder/parsers/views/MetaDataImplementationInterface.php' ; 42require_once 'modules/ModuleBuilder/parsers/views/ListLayoutMetaDataParser.php' ; 42require_once 'modules/ModuleBuilder/parsers/views/ListLayoutMetaDataParser.php' ; 43require_once 'modules/ModuleBuilder/parsers/views/GridLayoutMetaDataParser.php' ; 44require_once 'modules/ModuleBuilder/parsers/constants.php' ; 78 // Set the list of fields associated with this module 79 $fielddefs = array_change_key_case ( $module->mbvardefs->vardefs [ 'fields' ] ) ; 80 91 $varDefsSet = $rel->buildVardefs(); 92 if (!empty($varDefsSet[$module->key_name])) { 93 foreach ($varDefsSet[$module->key_name] as $def) {ClassRegistry.php https://github.com/gustavor/lore.git | PHP | 341 lines
8 * 9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @link http://cakephp.org CakePHP(tm) Project 17 * @package Cake.Utility 180 $_this = ClassRegistry::getInstance(); 181 $key = Inflector::underscore($key); 182 if (!isset($_this->_objects[$key])) { 301 $_this = ClassRegistry::getInstance(); 302 $key = Inflector::underscore($key); 303 $name = Inflector::underscore($name); 321 * 322 * @param string $key Key to find in map 323 * @return string Mapped valueWorkflowTypeInterface.php https://gitlab.com/mohamed_hussein/prodt | 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 *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>viewanswers.php https://github.com/shafiqissani/ASTRA-College-Website.git | PHP | 311 lines
47 48$rs = $CONN->SelectLimit("SELECT attempt_key FROM {$CONFIG['DB_PREFIX']}qt_attempts WHERE module_key='$module_key' AND user_key='{$_SESSION['current_user_key']}' ORDER BY time_finished DESC",1); 49 74$space_key = get_space_key(); 75$link_key = get_link_key($module_key,$space_key); 76 94 $message = urlencode($general_strings['access_denied']); 95 header("Location: {$CONFIG['FULL_URL']}/modules/quiz/quiz.php?space_key=$space_key&module_key=$module_key&message=$message"); 96 exit; 201 202set_common_template_vars($space_key,$module_key,$page_details, $message, $accesslevel_key, $group_accesslevel); 203 221 222$rs = $CONN->Execute("SELECT {$CONFIG['DB_PREFIX']}qt_item.item_key, mattext, rcardinality FROM {$CONFIG['DB_PREFIX']}qt_item, {$CONFIG['DB_PREFIX']}qt_module_item_links WHERE {$CONFIG['DB_PREFIX']}qt_item.item_key={$CONFIG['DB_PREFIX']}qt_module_item_links.item_key AND {$CONFIG['DB_PREFIX']}qt_module_item_links.module_key='$module_key' ORDER BY $sort_order"); 223loader.js https://bitbucket.org/jokusafet/magento2.git | 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) 2012 X.commerce, Inc. (http://www.magentocommerce.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 }TraceableEventDispatcherTest.php https://bitbucket.org/larryg/powerhut.git | PHP | 241 lines
1<?php 2 25 26class TraceableEventDispatcherTest extends \PHPUnit_Framework_TestCase 27{ 184 'kernel.terminate.loading', 185 ), array_keys($events)); 186 }LocalyticsSession.h https://github.com/emersonbroga/Gorillas.git | C Header | 201 lines
20 <ul> 21 <li><a href="http://wiki.localytics.com/index.php?title=Developer's_Integration_Guide">Main Developer's Integration Guide</a></li> 22 </ul> 35 <li>Do not use multiple LocalticsSession objects to upload data with 36 multiple application keys. This can cause invalid state.</li> 37 </ul> 51 NSString *_sessionUUID; // Unique identifier for this session. 52 NSString *_applicationKey; // Unique identifier for the instrumented application 53 NSTimeInterval _lastSessionStartTimestamp; // The start time of the most recent session. 84 @abstract Initializes the Localytics Object. Not necessary if you choose to use startSession. 85 @param applicationKey The key unique for each application generated at www.localytics.com 86 */ 94 It is recommended that this call be placed in <code>applicationDidFinishLaunching</code>. 95 @param applicationKey The key unique for each application generated 96 at www.localytics.comhtml.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; 302loan_list.php https://github.com/awriel/s3st15_matoa.git | PHP | 205 lines
1<?php 2/** 22 23// key to authenticate 24if (!defined('INDEX_AUTH')) { 29// main system configuration 30require '../../../sysconfig.inc.php'; 31// IP based access limitation 31// IP based access limitation 32require LIB_DIR.'ip_based_access.inc.php'; 33do_checkIP('smc'); 35// start the session 36require SENAYAN_BASE_DIR.'admin/default/session.inc.php'; 37require SENAYAN_BASE_DIR.'admin/default/session_check.inc.php'; 40 41require SIMBIO_BASE_DIR.'simbio_GUI/form_maker/simbio_form_table_AJAX.inc.php'; 42require SIMBIO_BASE_DIR.'simbio_GUI/table/simbio_table.inc.php';PackageCreator.php https://bitbucket.org/helfreire/tccsite.git | 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 }dbo_odbc.php https://github.com/radig/datasources.git | PHP | 379 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package datasources 16 * @subpackage datasources.models.datasources.dbo 17 * @since CakePHP Datasources v 0.1 18 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 73 74 // var $columns = array('primary_key' => array('name' => 'int(11) DEFAULT NULL auto_increment'), 75 // 'string' => array('name' => 'varchar', 'limit' => '255'),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'; 344Font.php https://bitbucket.org/kudutest1/moodlegit.git | 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 }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)) {EditView.php https://bitbucket.org/jhunsinfotech/blue-blues.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&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&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"/>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);RssHelper.php https://bitbucket.org/ManiAdil/jardinorient.git | PHP | 354 lines
6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package Cake.View.Helper 197 198 foreach ($elements as $key => $val) { 199 $attrib = array(); 218 } 219 $categories[] = $this->elem($key, $attrib, $category); 220 } 264 } 265 $elements[$key] = $this->elem($key, $attrib, $val); 266 }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))); 292GeneralItemCollection.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 */Feed.php https://bitbucket.org/haichau59/manga.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 */ 25//require_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)) {Console.php https://bitbucket.org/haichau59/manga.git | PHP | 312 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Console.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 25 */ 26//require_once 'Zend/Tool/Framework/Client/Abstract.php'; 27 30 */ 31//require_once 'Zend/Tool/Framework/Client/Interactive/InputInterface.php'; 32 35 */ 36//require_once 'Zend/Tool/Framework/Client/Interactive/OutputInterface.php'; 37 79 /** 80 * main() - This is typically called from zf.php. This method is a 81 * self contained main() function.CollectionPersister.php https://bitbucket.org/paulscott56/c4-framework.git | PHP | 247 lines
1<?php 2/* 36 * 37 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 38 * @link www.doctrine-project.com 127 $query = array($this->cmd.'unset' => array()); 128 foreach ($deleteDiff as $key => $document) { 129 $query[$this->cmd.'unset'][$propertyPath.'.'.$key] = true; 134 * @todo This is a hack right now because we don't have a proper way to remove 135 * an element from an array by its key. Unsetting the key results in the element 136 * being left in the array as null so we have to pull null values. 159 $setData = array(); 160 foreach ($coll as $key => $document) { 161 if (isset($mapping['reference'])) { 161 if (isset($mapping['reference'])) { 162 $setData[$key] = $this->pb->prepareReferencedDocumentValue($mapping, $document); 163 } else {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);prognose.php https://github.com/srahn/kvwmap.git | PHP | 299 lines
1<?php 2class prognose { 100 } 101 if (strpos($filename, 'admin_key_lnog') !== false) { 102 echo 'Bereite Steuerungsdatei mit Verschlüsselungen: ' . $filename . ' für Import auf.<br>'; 116 sed -i 's|LOCK TABLES|--LOCK TABLES|g' " . $filename . " 117 sed -i 's|admin_key_lnog|mvbevoelkerung.admin_key_lnog|g' " . $filename . " 118 ");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> 215pyodbc.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 urldecodedStore.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(); 479PlatformJobQueue.php https://github.com/Exercise/zf2.git | PHP | 318 lines
1<?php 2/** 72 73 if (!array_key_exists('host', $options)) { 74 throw new Queue\Exception('Platform Job Queue host should be provided'); 75 } 76 if (!array_key_exists('password', $options)) { 77 throw new Queue\Exception('Platform Job Queue password should be provided'); 187 188 // Unfortunately, the Platform JQ API is PHP4-style... 189 $platformJob = $zendApiJob->getJob();Encoder.php https://github.com/Exercise/zf2.git | PHP | 309 lines
267 } 268 $output .= $attribute . PHP_EOL; 269 } 269 } 270 return trim($output, PHP_EOL); 271 } 283 $string = ''; 284 $attributes = array_change_key_case($attributes, CASE_LOWER); 285 if (!$this->_versionWritten && array_key_exists('dn', $attributes) && isset($this->_options['version']) 285 if (!$this->_versionWritten && array_key_exists('dn', $attributes) && isset($this->_options['version']) 286 && array_key_exists('objectclass', $attributes)) { 287 $string .= sprintf('version: %d', $this->_options['version']) . PHP_EOL; 304 foreach ($attributes as $key => $value) { 305 $string .= $this->_encodeAttribute($key, $value) . PHP_EOL; 306 }Loader.php https://github.com/Exercise/zf2.git | PHP | 277 lines
39 /** 40 * Loads a class from a PHP file. The filename must be formatted 41 * as "$class.php". 69 // Autodiscover the path from the class name 70 // Implementation is PHP namespace-aware, and based on 71 // Framework Interop Group reference implementation: 90 } 91 foreach ($dirs as $key => $dir) { 92 if ($dir == '.') { 110 /** 111 * Loads a PHP file. This is a wrapper for PHP's include() function. 112 * 169 * Returns TRUE if the $filename is readable, or FALSE otherwise. 170 * This function uses the PHP include_path, where PHP's is_readable() 171 * does not.Xlsx.php https://github.com/gryzz/crystal_magento.git | PHP | 262 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Xlsx.php 19035 2009-11-19 14:34:11Z alexander $ 21 */ 24/** Zend_Search_Lucene_Document_OpenXml */ 25#require_once 'Zend/Search/Lucene/Document/OpenXml.php'; 26 96 if ($relationsXml === false) { 97 #require_once 'Zend/Search/Lucene/Exception.php'; 98 throw new Zend_Search_Lucene_Exception('Invalid archive or corrupted .xlsx file.'); 137 // Extract contents from worksheets 138 foreach ($worksheets as $sheetKey => $worksheet) { 139 foreach ($worksheet->sheetData->row as $row) { 216 // Store meta data properties 217 foreach ($coreProperties as $key => $value) 218 {adframe.class.php https://bitbucket.org/valmy/openx.git | PHP | 228 lines
1<?php 2 34 35require_once LIB_PATH . '/Extension/invocationTags/InvocationTags.php'; 36require_once MAX_PATH . '/lib/max/Plugin/Translation.php'; 57 * Return the English name of the plugin. Used when 58 * generating translation keys based on the plugin 59 * name. 75 $isAllowed = parent::isAllowed($extra); 76 if ((is_array($extra) && $extra['delivery'] == phpAds_ZoneText)) { 77 return false;dbo_odbc.php https://github.com/jasoneh/SMS-Can-.git | PHP | 379 lines
1<?php 2/* SVN FILE: $Id$ */ 8 * 9 * PHP versions 4 and 5 10 * 10 * 11 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) 12 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 18 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 19 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 20 * @package cake 21 * @subpackage cake.cake.libs.model.dbo 22 * @since CakePHP(tm) v 0.10.5.1790 23 * @version $Revision$ 25 * @lastmodified $Date$ 26 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 27 */RedisTest.php https://bitbucket.org/saifshuvo/zf2.git | PHP | 264 lines
77 { 78 $key = 'singleKey'; 79 //assure that there's nothing under key 111 { 112 $key = 'key'; 113 $this->assertTrue($this->_storage->setItem($key, 123)); 118 { 119 $key = 'key'; 120 $this->assertTrue($this->_storage->setItem($key, 123.12)); 125 { 126 $key = 'key'; 127 $this->assertTrue($this->_storage->setItem($key, null)); 132 { 133 $key = 'key'; 134 $this->assertTrue($this->_storage->setItem($key, true));index.php https://github.com/WeMake-IT/Hosting-Service.git | PHP | 170 lines
70<div id="page"> 71<div id="stats"><span class="white">Welcome to</span><span class="orange"> Clanname / </span><span class="grey">Gaming since 2009</span><span class="grey" style="padding-left:250px; padding-right:29px;">Pageviews</span><?php include("counter.php"); ?></div> 72<!--END STATS--> 138 <h3>Login</h3> 139 <div id="loginbg"><?php include("login.php"); ?></div> 140 <h3>Topmatch</h3> 140 <h3>Topmatch</h3> 141 <div id="topmatchbg"><?php include("sc_topmatch.php"); ?></div> 142 <h3><?php $_language->read_module('navigation'); echo $_language->module['polls']; ?></h3> 143 <div class="righttop"></div> 144 <div class="rightbg"><?php include("poll.php"); ?></div> 145 <div class="rightbottom"></div> 151<!-- CC - Attribution-Share Alike 3.0 Unported - Do not remove links here! --> 152<div id="footer"><span class="white" style="float:left;">Design © by <a class="orangewh" href="http://www.pixelkoenig.deviantart.com">Pixelkönig</a> - Adaption by <a class="orangewh" href="http://www.templates4all.de">Templates4all.de</a></span> <span style="float:right; padding-right:21px; text-transform:uppercase;"><a class="whiteor" href="#">Top</a> <a class="whiteor" href="index.php?site=impressum"><?php $_language->read_module('navigation'); echo $_language->module['imprint']; ?></a> <a class="whiteor" href="index.php?site=challenge"><?php $_language->read_module('navigation'); echo $_language->module['fight_us']; ?></a> <a class="whiteor" href="index.php?site=faq"><?php $_language->read_module('navigation'); echo $_language->module['faq']; ?></a></span><br style="clear:both;" /></div> 153<!-- RESPECT THE WORK FROM THE DESIGNER -->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% {details.php https://github.com/coderm/pyrocms.git | PHP | 206 lines
1<?php defined('BASEPATH') or exit('No direct script access allowed'); 2 66 CREATE TABLE `page_layouts` ( 67 `id` INT( 5 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , 68 `title` VARCHAR( 60 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL , 88 `meta_title` varchar(255) collate utf8_unicode_ci NOT NULL default '', 89 `meta_keywords` varchar(255) collate utf8_unicode_ci NOT NULL default '', 90 `meta_description` text collate utf8_unicode_ci, 98 `order` INT(11) NOT NULL default '0', 99 PRIMARY KEY (`id`), 100 UNIQUE KEY `Unique` (`slug`,`parent_id`), 100 UNIQUE KEY `Unique` (`slug`,`parent_id`), 101 KEY `slug` (`slug`), 102 KEY `parent` (`parent_id`) 113 `author_id` int(11) NOT NULL default 0, 114 PRIMARY KEY (`id`), 115 KEY `Owner ID` (`owner_id`)StorageServiceSettings.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 485 lines
18 * @package WindowsAzure\Common\Internal 19 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 20 * @copyright 2012 Microsoft Corporation 35 * @package WindowsAzure\Common\Internal 36 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 37 * @copyright 2012 Microsoft Corporation 185 throw new \RuntimeException( 186 sprintf(Resources::INVALID_ACCOUNT_KEY_FORMAT, $key) 187 ); 220 * @param string $name The storage service name. 221 * @param string $key The storage service key. 222 * @param string $blobEndpointUri The sotrage service blob endpoint. 233 $this->_name = $name; 234 $this->_key = $key; 235 $this->_blobEndpointUri = $blobEndpointUri;Data.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 302 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 130 /** 131 * Generate random string for consumer key 132 * 134 */ 135 public function generateConsumerKey() 136 { 136 { 137 return $this->_generateRandomString(Mage_Oauth_Model_Consumer::KEY_LENGTH); 138 }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[]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```MaildirFolderTest.php https://github.com/sidealice/zf2.git | PHP | 444 lines
1<?php 2/** 36 */ 37class MaildirFolderTest extends \PHPUnit_Framework_TestCase 38{ 203 try { 204 // explicit call of __toString() needed for PHP < 5.2 205 $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder'); 214 try { 215 $this->assertEquals($mail->getFolders()->subfolder->key(), 'test'); 216 } catch (\Exception $e) { 235 236 // explicit call of __toString() needed for PHP < 5.2 237 $found_folders[$folder->__toString()] = $localName; 242 243 public function testKeyLocalName() 244 {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 {elementindex.html https://github.com/eXeDK/VirusTotal-API-PHP-class.git | HTML | 243 lines
70 <dd class="index-item-body"> 71 <div class="index-item-details"><a href="default/VirusTotal.html#constFILE">VirusTotal::FILE</a> in VirusTotal.php</div> 72 </dd> 84 <dd class="index-item-body"> 85 <div class="index-item-details"><a href="default/VirusTotal.html#methodgetApiKey">VirusTotal::getApiKey()</a> in VirusTotal.php</div> 86 <div class="index-item-description">Getter for the API-key</div> 155 <dd class="index-item-body"> 156 <div class="index-item-details"><a href="default/VirusTotal.html#methodscanURL">VirusTotal::scanURL()</a> in VirusTotal.php</div> 157 <div class="index-item-description">Retrieve a URL scan report</div> 162 <dd class="index-item-body"> 163 <div class="index-item-details"><a href="default/VirusTotal.html#methodsetApiKey">VirusTotal::setApiKey()</a> in VirusTotal.php</div> 164 <div class="index-item-description">Setter for the API-key</div> 211 <dd class="index-item-body"> 212 <div class="index-item-details"><a href="default/_VirusTotal.php.html">VirusTotal.php</a> in VirusTotal.php</div> 213 </dd>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 */ 161App.php https://github.com/balupton/balphp.git | PHP | 387 lines
1<?php 2class Bal_Controller_Action_Helper_App extends Bal_Controller_Action_Helper_Abstract { 65 if ( !empty($NavDataOver) ) { 66 $NavData = array_merge_recursive_keys($NavData, $NavDataOver); 67 } 71 $View->Navigation = array(); 72 foreach ( $NavData as $key => $value ) { 73 $code = $Menu = null; 75 foreach ( $value as $_key => $_value ) { 76 $code = $key.'.'.$_key; 77 $Menu = new Zend_Navigation($_value); 81 else { 82 $code = $key; 83 $Menu = new Zend_Navigation($value);ContributionPage.php https://github.com/michaelmcandrew/vaw.git | PHP | 354 lines
38require_once 'CRM/Core/PseudoConstant.php'; 39require_once 'CRM/Contribute/PseudoConstant.php'; 40 115 // set up tabs 116 require_once 'CRM/Contribute/Form/ContributionPage/TabHeader.php'; 117 CRM_Contribute_Form_ContributionPage_TabHeader::build( $this ); 235 foreach ( $pledgeBlock as $key ) { 236 $defaults[$key] = CRM_Utils_Array::value( $key, $pledgeBlockDefaults ); 237 } 237 } 238 require_once 'CRM/Core/BAO/CustomOption.php'; 239 if ( CRM_Utils_Array::value( 'pledge_frequency_unit', $pledgeBlockDefaults ) ) { 240 $defaults['pledge_frequency_unit'] = 241 array_fill_keys( explode( CRM_Core_DAO::VALUE_SEPARATOR, 242 $pledgeBlockDefaults['pledge_frequency_unit'] ), '1' );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();Migration.php https://github.com/deanhowe/CodeIgniter.git | PHP | 391 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.2.4 or newer 6 * 97 98 foreach ($config as $key => $val) 99 { 99 { 100 $this->{'_'.$key} = $val; 101 } 125 { 126 show_error('Migrations configuration file (migration.php) must have "migration_table" set.'); 127 } 183 { 184 $f = glob(sprintf($this->_migration_path.'%03d_*.php', $i)); 185table_torch.php https://github.com/splitfeed/Table-Torch.git | PHP | 374 lines
169 if( isset( $_POST[ $key ] )){ 170 $this->url_vals[ $key ] = $_POST[ $key ]; 171 } 198 $d = $data; 199 $d[ PRIMARY_KEY ] = $_POST[ PRIMARY_KEY ]; 200 $data = $this->CI->before_update( TORCH_TABLE, $d ); 276 'table'=>TORCH_TABLE, 277 'key'=>$row[ PRIMARY_KEY ] ), FALSE ), 278 285 'table'=>TORCH_TABLE, 286 'key'=>$row[ PRIMARY_KEY ]), FALSE ), 287 'Delete', array( 'onclick'=>"return confirm('$confirm')", 'class'=>'actionLink' ) ); 294 if( !empty( $prefs[ 'formats' ][ $key ])) { 295 $value = $prefs[ 'formats' ][ $key ]( $value, $key, TORCH_TABLE ); 296Deal.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 461 lines
1<?php 2/* 21{ 22 protected $collection_key = 'targetingCriterion'; 23 /**