100+ results results for 'php split repo:ethanal/tj-career-center-database-manager' (304 ms)
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); 148ko.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", //MISSINGWireLog.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 *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)) {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']);permissions_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'), 176SortedTreeNodeBase_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();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;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;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') 220jquery.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 ('.')]) 165image.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))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);graph_processor.h git://github.com/chromium/chromium.git | C Header | 231 lines
15 16class GraphProcessor { 17 public: 34 private: 35 friend class GraphProcessorTest; 36 118 * 119 * The not-owned size of the owned dump is split among its owners in the 120 * order of the ownership importance as demonstrated by the following 132 * 133 * Explanation: Firstly, 6 bytes are split equally among OWNER1 and OWNER2 134 * (highest importance). OWNER2 owns one more byte, so its attributed 148 * 0 1 2 3 4 5 6 7 8 9 10 149 * Priority 2 | OWNER1 + OWNER2 (split) | OWNER2 | 150 * Priority 1 | (already attributed) |API.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),02_Routing.md git://github.com/silverstripe/sapphire.git | Markdown | 297 lines
57 58```php 59// GET /teams/ 95 96```php 97// GET /teams/players/1/ 152 153Using `$@` will split the URL into numbered parameters (`$1`, `$2`, ..., `$n`). For example: 154 154 155```php 156<?php 174 175```php 176<?phpmyocamlbuild.ml git://github.com/mirage/dyntype.git | OCaml | 492 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") 261State.php git://pkgs.fedoraproject.org/horde | PHP | 417 lines
1<?php 2 4 * SyncML_State object and its property objects from the session. */ 5require_once 'SyncML/DeviceInfo.php'; 6require_once 'SyncML/Device.php'; 6require_once 'SyncML/Device.php'; 7require_once 'SyncML/Constants.php'; 8require_once 'SyncML/Command/SyncElement.php'; 12 * 13 * $Horde: framework/SyncML/SyncML/State.php,v 1.17.2.19 2009/04/07 11:12:54 jan Exp $ 14 * 29 * 30 * This is not to confuse with the PHP session id, though it is part of 31 * the generated PHP session id. 56 * 57 * Can be used to identify the client and is part of the PHP session id. 58 *Web.hx https://code.google.com/p/hxjava/ | Haxe | 355 lines
21 for( p in ~/[;&]/g.split(params) ) { 22 var a = p.split("="); 23 var n = a.shift(); 37 If you have in your URL the parameters [a[]=foo;a[]=hello;a[5]=bar;a[3]=baz] then 38 [php.Web.getParamValues("a")] will return [["foo","hello",null,"baz",null,"bar"]] 39 **/ 253 public static function getAuthorization() : { user : String, pass : String } { 254 if(!untyped __php__("isset($_SERVER['PHP_AUTH_USER'])")) 255 return null; 255 return null; 256 return untyped {user: __php__("$_SERVER['PHP_AUTH_USER']"), pass: __php__("$_SERVER['PHP_AUTH_PW']")}; 257 } 342 public static function getMethod() : String { 343 if(untyped __php__("isset($_SERVER['REQUEST_METHOD'])")) 344 return untyped __php__("$_SERVER['REQUEST_METHOD']");AzureStorage.php https://code.google.com/p/celebrio/ | PHP | 252 lines
1<?php 2 91 * the size of uploaded file is greater then 64Mb. It takes incoming string 92 * (data) and splits them into blocks of data which will be uploaded 93 * on server separately and then confirmed by putBlockList method.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)); 279department.blade.php https://bitbucket.org/the_purple_power/final_is2_web.git | PHP | 308 lines
2@section('content') 3 @php 4 $par = collect($params); 6 7 @endphp 8 <div class="row"> 164 e.preventDefault(); 165 // console.log($(this).attr('href')/*.split('page=')[1]*/); 166 axios.get($(this).attr('href')).then(function (response) { //todomarshall.inc http://drawshield.googlecode.com/svn/trunk/ | PHP | 282 lines
1<?php /* Copyright 2010 Karl R. Wilcox 2 155 156 $splits = array ( 157 array ( 'impaled', 'impaled !with' ), 165 $node = null; 166 if ( ($match = search_match($splits)) != null ) { 167 $half = $dom->createElement($match[0]); 234 235 $splits = array ( 236 array ( 'impaled', 'impaled with' ), 253 // Now do it all again, in case of "A impaled with B" 254 if ( ($match = search_match($splits)) != null ) { 255 $node2 = builtin();utility.js http://ozgb2c-ruby-on-rails.googlecode.com/svn/trunk/ | JavaScript | 493 lines
67 var thisHREF = document.location.href; 68 var tmpHPage = thisHREF.split( "/" ); 69 var thisHPage = tmpHPage[ tmpHPage.length-1 ]; 258function compdate(a, b) { 259 var arr = a.split("-"); 260 var starttime = new Date(arr[0], arr[1], arr[2]); 262 263 var arrs = b.split("-"); 264 var lktime = new Date(arrs[0], arrs[1], arrs[2]); 300 else { 301 var beginTimes = beginTime.substring(0, 10).split('-'); 302 var endTimes = endTime.substring(0, 10).split('-'); 379function strToDate(dateString) { 380 var d = dateString.split(' '); 381postgres_driver.inc http://scalr.googlecode.com/svn/ | PHP | 657 lines
1<?php 2 3/** 4 * ADOdb Lite is a PHP class to encapsulate multiple database APIs and is compatible with 5 * a subset of the ADODB Command Syntax. 41 if ($this->connect_string) { 42 $host = split(":", $this->connect_string); 43 if ($host[0]) $this->connect_string = "host=" . $this->query_addslashes($host[0]); 205 if (!$magic_quotes) { 206 if (strnatcmp(PHP_VERSION, '4.2.0') >= 0) { 207 return "'" . pg_escape_string($string) . "'";MDocType.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 //Batch.php https://bitbucket.org/hfab/webservice.git | PHP | 556 lines
1<?php 2 3/** 4 * ArangoDB PHP client: batch 5 * 96 * <li>'batchSize' - Defines a fixed array size for holding the batch parts. The id's of the batch parts can only be integers. 97 * When this option is defined, the batch mechanism will use an SplFixedArray instead of the normal PHP arrays. 98 * In most cases, this will result in increased performance of about 5% to 15%, depending on batch size and data.</li> 374 /** 375 * Split batch request and use ContentId as array key 376 * 383 */ 384 public function splitWithContentIdKey($pattern, $string) 385 { 448 $body = trim($body, '--' . HttpHelper::MIME_BOUNDARY . '--'); 449 $batchParts = $this->splitWithContentIdKey('--' . HttpHelper::MIME_BOUNDARY . HttpHelper::EOL, $body); 450jquery.treeview.js https://hg01.codeplex.com/koobootoolkit | JavaScript | 256 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 90 var classes = ""; 91 $.each($(this).parent().attr("class").split(" "), function () { 92 classes += this + "-hitarea "; 181 if (stored) { 182 var data = stored.split(""); 183 branches.each(function (i, e) {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');ScoutControllerRaider.java git://pkgs.fedoraproject.org/spring | Java | 280 lines
18// You can find the licence also on the web at: 19// http://www.opensource.org/licenses/gpl-license.php 20// 145 @Override 146 public void commandReceived( String cmdline, String[]splitString, int player ) 147 {x11_font.cc git://pkgs.fedoraproject.org/coot | C++ | 324 lines
11 Public License along with this library. If not, copies may be 12 downloaded from http://www.ccp4.ac.uk/ccp4license.php 13 64 for(int i=0;i<nfonts;i++){ 65 std::vector<std::string> split_name = ParseX11Name(cfonts[i]); 66 if(std::string(cfonts[i]).find(std::string("omegaserif"))==std::string::npos){ 66 if(std::string(cfonts[i]).find(std::string("omegaserif"))==std::string::npos){ 67 if(FontCache::isFamilyCached(split_name[1])==-1){ 68 //std::cout << "Loading " << cfonts[i] << "\n"; std::cout.flush(); 130 std::vector<std::string> split_name = ParseX11Name(name); 131 if(split_name[1]==""||split_name[2]==""||split_name[3]==""||split_name[4]=="") 132 return finfo; 137 split_name[4] = split_name[4].substr(0,t); 138 std::string newname = std::string("-") + split_name[0] + std::string("-") + split_name[1] + std::string("-") + split_name[2] + std::string("-") + split_name[3] + std::string("-*--") + split_name[4] + std::string("-*-*-*-*-*-iso8859-*"); 139 //std::cout << "newname: " << newname << "\n";swfobject.js git://github.com/webmin/webmin.git | JavaScript | 5 lines
2 Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis 3 This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 4*/ 4*/ 5var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();historycompleter.cpp http://mingw-lib.googlecode.com/svn/trunk/ | C++ | 279 lines
148 // to e.g. give "www.phoronix.com" a bonus for "ph", it does _not_ make sense to 149 // give "www.yadda.com/foo.php" the bonus. 150 int frecency_l = sourceModel()->data(left, HistoryFilterModel::FrecencyRole).toInt(); 201 202QStringList HistoryCompleter::splitPath(const QString &path) const 203{GraphWidget.cpp git://pkgs.fedoraproject.org/edb | C++ | 381 lines
222 223 QPen graphPen(aggetToQColor(graph, "color", Qt::white)); 224 229 230 QGraphicsRectItem *item = scene_->addRect(subGraphRect, graphPen, graphBrush); 231 item->setZValue(INT_MIN); 265 const QString node_style = QString::fromUtf8(agget(node, const_cast<char *>("style"))); 266 const QStringList node_styles = node_style.split(","); 267ejs.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++) {History.php git://pkgs.fedoraproject.org/horde | PHP | 408 lines
1<?php 2/** 5 * 6 * $Horde: framework/History/History.php,v 1.28.2.25 2010/11/08 16:17:28 jan Exp $ 7 * 61 62 if (empty($conf['sql']['phptype']) || 63 $conf['sql']['phptype'] == 'none') { 68 69 require_once 'DB.php'; 70 $this->_write_db = &DB::connect($conf['sql']); 73 if (is_a($this->_write_db, 'DB_common')) { 74 switch ($this->_write_db->phptype) { 75 case 'mssql': 89 * seperately. */ 90 if (!empty($conf['sql']['splitread'])) { 91 $params = array_merge($conf['sql'], $conf['sql']['read']);swfobject.js http://bitstopdev-hostedqueuesys.googlecode.com/svn/trunk/ | JavaScript | 367 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 * 49 this.setAttribute("version", 50 new deconcept.PlayerVersion(_5.toString().split("."))); 51 } 225 { 226 _23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split(".")); 227 } 268 { 269 _23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(",")); 270 } 311 }if(q){ 312 var _2d=q.substring(1).split("&"); 313 for(var i=0;i<_2d.length;i++)query_builder.php http://hppg.googlecode.com/svn/trunk/ | PHP | 303 lines
1<?php 2/** 116 $tokens = array(); 117 $tokenArray = preg_split( '@(\s)|(["+():-])@', $searchQuery, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY ); 118 foreach ( $tokenArray as $token )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))))static.js https://github.com/paul999/ajax-shoutbox.git | JavaScript | 735 lines
5* @copyright (c) 2007 Paul Sohier 6* @license http://opensource.org/licenses/gpl-license.php GNU Public License 7* 38 39 err.name = "E_USER_ERROR";// Php error?!? :D 40 return err; 200 } 201 styles = styles.split(';'); 202 for (var j = 0; j < styles.length; j++) 203 { 204 var style = styles[j].split(':'); 205fcktablehandler.js https://xzwebshop.svn.codeplex.com/svn | JavaScript | 357 lines
5 * Licensed under the terms of the GNU Lesser General Public License: 6 * http://www.opensource.org/licenses/lgpl-license.php 7 * 232 233FCKTableHandler.SplitCell = function() 234{html.php git://github.com/ericbarnes/Status-Board.git | PHP | 344 lines
1<?php namespace Laravel; 2 47 48 return '<script src="'.$url.'"'.static::attributes($attributes).'></script>'.PHP_EOL; 49 } 75 76 return '<link href="'.$url.'"'.static::attributes($attributes).'>'.PHP_EOL; 77 } 319 320 foreach (str_split($value) as $letter) 321 {GraphPaths.js https://github.com/mongodb/mongo.git | JavaScript | 294 lines
3import { FixedSizeList } from "react-window"; 4import SplitPane from "react-split-pane"; 5import { makeStyles, withStyles } from "@material-ui/core/styles"; 18import { getSelected } from "./redux/store"; 19import { selectedGraphPaths, setSelectedPath } from "./redux/graphPaths"; 20 65 66const GraphPaths = ({ selectedNodes, graphPaths, setSelectedPath, width }) => { 67 const [fromNode, setFromNode] = React.useState(""); 188 <Paper elevation={3} style={{ backgroundColor: "rgba(0, 0, 0, .03)" }}> 189 <SplitPane 190 split="vertical" 271 </Accordion> 272 </SplitPane> 273 <Paper elevation={2} style={{ backgroundColor: "rgba(0, 0, 0, .03)" }}>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)TimeHelper.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 409 lines
6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package Cake.View.Helper 29 * @package Cake.View.Helper 30 * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/time.html 31 * @see CakeTime 202 * @return string Partial SQL string. 203 * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/time.html#formatting 204 */ 227 * @return boolean True if datetime string is today 228 * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/time.html#testing-time 229 */Document.php git://github.com/ThomasWeinert/FluentDOM.git | PHP | 364 lines
1<?php 2/* 6 * @copyright Copyright 2009-2021 FluentDOM Contributors 7 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 8 * 149 public function createElement($qualifiedName, $content = NULL, array $attributes = NULL): Element { 150 [$prefix, $localName] = QualifiedName::split($qualifiedName); 151 $namespaceURI = ''; 202 public function createAttribute($name, $value = NULL): Attribute { 203 [$prefix] = QualifiedName::split($name); 204 if (empty($prefix)) { 343 public function getElementsByTagName($qualifiedName): \DOMNodeList { 344 list($prefix, $localName) = QualifiedName::split($qualifiedName); 345 $namespaceURI = (string)$this->namespaces()->resolveNamespace((string)$prefix);qrsplit.php git://github.com/claudehohl/Stikked.git | 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 }QuickForm.php git://git.savannah.nongnu.org/gcourrier.git | PHP | 507 lines
1<?php /*-*-PHP-*-*/ 2/* 93 { 94 list($year, $month, $day) = split('-', $str); 95 return array('d' => $day, 'M' => $month, 'Y' => $year); 480 { 481 print "<form id='$this->name' action='{$_SERVER['PHP_SELF']}' method='$this->method'>"; 482 print "graph_legend.html http://openbiz-cubi.googlecode.com/svn/trunk/ | HTML | 182 lines
36 </div> 37 <div id="projectbrief">Open source PHP Framework that designed for building web application.</div> 38 </td> 78 </div> 79 <div id="splitbar" style="-moz-user-select:none;" 80 class="ui-resizable-handle">Route.php https://bitbucket.org/awylie199/s5t.git | PHP | 378 lines
1<?php 2/** 89 /** 90 * Prepares the route for mapping by splitting (exploding) it 91 * to a corresponding atomic parts. These parts are assigned 278 } else { 279 //--//require_once 'Zend/Controller/Router/Exception.php'; 280 throw new Am_Mvc_Router_Exception($name . ' is not specified');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))Categories.php git://github.com/imagecms/ImageCMS.git | PHP | 302 lines
1<?php 2 127 128 // splitting on those which need to be updated and new (by external id) 129 if (FALSE == $this->categoryExists($externalId)) {class.SMART.inc.php http://openbiz-cubi.googlecode.com/svn/trunk/ | PHP | 234 lines
12 * @version SVN: $Id: class.SMART.inc.php 522 2011-11-08 18:21:09Z jacky672 $ 13 * @link http://phpsysinfo.sourceforge.net 14 */ 56 case 'command': 57 $disks = preg_split('/([\s]+)?,([\s]+)?/', PSI_PLUGIN_SMART_DEVICES, -1, PREG_SPLIT_NO_EMPTY); 58 foreach ($disks as $disk) { 63 } 64 $fullIds = preg_split('/([\s]+)?,([\s]+)?/', PSI_PLUGIN_SMART_IDS, -1, PREG_SPLIT_NO_EMPTY); 65 foreach ($fullIds as $fullId) { 70 case 'data': 71 $disks = preg_split('/([\s]+)?,([\s]+)?/', PSI_PLUGIN_SMART_DEVICES, -1, PREG_SPLIT_NO_EMPTY); 72 $dn=0; 79 } 80 $fullIds = preg_split('/([\s]+)?,([\s]+)?/', PSI_PLUGIN_SMART_IDS, -1, PREG_SPLIT_NO_EMPTY); 81 foreach ($fullIds as $fullId) {MessageTest.php git://github.com/zendframework/zf2.git | PHP | 432 lines
1<?php 2/** 21 */ 22class MessageTest extends \PHPUnit_Framework_TestCase 23{ 110 111 $this->assertEquals(substr($message->getContent(), 0, 5), '<?php'); 112 116 117 $this->assertEquals(substr($message->getContent(), 0, 6), "\t<?php"); 118 } 136 137 $this->assertEquals(Mime\Decode::splitContentType($message->ContentType), 138 array('type' => 'multipart/alternative', 'boundary' => 'crazy-multipart')); 140 141 public function testSplitEmptyMessage() 142 {simple.js https://bitbucket.org/vionika/spin.android.git | JavaScript | 578 lines
20 * 21 * [1] http://ltp.sourceforge.net/coverage/lcov/geninfo.1.php 22 */ 41 var currFun = "<badfunction>"; 42 for (var line of source.split('\n')) { 43 currLine++; 43 currLine++; 44 for (var comment of line.split("//").slice(1)) { 45 if (!startsWithKey(comment)) 48 if (comment.startsWith("FN:")) 49 currFun = comment.split(',')[1]; 50 comment = comment.replace('$', currLine); 63 // Check that all the lines are present the result. 64 var lcovRes = lcovResRaw.split('\n'); 65 for (ref of lcovRef) {myocamlbuild.ml git://github.com/aryx/fork-ocsigen.git | OCaml | 504 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") 259Response.php git://github.com/eryx/php-framework-benchmark.git | PHP | 558 lines
1<?php 2 155 { 156 $lines = preg_split('/\r\n/', $string); 157 if (!is_array($lines) || count($lines)==1) { 157 if (!is_array($lines) || count($lines)==1) { 158 $lines = preg_split ('/\n/',$string); 159 } 504 * 505 * Currently requires PHP with zlib support 506 * 523 * 524 * Currently requires PHP with zlib support 525 *html4strict.php https://bitbucket.org/kostyantyn_kyyashko/kino-teatr.ua.git | PHP | 254 lines
1<?php 2/************************************************************************************* 2/************************************************************************************* 3 * html4strict.php 4 * --------------- 16 * 2004/11/27 (1.0.3) 17 * - Added support for multiple object splitters 18 * 2004/10/27 (1.0.2) 29 * * Eliminate empty tags that aren't allowed in HTML4 strict 30 * * Split to several files - html4trans, xhtml1 etc 31 * 230 'OOLANG' => false, 231 'OBJECT_SPLITTERS' => array( 232 ),AnyChart.js http://aita-appserver.googlecode.com/svn/trunk/ | JavaScript | 261 lines
15 * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License: 16 * http://www.opensource.org/licenses/mit-license.php 17 * 36 if(h) { this.setAttribute('height', h); } 37 if(ver) { this.setAttribute('version', new deconcept.PlayerVersion(ver.toString().split("."))); } 38 this.installedVer = deconcept.SWFObjectUtil.getPlayerVersion(); 153 if(x && x.description) { 154 PlayerVersion = new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split(".")); 155 } 175 if (axo != null) { 176 PlayerVersion = new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(",")); 177 } 198 if(q) { 199 var pairs = q.substring(1).split("&"); 200 for (var i=0; i < pairs.length; i++) {serialize_tools.py https://bitbucket.org/mariusmagureanu/vescu.git | Python | 304 lines
31 32__all__ = ('phpobject', 'convert_member_dict', 'dict_to_list', 'dict_to_tuple', 33 'load', 'loads', 'dump', 'dumps', 'serialize', 'unserialize') 37 if name[:1] == ' ': 38 name = name.split(None, 2)[-1] 39 return name 41 42class phpobject(object): 43 """Simple representation for PHP objects. This is used """ 43 """Simple representation for PHP objects. This is used """ 44 __slots__ = ('__name__', '__php_vars__') 45 49 object.__setattr__(self, '__name__', name) 50 object.__setattr__(self, '__php_vars__', d) 51LocalGeocoder.java git://github.com/winterstein/JTwitter.git | Java | 431 lines
24 * 25 * List of cities: see http://www.opengeocode.org/download.php#cities 26 * We do not use this -- because it contains (rightly) duplicates. 75 // expects: eg | data-sort-value="10.183"| 10°11′N ||data-sort-value="-68"| 68°00′W || [[Valencia, Venezuela|Valencia]] || [[Carabobo]] || {{VEN}} 76 String[] bits = line.split("\\|\\|"); 77 if (bits.length < 5) continue; 95 String name = bits[2]; 96 String[] splitname = name.split("\\|"); 97 String shortname = splitname[splitname.length-1].trim(); 328 if (line==null) break; 329 String[] bits = line.split("\\|"); 330 if (bits.length < 2) continue; 330 if (bits.length < 2) continue; 331 String[] names = bits[1].trim().split(";"); 332 String country = bits[0].trim();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;Metadata.pm git://pkgs.fedoraproject.org/perl-Package-Generator | Perl | 581 lines
183 apache => 'http://apache.org/licenses/LICENSE-2.0', 184 artistic => 'http://opensource.org/licenses/artistic-license.php', 185 artistic_2 => 'http://opensource.org/licenses/artistic-license-2.0.php', 185 artistic_2 => 'http://opensource.org/licenses/artistic-license-2.0.php', 186 lgpl => 'http://opensource.org/licenses/lgpl-license.php', 187 lgpl2 => 'http://opensource.org/licenses/lgpl-2.1.php', 188 lgpl3 => 'http://opensource.org/licenses/lgpl-3.0.html', 189 bsd => 'http://opensource.org/licenses/bsd-license.php', 190 gpl => 'http://opensource.org/licenses/gpl-license.php', 190 gpl => 'http://opensource.org/licenses/gpl-license.php', 191 gpl2 => 'http://opensource.org/licenses/gpl-2.0.php', 192 gpl3 => 'http://opensource.org/licenses/gpl-3.0.html', 192 gpl3 => 'http://opensource.org/licenses/gpl-3.0.html', 193 mit => 'http://opensource.org/licenses/mit-license.php', 194 mozilla => 'http://opensource.org/licenses/mozilla1.1.php',TableData_8java_source.html https://bitbucket.org/major_kellogs/lego_racing_flitzerblitzer.git | HTML | 108 lines
46$(function() { 47 initMenu('',true,false,'search.php','Search'); 48 $(document).ready(function() { init_search(); }); 58 </div> 59 <div id="splitbar" style="-moz-user-select:none;" 60 class="ui-resizable-handle">mempool_packages.py git://github.com/bitcoin/bitcoin.git | Python | 244 lines
3# Distributed under the MIT software license, see the accompanying 4# file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 25 connect_nodes(self.nodes[0], 1) 26 self.is_network_split = False 27 self.sync_all()tuto6.htm git://github.com/gallery/gallery3-contrib.git | 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:TreeMultiselectField.php git://github.com/silverstripe/sapphire.git | PHP | 300 lines
1<?php 2 127 if (is_array($sourceObject)) { 128 $values = is_array($this->value) ? $this->value : preg_split('/ *, */', trim($this->value)); 129 241 } elseif ($this->value) { 242 $items = preg_split("/ *, */", trim($this->value)); 243 } 294 } elseif (is_string($key)) { 295 $key = preg_split('/\s*,\s*/', trim($key)); 296 }media_edit.php http://you.googlecode.com/svn/trunk/ | PHP | 367 lines
98 <?php if ($d = @getimagesize($path)) :?> 99 <?php echo($d['0']) ?>x<?php echo($d['1']) ?> 100 <?php endif ;?> 165 <?php if ($extend_field['type'] == '2' OR $extend_field['type'] == '3') :?> 166 <textarea id="cf_<?= $extend_field['id_extend_field'] ?>" class="<?php if($extend_field['type'] == '3'):?> tinyTextarea <?php endif ;?> inputtext w340 h80" name="cf_<?= $extend_field['id_extend_field'] ?>"><?= $extend_field['content'] ?></textarea> 167 <?php endif ;?> 184 ?> 185 <input type="checkbox" id= "cf_<?= $extend_field['id_extend_field'].$i ?>" name="cf_<?= $extend_field['id_extend_field'] ?>[]" value="<?= $key ?>" <?php if (in_array($key, $saved)) :?>checked="checked" <?php endif ;?>><label for="cf_<?= $extend_field['id_extend_field'] . $i ?>"><?= $value ?></label></input><br/> 186 <?php 206 ?> 207 <input type="radio" id= "cf_<?= $extend_field['id_extend_field'].$i ?>" name="cf_<?= $extend_field['id_extend_field'] ?>" value="<?= $key ?>" <?php if ($extend_field['content'] == $key) :?> checked="checked" <?php endif ;?>><label for="cf_<?= $extend_field['id_extend_field'] . $i ?>"><?= $value ?></label></input><br/> 208 <?php 229 ?> 230 <option value="<?= $key ?>" <?php if (in_array($key, $saved)) :?> selected="selected" <?php endif ;?>><?= $value ?></option> 231 <?phpLiquidRegexp.html git://github.com/m3talsmith/php-liquid.git | HTML | 389 lines
30 <div class="package"> 31 <a href="../Liquid/_lib_liquid_block_php.html"> block.php 32 </a><br> 38 </a><br> 39 <a href="../Liquid/_lib_liquid_file_system_php.html"> file_system.php 40 </a><br> 50 </a><br> 51 <a href="../Liquid/_lib_liquid_support_php.html"> support.php 52 </a><br> 52 </a><br> 53 <a href="../Liquid/_lib_liquid_tag_php.html"> tag.php 54 </a><br> 54 </a><br> 55 <a href="../Liquid/_lib_liquid_template_php.html"> template.php 56 </a><br>books.js https://bitbucket.org/meerdevelopersoffice/bolivia.git | JavaScript | 449 lines
68 69 $.post( "books_post.php",{ 70 action: 'txt', 153 154 $.post( "books_post.php",{ 155 action: 'pdf', 267{ 268 var creditos = numero.toString().split("."); 269 if (typeof(creditos[1]) == "undefined") 299{ 300 var separar = fecha.toString().split("-"); 301 var resultado = separar[2] + "/" + separar[1] + "/" +separar[0]; 341 boton.val("Contabilizando"); 342 $.post( "contabilizar.php",{ 343 debe1: debe1,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">slide_list.php https://github.com/zeitin/vidipublic.git | PHP | 271 lines
1<?php 2require "config.php"; 2require "config.php"; 3require "log.php"; 4require "vidi.php"; 160 } else if (cmd == "server_says") { 161 action_info = obj.message.split("::"); 162 action = action_info[0]; 164 if (action == "client_joined_room") { 165 stranger_info = data.split("|"); 166 stranger_id = stranger_info[0]; 175 if (action == "client_left_room") { 176 stranger_info = data.split("|"); 177 stranger_id = stranger_info[0]; 233 <center> 234 <a href="new_slide.php?slidename=<?=$slide_name?>&clientname=<?=$client_name?>">Add Page</a> 235 <a href="#">Delete Selected</a>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.1SearchHelp.aspx https://SHFB.svn.codeplex.com/svn | ASP.NET | 237 lines
23// 02/17/2012 EFW Switched to JSON serialization to support websites that use something other than ASP.NET 24// such as PHP. 25//=============================================================================================================== 109/// <summary> 110/// Split the search text up into keywords 111/// </summary> 117 string checkWord; 118 string[] words = Regex.Split(keywords, @"\W+"); 119 192 { 193 // Split out the title, filename, and word count 194 fileIndex = fileInfo[index].Split('\x0');ModelAttributeElementPreContentView.php https://bitbucket.org/zurmo/zurmo/ | PHP | 153 lines
1<?php 2 /********************************************************************************* 117 $script .= "$('.attributePreTagCloudElementContent').click(function(){ 118 var dataArray = $.map($(this).data('value').split(','), $.trim); 119 $('#' + $(this).data('id')).val($(this).data('value')); 133 $script .= "$('.attributePreMultiSelectDropDownElementContent').click(function(){ 134 var dataArray = $.map($(this).data('value').split(','), $.trim); 135 $('#' + $(this).data('id') + '_values').val(dataArray);webkit.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();class_pid_controller.html https://bitbucket.org/etr18adv/repo_kido.git | HTML | 280 lines
40$(function() { 41 initMenu('',false,false,'search.php','検索'); 42}); 51 </div> 52 <div id="splitbar" style="-moz-user-select:none;" 53 class="ui-resizable-handle">jsReady.tpl http://praticarh.googlecode.com/svn/trunk/ | Smarty Template | 346 lines
121 { 122 $('#teste').load("list_testes.php"); 123 $('#nota').load("list_notas.php"); 149 //Na fase teste todos os dados ficam armazenados no mesmo input 150 var str = fase_tipo.split("-"); 151 292 //Na fase teste todos os dados ficam armazenados no mesmo input 293 var str = fase_tipo.split("-"); 294swfobject-0.js https://jolte.svn.codeplex.com/svn | JavaScript | 5 lines
2 Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis 3 This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 4*/ 4*/ 5var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();PGVGedcom.java http://dftproject.googlecode.com/svn/trunk/ | Java | 346 lines
70 protected void initTitle() { 71 String response = HttpManager.getDefault().getWebPage(session.getUrl() + "client.php?action=listgedcoms&" + session.getSessionComponent()); 72 if (response != null) { 72 if (response != null) { 73 String[] lines = response.split("\n"); 74 if (lines.length > 1 && "SUCCESS".equals(lines[0]) && !lines[1].startsWith("<")) { 86 try { 87 return getUrl() + "index.php?ged=" + URLEncoder.encode(getGedcomId(), "UTF-8"); 88 } catch (UnsupportedEncodingException e) { 102 try { 103 return getUrl() + "individual.php?pid=" + id + "&ged=" + URLEncoder.encode(getGedcomId(), "UTF-8"); 104 } catch (UnsupportedEncodingException e) { 186 // Request all cache misses 187 // TODO Batch record requests with one RACP call and split the results 188DooPager.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 intedit.js http://mootoolstools.googlecode.com/svn/trunk/ | JavaScript | 292 lines
13 if (arr != null){ 14 var tmp=arr.split("*"); 15 row=tmp[0]; 47 var ss; 48 ss=arr.split("*") 49 Code = ss[0]; 83{ 84 var arr = showModalDialog("InsertPic.php", "", "dialogWidth:510px; dialogHeight:392px; status:1;help:0"); 85 88 var ss; 89 ss=arr.split("*"); 90 a=ss[0]; 130{ 131 var arr = showModalDialog("InsertPic1.php", "", "dialogWidth:510px; dialogHeight:360px; status:1;help:0"); 132 AddNewsForm.News_Pic1.value= arr;AkLocaleManager.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)){buildtime-configuration.markdown git://github.com/propelorm/Propel2.git | Markdown | 314 lines
43# The package to use for the generated classes. 44# This affects the value of the @package phpdoc tag, and it also affects 45# the directory that the classes are placed in. By default this will be 51# Whether to join schemas using the same database name into a single schema. 52# This allows splitting schemas in packages, and referencing tables in another 53# schema (but in the same database) in a foreign key. Beware that database 67propel.schema.autoNamespace = true|{false} 68# To use the schema attribute as a prefix to all model phpNames, set this to true 69propel.schema.autoPrefix = true|{false} 89# The Propel platform that will be used to determine how to build 90# the SQL DDL, the PHP classes, etc. 91propel.database = pgsql|mysql|sqlite|mssql|oracle 255# The name of the compiled configuration and classmap files 256propel.runtime.phpconf.file = ${propel.project}-conf.php 257propel.runtime.phpconf-classmap.file = ${propel.project}-classmap.phpclass.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) {application_controller.rb git://github.com/fatfreecrm/fat_free_crm.git | Ruby | 261 lines
5# Fat Free CRM is freely distributable under the terms of MIT license. 6# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php 7#------------------------------------------------------------------------------ 83 84 related_class, id = related.split('/') 85 obj = related_class.classify.constantize.find_by_id(id)pas2.php https://bitbucket.org/ocaziituristice/ocaziituristice.ro.git | PHP | 240 lines
23$string = preg_replace('~>\s+<~', '><', trim($string)); 24$rows = preg_split('/(<tr>|<\/tr>)/i',$string,-1,PREG_SPLIT_NO_EMPTY); 25$nr_rows = sizeof($rows); 28$dates = str_replace('<th class="dead-cell">Camere / Date plecare</th>','',$dates); 29$dates_arr = preg_split('/(<th class="dates">|<\/th>)/i',$dates,-1,PREG_SPLIT_NO_EMPTY); 30$nr_columns = sizeof($dates_arr); 31foreach($dates_arr as $k_date => $v_date) { 32 $date[$k_date] = preg_split('/\s+/',trim(strip_tags($v_date)),-1,PREG_SPLIT_NO_EMPTY); 33 foreach($date[$k_date] as $k_data => $v_data) { 38for($i=1; $i<$nr_rows; $i++) { 39 $rand[$i] = preg_split('/(<th class="room-name">|<\/th>)/i',$rows[$i],-1,PREG_SPLIT_NO_EMPTY); 40 $rand_nohtml[$i] = strip_tags($rand[$i][0]); 42 43 $col_cam[$i] = preg_split('/(\(|\))/i',$rand_no_br[$i],-1,PREG_SPLIT_NO_EMPTY); 44 $col_cam_ext[$i] = preg_split('/(<span class="room-caracteristic">|<\/span>)/i',$col_cam[$i][2],-1,PREG_SPLIT_NO_EMPTY);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 */ShortenUrlService.cs https://newsgatorconnectors.svn.codeplex.com/svn | C# | 217 lines
105 var url = word; 106 foreach (var token in response.Split(' ')) 107 { 131 { 132 text = ExecuteGet(text, words, "http://is.gd/api.php?longurl={0}"); 133 break; 136 { 137 text = ExecuteGet(text, words, "http://tinyurl.com/api-create.php?url={0}"); 138 break;AutoParagraphTest.php git://github.com/ezyang/htmlpurifier.git | PHP | 577 lines
1<?php 2 220 221 public function testSplitUpInternalsOfPTagInBlockNode() 222 { 232 233 public function testSplitUpInlineNodesInPTagInBlockNode() 234 {pmetis.c https://bitbucket.org/lge/gmsh.git | C | 341 lines
131 if (nparts > 2) { 132 SplitGraphPart(ctrl, graph, &lgraph, &rgraph); 133 /* printf("%d %d\n", lgraph.nvtxs, rgraph.nvtxs); */ 189**************************************************************************/ 190void SplitGraphPart(CtrlType *ctrl, GraphType *graph, GraphType *lgraph, GraphType *rgraph) 191{ 199 200 IFSET(ctrl->dbglvl, DBG_TIME, starttimer(ctrl->SplitTmr)); 201 225 226 SetUpSplitGraph(graph, lgraph, snvtxs[0], snedges[0]); 227 sxadj[0] = lgraph->xadj; 299 300 IFSET(ctrl->dbglvl, DBG_TIME, stoptimer(ctrl->SplitTmr)); 301drag_drop_import.js git://github.com/phpmyadmin/phpmyadmin.git | JavaScript | 390 lines
36 getExtension: function (file) { 37 var arr = file.split('.'); 38 var ext = arr[arr.length - 1]; 90 }, 91 url: 'index.php?route=/import', 92 type: 'POST',Namespace.cs https://mwtools.svn.codeplex.com/svn | C# | 319 lines
115 { 116 string uri = wiki.WikiURI + "/api.php?action=query&meta=siteinfo&siprop=namespaces&format=xml"; 117 WebRequest rq = WebRequest.Create(uri); 139 { 140 string[] parts = cline.Split(':'); 141 result.Add(Int32.Parse(parts[0]), parts[1]); 239 { 240 return GetNamespaceID(title.Split(':')[0]); 241 }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 */jquery.jsoneditor.js https://hg01.codeplex.com/wolfpack | JavaScript | 219 lines
5 6// Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php). 7 65 i = 0, 66 parts = path.split('.'); 67 for (var len = parts.length; i < len - 1; i++) { 83 function def(o, path, defaultValue) { 84 path = path.split('.'); 85 var i = 0;student_manager.tpl https://bitbucket.org/itoxable/chiron-gaming.git | Smarty Template | 275 lines
52 </form> 53<div align="right" class="addNews_secand"><a href="user_update.php?user_type_id=2" class="normal-bttn">+ Add Student</a></div> 54{/if} 68 //Pull Query & Variables from href URL 69 var query= popURL.split('?'); 70 var dim= query[1].split('&'); 70 var dim= query[1].split('&'); 71 var popWidth = dim[0].split('=')[1]; //Gets the first query string value 72 158 <td width="6%" align="center" valign="middle"> 159 <a href="student_game_manager.php?u_id={$SelectCmsArr[RowCms].user_id}"> 160 <img src="images/add-tab-icon.gif" width="20" height="19" border="0" alt="Manage Game" /></a></td> 173 <td width="60" height="39" align="center" valign="middle" class="rightBorder" > 174 <a href="user_update.php?u_id={$SelectCmsArr[RowCms].user_id}&user_type_id=2"> 175 <img src="images/edit_dark.gif" alt="" width="15" height="14" border="0" />D3CVSS.py https://bitbucket.org/clarifiednetworks/graphingwiki/ | Python | 287 lines
6 @copyright: 2007-2010 by Juhani Eronen <exec@iki.fi>, Lari Huttunen <debian@huttu.net> 7 @license: MIT <http://www.opensource.org/licenses/mit-license.php> 8""" 132 133 for asp in cvss_raw.split('/'): 134 vec, val = asp.split(':') 250 if args: 251 args = [x.strip() for x in args.split(',')] 252 # Wrong number of argumentsPop3.php https://bitbucket.org/babinkochana/triptrills.git | PHP | 328 lines
1<?php 2/** 26 */ 27require_once 'Zend/Mail/Storage/Abstract.php'; 28 31 */ 32require_once 'Zend/Mail/Protocol/Pop3.php'; 33 36 */ 37require_once 'Zend/Mail/Message.php'; 38 114 */ 115 require_once 'Zend/Mail/Storage/Exception.php'; 116 throw new Postman_Zend_Mail_Storage_Exception('not implemented'); 137 */ 138 require_once 'Zend/Mail/Storage/Exception.php'; 139 throw new Postman_Zend_Mail_Storage_Exception('not implemented');Bookmark.php https://gitlab.com/lnxw37/gnu-social.git | PHP | 300 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 163 } else { 164 $rawtags = preg_split('/[\s,]+/', $rawtags); 165 }transport.php https://bitbucket.org/effectal/ondi.git | PHP | 282 lines
1<?php 2 39 40 function split_and_inflate($response, $may_be_compressed) { 41 list( $headers, $result ) = explode("\r\n\r\n", $response, 2); 130 131 list( $headers, $result ) = $this->split_and_inflate($response, $inflate_response); 132 236 237 list( $headers, $result ) = $this->split_and_inflate($response, $inflate_response); 238Googlestoragejson.php https://bitbucket.org/saltwaterdev/offshorefinancial.com.git | PHP | 418 lines
1<?php 2/** 3 * Akeeba Engine 4 * The modular PHP5 site backup engine 5 * 52 * This function takes care of post-processing a backup archive's part, or the 53 * whole backup archive if it's not a split archive type. If the process fails 54 * it should return false. If it succeeds and the entirety of the file has been 326 { 327 $this->setWarning('The PHP module for OpenSSL integration is not enabled or openssl_sign() is disabled. Please contact your host and ask them to fix this issue for the version of PHP you are currently using on your site (PHP reports itself as version ' . PHP_VERSION . ').'); 328 335 { 336 $this->setWarning('The PHP module for OpenSSL integration does not support the sha256WithRSAEncryption signature algorithm. Please ask your host to compile BOTH a newer version of the OpenSSL library AND the OpenSSL module for PHP against this (new) OpenSSL library for the version of PHP you are currently using on your site (PHP reports itself as version ' . PHP_VERSION . ').'); 337select.php https://bitbucket.org/rippleau/nrm-org-au.git | PHP | 210 lines
30 if(url.indexOf('pictName') > -1){ 31 var temp = url.split('&'); 32 for(var i=0;i<temp.length;i++){ 87 var divText = document.getElementById('confirmTxtAttach'); 88 divText.innerHTML = '<?php echo acymailing_translation('ACY_VALIDDELETEITEMS'); ?>' + '<br /><span class="acy_folder_name">(' + fileName + ')</span><br />'; 89 var divDelete = document.getElementById('confirmOkAttach'); 107 if(urlFile.indexOf('?') > -1){ 108 window.location.href = urlFile + '&task=<?php echo acymailing_getVar('cmd', 'task', ''); ?>&id=<?php echo acymailing_getVar('cmd', 'id', ''); ?>&filename=' + fileName; 109 }else{ 109 }else{ 110 window.location.href = urlFile + '?task=<?php echo acymailing_getVar('cmd', 'task', ''); ?>&id=<?php echo acymailing_getVar('cmd', 'id', ''); ?>&filename=' + fileName; 111 } 114 <div id="filesarea" style="width:100%;height:460px;overflow-x: hidden;text-align: center;"> 115 <?php 116 if(file_exists($this->uploadPath)) $files = acymailing_getFiles($this->uploadPath);twitter.js git://github.com/appcelerator/KitchenSink.git | JavaScript | 319 lines
7function strtotime (str, now) { 8 // Emlulates the PHP strtotime function in JavaScript 9 // obtained from http://phpjs.org/functions/strtotime:554 18 } else if (now) { 19 now = new Date(now*1000); // Accept PHP-style seconds 20 } else { 135 } 136 s = match[1].split(/-/g); 137 for (i in __is.mon) { 160 for (i = 0; i < match.length; i++) { 161 if (!process(match[i].split(' '))) { 162 return false;Loader.php https://bitbucket.org/Valary123/softgrad18.git | PHP | 418 lines
1<?php 2 143 { 144 list($name, $value) = $this->splitCompoundStringIntoParts($name, $value); 145 list($name, $value) = $this->sanitiseVariableName($name, $value); 195 /** 196 * Split the compound string into parts. 197 * 197 * 198 * If the `$name` contains an `=` sign, then we split it into 2 parts, a `name` & `value` 199 * disregarding the `$value` passed in. 205 */ 206 protected function splitCompoundStringIntoParts($name, $value) 207 { 374 375 // If PHP is running as an Apache module and an existing 376 // Apache environment variable exists, overwrite itclass.SunOS.inc.php http://openbiz-cubi.googlecode.com/svn/trunk/ | PHP | 282 lines
24 * @version Release: 3.0 25 * @link http://phpsysinfo.sourceforge.net 26 */ 46 if (CommonFunctions::executeProgram('kstat', '-p d '.$key, $m, PSI_DEBUG)) { 47 list($key, $value) = preg_split("/\t/", trim($m), 2); 48 return $value; 168 if (CommonFunctions::executeProgram('netstat', '-ni | awk \'(NF ==10){print;}\'', $netstat, PSI_DEBUG)) { 169 $lines = preg_split("/\n/", $netstat, -1, PREG_SPLIT_NO_EMPTY); 170 foreach ($lines as $line) { 223 if (CommonFunctions::executeProgram('df', '-k', $df, PSI_DEBUG)) { 224 $mounts = preg_split("/\n/", $df, -1, PREG_SPLIT_NO_EMPTY); 225 foreach ($mounts as $mount) { 233 if (CommonFunctions::executeProgram('df', '-n', $dftypes, PSI_DEBUG)) { 234 $mounttypes = preg_split("/\n/", $dftypes, -1, PREG_SPLIT_NO_EMPTY); 235 foreach ($mounttypes as $type) {MootoolsFileManager.FileManager.js http://imgmap.googlecode.com/svn/trunk/ | JavaScript | 398 lines
91 selectable: true, 92 upload: this.phpcfg.files_allow_upload, 93 destroy: this.phpcfg.files_allow_delete, 93 destroy: this.phpcfg.files_allow_delete, 94 createFolders: this.phpcfg.files_allow_create_dir, 95 rename: this.phpcfg.files_allow_move, 95 rename: this.phpcfg.files_allow_move, 96 move_or_copy: this.phpcfg.files_allow_move, 97 download: this.phpcfg.files_allow_download, 119 keyboardNavigation: false, 120 listType: this.phpcfg.files_list_type, 121 listPaginationSize: this.phpcfg.files_pagination_size, 140 // Get exploded path without the base url 141 var path = src.replace(self.phpcfg.files_url+'/', '').split('/'); 142UserDetails.jsp https://gitlab.com/hewentao420/greatuniverse.git | JavaServer Pages | 322 lines
45 var resp = xmlhttp.responseText.replace("\r\n", ""); 46 var files = resp.split(";"); 47 var j = 0; 75 76 var url="getImages.php?n="+n; 77inori.vim https://gitlab.com/biopandemic/vim.git | Vim Script | 217 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 165qrmask.php git://github.com/claudehohl/Stikked.git | 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;