100+ results results for 'php split repo:izubizarreta/https-bitbucket.org-bityvip-alpes' (2160 ms)
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 121 122 // Split the keys by delimiter 123 $keys = explode($delimiter, $path); 209 210 // Split the keys by delimiter 211 $keys = explode($delimiter, $path); 351 /** 352 * Recursive version of [array_map](http://php.net/array_map), applies one or more 353 * callbacks to all elements in an array, including sub-arrays. 403 * Merges one or more arrays recursively and preserves all keys. 404 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)! 405 * 539 // param,param 540 $params = preg_split('/(?<!\\\\),/', $match[2]); 541 $params = str_replace('\,', ',', $params);schema.php https://gitlab.com/alexprowars/bitrix | PHP | 414 lines
1<?php 2namespace Bitrix\Perfmon\Sql; 8\Bitrix\Main\Loader::includeModule('perfmon'); 9$dir = new \Bitrix\Main\IO\Directory("/opt/php03.cp1251.www/mercurial/bitrix/modules"); 10foreach ($dir->getChildren() as $child) 53 * @param string $str DDL text. 54 * @param string $delimiter How to split DDL into statements. 55 * 61 $tokenizer = Tokenizer::createFromString($str); 62 foreach ($this->splitStatements($tokenizer, $delimiter) as $statement) 63 { 68 /** 69 * Splits tokens array into bunch of individual DDL statements. 70 * 71 * @param Tokenizer $tokenizer Tokens container. 72 * @param string $delimiter How to split DDL into statements. 73 *rpcconsole.cpp https://gitlab.com/Quetzalcoatl/VekitaCoin | C++ | 433 lines
2// Distributed under the MIT/X11 software license, see the accompanying 3// file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 55/** 56 * Split shell command line into a list of arguments. Aims to emulate \c bash and friends. 57 * 66 * @param[out] args Parsed arguments will be appended to this list 67 * @param[in] strCommand Command line to split 68 */Statement.php https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess | PHP | 488 lines
1<?php 2/** 83 /** 84 * SQL string split into an array at placeholders. 85 * 87 */ 88 protected $_sqlSplit = array(); 89 90 /** 91 * Parameter placeholders in the SQL string by position in the split array. 92 * 139 // split into text and params 140 $this->_sqlSplit = preg_split('/(\?|\:[a-zA-Z0-9_]+)/', 141 $sql, -1, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY); 150 */ 151 #require_once 'Zend/Db/Statement/Exception.php'; 152 throw new Zend_Db_Statement_Exception("Invalid bind-variable position '$val'");toolbar.php https://gitlab.com/michield/dokuwiki | PHP | 255 lines
1<?php 2/** 5 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 6 * @author Andreas Gohr <andi@splitbrain.org> 7 */ 15 * @param string $varname Name of the JS variable to fill 16 * @author Andreas Gohr <andi@splitbrain.org> 17 */ 198 'icon' => 'image.png', 199 'url' => 'lib/exe/mediamanager.php?ns=', 200 'name' => 'mediaselect', 238 * 239 * @author Andreas Gohr <andi@splitbrain.org> 240 */js.js https://gitlab.com/edward.pattillo/phpCourse | JavaScript | 363 lines
133 $('#' + trackId).fadeOut(100); 134 var temp = trackId.split("-"); 135 var numericID = parseInt(temp[1]); 240 // specifices where the AJAX request will be sent to on the server 241 url: "ajaxSubmit.php", 242 275 // .fail defines what will happen when the ajax request fails and doesn't return a JSON object 276 // we will have it present the error message returned from PHP at the top of the page 277 .fail(function(returnData) { 290 // specifices where the AJAX request will be sent to on the server 291 url: "ajax.php", 292 326 // .fail defines what will happen when the ajax request fails and doesn't return a JSON object 327 // we will have it present the error message returned from PHP at the top of the page 328 .fail(function(returnData) {BakeShell.php https://gitlab.com/ViniciusP/project-games | PHP | 317 lines
1<?php 2/** 2/** 3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://cakephp.org CakePHP(tm) Project 12 * @since 0.1.0 12 * @since 0.1.0 13 * @license http://www.opensource.org/licenses/mit-license.php MIT License 14 */ 27 * 28 * Bake is CakePHP's code generation script, which can help you kickstart 29 * application development by writing fully functional skeleton controllers, 31 * 32 * @link http://book.cakephp.org/3.0/en/console-and-shells/code-generation-with-bake.html 33 */PhpTransliteration.php https://gitlab.com/geeta7/drupal | PHP | 288 lines
24 * transliteration character tables are searched (see 25 * PhpTransliteration::readGenericData()). If looking up the character in the 26 * generic table results in a NULL value, or an illegal character is 59 * character code. This is set up as needed in PhpTransliteration::replace() 60 * by calling PhpTransliteration::readGenericData(). 61 * 70 * (optional) The directory where data files reside. If omitted, defaults 71 * to subdirectory 'data' underneath the directory where the class's PHP 72 * file resides. 83 84 foreach (preg_split('//u', $string, 0, PREG_SPLIT_NO_EMPTY) as $character) { 85 $code = self::ordUTF8($character); 115 // Split into Unicode characters and transliterate each one. 116 foreach (preg_split('//u', $string, 0, PREG_SPLIT_NO_EMPTY) as $character) { 117 $code = self::ordUTF8($character);makeXMLForOneService.php https://gitlab.com/florianocomercial/centreon | PHP | 287 lines
1<?php 2/* 38 */ 39require_once realpath(dirname(__FILE__) . "/../../../../../../config/centreon.config.php"); 40 40 41include_once $centreon_path . "www/class/centreonUtils.class.php"; 42 45 */ 46include_once _CENTREON_PATH_ . "www/class/centreonXMLBGRequest.class.php"; 47include_once _CENTREON_PATH_ . "www/class/centreonLang.class.php"; 84 85$tab = preg_split('/\_/', $svc_id); 86$host_id = $tab[0]; 132if ($data = $DBRESULT->fetchRow()) { 133 /* Split the plugin_output */ 134 $outputLines = explode('\n', $data['output']);string.rst https://gitlab.com/albertkeba/docs | ReStructuredText | 300 lines
42 43.. php:staticmethod:: tokenize($data, $separator = ',', $leftBound = '(', $rightBound = ')') 44 50 51 $data = "cakephp 'great framework' php"; 52 $result = String::tokenize($data, ' ', "'", "'"); 53 // result contains 54 array('cakephp', "'great framework'", 'php'); 55 55 56.. php:staticmethod:: insert($string, $data, $options = array()) 57 63 64.. php:staticmethod:: cleanInsert($string, $options = array()) 65functions.inc.php https://gitlab.com/boxnia/NFU_MOVIL | PHP | 346 lines
1<?php 2 162function valida_dates($start_day, $daylight) { 163 // list($mes_one, $dia_one, $anio_one) = split('/', $start_day); 164 //list($mes_two, $dia_two, $anio_two)= split('/', $daylight);cdat_domain.py https://gitlab.com/rbax81/VisTrails | Python | 289 lines
12## Licensing requirements will be met: 13## http://www.opensource.org/licenses/gpl-license.php 14## 48 self._actions = actions 49 (self._namespace, self._name) = self.split(codepath) 50 51 @staticmethod 52 def split(codepath): 53 dot = codepath.rfind('.') 74 for t in CDATModule._extra_modules: 75 namespace,name = CDATModule.split(t) 76 lines.append("%s = new_module(Module,'%s')\n"%(name,name)) 224 self._doc = doc 225 self._instance = [i.strip(" \t\n") for i in instance.split('/')] 226 self._valid_instances = []class-wp-customize-setting.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 439 lines
1<?php 2/** 46 // Parse the ID for array keys. 47 $this->id_data[ 'keys' ] = preg_split( '/\[/', str_replace( ']', '', $this->id ) ); 48 $this->id_data[ 'base' ] = array_shift( $this->id_data[ 'keys' ] );CookieJar.php https://gitlab.com/tybantarnusa/pmb-2016 | PHP | 385 lines
21 * 22 * @file CAS/CookieJar.php 23 * @category Authentication 23 * @category Authentication 24 * @package PhpCAS 25 * @author Adam Franco <afranco@middlebury.edu> 26 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 27 * @link https://wiki.jasig.org/display/CASC/phpCAS 28 */ 38 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 39 * @link https://wiki.jasig.org/display/CASC/phpCAS 40 */ 127 * Parse Cookies without PECL 128 * From the comments in http://php.net/manual/en/function.http-parse-cookie.php 129 *qrsplit.php https://gitlab.com/Ltaimao/wecenter | PHP | 311 lines
9 * 10 * PHP QR Code is distributed under LGPL 3 11 * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm> 32 */ 33 class QRsplit { 34 168 169 $ret = $this->input->append(QR_MODE_AN, $run, str_split($this->dataStr)); 170 if($ret < 0) 303 304 $split = new QRsplit($string, $input, $modeHint); 305 308 309 return $split->splitString(); 310 }index.py https://gitlab.com/xiaok/SaltAdmin | Python | 237 lines
23def decryptUID(uStr): 24 return int(uStr.split('a')[1]) 25 62 Location = 'Localhost' 63 ip = LoginHost.split('.') 64 if ip[0]+ip[1] in ['17216','192168','1270'] or ip[0] == '10': 67 # 这里要从公网去解析 68 url = "http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip=" + LoginHost 69 response = urllib2.urlopen(url)paypal-return-in-web-accept-sp.inc.php https://gitlab.com/Gashler/sg | PHP | 148 lines
1<?php 2/** 58 59 list (, $paypal['sp_ids'], $paypal['hours']) = preg_split('/\:/', $paypal['item_number'], 3); 60 75 76 if($processing && ($code = $GLOBALS['WS_PLUGIN__']['s2member']['o']['sp_tracking_codes']) && is_array($cv = preg_split('/\|/', $paypal['custom']))) 77 {emogrifier.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 228 lines
1<?php defined('_JEXEC') or die('Restricted access'); ?> 2<?php 17 2009-11-04 Explicitly declared static functions static to get rid of E_STRICT notices. 18 2010-05-18 Fixed bug where full url filenames with protocols wouldn't get split improperly when we explode on ':'... Thanks Mark! 19 Added two new attribute selectors 20 2010-06-16 Added static caching for less processing overhead in situations where multiple emogrification takes place 21 2010-07-26 Fixed bug where '0' values were getting discarded because of php's empty() function... Thanks Scott! 22 2010-09-03 Added checks to invisible node removal to ensure that we don't try to remove non-existent child nodes of parents that have already been deleted 95 96 // else split by commas and duplicate attributes so we can sort by selector precedence 97 $selectors = explode(',',$selectorString);ScopeIndentSniff.php https://gitlab.com/michield/dokuwiki | PHP | 319 lines
9 * @package PHP_CodeSniffer 10 * @author Andreas Gohr <andi@splitbrain.org> 11 * @author Greg Sherwood <gsherwood@squiz.net> 15 * @version CVS: $Id: ScopeIndentSniff.php 270281 2008-12-02 02:38:34Z squiz $ 16 * @link http://pear.php.net/package/PHP_CodeSniffer 17 */ 31 * @version Release: 1.2.0 32 * @link http://pear.php.net/package/PHP_CodeSniffer 33 */ 76 * 77 * @param PHP_CodeSniffer_File $phpcsFile All the tokens found in the document. 78 * @param int $stackPtr The position of the current token 82 */ 83 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 84 {c.py https://gitlab.com/envieidoc/Clover | Python | 387 lines
145 if FuncDeclPattern.match(var.Declarator): 146 DeclSplitList = var.Declarator.split('(') 147 FuncName = DeclSplitList[0] 147 FuncName = DeclSplitList[0] 148 FuncNamePartList = FuncName.split() 149 if len(FuncNamePartList) > 1: 245 ParamIdList = [] 246 DeclSplitList = FuncDeclarator.split('(') 247 if len(DeclSplitList) < 2: 249 FuncName = DeclSplitList[0] 250 ParamStr = DeclSplitList[1].rstrip(')') 251 LineSkipped = 0 318 FuncDef.Declarator = FuncDef.Declarator.lstrip('*') 319 DeclSplitList = FuncDef.Declarator.split('(') 320 if len(DeclSplitList) < 2:style.css https://gitlab.com/github-cloud-corp/aws-sdk-php | CSS | 672 lines
355 356/* Splitter 357 -------------------------------------*/ 357 -------------------------------------*/ 358#splitter { 359 position: fixed; 366 367#splitter.active { 368 opacity: .5; 438 439.php-keyword1 { 440 color: #468847; 490 491span.l .php-var a:hover, span.l .php-var a:active, span.l .php-var a:focus { 492 color: #c09853 !important;bench_internal.c https://gitlab.com/vectorci/rippled | C | 318 lines
3 * Distributed under the MIT software license, see the accompanying * 4 * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 **********************************************************************/ 92#ifdef USE_ENDOMORPHISM 93void bench_scalar_split(void* arg) { 94 int i; 98 secp256k1_scalar_t l, r; 99 secp256k1_scalar_split_lambda_var(&l, &r, &data->scalar_x); 100 secp256k1_scalar_add(&data->scalar_x, &data->scalar_x, &data->scalar_y); 293#ifdef USE_ENDOMORPHISM 294 if (have_flag(argc, argv, "scalar") || have_flag(argc, argv, "split")) run_benchmark("scalar_split", bench_scalar_split, bench_setup, NULL, &data, 10, 20000); 295#endifjquery.serializejson.js https://gitlab.com/Mirros/cdnjs | JavaScript | 193 lines
6 Copyright (c) 2014 Mario Izquierdo 7 Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 8 and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. 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 79 80 // Split the input name in programatically readable keys 81 // "foo" => ['foo'] 85 // "arr[][val]" => ['arr', '', 'val'] 86 splitInputNameIntoKeysArray: function (name) { 87 var keys, last, f; 89 if (f.isUndefined(name)) { throw new Error("ArgumentError: param 'name' expected to be a string, found undefined"); } 90 keys = $.map(name.split('['), function (key) { 91 last = key[key.length - 1];index.php git://git.savannah.nongnu.org/savane-cleanup.git | PHP | 363 lines
1<?php 2# Manage user preferences 22 23# we need to define the theme before loading the pre.php init script, 24# otherwise the page needs to be reloaded for the change to take effect. 25# see bug #1987 26require_once('../../include/sane.php'); 27extract(sane_import('post', 40 41require_once('../../include/init.php'); 42require_once('../../include/timezones.php'); 139 140print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">'; 141 146 147print "\n".html_splitpage(1); 148AbstractPaginator.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 487 lines
1<?php 2 271 /** 272 * Determine if there are enough items to split into multiple pages. 273 *social.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 452 lines
50 51 // comments.php 52 if ($('#social').length) { 98 if (prevLink !== null) { 99 var _prevLink = prevLink.split('#comments'); 100 if (_prevLink.indexOf('?') == -1) { 109 if (nextLink !== null) { 110 var _nextLink = nextLink.split('#comments'); 111 if (_nextLink.indexOf('?') == -1) { 220 if (content.substr(0, 1) == '@') { 221 username = content.split(' ')[0].substr(1); 222 } 230 var $author = $parent.find('.social-comment-author a'), 231 author_rel = $author.attr('rel').split(' '); 232 $('#in_reply_to_status_id').val(author_rel[0]);Phrase.php https://gitlab.com/Ltaimao/wecenter | PHP | 270 lines
1<?php 2/** 24/** Zend_Search_Lucene_Search_Query_Processing */ 25//require_once 'Zend/Search/Lucene/Search/Query/Preprocessing.php'; 26 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.'); 131 132 // Split query into subqueries if field name is not specified 133 if ($this->_field === null) { 133 if ($this->_field === null) { 134 //require_once 'Zend/Search/Lucene/Search/Query/Boolean.php'; 135 $query = new Zend_Search_Lucene_Search_Query_Boolean(); 137 138 //require_once 'Zend/Search/Lucene.php'; 139 if (Zend_Search_Lucene::getDefaultSearchField() === null) {bookmark-template.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 256 lines
1<?php 2/** 218 if ( $categorize ) { 219 //Split the bookmarks into ul's for each category 220 $cats = get_terms('link_category', array('name__like' => $category_name, 'include' => $category, 'exclude' => $exclude_category, 'orderby' => $category_orderby, 'order' => $category_order, 'hierarchical' => 0));AutoParagraphTest.php https://gitlab.com/Griffolion/Game-Embargo-Tracker | PHP | 577 lines
1<?php 2 220 221 public function testSplitUpInternalsOfPTagInBlockNode() 222 { 232 233 public function testSplitUpInlineNodesInPTagInBlockNode() 234 {CakeTestFixture.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 328 lines
1<?php 2/** 2/** 3 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests 12 * @package Cake.TestSuite.Fixture 12 * @package Cake.TestSuite.Fixture 13 * @since CakePHP(tm) v 1.2.0.4667 14 * @license http://www.opensource.org/licenses/mit-license.php MIT License 34/** 35 * CakePHP's DBO driver (e.g: DboMysql). 36 * 137 if (isset($import['model'])) { 138 list($plugin, $modelClass) = pluginSplit($import['model'], true); 139 App::uses($modelClass, $plugin . 'Model');XmlFileLoader.php https://gitlab.com/fiesta-framework/Documentation | PHP | 256 lines
1<?php 2 128 129 $schemes = preg_split('/[\s,\|]++/', $node->getAttribute('schemes'), -1, PREG_SPLIT_NO_EMPTY); 130 $methods = preg_split('/[\s,\|]++/', $node->getAttribute('methods'), -1, PREG_SPLIT_NO_EMPTY); 156 $host = $node->hasAttribute('host') ? $node->getAttribute('host') : null; 157 $schemes = $node->hasAttribute('schemes') ? preg_split('/[\s,\|]++/', $node->getAttribute('schemes'), -1, PREG_SPLIT_NO_EMPTY) : null; 158 $methods = $node->hasAttribute('methods') ? preg_split('/[\s,\|]++/', $node->getAttribute('methods'), -1, PREG_SPLIT_NO_EMPTY) : null;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 } 69 70 return '<link href="'.$url.'"'.static::attributes($attributes).'>'.PHP_EOL; 71 } 320 321 foreach (str_split($value) as $letter) 322 {ko.js http://avblog.googlecode.com/svn/trunk/ | JavaScript | 502 lines
5 * Licensed under the terms of the GNU Lesser General Public License: 6 * http://www.opensource.org/licenses/lgpl-license.php 7 * 115MergeCells : "? ???", 116SplitCell : "? ???", 117TableDelete : "Delete Table", //MISSINGinputfilter.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 551 lines
1<?php 2/** 2/** 3 * @class: InputFilter (PHP4 & PHP5, with comments) 4 * @project: PHP Input Filter 5 * @date: 10-05-2005 6 * @version: 1.2.2_php4/php5 7 * @author: Daniel Morris 58 /** 59 * Method to be called by another php script. Processes for XSS and 60 * specified bad code. 354 /* 355 * Split into name/value pairs 356 */ 462 /** 463 * Method to be called by another php script. Processes for SQL injection 464 *Entity.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 354 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 */ 106 if (strpos($k, $key . '/') === 0) { 107 $split = explode('/', $k); 108 $filters[$key][$split[1]] = $v;jquery.tagsinput.js https://gitlab.com/techniconline/kmc | JavaScript | 358 lines
10 Licensed under the MIT license: 11 http://www.opensource.org/licenses/mit-license.php 12 82 83 var tagslist = $(this).val().split(delimiter[id]); 84 if (tagslist[0] == '') { 143 144 var old = $(this).val().split(delimiter[id]); 145 166 var id = $(this).attr('id'); 167 var tagslist = $(this).val().split(delimiter[id]); 168 return (jQuery.inArray(val, tagslist) >= 0); //true when tag exists, false when not 347 var id = $(obj).attr('id'); 348 var tags = val.split(delimiter[id]); 349 for (i = 0; i < tags.length; i++) {SimpleWikiHelper.java https://gitlab.com/brian0218/rk3188_rk3066_r-box_android4.4.2_sdk | Java | 214 lines
49 /** 50 * Regular expression that splits "Word of the day" entry into word 51 * name, word type, and the first description bullet point. 61 private static final String WIKTIONARY_PAGE = 62 "http://en.wiktionary.org/w/api.php?action=query&prop=revisions&titles=%s&" + 63 "rvprop=content&format=json%s";tripal_feature_interpro_results.tpl.php https://gitlab.com/vijaya.tsavatapalli/drupal7 | PHP | 235 lines
1<?php 2$feature = $variables['node']->feature; 149 150 // the Prosite databases are split into two libraries for InterProScan. But 151 // we can just use the PROSITE database for both of them, so rename it here. 230 231 <div class="tripal_feature-interpro_results_subtitle">Summary of Annotated IPR terms</div> <?php 232 print $resultsHTML;?> 232 print $resultsHTML;?> 233 </div> <?php 234 }umeditor.config.js https://gitlab.com/0072016/0072016-mmzrb- | JavaScript | 257 lines
103 104 parsedStack = parsedStack.split( this.localSeparator ); 105 parsedStack.length = parsedStack.length - 1; 139 //图片上传配置区 140 ,imageUrl:"../admin/upload.php?infImgUpload=1" //图片上传提交地址 141 ,imagePath:URL //图片修正地址,引用了fixedImagePath,如有特殊需求,可自行配置TargetTxtClassObject.py https://gitlab.com/envieidoc/Clover | Python | 190 lines
7# which accompanies this distribution. The full text of the license may be found at 8# http://opensource.org/licenses/bsd-license.php 9# 73 # @param CommentCharacter: Comment char, be used to ignore comment content 74 # @param KeySplitCharacter: Key split char, between key name and key value. Key1 = Value1, '=' is the key split char 75 # 78 # 79 def ConvertTextFileToDict(self, FileName, CommentCharacter, KeySplitCharacter): 80 F = None 93 94 LineList = Line.split(KeySplitCharacter, 1) 95 Key = LineList[0].strip() 125 DataType.TAB_TAT_DEFINES_TOOL_CHAIN_TAG]: 126 self.TargetTxtDictionary[Key] = Value.split() 127 elif Key == DataType.TAB_TAT_DEFINES_MAX_CONCURRENT_THREAD_NUMBER:qrmask.php https://gitlab.com/Ltaimao/wecenter | PHP | 328 lines
1<?php 2/* 2/* 3 * PHP QR Code encoder 4 * 9 * 10 * PHP QR Code is distributed under LGPL 3 11 * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm> 134 foreach ($codeLines as $line) 135 $codeArr[] = str_split($line); 136 286 { 287 $minDemerit = PHP_INT_MAX; 288 $bestMaskNum = 0;TestFixture.php https://gitlab.com/vannh/portal_training | PHP | 325 lines
1<?php 2/** 2/** 3 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @since 1.2.0 12 * @license http://www.opensource.org/licenses/mit-license.php MIT License 13 */ 116 if ($this->table === null) { 117 list(, $class) = namespaceSplit(get_class($this)); 118 preg_match('/^(.*)Fixture$/', $class, $matches);tax_watch_export_pdf(3).php https://gitlab.com/vince.omega/PDF-PHP-Scripts | PHP | 534 lines
1<?php 2ini_set('max_execution_time', 0); //300 seconds = 5 minutes 2ini_set('max_execution_time', 0); //300 seconds = 5 minutes 3require_once('fpdf/fpdf/fpdf.php'); 4require_once('../../header.inc.php'); 7@author: Larry Stanfield 8PHP PDF generation script written by Larry Stanfield 9Contact @ vince.omega@gmail.com 9Contact @ vince.omega@gmail.com 10Powered by the open source pdf php class fpdf 11www.fpdf.org 97 $conArray = array(); 98 $conArray = str_split($content, 23); 99 $k = sizeof($conArray); 186 187$filename = 'c:/php_temp/download_' . preg_replace('/[^a-z0-9]/i', '_', $DB->cleanString($_GET['custcodes'])) . '.pdf'; 188productos.php https://gitlab.com/merintec/barvo | PHP | 311 lines
1<?php 2include("../comunes/variables.php"); 3include("verificar_admin.php"); 3include("verificar_admin.php"); 4include("../comunes/conexion.php"); 5$tabla='productos'; 33 <link type="text/css" rel="stylesheet" href="../js/whatyouseeiswhatyouget/jquery-te-1.4.0.css"> 34 <title><?php echo $nom_pagina; ?></title> 35 </head> 179<body> 180 <?php 181 include("menu_backend.php"); 280 281 <div align="center"> <a href="<?php echo $_PHP_SELF; ?>"><button id="cancelar" type="button" class="btn btn_form oculto" >Cancelar</button></a> <input type="submit" name="guardar" id="guardar" value="Guardar" class="btn btn_form" > </div> 282license2rtf.js https://gitlab.com/CORP-RESELLER/node | JavaScript | 332 lines
10 */ 11function LineSplitter() { 12 const self = this; 18 this.write = function(data) { 19 var lines = (buffer + data).split(/\r\n|\n\r|\n|\r/); 20 for (var i = 0; i < lines.length - 1; i++) { 34} 35inherits(LineSplitter, Stream); 36 40 */ 41function ParagraphParser() { 42 const self = this; 319const stdout = process.stdout; 320const line_splitter = new LineSplitter(); 321const paragraph_parser = new ParagraphParser();kixtart.php https://gitlab.com/billyprice1/Stikked | PHP | 327 lines
1<?php 2/************************************************************************************* 2/************************************************************************************* 3 * kixtart.php 4 * -------- 9 * 10 * PHP language file for GeSHi. 11 * 172 'SRnd', 173 'Split', 174 'SidToName', 311 'OOLANG' => true, 312 'OBJECT_SPLITTERS' => array( 313 1 => '.'Pop3.php https://gitlab.com/Ltaimao/wecenter | PHP | 328 lines
1<?php 2/** 26 */ 27//require_once 'Zend/Mail/Storage/Abstract.php'; 28 31 */ 32//require_once 'Zend/Mail/Protocol/Pop3.php'; 33 36 */ 37//require_once 'Zend/Mail/Message.php'; 38 114 */ 115 //require_once 'Zend/Mail/Storage/Exception.php'; 116 throw new Zend_Mail_Storage_Exception('not implemented'); 137 */ 138 //require_once 'Zend/Mail/Storage/Exception.php'; 139 throw new Zend_Mail_Storage_Exception('not implemented');url.py https://gitlab.com/abhi1tb/build | Python | 310 lines
5# This module is part of SQLAlchemy and is released under 6# the MIT License: http://www.opensource.org/licenses/mit-license.php 7 143 else: 144 return self.drivername.split("+")[0] 145 149 else: 150 return self.drivername.split("+")[1] 151 257 if components["database"] is not None: 258 tokens = components["database"].split("?", 2) 259 components["database"] = tokens[0]RakString.h https://gitlab.com/computerphilly/openblox | C Header | 354 lines
215 216 /// URL Encode the string. See http://www.codeguru.com/cpp/cpp/cpp_mfc/article.php/c4029/ 217 RakNet::RakString& URLEncode(void); 222 /// https://servers.api.rackspacecloud.com/v1.0 to https://, servers.api.rackspacecloud.com, /v1.0 223 void SplitURI(RakNet::RakString &header, RakNet::RakString &domain, RakNet::RakString &path); 224class-Shoestrap_Color.php https://gitlab.com/aristath/shoestrap-3 | PHP | 481 lines
1<?php 2 11 * Sanitises a HEX value. 12 * The way this works is by splitting the string in 6 substrings. 13 * Each sub-string is individually sanitized, and the result is then returned.Data.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 478 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 */ 188 /** 189 * Split SKU of an item by dashes and spaces 190 * Words will not be broken, unless thir length is greater than $length 195 */ 196 public function splitSku($sku, $length = 30) 197 { 197 { 198 return Mage::helper('core/string')->str_split($sku, $length, true, false, '[\-\s]'); 199 }preprocessors.py https://gitlab.com/Haritiana/Python-Markdown | Python | 346 lines
39 Each subclass of Preprocessor should override the `run` method, which 40 takes the document as a list of strings split by newlines and returns 41 the (possibly modified) list of lines. 55 source = re.sub(r'(?<=\n) +\n', '\n', source) 56 return source.split('\n') 57 99 else: 100 tag = block[1:].split(">", 1)[0].lower() 101 return tag, len(tag)+2, {} 131 def _equal_tags(self, left_tag, right_tag): 132 if left_tag[0] in ['?', '@', '%']: # handle PHP, etc. 133 return True 191 new_blocks = [] 192 text = text.rsplit("\n\n") 193 items = []base_vat.py https://gitlab.com/thanhchatvn/cloud-odoo | Python | 330 lines
60 61 def _split_vat(self, vat): 62 vat_country, vat_number = vat[:2].lower(), vat[2:].replace(' ', '') 67 Check the VAT number depending of the country. 68 http://sima-pc.com/nif.php 69 ''' 108 continue 109 vat_country, vat_number = self._split_vat(partner.vat) 110 if not check_func(cr, uid, vat_country, vat_number, context=context): 120 return cn[0] in string.ascii_lowercase and cn[1] in string.ascii_lowercase 121 vat_country, vat_number = self._split_vat(self.browse(cr, uid, ids)[0].vat) 122 vat_no = "'CC##' (CC=Country Code, ##=VAT Number)"CsvBulkLoader.php https://gitlab.com/djpmedia/silverstripe-framework | PHP | 453 lines
1<?php 2 45 /** 46 * Number of lines to split large CSV files into. 47 * 123 } 124 print $failedMessage . PHP_EOL; 125 } finally { 149 /** 150 * Splits a large file up into many smaller files. 151 * 151 * 152 * @param string $path Path to large file to split 153 * @param int $lines Number of lines per file 156 */ 157 protected function splitFile($path, $lines = null) 158 {WireLog.php git://github.com/ryancramerdesign/ProcessWire.git | PHP | 362 lines
1<?php 2 196 /** 197 * Same as getLines() but returns each log line as an associative array of each part of the line split up 198 *hybi.js https://gitlab.com/blocknotary/IonicInterviews | JavaScript | 474 lines
20 if (typeof this._protocols === 'string') 21 this._protocols = this._protocols.split(/ *, */); 22 34 if (protos !== undefined) { 35 if (typeof protos === 'string') protos = protos.split(/ *, */); 36 this.protocol = protos.filter(function(p) { return supported.indexOf(p) >= 0 })[0]; 100 101 // http://www.w3.org/International/questions/qa-forms-utf-8.en.php 102 UTF8_MATCH: /^([\x00-\x7F]|[\xC2-\xDF][\x80-\xBF]|\xE0[\xA0-\xBF][\x80-\xBF]|[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}|\xED[\x80-\x9F][\x80-\xBF]|\xF0[\x90-\xBF][\x80-\xBF]{2}|[\xF1-\xF3][\x80-\xBF]{3}|\xF4[\x80-\x8F][\x80-\xBF]{2})*$/,ext_string.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 346 lines
13 | obtain it through the world-wide-web, please send a note to | 14 | license@php.net so we can mail you a copy immediately. | 15 +----------------------------------------------------------------------+ 22#include "hphp/runtime/ext/extension.h" 23#include "hphp/runtime/base/zend-string.h" 24#include "hphp/runtime/base/zend-printf.h" 24#include "hphp/runtime/base/zend-printf.h" 25#include "hphp/runtime/base/bstring.h" 26#include <langinfo.h> 27 28namespace HPHP { 29/////////////////////////////////////////////////////////////////////////////// 31 32extern const HPHP::StaticString k_HPHP_TRIM_CHARLIST; 33extern const int64_t k_STR_PAD_RIGHT;box_graph_invoices_permonth.php git://github.com/Dolibarr/dolibarr.git | PHP | 293 lines
1<?php 2/* Copyright (C) 2013 Laurent Destailleur <eldy@users.sourceforge.net> 18/** 19 * \file htdocs/core/boxes/box_graph_invoices_permonth.php 20 * \ingroup factures 22 */ 23include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php'; 24 75 76 //include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php'; 77 //$facturestatic=new Facture($this->db); 112 113 include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php'; 114 include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facturestats.class.php'; 114 include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facturestats.class.php'; 115 $autosetarray = preg_split("/[,;:]+/", GETPOST('DOL_AUTOSET_COOKIE')); 116 if (in_array('DOLUSERCOOKIE_box_'.$this->boxcode, $autosetarray)) {InfBinarySectionTest.py https://gitlab.com/envieidoc/Clover | Python | 386 lines
8# distribution. The full text of the license may be found at 9# http://opensource.org/licenses/bsd-license.php 10# 246def StringToSectionString(String): 247 Lines = String.split('\n') 248 LineNo = 0 261 for Item in SectionString: 262 ValueList = Item[0].split('|') 263 for count in range(len(ValueList)):LC_Page_Admin_Contents.php https://gitlab.com/raku.takayama/eccube-2_13 | PHP | 259 lines
1<?php 2/* 23 24require_once CLASS_EX_REALDIR . 'page_extends/admin/LC_Page_Admin_Ex.php'; 25 113 $news = $objNews->getNews($news_id); 114 list($news['year'],$news['month'],$news['day']) = $this->splitNewsDate($news['cast_news_date']); 115 $objFormParam->setParam($news); 240 */ 241 public function splitNewsDate($news_date) 242 {jDaoParser.class.php git://github.com/jelix/jelix.git | PHP | 462 lines
1<?php 2/** 16 */ 17require_once JELIX_LIB_PATH.'dao/jDaoXmlException.class.php'; 18require_once JELIX_LIB_PATH.'dao/jDaoProperty.class.php'; 18require_once JELIX_LIB_PATH.'dao/jDaoProperty.class.php'; 19require_once JELIX_LIB_PATH.'dao/jDaoMethod.class.php'; 20require_once JELIX_LIB_PATH.'dao/jDaoGenerator.class.php'; 259 $events = (string) $xml->factory[0]['events']; 260 $this->_eventList = preg_split('/[\\s,]+/', $events); 261 } 298 299 $infos['pk'] = preg_split('/[\\s,]+/', $infos['primarykey']); 300 unset($infos['primarykey']); 309 } 310 $infos['fk'] = preg_split('/[\\s,]+/', $infos['onforeignkey']); 311 unset($infos['onforeignkey']);Server.php https://gitlab.com/robfrawley/php-memcached-admin | PHP | 513 lines
1<?php 2/** 5 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0 6 * @package phpMemcachedAdmin 7 */ 139 # Exploding by \r\n 140 $lines = preg_split('/\r\n/', $string); 141 147 { 148 $data = preg_split('/ /', $line); 149 if(isset($data[2])) 160 { 161 $data = preg_split('/ /', $line); 162 if(isset($data[1])) 240 { 241 $key = preg_split('/:/', $key); 242 $slabs[$key[0]][$key[1]] = $value;exceptions.py https://gitlab.com/Rockyspade/titanium_mobile | Python | 255 lines
4# This module is part of Mako and is released under 5# the MIT License: http://www.opensource.org/licenses/mit-license.php 6 119 line_map = {} 120 for line in module_source.split("\n"): 121 match = re.match(r'\s*# SOURCE LINE (\d+)', line) 127 line_map[module_ln] = template_ln 128 template_lines = [line for line in template_source.split("\n")] 129 mods[filename] = (line_map, template_lines) 223 if src: 224 lines = src.split('\n') 225 else:tuto6.htm https://gitlab.com/blackhawkelectronics/enventory | HTML | 165 lines
12<div class="source"> 13<pre><code><?php 14<span class="kw">require(</span><span class="str">'fpdf.php'</span><span class="kw">); 37 </span>$html <span class="kw">= </span>str_replace<span class="kw">(</span><span class="str">"\n"</span><span class="kw">,</span><span class="str">' '</span><span class="kw">,</span>$html<span class="kw">); 38 </span>$a <span class="kw">= </span>preg_split<span class="kw">(</span><span class="str">'/<(.*)>/U'</span><span class="kw">,</span>$html<span class="kw">,-</span>1<span class="kw">,</span>PREG_SPLIT_DELIM_CAPTURE<span class="kw">); 39 foreach(</span>$a <span class="kw">as </span>$i<span class="kw">=></span>$e<span class="kw">) 137</div> 138<p class='demo'><a href='tuto6.php' target='_blank' class='demo'>[Demo]</a></p> 139The new method to print text is <a href='../doc/write.htm'>Write()</a>. It's very close to <a href='../doc/multicell.htm'>MultiCell()</a>; the differences are:gecko.js https://gitlab.com/mybbpl/ppm-1.6 | JavaScript | 295 lines
14 * 15 * Read the full licence: http://www.opensource.org/licenses/lgpl-license.php 16 */ 79 80 // split big files, highlighting parts of it 81 split : function(code,flag) { 114 o = o.replace(/<.*?>/g,''); 115 x = z = this.split(o,flag); 116 x = x.replace(/\n/g,'<br>'); 122 123 editor.innerHTML = this.actions.history[this.actions.next()] = (flag=='scroll') ? x : o.split(z).join(x); 124 if(flag!='init') this.findString(); 129 words = rangeAndCaret[0].substring(rangeAndCaret[1]-40,rangeAndCaret[1]); 130 words = words.replace(/[\s\n\r\);\W]/g,'\n').split('\n'); 131 return words[words.length-1].replace(/[\W]/gi,'').toLowerCase();List.php https://gitlab.com/wuhang2003/typecho | PHP | 402 lines
1<?php 2if (!defined('__TYPECHO_ROOT_DIR__')) exit; 313 $split = $this->levels % $num; 314 echo $args[(0 == $split ? $num : $split) -1]; 315 }swekey.auth.lib.php https://gitlab.com/qbarbosa/klindev | PHP | 317 lines
95 96 include_once './libraries/plugins/auth/swekey/authentication.inc.php'; 97 138 </script> 139 <?php 140 151 152 include_once "libraries/plugins/auth/swekey/swekey.php"; 153 229 } 230 Swekey_SetUnplugUrl(key, "pma_login", url + "?session_to_unset=<?php echo session_id();?>&token=<?php echo $_SESSION[' PMA_token ']; ?>"); 231 var otp = Swekey_GetOtp(key, <?php echo '"' . $_SESSION['SWEKEY']['RND_TOKEN'] . '"';?>); 273 { 274 window.open("<?php echo PMA_linkURL('https://www.phpmyadmin.net/auth_key/'); ?>"); 275 }audio.php https://gitlab.com/thisishayat/itv-2016 | PHP | 435 lines
1<?php 2 123 $options = array(); 124 $data = preg_split( "/\|/", $src ); 125 $sound_file = $data[0]; 207 if ( isset( $options['artists'] ) ) { 208 $artists = preg_split( '/,/', $options['artists'] ); 209 foreach ( $artists as $i => $artist ) { 221 if ( isset( $options['titles'] ) ) { 222 $titles = preg_split( '/,/', $options['titles'] ); 223 foreach ( $titles as $i => $title ) {Util.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 476 lines
1<?php 2/** 204 /** 205 * Example: split_at( '</', '<a></a>' ) => array( '<a>', '</a>' ) 206 * 211 */ 212 public static function split_at( $delim, $str ) { 213 $i = strpos( $str, $delim ); 263/** 264 * Splits a list into sets, grouped by the result of running each value through $fn. 265 * 343 if ( 'dbDelta' == $opts['upgrade_method'] ) { 344 require_once ABSPATH . 'wp-admin/includes/upgrade.php'; 345 dbDelta( "CREATE TABLE $full_table_name ( $columns ) $table_options" );JsHelper.php https://gitlab.com/tixture55/cakeATM | PHP | 436 lines
4 * 5 * CakePHP : 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.View.Helper 14 * @package Cake.View.Helper 15 * @since CakePHP(tm) v 1.2 16 * @license http://www.opensource.org/licenses/mit-license.php MIT License 92 $engineName = $className; 93 list(, $className) = pluginSplit($className); 94 158 * 159 * @param mixed $val A PHP variable to be converted to JSON 160 * @param bool $quoteString If false, leaves string values unquotedpermissions_phpbb.php http://twpug.googlecode.com/svn/trunk/ | PHP | 219 lines
1<?php 2if (empty($lang) || !is_array($lang)) 43* 'acl_bug_view' => array('lang' => 'Can view bug reports', 'cat' => 'bugs'), 44* 'acl_bug_post' => array('lang' => 'Can post bugs', 'cat' => 'post'), // Using a phpBB category here 45* )); 161 'acl_m_lock' => array('lang' => '??????', 'cat' => 'topic_actions'), 162 'acl_m_split' => array('lang' => '??????', 'cat' => 'topic_actions'), 163 'acl_m_merge' => array('lang' => '??????', 'cat' => 'topic_actions'), 174 'acl_a_jabber' => array('lang' => '????Jabber??', 'cat' => 'settings'), 175 'acl_a_phpinfo' => array('lang' => '????php??', 'cat' => 'settings'), 176inori.vim https://gitlab.com/ngurajeka/vim-config | Vim Script | 218 lines
63call s:highlight("LineNr", "BRIGHT_BLACK", "NONE", "NONE") 64call s:highlight("VertSplit", "BRIGHT_BLACK", "NONE", "NONE") 65call s:highlight("StatusLine", "WHITE", "BRIGHT_BLACK", "NONE") 159 160"" Special for PHP 161hi link phpVarSelector Purple 161hi link phpVarSelector Purple 162hi link phpIdentifier Purple 163hi link phpType Red 163hi link phpType Red 164hi link phpRepeat Orange 165SortedTreeNodeBase_Remove'2.cs https://openHistorian.svn.codeplex.com/svn | C# | 237 lines
10// 11// http://www.opensource.org/licenses/eclipse-1.0.php 12// 63 { 64 //ToDo:SplitAndThenRemove 65 throw new NotImplementedException();class-terminus.php https://gitlab.com/Blueprint-Marketing/cli | PHP | 417 lines
27 if(!$configurator) { 28 $configurator = new Terminus\Configurator(TERMINUS_ROOT . '/php/config-spec.php'); 29 } 94 95 $path = preg_split('/\s+/', $name); 96 337 338 $php_bin = self::get_php_binary(); 339 340 if(Terminus::is_test()) { 341 $script_path = __DIR__.'/boot-fs.php'; 342 } else { 353 354 private static function get_php_binary() { 355 if(defined('PHP_BINARY'))openid.class.php git://github.com/Dolibarr/dolibarr.git | PHP | 558 lines
1<?php 2/* Copyright (C) 2013 Laurent Destailleur <eldy@users.sourceforge.net> 18/** 19 * \file htdocs/core/class/openid.class.php 20 * \ingroup core 46 47 // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps 48 /** 55 { 56 // phpcs:enable 57 $this->URLs['openid_server'] = $a; 59 60 // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps 61 /** 68 { 69 // phpcs:enable 70 $this->URLs['trust_root'] = $a;Data.php https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess | PHP | 478 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) 2014 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 188 /** 189 * Split SKU of an item by dashes and spaces 190 * Words will not be broken, unless thir length is greater than $length 195 */ 196 public function splitSku($sku, $length = 30) 197 { 197 { 198 return Mage::helper('core/string')->str_split($sku, $length, true, false, '[\-\s]'); 199 }case.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 206 lines
1<?php 2/** 2/** 3* @version $Id: case.php 10381 2008-06-01 03:35:53Z pasamio $ 4* @package utf8 30* @see http://www.unicode.org/reports/tr21/tr21-5.html 31* @see http://dev.splitbrain.org/view/darcs/dokuwiki/inc/utf8.php 32* @package utf8 59* @author Andreas Gohr <andi@splitbrain.org> 60* @see http://dev.splitbrain.org/view/darcs/dokuwiki/inc/utf8.php 61* @see utf8_strtolower 126* @see http://www.unicode.org/reports/tr21/tr21-5.html 127* @see http://dev.splitbrain.org/view/darcs/dokuwiki/inc/utf8.php 128* @package utf8 158* @subpackage strings 159* @see http://dev.splitbrain.org/view/darcs/dokuwiki/inc/utf8.php 160*/mail.php https://gitlab.com/2202Programming/navxmxp | PHP | 406 lines
1<?php 2class Mail { 95 $header .= 'Return-Path: ' . $this->from . $this->newline; 96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline; 97 $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline; 137 $message .= 'X-Attachment-Id: ' . basename(urlencode($attachment)) . $this->newline . $this->newline; 138 $message .= chunk_split(base64_encode($content)); 139 } 158 } else { 159 if (substr(PHP_OS, 0, 3) != 'WIN') { 160 socket_set_timeout($handle, $this->timeout, 0); 355 foreach ($lines as $line) { 356 $results = str_split($line, 998); 357 358 foreach ($results as $result) { 359 if (substr(PHP_OS, 0, 3) != 'WIN') { 360 fputs($handle, $result . $this->crlf);auth.php https://gitlab.com/michield/dokuwiki | PHP | 418 lines
1<?php 2// must be run within Dokuwiki 11 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 12 * @author Andreas Gohr <andi@splitbrain.org> 13 * @author Chris Smith <chris@jalakai.co.uk> 25 * @author Matthias Grimm <matthiasgrimm@users.sourceforge.net> 26 * @author Andreas Gohr <andi@splitbrain.org> 27 */ 32 if(!function_exists('pg_connect')) { 33 $this->_debug("PgSQL err: PHP Postgres extension not found.", -1, __LINE__, __FILE__); 34 $this->success = false; 181 * @author Matthias Grimm <matthiasgrimm@users.sourceforge.net> 182 * @author Andreas Gohr <andi@splitbrain.org> 183 * 241 * 242 * @author Andreas Gohr <andi@splitbrain.org> 243 * @author Chris Smith <chris@jalakai.co.uk>TwitterAPIExchange.php https://gitlab.com/Skull3x/pocketmine-plugins | PHP | 376 lines
1<?php 2namespace aliuly\livesigns; 4/** 5 * Twitter-API-PHP : Simple PHP wrapper for the v1.1 API 6 * 6 * 7 * PHP version 5.3.10 8 * 9 * @category Awesomeness 10 * @package Twitter-API-PHP 11 * @author James Mallison <me@j7mbo.co.uk> 12 * @license MIT License 13 * @link http://github.com/j7mbo/twitter-api-php 14 */ 221 { 222 $oauth[$split[0]] = urldecode($split[1]); 223 }tlib.vim https://gitlab.com/jeichert/vimrc | Vim Script | 219 lines
2" @Author: Thomas Link (mailto:micathom AT gmail com?subject=vim-tLib) 3" @Website: http://www.vim.org/account/profile.php?user_id=4037 4" @License: GPL (see http://www.gnu.org/licenses/gpl.txt) 80" Filenames {{{2 81TAssert IsEqual(tlib#file#Split('foo/bar/filename.txt'), ['foo', 'bar', 'filename.txt']) 82TAssert IsEqual(tlib#file#Split('/foo/bar/filename.txt'), ['', 'foo', 'bar', 'filename.txt']) 82TAssert IsEqual(tlib#file#Split('/foo/bar/filename.txt'), ['', 'foo', 'bar', 'filename.txt']) 83TAssert IsEqual(tlib#file#Split('ftp://foo/bar/filename.txt'), ['ftp:/', 'foo', 'bar', 'filename.txt']) 84 184" Regexp {{{2 185for c in split('^$.*+\()|{}[]~', '\zs') 186 let s = printf('%sfoo%sbar%s', c, c, c)ErrorHandler.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 301 lines
6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @link http://cakephp.org CakePHP(tm) Project 16 * @package Cake.Error 17 * @since CakePHP(tm) v 0.10.5.1732 18 * @license http://www.opensource.org/licenses/mit-license.php MIT License 19 */ 68 * Using the built-in exception handling, you can log all the exceptions 69 * that are dealt with by ErrorHandler by setting `Exception.log` to true in your core.php. 70 * Enabling this will log every exception to CakeLog and the configured loggers. 105 * @return void 106 * @see http://php.net/manual/en/function.set-exception-handler.php 107 */tabby.js https://code.google.com/p/quickdiagrams/ | JavaScript | 269 lines
63 if (16 == $.fn.tabby.catch_kc(e)) pressed.shft = false; 64 }).bind('blur',function (e) { // workaround for Opera -- http://www.webdeveloper.com/forum/showthread.php?p=806588 65 if (9 == pressed.last) $(e.target).one('focus',function (e) {pressed.last = null;}).get(0).focus(); 126 else { 127 // split the textarea up into lines and figure out which lines are included in the selection 128 var lines = o.value.split("\n"); 199 var selection_len = selection_text.length; 200 var selection_arr = selection_text.split("\r\n"); 201 205 var before_text = before_range.text; 206 var before_arr = before_text.split("\r\n"); 207 var before_len = before_text.length; // - before_arr.length + 1;Simpy.php https://gitlab.com/luisrepo/ClienteWS | PHP | 433 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: Simpy.php 23775 2011-03-01 17:25:24Z ralph $ 22 */ 26 */ 27require_once 'Zend/Http/Client.php'; 28 110 */ 111 require_once 'Zend/Service/Exception.php'; 112 throw new Zend_Service_Exception($message, $code); 121 */ 122 require_once 'Zend/Service/Exception.php'; 123 throw new Zend_Service_Exception($response->getMessage(), $response->getStatus()); 145 */ 146 require_once 'Zend/Service/Simpy/TagSet.php'; 147 return new Zend_Service_Simpy_TagSet($doc);jquery.inputmask.numeric.extensions.js https://gitlab.com/Mirros/cdnjs | JavaScript | 246 lines
4* Copyright (c) 2010 - 2014 Robin Herbots 5* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) 6* Version: 3.1.27 53 needsRefresh = 0 == bufVal.indexOf(opts.groupSeparator), bufVal = bufVal.replace(new RegExp(escapedGroupSeparator, "g"), ""); 54 var radixSplit = bufVal.split(opts.radixPoint); 55 if (bufVal = radixSplit[0], bufVal != opts.prefix + "?0" && bufVal.length >= opts.groupSize + opts.prefix.length) { 59 } 60 radixSplit.length > 1 && (bufVal += opts.radixPoint + radixSplit[1]); 61 }addon.py http://seppius-xbmc-repo.googlecode.com/svn/trunk/ | Python | 252 lines
180 sub_url = sub_url.replace('.xml','').replace('.mp4','') 181 sf = xbmc.translatePath('special://temp/%s.srt' % sub_url.split('/')[-1]) 182 subf = open(sf, 'w') 195 params=params[0:len(params)-2] 196 pairsofparams=cleanedparams.split('&') 197 param={} 199 splitparams={} 200 splitparams=pairsofparams[i].split('=') 201 if (len(splitparams))==2: 201 if (len(splitparams))==2: 202 param[splitparams[0]]=splitparams[1] 203 if len(param) > 0: 218 219 token = GET('http://www.ulitka.tv/xbmc/token.php') 220paypal-notify-in-subscr-or-rp-cancellation-w-level.inc.php https://gitlab.com/Gashler/dp | PHP | 194 lines
1<?php 2/** 61 62 list ($paypal["level"], $paypal["ccaps"]) = preg_split ("/\:/", $paypal["item_number"], 3); 63 91 92 if ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["cancellation_notification_urls"] && is_array ($cv = preg_split ("/\|/", $paypal["custom"]))) 93 { 93 { 94 foreach (preg_split ("/[\r\n\t]+/", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["cancellation_notification_urls"]) as $url) // Handle Cancellation Notifications. 95 116 117 if ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["cancellation_notification_recipients"] && is_array ($cv = preg_split ("/\|/", $paypal["custom"]))) 118 {swfmini.js https://gitlab.com/Mirros/cdnjs | JavaScript | 453 lines
3 * based on SWFObject v2.2 <http://code.google.com/p/swfobject/> 4 is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 5*/ 64 ie = true; // cascaded feature detection for Internet Explorer 65 d = d.split(" ")[1].split(","); 66 playerVersion = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)]; 133 if (d) { 134 d = d.split(" ")[1].split(","); 135 ua.pv = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)]; 294 function hasPlayerVersion(rv) { 295 var pv = ua.pv, v = rv.split("."); 296 v[0] = parseInt(v[0], 10);swekey.auth.lib.php https://gitlab.com/luyxtran264/myproject | PHP | 315 lines
104 ?>"; 105 var connected_keys = Swekey_ListKeyIds().split(","); 106 for (i in connected_keys) { 136 </script> 137 <?php 138 221 if (key.length != 32) { 222 window.location.search="?swekey_id=" + key + "&token=<?php echo $_SESSION[' PMA_token ']; ?>"; 223 } else { 227 } 228 Swekey_SetUnplugUrl(key, "pma_login", url + "?session_to_unset=<?php echo session_id();?>&token=<?php echo $_SESSION[' PMA_token ']; ?>"); 229 var otp = Swekey_GetOtp(key, <?php echo '"' , $_SESSION['SWEKEY']['RND_TOKEN'] , '"';?>); 271 { 272 window.open("<?php echo PMA_linkURL('https://www.phpmyadmin.net/auth_key/'); ?>"); 273 }options.php https://gitlab.com/endomorphosis/falkenstein | PHP | 137 lines
1<?php 2 12 public static function admin_page_url() { 13 return admin_url('options-general.php'); 14 } 16 public static function admin_page() { 17 return 'options-general.php'; 18 } 33 global $updraftplus_admin; 34 add_submenu_page('options-general.php', 'UpdraftPlus', __('UpdraftPlus Backups','updraftplus'), "manage_options", "updraftplus", array($updraftplus_admin, "settings_output")); 35 } 39 echo '<form method="post" '; 40 if ($pagenow == 'options-general.php') echo 'action="options.php"'; 41 if (!$allow_autocomplete) echo ' autocomplete="off"'; 76 77 register_setting('updraft-options-group', 'updraft_split_every', array($updraftplus_admin, 'optionfilter_split_every') ); 78host.go https://gitlab.com/4144/gcc | Go | 395 lines
84// ... 85// Env: []string{"SCRIPT_FILENAME=foo.php"}, 86// } 142 143 if remoteIP, remotePort, err := net.SplitHostPort(req.RemoteAddr); err == nil { 144 env = append(env, "REMOTE_ADDR="+remoteIP, "REMOTE_HOST="+remoteIP, "REMOTE_PORT="+remotePort) 202 } else { 203 cwd, path = filepath.Split(h.Path) 204 } 265 headerLines++ 266 parts := strings.SplitN(string(line), ":", 2) 267 if len(parts) < 2 {jquery.rating.js http://xbat-devel.googlecode.com/svn/trunk/ | JavaScript | 241 lines
4 * Dual licensed under the MIT and GPL licenses: 5 * http://www.opensource.org/licenses/mit-license.php 6 * http://www.gnu.org/licenses/gpl.html 12 Original comments: 13 This is hacked version of star rating created by <a href="http://php.scripts.psu.edu/rja171/widgets/rating.php">Ritesh Agrawal</a> 14 It thansform a set of radio type input elements to star rating type and remain the radio element name and value, 30 cancelValue: '', // value to submit when user click the 'cancel' link 31 split: 0, // split the star into how many parts? 32 140 // Prepare division settings 141 if(typeof settings.split=='number' && settings.split>0){ 142 var stw = ($.fn.width ? $(eStar).width() : 0) || settings.starWidth; 142 var stw = ($.fn.width ? $(eStar).width() : 0) || settings.starWidth; 143 var spi = (i % settings.split), spw = Math.floor(stw/settings.split); 144 $(eStar)convert-ly.py git://git.savannah.gnu.org/lilypond.git | Python | 391 lines
157 _ ("Report bugs via %s") 158 % 'http://post.gmane.org/post.php' 159 '?group=gmane.comp.gnu.lilypond.bugs') + '\n') 163def str_to_tuple (s): 164 return tuple ([int(n) for n in s.split ('.')]) 165rebuildParser.php https://gitlab.com/judielsm/Handora | PHP | 228 lines
1<?php 2 2 3$grammarFile = __DIR__ . '/zend_language_parser.phpy'; 4$skeletonFile = __DIR__ . '/kmyacc.php.parser'; 4$skeletonFile = __DIR__ . '/kmyacc.php.parser'; 5$tmpGrammarFile = __DIR__ . '/tmp_parser.phpy'; 6$tmpResultFile = __DIR__ . '/tmp_parser.php'; 6$tmpResultFile = __DIR__ . '/tmp_parser.php'; 7$parserResultFile = __DIR__ . '/../lib/PhpParser/Parser.php'; 8 76 77 $params = magicSplit( 78 '(?:' . PARAMS . '|' . ARGS . ')(*SKIP)(*FAIL)|,', 100 $name = $matches['name']; 101 $args = magicSplit( 102 '(?:' . PARAMS . '|' . ARGS . ')(*SKIP)(*FAIL)|,',image.php git://github.com/bcosca/fatfree.git | PHP | 616 lines
1<?php 2 65 user_error(sprintf(self::E_Color,'0x'.$hex),E_USER_ERROR); 66 $color=str_split($hex,$len/3); 67 foreach ($color as &$hue) { 411 $fw=Base::instance(); 412 foreach ($fw->split($path?:$fw->UI.';./') as $dir) 413 if (is_file($path=$dir.$font)) { 480 $format=$args?array_shift($args):'png'; 481 if (PHP_SAPI!='cli') { 482 header('Content-Type: image/'.$format); 592 $path=$fw->UI.';./'; 593 foreach ($fw->split($path,FALSE) as $dir) 594 if (is_file($dir.$file))scratch.vim https://gitlab.com/jeichert/vimrc | Vim Script | 143 lines
2" @Author: Tom Link (micathom AT gmail com?subject=[vim]) 3" @Website: http://www.vim.org/account/profile.php?user_id=4037 4" @License: GPL (see http://www.gnu.org/licenses/gpl.txt) 30" Values for keyargs: 31" scratch_split ... 1: split, 0: window, -1: tab 32function! tlib#scratch#UseScratch(...) "{{{3 52 " TLogVAR wpos 53 let scratch_split = get(keyargs, 'scratch_split', 1) 54 if bn != -1 60 else 61 if scratch_split == 1 62 let cmd = wpos.' sbuffer!' 62 let cmd = wpos.' sbuffer!' 63 elseif scratch_split == -1 64 let cmd = wpos.' tab sbuffer!'Simpy.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 433 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: Simpy.php 24594 2012-01-05 21:27:01Z matthew $ 22 */ 26 */ 27require_once 'Zend/Http/Client.php'; 28 110 */ 111 require_once 'Zend/Service/Exception.php'; 112 throw new Zend_Service_Exception($message, $code); 121 */ 122 require_once 'Zend/Service/Exception.php'; 123 throw new Zend_Service_Exception($response->getMessage(), $response->getStatus()); 145 */ 146 require_once 'Zend/Service/Simpy/TagSet.php'; 147 return new Zend_Service_Simpy_TagSet($doc);StateDropDown.js https://rabcg.svn.codeplex.com/svn | JavaScript | 582 lines
15 16// If you have PHP you can set the post values like this 17//var postState = '<?= $_POST["state"] ?>'; 500 } 501 var countryLineArray = country.split('|'); // Split into lines 502 var selObj = document.getElementById('countrySelect'); 505 for (var loop = 0; loop < countryLineArray.length; loop++) { 506 lineArray = countryLineArray[loop].split(':'); 507 countryCode = TrimString(lineArray[0]); 530 // Populate the drop down with states from the selected country 531 var stateLineArray = state.split("|"); // Split into lines 532 var optionCntr = 1; 533 for (var loop = 0; loop < stateLineArray.length; loop++) { 534 lineArray = stateLineArray[loop].split(":"); 535 countryCode = TrimString(lineArray[0]);23.js git://github.com/Graylog2/graylog2-server.git | JavaScript | 6 lines
3 * based on SWFObject v2.2 <http://code.google.com/p/swfobject/> 4 is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 5*/ 5*/ 6var swfmini=function(){function a(){if(!s){s=!0;for(var a=r.length,b=0;a>b;b++)r[b]()}}function b(a){s?a():r[r.length]=a}function c(){q&&d()}function d(){var a=o.getElementsByTagName("body")[0],b=e(i);b.setAttribute("type",m);var c=a.appendChild(b);if(c){var d=0;!function(){if(typeof c.GetVariable!=h){var e=c.GetVariable("$version");e&&(e=e.split(" ")[1].split(","),u.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)])}else if(10>d)return d++,void setTimeout(arguments.callee,10);a.removeChild(b),c=null}()}}function e(a){return o.createElement(a)}function f(a){var b=u.pv,c=a.split(".");return c[0]=parseInt(c[0],10),c[1]=parseInt(c[1],10)||0,c[2]=parseInt(c[2],10)||0,b[0]>c[0]||b[0]==c[0]&&b[1]>c[1]||b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]?!0:!1}var g=function(){j.error("This method was removed from swfmini")},h="undefined",i="object",j=window.webshims,k="Shockwave Flash",l="ShockwaveFlash.ShockwaveFlash",m="application/x-shockwave-flash",n=window,o=document,p=navigator,q=!1,r=[c],s=!1,t=!0,u=function(){var a=typeof o.getElementById!=h&&typeof o.getElementsByTagName!=h&&typeof o.createElement!=h,b=p.userAgent.toLowerCase(),c=p.platform.toLowerCase(),d=/win/.test(c?c:b),e=/mac/.test(c?c:b),f=/webkit/.test(b)?parseFloat(b.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,g=!1,j=[0,0,0],r=null;if(typeof p.plugins!=h&&typeof p.plugins[k]==i)r=p.plugins[k].description,!r||typeof p.mimeTypes!=h&&p.mimeTypes[m]&&!p.mimeTypes[m].enabledPlugin||(q=!0,g=!1,r=r.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),j[0]=parseInt(r.replace(/^(.*)\..*$/,"$1"),10),j[1]=parseInt(r.replace(/^.*\.(.*)\s.*$/,"$1"),10),j[2]=/[a-zA-Z]/.test(r)?parseInt(r.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof n.ActiveXObject!=h)try{var s=new ActiveXObject(l);s&&(r=s.GetVariable("$version"),r&&(g=!0,r=r.split(" ")[1].split(","),j=[parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10)]))}catch(t){}return{w3:a,pv:j,wk:f,ie:g,win:d,mac:e}}();j.ready("DOM",a),j.loader.addModule("swfmini-embed",{d:["swfmini"]});var v=f("9.0.0")?function(){return j.loader.loadList(["swfmini-embed"]),!0}:j.$.noop;return j.support.mediaelement?j.ready("WINDOWLOAD",v):v(),{registerObject:g,getObjectById:g,embedSWF:function(a,b,c,d,e,f,g,h,i,k){var l=arguments;v()?j.ready("swfmini-embed",function(){swfmini.embedSWF.apply(swfmini,l)}):k&&k({success:!1,id:b})},switchOffAutoHideShow:function(){t=!1},ua:u,getFlashPlayerVersion:function(){return{major:u.pv[0],minor:u.pv[1],release:u.pv[2]}},hasFlashPlayerVersion:f,createSWF:function(a,b,c){return u.w3?createSWF(a,b,c):void 0},showExpressInstall:g,removeSWF:g,createCSS:g,addDomLoadEvent:b,addLoadEvent:g,expressInstallCallback:g}}();webshims.isReady("swfmini",!0),function(a){"use strict";var b=a.support,c=b.mediaelement,d=!1,e=a.bugs,f="mediaelement-jaris",g=function(){a.ready(f,function(){a.mediaelement.createSWF||(a.mediaelement.loadSwf=!0,a.reTest([f],c))})},h=a.cfg,i=h.mediaelement,j=-1!=navigator.userAgent.indexOf("MSIE");if(!i)return void a.error("mediaelement wasn't implemented but loaded");if(c){var k=document.createElement("video");b.videoBuffered="buffered"in k,b.mediaDefaultMuted="defaultMuted"in k,d="loop"in k,b.mediaLoop=d,a.capturingEvents(["play","playing","waiting","paused","ended","durationchange","loadedmetadata","canplay","volumechange"]),(!b.videoBuffered||!d||!b.mediaDefaultMuted&&j&&"ActiveXObject"in window)&&(a.addPolyfill("mediaelement-native-fix",{d:["dom-support"]}),a.loader.loadList(["mediaelement-native-fix"]))}b.track&&!e.track&&!function(){if(!e.track){window.VTTCue&&!window.TextTrackCue?window.TextTrackCue=window.VTTCue:window.VTTCue||(window.VTTCue=window.TextTrackCue);try{new VTTCue(2,3,"")}catch(a){e.track=!0}}}(),window.CanvasRenderingContext2D&&CanvasRenderingContext2D.prototype&&(CanvasRenderingContext2D.prototype.wsImageComplete=function(a){a.call(this,this)}),a.register("mediaelement-core",function(a,e,h,i,j,k){var l=swfmini.hasFlashPlayerVersion("11.3"),m=e.mediaelement,n=!1;m.parseRtmp=function(a){var b,c,d,f=a.src.split("://"),g=f[1].split("/");for(a.server=f[0]+"://"+g[0]+"/",a.streamId=[],b=1,c=g.length;c>b;b++)d||-1===g[b].indexOf(":")||(g[b]=g[b].split(":")[1],d=!0),d?a.streamId.push(g[b]):a.server+=g[b]+"/";a.streamId.length||e.error("Could not parse rtmp url"),a.streamId=a.streamId.join("/")};var o=function(b,c){b=a(b);var d,e={src:b.attr("src")||"",elem:b,srcProp:b.prop("src")};return e.src?(d=b.attr("data-server"),null!=d&&(e.server=d),d=b.attr("type")||b.attr("data-type"),d?(e.type=d,e.container=a.trim(d.split(";")[0])):(c||(c=b[0].nodeName.toLowerCase(),"source"==c&&(c=(b.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),e.server?(e.type=c+"/rtmp",e.container=c+"/rtmp"):(d=m.getTypeForSrc(e.src,c,e),d&&(e.type=d,e.container=d))),d=b.attr("media"),d&&(e.media=d),("audio/rtmp"==e.type||"video/rtmp"==e.type)&&(e.server?e.streamId=e.src:m.parseRtmp(e)),e):e},p=!l&&"postMessage"in h&&c,q=function(){q.loaded||(q.loaded=!0,k.noAutoTrack||e.ready("WINDOWLOAD",function(){s(),e.loader.loadList(["track-ui"])}))},r=function(){var b;return function(){!b&&p&&(b=!0,n&&e.loader.loadScript("https://www.youtube.com/player_api"),a(function(){e._polyfill(["mediaelement-yt"])}))}}(),s=function(){l?g():r()};e.addPolyfill("mediaelement-yt",{test:!p,d:["dom-support"]}),m.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],'audio/ogg;codecs="opus"':"opus","audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":["mp4","mpg4","m4r","m4a","m4p","m4b","aac"],"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv","f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}},m.mimeTypes.source=a.extend({},m.mimeTypes.audio,m.mimeTypes.video),m.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||-1!=b.indexOf("youtube.com/v/"))return"video/youtube";if(!b.indexOf("mediastream:")||!b.indexOf("blob:http"))return"usermedia";if(!b.indexOf("webshimstream"))return"jarisplayer/stream";if(!b.indexOf("rtmp"))return c+"/rtmp";b=b.split("?")[0].split("#")[0].split("."),b=b[b.length-1];var d;return a.each(m.mimeTypes[c],function(a,c){return-1!==c.indexOf(b)?(d=a,!1):void 0}),d},m.srces=function(b){var c=[];b=a(b);var d=b[0].nodeName.toLowerCase(),e=o(b,d);return e.src?c.push(e):a("source",b).each(function(){e=o(this,d),e.src&&c.push(e)}),c},m.swfMimeTypes=["video/3gpp","video/x-msvideo","video/quicktime","video/x-m4v","video/mp4","video/m4p","video/x-flv","video/flv","audio/mpeg","audio/aac","audio/mp4","audio/x-m4a","audio/m4a","audio/mp3","audio/x-fla","audio/fla","youtube/flv","video/jarisplayer","jarisplayer/jarisplayer","jarisplayer/stream","video/youtube","video/rtmp","audio/rtmp"],m.canThirdPlaySrces=function(b,c){var d="";return(l||p)&&(b=a(b),c=c||m.srces(b),a.each(c,function(a,b){return b.container&&b.src&&(l&&-1!=m.swfMimeTypes.indexOf(b.container)||p&&"video/youtube"==b.container)?(d=b,!1):void 0})),d};var t={};m.canNativePlaySrces=function(b,d){var e="";if(c){b=a(b);var f=(b[0].nodeName||"").toLowerCase(),g=(t[f]||{prop:{_supvalue:!1}}).prop._supvalue||b[0].canPlayType;if(!g)return e;d=d||m.srces(b),a.each(d,function(a,c){return"usermedia"==c.type||c.type&&g.call(b[0],c.type)?(e=c,!1):void 0})}return e};var u=/^\s*application\/octet\-stream\s*$/i,v=function(){var b=u.test(a.attr(this,"type")||"");return b&&a(this).removeAttr("type"),b};m.setError=function(b,c){if(a("source",b).filter(v).length){e.error('"application/octet-stream" is a useless mimetype for audio/video. Please change this attribute.');try{a(b).mediaLoad()}catch(d){}}else c||(c="can't play sources"),a(b).pause().data("mediaerror",c),e.error("mediaelementError: "+c+". Run the following line in your console to get more info: webshim.mediaelement.loadDebugger();"),setTimeout(function(){a(b).data("mediaerror")&&a(b).addClass("media-error").trigger("mediaerror")},1)};var w=function(){var b,c=l?f:"mediaelement-yt";return function(d,f,g){e.ready(c,function(){m.createSWF&&a(d).parent()[0]?m.createSWF(d,f,g):b||(b=!0,s(),w(d,f,g))}),b||!p||m.createSWF||(n=!0,r())}}(),x={"native":function(a,b,c){c&&"third"==c.isActive&&m.setActive(a,"html5",c)},third:w},y=function(a,b,c){var d,e,f=[{test:"canNativePlaySrces",activate:"native"},{test:"canThirdPlaySrces",activate:"third"}];for((k.preferFlash||b&&"third"==b.isActive)&&f.reverse(),d=0;2>d;d++)if(e=m[f[d].test](a,c)){x[f[d].activate](a,e,b);break}e||(m.setError(a,!1),b&&"third"==b.isActive&&m.setActive(a,"html5",b))},z=/^(?:embed|object|datalist|picture)$/i,A=function(b,c){var d=e.data(b,"mediaelementBase")||e.data(b,"mediaelementBase",{}),f=m.srces(b),g=b.parentNode;clearTimeout(d.loadTimer),a(b).removeClass("media-error"),a.data(b,"mediaerror",!1),f.length&&g&&1==g.nodeType&&!z.test(g.nodeName||"")&&(c=c||e.data(b,"mediaelement"),m.sortMedia&&f.sort(m.sortMedia),y(b,c,f))};m.selectSource=A,a(i).on("ended",function(b){var c=e.data(b.target,"mediaelement");(!d||c&&"html5"!=c.isActive||a.prop(b.target,"loop"))&&setTimeout(function(){!a.prop(b.target,"paused")&&a.prop(b.target,"loop")&&a(b.target).prop("currentTime",0).play()})});var B=!1,C=function(){var f=function(){e.implement(this,"mediaelement")&&(A(this),b.mediaDefaultMuted||null==a.attr(this,"muted")||a.prop(this,"muted",!0))};e.ready("dom-support",function(){B=!0,d||e.defineNodeNamesBooleanProperty(["audio","video"],"loop"),["audio","video"].forEach(function(b){var d;d=e.defineNodeNameProperty(b,"load",{prop:{value:function(){var b=e.data(this,"mediaelement");A(this,b),!c||b&&"html5"!=b.isActive||!d.prop._supvalue||d.prop._supvalue.apply(this,arguments),!q.loaded&&this.querySelector("track")&&q(),a(this).triggerHandler("wsmediareload")}}}),t[b]=e.defineNodeNameProperty(b,"canPlayType",{prop:{value:function(d){var e="";return c&&t[b].prop._supvalue&&(e=t[b].prop._supvalue.call(this,d),"no"==e&&(e="")),!e&&l&&(d=a.trim((d||"").split(";")[0]),-1!=m.swfMimeTypes.indexOf(d)&&(e="maybe")),!e&&p&&"video/youtube"==d&&(e="maybe"),e}}})}),e.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=e.data(a,"mediaelementBase")||e.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer),b.loadTimer=setTimeout(function(){A(a),a=null},9)}}),e.addReady(function(b,c){var d=a("video, audio",b).add(c.filter("video, audio")).each(f);!q.loaded&&a("track",d).length&&q(),d=null})}),c&&!B&&e.addReady(function(b,c){B||a("video, audio",b).add(c.filter("video, audio")).each(function(){return m.canNativePlaySrces(this)?void 0:(n=!0,s(),B=!0,!1)})})};m.loadDebugger=function(){e.ready("dom-support",function(){e.loader.loadScript("mediaelement-debug")})},{noCombo:1,media:1}[e.cfg.debug]&&a(i).on("mediaerror",function(){m.loadDebugger()}),c?(e.isReady("mediaelement-core",!0),C(),e.ready("WINDOWLOAD mediaelement",s)):e.ready(f,C),e.ready("track",q),"complete"==i.readyState&&e.isReady("WINDOWLOAD",!0)})}(webshims);dromaeo.py https://gitlab.com/jonnialva90/iridium-browser | Python | 335 lines
44 ' window.jQuery.ajax = function(request) {' + 45 ' if (request.url == "store.php") {' + 46 ' window.results_ =' + 89 90 top_name = data['collection'].split('-', 1)[0] 91 AggregateData(aggregated, top_name, data['mean'])Entity.php https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess | PHP | 354 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) 2014 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 106 if (strpos($k, $key . '/') === 0) { 107 $split = explode('/', $k); 108 $filters[$key][$split[1]] = $v;Ean13.php https://gitlab.com/fabiorf/curso-zend1-aula1 | PHP | 225 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Ean13.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 25 */ 26require_once 'Zend/Barcode/Object/ObjectAbstract.php'; 27 30 */ 31require_once 'Zend/Validate/Barcode.php'; 32 122 123 $textTable = str_split($this->getText()); 124 $parity = $this->_parities[$textTable[0]]; 127 for ($i = 1; $i < 7; $i++) { 128 $bars = str_split($this->_codingMap[$parity[$i - 1]][$textTable[$i]]); 129 foreach ($bars as $b) {JsonStream.php https://gitlab.com/luisrepo/ClienteWS | PHP | 235 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: JsonStream.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 23/** Zend_Wildfire_Plugin_Interface */ 24require_once 'Zend/Wildfire/Plugin/Interface.php'; 25 26/** Zend_Wildfire_Channel_Interface */ 27require_once 'Zend/Wildfire/Channel/Interface.php'; 28 29/** Zend_Json */ 30require_once 'Zend/Json.php'; 31 160 if (!$channel instanceof Zend_Wildfire_Channel_HttpHeaders) { 161 require_once 'Zend/Wildfire/Exception.php'; 162 throw new Zend_Wildfire_Exception('The '.get_class($channel).' channel is not supported by the '.get_class($this).' protocol.');AutoParagraph.php https://gitlab.com/I-NOZex/quiz | PHP | 356 lines
1<?php 2 60 $token = array($this->_pStart()); 61 $this->_splitText($text, $token); 62 } else { 97 $token = array(); 98 $this->_splitText($text, $token); 99 // Abort! 132 // --- 133 // Quite frankly, this should be handled by splitText 134 $token = array($this->_pStart(), $token); 204 /** 205 * Splits up a text in paragraph tokens and appends them 206 * to the result stream that will replace the original 211 */ 212 private function _splitText($data, &$result) 213 {Ean13.php https://gitlab.com/mucill/sman7 | PHP | 225 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Ean13.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 25 */ 26require_once 'Zend/Barcode/Object/ObjectAbstract.php'; 27 30 */ 31require_once 'Zend/Validate/Barcode.php'; 32 122 123 $textTable = str_split($this->getText()); 124 $parity = $this->_parities[$textTable[0]]; 127 for ($i = 1; $i < 7; $i++) { 128 $bars = str_split($this->_codingMap[$parity[$i - 1]][$textTable[$i]]); 129 foreach ($bars as $b) {massive_downtime.php https://gitlab.com/florianocomercial/centreon | PHP | 167 lines
1<?php 2/* 45 if ($cmd == '75') { 46 $tmp = preg_split("/\;/", $key); 47 $select[] = $tmp[0]; 71 */ 72 require_once "HTML/QuickForm.php"; 73 require_once 'HTML/QuickForm/Renderer/ArraySmarty.php'; 74 75 $form = new HTML_QuickForm('select_form', 'GET', 'main.php'); 76