100+ results results for 'php split repo:mym2webdesign/mym2webdesign-v4' (335 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", //MISSINGpermissions_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();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 ('.')]) 165StateDropDown.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);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)); 279marshall.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 //jquery.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))))fcktablehandler.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 {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 */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">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))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 {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 *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++) {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',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: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">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();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)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)); 301Namespace.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 argumentstransport.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); 238twitter.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;class.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('/'); 142Person2DisplayUniversal.cs https://ldapgvat.svn.codeplex.com/svn | C# | 310 lines
57 { 58 AddressPartArr = PersBean.postalAddress.Split('$'); 59 RetVal = AddressPartArr[0] + ","; 213 string Link2Open; 214 Link2Open = "http://ldap.gv.at/lfrz.at/ldapw/index.php?sPage=1&showDetailDn=" + PersBean.dn + "&detailType=person"; 215 Person2LDAP.SetUri(Link2Open); 295 { 296 AddressPartsArr = PersBean.postalAddress.Split('$'); 297 Text2Enter = GetPersonNameWithTitle() + Environment.NewLine;conf.py git://github.com/doctrine/mongodb-odm.git | Python | 196 lines
53# for a list of supported languages. 54language = 'php' 55 146 147# If true, the index is split into individual pages for each letter. 148#html_split_index = FalsesfCommandManager.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 382 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: sfCommandManager.class.php 9801 2008-06-23 15:12:05Z fabien $ 18 */ 109 { 110 // hack to split arguments with spaces : --test="with some spaces" 111 $arguments = preg_replace('/(\'|")(.+?)\\1/e', "str_replace(' ', '=PLACEHOLDER=', '\\2')", $arguments); 111 $arguments = preg_replace('/(\'|")(.+?)\\1/e', "str_replace(' ', '=PLACEHOLDER=', '\\2')", $arguments); 112 $arguments = preg_split('/\s+/', $arguments); 113 $arguments = str_replace('=PLACEHOLDER=', ' ', $arguments);Url.php git://github.com/kriswallsmith/Buzz.git | PHP | 191 lines
1<?php 2 151 152 $parts = str_split($pattern); 153 while ($part = current($parts)) {RecaptchaHelper.php git://github.com/croogo/croogo.git | PHP | 127 lines
1<?php 2 6 * @package Croogo.Croogo.View.Helper 7 * @link http://bakery.cakephp.org/articles/view/recaptcha-component-helper-for-cakephp 8 */ 66 if (! function_exists ("mcrypt_encrypt")) { 67 die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); 68 } 98 protected function _recaptcha_mailhide_email_parts($email) { 99 $arr = preg_split("/@/", $email ); 100array-tests.php git://github.com/nicolasff/phpredis.git | PHP | 526 lines
1<?php 2 2 3require_once(dirname($_SERVER['PHP_SELF'])."/test.php"); 4echo "Redis Array tests.\n\n"; 44 foreach($this->strings as $k => $v) { 45 list($host, $port) = split(':', $this->ra->_target($k)); 46 365 // connect to the target host 366 list($host,$port) = split(':', $target); 367 $r = new Redis; 466 public function testDiscard() { 467 /* phpredis issue #87 */ 468 $key = 'test_err';Comm.lua http://gmod-developer-framework.googlecode.com/svn/trunk/ | Lua | 271 lines
6 7local DATASPLITTER = "\0" 8 38 if( TypeID == 10 && self:BytesLeft() > 0 ) then 39 local End = self.Data:find( DATASPLITTER, self.Cursor + 1 ) 40 local Str = self.Data:sub( self.Cursor + 1, End - 1 ) 167 elseif( v.Type == 10 ) then 168 Data = Data .. v.Value .. DATASPLITTER 169 end 232function Framework.Comm.InsertEvent( App, Unique, Str, Callback ) 233 http.Get( "http://errur.com/test/MessageTracker.php?c=" .. CMD_ADD .. "&a=" .. App .. "&i=" .. Unique .. "&s=" .. Framework.Utilities.URLEncode( Str ), "", function(a) if( Callback ) then Callback( Formatter( a ) ) end end ) 234end 236function Framework.Comm.CountEvents( App, Unique, Callback ) 237 http.Get( "http://errur.com/test/MessageTracker.php?c=" .. CMD_COUNT .. "&a=" .. App .. "&i=" .. Unique, "", function(a) if( Callback ) then Callback( Formatter( a ) ) end end ) 238endMySqlSetup.cs https://openpdc.svn.codeplex.com/svn | C# | 408 lines
10// 11// http://www.opensource.org/licenses/eclipse-1.0.php 12// 77 // Try to get path for mysql executable based on registered Windows service path, if this fails, fall back on just the executable name which will require a proper environmental path to run 78 m_mysqlExe = FilePath.GetDirectoryName(Registry.GetValue("HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\MySQL", "ImagePath", "mysql.exe").ToString().Split(new string[] { "\" " }, StringSplitOptions.RemoveEmptyEntries)[0].Replace("\"", "")) + "mysql.exe"; 79Autodia.pm http://autodia.googlecode.com/svn/trunk/ | Perl | 252 lines
101 "cpp" => 'Autodia::Handler::Cpp', 102 "php" => 'Autodia::Handler::PHP', 103 "dbi" => 'Autodia::Handler::DBI', 128 129 my %php = ( 130 regex => '\w+\.php(?:3|4)?$', 131 wildcards => [ 132 "php", "php3", "php4", 133 ], 182 "csharp" => \%csharp, 183 "php" => \%php, 184 "dbi" => {}, 221 222=item autodia.pl -m [file|directory] : use multiple output files split by file or directory (creates an autodia-files directory containing files) 223BCDClass.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 223 lines
1<?php 2 140 141 $newSignature1=str_split($newSignature,2); 142 for ($i=0;$i<count($newSignature1);$i++){ 146 147 $partitionStart1=str_split($partitionStart,2); 148 for ($i=0;$i<count($partitionStart1);$i++){IPSECKEY.php http://netdns2.googlecode.com/svn/trunk/ | PHP | 385 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 6 * 7 * PHP Version 5 8 * 44 * @copyright 2010 Mike Pultz <mike@mikepultz.com> 45 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 46 * @version SVN: $Id: IPSECKEY.php 125 2011-12-03 00:19:49Z mike.pultz $ 46 * @version SVN: $Id: IPSECKEY.php 125 2011-12-03 00:19:49Z mike.pultz $ 47 * @link http://pear.php.net/package/Net_DNS2 48 * @since File available since Release 0.6.0 68 * @author Mike Pultz <mike@mikepultz.com> 69 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 70 * @link http://pear.php.net/package/Net_DNS2 157 * 158 * @param array $rdata a string split line of values for the rdata 159 *Request.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 372 lines
1<?php 2/** 4 * 5 * Adapted from Andy Smith's OAuth library for PHP 6 * 8 * @link http://oauth.googlecode.com/svn/spec/ext/consumer_request/1.0/drafts/1/spec.html 9 * @link http://oauth.googlecode.com/svn/code/php/ 10 * @link http://term.ie/oauth/example/ 15 * @copyright Copyright (c) 2008, Photobucket, Inc. 16 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 17 */ 21 */ 22require_once ('OAuth/Utils.php'); 23/** 25 */ 26require_once ('OAuth/Signature.php'); 27/**Date.php http://syracava.googlecode.com/svn/trunk/ | PHP | 184 lines
1<?php 2// +----------------------------------------------------------------------+ 2// +----------------------------------------------------------------------+ 3// | PHP versions 4 and 5 | 4// +----------------------------------------------------------------------+ 9// | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB | 10// | API as well as database abstraction for PHP applications. | 11// | This LICENSE is in the BSD license style. | 44// 45// $Id: Date.php 125 2009-08-21 01:35:18Z takuji.mezawa $ 46// 55 * Several methods to convert the MDB2 native timestamp format (ISO based) 56 * to and from data structures that are convenient to worth with in side of php. 57 * For more complex date arithmetic please take a look at the Date package in PEAR 166 * convert a MDB2 timestamp into an array containing all 167 * values necessary to pass to php's date() function 168 *c.php git://github.com/tpruvot/GitPHP.git | PHP | 281 lines
1<?php 2/************************************************************************************* 2/************************************************************************************* 3 * c.php 4 * ----- 23 * 2004/11/27 (1.0.3) 24 * - Added support for multiple object splitters 25 * 2004/10/27 (1.0.2) 266 'OOLANG' => true, 267 'OBJECT_SPLITTERS' => array( 268 1 => '.',ajax.class.php http://xklog.googlecode.com/svn/ | PHP | 213 lines
1<?php 2 29 global $db,$request,$user; 30 $user_name = php_unescape( $request->get( 'username' ) ); 31 if( !$user->check_username( $user_name ) ) { 81 }else{ 82 $user_name = trim( php_unescape( $request->get( 'username', 'P' ) ) ); 83 $email = htmlspecialchars( php_unescape( $request->get( 'email', 'P' ) ) ); 83 $email = htmlspecialchars( php_unescape( $request->get( 'email', 'P' ) ) ); 84 $index = htmlspecialchars( php_unescape( $request->get( 'index', 'P' ) ) ); 85 $check_name = $user->check_username( $user_name ); 120 if( $remember == 'on' ){ 121 setcookie( APP_PREFIX . 'username', $user_name, PHP_TIME + 31536000,$blog_path ); 122 setcookie( APP_PREFIX . 'email', $email, PHP_TIME + 31536000, $blog_path ); 122 setcookie( APP_PREFIX . 'email', $email, PHP_TIME + 31536000, $blog_path ); 123 setcookie( APP_PREFIX . 'index', $index, PHP_TIME + 31536000, $blog_path ); 124 setcookie( APP_PREFIX . 'remember', '1', PHP_TIME + 31536000, $blog_path );DatabasePeopleRetriever.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 280 lines
1<?php 2 76 77 $names = preg_split("/\s+/", $searchString); 78 $nameCount = count($names);note.js git://github.com/0xfe/vexflow.git | JavaScript | 429 lines
94 let type = noteStruct.type; 95 if (type && !Flow.getGlyphProps.validTypes[type]) { return null; } 96 104 noteStruct.keys.forEach((k, i) => { 105 const result = k.split('/'); 106 // We have a custom glyph specified after the note eg. /X2 183 // Get the glyph code for this note from the font. 184 this.glyph = Flow.getGlyphProps(this.duration, this.noteType); 185 this.customGlyphs = this.customTypes.map(t => Flow.getGlyphProps(this.duration, t));README.md git://github.com/silverstripe/sapphire.git | Markdown | 329 lines
1# PHP PEG - A PEG compiler for parsing text in PHP 2 8- Write a parser. A parser is a PHP class with a grammar contained within it in a special syntax. The filetype is .peg.inc. See the examples directory. 9- Compile the parser. php ./cli.php ExampleParser.peg.inc > ExampleParser.php 10- Use the parser (you can also include code to do this in the input parser - again see the examples directory): 40 41Base rules can be split over multiple lines as long as subsequent lines are indented 42 63 64This might get looser if I get around to re-writing the internal "parser parser" in php-peg, bootstrapping the whole thing 65 190 191All functions that are not in-grammar must have PHP compatible names (see PHP name mapping). In-grammar functions will have their names converted if needed. 192 211 212Rules in the grammar map to php functions named `match_{$rulename}`. However rule names can contain characters that php functions can't. 213These characters are remapped:Code128.php git://github.com/zendframework/zf2.git | PHP | 312 lines
1<?php 2/** 162 $barcodePattern = $this->codingMap[$barcodeChar]; 163 foreach (str_split($barcodePattern) as $c) { 164 $barcodeTable[] = array($c, $this->barThinWidth, 0, 1);ObjectCollectionTest.php git://github.com/cakephp/cakephp.git | PHP | 395 lines
1<?php 2/** 4 * 5 * PHP 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 15 * @package Cake.Test.Case.Utility 15 * @package Cake.Test.Case.Utility 16 * @since CakePHP(tm) v 2.0 17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 59 public function load($object, $settings = array()) { 60 list($plugin, $name) = pluginSplit($object); 61 if (isset($this->_loaded[$name])) {ir_black_new.vim git://github.com/dakrone/dakrone-dotfiles.git | Vim Script | 215 lines
75 76hi VertSplit guifg=#202020 guibg=#202020 gui=NONE ctermfg=darkgray ctermbg=darkgray cterm=NONE 77hi StatusLine guifg=#CCCCCC guibg=#202020 gui=italic ctermfg=white ctermbg=darkgray cterm=NONE 213 214" Special for PHP 215hr.js http://cfbbs.googlecode.com/svn/trunk/ | JavaScript | 448 lines
5 * Licensed under the terms of the GNU Lesser General Public License: 6 * http://www.opensource.org/licenses/lgpl-license.php 7 * 106MergeCells : "Spoji ?elije", 107SplitCell : "Razdvoji ?elije", 108CellProperties : "Svojstva ?elije",BaseTests.php git://pkgs.fedoraproject.org/php-ZendFramework | PHP | 573 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: BaseTests.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 31 */ 32abstract class Zend_Service_Simpy_BaseTests extends PHPUnit_Framework_TestCase 33{ 49 'accessType' => 'public', 50 'tags' => array('zend', 'framework', 'php'), 51 'urlNickname' => 'Zend Framework web site', 93 */ 94 require_once 'Zend/Service/Simpy/Link.php'; 95 177 */ 178 require_once 'Zend/Service/Simpy/LinkQuery.php'; 179 $linkQuery = new Zend_Service_Simpy_LinkQuery;JsonStream.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 235 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: JsonStream.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 23/** Zend_Wildfire_Plugin_Interface */ 24require_once 'Zend/Wildfire/Plugin/Interface.php'; 25 26/** Zend_Wildfire_Channel_Interface */ 27require_once 'Zend/Wildfire/Channel/Interface.php'; 28 29/** Zend_Json */ 30require_once 'Zend/Json.php'; 31 160 if (!$channel instanceof Zend_Wildfire_Channel_HttpHeaders) { 161 require_once 'Zend/Wildfire/Exception.php'; 162 throw new Zend_Wildfire_Exception('The '.get_class($channel).' channel is not supported by the '.get_class($this).' protocol.');