PageRenderTime 160ms queryTime 52ms sortTime 0ms getByIdsTime 35ms findMatchingLines 30ms

59+ results for 'php split repo:zamoose/elbee-elgee' (160 ms)

Not the results you expected?
String.php git://github.com/farazdagi/phrozn.git | PHP | 50 lines
                    
1<?php
                    
2/**
                    
43        // strip front-matter
                    
44        $parts = preg_split('/[\n]*[-]{3}[\n]/', $name, 2);
                    
45        if (count($parts) === 2) {
                    
                
jquery.cal.js http://yourls.googlecode.com/svn/trunk/ | JavaScript | 319 lines
                    
2	the script only works on "input [type=text]"
                    
3	http://teddevito.com/demos/calendar.php
                    
4**/
                    
14	var today = new Date(); // used in defaults
                    
15    var months = 'January,February,March,April,May,June,July,August,September,October,November,December'.split(',');
                    
16    var months = l10n_cal_month;
                    
16    var months = l10n_cal_month;
                    
17	var monthlengths = '31,28,31,30,31,30,31,31,30,31,30,31'.split(',');
                    
18  	var dateRegEx = /^\d{1,2}\/\d{1,2}\/\d{2}|\d{4}$/;
                    
                
data_class_generator.class.php https://bitbucket.org/chamilo/chamilo-migration-dev/ | PHP | 104 lines
                    
1<?php
                    
2namespace migration;
                    
4 * Dataclass generator used to generate dataclasses with given properties
                    
5 * $Id: data_class_generator.class.php 221 2009-11-13 14:36:41Z vanpouckesven $
                    
6 * @package migration.settings
                    
47        
                    
48        $filename = dirname(__FILE__) . '/classes/' . $this->database . '/' . strtolower($this->classname) . '.class.php';
                    
49        $destination_dir = dirname($filename);
                    
78            
                    
79            $string = "<?php \n" . $this->template->pparse_return('dataclass') . "\n?>";
                    
80            fwrite($file, $string);
                    
91    {
                    
92        $textsplit = split('_', $text);
                    
93        $newtext = '';
                    
94        
                    
95        foreach ($textsplit as $temp)
                    
96        {
                    
                
Loader.php git://github.com/farazdagi/phrozn.git | PHP | 202 lines
                    
1<?php
                    
2/**
                    
33    /**
                    
34     * Loads a PHP file.  This is a wrapper for PHP's include() function.
                    
35     *
                    
36     * $filename must be the complete filename, including any
                    
37     * extension such as ".php".  Note that a security check is performed that
                    
38     * does not permit extended characters in the filename.  This method is
                    
44     * If the file was not found in the $dirs, or if no $dirs were specified,
                    
45     * it will attempt to load it from PHP's include_path.
                    
46     *
                    
92     * Returns TRUE if the $filename is readable, or FALSE otherwise.
                    
93     * This function uses the PHP include_path, where PHP's is_readable()
                    
94     * does not.
                    
111
                    
112        if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN'
                    
113            && preg_match('/^[a-z]:/i', $filename)
                    
                
metadata.pack.js git://github.com/Ortus-Solutions/ContentBox.git | JavaScript | 13 lines
                    
6 * Dual licensed under the MIT and GPL licenses:
                    
7 *   http://www.opensource.org/licenses/mit-license.php
                    
8 *   http://www.gnu.org/licenses/gpl.html
                    
12 */
                    
13eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(9($){$.r({3:{7:{8:\'l\',h:\'3\',q:/({.*})/,4:\'3\'},w:9(a,b){g.7.8=a;g.7.h=b},j:9(b,c){5 d=$.r({},g.7,c);2(!d.4.o)d.4=\'3\';5 a=$.n(b,d.4);2(a)6 a;a="{}";2(d.8=="l"){5 m=d.q.v(b.u);2(m)a=m[1]}k 2(d.8=="t"){2(!b.i)6;5 e=b.i(d.h);2(e.o)a=$.s(e[0].C)}k 2(b.p!=A){5 f=b.p(d.h);2(f)a=f}2(a.z(\'{\')<0)a="{"+a+"}";a=y("("+a+")");$.n(b,d.4,a);6 a}}});$.x.3=9(a){6 $.3.j(g[0],a)}})(B);',39,39,'||if|metadata|single|var|return|defaults|type|function|||||||this|name|getElementsByTagName|get|else|class||data|length|getAttribute|cre|extend|trim|elem|className|exec|setType|fn|eval|indexOf|undefined|jQuery|innerHTML'.split('|'),0,{}))
                    
                
HTTPSProxyServerWorker.java http://apjp.googlecode.com/svn/trunk/ | Java | 271 lines
                    
1/*
                    
2APJP, A PHP/JAVA PROXY
                    
3Copyright (C) 2009-2011 Jeroen Van Steirteghem
                    
137				
                    
138				String[] httpRequestMessage1Header1Values1 = httpRequestMessage1Header1Value1.split(" ");
                    
139				
                    
                
common.js http://yourls.googlecode.com/svn/trunk/ | JavaScript | 158 lines
                    
89	
                    
90	// Split the url on '?' and get only the params (which is element 1)
                    
91	url = url.split('?')[1];
                    
91	url = url.split('?')[1];
                    
92	// Now split those params on '&' so we can get each one individually (Ex. param_var=param_value)
                    
93	url = url.split('&');
                    
96	for( i=0; i<url.length; i++ ){
                    
97		// So split the first param elemment on '=' and check the param_var to see if it matches varname (element 0)
                    
98		if( url[i].split('=')[0] == varname ){
                    
99			// If it matches we want to return the param_value
                    
100			return url[i].split('=')[1];
                    
101		}
                    
111 * Dual licensed under the MIT and GPL licenses:
                    
112 * http://www.opensource.org/licenses/mit-license.php
                    
113 * http://www.gnu.org/licenses/gpl.html
                    
                
tpl_login_default.php http://google-checkout-zencart.googlecode.com/svn/trunk/ | PHP | 113 lines
                    
22<fieldset class="floatingBox back">
                    
23<legend><?php echo HEADING_NEW_CUSTOMER_SPLIT; ?></legend>
                    
24<?php // ** BEGIN PAYPAL EXPRESS CHECKOUT ** ?>
                    
25<?php if ($ec_button_enabled) { ?>
                    
26<div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION_SPLIT; ?></div>
                    
27
                    
27
                    
28  <div class="center"><?php require(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/tpl_ec_button.php'); ?></div>
                    
29<hr />
                    
40<fieldset class="floatingBox forward">
                    
41<legend><?php echo HEADING_RETURNING_CUSTOMER_SPLIT; ?></legend>
                    
42<div class="information"><?php echo TEXT_RETURNING_CUSTOMER_SPLIT; ?></div>
                    
104
                    
105<?php require($template->get_template_dir('tpl_modules_create_account.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_create_account.php'); ?>
                    
106
                    
                
save_dirs.cgi git://github.com/webmin/webmin.git | Perl | 37 lines
                    
1#!/usr/local/bin/perl
                    
2# Update options related to PHP directories
                    
3
                    
3
                    
4require './phpini-lib.pl';
                    
5&error_setup($text{'dirs_err'});
                    
6&ReadParse();
                    
7&can_php_config($in{'file'}) || &error($text{'list_ecannot'});
                    
8
                    
16else {
                    
17	@incs = split(/\r?\n/, $in{'include'});
                    
18	@incs || &error($text{'dirs_eincs'});
                    
                
edit_dirs.cgi git://github.com/webmin/webmin.git | Perl | 45 lines
                    
3
                    
4require './phpini-lib.pl';
                    
5&ReadParse();
                    
5&ReadParse();
                    
6&can_php_config($in{'file'}) || &error($text{'list_ecannot'});
                    
7$conf = &get_config($in{'file'});
                    
20	"<br>\n".
                    
21	&ui_textarea("include", join("\n", split(/:/, $include)), 3, 60)." ".
                    
22	&file_chooser_button("include", 1, undef, undef, 1));
                    
                
jquery.uitablefilter.js git://github.com/Ortus-Solutions/ContentBox.git | JavaScript | 89 lines
                    
3 * Dual licensed under the MIT and GPL licenses:
                    
4 * http://www.opensource.org/licenses/mit-license.php
                    
5 * http://www.gnu.org/licenses/gpl.html
                    
25  var phrase_length = phrase.length;
                    
26  var words = phrase.toLowerCase().split(" ");
                    
27
                    
                
postgresql.py https://bitbucket.org/ianb/silverlining/ | Python | 126 lines
                    
21            ],
                    
22        php=[
                    
23            'php5-pgsql',
                    
48            capture_stdout=True)
                    
49        databases = [line.split('|')[0] for line in stdout.splitlines()]
                    
50        if app_name in databases:
                    
                
lisp.php http://konstrukt.googlecode.com/svn/trunk/ | PHP | 106 lines
                    
1<?php
                    
2/*************************************************************************************
                    
2/*************************************************************************************
                    
3 * lisp.php
                    
4 * --------
                    
16 * 2004/11/27 (1.0.1)
                    
17 *  -  Added support for multiple object splitters
                    
18 * 2004/08/30 (1.0.0)
                    
94	'OOLANG' => false,
                    
95	'OBJECT_SPLITTERS' => array(
                    
96		),
                    
                
mysql.py https://bitbucket.org/ianb/silverlining/ | Python | 173 lines
                    
18        python=['python-mysqldb'],
                    
19        php=['php5-mysql'],
                    
20        )
                    
26                 '-e', 'CREATE USER wwwmgr'])
                    
27            if self.app_config.platform == 'php':
                    
28                # We need to restart Apache after installing php5-mysql
                    
35            capture_stdout=True)
                    
36        databases = [l.strip() for l in stdout.splitlines() if l.strip()]
                    
37        if app_name in databases:
                    
53            environ['CONFIG_MYSQL_PASSWORD'] = ''
                    
54            if platform == 'php':
                    
55                environ['CONFIG_MYSQL_HOST'] = 'localhost'
                    
                
fct_chaines.php http://malleo-cms.googlecode.com/svn/trunk/ | PHP | 142 lines
                    
1<?php
                    
2/*
                    
56   // this prevents some character re-spacing such as <java\0script> 
                    
57   // note that you have to handle splits with \n, \r, and \t later since they *are* allowed in some inputs 
                    
58
                    
                
actions.php http://0byte.googlecode.com/svn/trunk/ | PHP | 36 lines
                    
1<?php
                    
2
                    
4preg_match_all('/\[code([^\]]*?)\]/is',$txt, $lang);
                    
5$arr = preg_split("/\[(.?)code(.*?)\]/",$txt);
                    
6$q = 1;
                    
12      
                    
13        require_once 'lib/geshi/geshi.php';
                    
14        $i = str_replace(array_keys($replace), array_values($replace), $i);
                    
                
save_safe.cgi git://github.com/webmin/webmin.git | Perl | 37 lines
                    
3
                    
4require './phpini-lib.pl';
                    
5&error_setup($text{'safe_err'});
                    
6&ReadParse();
                    
7&can_php_config($in{'file'}) || &error($text{'list_ecannot'});
                    
8
                    
22	else {
                    
23		foreach my $d (split(/:/, $in{$d->[0]})) {
                    
24			-d $d || &error($text{$d->[1]});
                    
                
Mailhide.pm http://recaptcha.googlecode.com/svn/trunk/ | Perl | 304 lines
                    
95sub _email_parts {
                    
96    my ( $user, $dom ) = split( /\@/, shift, 2 );
                    
97    my $ul = length( $user );
                    
180
                    
181This Perl implementation is modelled on the PHP interface that can be
                    
182found here:
                    
183
                    
184L<http://recaptcha.net/plugins/php/>
                    
185
                    
                
dokeos185_quiz_answer.class.php https://bitbucket.org/chamilo/chamilo-migration-dev/ | PHP | 257 lines
                    
1<?php
                    
2
                    
14/**
                    
15 * $Id: dokeos185_quiz_answer.class.php 221 2009-11-13 14:36:41Z vanpouckesven $
                    
16 * @package migration.lib.platform.dokeos185
                    
17 */
                    
18require_once dirname(__FILE__) . '/../dokeos185_course_data_migration_data_class.class.php';
                    
19
                    
198
                    
199        $split = explode('::', $answer_text);
                    
200        $scores = explode(',', $split[1]);
                    
200        $scores = explode(',', $split[1]);
                    
201        $answer_text = $split[0];
                    
202
                    
                
Config.js http://geoext-viewer.googlecode.com/svn/trunk/ | JavaScript | 290 lines
                    
114			collapsible: false,
                    
115			split	: true,
                    
116			border: false
                    
136					,height : 196
                    
137					,split : true
                    
138					,autoScroll: true
                    
149			collapsible: true,
                    
150			split	: true,
                    
151			border: false
                    
185				title: 'Search for location'
                    
186			// completeUrl: 'http://research.geodan.nl/esdin/autocomplete/complete.php'
                    
187			 }
                    
                
GodAuth.pm git://github.com/exflickr/GodAuth.git | Perl | 326 lines
                    
101
                    
102		my ($user, $roles, $ts, $hmac) = split '-', $cookie, 4;
                    
103
                    
108		}
                    
109		$ua =~ s/ FirePHP\/\d+\.\d+//;
                    
110
                    
233	my $matches = [$cookie_user];
                    
234	for my $role(split /,/, $cookie_roles){
                    
235		if ($role ne '_'){
                    
285
                    
286	my @bits = split /;\s*/, $jar;
                    
287	my $out = {};
                    
288	for my $bit (@bits){
                    
289		my ($k, $v) = split '=', $bit, 2;
                    
290		$k = &urldecode($k);
                    
                
fix_failed_fill_in_the_blanks_questions.php https://bitbucket.org/chamilo/chamilo-migration-dev/ | PHP | 79 lines
                    
1<?php
                    
2namespace migration;
                    
9
                    
10require_once dirname(__FILE__) . '/../../../common/global.inc.php';
                    
11
                    
54
                    
55    $split = explode('::', $answer_text);
                    
56
                    
56
                    
57    $scores = explode(',', $split[1]);
                    
58    $answer_text = $split[0];
                    
                
HTTPRequestMessage.java http://apjp.googlecode.com/svn/trunk/ | Java | 226 lines
                    
1/*
                    
2APJP, A PHP/JAVA PROXY
                    
3Copyright (C) 2009-2011 Jeroen Van Steirteghem
                    
69			
                    
70			String[] httpRequestMessageHeader1Values1 = httpRequestMessageHeader1Value1.split("\r\n");
                    
71			
                    
79				
                    
80				String[] httpRequestMessageHeader1Values3 = httpRequestMessageHeader1Value3.split(": ");
                    
81				
                    
107			
                    
108			String[] httpRequestMessageHeader1Values1 = httpRequestMessageHeader1Value1.split(" ");
                    
109			
                    
                
Diff.php https://bitbucket.org/chamilo/chamilo/ | PHP | 262 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHPUnit
                    
4 *
                    
4 *
                    
5 * Copyright (c) 2002-2011, Sebastian Bergmann <sebastian@phpunit.de>.
                    
6 * All rights reserved.
                    
36 *
                    
37 * @package    PHPUnit
                    
38 * @subpackage Util
                    
38 * @subpackage Util
                    
39 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @author     Kore Nordmann <mail@kore-nordmann.de>
                    
40 * @author     Kore Nordmann <mail@kore-nordmann.de>
                    
41 * @copyright  2002-2011 Sebastian Bergmann <sebastian@phpunit.de>
                    
42 * @license    http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
                
edit_errors.cgi git://github.com/webmin/webmin.git | Perl | 75 lines
                    
3
                    
4require './phpini-lib.pl';
                    
5&ReadParse();
                    
5&ReadParse();
                    
6&can_php_config($in{'file'}) || &error($text{'list_ecannot'});
                    
7$conf = &get_config($in{'file'});
                    
30	# An | of error bits
                    
31	@errs = split(/\|/, $errs);
                    
32	$i = 0;
                    
                
HTTPSProxyServerWorker.java http://apjp.googlecode.com/svn/trunk/ | Java | 298 lines
                    
1/*
                    
2APJP, A PHP/JAVA PROXY
                    
3Copyright (C) 2009-2011 Jeroen Van Steirteghem
                    
142				
                    
143				String[] httpRequestMessage1Header1Values1 = httpRequestMessage1Header1Value1.split(" ");
                    
144				
                    
152					
                    
153					String[] httpRequestMessage1Header1Values3 = httpRequestMessage1Header1Value3.split(":");
                    
154					
                    
                
SlimServiceTestBase.java git://github.com/unclebob/fitnesse.git | Java | 217 lines
                    
18// Extracted Test class to be implemented by all Java based Slim ports
                    
19// The tests for PhpSlim and JsSlim implement this class
                    
20
                    
196    String commandLine = "-v -i fitnesse.slim.fixtureInteraction.DefaultInteraction 7890";
                    
197    String[] args = commandLine.split(" ");
                    
198
                    
207    String commandLine = "-v -i fitnesse.slim.fixtureInteraction.DefaultInteraction 7890";
                    
208    String[] args = commandLine.split(" ");
                    
209
                    
                
splitter.js https://hg01.codeplex.com/razorpad | JavaScript | 0 lines
                    
14*
                    
15* @example $("#splitterContainer").splitter({splitVertical:true,A:$('#leftPane'),B:$('#rightPane'),closeableto:0});
                    
16* @desc Create a vertical splitter with toggle button
                    
17*
                    
18* @example $("#splitterContainer").splitter({minAsize:100,maxAsize:300,splitVertical:true,A:$('#leftPane'),B:$('#rightPane'),slave:$("#rightSplitterContainer"),closeableto:0});
                    
19* @desc Create a vertical splitter with toggle button, with minimum and maximum width for plane A and bind resize event to the slave element
                    
53			v:{ // Vertical
                    
54			moving:"left",sizing: "width", eventPos: "pageX",splitbarClass:"splitbarV",buttonClass: "splitbuttonV", cursor: "e-resize"
                    
55			},
                    
77Bt.hover(function(){$(this).addClass(opts.ghostClass);},function(){$(this).removeClass(opts.ghostClass);});
                    
78Bt.mousedown(function(e){if(e.target != this)return;Bt.toggleClass(opts.invertClass).hide();splitTo((splitPos==opts.closeableto)?_splitPos:opts.closeableto,true);return false;});
                    
79}		
                    
118_ismovingNow=true;
                    
119if(splitPos&&splitPos>10&&splitPos<90)//do not save accidental events
                    
120		_splitPos=splitPos;
                    
                
Mailhide.pm http://recaptcha.googlecode.com/svn/trunk/ | Perl | 276 lines
                    
69sub _email_parts {
                    
70  my ( $user, $dom ) = split( /\@/, shift, 2 );
                    
71  my $ul = length( $user );
                    
153
                    
154This Perl implementation is modelled on the PHP interface that can be
                    
155found here:
                    
156
                    
157L<http://recaptcha.net/plugins/php/>
                    
158
                    
                
HTTPSServerWorker.java http://apjp.googlecode.com/svn/trunk/ | Java | 539 lines
                    
1/*
                    
2APJP, A PHP/JAVA PROXY
                    
3Copyright (C) 2009-2011 Jeroen Van Steirteghem
                    
316			{
                    
317				String[] httpRequestMessage1Header1Values1 = httpRequestMessage1Header1Value1.split(" ");
                    
318				
                    
                
help_config_bunks.php http://bitsand.googlecode.com/svn/trunk/ | PHP | 30 lines
                    
1<?php
                    
2/*
                    
19*/
                    
20include ('inc_help_head.php');
                    
21?>
                    
25<p><strong>STAFF_BUNKS:</strong> Number of bunks for staff bookings.</p>
                    
26<p><strong>TOTAL_BUNKS:</strong> TOTAL_BUNKS can be used if you have a limited number of bunks, but do not mind how they are split up. If the total number of bunks booked is at least this many, no more bunk bookings of any type will be accepted. If set to zero, no bunk bookings of any type will be accepted (bunks can still be assigned manually)</p>
                    
27<?php
                    
27<?php
                    
28include ('inc_help_foot.php');
                    
29?>
                    
                
jquery.jqGrid.src.js https://hg01.codeplex.com/jqgridmvcgeneration | JavaScript | 11318 lines
                    
7 * Dual licensed under the MIT and GPL licenses
                    
8 * http://www.opensource.org/licenses/mit-license.php
                    
9 * http://www.gnu.org/licenses/gpl-2.0.html
                    
84			date = $.trim(date);
                    
85			date = date.split(regdate);
                    
86			format = format.split(regdate);
                    
142				if ( typeof expr === 'string' ) {
                    
143					prm = expr.split('.');
                    
144				}
                    
                
dokeos185_data_manager.class.php https://bitbucket.org/chamilo/chamilo-migration-dev/ | PHP | 511 lines
                    
1<?php
                    
2//namespace migration;
                    
4///**
                    
5// * $Id: dokeos185_data_manager.class.php 221 2009-11-13 14:36:41Z vanpouckesven $
                    
6// * @package migration.platform.dokeos185
                    
7// */
                    
8//require_once (dirname(__FILE__) . '/../../lib/old_migration_data_manager.class.php');
                    
9//
                    
41//        {
                    
42//            $config_file = $old_directory . '/main/inc/conf/configuration.php';
                    
43//            if (file_exists($config_file) && is_file($config_file))
                    
80//        {
                    
81//            $array = split(':', $host);
                    
82//            $socket = $array[count($array) - 1];
                    
                
dokeos185_assignment_submission.class.php https://bitbucket.org/chamilo/chamilo-migration-dev/ | PHP | 464 lines
                    
1<?php
                    
2//namespace migration;
                    
3///**
                    
4// * $Id: dokeos185_assignment_submission.class.php 221 2009-11-13 14:36:41Z vanpouckesven $
                    
5// * @package migration.lib.platform.dokeos185
                    
7//
                    
8//require_once dirname(__FILE__) . '/../../lib/import/import_assignment_submission.class.php';
                    
9//require_once dirname(__FILE__) . '/../../../repository/lib/content_object/document/document.class.php';
                    
9//require_once dirname(__FILE__) . '/../../../repository/lib/content_object/document/document.class.php';
                    
10//require_once dirname(__FILE__) . '/../../../application/weblcms/php/content_object_publication.class.php';
                    
11//require_once dirname(__FILE__) . '/../../../application/weblcms/php/content_object_publication_category.class.php';
                    
374//			$file_split = array();
                    
375//			$file_split = split('/', $old_path);
                    
376//
                    
376//
                    
377//			array_shift($file_split);
                    
378//			array_pop($file_split);
                    
                
dojo.js.uncompressed.js http://dotnetkicks.googlecode.com/svn/trunk/ | JavaScript | 7259 lines
                    
16* @author Copyright 2004 Mark D. Anderson (mda@discerning.com)
                    
17* @author Licensed under the Academic Free License 2.1 http://www.opensource.org/licenses/afl-2.1.php
                    
18*
                    
73
                    
74	var syms = objpath.split(/\./);
                    
75	var obj = dj_global;
                    
504dojo.hostenv.moduleLoaded = function(modulename){
                    
505	var modref = dojo.evalObjPath((modulename.split(".").slice(0, -1)).join('.'));
                    
506	this.loaded_modules_[(new String(modulename)).toLowerCase()] = modref;
                    
                
index.html git://github.com/edicl/cl-ppcre.git | HTML | 2207 lines
                    
52<li>It comes with a <a
                    
53href="http://www.opensource.org/licenses/bsd-license.php"><b>BSD-style
                    
54license</b></a> so you can basically do with it whatever you want.
                    
89    </ol>
                    
90    <li><a href="#splitting">Splitting and replacing</a>
                    
91    <ol>
                    
91    <ol>
                    
92      <li><a href="#split"><code>split</code></a>
                    
93      <li><a href="#regex-replace"><code>regex-replace</code></a>
                    
                
shared-javascript.php http://epicnms.googlecode.com/svn/trunk/ | PHP | 57 lines
                    
1<?php
                    
2
                    
42    var nameEQ = name + "=";
                    
43    var ca = document.cookie.split(';');
                    
44    for(var i=0;i < ca.length;i++) {
                    
                
reCAPTCHA.pm http://recaptcha.googlecode.com/svn/trunk/ | Perl | 401 lines
                    
148  if ( $resp->is_success ) {
                    
149    my ( $answer, $message ) = split( /\n/, $resp->content, 2 );
                    
150    if ( $answer =~ /true/ ) {
                    
212
                    
213This Perl implementation is modelled on the PHP interface that can be
                    
214found here:
                    
215
                    
216L<http://recaptcha.net/plugins/php/>
                    
217
                    
                
dokeos185_dropbox_file.class.php https://bitbucket.org/chamilo/chamilo-migration-dev/ | PHP | 394 lines
                    
1<?php
                    
2namespace migration;
                    
13/**
                    
14 * $Id: dokeos185_dropbox_file.class.php 221 2009-11-13 14:36:41Z vanpouckesven $
                    
15 * @package migration.lib.platform.dokeos185
                    
16 */
                    
17require_once dirname(__FILE__) . '/../dokeos185_course_data_migration_data_class.class.php';
                    
18
                    
299
                    
300        //$filename_split = split('/', $this->get_);
                    
301        $original_filename = $this->get_title(); //get_file_name returns a hash
                    
                
sql_parse.php https://code.google.com/p/torrentpier/ | PHP | 192 lines
                    
1<?php
                    
2/***************************************************************************
                    
2/***************************************************************************
                    
3*                             sql_parse.php
                    
4*                              -------------------
                    
5*     begin                : Thu May 31, 2001
                    
6*     copyright            : (C) 2001 The phpBB Group
                    
7*     email                : support@phpbb.com
                    
8*
                    
9*     $Id: sql_parse.php,v 1.8 2002/03/18 23:53:12 psotfx Exp $
                    
10*
                    
25*	however in order to make these functions available elsewhere, specifically
                    
26*	in the installation phase of phpBB I have seperated out a couple of
                    
27*	functions into this file.  JLH
                    
102//
                    
103// split_sql_file will split an uploaded sql file into single sql statements.
                    
104// Note: expects trim() to have already been run on $sql.
                    
                
appconfig.py https://bitbucket.org/ianb/silverlining/ | Python | 455 lines
                    
38            if is_production():
                    
39                app_name = os.path.basename(os.path.dirname(config_file)).split('.')[0]
                    
40            else:
                    
60
                    
61        Current valid values are ``'python'`` and ``'php'``
                    
62        """
                    
113    @property
                    
114    def php_root(self):
                    
115        """The php_root location (or ``/dev/null`` if none given)"""
                    
117            self.app_dir,
                    
118            self.config['production'].get('php_root', '/dev/null'))
                    
119
                    
188            raise ValueError('Bad value for config.checker (%r): should be module:obj' % obj_name)
                    
189        mod_name, attrs = obj_name.split(':', 1)
                    
190        __import__(mod_name)
                    
                
dokeos185_assignment_file.class.php https://bitbucket.org/chamilo/chamilo-migration-dev/ | PHP | 335 lines
                    
1<?php
                    
2//namespace migration;
                    
3///**
                    
4// * $Id: dokeos185_assignment_file.class.php 221 2009-11-13 14:36:41Z vanpouckesven $
                    
5// * @package migration.lib.platform.dokeos185
                    
7//
                    
8//require_once dirname(__FILE__) . '/../../lib/import/import_assignment_file.class.php';
                    
9//require_once dirname(__FILE__) . '/../../../repository/lib/content_object/document/document.class.php';
                    
9//require_once dirname(__FILE__) . '/../../../repository/lib/content_object/document/document.class.php';
                    
10//require_once dirname(__FILE__) . '/../../../application/weblcms/php/content_object_publication.class.php';
                    
11//require_once dirname(__FILE__) . '/../../../application/weblcms/php/content_object_publication_category.class.php';
                    
214//			$file_split = array();
                    
215//			$file_split = split('/', $old_path);
                    
216//
                    
216//
                    
217//			array_shift($file_split);
                    
218//			array_pop($file_split);
                    
                
view-graph.js http://epicnms.googlecode.com/svn/trunk/ | JavaScript | 147 lines
                    
1
                    
2<script src="/epic-<?php echo $instance ?>/default/ui-20110309.01/js/jquery-1.5.1.min.js"></script>
                    
3
                    
7
                    
8<link rel='stylesheet' type='text/css' media='screen' href='/epic-<?php echo $instance ?>/default/ui-20110309.01/js/jquery.imgareaselect-0.9.6/css/imgareaselect-default.css' />
                    
9<script type='text/javascript' src='/epic-<?php echo $instance ?>/default/ui-20110309.01/js/jquery.imgareaselect-0.9.6/scripts/jquery.imgareaselect.pack.js'></script>
                    
13      $('#photo').imgAreaSelect({
                    
14         minHeight:   <?php echo $h ?>,
                    
15         maxHeight:   <?php echo $h ?>,
                    
15         maxHeight:   <?php echo $h ?>,
                    
16         onSelectEnd: function (img, selection) { window.location.href = '/epic-<?php print "{$instance}{$uipage}?$cgi_params_get" ?>&x1=' + selection.x1 + '&x2=' + selection.x2; }
                    
17      });
                    
27        var ds_list=new Array();
                    
28        $.getJSON("/<?php echo $instance ?>?a=query&ds_attrib_list=ds&n=<?php echo $_GET['n'] ?>&ng=<?php echo $_GET['ng'] ?>&ds=.*", function(json) {
                    
29           $.each(json.query, function(i, object) {
                    
                
test_rewrite_map.py https://bitbucket.org/ianb/silverlining/ | Python | 78 lines
                    
37nothing.notfound^/foo / all-root
                    
38nothing.notfound^/blog/foo /blog all-blog""".splitlines()
                    
39    for line in tests:
                    
39    for line in tests:
                    
40        input, output = line.split(None, 1)
                    
41        hostname, path = input.split('^')
                    
58example.com /blog blog_name|general|/var/lib/silverlining/app/writable-roots/blog_name|python|
                    
59example.com /wiki media_name|general|/dev/null|php|mediawiki
                    
60"""
                    
61    vars = dict(instance_name='app_name.2', platform='python',
                    
62                php_root='', process_group='general_debug',
                    
63                write_root='/dev/null')
                    
69example.com /blog blog_name|general|/var/lib/silverlining/app/writable-roots/blog_name|python|
                    
70example.com /wiki media_name|general|/dev/null|php|mediawiki
                    
71example.com / app_name.2|general_debug|/dev/null|python|
                    
                
functions_attach.php https://code.google.com/p/torrentpier/ | PHP | 901 lines
                    
1<?php
                    
2/**
                    
4* @package attachment_mod
                    
5* @version $Id: functions_attach.php,v 1.4 2005/11/17 17:41:36 acydburn Exp $
                    
6* @copyright (c) 2002 Meik Sievertsen
                    
6* @copyright (c) 2002 Meik Sievertsen
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
15/**
                    
16* html_entity_decode replacement (from php manual)
                    
17*/
                    
86* Per Forum based Extension Group Permissions (Encode Number) -> Theoretically up to 158 Forums saveable. :)
                    
87* We are using a base of 64, but splitting it to one-char and two-char numbers. :)
                    
88*/
                    
                
viewtopic.tpl https://code.google.com/p/torrentpier/ | Smarty Template | 446 lines
                    
86		<td class="nowrap" style="padding: 0px 4px 2px 4px;">
                    
87			<form action="search.php?t={TOPIC_ID}&amp;dm=1&amp;s=1" method="post" onsubmit="var txt=$('#search-text').val(); return !(txt=='{L_SEARCH_IN_TOPIC}' || !txt);">
                    
88				<input id="search-text" type="text" name="nm" value="{L_SEARCH_IN_TOPIC}" class="hint" style="width: 150px;" />
                    
254	<form method="post" action="{S_SPLIT_ACTION}">
                    
255	<input type="hidden" name="redirect" value="modcp.php?t={TOPIC_ID}&amp;mode=split" />
                    
256	<input type="hidden" name="{POST_FORUM_URL}" value="{FORUM_ID}" />
                    
275			<td colspan="2" class="row2 tCenter">
                    
276				<label><input type="checkbox" name="after_split_to_old" checked="checked" /> {L_BOT_AFTER_SPLIT_TO_OLD}</label>
                    
277				&nbsp;
                    
277				&nbsp;
                    
278				<label><input type="checkbox" name="after_split_to_new" checked="checked" /> {L_BOT_AFTER_SPLIT_TO_NEW}</label>
                    
279			</td>
                    
284				<input type="submit" name="split_type_all" id="spl_all" value="{L_SPLIT_POSTS}" disabled="disabled" onclick="return window.confirm('{L_SPLIT_POSTS}?');" />
                    
285				<input type="submit" name="split_type_beyond" id="spl_b" value="{L_SPLIT_AFTER}" disabled="disabled" onclick="return window.confirm('{L_SPLIT_AFTER}?');" />
                    
286				<label for="spl_cnf">
                    
                
HTTPResponseMessage.java http://apjp.googlecode.com/svn/trunk/ | Java | 228 lines
                    
1/*
                    
2APJP, A PHP/JAVA PROXY
                    
3Copyright (C) 2009-2011 Jeroen Van Steirteghem
                    
71			
                    
72			String[] httpResponseMessageHeader1Values1 = httpResponseMessageHeader1Value1.split("\r\n");
                    
73			
                    
81				
                    
82				String[] httpResponseMessageHeader1Values3 = httpResponseMessageHeader1Value3.split(": ");
                    
83				
                    
109			
                    
110			String[] httpRequestMessageHeader1Values1 = httpRequestMessageHeader1Value1.split(" ");
                    
111			
                    
                
save_misc.cgi git://github.com/webmin/webmin.git | Perl | 71 lines
                    
1#!/usr/local/bin/perl
                    
2# Update misc PHP options
                    
3
                    
3
                    
4require './phpini-lib.pl';
                    
5&error_setup($text{'misc_err'});
                    
6&ReadParse();
                    
7&can_php_config($in{'file'}) || &error($text{'list_ecannot'});
                    
8
                    
41else {
                    
42	($fp) = split(/\s+/, $in{"sendmail_path"});
                    
43	$fp || &error($text{'misc_esendmail2'})
                    
                
CRenderItem.Shader.cpp http://mtasa-blue.googlecode.com/svn/trunk/ | C++ | 0 lines
                    
134        std::vector < SString > parts;
                    
135        handleNames[h].strNames.Split( ",", parts );
                    
136        D3DXHANDLE* phHandle = NULL;
                    
173{
                    
174    if ( D3DXHANDLE* phParameter = MapFind ( m_pEffectWrap->m_texureHandleMap, strName.ToUpper () ) )
                    
175    {
                    
176        // Check if value is changing
                    
177        if ( !m_pShaderInstance->CmpTextureValue( *phParameter, pTextureItem ) )
                    
178        {
                    
181    
                    
182            if ( *phParameter == m_pEffectWrap->m_hFirstTexture )
                    
183            {
                    
190    
                    
191            m_pShaderInstance->SetTextureValue( *phParameter, pTextureItem );
                    
192        }
                    
                
save_errors.cgi git://github.com/webmin/webmin.git | Perl | 61 lines
                    
3
                    
4require './phpini-lib.pl';
                    
5&error_setup($text{'errors_err'});
                    
6&ReadParse();
                    
7&can_php_config($in{'file'}) || &error($text{'list_ecannot'});
                    
8
                    
32	&save_directive($conf, "error_reporting",
                    
33			join("|", split(/\0/, $in{"error_bits"})));
                    
34	}
                    
                
string.php https://code.google.com/p/mj-its/ | PHP | 0 lines
                    
1<?php
                    
2/* SVN FILE: $Id$ */
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @package       cake
                    
18 * @subpackage    cake.cake.libs
                    
19 * @since         CakePHP(tm) v 1.2.0.5551
                    
20 * @version       $Revision$
                    
22 * @lastmodified  $Date$
                    
23 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
                    
24 */
                    
                
ClientSpec.scala git://github.com/twitter/finagle.git | Scala | 180 lines
                    
26      if (line != null) {
                    
27        val segments = line.split(" ")
                    
28        segments.length mustEqual 4
                    
157
                    
158  "PHPMemCacheClient" should {
                    
159    val client1 = mock[Client]
                    
161    val client3 = mock[Client]
                    
162    val phpMemCacheClient = new PHPMemCacheClient(Array(client1, client2, client3), KeyHasher.FNV1_32)
                    
163
                    
164    "pick the correct node" in {
                    
165      phpMemCacheClient.clientOf("apple")    must be_==(client3)
                    
166      phpMemCacheClient.clientOf("banana")   must be_==(client1)
                    
166      phpMemCacheClient.clientOf("banana")   must be_==(client1)
                    
167      phpMemCacheClient.clientOf("cow")      must be_==(client3)
                    
168      phpMemCacheClient.clientOf("dog")      must be_==(client2)
                    
                
phpini-lib.pl git://github.com/webmin/webmin.git | Perl | 365 lines
                    
58	else {
                    
59		# FPM config file format, with php options
                    
60		while(<CONFIG>) {
                    
100# save_directive(&config, name, [value], [newsection], [neverquote])
                    
101# Updates a single entry in the PHP config file
                    
102sub save_directive
                    
202{
                    
203local @inis = split(/\t+/, $config{'php_ini'});
                    
204foreach my $ai (@inis) {
                    
223if ($access{'global'}) {
                    
224	foreach my $ai (split(/\t+/, $config{'php_ini'})) {
                    
225		local ($f, $d) = split(/=/, $ai);
                    
228	}
                    
229foreach my $ai (split(/\t+/, $access{'php_inis'})) {
                    
230	local ($f, $d) = split(/=/, $ai);
                    
                
flay.php https://code.google.com/p/mj-its/ | PHP | 0 lines
                    
1<?php
                    
2/* SVN FILE: $Id$ */
                    
7 *
                    
8 * PHP versions 4 and 5
                    
9 *
                    
9 *
                    
10 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
11 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
17 * @link          http://cakephp.org CakePHP(tm) Project
                    
18 * @package       cake
                    
19 * @subpackage    cake.cake.libs
                    
20 * @since         CakePHP(tm) v 0.2.9
                    
21 * @version       $Revision$
                    
189	function extractWords($string) {
                    
190		$split = preg_split('/[\s,\.:\/="!\(\)<>~\[\]]+/', $string);
                    
191		return $split;
                    
                
appdata.py https://bitbucket.org/ianb/silverlining/ | Python | 195 lines
                    
28        instance_name=app_config.instance_name, platform=app_config.platform,
                    
29        process_group=process_group, php_root=app_config.php_root.rstrip('/'),
                    
30        write_root=app_config.writable_root_location))
                    
38    if isinstance(existing, basestring):
                    
39        existing = existing.splitlines(True)
                    
40    lines = []
                    
44            continue
                    
45        ex_hostname, ex_path, ex_data = line.split(None, 2)
                    
46        for hostname, path in locations:
                    
60            lines.append(line)
                    
61    data = '%(instance_name)s|%(process_group)s|%(write_root)s|%(platform)s|%(php_root)s' % vars
                    
62    for hostname, path in locations:
                    
81    if '/' in location:
                    
82        hostname, path = location.split('/', 1)
                    
83        path = '/' + path
                    
                
parser.php git://github.com/speedmax/h2o-php.git | PHP | 290 lines
                    
1<?php
                    
2class H2o_Lexer {
                    
87                    }
                    
88                    $temp = preg_split('/\s+/',$token->content, 2);
                    
89                    $name = $temp[0];
                    
                
menu_controller.php https://code.google.com/p/mj-its/ | PHP | 0 lines
                    
1<?php
                    
2class MenuController extends AppController {
                    
10        // params['form'] => 'its_return', 'customer_report', ...
                    
11        list($prefix, $menu) = split('_', $this->params['form']['menuId'], 2);
                    
12        
                    
                
admin_user_ban.php https://code.google.com/p/torrentpier/ | PHP | 403 lines
                    
1<?php
                    
2
                    
8}
                    
9require('./pagestart.php');
                    
10// ACP Header - END
                    
126			// This ereg match is based on one by php@unreelpro.com
                    
127			// contained in the annotated php manual at php.com (ereg
                    
128			// section)
                    
184		{
                    
185			if ( preg_match('/(ff\.)|(\.ff)/is', chunk_split($ip_list[$i], 2, '.')) )
                    
186			{
                    
186			{
                    
187				$kill_ip_sql = "session_ip LIKE '" . str_replace('.', '', preg_replace('/(ff\.)|(\.ff)/is', '%', chunk_split($ip_list[$i], 2, "."))) . "'";
                    
188			}
                    
292
                    
293	$message = $lang['BAN_UPDATE_SUCESSFUL'] . '<br /><br />' . sprintf($lang['CLICK_RETURN_BANADMIN'], '<a href="' . append_sid("admin_user_ban.php") . '">', '</a>') . '<br /><br />' . sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '<a href="' . append_sid("index.php?pane=right") . '">', '</a>');
                    
294
                    
                
tpl_config.php https://code.google.com/p/torrentpier/ | PHP | 191 lines
                    
1<?php
                    
2
                    
81$images['topic_mod_unlock']    = $_main .'topic_unlock.gif';
                    
82$images['topic_mod_split']     = $_main .'topic_split.gif';
                    
83$images['topic_mod_move']      = $_main .'topic_move.gif';
                    
140
                    
141			'QUOTE_URL'       => BB_ROOT ."posting.php?mode=quote&amp;p=",
                    
142			'EDIT_POST_URL'   => BB_ROOT ."posting.php?mode=editpost&amp;p=",
                    
142			'EDIT_POST_URL'   => BB_ROOT ."posting.php?mode=editpost&amp;p=",
                    
143			'DELETE_POST_URL' => BB_ROOT ."posting.php?mode=delete&amp;p=",
                    
144			'IP_POST_URL'     => BB_ROOT ."modcp.php?mode=ip&amp;p=",
                    
151
                    
152			'EMAIL_URL'       => BB_ROOT ."profile.php?mode=email&amp;u=",
                    
153			'FORUM_URL'       => BB_ROOT . FORUM_URL,
                    
                
 

Source

Language