100+ results results for 'php split repo:SunghanKim/extraction-framework' (284 ms)
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') 220API.php https://code.google.com/p/molinos-cms/ | PHP | 383 lines
1<?php 2/** 150 151 foreach (preg_split('/[\r\n]+/', $headers, -1, PREG_SPLIT_NO_EMPTY) as $h) { 152 if (0 === strpos($h, 'HTTP/')) 317 'method' => 'POST', 318 'header' => 'Content-Type: application/x-www-form-urlencoded' . PHP_EOL, 319 'content' => Molinos_Core_API::getInstance('http')->build_query($data),date.php git://github.com/gallery/gallery3.git | PHP | 395 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 7 * @copyright (c) 2007-2009 Kohana Team 8 * @license http://kohanaphp.com/license 9 */ 55 * Returns the offset (in seconds) between two time zones. 56 * @see http://php.net/timezones 57 * 277 // Array with the output formats 278 $output = preg_split('/[^a-z]+/', strtolower((string) $output)); 279MDocType.java https://bitbucket.org/idempiere/idempiere/ | Java | 372 lines
35 * <li>BF [ - ] MDocType.getOfClient should return ONLY active records. 36 * See https://sourceforge.net/forum/message.php?msg_id=6499893 37 * @version $Id: MDocType.java,v 1.3 2006/07/30 00:54:54 jjanke Exp $ 129 setIsShipConfirm(false); 130 setIsSplitWhenDifference(false); 131 //Route.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 17 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) 18 * @version $Id: Route.php 10884 2008-08-11 13:46:33Z matthew $ 19 * @license http://framework.zend.com/license/new-bsd New BSD License 22/** Zend_Controller_Router_Route_Abstract */ 23require_once 'Zend/Controller/Router/Route/Abstract.php'; 24 106 /** 107 * Prepares the route for mapping by splitting (exploding) it 108 * to a corresponding atomic parts. These parts are assigned 256 } else { 257 require_once 'Zend/Controller/Router/Exception.php'; 258 throw new Zend_Controller_Router_Exception($name . ' is not specified');ejs.js git://github.com/appcelerator/titanium_desktop.git | JavaScript | 468 lines
9 * EJS is a client-side preprocessing engine written in and for JavaScript. 10 * If you have used PHP, ASP, JSP, or ERB then you get the idea: code embedded 11 * in <% // Code here %> tags will be executed, and code embedded in <%= .. %> 33 34/* Make a split function like Ruby's: "abc".split(/b/) -> ['a', 'b', 'c'] */ 35String.prototype.rsplit = function(regex) { 73 if(left=='[') 74 this.SplitRegexp = /(\[%%)|(%%\])|(\[%=)|(\[%#)|(\[%)|(%\]\n)|(%\])|(\n)/; 75 else 107 { 108 var source_split = this.source.rsplit(/\n/); 109 for(var i=0; i<source_split.length; i++) { 118 this.lines++ 119 var line_split = line.rsplit(regex); 120 for(var i=0; i<line_split.length; i++) {dojo2.inc https://code.google.com/p/realitybuilder/ | Pascal | 442 lines
1<?php 2 5 6require_once('JavaScriptLanguage.php'); 7require_once('JavaScriptParser.php'); 7require_once('JavaScriptParser.php'); 8require_once('JavaScriptStatements.php'); 9require_once('JavaScriptFunction.php'); 9require_once('JavaScriptFunction.php'); 10require_once('Dojo.php'); 11require_once('DojoCommentBlock.php'); 31 global $_dojo_properties_modules; 32 foreach (preg_split('%[\n\r]+%', file_get_contents('modules/' . $file)) as $line) { 33 list($line, ) = preg_split('%[!#]%', $line, 2);Request.php https://bitbucket.org/chamilo/chamilo/ | PHP | 342 lines
1<?php 2/** 4 * 5 * Adapted from Andy Smith's OAuth library for PHP 6 * 8 * @link http://oauth.googlecode.com/svn/spec/ext/consumer_request/1.0/drafts/1/spec.html 9 * @link http://oauth.googlecode.com/svn/code/php/ 10 * @link http://term.ie/oauth/example/ 15 * @copyright Copyright (c) 2008, Photobucket, Inc. 16 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 17 */ 21 */ 22require_once('OAuth/Utils.php'); 23/** 25 */ 26require_once('OAuth/Signature.php'); 27/**nrepl.clj git://github.com/clojure/tools.nrepl.git | Clojure | 246 lines
2; The use and distribution terms for this software are covered by the 3; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) 4; which can be found in the file epl-v10.html at the root of this distribution. 68 [f coll] 69 (let [[head tail] (split-with (complement f) coll)] 70 (concat head (take 1 tail))))tpl_modules_products_featured_listing.php http://daocart.googlecode.com/svn/trunk/ | PHP | 218 lines
1<?php 2/** 4 * 5 * Loaded automatically by index.php?main_page=featured_products.<br /> 6 * Displays listing of Featured Products 11 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 12 * @version $Id: tpl_modules_products_featured_listing.php 6096 2007-04-01 00:43:21Z ajeh $ 13 */ 18 </tr> 19<?php 20 $group_id = zen_get_configuration_key_value('PRODUCT_FEATURED_LIST_GROUP_ID'); 21 22 if ($featured_products_split->number_of_rows > 0) { 23 $featured_products = $db->Execute($featured_products_split->sql_query); 119 <tr> 120 <td width="<?php echo IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH + 10; ?>" valign="top" class="main" align="center"> 121 <?phpgraphpage.py https://bitbucket.org/pypy/pypy/ | Python | 214 lines
1 2from pypy.translator.tool.graphpage import GraphPage 3from pypy.translator.tool.make_dot import DotGen 22 highlight)) 23 graphpage = ResOpGraphPage(graphs, errmsg, metainterp_sd) 24 graphpage.display() 36 37class ResOpGraphPage(GraphPage): 38 172 s = jd_sd.warmstate.get_location_str(op.getarglist()[2:]) 173 s = s.replace(',', '.') # we use comma for argument splitting 174 op_repr = "debug_merge_point(%d, '%s')" % (op.getarg(1).getint(), s)adapter_adastrafanficcom.py https://code.google.com/p/fanficdownloader/ | Python | 239 lines
44 # get storyId from url--url validation guarantees query is only sid=1234 45 self.story.setMetadata('storyId',self.parsedUrl.query.split('=',)[1]) 46 48 # normalized story URL. 49 self._setURL('http://' + self.getSiteDomain() + '/viewstory.php?sid='+self.story.getMetadata('storyId')) 50 57 def getSiteExampleURLs(cls): 58 return "http://"+cls.getSiteDomain()+"/viewstory.php?sid=1234" 59 60 def getSiteURLPattern(self): 61 return re.escape("http://"+self.getSiteDomain()+"/viewstory.php?sid=")+r"\d+$" 62 99 ## Title 100 a = soup.find('a', href=re.compile(r'viewstory.php\?sid='+self.story.getMetadata('storyId')+"$")) 101 self.story.setMetadata('title',stripHTML(a))helper.js https://bitbucket.org/dinhtrung/yiicorecms/ | JavaScript | 412 lines
7 * @copyright 2010, 2011 KCFinder Project 8 * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 9 * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 113 114 var dirs = path.split('/'); 115 var escapePath = ''; 193 var nameEQ = name + '='; 194 var kukis = document.cookie.split(';'); 195 var kuki;results_viewer.class.php https://bitbucket.org/chamilo/chamilo-app-assessment-dev/ | PHP | 213 lines
1<?php 2 14/** 15 * $Id: results_viewer.class.php 193 2009-11-13 11:53:37Z chellee $ 16 * @package application.lib.assessment.assessment_manager.component 17 */ 18require_once dirname(__FILE__) . '/../assessment_manager.class.php'; 19require_once dirname(__FILE__) . '/../../../trackers/assessment_question_attempts_tracker.class.php'; 19require_once dirname(__FILE__) . '/../../../trackers/assessment_question_attempts_tracker.class.php'; 20require_once dirname(__FILE__) . '/../../../trackers/assessment_assessment_attempts_tracker.class.php'; 21 122 { 123 require_once (Path :: get_application_path() . '/assessment/php/reporting/templates/assessment_attempts_summary_template.class.php'); 124 136 { 137 require_once (Path :: get_application_path() . '/assessment/php/reporting/templates/assessment_attempts_template.class.php'); 138tpl_modules_products_all_listing.php http://daocart.googlecode.com/svn/trunk/ | PHP | 216 lines
1<?php 2/** 4 * 5 * Loaded automatically by index.php?main_page=products_all.<br /> 6 * Displays listing of All Products 11 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 12 * @version $Id: tpl_modules_products_all_listing.php 6096 2007-04-01 00:43:21Z ajeh $ 13 */ 18 </tr> 19<?php 20 $group_id = zen_get_configuration_key_value('PRODUCT_ALL_LIST_GROUP_ID'); 21 22 if ($products_all_split->number_of_rows > 0) { 23 $products_all = $db->Execute($products_all_split->sql_query); 117?> 118 <tr class="<?php echo ((int)($row_counter/2)==($row_counter/2)) ? 'productListing-even' : 'productListing-odd'; ?>"> 119 <td width="<?php echo IMAGE_PRODUCT_ALL_LISTING_WIDTH + 10; ?>" valign="top" class="main" align="center">modx.panel.property.set-min.js http://modx-revo-ja.googlecode.com/svn/ | JavaScript | 1 lines
1MODx.panel.PropertySet=function(A){A=A||{};Ext.applyIf(A,{id:"modx-panel-property-sets",items:[{html:"<h2>"+_("propertysets")+"</h2>",cls:"modx-page-header",border:false},{layout:"form",bodyStyle:"padding: 15px;",id:"modx-property-set-form",border:true,items:[{html:"<p>"+_("propertysets_desc")+"</p>",id:"modx-property-set-msg",border:false},{layout:"column",border:false,items:[{columnWidth:0.3,style:"padding:10px;",border:false,items:[{xtype:"modx-tree-property-sets",preventRender:true}]},{columnWidth:0.7,style:"padding:10px;",layout:"form",border:false,autoHeight:true,items:[{id:"modx-grid-property-set-properties-ct",autoHeight:true}]}]}]}]});MODx.panel.PropertySet.superclass.constructor.call(this,A);(function(){MODx.load({xtype:"modx-grid-property-set-properties",id:"modx-grid-element-properties",xtype:"modx-grid-property-set-properties",autoHeight:true,renderTo:"modx-grid-property-set-properties-ct"});}).defer(50,this);};Ext.extend(MODx.panel.PropertySet,MODx.FormPanel);Ext.reg("modx-panel-property-sets",MODx.panel.PropertySet);MODx.grid.PropertySetProperties=function(A){A=A||{};Ext.applyIf(A,{autoHeight:true,lockProperties:false,tbar:[{xtype:"modx-combo-property-set",id:"modx-combo-property-set",baseParams:{action:"getList"},listeners:{"select":{fn:function(B){Ext.getCmp("modx-grid-element-properties").changePropertySet(B);},scope:this}},value:""},{text:_("property_create"),handler:function(B,C){Ext.getCmp("modx-grid-element-properties").create(B,C);},scope:this},"->",{text:_("propertyset_save"),handler:function(){Ext.getCmp("modx-grid-element-properties").save();},scope:this}]});MODx.grid.PropertySetProperties.superclass.constructor.call(this,A);};Ext.extend(MODx.grid.PropertySetProperties,MODx.grid.ElementProperties);Ext.reg("modx-grid-property-set-properties",MODx.grid.PropertySetProperties);MODx.tree.PropertySets=function(A){A=A||{};Ext.applyIf(A,{rootVisible:false,enableDD:false,title:"",url:MODx.config.connectors_url+"element/propertyset.php",baseParams:{action:"getNodes"},tbar:[{text:_("propertyset_new"),handler:this.createSet,scope:this}],useDefaultToolbar:true});MODx.tree.PropertySets.superclass.constructor.call(this,A);this.on("click",this.loadGrid,this);};Ext.extend(MODx.tree.PropertySets,MODx.tree.Tree,{loadGrid:function(C,B){var A=C.id.split("_");if(A[0]=="ps"){MODx.Ajax.request({url:MODx.config.connectors_url+"element/propertyset.php",params:{action:"getProperties",id:A[1]},listeners:{"success":{fn:function(F){var G=F.object;var E=Ext.getCmp("modx-grid-element-properties");var D=E.getStore();E.defaultProperties=G;delete E.config.elementId;delete E.config.elementType;D.removeAll();D.loadData(G);Ext.getCmp("modx-combo-property-set").setValue(A[1]);},scope:this}}});}else{if(A[0]=="el"&&A[2]&&A[3]){MODx.Ajax.request({url:MODx.config.connectors_url+"element/propertyset.php",params:{action:"getProperties",id:A[1],element:A[2],element_class:A[3]},listeners:{"success":{fn:function(F){var G=F.object;var E=Ext.getCmp("modx-grid-element-properties");var D=E.getStore();E.defaultProperties=G;E.config.elementId=A[2];E.config.elementType=A[3];D.removeAll();D.loadData(G);Ext.getCmp("modx-combo-property-set").setValue(A[1]);},scope:this}}});}}},createSet:function(A,B){if(!this.winCreateSet){this.winCreateSet=MODx.load({xtype:"modx-window-property-set-create",listeners:{"success":{fn:function(){this.refresh();Ext.getCmp("modx-combo-property-set").store.reload();},scope:this}}});}this.winCreateSet.show(B.target);},duplicateSet:function(A,C){var D=this.cm.activeNode.id.split("_");var B=this.cm.activeNode.attributes.data;B.id=D[1];B.new_name=_("duplicate_of",{name:B.name});if(!this.winDupeSet){this.winDupeSet=MODx.load({xtype:"modx-window-property-set-duplicate",record:B,listeners:{"success":{fn:function(){this.refresh();Ext.getCmp("modx-combo-property-set").store.reload();},scope:this}}});}this.winDupeSet.setValues(B);this.winDupeSet.show(C.target);},updateSet:function(A,C){var D=this.cm.activeNode.id.split("_");var B=this.cm.activeNode.attributes.data;B.id=D[1];if(!this.winUpdateSet){this.winUpdateSet=MODx.load({xtype:"modx-window-property-set-update",record:B,listeners:{"success":{fn:function(){this.refresh();Ext.getCmp("modx-combo-property-set").store.reload();},scope:this}}});}this.winUpdateSet.setValues(B);this.winUpdateSet.show(C.target);},removeSet:function(A,B){var C=this.cm.activeNode.id.split("_");C=C[1];MODx.msg.confirm({text:_("propertyset_remove_confirm"),url:MODx.config.connectors_url+"element/propertyset.php",params:{action:"remove",id:C},listeners:{"success":{fn:function(){this.refreshNode(this.cm.activeNode.id);var D=Ext.getCmp("modx-grid-element-properties");D.getStore().removeAll();D.defaultProperties=[];Ext.getCmp("modx-combo-property-set").setValue("");},scope:this}}});},addElement:function(B,C){var D=this.cm.activeNode.id.split("_");D=D[1];var A=this.cm.activeNode.text;if(!this.winPSEA){this.winPSEA=MODx.load({xtype:"modx-window-propertyset-element-add",record:{propertysetName:this.cm.activeNode.text,propertyset:D},listeners:{"success":{fn:function(){this.refreshNode(this.cm.activeNode.id,true);},scope:this}}});}this.winPSEA.show(C.target);},removeElement:function(A,B){var C=this.cm.activeNode.attributes;MODx.msg.confirm({text:_("propertyset_element_remove_confirm"),url:MODx.config.connectors_url+"element/propertyset.php",params:{action:"removeElement",element:C.pk,element_class:C.element_class,propertyset:C.propertyset},listeners:{"success":{fn:function(){this.refreshNode(this.cm.activeNode.id);},scope:this}}});}});Ext.reg("modx-tree-property-sets",MODx.tree.PropertySets);MODx.window.AddElementToPropertySet=function(A){A=A||{};Ext.applyIf(A,{title:_("propertyset_element_add"),url:MODx.config.connectors_url+"element/propertyset.php",baseParams:{action:"addElement"},width:400,fields:[{xtype:"hidden",name:"propertyset"},{xtype:"statictextfield",fieldLabel:_("propertyset"),name:"propertysetName",anchor:"95%"},{xtype:"modx-combo-element-class",fieldLabel:_("class_name"),name:"element_class",id:"modx-combo-element-class",anchor:"95%",listeners:{"select":{fn:this.onClassSelect,scope:this}}},{xtype:"modx-combo-elements",fieldLabel:_("element"),name:"element",id:"modx-combo-elements",anchor:"95%"}]});MODx.window.AddElementToPropertySet.superclass.constructor.call(this,A);};Ext.extend(MODx.window.AddElementToPropertySet,MODx.Window,{onClassSelect:function(A){var B=Ext.getCmp("modx-combo-elements").store;B.baseParams.element_class=A.getValue();B.load();}});Ext.reg("modx-window-propertyset-element-add",MODx.window.AddElementToPropertySet);MODx.combo.ElementClass=function(A){A=A||{};Ext.applyIf(A,{name:"element_class",hiddenName:"element_class",displayField:"name",valueField:"name",fields:["name"],listWidth:300,editable:false,url:MODx.config.connectors_url+"element/index.php",baseParams:{action:"getClasses"}});MODx.combo.ElementClass.superclass.constructor.call(this,A);};Ext.extend(MODx.combo.ElementClass,MODx.combo.ComboBox);Ext.reg("modx-combo-element-class",MODx.combo.ElementClass);MODx.combo.Elements=function(A){A=A||{};Ext.applyIf(A,{name:"element",hiddenName:"element",displayField:"name",valueField:"id",fields:["id","name"],listWidth:300,editable:false,url:MODx.config.connectors_url+"element/index.php",baseParams:{action:"getListByClass",element_class:"modSnippet"}});MODx.combo.Elements.superclass.constructor.call(this,A);};Ext.extend(MODx.combo.Elements,MODx.combo.ComboBox);Ext.reg("modx-combo-elements",MODx.combo.Elements);MODx.window.CreatePropertySet=function(A){A=A||{};Ext.applyIf(A,{title:_("propertyset_create"),url:MODx.config.connectors_url+"element/propertyset.php",baseParams:{action:"create"},width:550,fields:[{xtype:"textfield",fieldLabel:_("name"),name:"name",id:"modx-cpropset-name",anchor:"95%",allowBlank:false},{xtype:"modx-combo-category",fieldLabel:_("category"),name:"category",id:"modx-cpropset-category",anchor:"95%",allowBlank:true},{xtype:"textarea",fieldLabel:_("description"),name:"description",id:"modx-cpropset-description",anchor:"95%",grow:true}]});MODx.window.CreatePropertySet.superclass.constructor.call(this,A);};Ext.extend(MODx.window.CreatePropertySet,MODx.Window);Ext.reg("modx-window-property-set-create",MODx.window.CreatePropertySet);MODx.window.UpdatePropertySet=function(A){A=A||{};Ext.applyIf(A,{title:_("propertyset_update"),url:MODx.config.connectors_url+"element/propertyset.php",baseParams:{action:"update"},width:550,fields:[{xtype:"hidden",name:"id",id:"modx-upropset-id"},{xtype:"textfield",fieldLabel:_("name"),name:"name",id:"modx-upropset-name",anchor:"95%",allowBlank:false},{xtype:"modx-combo-category",fieldLabel:_("category"),name:"category",id:"modx-upropset-category",anchor:"95%",allowBlank:true},{xtype:"textarea",fieldLabel:_("description"),name:"description",id:"modx-upropset-description",anchor:"95%",grow:true}]});MODx.window.UpdatePropertySet.superclass.constructor.call(this,A);};Ext.extend(MODx.window.UpdatePropertySet,MODx.Window);Ext.reg("modx-window-property-set-update",MODx.window.UpdatePropertySet);MODx.window.DuplicatePropertySet=function(A){A=A||{};Ext.applyIf(A,{title:_("propertyset_duplicate"),url:MODx.config.connectors_url+"element/propertyset.php",baseParams:{action:"duplicate"},width:550,fields:[{xtype:"hidden",name:"id",id:"modx-dpropset-id"},{xtype:"textfield",fieldLabel:_("new_name"),name:"new_name",anchor:"95%",value:_("duplicate_of",{name:A.record.name})},{xtype:"checkbox",boxLabel:_("propertyset_duplicate_copyels"),labelSeparator:"",name:"copyels",id:"modx-dpropset-copyels",checked:true}]});MODx.window.DuplicatePropertySet.superclass.constructor.call(this,A);};Ext.extend(MODx.window.DuplicatePropertySet,MODx.Window);Ext.reg("modx-window-property-set-duplicate",MODx.window.DuplicatePropertySet);RUBY.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 166 lines
15 * 16 * LICENSE: This source file is subject to version 3.0 of the PHP license 17 * that is available through the world-wide-web at the following URI: 17 * that is available through the world-wide-web at the following URI: 18 * http://www.php.net/license/3_0.txt. If you did not receive a copy of 19 * the PHP License and are unable to obtain it through the web, please 19 * the PHP License and are unable to obtain it through the web, please 20 * send a note to license@php.net so we can mail you a copy immediately. 21 * 22 * @copyright 2004-2006 Andrey Demenev 23 * @license http://www.php.net/license/3_0.txt PHP License 24 * @link http://pear.php.net/package/Text_Highlighter 44 * @copyright 2004-2006 Andrey Demenev 45 * @license http://www.php.net/license/3_0.txt PHP License 46 * @version Release: 0.7.1webkit.js git://github.com/openmelody/melody.git | JavaScript | 303 lines
14 * 15 * Read the full licence: http://www.opensource.org/licenses/lgpl-license.php 16 */ 83 84 // split big files, highlighting parts of it 85 split : function(code,flag) { 118 o = o.replace(/<.*?>/g,''); 119 x = z = this.split(o,flag); 120 x = x.replace(/\n/g,'<br>'); 126 127 editor.innerHTML = this.actions.history[this.actions.next()] = (flag=='scroll') ? x : o.split(z).join(x); 128 if(flag!='init') this.findString(); 133 words = rangeAndCaret[0].substring(rangeAndCaret[1]-40,rangeAndCaret[1]); 134 words = words.replace(/[\s\n\r\);\W]/g,'\n').split('\n'); 135 return words[words.length-1].replace(/[\W]/gi,'').toLowerCase();DooPager.php http://doophp.googlecode.com/svn/trunk/ | PHP | 417 lines
1<?php 2/** 5 * @author Leng Sheng Hong <darkredz@gmail.com> 6 * @link http://www.doophp.com/ 7 * @copyright Copyright © 2009 Leng Sheng Hong 7 * @copyright Copyright © 2009 Leng Sheng Hong 8 * @license http://www.doophp.com/license 9 */ 48 * @author Leng Sheng Hong <darkredz@gmail.com> 49 * @version $Id: DooPager.php 1000 2009-08-21 15:27:22 50 * @package doo.helper 138 /** 139 * Total items to be split in the pagination 140 * @var intAkLocaleManager.php http://akelosframework.googlecode.com/svn/trunk/ | PHP | 389 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 22 23require_once(AK_LIB_DIR.DS.'AkObject.php'); 24 50 while (false !== ($entry = $d->read())) { 51 if (preg_match('/\\.php$/', $entry)){ 52 $locale = str_replace('.php','',$entry); 92 $browser_accepted_languages = str_replace('-','_', strtolower(preg_replace('/q=[0-9\.]+,*/','',@$_SERVER['HTTP_ACCEPT_LANGUAGE']))); 93 $browser_languages = (array_diff(split(';|,',$browser_accepted_languages.','), array(''))); 94 if(empty($browser_languages)){ 155 $used_entries = AkLocaleManager::getUsedLanguageEntries(); 156 require(AK_CONFIG_DIR.DS.'locales'.DS.AK_FRAMEWORK_LANGUAGE.'.php'); 157 $core_dictionary = $dictionary; 164 $controller = $k; 165 $module_lang_file = AK_APP_DIR.DS.'locales'.DS.$controller.DS.AK_FRAMEWORK_LANGUAGE.'.php'; 166 if(is_file($module_lang_file)){class.PluginMySQLDAO.php git://github.com/ginatrapani/ThinkUp.git | PHP | 253 lines
1<?php 2/** 3 * 4 * ThinkUp/webapp/_lib/model/class.PluginMySQLDAO.php 5 * 165 foreach ($plugin_files as $pf) { 166 foreach (glob(THINKUP_WEBAPP_PATH.'plugins/'.$pf."/controller/".$pf.".php") as $includefile) { 167 $fhandle = fopen($includefile, "r"); 171 if (isset($plugin_vals['class'])) { 172 require_once THINKUP_WEBAPP_PATH.'plugins/'.$pf."/model/class.".$plugin_vals['class'].".php"; 173 $installed_plugin = new $plugin_vals['class']($plugin_vals); 205 206 $scriptData = preg_split('/[\n\r]+/', $scriptData); 207 foreach ($scriptData as $line) {css.php https://bitbucket.org/rhizomatik/lorea_production/ | PHP | 331 lines
1<?php 2/** 5 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 6 * @author Andreas Gohr <andi@splitbrain.org> 7 */ 11if(!defined('DOKU_DISABLE_GZIP_OUTPUT')) define('DOKU_DISABLE_GZIP_OUTPUT',1); // we gzip ourself here 12require_once(DOKU_INC.'inc/init.php'); 13require_once(DOKU_INC.'inc/pageutils.php'); 13require_once(DOKU_INC.'inc/pageutils.php'); 14require_once(DOKU_INC.'inc/httputils.php'); 15require_once(DOKU_INC.'inc/io.php'); 15require_once(DOKU_INC.'inc/io.php'); 16require_once(DOKU_INC.'inc/confutils.php'); 17 29 * 30 * @author Andreas Gohr <andi@splitbrain.org> 31 */elgg.class.php https://bitbucket.org/rhizomatik/lorea_production/ | PHP | 353 lines
1<?php 2/** 5 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 6 * @author Andreas Gohr <andi@splitbrain.org> 7 * @author Chris Smith <chris@jalakai.co.uk> 10define('DOKU_AUTH', dirname(__FILE__)); 11require_once(DOKU_AUTH.'/basic.class.php'); 12 12 13//define('AUTH_USERFILE',DOKU_CONF.'users.auth.php'); 14 46 * 47 * @author Andreas Gohr <andi@splitbrain.org> 48 * @return bool 69 * 70 * @author Andreas Gohr <andi@splitbrain.org> 71 */sfCommandManager.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 382 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: sfCommandManager.class.php 9801 2008-06-23 15:12:05Z fabien $ 18 */ 109 { 110 // hack to split arguments with spaces : --test="with some spaces" 111 $arguments = preg_replace('/(\'|")(.+?)\\1/e', "str_replace(' ', '=PLACEHOLDER=', '\\2')", $arguments); 111 $arguments = preg_replace('/(\'|")(.+?)\\1/e', "str_replace(' ', '=PLACEHOLDER=', '\\2')", $arguments); 112 $arguments = preg_split('/\s+/', $arguments); 113 $arguments = str_replace('=PLACEHOLDER=', ' ', $arguments);array-tests.php git://github.com/nicolasff/phpredis.git | PHP | 526 lines
1<?php 2 2 3require_once(dirname($_SERVER['PHP_SELF'])."/test.php"); 4echo "Redis Array tests.\n\n"; 44 foreach($this->strings as $k => $v) { 45 list($host, $port) = split(':', $this->ra->_target($k)); 46 365 // connect to the target host 366 list($host,$port) = split(':', $target); 367 $r = new Redis; 466 public function testDiscard() { 467 /* phpredis issue #87 */ 468 $key = 'test_err';BCDClass.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 223 lines
1<?php 2 140 141 $newSignature1=str_split($newSignature,2); 142 for ($i=0;$i<count($newSignature1);$i++){ 146 147 $partitionStart1=str_split($partitionStart,2); 148 for ($i=0;$i<count($partitionStart1);$i++){Request.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 372 lines
1<?php 2/** 4 * 5 * Adapted from Andy Smith's OAuth library for PHP 6 * 8 * @link http://oauth.googlecode.com/svn/spec/ext/consumer_request/1.0/drafts/1/spec.html 9 * @link http://oauth.googlecode.com/svn/code/php/ 10 * @link http://term.ie/oauth/example/ 15 * @copyright Copyright (c) 2008, Photobucket, Inc. 16 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 17 */ 21 */ 22require_once ('OAuth/Utils.php'); 23/** 25 */ 26require_once ('OAuth/Signature.php'); 27/**README.md git://github.com/silverstripe/sapphire.git | Markdown | 329 lines
1# PHP PEG - A PEG compiler for parsing text in PHP 2 8- Write a parser. A parser is a PHP class with a grammar contained within it in a special syntax. The filetype is .peg.inc. See the examples directory. 9- Compile the parser. php ./cli.php ExampleParser.peg.inc > ExampleParser.php 10- Use the parser (you can also include code to do this in the input parser - again see the examples directory): 40 41Base rules can be split over multiple lines as long as subsequent lines are indented 42 63 64This might get looser if I get around to re-writing the internal "parser parser" in php-peg, bootstrapping the whole thing 65 190 191All functions that are not in-grammar must have PHP compatible names (see PHP name mapping). In-grammar functions will have their names converted if needed. 192 211 212Rules in the grammar map to php functions named `match_{$rulename}`. However rule names can contain characters that php functions can't. 213These characters are remapped:Code128.php git://github.com/zendframework/zf2.git | PHP | 312 lines
1<?php 2/** 162 $barcodePattern = $this->codingMap[$barcodeChar]; 163 foreach (str_split($barcodePattern) as $c) { 164 $barcodeTable[] = array($c, $this->barThinWidth, 0, 1);ObjectCollectionTest.php git://github.com/cakephp/cakephp.git | PHP | 395 lines
1<?php 2/** 4 * 5 * PHP 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 15 * @package Cake.Test.Case.Utility 15 * @package Cake.Test.Case.Utility 16 * @since CakePHP(tm) v 2.0 17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 59 public function load($object, $settings = array()) { 60 list($plugin, $name) = pluginSplit($object); 61 if (isset($this->_loaded[$name])) {ir_black_new.vim git://github.com/dakrone/dakrone-dotfiles.git | Vim Script | 215 lines
75 76hi VertSplit guifg=#202020 guibg=#202020 gui=NONE ctermfg=darkgray ctermbg=darkgray cterm=NONE 77hi StatusLine guifg=#CCCCCC guibg=#202020 gui=italic ctermfg=white ctermbg=darkgray cterm=NONE 213 214" Special for PHP 215Makefile git://github.com/MythTV/mythtv.git | Makefile | 195 lines
35 graphdump.o \ 36 graphparser.o \ 37 src_buffer.o \ 53OBJS-$(CONFIG_ASHOWINFO_FILTER) += af_ashowinfo.o 54OBJS-$(CONFIG_ASPLIT_FILTER) += split.o 55OBJS-$(CONFIG_ASTREAMSYNC_FILTER) += af_astreamsync.o 112OBJS-$(CONFIG_SLICIFY_FILTER) += vf_slicify.o 113OBJS-$(CONFIG_SPLIT_FILTER) += split.o 114OBJS-$(CONFIG_SUPER2XSAI_FILTER) += vf_super2xsai.oPhabricatorRepositoryGitCommitChangeParserWorker.php git://github.com/facebook/phabricator.git | PHP | 257 lines
1<?php 2 49 $old_hash, $new_hash, 50 $more_stuff) = preg_split('/ +/', $line); 51facebox.js http://swe574-g1.googlecode.com/svn/trunk/ | JavaScript | 210 lines
8 * Licensed under the MIT: 9 * http://www.opensource.org/licenses/mit-license.php 10 * 133 if (this.href.match(/#/)) { 134 var url = window.location.href.split('#')[0] 135 var target = this.href.replace(url,'')inventory_move.php http://tracmor.googlecode.com/svn/trunk/ | PHP | 218 lines
1<?php 2require_once('../includes/prepend.inc.php'); 6 // authenticate error 7 QApplication::Redirect('./index.php'); 8} 28 $blnErrorCurrentInventory = false; 29 list($strInventoryModelCode, $strSourceLocation, $intQuantity) = split('[|]',$strInventoryCodeLocationQuantity,3); 30 if ($strInventoryModelCode && $strSourceLocation && $intQuantity) { 169 170 $strWarning .= "Your transaction has successfully completed<br /><a href='index.php'>Main Menu</a> | <a href='inventory_menu.php'>Inventory Menu</a><br />"; 171 //Remove that flag when transaction is compelete or exists some errors 183 foreach ($arrCheckedInventoryCodeLocationQuantity as $strInventoryCodeLocationQuantity) { 184 list($strInventoryModelCode, $strSourceLocation, $intQuantity) = split('[|]',$strInventoryCodeLocationQuantity,3); 185 $strJavaScriptCode .= "AddInventoryPost('".$strInventoryModelCode."','".$strSourceLocation."','".$intQuantity."');"; 192 193require_once('./includes/header.inc.php'); 194?>tableExtractor.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 383 lines
1<?php 2 5 =============== 6 Table extractor is a php class that can extract almost any table 7 from any html document/page, and then convert that html table into 7 from any html document/page, and then convert that html table into 8 a php array. 9 10 Version 1.3 11 Compatibility: PHP 4.4.1 + 12 Copyright Jack Sleight - www.reallyshiny.com 53 54 // php 4 compatibility functions 55 if(!function_exists('stripos')) { 111 $pattern = '/(<\/?(?:tr|td).*?>)/is'; 112 $table = preg_split($pattern, $this->cleanHTML, -1, PREG_SPLIT_DELIM_CAPTURE); 113vcf_to_maf_customtrack.py https://bitbucket.org/cistrome/cistrome-harvard/ | Python | 152 lines
40 gt_indexes = [] 41 for i in sample_value[ gt_index ].replace( '|', '/' ).replace( '\\', '/' ).split( '/' ): #Do we need to consider phase here? 42 try: 119 #FIXME: 120 ## skip non-spec. compliant data, see: http://1000genomes.org/wiki/doku.php?id=1000_genomes:analysis:vcf3.3 for format spec 121 ## this check is due to data having indels not represented in the published format spec,default.py http://seppius-xbmc-repo.googlecode.com/svn/trunk/ | Python | 213 lines
29 30phpsessid_file = os.path.join(xbmc.translatePath('special://temp/'), 'plugin_video_tvhere.sess') 31thumb = os.path.join( os.getcwd(), "icon.png" ) 51 request.add_header('Referer', ref) 52 if os.path.isfile(phpsessid_file): 53 fh = open(phpsessid_file, 'r') 55 fh.close() 56 request.add_header('Cookie', 'PHPSESSID=' + phpsessid) 57 o = urllib2.urlopen(request) 79 splitparams={} 80 splitparams=pairsofparams[i].split('=') 81 if (len(splitparams))==2: 81 if (len(splitparams))==2: 82 param[splitparams[0]]=splitparams[1] 83 return paramSimpy.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: Simpy.php 8064 2008-02-16 10:58:39Z thomas $ 22 */ 59 */ 60 require_once 'Zend/Rest/Client.php'; 61 $this->_rest = new Zend_Rest_Client($this->_baseUri); 97 */ 98 require_once 'Zend/Service/Exception.php'; 99 throw new Zend_Service_Exception($message, $code); 108 */ 109 require_once 'Zend/Service/Exception.php'; 110 throw new Zend_Service_Exception('HTTP ' . $response->getStatus()); 132 */ 133 require_once 'Zend/Service/Simpy/TagSet.php'; 134 return new Zend_Service_Simpy_TagSet($doc);jquery.uploadify.js http://bitcero-modules.googlecode.com/svn/ | JavaScript | 259 lines
34 uploader : 'uploadify.swf', // The path to the uploadify swf file 35 script : 'uploadify.php', // The path to the uploadify backend upload script 36 expressInstall : null, // The path to the express install swf file 59 var pagePath = location.pathname; 60 pagePath = pagePath.split('/'); 61 pagePath.pop(); 111 } 112 var sizeParts = byteSize.toString().split('.'); 113 if (sizeParts.length > 1) { 231 if (settingName == 'scriptData') { 232 var returnSplit = unescape(returnValue).split('&'); 233 var returnObj = new Object(); 234 for (var i = 0; i < returnSplit.length; i++) { 235 var iSplit = returnSplit[i].split('='); 236 returnObj[iSplit[0]] = iSplit[1];plain.class.php https://bitbucket.org/rhizomatik/lorea_production/ | PHP | 325 lines
1<?php 2/** 5 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 6 * @author Andreas Gohr <andi@splitbrain.org> 7 * @author Chris Smith <chris@jalakai.co.uk> 10define('DOKU_AUTH', dirname(__FILE__)); 11require_once(DOKU_AUTH.'/basic.class.php'); 12 12 13define('AUTH_USERFILE',DOKU_CONF.'users.auth.php'); 14 51 * 52 * @author Andreas Gohr <andi@splitbrain.org> 53 * @return bool 72 * 73 * @author Andreas Gohr <andi@splitbrain.org> 74 */template_user_form.class.php https://bitbucket.org/chamilo/chamilo-survey/ | PHP | 300 lines
1<?php 2namespace repository\content_object\survey; 84 $attributes = array(); 85 $attributes['search_url'] = Path :: get(WEB_PATH) . 'common/libraries/php/xml_feeds/xml_user_group_feed.php'; 86 $locale = array(); 103 $label = $labels[0] . ' ' . $labels[1]; 104 $url = Path :: get_repository_content_object_path(true) . 'survey/php/xml_feeds/xml_context_feed.php?context_type=' . $type; 105 250 { 251 $split = explode('_', $property_name); 252 $level = $split[1];UtilityTest.php git://github.com/brianhaveri/Underscore.php.git | PHP | 212 lines
1<?php 2 2 3class UnderscoreUtilityTest extends PHPUnit_Framework_TestCase { 4 60 'myReverse' => function($string) { 61 $chars = str_split($string); 62 krsort($chars); 91 $result = $fancyTemplate(array('people'=>array('moe'=>'Moe', 'larry'=>'Larry', 'curly'=>'Curly'))); 92 $this->assertEquals('<ul><li>Moe</li><li>Larry</li><li>Curly</li></ul>', $result, 'can run arbitrary php in templates'); 93 132 $result = $custom(array('people'=>array('moe'=>'Moe', 'larry'=>'Larry', 'curly'=>'Curly'))); 133 $this->assertEquals("<ul><li>Moe</li><li>Larry</li><li>Curly</li></ul>", $result, 'can run arbitrary php in templates using custom tags'); 134 147 $result = $customWithSpecialChars(array('people'=>array('moe'=>'Moe', 'larry'=>'Larry', 'curly'=>'Curly'))); 148 $this->assertEquals("<ul><li>Moe</li><li>Larry</li><li>Curly</li></ul>", $result, 'can run arbitrary php in templates'); 149jquery.treeview.js http://openconstructor.googlecode.com/svn/trunk/ | JavaScript | 269 lines
9 * Dual licensed under the MIT and GPL licenses: 10 * http://www.opensource.org/licenses/mit-license.php 11 * http://www.gnu.org/licenses/gpl.html 85 var classes = ""; 86 $.each($(this).parent().attr("class").split(" "), function() { 87 classes += this + "-hitarea "; 179 if ( stored ) { 180 var data = stored.split(""); 181 branches.each(function(i, e) { 217 var current = this.find("img").filter(function() { 218 ids = $.cookie('curnode').split(','); 219 return ids.find($(this).attr('index'));adapter_twilightednet.py https://code.google.com/p/fanficdownloader/ | Python | 254 lines
45 # get storyId from url--url validation guarantees query is only sid=1234 46 self.story.setMetadata('storyId',self.parsedUrl.query.split('=',)[1]) 47 49 # normalized story URL. 50 self._setURL('http://' + self.getSiteDomain() + '/viewstory.php?sid='+self.story.getMetadata('storyId')) 51 62 def getSiteExampleURLs(cls): 63 return "http://www.twilighted.net/viewstory.php?sid=1234" 64 65 def getSiteURLPattern(self): 66 return re.escape("http://")+r"(www\.)?"+re.escape("twilighted.net/viewstory.php?sid=")+r"\d+$" 67 87 88 loginUrl = 'http://' + self.getSiteDomain() + '/user.php?action=login' 89 logger.debug("Will now login to URL (%s) as (%s)" % (loginUrl,Rule.php git://github.com/peteboere/css-crush.git | PHP | 375 lines
1<?php 2/** 23 24 $selectors_match = CssCrush::splitDelimList( $selector_string, ',' ); 25 $this->parens += $selectors_match->matches; 41 // Parse the declarations chunk 42 // Need to split safely as there are semi-colons in data-uris 43 $declarations_match = CssCrush::splitDelimList( $declarations_string, ';' ); 290 $expression = trim( $this->parens[ $m[1] ], '()' ); 291 $parts = preg_split( $reg_comma, $expression, null, PREG_SPLIT_NO_EMPTY ); 292TestXML.hx git://github.com/MarcWeber/haxe-compiler-experiments.git | Haxe | 243 lines
55 #end 56 #if (flash8 || php) 57 eq( Xml.parse('"').toString(), '"' ); // flash8 has bad habits of escaping entities 105 var b = el.next(); 106 #if (flash || php) 107 eq( b.firstChild(), null); 107 eq( b.firstChild(), null); 108 eq( x.toString().split("\n").join("\\n"), '<a> </a><b/> \\n <c/>' ); 109 #else 110 eq( b.firstChild().nodeValue, ""); 111 eq( x.toString().split("\n").join("\\n"), '<a> </a><b></b> \\n <c/>' ); 112 #end 206 207 #if php 208 // and € creates an invalid entity error (first time I see PHP being strict !)init.MultiBlog.php git://github.com/openmelody/melody.git | PHP | 336 lines
1<?php 2# Movable Type (r) Open Source (C) 2001-2009 Six Apart, Ltd. 194 # parse range blog ids out 195 $list = preg_split('/\s*,\s*/', $val); 196 foreach ($list as $item) { 204 } else { 205 $blogs = preg_split('/\s*,\s*/', $val); 206 }Simpy.php http://grupal.googlecode.com/svn/trunk/ | PHP | 434 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: Simpy.php 24593 2012-01-05 20:35:02Z 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);Message.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 24 */ 25require_once 'Zend/Mime.php'; 26 29 */ 30require_once 'Zend/Mime/Part.php'; 31 243 { 244 require_once 'Zend/Mime/Decode.php'; 245 $parts = Zend_Mime_Decode::splitMessageStruct($message, $boundary, $EOL);windowsOppClass.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 158 lines
1<?php 2 148 fseek($f,72,SEEK_CUR ); 149 foreach(array_reverse(str_split(trim($x),2)) as $h){ 150 fwrite($f,chr(hexdec($h)));index.php git://github.com/forkcms/forkcms.git | PHP | 301 lines
1<?php 2 191 // load akismet 192 require_once PATH_LIBRARY . '/external/akismet.php'; 193 204 { 205 // split on newlines 206 $domains = explode("\n", trim($this->frm->getField('site_domains')->getValue())); 279 { 280 // split on newlines 281 $domains = explode("\n", trim($this->frm->getField('site_domains')->getValue()));swfobject.js http://miacms.googlecode.com/svn/trunk/ | JavaScript | 235 lines
4 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License: 5 * http://www.opensource.org/licenses/mit-license.php 6 * 21 if(h) { this.setAttribute('height', h); } 22 if(ver) { this.setAttribute('version', new deconcept.PlayerVersion(ver.toString().split("."))); } 23 this.installedVer = deconcept.SWFObjectUtil.getPlayerVersion(); 134 if(x && x.description) { 135 PlayerVersion = new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split(".")); 136 } 169 if (axo != null) { 170 PlayerVersion = new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(",")); 171 } 193 if(q) { 194 var pairs = q.substring(1).split("&"); 195 for (var i=0; i < pairs.length; i++) {ModelForm.php https://bitbucket.org/zurmo/zurmo/ | PHP | 283 lines
1<?php 2 /********************************************************************************* 125 * Override to properly check if the attribute is required or not. 126 * (non-PHPdoc) 127 * @see CModel::isAttributeRequired() 180 * Override of setAttributes in CModel to support setting attributes into this form as well 181 * as the related model. Splits $values into two arrays. First array is name/value pairs of attributes 182 * on this form, whereas the second array is name/value pairs on the model. 224 * Todo: Factor in scenario for model attributes. 225 * (non-PHPdoc) 226 * @see CModel::getValidators()NpgsqlError.cs git://github.com/mono/mono.git | C# | 361 lines
9// npgsql-general@gborg.postgresql.org 10// http://gborg.postgresql.org/project/npgsql/projdisplay.php 11// 263 264 Parts = Raw.Split(new char[] {':'}, 2); 265 292 293 Parts = Raw.Split(new char[] {':'}, 2); 294utility_helper.php https://bitbucket.org/seezoo/seezoo/ | PHP | 440 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 29 { 30 // PHP5.1.0以前はstrtotimeは-1を返却するのでここで吸収 31 if ((int)strtotime($datetime) < 1) 365 366 // split header 367 $exp = explode("\r\n\r\n", $resp);exceptions.py git://github.com/appcelerator/titanium_mobile.git | Python | 256 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:add_img.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 206 lines
1<?php 2 16{ 17 require_once ( NV_ROOTDIR . '/' . NV_EDITORSDIR . '/' . NV_EDITOR . '/nv.php' ); 18} 72 $homeimgfile = NV_DOCUMENT_ROOT . $data['path']; 73 require_once ( NV_ROOTDIR . "/includes/class/image.class.php" ); 74 $basename = basename( $homeimgfile ); 109 { 110 list( $mo, $data['name'] ) = split( '[/.]', $data['path'] ); // 111 } 116 $adb->freeResult(); 117 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=listimg&idb=" . $data['albumid'] ); 118 die(); 130 $adb->freeResult(); 131 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=listimg&idb=" . $data['albumid'] ); 132 die();PoliciesFormUtil.php https://bitbucket.org/zurmo/zurmo/ | PHP | 229 lines
1<?php 2 /********************************************************************************* 47 * @code 48 <?php 49 $data = array( 188 { 189 $concatenatedIndex = $form::resolveNameForDelimiterSplit($concatenatedIndex, $delimiter); 190 $moduleClassName = self::getModuleClassNameFromPostConcatenatedIndexString($concatenatedIndex);ARC2_StoreLoadQueryHandler.php https://code.google.com/p/s3db/ | PHP | 387 lines
1<?php 2/* 142 $refresh_lock = 0; 143 $split_tables = 0; 144 if (($this->t_count % ($this->write_buffer_size * 2)) == 0) { 147 $refresh_lock = 1; 148 $split_tables = 1; 149 } 153 } 154 $this->checkSQLBuffers($force_write, $reset_buffers, $refresh_lock, $split_tables); 155 } 319 320 function checkSQLBuffers($force_write = 0, $reset_id_buffers = 0, $refresh_lock = 0, $split_tables = 0) { 321 $con = $this->store->getDBCon();jquery.epiclock.js http://migrid.googlecode.com/svn/trunk/ | JavaScript | 505 lines
5 * Dual licensed under: 6 * MIT: http://www.opensource.org/licenses/mit-license.php 7 * GPLv3: http://www.opensource.org/licenses/gpl-3.0.html 173 var object = $(this), 174 format = (options.format || defaults.formats[options.mode]).split(''), 175 isBuffering = false, 232 233 var format = format.split(''), 234 buffer = '',Date.php https://bitbucket.org/chamilo/chamilo/ | PHP | 184 lines
1<?php 2// +----------------------------------------------------------------------+ 2// +----------------------------------------------------------------------+ 3// | PHP versions 4 and 5 | 4// +----------------------------------------------------------------------+ 9// | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB | 10// | API as well as database abstraction for PHP applications. | 11// | This LICENSE is in the BSD license style. | 44// 45// $Id: Date.php 137 2009-11-09 13:24:37Z vanpouckesven $ 46// 55 * Several methods to convert the MDB2 native timestamp format (ISO based) 56 * to and from data structures that are convenient to worth with in side of php. 57 * For more complex date arithmetic please take a look at the Date package in PEAR 166 * convert a MDB2 timestamp into an array containing all 167 * values necessary to pass to php's date() function 168 *tbs_plugin_syntaxes.php http://xfw-xkid-framework.googlecode.com/svn/trunk/ | PHP | 150 lines
1<?php 2 110 function OnMergeGroup(&$RecInfo,&$GrpDef,&$DataSrc,&$LocR) { 111 // Excuted before a header, a footer or a splitter section is merged. (supported since TBS 3.3.0) 112 // If the function returns False, then the section of the group is not merged.2dbarcodes.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 202 lines
1<?php 2//============================================================+ 2//============================================================+ 3// File name : 2dbarcodes.php 4// Version : 1.0.007 29// 30// Description : PHP class to creates array representations for 31// 2D barcodes to be used with TCPDF. 36/** 37 * PHP class to creates array representations for 2D barcodes to be used with TCPDF. 38 * @package com.tecnick.tcpdf 47/** 48 * PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).<br> 49 * @name TCPDFBarcode 102 { // QR-CODE 103 require_once (dirname(__FILE__) . '/qrcode.php'); 104 if (! isset($mode[1]) or (! in_array($mode[1], array('L', 'M', 'Q', 'H'))))de_TVInfo.py http://xbmc-scripting.googlecode.com/svn/trunk/ | Python | 150 lines
4# Notes: 5# From www.tvinfo.de (using their older web pages - http://www.tvinfo.de/exe.php3) 6# 15import xbmcgui, re, time 16from string import split, replace, find, rfind, atoi, zfill 17from os import path 23 self.cache = cache 24 self.name = os.path.splitext(os.path.basename( __file__))[0] # get filename without path & ext 25 self.BASE_URL = "http://www.tvinfo.de/" 25 self.BASE_URL = "http://www.tvinfo.de/" 26 self.CHANNELS_URL= self.BASE_URL + "my.php3?target=abfrage_sender" 27 # $DAY and $MONTH tobe zero filled, YEAR YYYY 27 # $DAY and $MONTH tobe zero filled, YEAR YYYY 28 self.CHANNEL_URL = self.BASE_URL + "exe.php3?target=senderlist.inc&h=0&min=00&newD=$DAY&newM=$MONTH&newY=$YEAR&showSenderID=$CHID" 29 self.CHANNELS_FN = os.path.join(cache,"Channels_"+ self.name + ".dat")myocamlbuild.ml git://github.com/camlunity/ocaml-quickcheck.git | OCaml | 505 lines
219 (** OCamlbuild extension, copied from 220 * http://brion.inria.fr/gallium/index.php/Using_ocamlfind_with_ocamlbuild 221 * by N. Pouillard and others 235 236 let split s ch = 237 let x = 250 251 let split_nl s = split s '\n' 252 259 let find_packages () = 260 List.map before_space (split_nl & run_and_read "ocamlfind list") 261Cell.php https://PHPExcel.svn.codeplex.com/svn | PHP | 565 lines
29/** PHPExcel_Cell_DataType */ 30require_once 'PHPExcel/Cell/DataType.php'; 31 32/** PHPExcel_Cell_DataValidation */ 33require_once 'PHPExcel/Cell/DataValidation.php'; 34 35/** PHPExcel_Worksheet */ 36require_once 'PHPExcel/Worksheet.php'; 37 38/** PHPExcel_Calculation */ 39require_once 'PHPExcel/Calculation.php'; 40 46 * @package PHPExcel 47 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 48 */myocamlbuild.ml git://github.com/xen-org/xenops.git | OCaml | 478 lines
217 (** OCamlbuild extension, copied from 218 * http://brion.inria.fr/gallium/index.php/Using_ocamlfind_with_ocamlbuild 219 * by N. Pouillard and others 233 234 let split s ch = 235 let x = 248 249 let split_nl s = split s '\n' 250 257 let find_packages () = 258 List.map before_space (split_nl & run_and_read "ocamlfind list") 259syntax.php https://bitbucket.org/wez/mtrack/ | PHP | 196 lines
1<?php # vim:ts=2:sw=2:et: 2/* For licensing and copyright terms, see the file named LICENSE */ 19 'css' => 'css', 20 'php' => 'php', 21 'php3' => 'php', 21 'php3' => 'php', 22 'php4' => 'php', 23 'php5' => 'php', 23 'php5' => 'php', 24 'phtml' => 'php', 25 'pl' => 'perl', 45 'css' => 'CSS (Cascading Style Sheet)', 46 'php' => 'PHP', 47 'perl' => 'Perl', 146 if (strlen($type) && isset(self::$langs[$type])) { 147 require_once dirname(__FILE__) . '/hyperlight/hyperlight.php'; 148 $hl = new Hyperlight($type);XmlPropertyTask.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 286 lines
1<?php 2 3/* 4 * $Id: XmlPropertyTask.php 971 2010-11-08 21:13:11Z mrook $ 5 * 22 23include_once 'phing/tasks/system/PropertyTask.php'; 24 118 /** 119 * Delimiter for splitting multiple values. 120 * 274 // <project> 275 // <exclude>file/a.php</exclude> 276 // <exclude>file/a.php</exclude> 278 // 279 // Would be come project.exclude = file/a.php,file/a.php 280 $p = empty($prefix) ? $tag : $prefix . $tag;WigetBrowserAdmin.cs http://zero-k.googlecode.com/svn/trunk/ | C# | 291 lines
23 this.m_baseAdminUrl = serverUrl; 24 this.m_baseAdminUrlPoint = m_baseAdminUrl + "/admin.php?"; 25 } 31 32 m_baseAdminUrlPoint = m_baseAdminUrl + "/admin.php?" + "lname=" + username + "&pwstr=" + this.passwordMd5 + "&"; 33 } 42 string res = this.doRequest(m_baseAdminUrl + "/admin/version.txt"); 43 string[] split = res.Split(':'); 44 46 47 version = Decimal.Parse(split[0], culture); 48 filename = split[1];SocketConnection.hx git://github.com/outbounder/org.abn.haxe.git | Haxe | 408 lines
29import neko.net.Socket; 30#elseif php 31import php.net.Host; 31import php.net.Host; 32import net.php.Socket; 33#elseif cpp 39 TODO 40 - php! 41 - flash/js maxBufSize 41 - flash/js maxBufSize 42 - split outgoing (big) packets ? 43*/ 45 46 #if (neko||php||cpp) 47 public static var defaultBufSize = (1<<8); // 128submit_gel.inc.php http://prohits.googlecode.com/svn/trunk/ | PHP | 384 lines
18 19require("classes/gel_class.php"); 20require("classes/plate_class.php"); 42 imageFullName = imageFullName.replace(regEx, '/'); 43 var imageNameArr = imageFullName.split('/') 44 var imageName = imageNameArr[imageNameArr.length-1]; 65 theForm.theaction.value = ""; 66 theForm.action = "bait.php"; 67 theForm.submit(); 73function go_back(){ 74 document.location = "./gel.php?theaction=viewall<?echo ($sub)?"&sub=$sub":"";?>"; 75} 76function check_spillover(Gel_ID){ 77 file = "checkspillover.php?Gel_ID="+Gel_ID; 78 newwin = window.open(file,"",'toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=550,height=400');RightsCache.php https://bitbucket.org/zurmo/zurmo/ | PHP | 102 lines
1<?php 2 /********************************************************************************* 37 /** 38 * This is a rights caching helper. Currently it just wraps the general cache until we can split out the caching 39 * in memcache by categories. This way in the future we can flush just the rights cache instead of having to flushxml.class.php http://wikiplot.googlecode.com/svn/trunk/ | PHP | 398 lines
1<?php 2/* 30 * <code> 31 * <?php 32 * $xml_data = "<root> 213 * 214 * The function uses xml_parse() function from XML Parser Functions in PHP 215 * and parses only the first tag in the given XML data and ignores 272 { 273 //Split the given XML data by using $Separator 274 $InterestedTags = explode($this->Separator , $this->Input);ErrorHandler.php git://github.com/cakephp/cakephp.git | PHP | 227 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.Error 17 * @package Cake.Error 18 * @since CakePHP(tm) v 0.10.5.1732 19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 48 * This gives you full control over the exception handling process. The class you choose should be 49 * loaded in your app/Config/bootstrap.php, so its available to handle any exceptions. You can 50 * define the handler as any callback type. Using Exception.handler overrides all other exception 107 * @return void 108 * @see http://php.net/manual/en/function.set-exception-handler.php 109 */zones.php http://daocart.googlecode.com/svn/trunk/ | PHP | 233 lines
95<!-- header //--> 96<?php require(DIR_WS_INCLUDES . 'header.php'); ?> 97<!-- header_eof //--> 122 $zones_query_raw = "select z.zone_id, c.countries_id, c.countries_name, z.zone_name, z.zone_code, z.zone_country_id from " . TABLE_ZONES . " z, " . TABLE_COUNTRIES . " c where z.zone_country_id = c.countries_id order by c.countries_name, z.zone_name"; 123 $zones_split = new splitPageResults($_GET['page'], MAX_DISPLAY_SEARCH_RESULTS, $zones_query_raw, $zones_query_numrows); 124 $zones = $db->Execute($zones_query_raw); 149 <tr> 150 <td class="smallText" valign="top"><?php echo $zones_split->display_count($zones_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_ZONES); ?></td> 151 <td class="smallText" align="right"><?php echo $zones_split->display_links($zones_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page']); ?></td> 226<!-- footer //--> 227<?php require(DIR_WS_INCLUDES . 'footer.php'); ?> 228<!-- footer_eof //--> 231</html> 232<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> 233config.php http://webhoneypot.googlecode.com/svn/trunk/ | PHP | 381 lines
104 # 105 # Reference: http://us.php.net/manual/en/features.commandline.php 106 # 111 112 $phpMinVersion = "5.0.0"; 113 $aVersionParts = explode ( '.', PHP_VERSION ); 113 $aVersionParts = explode ( '.', PHP_VERSION ); 114 $aMinVersionParts = explode ( '.', $phpMinVersion ); 115 $nMax = max ( array_merge ( $aVersionParts + $aMinVersionParts ) ); 130 if ($nMinVersion <= $nVersion) { 131 echo "( " . PHP_VERSION . " > " . $phpMinVersion . ") "; 132 echo "[ OK ]" . "\n"; 134 echo "[ FAILED ]" . "\n"; 135 echo "PhP >= $phpMinVersion is required!\n"; 136 exit ( 1 );tests.clj git://github.com/clojure/data.finger-tree.git | Clojure | 357 lines
13 [clojure.data.finger-tree 14 :only [finger-tree meter conjl ft-concat ft-split-at split-tree 15 opfn idElem measure measured to-tree getMeter 65 66 (let [[l m r] (ft-split-at counted-tree -1)] 67 (is (instance? tree-type l)) 77 (let [len (count expected-vec) 78 [l m r] (ft-split-at counted-tree len)] 79 (is (instance? tree-type l)) 88 89(deftest CDLSplit 90 (let [basevec (vec (map #(format "x%02d" %) (range 50)))] 232 (is (= [len split-i (make-item split-i)] 233 [len split-i (second (split-tree tree #(< split-i (:len %))))]))))) 234additional-methods.js git://github.com/jzaefferer/jquery-validation.git | JavaScript | 301 lines
9 * Dual licensed under the MIT and GPL licenses: 10 * http://www.opensource.org/licenses/mit-license.php 11 * http://www.gnu.org/licenses/gpl.html 137 if( re.test(value)){ 138 var adata = value.split('/'); 139 var gg = parseInt(adata[0],10);skeinforge.py http://replicatorg.googlecode.com/svn/ | Python | 315 lines
113forum thread at: 114http://forums.reprap.org/read.php?1,12143 115 116using the M-Apps package, which is at: 117http://forums.reprap.org/file.php?1,file=772 118 143A gode example is at: 144http://forums.reprap.org/file.php?12,file=565 145 172a sometimes out of date version is in the last reprap_python_beanshell.zip attachment in the "Skeinforge Powwow" thread at: 173http://forums.reprap.org/read.php?12,20013 174 190Then you can ask for skeinforge help by sending a private message through the forum software by going to my page at: 191http://forums.reprap.org/profile.php?12,488 192search.php https://bitbucket.org/wez/mtrack/ | PHP | 440 lines
1<?php # vim:ts=2:sw=2:et: 2/* For licensing and copyright terms, see the file named LICENSE */ 3 4include MTRACK_INC_DIR . '/search/lucene.php'; 5include MTRACK_INC_DIR . '/search/solr.php'; 118 if (preg_match("/^help$/i", $q)) { 119 return array("Help on $q", $ABSWEB . 'help.php'); 120 } 123 $t = $M[1]; 124 $url = $ABSWEB . "ticket.php/$t"; 125 return array("<a href='$url' class='ticketlink'>Ticket #$t</a>", $url); 128 $t = $M[1]; 129 $url = $ABSWEB . "ticket.php/$t"; 130 return array("<a href='$url' class='ticketlink'>Ticket #$t</a>", $url); 134 $tkts = array(); 135 foreach (preg_split("/\s+/", $q) as $id) { 136 if ($id[0] == '#') $id = substr($id, 1);setup.js http://subsonicbox.googlecode.com/svn/trunk/ | JavaScript | 283 lines
12 $.ajax({ 13 url:'setup.php', 14 data:({ 35 $.ajax({ 36 url:'setup.php', 37 data:({ 64 $.ajax({ 65 url:'setup.php', 66 data:({ profile:'true',create:'true',username:$('#prof_user').val(),password:$('#prof_pass').val(),shuffle:'true',repeat:'true',timestamp:'true' }), 97 $.ajax({ 98 url:'setup.php', 99 data:({ setfolders:'true', folder:folders }), 103 $.ajax({ 104 url:'setup.php', 105 data:({ profile:'true' }),TestBasetypes.hx git://github.com/MarcWeber/haxe-compiler-experiments.git | Haxe | 406 lines
33 unspec(function() String.fromCharCode(256)); 34#if php 35 eq( Std.string(null) + "x", "nullx" ); 41 42 var abc = "abc".split(""); 43 eq( abc.length, 3 ); 120 121 // I don't think this should throw an exception on PHP. 122 try { 165 166 #if (js || flash8 || as3 || php) 167Process.hx git://github.com/Yoomee/clippy.git | Haxe | 140 lines
24 */ 25package php.io; 26 88 var pipes = untyped __call__("array"); 89 var descriptorspec = untyped __php__("array( 90 array('pipe', 'r'), 103 for(arg in args) { 104 arg = arg.split('"').join('\"'); 105 if(arg.indexOf(' ') >= 0) 117 function replaceStream(input : haxe.io.Input) { 118 var fp = untyped __call__("fopen", "php://memory", "r+"); 119 while(true) { 130 while(status[untyped 'running']) { 131 php.Sys.sleep(0.01); 132 status = untyped __call__('proc_get_status', p);table.php http://myopensources.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/* 2/* 3 $Id: table.php 1739 2007-12-20 00:52:16Z hpdl $ 4 56 57 $table_cost = split("[:,]" , MODULE_SHIPPING_TABLE_COST); 58 $size = sizeof($table_cost);Mail.php git://github.com/osCommerce/oscommerce.git | PHP | 375 lines
1<?php 2/** 115 'mimetype' => $mimetype, 116 'data' => chunk_split(base64_encode($data))); 117 } 131 'mimetype' => $mimetype, 132 'data' => chunk_split(base64_encode($data))); 133 }manage.php git://github.com/moodle/moodle.git | PHP | 263 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 24 25require_once('../config.php'); 26require_once($CFG->libdir.'/tablelib.php'); 26require_once($CFG->libdir.'/tablelib.php'); 27require_once('lib.php'); 28require_once($CFG->libdir.'/adminlib.php'); 69$tagarea = core_tag_area::get_by_id($tagareaid); 70$manageurl = new moodle_url('/tag/manage.php'); 71if ($tagcoll) { 170 $tagslist = optional_param('tagslist', '', PARAM_RAW); 171 $newtags = preg_split('/\s*,\s*/', trim($tagslist), -1, PREG_SPLIT_NO_EMPTY); 172 $tagobjects = core_tag_tag::create_if_missing($tagcoll->id, $newtags, true); 209// Form to filter tags. 210print('<form class="tag-filter-form" method="get" action="'.$CFG->wwwroot.'/tag/manage.php">'); 211print('<div class="tag-management-form generalbox"><label class="accesshide" for="id_tagfilter">'. get_string('search') .'</label>'.xpdorevisioncontrol.class.php git://github.com/modxcms/revolution.git | PHP | 363 lines
1<?php 2/** 48 function diff($text1, $text2) { 49 $array1= $this->_split($text1); 50 $array2= $this->_split($text2); 219 function patch($text, $patch) { 220 $array= $this->_split($text); 221 349 350 function _split($text) { 351 $array= explode("\n", $text);index.php http://zero-k.googlecode.com/svn/trunk/ | PHP | 351 lines
3require 'functions.php'; 4require 'login.php'; // fills id_user, power, db, login, anon variables 5 25 // login form 26 echo "<a href='index.php'>Refresh</a><br>"; 27 echo "<div style='border: 1px dotted blue'><b><i>Login: </i></b><br>"; 81 <tr><td>Question: </td><td><textarea name="question" cols="40"><?= $pinfo["question"] ?></textarea></td></tr> 82 <?php 83 $res = $db->query("SELECT * FROM Options WHERE id_poll = $_GET[id_poll] AND abstain = 0 ORDER BY id"); 305 if ($power > 0) $admin = "<a href='index.php?act=reopenpoll&id_poll=$arr[id]'>Reopen</a>"; 306 if ($power > 1) $admin.= " | <a href='index.php?act=deletepoll&id_poll=$arr[id]'>Delete</a>"; 307 tablerow(7, "<a href='index.php?limitone=$arr[id]&traclink=1'>Details</a>^".linkify($arr[question])."^".linkify($arr[resolution])."^".display_weight($arr[resolution_percentage])."^$arr[creator]^".($arr[secret]?"yes":"no")."^$admin"); 316 while (($arr = $res->fetch())) { 317 if ($power > 1) $admin = "<a href='index.php?act=adduser&uid=$arr[id]'>Edit</a> | <a href='index.php?act=deleteuser&uid=$arr[id]'>Delete</a>"; 318 else $admin = "";product_listing.php http://daocart.googlecode.com/svn/trunk/ | PHP | 224 lines
1<?php 2/** 8 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 9 * @version $Id: product_listing.php 6787 2007-08-24 14:06:33Z drbyte $ 10 */ 14$show_submit = zen_run_normal(); 15$listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_PRODUCTS_LISTING, 'p.products_id', 'page'); 16$zco_notifier->notify('NOTIFY_MODULE_PRODUCT_LISTING_RESULTCOUNT', $listing_split->number_of_rows); 72 73if ($listing_split->number_of_rows > 0) { 74 $rows = 0; 74 $rows = 0; 75 $listing = $db->Execute($listing_split->sql_query); 76 $extra_row = 0; 204 205if (($how_many > 0 and $show_submit == true and $listing_split->number_of_rows > 0) and (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART == 1 or PRODUCT_LISTING_MULTIPLE_ADD_TO_CART == 3) ) { 206 $show_top_submit_button = true;tpl_modules_products_featured_listing.php http://goldcat.googlecode.com/svn/ | PHP | 214 lines
1<?php 2/** 4 * 5 * Loaded automatically by index.php?main_page=featured_products.<br /> 6 * Displays listing of Featured Products 11 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 12 * @version $Id: tpl_modules_products_featured_listing.php 4261 2006-08-25 04:35:20Z ajeh $ 13 */ 18 </tr> 19<?php 20 $group_id = zen_get_configuration_key_value('PRODUCT_FEATURED_LIST_GROUP_ID'); 21 22 if ($featured_products_split->number_of_rows > 0) { 23 $featured_products = $db->Execute($featured_products_split->sql_query); 115 <tr> 116 <td width="<?php echo IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH + 10; ?>" valign="top" class="main" align="center"> 117 <?phpURI.php git://github.com/pyrocms/pyrocms.git | PHP | 654 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 * 89 // Is the request coming from the command line? 90 if (php_sapi_name() == 'cli' or defined('STDIN')) 91 { 200 } 201 $parts = preg_split('#\?#i', $uri, 2); 202 $uri = $parts[0]; 218 219 $uri = parse_url($uri, PHP_URL_PATH); 220 254 { 255 // preg_quote() in PHP 5.3 escapes -, so the str_replace() and addition of - to preg_quote() is to maintain backwards 256 // compatibility as many are unaware of how characters in the permitted_uri_chars will be parsed as a regex patternBIFFwriter.php https://PHPExcel.svn.codeplex.com/svn | PHP | 266 lines
1<?php 2/* 2/* 3* Module written/ported by Xavier Noguer <xnoguer@php.net> 4* 11* I _DO_ maintain this code, and John McNamara has nothing to do with the 12* porting of this code to PHP. Any questions directly related to this 13* class library should be directed to me. 16* 17* PHPExcel_Writer_Excel5_Writer: A library for generating Excel Spreadsheets 18* Copyright (c) 2002-2003 Xavier Noguer xnoguer@php.net 46* 47* @author Xavier Noguer <xnoguer@php.net> 48* @category PHPExcel 48* @category PHPExcel 49* @package PHPExcel_Writer_Excel5 50*/Def_use.cpp http://phc.googlecode.com/svn/trunk/ | C++ | 479 lines
1/* 2 * phc -- the open source PHP compiler 3 * See doc/license/README.license for licensing information 88 * - if there is a kill for a variable first, it is a must-def. If there is 89 * not, it is a may-def. Uses arent split into may- and must- defs. 90 *user.php https://bitbucket.org/wez/mtrack/ | PHP | 409 lines
1<?php # vim:ts=2:sw=2:et: 2/* For copyright and licensing terms, see the file named LICENSE */ 107 $keys = array(); 108 $lines = preg_split("/\r?\n/", $this->sshkeys); 109 foreach ($lines as $line) { 110 if (!strlen($line)) continue; 111 list($type, $key, $name) = preg_split("/\s+/", $line); 112 $keys[$name] = array( 371 $link->class = 'userlink'; 372 $link->url = $GLOBALS['ABSWEB'] . 'user.php/' . $username; 373 if ($link->label === null) {jquery.miner.taglist.js http://pymine.googlecode.com/svn/trunk/ | JavaScript | 283 lines
7 * Dual licensed under the MIT and GPL licenses: 8 * http://www.opensource.org/licenses/mit-license.php 9 * http://www.gnu.org/licenses/gpl.html 99 extractExistingTags : function(el) { 100 return that.splitTagString(el.attr("value")); 101 }, 108 result[i].data = result[i].tagName; 109 result[i].value = that.splitTagString(result[i].tagImplies) 110 } 150 }, 151 splitTagString : function(string) { 152 return $.grep((string||"").split(/\s+/), function(s){return s!=""});upgrade_schema.php git://github.com/facebook/phabricator.git | PHP | 201 lines
1#!/usr/bin/env php 2<?php 20$root = dirname(dirname(dirname(__FILE__))); 21require_once $root.'/scripts/__init_script__.php'; 22 71 72// Split out port information, since the command-line client requires a 73// separate flag for the port. 138 139 if (preg_match('/\.php$/', $patch['path'])) { 140 $schema_conn = $conn; 189 echo 190 "usage: upgrade_schema.php [-v version] [-u user -p pass] [-f] [-h]". 191 "\n\n". 191 "\n\n". 192 "Run 'upgrade_schema.php -u root -p hunter2' to override the configured ". 193 "default user.\n".user.js http://nuke-viet.googlecode.com/svn/trunk/ | JavaScript | 0 lines
9 if(point==1 || point==2 || point==3 || point==4 || point==5){ 10 nv_ajax('post', nv_siteroot + 'index.php', nv_lang_variable + '=' + nv_sitelang + '&' + nv_name_variable + '=' + nv_module_name + '&' + nv_fc_variable + '=rating&id=' + id + '&checkss=' + newscheckss + '&point=' + point, 'stringrating', ''); 11 } 41 nv_change_captcha('vimg', 'commentseccode_iavim'); 42 var r_split = res.split("_"); 43 if (r_split[0] == 'OK') { 45 nv_show_hidden('showcomment', 1); 46 nv_show_comment(r_split[1], r_split[2], r_split[3]); 47 alert(r_split[4]); 72function nv_del_content_result(res) { 73 var r_split = res.split("_"); 74 if (r_split[0] == 'OK') { 75 window.location.href = strHref; 76 } else if (r_split[0] == 'ERR') { 77 alert(r_split[1]);ClassRegistry.php git://github.com/cakephp/cakephp.git | PHP | 347 lines
1<?php 2/** 6 * 7 * PHP 5 8 * 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 17 * @package Cake.Utility 18 * @since CakePHP(tm) v 0.9.2 19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 115 116 list($plugin, $class) = pluginSplit($class); 117 if ($plugin) {class.themeEditor.php https://bitbucket.org/dotclear/dotclear/ | PHP | 373 lines
1<?php 2# -- BEGIN LICENSE BLOCK --------------------------------------- 54 55 public function filesList($type,$item='%1$s',$split=true) 56 { 63 $list = ''; 64 if ($split) { 65 $list_theme = ''; // Files from current theme