100+ results results for 'php split repo:fhainz/homecontrol-beta' (270 ms)
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)); 279GameService.java https://bitbucket.org/drocco/bananaounces/ | Java | 447 lines
88 // see: 89 // http://www.developer.com/java/web/article.php/10935_3875781_2/Leveraging-the-Restlet-Routing-System-for-Your-Java-Web-Services.htm 90 router.attach("/games/{game}/players/{player};{callback}", 150 /** 151 * Check to see if the given game has started; that is, has a valid split 152 * call been sent to the game. 285 /** 286 * Call split on the given game, sending players their initial tile list and 287 * starting the game. 293 */ 294 public void split(String gameName) { 295 if (containsGame(gameName)) { 295 if (containsGame(gameName)) { 296 getGame(gameName).split(); 297 }OptionsReferenceTest.php http://tubepress.googlecode.com/svn/trunk/ | PHP | 247 lines
1<?php 2 2 3require_once dirname(__FILE__) . '/../../../../../../classes/org/tubepress/options/reference/OptionsReference.class.php'; 4require_once dirname(__FILE__) . '/../../../../../../classes/org/tubepress/options/Category.class.php'; 4require_once dirname(__FILE__) . '/../../../../../../classes/org/tubepress/options/Category.class.php'; 5require_once dirname(__FILE__) . '/../../../../../../test/unit/TubePressUnitTest.php'; 6 33 org_tubepress_options_category_Gallery::VIMEO_CREDITED_VALUE => 'patricklawler', 34 org_tubepress_options_category_Gallery::VIMEO_CHANNEL_VALUE => 'splitscreenstuff', 35 org_tubepress_options_category_Gallery::VIMEO_GROUP_VALUE => 'hdxs',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 <?phpejs.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++) {manage.php git://github.com/moodle/moodle.git | PHP | 263 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 24 25require_once('../config.php'); 26require_once($CFG->libdir.'/tablelib.php'); 26require_once($CFG->libdir.'/tablelib.php'); 27require_once('lib.php'); 28require_once($CFG->libdir.'/adminlib.php'); 69$tagarea = core_tag_area::get_by_id($tagareaid); 70$manageurl = new moodle_url('/tag/manage.php'); 71if ($tagcoll) { 170 $tagslist = optional_param('tagslist', '', PARAM_RAW); 171 $newtags = preg_split('/\s*,\s*/', trim($tagslist), -1, PREG_SPLIT_NO_EMPTY); 172 $tagobjects = core_tag_tag::create_if_missing($tagcoll->id, $newtags, true); 209// Form to filter tags. 210print('<form class="tag-filter-form" method="get" action="'.$CFG->wwwroot.'/tag/manage.php">'); 211print('<div class="tag-management-form generalbox"><label class="accesshide" for="id_tagfilter">'. get_string('search') .'</label>'.tpl_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">graphpage.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)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))))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'); 138AkLocaleManager.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)){SocketConnection.hx git://github.com/outbounder/org.abn.haxe.git | Haxe | 408 lines
29import neko.net.Socket; 30#elseif php 31import php.net.Host; 31import php.net.Host; 32import net.php.Socket; 33#elseif cpp 39 TODO 40 - php! 41 - flash/js maxBufSize 41 - flash/js maxBufSize 42 - split outgoing (big) packets ? 43*/ 45 46 #if (neko||php||cpp) 47 public static var defaultBufSize = (1<<8); // 128question.php git://github.com/moodle/moodle.git | PHP | 187 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 28 29require_once($CFG->dirroot . '/question/type/questionbase.php'); 30 105 // ** is equivalent to *, but people were doing that, and with many *s it breaks preg. 106 $bits = preg_split('/(?<!\\\\)\*+/', $pattern); 107 124 /** 125 * Normalise a UTf-8 string to FORM_C, avoiding the pitfalls in PHP's 126 * normalizer_normalize function. 158 // Break the string on non-escaped asterisks. 159 $bits = preg_split('/(?<!\\\\)\*/', $answer); 160pre_process.php http://phreedom.googlecode.com/svn/trunk/ | PHP | 140 lines
1<?php 2// +-----------------------------------------------------------------+ 17// +-----------------------------------------------------------------+ 18// Path: /modules/phreebooks/pages/popup_orders/pre_process.php 19// 22gen_pull_language('contacts'); 23require(DIR_FS_WORKING . 'functions/phreebooks.php'); 24 53 default: 54 die('No valid journal id found (filename: modules/phreebooks/popup.php), Journal ID needs to be passed to this script to identify the correct procedure.'); 55} 67/*************** hook for custom actions ***************************/ 68$custom_path = DIR_FS_WORKING . 'custom/pages/popup_orders/extra_actions.php'; 69if (file_exists($custom_path)) { include($custom_path); } 129 130$query_split = new splitPageResults($_GET['list'], MAX_DISPLAY_SEARCH_RESULTS, $query_raw, $query_numrows); 131$query_result = $db->Execute($query_raw);NpgsqlError.cs git://github.com/mono/mono.git | C# | 361 lines
9// npgsql-general@gborg.postgresql.org 10// http://gborg.postgresql.org/project/npgsql/projdisplay.php 11// 263 264 Parts = Raw.Split(new char[] {':'}, 2); 265 292 293 Parts = Raw.Split(new char[] {':'}, 2); 294Request.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/**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 215jquery.epiclock.js http://migrid.googlecode.com/svn/trunk/ | JavaScript | 505 lines
5 * Dual licensed under: 6 * MIT: http://www.opensource.org/licenses/mit-license.php 7 * GPLv3: http://www.opensource.org/licenses/gpl-3.0.html 173 var object = $(this), 174 format = (options.format || defaults.formats[options.mode]).split(''), 175 isBuffering = false, 232 233 var format = format.split(''), 234 buffer = '',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.1HeaderBag.php git://github.com/symfony/symfony.git | PHP | 288 lines
1<?php 2 283 { 284 $parts = HeaderUtils::split($header, ',='); 285Role.cs https://hg01.codeplex.com/mojoportal | C# | 516 lines
5// The use and distribution terms for this software are covered by the 6// Common Public License 1.0 (http://opensource.org/licenses/cpl.php) 7// which can be found in the file CPL.TXT at the root of this distribution. 409 List<string> roleNames = new List<string>(); 410 string[] roles = roleNamesSeparatedBySemiColons.Split(';'); 411 foreach (string r in roles)Def_use.cpp http://phc.googlecode.com/svn/trunk/ | C++ | 479 lines
1/* 2 * phc -- the open source PHP compiler 3 * See doc/license/README.license for licensing information 88 * - if there is a kill for a variable first, it is a must-def. If there is 89 * not, it is a may-def. Uses arent split into may- and must- defs. 90 *dateformat.py git://github.com/django/django.git | Python | 349 lines
1""" 2PHP date() style date formatting 3See http://www.php.net/date for format strings 33 pieces = [] 34 for i, piece in enumerate(re_formatchars.split(str(formatstr))): 35 if i % 2:NgCharacterStream.php git://github.com/swiftmailer/swiftmailer.git | PHP | 262 lines
1<?php 2 218 if (false !== $read) { 219 $ret = array_map('ord', str_split($read, 1)); 220editor_plugin_src.js git://github.com/moodle/moodle.git | JavaScript | 176 lines
22 23 each(str.split(/,/), function(type) { 24 formats.push({ 86 87 btn = cm.createSplitButton(name, { 88 title : 'advanced.' + name + '_desc', 167 authorurl : 'http://tinymce.moxiecode.com', 168 infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist', 169 version : tinymce.majorVersion + "." + tinymce.minorVersionzones.php http://daocart.googlecode.com/svn/trunk/ | PHP | 233 lines
95<!-- header //--> 96<?php require(DIR_WS_INCLUDES . 'header.php'); ?> 97<!-- header_eof //--> 122 $zones_query_raw = "select z.zone_id, c.countries_id, c.countries_name, z.zone_name, z.zone_code, z.zone_country_id from " . TABLE_ZONES . " z, " . TABLE_COUNTRIES . " c where z.zone_country_id = c.countries_id order by c.countries_name, z.zone_name"; 123 $zones_split = new splitPageResults($_GET['page'], MAX_DISPLAY_SEARCH_RESULTS, $zones_query_raw, $zones_query_numrows); 124 $zones = $db->Execute($zones_query_raw); 149 <tr> 150 <td class="smallText" valign="top"><?php echo $zones_split->display_count($zones_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_ZONES); ?></td> 151 <td class="smallText" align="right"><?php echo $zones_split->display_links($zones_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page']); ?></td> 226<!-- footer //--> 227<?php require(DIR_WS_INCLUDES . 'footer.php'); ?> 228<!-- footer_eof //--> 231</html> 232<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> 233filters.php https://code.google.com/p/goodrelations-for-joomla/ | PHP | 343 lines
1<?php 2 223 $result = array(); 224 $parts = preg_split('/(\r?\n){2,}/m', $value); 225 foreach ($parts as $part) { 332 333/* Ultizie php funciton as Filters */ 334h2o::addFilter(array('md5', 'sha1', 'numberformat'=>'number_format', 'wordwrap', 'trim', 'upper' => 'strtoupper', 'lower' => 'strtolower'));Rule.php git://github.com/peteboere/css-crush.git | PHP | 375 lines
1<?php 2/** 23 24 $selectors_match = CssCrush::splitDelimList( $selector_string, ',' ); 25 $this->parens += $selectors_match->matches; 41 // Parse the declarations chunk 42 // Need to split safely as there are semi-colons in data-uris 43 $declarations_match = CssCrush::splitDelimList( $declarations_string, ';' ); 290 $expression = trim( $this->parens[ $m[1] ], '()' ); 291 $parts = preg_split( $reg_comma, $expression, null, PREG_SPLIT_NO_EMPTY ); 292index.php git://github.com/moodle/moodle.git | PHP | 174 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 28 29require(dirname(__FILE__) . '/../../../config.php'); 30require_once($CFG->libdir.'/adminlib.php'); 30require_once($CFG->libdir.'/adminlib.php'); 31require_once('simpletestlib.php'); 32require_once('simpletestcoveragelib.php'); 32require_once('simpletestcoveragelib.php'); 33require_once('ex_simple_test.php'); 34require_once('ex_reporter.php'); 54// This limit is the time allowed per individual test function. Please do not 55// increase this value. If you get a PHP time limit when running unit tests, 56// find the unit test which is running slowly, and either make it faster, 56// find the unit test which is running slowly, and either make it faster, 57// split it into multiple tests, or call set_time_limit within that test. 58define('TIME_ALLOWED_PER_UNIT_TEST', 60);language.php http://phreedom.googlecode.com/svn/trunk/ | PHP | 190 lines
1<?php 2// +-----------------------------------------------------------------+ 17// +-----------------------------------------------------------------+ 18// Path: /modules/shipping/language/en_us/language.php 19// 56define('SHIPPING_INSURANCE_AMOUNT','Insurance: Amount '); 57define('SHIPPING_SPLIT_LARGE_SHIPMENTS','Split large shipments for small pkg carrier '); 58define('SHIPPING_TEXT_PER_BOX',' per box');AnalyticsAsyncTopScript.cs https://hg01.codeplex.com/mojoportal | C# | 348 lines
5// The use and distribution terms for this software are covered by the 6// Common Public License 1.0 (http://opensource.org/licenses/cpl.php) 7// which can be found in the file CPL.TXT at the root of this distribution. 27 /// if you want to use the async loading approach described here: 28 /// http://code.google.com/apis/analytics/docs/tracking/asyncUsageGuide.html#SplitSnippet 29 ///ARC2_StoreLoadQueryHandler.php https://code.google.com/p/s3db/ | PHP | 387 lines
1<?php 2/* 142 $refresh_lock = 0; 143 $split_tables = 0; 144 if (($this->t_count % ($this->write_buffer_size * 2)) == 0) { 147 $refresh_lock = 1; 148 $split_tables = 1; 149 } 153 } 154 $this->checkSQLBuffers($force_write, $reset_buffers, $refresh_lock, $split_tables); 155 } 319 320 function checkSQLBuffers($force_write = 0, $reset_id_buffers = 0, $refresh_lock = 0, $split_tables = 0) { 321 $con = $this->store->getDBCon();2dbarcodes.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 202 lines
1<?php 2//============================================================+ 2//============================================================+ 3// File name : 2dbarcodes.php 4// Version : 1.0.007 29// 30// Description : PHP class to creates array representations for 31// 2D barcodes to be used with TCPDF. 36/** 37 * PHP class to creates array representations for 2D barcodes to be used with TCPDF. 38 * @package com.tecnick.tcpdf 47/** 48 * PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).<br> 49 * @name TCPDFBarcode 102 { // QR-CODE 103 require_once (dirname(__FILE__) . '/qrcode.php'); 104 if (! isset($mode[1]) or (! in_array($mode[1], array('L', 'M', 'Q', 'H'))))Message.php git://github.com/moodle/moodle.git | PHP | 287 lines
1<?php 2/** 25 */ 26require_once 'Zend/Mime.php'; 27 30 */ 31require_once 'Zend/Mime/Part.php'; 32 244 { 245 require_once 'Zend/Mime/Decode.php'; 246 $parts = Zend_Mime_Decode::splitMessageStruct($message, $boundary, $EOL);rsi.py git://github.com/emesene/emesene.git | Python | 82 lines
57 seq_num = int(m.get('X-OIM-Sequence-Num')) 58 if m.get_content_type().split('/')[1] == 'vnd.ms-msnipg': 59 # FIXME : process the IPG data 59 # FIXME : process the IPG data 60 # http://www.amsn-project.net/forums/viewtopic.php?p=21744 61 # set a mobile sender flagtbs_plugin_syntaxes.php http://xfw-xkid-framework.googlecode.com/svn/trunk/ | PHP | 150 lines
1<?php 2 110 function OnMergeGroup(&$RecInfo,&$GrpDef,&$DataSrc,&$LocR) { 111 // Excuted before a header, a footer or a splitter section is merged. (supported since TBS 3.3.0) 112 // If the function returns False, then the section of the group is not merged.pre_process.php http://phreedom.googlecode.com/svn/trunk/ | PHP | 92 lines
1<?php 2// +-----------------------------------------------------------------+ 17// +-----------------------------------------------------------------+ 18// Path: /modules/inventory/pages/popup_assy/pre_process.php 19// 21/************** include page specific files *********************/ 22require(DIR_FS_WORKING . 'functions/inventory.php'); 23 35/*************** hook for custom actions ***************************/ 36$custom_path = DIR_FS_WORKING . 'custom/pages/popup_assy/extra_actions.php'; 37if (file_exists($custom_path)) { include($custom_path); } 82 83$query_split = new splitPageResults($_GET['list'], MAX_DISPLAY_SEARCH_RESULTS, $query_raw, $query_numrows); 84$query_result = $db->Execute($query_raw); 89$include_calendar = false; 90$include_template = 'template_main.php'; 91define('PAGE_TITLE', GEN_HEADING_PLEASE_SELECT);birthday_manager_fb.user.js http://gdata-javascript-client.googlecode.com/svn/trunk/ | JavaScript | 157 lines
24// @description Adds a link on profile pages that will let you add a user's birthday to your calendar. 25// @include *.thefacebook.com/profile.php* 26// @include *.facebook.com/profile.php* 67 68 var monthDayLinks = xPath('//a[contains(@href, "s.php?adv&k=10010")]'); 69 if (monthDayLinks.snapshotLength > 0) { //take the first 71 var monthDayText = monthDayLink.innerHTML; 72 var monthText = monthDayText.split(' ')[0]; 73 var dayText = monthDayText.split(' ')[1]; 77 78 var yearLinks = xPath('//a[contains(@href, "b.php?k=10010&n=-1&y1=")]'); 79 if (yearLinks.snapshotLength > 0) { //take the first 86 87 var picImgs = xPath('//a[contains(@href, "album.php?profile")]/img') 88 if (picImgs.snapshotLength > 0) { //take the firstpre_process.php http://phreedom.googlecode.com/svn/trunk/ | PHP | 107 lines
1<?php 2// +-----------------------------------------------------------------+ 17// +-----------------------------------------------------------------+ 18// Path: /modules/contacts/pages/popup_accts/pre_process.php 19// 21/************** include page specific files *********************/ 22require(DIR_FS_WORKING . 'functions/contacts.php'); 23require(DIR_FS_WORKING . 'classes/contacts.php'); 41/*************** hook for custom actions ***************************/ 42$custom_path = DIR_FS_WORKING . 'custom/pages/popup_accts/extra_actions.php'; 43if (file_exists($custom_path)) { include($custom_path); } 99 100$query_split = new splitPageResults($_GET['list'], MAX_DISPLAY_SEARCH_RESULTS, $query_raw, $query_numrows); 101$query_result = $db->Execute($query_raw); 103$include_footer = true; 104$include_template = 'template_main.php'; 105define('PAGE_TITLE', ACT_POPUP_WINDOW_TITLE);user.js http://nuke-viet.googlecode.com/svn/trunk/ | JavaScript | 0 lines
9 if(point==1 || point==2 || point==3 || point==4 || point==5){ 10 nv_ajax('post', nv_siteroot + 'index.php', nv_lang_variable + '=' + nv_sitelang + '&' + nv_name_variable + '=' + nv_module_name + '&' + nv_fc_variable + '=rating&id=' + id + '&checkss=' + newscheckss + '&point=' + point, 'stringrating', ''); 11 } 41 nv_change_captcha('vimg', 'commentseccode_iavim'); 42 var r_split = res.split("_"); 43 if (r_split[0] == 'OK') { 45 nv_show_hidden('showcomment', 1); 46 nv_show_comment(r_split[1], r_split[2], r_split[3]); 47 alert(r_split[4]); 72function nv_del_content_result(res) { 73 var r_split = res.split("_"); 74 if (r_split[0] == 'OK') { 75 window.location.href = strHref; 76 } else if (r_split[0] == 'ERR') { 77 alert(r_split[1]);fckconfig.js http://rorptm.googlecode.com/svn/trunk/ | JavaScript | 175 lines
5 * Licensed under the terms of the GNU Lesser General Public License: 6 * http://www.opensource.org/licenses/lgpl-license.php 7 * 67 68 var aCouples = oConfigField.value.split('&') ; 69 74 75 var aConfig = aCouples[i].split( '=' ) ; 76 var sKey = unescape( aConfig[0] ) ;Cell.php https://PHPExcel.svn.codeplex.com/svn | PHP | 565 lines
29/** PHPExcel_Cell_DataType */ 30require_once 'PHPExcel/Cell/DataType.php'; 31 32/** PHPExcel_Cell_DataValidation */ 33require_once 'PHPExcel/Cell/DataValidation.php'; 34 35/** PHPExcel_Worksheet */ 36require_once 'PHPExcel/Worksheet.php'; 37 38/** PHPExcel_Calculation */ 39require_once 'PHPExcel/Calculation.php'; 40 46 * @package PHPExcel 47 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 48 */tradereport.js git://github.com/ofosho/ChartPlotter.git | JavaScript | 214 lines
4 ofosho@gatech.edu 5Associated PHP: tradereport.php 6Ajax PHP: 34 nStr += ''; 35 x = nStr.split('.'); 36 x1 = x[0]; 53 $.ajax({ 54 url: '../php/getCSVasTable.php', 55 method: 'GET',BIFFwriter.php https://PHPExcel.svn.codeplex.com/svn | PHP | 266 lines
1<?php 2/* 2/* 3* Module written/ported by Xavier Noguer <xnoguer@php.net> 4* 11* I _DO_ maintain this code, and John McNamara has nothing to do with the 12* porting of this code to PHP. Any questions directly related to this 13* class library should be directed to me. 16* 17* PHPExcel_Writer_Excel5_Writer: A library for generating Excel Spreadsheets 18* Copyright (c) 2002-2003 Xavier Noguer xnoguer@php.net 46* 47* @author Xavier Noguer <xnoguer@php.net> 48* @category PHPExcel 48* @category PHPExcel 49* @package PHPExcel_Writer_Excel5 50*/tv.ajax.php http://modx-ja.googlecode.com/svn/trunk/ | PHP | 286 lines
1<?php 2/** 5 6require_once '../../../manager/includes/protect.inc.php'; 7include_once ('../../../manager/includes/config.inc.php'); 182 var h = screen.height * 0.7; 183 OpenServerBrowser('".$base_url."manager/media/browser/mcpuk/browser.html?Type=images&Connector=".$base_url."manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath=".$base_url."', w, h); 184 } 189 var h = screen.height * 0.7; 190 OpenServerBrowser('".$base_url."manager/media/browser/mcpuk/browser.html?Type=files&Connector=".$base_url."manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath=".$base_url."', w, h); 191 } 237 var h = screen.height * 0.7; 238 OpenServerBrowser('".$base_url."manager/media/browser/mcpuk/browser.html?Type=images&Connector=".$base_url."manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath=".$base_url."', w, h); 239 } 244 var h = screen.height * 0.7; 245 OpenServerBrowser('".$base_url."manager/media/browser/mcpuk/browser.html?Type=files&Connector=".$base_url."manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath=".$base_url."', w, h); 246 }Mail.php git://github.com/osCommerce/oscommerce.git | PHP | 375 lines
1<?php 2/** 115 'mimetype' => $mimetype, 116 'data' => chunk_split(base64_encode($data))); 117 } 131 'mimetype' => $mimetype, 132 'data' => chunk_split(base64_encode($data))); 133 }add_img.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 206 lines
1<?php 2 16{ 17 require_once ( NV_ROOTDIR . '/' . NV_EDITORSDIR . '/' . NV_EDITOR . '/nv.php' ); 18} 72 $homeimgfile = NV_DOCUMENT_ROOT . $data['path']; 73 require_once ( NV_ROOTDIR . "/includes/class/image.class.php" ); 74 $basename = basename( $homeimgfile ); 109 { 110 list( $mo, $data['name'] ) = split( '[/.]', $data['path'] ); // 111 } 116 $adb->freeResult(); 117 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=listimg&idb=" . $data['albumid'] ); 118 die(); 130 $adb->freeResult(); 131 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=listimg&idb=" . $data['albumid'] ); 132 die();xml.class.php http://wikiplot.googlecode.com/svn/trunk/ | PHP | 398 lines
1<?php 2/* 30 * <code> 31 * <?php 32 * $xml_data = "<root> 213 * 214 * The function uses xml_parse() function from XML Parser Functions in PHP 215 * and parses only the first tag in the given XML data and ignores 272 { 273 //Split the given XML data by using $Separator 274 $InterestedTags = explode($this->Separator , $this->Input);template_main.php http://phreedom.googlecode.com/svn/trunk/ | PHP | 94 lines
47 48<div style="float:right"><?php echo $query_split->display_links($query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['list']); ?></div> 49<div><?php echo $query_split->display_count($query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['list'], TEXT_DISPLAY_NUMBER . TEXT_ITEMS); ?></div> 66 <tr class="<?php echo $odd?'odd':'even'; ?>" style="cursor:pointer"> 67 <td<?php echo $bkgnd; ?> onclick="submitSeq(<?php echo $query_result->fields['id'] . ', \'edit\''; ?>)"><?php echo $query_result->fields['sku']; ?></td> 68 <td align="center" onclick="submitSeq(<?php echo $query_result->fields['id'] . ', \'edit\''; ?>)"><?php echo ($query_result->fields['inactive']=='0' ? '' : TEXT_YES); ?></td> 70 <td align="center" onclick="submitSeq(<?php echo $query_result->fields['id'] . ', \'edit\''; ?>)"><?php echo $qty_in_stock; ?></td> 71 <td align="center" onclick="submitSeq(<?php echo $query_result->fields['id'] . ', \'edit\''; ?>)"><?php echo $query_result->fields['quantity_on_sales_order']; ?></td> 72 <td align="center" onclick="submitSeq(<?php echo $query_result->fields['id'] . ', \'edit\''; ?>)"><?php echo $query_result->fields['quantity_on_allocation']; ?></td> 72 <td align="center" onclick="submitSeq(<?php echo $query_result->fields['id'] . ', \'edit\''; ?>)"><?php echo $query_result->fields['quantity_on_allocation']; ?></td> 73 <td align="center" onclick="submitSeq(<?php echo $query_result->fields['id'] . ', \'edit\''; ?>)"><?php echo $query_result->fields['quantity_on_order']; ?></td> 74 <td align="right"> 92<div style="float:right"><?php echo $query_split->display_links($query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['list']); ?></div> 93<div><?php echo $query_split->display_count($query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['list'], TEXT_DISPLAY_NUMBER . TEXT_ITEMS); ?></div> 94</form>SingularValueDecomposition.php https://PHPExcel.svn.codeplex.com/svn | PHP | 503 lines
1<?php 2/** 16* @author Paul Meagher 17* @license PHP v3.0 18* @version 1.1 284 break; 285 // Split at negligible s(k). 286 case 2:pre_process.php http://phreedom.googlecode.com/svn/trunk/ | PHP | 130 lines
1<?php 2// +-----------------------------------------------------------------+ 17// +-----------------------------------------------------------------+ 18// Path: /modules/inventory/pages/popup_inv/pre_process.php 19// 21/************** include page specific files *********************/ 22require(DIR_FS_WORKING . 'defaults.php'); 23require(DIR_FS_WORKING . 'functions/inventory.php'); 52/*************** hook for custom actions ***************************/ 53$custom_path = DIR_FS_WORKING . 'custom/pages/popup_inv/extra_actions.php'; 54if (file_exists($custom_path)) { include($custom_path); } 117 118$query_split = new splitPageResults($_GET['list'], MAX_DISPLAY_SEARCH_RESULTS, $query_raw, $query_numrows); 119$query_result = $db->Execute($query_raw); 126$include_footer = true; 127$include_template = 'template_main.php'; 128define('PAGE_TITLE', INV_POPUP_WINDOW_TITLE);search.vim git://github.com/dakrone/dakrone-dotfiles.git | Vim Script | 164 lines
27 " possible values ('split', 'edit', 'lopen') 28 let g:EclimPhpSearchSingleResult = "split" 29 endif 53" Executes a search. 54function! eclim#php#search#Search(argline) 55 return eclim#lang#Search( 81 82 let results = split(globpath(expand('%:h') . ',' . join(paths, ','), file), '\n') 83 87 " single result in another file. 88 if len(results) == 1 && g:EclimPhpSearchSingleResult != "lopen" 89 let entry = getloclist(0)[0] 131" Custom command completion for PhpSearch 132function! eclim#php#search#CommandCompletePhpSearch(argLead, cmdLine, cursorPos) 133 let cmdLine = strpart(a:cmdLine, 0, a:cursorPos)breadcrumbs.js git://github.com/apache/zookeeper.git | JavaScript | 238 lines
98 */ 99var FILE_EXTENSIONS = new Array( ".html", ".htm", ".jsp", ".php", ".php3", ".php4" ); 100 125{ 126 var trail = document.location.pathname.split( PATH_SEPARATOR ); 127url.py https://bitbucket.org/cyrilrbt/caldav/ | Python | 187 lines
6 from urllib import parse 7 from urllib.parse import ParseResult, SplitResult, urlparse, unquote 8else: 9 from urlparse import urlparse as parse 10 from urlparse import ParseResult, SplitResult 11 from urlparse import urlparse 32 refer to 33 "http://my.davical-server.example.com/caldav.php/someuser/calendar". 34 34 35 2) an absolute path, i.e. "/caldav.php/someuser/calendar" 36 37 3) a fully qualified URL, 38 i.e. "http://someuser:somepass@my.davical-server.example.com/caldav.php/someuser/calendar". 39 Remark that hostname, port, user, pass is typically given whendeveloper_task.php git://github.com/gallery/gallery3-contrib.git | PHP | 335 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2/** 60 case 5: // Generate admin controller 61 $file = "{$context['module_path']}/controllers/admin_{$context['module']}.php"; 62 ob_start(); 71 case 6: // Generate admin form 72 $file = "{$context['module_path']}/views/admin_{$context['module']}.html.php"; 73 ob_start(); 82 case 7: // Generate controller 83 $file = "{$context['module_path']}/controllers/{$context['module']}.php"; 84 ob_start(); 94 case 8: // Generate sidebar block view 95 $file = "{$context['module_path']}/views/{$context['module']}_block.html.php"; 96 ob_start(); 106 case 9: // Generate dashboard block view 107 $file = "{$context['module_path']}/views/admin_{$context['module']}_block.html.php"; 108 ob_start();product_listing.php http://daocart.googlecode.com/svn/trunk/ | PHP | 224 lines
1<?php 2/** 8 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 9 * @version $Id: product_listing.php 6787 2007-08-24 14:06:33Z drbyte $ 10 */ 14$show_submit = zen_run_normal(); 15$listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_PRODUCTS_LISTING, 'p.products_id', 'page'); 16$zco_notifier->notify('NOTIFY_MODULE_PRODUCT_LISTING_RESULTCOUNT', $listing_split->number_of_rows); 72 73if ($listing_split->number_of_rows > 0) { 74 $rows = 0; 74 $rows = 0; 75 $listing = $db->Execute($listing_split->sql_query); 76 $extra_row = 0; 204 205if (($how_many > 0 and $show_submit == true and $listing_split->number_of_rows > 0) and (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART == 1 or PRODUCT_LISTING_MULTIPLE_ADD_TO_CART == 3) ) { 206 $show_top_submit_button = true;dump_provider.php http://perseph.googlecode.com/svn/trunk/ | PHP | 134 lines
1<?php 2/** 6 */ 7require_once dirname(__FILE__).'/php_support/error_handling.inc'; 8 8 9require_once 'MDB2.php'; 10 11function perror( $msg ) { 12 file_put_contents( 'php://stderr', $msg ); 13} 87 print( "\ttable $table {\n" ); 88 //NOTE: http://pear.php.net/bugs/bug.php?id=15100 89 $mdb->setOption( 'quote_identifier', true ); 117 if( $type == 'Decimal' && isset( $decl['length'] ) ) { 118 $digits = split( ',', $decl['length'] ); 119 if( count( $digits ) < 2 || $digits[1] == 0 )XmlPropertyTask.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 286 lines
1<?php 2 3/* 4 * $Id: XmlPropertyTask.php 971 2010-11-08 21:13:11Z mrook $ 5 * 22 23include_once 'phing/tasks/system/PropertyTask.php'; 24 118 /** 119 * Delimiter for splitting multiple values. 120 * 274 // <project> 275 // <exclude>file/a.php</exclude> 276 // <exclude>file/a.php</exclude> 278 // 279 // Would be come project.exclude = file/a.php,file/a.php 280 $p = empty($prefix) ? $tag : $prefix . $tag;Format.php git://github.com/pyrocms/pyrocms.git | PHP | 263 lines
1<?php 2/** 28 { 29 // Stupid stuff to emulate the "new static()" stuff in this libraries PHP 5.3 equivilent 30 $class = __CLASS__; 192 193 $output = implode(',', $headings).PHP_EOL; 194 foreach ($data as &$row) 195 { 196 $output .= '"'.implode('","', $row).'"'.PHP_EOL; 197 } 213 214 // Output as a string representing the PHP structure 215 public function to_php() 231 232 // Splits 233 $rows = explode("\n", trim($string));UpdateDownloader.cs https://hg01.codeplex.com/procon | C# | 128 lines
33 this.m_updatesDirectoryName = updatesDirectoryName; 34 this.VersionChecker = new CDownloadFile("http://www.phogue.net/procon/version3.php"); 35 this.VersionChecker.DownloadComplete += new CDownloadFile.DownloadFileEventDelegate(VersionChecker_DownloadComplete); 73 74 string[] a_strVersionData = System.Text.Encoding.UTF8.GetString(cdfSender.CompleteFileData).Split('\n'); 75swfobject.js https://hg01.codeplex.com/sitenote | JavaScript | 173 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 * 48 { 49 this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split("."))); 50 } 169}; 170deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject; 171 var SWFObject=deconcept.SWFObject;manage-posts.php http://typecho.googlecode.com/svn/trunk/ | PHP | 136 lines
24 <?php endif; ?> 25 <input type="text" value="<?php '' != $request->keywords ? print(htmlspecialchars($request->keywords)) : _e('??????'); ?>"<?php if ('' == $request->keywords): ?> onclick="value='';name='keywords';" <?php else: ?> name="keywords"<?php endif; ?>/> 26 <select name="category"> 29 <?php while($category->next()): ?> 30 <option value="<?php $category->mid(); ?>"<?php if($request->get('category') == $category->mid): ?> selected="true"<?php endif; ?>><?php $category->name(); ?></option> 31 <?php endwhile; ?> 70 <td><input type="checkbox" value="<?php $posts->cid(); ?>" name="cid[]"/></td> 71 <td><a href="<?php $options->adminUrl('manage-comments.php?cid=' . $posts->cid); ?>" class="balloon-button right size-<?php echo Typecho_Common::splitByCount($posts->commentsNum, 1, 10, 20, 50, 100); ?>"><?php $posts->commentsNum(); ?></a></td> 72 <td<?php if ('draft' != $posts->status && 'waiting' != $posts->status && 'private' != $posts->status && !$posts->password): ?> colspan="2"<?php endif; ?>> 80 <?php if ('publish' == $posts->status): ?> 81 <a class="right hidden-by-mouse" href="<?php $posts->permalink(); ?>"><img src="<?php $options->adminUrl('images/link.png'); ?>" title="<?php _e('?? %s', htmlspecialchars($posts->title)); ?>" width="16" height="16" alt="view" /></a> 82 <?php endif; ?> 83 </td> 84 <td><a href="<?php $options->adminUrl('manage-posts.php?uid=' . $posts->author->uid); ?>"><?php $posts->author(); ?></a></td> 85 <td><?php $categories = $posts->categories; $length = count($categories); ?>AutoParagraphTest.php https://code.google.com/p/vtiger-ru-fork/ | PHP | 509 lines
1<?php 2 200 201 function testSplitUpInternalsOfPTagInBlockNode() { 202 $this->assertResult( 211 212 function testSplitUpInlineNodesInPTagInBlockNode() { 213 $this->assertResult(search.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 150 lines
1<?php 2 18 19 require dirname(__FILE__).'/class/d3diaryConf.class.php'; 20 92 $ret[$i]['image'] = "images/pencil.gif"; 93 $ret[$i]['link'] = "index.php?page=detail&bid=".$dbdat['bid']; 94 $ret[$i]['title'] = htmlspecialchars($dbdat['title'], ENT_QUOTES); 94 $ret[$i]['title'] = htmlspecialchars($dbdat['title'], ENT_QUOTES); 95 $tmparray = preg_split("/[-: ]/", $dbdat['create_time']); 96 $ret[$i]['time'] = mktime($tmparray[3], $tmparray[4], $tmparray[5], $tmparray[1], $tmparray[2], $tmparray[0]); 130 $ret = ltrim(preg_replace('/\s+/', ' ', $text)); 131 list($pre, $aft)=preg_split("/$q_word/i", $ret, 2); 132 $m = intval($l/2);mod_mm.c git://github.com/php/php-src.git | C | 493 lines
2 +----------------------------------------------------------------------+ 3 | Copyright (c) The PHP Group | 4 +----------------------------------------------------------------------+ 4 +----------------------------------------------------------------------+ 5 | This source file is subject to version 3.01 of the PHP license, | 6 | that is bundled with this package in the file LICENSE, and is | 7 | available through the world-wide-web at the following url: | 8 | http://www.php.net/license/3_01.txt | 9 | If you did not receive a copy of the PHP license and are unable to | 10 | obtain it through the world-wide-web, please send a note to | 11 | license@php.net so we can mail you a copy immediately. | 12 +----------------------------------------------------------------------+ 16 17#include "php.h" 18config.php http://webhoneypot.googlecode.com/svn/trunk/ | PHP | 381 lines
104 # 105 # Reference: http://us.php.net/manual/en/features.commandline.php 106 # 111 112 $phpMinVersion = "5.0.0"; 113 $aVersionParts = explode ( '.', PHP_VERSION ); 113 $aVersionParts = explode ( '.', PHP_VERSION ); 114 $aMinVersionParts = explode ( '.', $phpMinVersion ); 115 $nMax = max ( array_merge ( $aVersionParts + $aMinVersionParts ) ); 130 if ($nMinVersion <= $nVersion) { 131 echo "( " . PHP_VERSION . " > " . $phpMinVersion . ") "; 132 echo "[ OK ]" . "\n"; 134 echo "[ FAILED ]" . "\n"; 135 echo "PhP >= $phpMinVersion is required!\n"; 136 exit ( 1 );blocks.js http://bitcero-modules.googlecode.com/svn/ | JavaScript | 276 lines
18 19 $.post('ajax/blocks.php', params, function(data){ 20 28 if(data.token==null || data.token==''){ 29 window.location.href = 'blocks.php'; 30 } else { 134 135 $.post("ajax/blocks.php", vars, function(data){ 136 144 if(data.token==null || data.token==''){ 145 window.location.href = 'blocks.php'; 146 } else { 200 201 var block = block.split("-"); 202SourceServer.php http://globalban-spanish.googlecode.com/svn/globalban/ | PHP | 93 lines
1<?php 2/** 8 * @author Sebastian Staudt 9 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License 10 * @package Steam Condenser (PHP) 13 14require_once STEAM_CONDENSER_PATH . 'InetAddress.php'; 15require_once STEAM_CONDENSER_PATH . 'exceptions/RCONNoAuthException.php'; 15require_once STEAM_CONDENSER_PATH . 'exceptions/RCONNoAuthException.php'; 16require_once STEAM_CONDENSER_PATH . 'steam/packets/rcon/RCONAuthRequest.php'; 17require_once STEAM_CONDENSER_PATH . 'steam/packets/rcon/RCONAuthResponse.php'; 17require_once STEAM_CONDENSER_PATH . 'steam/packets/rcon/RCONAuthResponse.php'; 18require_once STEAM_CONDENSER_PATH . 'steam/packets/rcon/RCONExecRequest.php'; 19require_once STEAM_CONDENSER_PATH . 'steam/servers/GameServer.php'; 19require_once STEAM_CONDENSER_PATH . 'steam/servers/GameServer.php'; 20require_once STEAM_CONDENSER_PATH . 'steam/sockets/RCONSocket.php'; 21require_once STEAM_CONDENSER_PATH . 'steam/sockets/SourceSocket.php';Tree.php git://github.com/gallery/gallery3-contrib.git | PHP | 192 lines
1<?php 2 59 // grab the dirname and basename components 60 list($destinationDir, $destinationName) = Sabre_DAV_URLUtil::splitPath($destinationPath); 61 77 78 list($sourceDir, $sourceName) = Sabre_DAV_URLUtil::splitPath($sourcePath); 79 list($destinationDir, $destinationName) = Sabre_DAV_URLUtil::splitPath($destinationPath); 103 104 list($parent) = Sabre_DAV_URLUtil::splitPath($path); 105 $this->markDirty($parent); 161 if (is_string($data)) { 162 $stream = fopen('php://temp','r+'); 163 fwrite($stream,$data);tpl_modules_products_new_listing.php http://daocart.googlecode.com/svn/trunk/ | PHP | 216 lines
1<?php 2/** 4 * 5 * Loaded automatically by index.php?main_page=products_new.<br /> 6 * Displays listing of New Products 11 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 12 * @version $Id: tpl_modules_products_new_listing.php 6096 2007-04-01 00:43:21Z ajeh $ 13 */ 18 </tr> 19<?php 20 $group_id = zen_get_configuration_key_value('PRODUCT_NEW_LIST_GROUP_ID'); 21 22 if ($products_new_split->number_of_rows > 0) { 23 $products_new = $db->Execute($products_new_split->sql_query); 117 <tr> 118 <td width="<?php echo IMAGE_PRODUCT_NEW_LISTING_WIDTH + 10; ?>" valign="top" class="main" align="center"> 119 <?phpREADME.markdown git://github.com/moodle/moodle.git | Markdown | 113 lines
3 4SimplePie is a very fast and easy-to-use class, written in PHP, that puts the 5'simple' back into 'really simple syndication'. Flexible enough to suit 13------------ 14* PHP 5.3.0+ (5.3.6+ recommended since SimplePie 1.4.2) 15 * Support for PHP 5.2 stopped in branch `one-dot-three` 15 * Support for PHP 5.2 stopped in branch `one-dot-three` 16 * Support for PHP 4 stopped in branch `one-dot-two` 17* libxml2 (certain 2.7.x releases are too buggy for words, and will crash) 251. `library/` - SimplePie classes for use with the autoloader 262. `autoloader.php` - The SimplePie Autoloader if you want to use the separate 27 file version. 42 43If you'd like a single monolithic file, you can run `php build/compile.php` to 44generate `SimplePie.compiled.php`.ps_topic_group.inc http://phpshop.googlecode.com/svn/trunk/ | PHP | 398 lines
1<?php 2/* 239 foreach (glob($ldir) as $filename) { 240 list ($fn,$fl,$en) = split('[._]', basename($filename)); 241URI.php git://github.com/philsturgeon/codeigniter-restserver.git | PHP | 654 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 89 // Is the request coming from the command line? 90 if (php_sapi_name() == 'cli' or defined('STDIN')) 91 { 200 } 201 $parts = preg_split('#\?#i', $uri, 2); 202 $uri = $parts[0]; 218 219 $uri = parse_url($uri, PHP_URL_PATH); 220 254 { 255 // preg_quote() in PHP 5.3 escapes -, so the str_replace() and addition of - to preg_quote() is to maintain backwards 256 // compatibility as many are unaware of how characters in the permitted_uri_chars will be parsed as a regex patternviews.py http://walle.googlecode.com/svn/trunk/ | Python | 116 lines
41 datas["text_values"] = "text not utf-8, gbk or utf-16 code." 42 if ".html" == os.path.splitext(f)[1].lower() or ".xml" == os.path.splitext(f)[1].lower(): 43 return base_response.return_HttpResponse(request, datas['text_values']) 91 , '.pl', '.pm', '.plx' # perl 92 , '.php', '.php3', '.phtml' # php 93 , '.ps' # postscript 108 ] 109 ext = os.path.splitext(f)[1] 110# print ext, text_f_typemootools-adapter.src.js https://code.google.com/p/kegbot/ | JavaScript | 210 lines
19 fxStart = fxProto.start, 20 morphProto = Fx.Morph.prototype, 21 morphCompute = morphProto.compute; 29 if (from.d) { 30 //this.fromD = this.element.d.split(' '); 31 fx.paths = Highcharts.pathAnim.init( 40 // override Fx.step to allow animation of SVG element wrappers 41 morphProto.compute = function(from, to, delta) { 42 var fx = this,myocamlbuild.ml git://github.com/xen-org/xenops.git | OCaml | 478 lines
217 (** OCamlbuild extension, copied from 218 * http://brion.inria.fr/gallium/index.php/Using_ocamlfind_with_ocamlbuild 219 * by N. Pouillard and others 233 234 let split s ch = 235 let x = 248 249 let split_nl s = split s '\n' 250 257 let find_packages () = 258 List.map before_space (split_nl & run_and_read "ocamlfind list") 259template_main.php http://phreedom.googlecode.com/svn/trunk/ | PHP | 96 lines
47</div> 48<div style="float:right"><?php echo $query_split->display_links($query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['list']); ?></div> 49<div><?php echo $query_split->display_count($query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['list'], TEXT_DISPLAY_NUMBER . constant('ACT_' . strtoupper($type) . '_TYPE_NAME')); ?></div> 61 <tr class="<?php echo $odd?'odd':'even'; ?>" style="cursor:pointer"> 62 <td<?php echo $bkgnd; ?> onclick="submitSeq(<?php echo $query_result->fields['id']; ?>, 'edit')"><?php echo htmlspecialchars($query_result->fields['short_name']); ?></td> 63 <td<?php echo $bkgnd; ?> onclick="submitSeq(<?php echo $query_result->fields['id']; ?>, 'edit')"><?php echo htmlspecialchars($type == 'e' ? $query_result->fields['contact_first'] . ' ' . $query_result->fields['contact_last'] : $query_result->fields['primary_name']); ?></td> 63 <td<?php echo $bkgnd; ?> onclick="submitSeq(<?php echo $query_result->fields['id']; ?>, 'edit')"><?php echo htmlspecialchars($type == 'e' ? $query_result->fields['contact_first'] . ' ' . $query_result->fields['contact_last'] : $query_result->fields['primary_name']); ?></td> 64 <td onclick="submitSeq(<?php echo $query_result->fields['id']; ?>, 'edit')"><?php echo htmlspecialchars($query_result->fields['address1']); ?></td> 65 <td onclick="submitSeq(<?php echo $query_result->fields['id']; ?>, 'edit')"><?php echo htmlspecialchars($query_result->fields['city_town']); ?></td> 67 <td onclick="submitSeq(<?php echo $query_result->fields['id']; ?>, 'edit')"><?php echo htmlspecialchars($query_result->fields['postal_code']); ?></td> 68 <td onclick="submitSeq(<?php echo $query_result->fields['id']; ?>, 'edit')"><?php echo htmlspecialchars($query_result->fields['telephone1']); ?></td> 69 <td align="right"> 90<div style="float:right"><?php echo $query_split->display_links($query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['list']); ?></div> 91<div><?php echo $query_split->display_count($query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['list'], TEXT_DISPLAY_NUMBER . constant('ACT_' . strtoupper($type) . '_TYPE_NAME')); ?></div> 92list.php https://freedict.svn.sourceforge.net/svnroot/freedict | PHP | 89 lines
3include "inc/langcodes.php"; 4include "inc/gettext.php"; 5include "inc/links.php"; 8<head> 9 <title><?php echo _('Download / List View') ?> - FreeDict</title> 10 <META http-equiv="Content-Type" content="text/html;charset=utf-8"> 19 <tr bgcolor="#eeeeee"> 20 <th rowspan=2><?php echo _('Language & Project') ?></th> 21 <th rowspan=2><?php echo _('Maintainer') ?></th> 21 <th rowspan=2><?php echo _('Maintainer') ?></th> 22 <th rowspan=2><?php echo _('Headwords') ?></th> 23 <th rowspan=2><?php echo _('Version') ?></th> 87</table> 88<?php include 'inc/legend.php' ?> 89additional-methods.js git://github.com/jzaefferer/jquery-validation.git | JavaScript | 301 lines
9 * Dual licensed under the MIT and GPL licenses: 10 * http://www.opensource.org/licenses/mit-license.php 11 * http://www.gnu.org/licenses/gpl.html 137 if( re.test(value)){ 138 var adata = value.split('/'); 139 var gg = parseInt(adata[0],10);dba_inifile.c git://github.com/php/php-src.git | C | 181 lines
2 +----------------------------------------------------------------------+ 3 | Copyright (c) The PHP Group | 4 +----------------------------------------------------------------------+ 4 +----------------------------------------------------------------------+ 5 | This source file is subject to version 3.01 of the PHP license, | 6 | that is bundled with this package in the file LICENSE, and is | 7 | available through the world-wide-web at the following url: | 8 | http://www.php.net/license/3_01.txt | 9 | If you did not receive a copy of the PHP license and are unable to | 10 | obtain it through the world-wide-web, please send a note to | 11 | license@php.net so we can mail you a copy immediately. | 12 +----------------------------------------------------------------------+ 12 +----------------------------------------------------------------------+ 13 | Author: Marcus Boerger <helly@php.net> | 14 +----------------------------------------------------------------------+indexer.php http://flexicontent.googlecode.com/svn/trunk/ | PHP | 116 lines
1<?php 2/** 2/** 3 * @version 1.5 stable $Id: indexer.php 1775 2013-09-27 02:04:02Z ggppdk $ 4 * @package Joomla 37 jQuery.ajax({ 38 url: "index.php?option=com_flexicontent&<?php echo $search_task; ?>index&items_per_call="+items_per_call+"&itemcnt="+looper+"&indexer=<?php echo JRequest::getVar('indexer','advanced');?>"+"&rebuildmode=<?php echo JRequest::getVar('rebuildmode','');?>", 39 success: function(response, status2, xhr2) { 39 success: function(response, status2, xhr2) { 40 var arr = response.split('|'); 41 if(arr[0]=='fail') { 57 jQuery.ajax({ 58 url: "index.php?option=com_flexicontent&<?php echo $search_task; ?>countrows"+"&indexer=<?php echo JRequest::getVar('indexer','advanced');?>", 59 success: function(response, status, xhr) { 59 success: function(response, status, xhr) { 60 var arr = response.split('|'); 61 if(arr[0]=='fail') {indexer.php http://flexicontent.googlecode.com/svn/trunk/ | PHP | 116 lines
1<?php 2/** 2/** 3 * @version 1.5 stable $Id: indexer.php 1782 2013-10-08 22:47:51Z ggppdk $ 4 * @package Joomla 37 jQuery.ajax({ 38 url: "index.php?option=com_flexicontent&<?php echo $search_task; ?>index&items_per_call="+items_per_call+"&itemcnt="+looper+"&indexer=<?php echo JRequest::getVar('indexer','advanced');?>"+"&rebuildmode=<?php echo JRequest::getVar('rebuildmode','');?>", 39 success: function(response, status2, xhr2) { 39 success: function(response, status2, xhr2) { 40 var arr = response.split('|'); 41 if(arr[0]=='fail') { 57 jQuery.ajax({ 58 url: "index.php?option=com_flexicontent&<?php echo $search_task; ?>countrows"+"&indexer=<?php echo JRequest::getVar('indexer','advanced');?>", 59 success: function(response, status, xhr) { 59 success: function(response, status, xhr) { 60 var arr = response.split('|'); 61 if(arr[0]=='fail') {class.themeEditor.php https://bitbucket.org/dotclear/dotclear/ | PHP | 373 lines
1<?php 2# -- BEGIN LICENSE BLOCK --------------------------------------- 54 55 public function filesList($type,$item='%1$s',$split=true) 56 { 63 $list = ''; 64 if ($split) { 65 $list_theme = ''; // Files from current themedefault.php http://flexicontent.googlecode.com/svn/trunk/ | PHP | 246 lines
131 <?php if ( empty($found_fields[$fieldname]) ) continue; ?> 132 <th id="fc_<?php echo $fieldname; ?>" ><?php echo $this->items[0]->fields[$fieldname]->label; ?></th> 133 <?php endforeach; ?> 168 $base_url = (!preg_match("#^http|^https|^ftp#i", $src)) ? JURI::base(true).'/' : ''; 169 $thumb = JURI::base(true).'/components/com_flexicontent/librairies/phpthumb/phpThumb.php?src='.$base_url.$src.$conf; 170 } else { 194 ?> 195 <tr id="tablelist_item_<?php echo $i; ?>" class="<?php echo $fc_item_classes; ?>"> 196 <?php if ($use_image) : ?> 200 <?php if ($this->params->get('link_image', 1)) { ?> 201 <a href="<?php echo $item_link; ?>" class="hasTip" title="<?php echo JText::_( 'FLEXI_READ_MORE_ABOUT' ) . '::' . htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8'); ?>"> 202 <img src="<?php echo $thumb; ?>" /> 213 <td headers="fc_title"> 214 <a href="<?php echo $item_link; ?>"><?php echo $this->escape($item->title); ?></a> 215 <?php echo $markup_tags; ?>notification_update.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 126 lines
1<?php 2// $Id: notification_update.php,v 1.1 2007/05/15 02:34:18 minahito Exp $ 3// ------------------------------------------------------------------------ // 4// XOOPS - PHP Content Management System // 5// Copyright (c) 2000 XOOPS.org // 48 49include_once XOOPS_ROOT_PATH.'/include/notification_constants.php'; 50include_once XOOPS_ROOT_PATH.'/include/notification_functions.php'; 78 79 list($category, $item_id, $event) = split (',', $update_item['params']); 80 $status = !empty($update_item['status']) ? 1 : 0; 97 98include_once XOOPS_ROOT_PATH . '/include/notification_functions.php'; 99 101foreach ($update_list as $update_item) { 102 list($category,$item_id,$event) = split(',',$update_item['params']); 103 $category_info =& notificationCategoryInfo($category);fetch.php http://oregon-caspages.googlecode.com/svn/trunk/ | PHP | 306 lines
1<?php 2include 'editor_conf.php'; 2include 'editor_conf.php'; 3include 'intranet_check_cookie.php'; 4if($is_admin){ 8 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 9 * @author Andreas Gohr <andi@splitbrain.org> 10 */ 36 * 37 * @author Andreas Gohr <andi@splitbrain.org> 38 * @author Ben Coburn <btcoburn@silicodon.net> 108function http_conditionalRequest($timestamp){ 109 // A PHP implementation of conditional get, see 110 // http://fishbowl.pastiche.org/archives/001132.html 154 * 155 * @author Andreas Gohr <andi@splitbrain.org> 156 * @returns array The start byte and the amount of bytes to sendquestionare1.r git://github.com/rssh/dou_pl_questionare.git | R | 312 lines
52 x <- gsub("sh","Shell",x); 53 x <- gsub("php","PHP",x); 54 x <- gsub("go!|go","Go",x); 69languagesColumn <- function(cname) { al=NULL 70 for(a in strsplit(as.character(qs[,cname]),",")) { 71 al=c(al,normalizeLanguage(a)) 153# 154# ???? ????????? ??????? PHP-????: 155print("mirgation from PHP:"); 155print("mirgation from PHP:"); 156print(languageAfter("PHP")) 157 189 #oldpar <- par(mfrow=c(1,2)) 190 names<-c("PHP","Python","Ruby") 191 barplot(lct[names,],beside=TRUE,col=rainbow(3))Workbook.php https://PHPExcel.svn.codeplex.com/svn | PHP | 306 lines
22 * @package PHPExcel_Writer_Excel2007 23 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/lgpl.txt LGPL 32/** PHPExcel_Writer_Excel2007 */ 33require_once 'PHPExcel/Writer/Excel2007.php'; 34 173 { 174 if ($objWriter instanceof xmlWriter && $pPHPExcel instanceof PHPExcel) { 175 if ($pPHPExcel->getSecurity()->isSecurityEnabled()) { 223 { 224 if ($objWriter instanceof xmlWriter && $pPHPExcel instanceof PHPExcel) { 225 // Write sheets 288 // Create absolute coordinate and write as raw text 289 $range = PHPExcel_Cell::splitRange($pPHPExcel->getSheet($i)->getAutoFilter()); 290 $range[0] = PHPExcel_Cell::absoluteCoordinate($range[0]);StartPeer.java http://hypergraphdb.googlecode.com/svn/trunk/ | Java | 0 lines
35 { 36 String [] A = args[i].split("="); 37 if (A.length != 2) 47 } 48 Map<String, Object> configuration = HyperGraphPeer.loadConfiguration(new File(filename)); 49 if (db != null) 54 Structs.getStruct(configuration, "jxta", "tcp").put("port", Integer.parseInt(port)); 55 HyperGraphPeer server = new HyperGraphPeer(configuration); 56 server.start();FeedController.cs https://bitbucket.org/FunnelWeb/release/ | C# | 160 lines
86 }, 87 Keywords = e.TagsCommaSeparated.Split(',') 88 }; 108 var facebook = string.Format(@" <div class='facebook'> 109 <iframe src='http://www.facebook.com/plugins/like.php?href={0}&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:450px; height:80px;' allowTransparency='true'></iframe> 110 </div>", Url.Encode(itemUri.AbsoluteUri));banned.inc.php http://pixie-cms.googlecode.com/svn/trunk/ | PHP | 51 lines
1<?php if (!defined('BB2_CORE')) die('I said no cheating!'); 2 5 6require_once(BB2_CORE . "/responses.inc.php"); 7 20 } 21 $support_key = implode("-", str_split("$ip_hex$key", 4)); 22 30<head> 31<title>HTTP Error <?php echo $response['response']; ?></title> 32</head> 33<body> 34<h1>Error <?php echo $response['response']; ?></h1> 35<p>We're sorry, but we could not fulfill your request for 39<p>You can use this key to <a href="http://www.ioerror.us/bb2-support-key?key=<?php echo $support_key; ?>">fix this problem yourself</a>.</p> 40<p>If you are unable to fix the problem yourself, please contact <a href="mailto:<?php echo htmlspecialchars(str_replace("@", "+nospam@nospam.", bb2_email())); ?>"><?php echo htmlspecialchars(str_replace("@", " at ", bb2_email())); ?></a> and be sure to provide the technical support key shown above.</p> 41<?phptmplvars.commands.inc.php http://modx-ja.googlecode.com/svn/trunk/ | PHP | 150 lines
1<?php 2/* 63 64 case "EVAL" : // evaluates text as php codes return the results 65 $output = eval ($param); 139 $match = array (); 140 $regexp = '/@(' . implode('|', $BINDINGS) . ')\s*(.*)/im'; // Split binding on whitespace 141 if (preg_match($regexp, $binding_string, $match)) {adodb-pdo_mysql.inc.php git://github.com/movabletype/movabletype.git | PHP | 313 lines
1<?php 2/* 144 145 // split type into type(length): 146 $fld->scale = null; 157 $fld->enums = $arr; 158 $zlen = max(array_map('strlen', $arr)) - 2; // PHP >= 4.0.6 159 $fld->max_length = ($zlen > 0) ? $zlen : 1; 206 $offsetStr =($offset>=0) ? "$offset," : ''; 207 // jason judge, see http://phplens.com/lens/lensforum/msgs.php?id=9220 208 if ($nrows < 0) {decisionTree.js https://code.google.com/p/interactive-decision-tree/ | JavaScript | 184 lines
8 var thisURL = new String(document.location); 9 var urlParts = thisURL.split('?'); 10 loadData( urlParts[1] ); 50 branches.push( branch ); 51 var branchDepthParts = branch.id.split('.'); 52 if( branchDepthParts.length > maxDepth ){ 111Useful timer functions used for menu mouseout delays 112Source: http://www.codingforums.com/showthread.php?t=10531 113*/Column.php https://code.google.com/p/s3db/ | PHP | 206 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4: */ 3// +----------------------------------------------------------------------+ 4// | PHP version 4 | 5// +----------------------------------------------------------------------+ 5// +----------------------------------------------------------------------+ 6// | Copyright (c) 1997-2005 The PHP Group | 7// +----------------------------------------------------------------------+ 7// +----------------------------------------------------------------------+ 8// | This source file is subject to version 2.0 of the PHP license, | 9// | that is bundled with this package in the file LICENSE, and is | 10// | available through the world-wide-web at | 11// | http://www.php.net/license/2_02.txt. | 12// | If you did not receive a copy of the PHP license and are unable to | 13// | obtain it through the world-wide-web, please send a note to | 14// | license@php.net so we can mail you a copy immediately. | 15// +----------------------------------------------------------------------+AdapterAbstract.php git://github.com/moodle/moodle.git | PHP | 316 lines
1<?php 2/** 24 */ 25require_once 'Zend/Validate/Barcode/AdapterInterface.php'; 26 117 } else { 118 $chars = str_split($characters); 119 foreach ($chars as $char) { 299 $checksum = substr($value, -1, 1); 300 $values = str_split(substr($value, 0, -1)); 301DetailView.php https://code.google.com/p/vtiger-ru-fork/ | PHP | 154 lines
1<?php 2/********************************************************************************* 22 23require_once('Smarty_setup.php'); 24require_once('data/Tracker.php'); 24require_once('data/Tracker.php'); 25require_once('include/CustomFieldUtil.php'); 26require_once('include/utils/utils.php'); 26require_once('include/utils/utils.php'); 27require_once('user_privileges/default_module_view.php'); 28require_once('include/utils/PDFutils.php'); 54$smarty->assign("IMAGE_PATH", $image_path); 55$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']); 56 99 $validationData = getDBValidationData($focus->tab_name,$tabid); 100 $data = split_validationdataArray($validationData); 101groove.py https://bitbucket.org/vkolev/gsharkdown/ | Python | 245 lines
94 95 conn = createCurl("https://grooveshark.com/more.php?" + p["method"]) 96 conn.setopt(pycurl.POST, True) 126 127 conn = createCurl("https://grooveshark.com/more.php?" + p["method"]) 128 conn.setopt(pycurl.POST, True) 164 165 conn = createCurl("https://grooveshark.com/more.php?" + p["method"]) 166 conn.setopt(pycurl.POST, True) 203 for cookie in cookielist: 204 cookie = cookie.split("\t") 205 if cookie[5] == "PHPSESSID":jquery.uploadify.js http://bitcero-modules.googlecode.com/svn/ | JavaScript | 259 lines
34 uploader : 'uploadify.swf', // The path to the uploadify swf file 35 script : 'uploadify.php', // The path to the uploadify backend upload script 36 expressInstall : null, // The path to the express install swf file 59 var pagePath = location.pathname; 60 pagePath = pagePath.split('/'); 61 pagePath.pop(); 111 } 112 var sizeParts = byteSize.toString().split('.'); 113 if (sizeParts.length > 1) { 231 if (settingName == 'scriptData') { 232 var returnSplit = unescape(returnValue).split('&'); 233 var returnObj = new Object(); 234 for (var i = 0; i < returnSplit.length; i++) { 235 var iSplit = returnSplit[i].split('='); 236 returnObj[iSplit[0]] = iSplit[1];FeedManager.aspx.cs https://hg01.codeplex.com/mojoportal | C# | 310 lines
5/// The use and distribution terms for this software are covered by the 6/// Common Public License 1.0 (http://opensource.org/licenses/cpl.php) 7/// which can be found in the file CPL.TXT at the root of this distribution. 170 { 171 string[] entryHash = entryInfo.Split('_'); 172 bool published = Convert.ToBoolean(entryHash[1]);skeleton.html git://github.com/gradle/gradle.git | HTML | 0 lines
11 12<body class="${fileName.split('\\.').first()}"> 13 17 <div id="logo"> 18 <a href="index.php"> 19 <img src="img/gradle_logo.gif" width="280" height="77" /> 28urls.DOCS = 'documentation.html' 29urls.ROADMAP = "roadmap.php" 30urls.COMMUNITY = 'community.html'BIFFwriter.php git://github.com/moodle/moodle.git | PHP | 239 lines
1<?php 2/* 2/* 3* Module written/ported by Xavier Noguer <xnoguer@php.net> 4* 11* I _DO_ maintain this code, and John McNamara has nothing to do with the 12* porting of this code to PHP. Any questions directly related to this 13* class library should be directed to me. 17* Spreadsheet_Excel_Writer: A library for generating Excel Spreadsheets 18* Copyright (c) 2002-2003 Xavier Noguer xnoguer@php.net 19* 34 35require_once 'PEAR.php'; 36 48* 49* @author Xavier Noguer <xnoguer@php.net> 50* @category FileFormatsString.php http://digitalus-cms.googlecode.com/svn/trunk/ | PHP | 216 lines
1<?php 2/** 20 * @license http://digitalus-media.com/license/new-bsd New BSD License 21 * @version $Id: String.php 767 2010-05-04 19:22:01Z lowtower@gmx.de $ 22 */ 186 } 187 $words = split(' ', $text); 188 $text = (string)join(' ', array_slice($words, 0, $count));RoleManager.aspx.cs https://hg01.codeplex.com/mojoportal | C# | 242 lines
5/// The use and distribution terms for this software are covered by the 6/// Common Public License 1.0 (http://opensource.org/licenses/cpl.php) 7/// which can be found in the file CPL.TXT at the root of this distribution. 159 160 if (role.CanBeDeleted(WebConfigSettings.RolesThatCannotBeDeleted.SplitOnChar(';'))) 161 {makefont-new.php https://bitbucket.org/mstetson/obiblio/ | PHP | 490 lines
1<?php 2/* Prepare a font for use by our PDF classes. 5 * 6 * Usage: php -f makefont.php [-c] FontName 7 * 12 * 13 * The program creates FontName.php, the description file used by 14 * the class, and, if zlib compression is supported, FontName.z, a 56} 57write_dict($dict, $font.'.php'); 58 60 global $progname; 61 die("Usage: php -f $progname [-c] FontName\n"); 62} 92 { 93 $e=preg_split('/[ \\t]+/',rtrim($l)); 94 $cc=hexdec(substr($e[0],1));DumperTest.php git://github.com/symfony/symfony.git | PHP | 167 lines
1<?php 2 17 18class DumperTest extends \PHPUnit_Framework_TestCase 19{ 43 44 // split YAMLs documents 45 foreach (preg_split('/^---( %YAML\:1\.0)?/m', $yamls) as $yaml) { 55 } else { 56 $expected = eval('return '.trim($test['php']).';'); 57 158 159 $this->assertEquals('{ foo: !!php/object:O:30:"Symfony\Tests\Component\Yaml\A":1:{s:1:"a";s:3:"foo";}, bar: 1 }', $this->dumper->dump($a), '->dump() is able to dump objects'); 160 }pre_process.php http://phreedom.googlecode.com/svn/trunk/ | PHP | 209 lines
1<?php 2// +-----------------------------------------------------------------+ 17// +-----------------------------------------------------------------+ 18// Path: /modules/phreedom/pages/roles/pre_process.php 19// 23//gen_pull_language('contacts'); 24//require_once(DIR_FS_WORKING . 'functions/phreedom.php'); 25//require_once(DIR_FS_MODULES . 'phreebooks/functions/phreebooks.php'); 32/*************** hook for custom actions ***************************/ 33$custom_path = DIR_FS_WORKING . 'custom/pages/roles/extra_actions.php'; 34if (file_exists($custom_path)) { include($custom_path); } 174 case 'fill_all': 175 $include_template = 'template_detail.php'; 176 $role_name = isset($uInfo->admin_name) ? (' - ' . $uInfo->admin_name) : ''; 202 is_role = '1'" . $search . " order by $disp_order"; 203 $query_split = new splitPageResults($_GET['list'], MAX_DISPLAY_SEARCH_RESULTS, $query_raw, $query_numrows); 204 $query_result = $db->Execute($query_raw);Nodes.php http://daisydiff.googlecode.com/svn/trunk/ | PHP | 457 lines
26 27include_once 'Xml.php'; 28 184 185 public function splitUntil(TagNode $parent, Node $split, $includeLeft) { 186 $splitOccured = false; 193 194 $onSplit = false; 195 $pastSplit = false; 199 if ($child === $split) { 200 $onSplit = true; 201 } 201 } 202 if((!$pastSplit && !$onSplit) || ($onSplit && $includeLeft)) { 203 $child->setParent($part1);beg_balances_imp.php http://phreedom.googlecode.com/svn/trunk/ | PHP | 315 lines
1<?php 2// +-----------------------------------------------------------------+ 17// +-----------------------------------------------------------------+ 18// Path: /modules/phreebooks/classes/beg_balances_imp.php 19// 99 function csv_string_to_array($str) { 100 $results = preg_split("/,(?=(?:[^\"]*\"[^\"]*\")*(?![^\"]*\"))/", trim($str)); 101 return preg_replace("/^\"(.*)\"$/", "$1", $results);NotImplementedPaymentGateway.cs https://hg01.codeplex.com/mojoportal | C# | 497 lines
5// The use and distribution terms for this software are covered by the 6// Common Public License 1.0 (http://opensource.org/licenses/cpl.php) 7// which can be found in the file CPL.TXT at the root of this distribution. 487 488 // positions in the string array after split on pipe 489