100+ results results for 'php split repo:izubizarreta/https-bitbucket.org-bityvip-alpes' (498 ms)
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 28 * Timezone for formatted_time 29 * @link http://uk2.php.net/manual/en/timezones.php 30 * @var string 39 * 40 * [!!] A list of time zones that PHP supports can be found at 41 * <http://php.net/timezones>. 315 // Array with the output formats 316 $output = preg_split('/[^a-z]+/', $output); 317 548 * 549 * @see http://php.net/manual/en/datetime.construct.php 550 * @param string datetime_str datetime stringlexer.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 393 lines
1<?php // $Id: lexer.php,v 1.1 2005/01/31 07:39:03 moodler Exp $ 2 2 3/* PHP lexer code snarfed from the CVS tree for the lamplib project at 4 * http://sourceforge.net/projects/lamplib 165 * Some optimisation to make the sure the 166 * content is only scanned by the PHP regex 167 * parser once. Lexer modes must not start 275 /** 276 * Splits the page text into tokens. Will fail 277 * if the handlers report an error or if norpcconsole.cpp https://gitlab.com/Quetzalcoatl/VekitaCoin | C++ | 433 lines
2// Distributed under the MIT/X11 software license, see the accompanying 3// file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 55/** 56 * Split shell command line into a list of arguments. Aims to emulate \c bash and friends. 57 * 66 * @param[out] args Parsed arguments will be appended to this list 67 * @param[in] strCommand Command line to split 68 */arr.php https://bitbucket.org/lvandervelde/vingiserver.git | PHP | 602 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 121 122 // Split the keys by delimiter 123 $keys = explode($delimiter, $path); 209 210 // Split the keys by delimiter 211 $keys = explode($delimiter, $path); 351 /** 352 * Recursive version of [array_map](http://php.net/array_map), applies one or more 353 * callbacks to all elements in an array, including sub-arrays. 403 * Merges one or more arrays recursively and preserves all keys. 404 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)! 405 * 539 // param,param 540 $params = preg_split('/(?<!\\\\),/', $match[2]); 541 $params = str_replace('\,', ',', $params);Selection.js https://github.com/StephanHoyer/DJsAdmin.git | JavaScript | 445 lines
11 LGPL: http://www.gnu.org/licenses/lgpl.html 12 EPL: http://www.eclipse.org/org/documents/epl-v10.php 13 See the LICENSE file in the project's top-level directory for details. 103 // get the selected part and split it by linebreaks 104 var split = qx.util.StringSplit.split(selectedValue, /\r\n/); 105 108 // -> harmonize this to one char per linebreak 109 return selectedValue.length - (split.length - 1); 110 }, 113 { 114 var selectedValue, selectedLength, split; 115 130 // get the selected part and split it by linebreaks 131 split = qx.util.StringSplit.split(selectedValue, /\r\n/); 132VipsScaler_body.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 357 lines
1<?php 2class VipsScaler { 212 protected static function getVipsHandler( $file ) { 213 list( $major, $minor ) = File::splitMime( $file->getMimeType() ); 214EditSimilar.class.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 372 lines
1<?php 2/** 90 } else { 91 $lines = preg_split( '/\*/', $stubCategories ); 92 $normalisedLines = array();relocation-x64.cpp https://github.com/soitun/hiphop-php.git | C++ | 416 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 16 17#include "hphp/runtime/vm/jit/relocation.h" 18PhpTransliteration.php https://gitlab.com/leoplanxxi/dr7-web-buap-2016 | PHP | 288 lines
24 * transliteration character tables are searched (see 25 * PhpTransliteration::readGenericData()). If looking up the character in the 26 * generic table results in a NULL value, or an illegal character is 59 * character code. This is set up as needed in PhpTransliteration::replace() 60 * by calling PhpTransliteration::readGenericData(). 61 * 70 * (optional) The directory where data files reside. If omitted, defaults 71 * to subdirectory 'data' underneath the directory where the class's PHP 72 * file resides. 83 84 foreach (preg_split('//u', $string, 0, PREG_SPLIT_NO_EMPTY) as $character) { 85 $code = self::ordUTF8($character); 115 // Split into Unicode characters and transliterate each one. 116 foreach (preg_split('//u', $string, 0, PREG_SPLIT_NO_EMPTY) as $character) { 117 $code = self::ordUTF8($character);schema.php https://gitlab.com/alexprowars/bitrix | PHP | 414 lines
1<?php 2namespace Bitrix\Perfmon\Sql; 8\Bitrix\Main\Loader::includeModule('perfmon'); 9$dir = new \Bitrix\Main\IO\Directory("/opt/php03.cp1251.www/mercurial/bitrix/modules"); 10foreach ($dir->getChildren() as $child) 53 * @param string $str DDL text. 54 * @param string $delimiter How to split DDL into statements. 55 * 61 $tokenizer = Tokenizer::createFromString($str); 62 foreach ($this->splitStatements($tokenizer, $delimiter) as $statement) 63 { 68 /** 69 * Splits tokens array into bunch of individual DDL statements. 70 * 71 * @param Tokenizer $tokenizer Tokens container. 72 * @param string $delimiter How to split DDL into statements. 73 *date.php https://bitbucket.org/JakePratt/kupcakz.com.git | PHP | 395 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 7 * @copyright (c) 2007-2009 Kohana Team 8 * @license http://kohanaphp.com/license 9 */ 55 * Returns the offset (in seconds) between two time zones. 56 * @see http://php.net/timezones 57 * 277 // Array with the output formats 278 $output = preg_split('/[^a-z]+/', strtolower((string) $output)); 279gecko.js https://bitbucket.org/ferOnti/processmaker.git | JavaScript | 293 lines
14 * 15 * Read the full licence: http://www.opensource.org/licenses/lgpl-license.php 16 */ 77 78 // split big files, highlighting parts of it 79 split : function(code,flag) { 112 o = o.replace(/<.*?>/g,''); 113 x = z = this.split(o,flag); 114 x = x.replace(/\n/g,'<br>'); 120 121 editor.innerHTML = this.actions.history[this.actions.next()] = (flag=='scroll') ? x : o.split(z).join(x); 122 if(flag!='init') this.findString(); 127 words = rangeAndCaret[0].substring(rangeAndCaret[1]-40,rangeAndCaret[1]); 128 words = words.replace(/[\s\n\r\);\W]/g,'\n').split('\n'); 129 return words[words.length-1].replace(/[\W]/gi,'').toLowerCase();fields.inc.php https://github.com/gunf/novo-isaak.local.git | PHP | 465 lines
1<?php 2 228 $output .= "if ( \$j('#tab".$newtab."').length > 0) { \n"; 229 $output .= 'var ruleHtml = \'<tr style="height: 10px"><td colspan="2"><div class="split"></div></td></tr>\'; '; 230Statement.php https://github.com/cosmocommerce/magento-mirror.git | PHP | 488 lines
1<?php 2/** 83 /** 84 * SQL string split into an array at placeholders. 85 * 87 */ 88 protected $_sqlSplit = array(); 89 90 /** 91 * Parameter placeholders in the SQL string by position in the split array. 92 * 139 // split into text and params 140 $this->_sqlSplit = preg_split('/(\?|\:[a-zA-Z0-9_]+)/', 141 $sql, -1, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY); 150 */ 151 #require_once 'Zend/Db/Statement/Exception.php'; 152 throw new Zend_Db_Statement_Exception("Invalid bind-variable position '$val'");string-util.cpp https://github.com/tstarling/hiphop-php.git | C++ | 461 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 16 17#include "hphp/runtime/base/string-util.h" 18#include <algorithm> 24#include "hphp/runtime/base/array-iterator.h" 25#include "hphp/runtime/base/builtin-functions.h" 26#include "hphp/runtime/base/container-functions.h" 27 28namespace HPHP { 29/////////////////////////////////////////////////////////////////////////////// 159 160Variant StringUtil::Split(const String& str, int split_length /* = 1 */) { 161 if (split_length <= 0) {CakePdf.php https://bitbucket.org/vsposato/vivo-tools.git | PHP | 720 lines
1<?php 2App::uses('File', 'Utility'); 284 285 list($pluginDot, $engineClassName) = pluginSplit($name, true); 286 $engineClassName = $engineClassName . 'Engine'; 311 312 list($pluginDot, $engineClassName) = pluginSplit($name, true); 313 $engineClassName = $engineClassName . 'Crypto'; 704 if ($viewClass !== 'View') { 705 list($pluginDot, $viewClass) = pluginSplit($viewClass, true); 706 $viewClass .= 'View';BakeShell.php https://gitlab.com/alexandresgv/siteentec | PHP | 317 lines
1<?php 2/** 2/** 3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://cakephp.org CakePHP(tm) Project 12 * @since 0.1.0 12 * @since 0.1.0 13 * @license http://www.opensource.org/licenses/mit-license.php MIT License 14 */ 27 * 28 * Bake is CakePHP's code generation script, which can help you kickstart 29 * application development by writing fully functional skeleton controllers, 31 * 32 * @link http://book.cakephp.org/3.0/en/console-and-shells/code-generation-with-bake.html 33 */toolbar.php https://gitlab.com/michield/dokuwiki | PHP | 255 lines
1<?php 2/** 5 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 6 * @author Andreas Gohr <andi@splitbrain.org> 7 */ 15 * @param string $varname Name of the JS variable to fill 16 * @author Andreas Gohr <andi@splitbrain.org> 17 */ 198 'icon' => 'image.png', 199 'url' => 'lib/exe/mediamanager.php?ns=', 200 'name' => 'mediaselect', 238 * 239 * @author Andreas Gohr <andi@splitbrain.org> 240 */Part.php https://bitbucket.org/freddixx/e-business-vcrm-plugin.git | PHP | 486 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Part.php 9099 2008-03-30 19:35:47Z thomas $ 20 */ 25 */ 26require_once 'Zend/Mime/Decode.php'; 27 30 */ 31require_once 'Zend/Mail/Part/Interface.php'; 32 110 */ 111 require_once 'Zend/Mail/Exception.php'; 112 throw new Zend_Mail_Exception('handler is not a valid mail handler'); 117 */ 118 require_once 'Zend/Mail/Exception.php'; 119 throw new Zend_Mail_Exception('need a message id with a handler');js.js https://gitlab.com/edward.pattillo/phpCourse | JavaScript | 363 lines
133 $('#' + trackId).fadeOut(100); 134 var temp = trackId.split("-"); 135 var numericID = parseInt(temp[1]); 240 // specifices where the AJAX request will be sent to on the server 241 url: "ajaxSubmit.php", 242 275 // .fail defines what will happen when the ajax request fails and doesn't return a JSON object 276 // we will have it present the error message returned from PHP at the top of the page 277 .fail(function(returnData) { 290 // specifices where the AJAX request will be sent to on the server 291 url: "ajax.php", 292 326 // .fail defines what will happen when the ajax request fails and doesn't return a JSON object 327 // we will have it present the error message returned from PHP at the top of the page 328 .fail(function(returnData) {makeXMLForOneService.php https://gitlab.com/florianocomercial/centreon | PHP | 287 lines
1<?php 2/* 38 */ 39require_once realpath(dirname(__FILE__) . "/../../../../../../config/centreon.config.php"); 40 40 41include_once $centreon_path . "www/class/centreonUtils.class.php"; 42 45 */ 46include_once _CENTREON_PATH_ . "www/class/centreonXMLBGRequest.class.php"; 47include_once _CENTREON_PATH_ . "www/class/centreonLang.class.php"; 84 85$tab = preg_split('/\_/', $svc_id); 86$host_id = $tab[0]; 132if ($data = $DBRESULT->fetchRow()) { 133 /* Split the plugin_output */ 134 $outputLines = explode('\n', $data['output']);mail.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 406 lines
1<?php 2class Mail { 95 $header .= 'Return-Path: ' . $this->from . $this->newline; 96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline; 97 //$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline; 137 $message .= 'X-Attachment-Id: ' . basename(urlencode($attachment)) . $this->newline . $this->newline; 138 $message .= chunk_split(base64_encode($content)); 139 } 158 } else { 159 if (substr(PHP_OS, 0, 3) != 'WIN') { 160 socket_set_timeout($handle, $this->timeout, 0); 355 foreach ($lines as $line) { 356 $results = str_split($line, 998); 357 358 foreach ($results as $result) { 359 if (substr(PHP_OS, 0, 3) != 'WIN') { 360 fputs($handle, $result . $this->crlf);string.rst https://gitlab.com/albertkeba/docs | ReStructuredText | 300 lines
42 43.. php:staticmethod:: tokenize($data, $separator = ',', $leftBound = '(', $rightBound = ')') 44 50 51 $data = "cakephp 'great framework' php"; 52 $result = String::tokenize($data, ' ', "'", "'"); 53 // result contains 54 array('cakephp', "'great framework'", 'php'); 55 55 56.. php:staticmethod:: insert($string, $data, $options = array()) 57 63 64.. php:staticmethod:: cleanInsert($string, $options = array()) 65functions.inc.php https://gitlab.com/boxnia/NFU_MOVIL | PHP | 346 lines
1<?php 2 162function valida_dates($start_day, $daylight) { 163 // list($mes_one, $dia_one, $anio_one) = split('/', $start_day); 164 //list($mes_two, $dia_two, $anio_two)= split('/', $daylight);cdat_domain.py https://gitlab.com/rbax81/VisTrails | Python | 289 lines
12## Licensing requirements will be met: 13## http://www.opensource.org/licenses/gpl-license.php 14## 48 self._actions = actions 49 (self._namespace, self._name) = self.split(codepath) 50 51 @staticmethod 52 def split(codepath): 53 dot = codepath.rfind('.') 74 for t in CDATModule._extra_modules: 75 namespace,name = CDATModule.split(t) 76 lines.append("%s = new_module(Module,'%s')\n"%(name,name)) 224 self._doc = doc 225 self._instance = [i.strip(" \t\n") for i in instance.split('/')] 226 self._valid_instances = []class-wp-customize-setting.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 439 lines
1<?php 2/** 46 // Parse the ID for array keys. 47 $this->id_data[ 'keys' ] = preg_split( '/\[/', str_replace( ']', '', $this->id ) ); 48 $this->id_data[ 'base' ] = array_shift( $this->id_data[ 'keys' ] );CookieJar.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 385 lines
21 * 22 * @file CAS/CookieJar.php 23 * @category Authentication 23 * @category Authentication 24 * @package PhpCAS 25 * @author Adam Franco <afranco@middlebury.edu> 26 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 27 * @link https://wiki.jasig.org/display/CASC/phpCAS 28 */ 38 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 39 * @link https://wiki.jasig.org/display/CASC/phpCAS 40 */ 127 * Parse Cookies without PECL 128 * From the comments in http://php.net/manual/en/function.http-parse-cookie.php 129 *class-vc-backend-editor.php https://gitlab.com/mattswann/launch-housing | PHP | 356 lines
1<?php 2if ( ! defined( 'ABSPATH' ) ) { 55 ), 5 ); 56 add_action( 'admin_print_scripts-post.php', array( 57 &$this, 59 ) ); 60 add_action( 'admin_print_scripts-post-new.php', array( 61 &$this, 106 $this->post_custom_css = $post_custom_css; 107 vc_include_template( 'editors/backend_editor.tpl.php', array( 108 'editor' => $this, 125 public function renderEditorFooter() { 126 vc_include_template( 'editors/partials/backend_editor_footer.tpl.php', array( 127 'editor' => $this, 254 wp_register_script( 'vc_accordion_script', vc_asset_url( 'lib/vc_accordion/vc-accordion.min.js' ), array( 'jquery' ), WPB_VC_VERSION, true ); 255 wp_register_script( 'wpb_php_js', vc_asset_url( 'lib/php.default/php.default.min.js' ), array( 'jquery' ), WPB_VC_VERSION, true ); 256 // used as polyfill for JSON.stringify and etcwipe.py https://github.com/jmil/SFACT.git | Python | 266 lines
187 """Add the wipe travel gcode.""" 188 location = gcodec.getLocationFromSplitLine(self.oldLocation, splitLine) 189 self.highestZ = max( self.highestZ, location.z ) 224 line = self.lines[self.lineIndex] 225 splitLine = gcodec.getSplitLineBeforeBracketSemicolon(line) 226 firstWord = gcodec.getFirstWord(splitLine) 226 firstWord = gcodec.getFirstWord(splitLine) 227 self.distanceFeedRate.parseSplitLine(firstWord, splitLine) 228 if firstWord == '(</extruderInitialization>)': 238 """Parse a gcode line and add it to the bevel gcode.""" 239 splitLine = gcodec.getSplitLineBeforeBracketSemicolon(line) 240 if len(splitLine) < 1: 244 self.addWipeTravel(splitLine) 245 self.oldLocation = gcodec.getLocationFromSplitLine(self.oldLocation, splitLine) 246 elif firstWord == '(<layer>':date.php https://github.com/2bj/kohana-core.git | PHP | 566 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 8 * @copyright (c) 2007-2009 Kohana Team 9 * @license http://kohanaphp.com/license 10 */ 28 * Timezone for formatted_time 29 * @link http://uk2.php.net/manual/en/timezones.php 30 * @var string 39 * 40 * [!!] A list of time zones that PHP supports can be found at 41 * <http://php.net/timezones>. 315 // Array with the output formats 316 $output = preg_split('/[^a-z]+/', $output); 317 548 * 549 * @see http://php.net/manual/en/datetime.construct.php 550 * @param string datetime_str datetime stringqrsplit.php https://gitlab.com/Ltaimao/wecenter | PHP | 311 lines
9 * 10 * PHP QR Code is distributed under LGPL 3 11 * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm> 32 */ 33 class QRsplit { 34 168 169 $ret = $this->input->append(QR_MODE_AN, $run, str_split($this->dataStr)); 170 if($ret < 0) 303 304 $split = new QRsplit($string, $input, $modeHint); 305 308 309 return $split->splitString(); 310 }FastExactAutomatonMinimizer.java https://github.com/ryantanner/thesis.git | Java | 319 lines
108 109 protected Split getSplit() { 110 return (Split) splits.removeFirst(); 112 113 protected void addSplit(Split split) { 114 splits.addLast(split); 160 Object symbol = symbolI.next(); 161 addSplit(new Split((List) symbolToTarget.get(symbol), symbol, block)); 162 } 196 197 protected Collection getInverseImages(Split split) { 198 List inverseImages = new ArrayList(); 244 while (hasSplit()) { 245 Split split = getSplit(); 246 Collection inverseImages = getInverseImages(split);new.php https://github.com/tmccormi/openemr.git | PHP | 238 lines
136 <?php $datetimepicker_formatInput = false; ?> 137 <?php require($GLOBALS['srcdir'] . '/js/xl/jquery-datetimepicker-2-5-4.js.php'); ?> 138 <?php // can add any additional javascript settings to datetimepicker here; need to prepend first setting with a comma ?> 151 <div class="row"> 152 <form method='post' name='my_form' action='<?php echo $rootdir; ?>/forms/functional_cognitive_status/save.php?id=<?php echo attr($formid); ?>'> 153 <fieldset> 171 <label for="code_date_<?php echo attr($key) + 1; ?>" class="h5"><?php echo xlt('Date'); ?>:</label> 172 <input type='text' id="code_date_<?php echo attr($key) + 1; ?>" name='code_date[]' class="form-control code_date datepicker" value='<?php echo attr($obj{"date"}); ?>' title='<?php echo xla('yyyy-mm-dd Date of service'); ?>' /> 173 </div> 176 <br> 177 <input type="checkbox" name="activity[]" onclick="checkVal(this.id);" id="activity_<?php echo $key + 1; ?>" value="<?php echo attr($obj{"activity"}); ?>" <?php echo ($obj{"activity"} == 1) ? "checked='checked'" : ""; ?> class="activity"> 178 <input type="hidden" name="activity1[]" id="activity1_<?php echo $key + 1; ?>" value="<?php echo attr($obj{"activity"}); ?>" class="activity1"> 184 <div class="clearfix"></div> 185 <input type="hidden" name="count[]" id="count_<?php echo attr($key) + 1; ?>" class="count" value="<?php echo attr($key) + 1;?>"> 186 </div>index.py https://gitlab.com/xiaok/SaltAdmin | Python | 237 lines
23def decryptUID(uStr): 24 return int(uStr.split('a')[1]) 25 62 Location = 'Localhost' 63 ip = LoginHost.split('.') 64 if ip[0]+ip[1] in ['17216','192168','1270'] or ip[0] == '10': 67 # 这里要从公网去解析 68 url = "http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip=" + LoginHost 69 response = urllib2.urlopen(url)paypal-return-in-web-accept-sp.inc.php https://gitlab.com/Gashler/sg | PHP | 148 lines
1<?php 2/** 58 59 list (, $paypal['sp_ids'], $paypal['hours']) = preg_split('/\:/', $paypal['item_number'], 3); 60 75 76 if($processing && ($code = $GLOBALS['WS_PLUGIN__']['s2member']['o']['sp_tracking_codes']) && is_array($cv = preg_split('/\|/', $paypal['custom']))) 77 {emogrifier.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 228 lines
1<?php defined('_JEXEC') or die('Restricted access'); ?> 2<?php 17 2009-11-04 Explicitly declared static functions static to get rid of E_STRICT notices. 18 2010-05-18 Fixed bug where full url filenames with protocols wouldn't get split improperly when we explode on ':'... Thanks Mark! 19 Added two new attribute selectors 20 2010-06-16 Added static caching for less processing overhead in situations where multiple emogrification takes place 21 2010-07-26 Fixed bug where '0' values were getting discarded because of php's empty() function... Thanks Scott! 22 2010-09-03 Added checks to invisible node removal to ensure that we don't try to remove non-existent child nodes of parents that have already been deleted 95 96 // else split by commas and duplicate attributes so we can sort by selector precedence 97 $selectors = explode(',',$selectorString);pmetis.c https://bitbucket.org/palday/fieldtrip.git | C | 341 lines
131 if (nparts > 2) { 132 SplitGraphPart(ctrl, graph, &lgraph, &rgraph); 133 /* printf("%d %d\n", lgraph.nvtxs, rgraph.nvtxs); */ 189**************************************************************************/ 190void SplitGraphPart(CtrlType *ctrl, GraphType *graph, GraphType *lgraph, GraphType *rgraph) 191{ 199 200 IFSET(ctrl->dbglvl, DBG_TIME, starttimer(ctrl->SplitTmr)); 201 225 226 SetUpSplitGraph(graph, lgraph, snvtxs[0], snedges[0]); 227 sxadj[0] = lgraph->xadj; 299 300 IFSET(ctrl->dbglvl, DBG_TIME, stoptimer(ctrl->SplitTmr)); 301sso.class.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 234 lines
1<?php 2 11 * overwrite its method, then modify the corresponding calling code in 12 * main/inc/local.inc.php 13 * @package chamilo.auth.sso 22 public $deauth_uri; // '/?q=logout', 23 public $referer; // http://my.chamilo.com/main/auth/profile.php 24 31 // This might be later extended with a decision process 32 $domains = split(',',api_get_setting('sso_authentication_domain')); 33 $this->domain = trim($domains[0]); 75 * Validates the received active connection data with the database 76 * @return bool Return the loginFailed variable value to local.inc.php 77 */ 139 // Redirect to homepage 140 $sso_target = isset($sso['target']) ? $sso['target'] : api_get_path(WEB_PATH) .'.index.php'; 141 header('Location: '. $sso_target);Response.php https://github.com/beberlei/zf2.git | PHP | 557 lines
1<?php 2 155 { 156 $lines = preg_split('/\r\n/', $string); 157 if (!is_array($lines) || count($lines)==1) { 157 if (!is_array($lines) || count($lines)==1) { 158 $lines = preg_split ('/\n/',$string); 159 } 504 * 505 * Currently requires PHP with zlib support 506 * 523 * 524 * Currently requires PHP with zlib support 525 *Fuzzy.php https://bitbucket.org/acidel/buykoala.git | PHP | 287 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Fuzzy.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 24/** Zend_Search_Lucene_Search_Query_Processing */ 25#require_once 'Zend/Search/Lucene/Search/Query/Preprocessing.php'; 26 98 if ($this->_field === null) { 99 #require_once 'Zend/Search/Lucene/Search/Query/Boolean.php'; 100 $query = new Zend_Search_Lucene_Search_Query_Boolean(); 103 104 #require_once 'Zend/Search/Lucene.php'; 105 if (Zend_Search_Lucene::getDefaultSearchField() === null) { 110 111 #require_once 'Zend/Search/Lucene/Search/Query/Preprocessing/Fuzzy.php'; 112 foreach ($searchFields as $fieldName) {README.md https://github.com/elrond79/pymel.git | Markdown | 289 lines
9 - graphviz: using an OS package manager like `yum`, `apt-get`, or `brew`, or 10 on windows, from an [installer](http://www.graphviz.org/Download_windows.php) 11 - python dependencies: 63 for mod in list(sys.modules): 64 if mod.split('.')[0] == 'pymel': 65 del sys.modules[mod]AbstractPaginator.php https://gitlab.com/zan_zan/laravel_sample | PHP | 487 lines
1<?php 2 271 /** 272 * Determine if there are enough items to split into multiple pages. 273 *JDatabaseTest.php https://github.com/Hackwar/joomla-platform.git | PHP | 513 lines
1<?php 2/** 9 10require_once JPATH_PLATFORM . '/joomla/database/database.php'; 11require_once __DIR__ . '/stubs/nosqldriver.php'; 14 * Test class for JDatabase. 15 * Generated by PHPUnit on 2009-10-08 at 22:00:38. 16 * 223 /** 224 * Tests the JDatabase::splitSql method. 225 * 229 */ 230 public function testSplitSql() 231 { 239 ), 240 'splitSql method should split a string of multiple queries into an array.' 241 );ScopeIndentSniff.php https://gitlab.com/michield/dokuwiki | PHP | 319 lines
9 * @package PHP_CodeSniffer 10 * @author Andreas Gohr <andi@splitbrain.org> 11 * @author Greg Sherwood <gsherwood@squiz.net> 15 * @version CVS: $Id: ScopeIndentSniff.php 270281 2008-12-02 02:38:34Z squiz $ 16 * @link http://pear.php.net/package/PHP_CodeSniffer 17 */ 31 * @version Release: 1.2.0 32 * @link http://pear.php.net/package/PHP_CodeSniffer 33 */ 76 * 77 * @param PHP_CodeSniffer_File $phpcsFile All the tokens found in the document. 78 * @param int $stackPtr The position of the current token 82 */ 83 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 84 {csv.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 323 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 3/** 4 * CSV import plugin for phpMyAdmin 5 * 6 * @todo add an option for handling NULL values 7 * @version $Id: csv.php 11336 2008-06-21 15:01:27Z lem9 $ 8 */ 8 */ 9if (! defined('PHPMYADMIN')) { 10 exit; 92 $fields = array(); 93 $tmp = split(',( ?)', $csv_columns); 94 foreach ($tmp as $key => $val) {Route.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 313 lines
1<?php 2/** 17 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) 18 * @version $Id: Route.php 11073 2008-08-26 16:29:59Z dasprid $ 19 * @license http://framework.zend.com/license/new-bsd New BSD License 22/** Zend_Controller_Router_Route_Abstract */ 23#require_once 'Zend/Controller/Router/Route/Abstract.php'; 24 106 /** 107 * Prepares the route for mapping by splitting (exploding) it 108 * to a corresponding atomic parts. These parts are assigned 256 } else { 257 #require_once 'Zend/Controller/Router/Exception.php'; 258 throw new Zend_Controller_Router_Exception($name . ' is not specified');yuga.js https://github.com/dounokouno/yuga.js-TT-Custom.git | JavaScript | 317 lines
5 * Licensed under the MIT License: 6 * http://www.opensource.org/licenses/mit-license.php 7 * 16 * Licensed under the MIT License: 17 * http://www.opensource.org/licenses/mit-license.php 18 * 45 if(this.query){ 46 $.each(self.query.split('&'), function(){ 47 var a = this.split('='); 115 if ($('body').attr('class')) { 116 bodyClasses = $('body').attr('class').split(' '); 117 } 263 if ($(this).attr('class') && $(this).attr('class').match(new RegExp(c.groupClassPrefix))) { 264 var ary = $(this).attr('class').split(' '); 265 for (var i=0;i<ary.length;i++) {prediction_actions_test.php https://github.com/mackensen/moodle.git | PHP | 247 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 26 27require_once(__DIR__ . '/fixtures/test_indicator_max.php'); 28require_once(__DIR__ . '/fixtures/test_target_shortname.php'); 53 $this->modelobj = $this->model->get_model_obj(); 54 $this->model->enable('\core\analytics\time_splitting\single_range'); 55c.py https://gitlab.com/envieidoc/Clover | Python | 387 lines
145 if FuncDeclPattern.match(var.Declarator): 146 DeclSplitList = var.Declarator.split('(') 147 FuncName = DeclSplitList[0] 147 FuncName = DeclSplitList[0] 148 FuncNamePartList = FuncName.split() 149 if len(FuncNamePartList) > 1: 245 ParamIdList = [] 246 DeclSplitList = FuncDeclarator.split('(') 247 if len(DeclSplitList) < 2: 249 FuncName = DeclSplitList[0] 250 ParamStr = DeclSplitList[1].rstrip(')') 251 LineSkipped = 0 318 FuncDef.Declarator = FuncDef.Declarator.lstrip('*') 319 DeclSplitList = FuncDef.Declarator.split('(') 320 if len(DeclSplitList) < 2:style.css https://gitlab.com/github-cloud-corp/aws-sdk-php | CSS | 672 lines
355 356/* Splitter 357 -------------------------------------*/ 357 -------------------------------------*/ 358#splitter { 359 position: fixed; 366 367#splitter.active { 368 opacity: .5; 438 439.php-keyword1 { 440 color: #468847; 490 491span.l .php-var a:hover, span.l .php-var a:active, span.l .php-var a:focus { 492 color: #c09853 !important;bench_internal.c https://gitlab.com/vectorci/rippled | C | 318 lines
3 * Distributed under the MIT software license, see the accompanying * 4 * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 **********************************************************************/ 92#ifdef USE_ENDOMORPHISM 93void bench_scalar_split(void* arg) { 94 int i; 98 secp256k1_scalar_t l, r; 99 secp256k1_scalar_split_lambda_var(&l, &r, &data->scalar_x); 100 secp256k1_scalar_add(&data->scalar_x, &data->scalar_x, &data->scalar_y); 293#ifdef USE_ENDOMORPHISM 294 if (have_flag(argc, argv, "scalar") || have_flag(argc, argv, "split")) run_benchmark("scalar_split", bench_scalar_split, bench_setup, NULL, &data, 10, 20000); 295#endifjquery.serializejson.js https://gitlab.com/Mirros/cdnjs | JavaScript | 193 lines
6 Copyright (c) 2014 Mario Izquierdo 7 Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 8 and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. 22 $.each(formAsArray, function (i, input) { 23 keys = f.splitInputNameIntoKeysArray(input.name); // "some[deep][key]" => ['some', 'deep', 'key'] 24 value = f.parseValue(input.value, opts); // string, number, boolean or null 79 80 // Split the input name in programatically readable keys 81 // "foo" => ['foo'] 85 // "arr[][val]" => ['arr', '', 'val'] 86 splitInputNameIntoKeysArray: function (name) { 87 var keys, last, f; 89 if (f.isUndefined(name)) { throw new Error("ArgumentError: param 'name' expected to be a string, found undefined"); } 90 keys = $.map(name.split('['), function (key) { 91 last = key[key.length - 1];index.php git://git.savannah.nongnu.org/savane-cleanup.git | PHP | 363 lines
1<?php 2# Manage user preferences 22 23# we need to define the theme before loading the pre.php init script, 24# otherwise the page needs to be reloaded for the change to take effect. 25# see bug #1987 26require_once('../../include/sane.php'); 27extract(sane_import('post', 40 41require_once('../../include/init.php'); 42require_once('../../include/timezones.php'); 139 140print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">'; 141 146 147print "\n".html_splitpage(1); 148Data.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 478 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 188 /** 189 * Split SKU of an item by dashes and spaces 190 * Words will not be broken, unless thir length is greater than $length 195 */ 196 public function splitSku($sku, $length = 30) 197 { 197 { 198 return Mage::helper('core/string')->str_split($sku, $length, true, false, '[\-\s]'); 199 }class-TexyEmoticonModule.html https://github.com/jakubkinst/Course-Manager.git | HTML | 507 lines
370 <td class="value"><code><span class="php-keyword1">array</span>( 371 <span class="php-quote">':-)'</span> => <span class="php-quote">'smile.gif'</span>, 372 <span class="php-quote">':-('</span> => <span class="php-quote">'sad.gif'</span>, 372 <span class="php-quote">':-('</span> => <span class="php-quote">'sad.gif'</span>, 373 <span class="php-quote">';-)'</span> => <span class="php-quote">'wink.gif'</span>, 374 <span class="php-quote">':-D'</span> => <span class="php-quote">'biggrin.gif'</span>, 375 <span class="php-quote">'8-O'</span> => <span class="php-quote">'eek.gif'</span>, 376 <span class="php-quote">'8-)'</span> => <span class="php-quote">'cool.gif'</span>, 377 <span class="php-quote">':-?'</span> => <span class="php-quote">'confused.gif'</span>, 377 <span class="php-quote">':-?'</span> => <span class="php-quote">'confused.gif'</span>, 378 <span class="php-quote">':-x'</span> => <span class="php-quote">'mad.gif'</span>, 379 <span class="php-quote">':-P'</span> => <span class="php-quote">'razz.gif'</span>, 379 <span class="php-quote">':-P'</span> => <span class="php-quote">'razz.gif'</span>, 380 <span class="php-quote">':-|'</span> => <span class="php-quote">'neutral.gif'</span>, 381)</code></td>k-Means_clustering.php https://github.com/srahn/kvwmap.git | PHP | 233 lines
1<?php 2################################################################### 114 // starting with a single cluster, every iteration the cluster with highest 115 // residual energy is iteratively split into two, until the number of 116 // clusters equals $numCls 120 121 // calculate offset for cluster-splitting (e.g. 1/256th of the average cluster size) 122 $dataMax = array_reduce($data, function($p,$c) {return max($p,$c);},-INF); 155 156 // split step 157 if (count($accumulator) < $numCls && !$classMappingChanged) { 157 if (count($accumulator) < $numCls && !$classMappingChanged) { 158 // add a new cluster by splitting the cluster with the highest energy 159 // - get cluster with highest energy 171 $idxOfSplitCluster = array_shift($idxMap); 172 $idxOfSplitCluster = $idxOfSplitCluster["idx"]; 173bookmark-template.php https://github.com/muskmelon/Greemo.git | PHP | 256 lines
1<?php 2/** 218 if ( $categorize ) { 219 //Split the bookmarks into ul's for each category 220 $cats = get_terms('link_category', array('name__like' => $category_name, 'include' => $category, 'exclude' => $exclude_category, 'orderby' => $category_orderby, 'order' => $category_order, 'hierarchical' => 0));Fuzzy.php https://github.com/Exercise/zf2.git | PHP | 286 lines
1<?php 2/** 183 if (@preg_match('/\pL/u', 'a') == 1) { 184 $subPatterns = preg_split('/[*?]/u', iconv($this->_encoding, 'UTF-8', $this->_word)); 185 } else { 185 } else { 186 $subPatterns = preg_split('/[*?]/', $this->_word); 187 } 233 if (@preg_match('/\pL/u', 'a') == 1) { 234 $subPatterns = preg_split('/[*?]/u', iconv($this->_encoding, 'UTF-8', $this->_word)); 235 } else { 235 } else { 236 $subPatterns = preg_split('/[*?]/', $this->_word); 237 }social.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 452 lines
50 51 // comments.php 52 if ($('#social').length) { 98 if (prevLink !== null) { 99 var _prevLink = prevLink.split('#comments'); 100 if (_prevLink.indexOf('?') == -1) { 109 if (nextLink !== null) { 110 var _nextLink = nextLink.split('#comments'); 111 if (_nextLink.indexOf('?') == -1) { 220 if (content.substr(0, 1) == '@') { 221 username = content.split(' ')[0].substr(1); 222 } 230 var $author = $parent.find('.social-comment-author a'), 231 author_rel = $author.attr('rel').split(' '); 232 $('#in_reply_to_status_id').val(author_rel[0]);Route.php https://github.com/sitengine/sitengine.git | PHP | 313 lines
1<?php 2/** 17 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) 18 * @version $Id: Route.php 11073 2008-08-26 16:29:59Z dasprid $ 19 * @license http://framework.zend.com/license/new-bsd New BSD License 22/** Zend_Controller_Router_Route_Abstract */ 23require_once 'Zend/Controller/Router/Route/Abstract.php'; 24 106 /** 107 * Prepares the route for mapping by splitting (exploding) it 108 * to a corresponding atomic parts. These parts are assigned 256 } else { 257 require_once 'Zend/Controller/Router/Exception.php'; 258 throw new Zend_Controller_Router_Exception($name . ' is not specified');CFDBFilterParser.php https://gitlab.com/mattswann/launch-housing | PHP | 302 lines
1<?php 2/* 21 22include_once('CFDBEvaluator.php'); 23require_once('CFDBParserBase.php'); 28 * Individual expressions (like 'field1=value1') are of the form $name . $operator . $value where 29 * $operator is any PHP comparison operator or '=' which is interpreted as '=='. 30 * $value has a special case where if it is 'null' it is interpreted as the value null 137 * @param $comparisonExpression string in the form 'value1' . 'operator' . 'value2' where 138 * operator is a php comparison operator or '=' 139 * @return array of string [ value1, operator, value2 ] 145 return preg_split('/(===)|(==)|(=)|(!==)|(!=)|(<>)|(<=)|(<)|(>=)|(>)|(~~)/', 146 $comparisonExpression, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE); 147 } 232 * @param $left mixed 233 * @param $operator string representing any PHP comparison operator or '=' which is taken to mean '==' 234 * @param $right $mixed. SPECIAL CASE: if it is the string 'null' it is taken to be the value nullPhrase.php https://gitlab.com/Ltaimao/wecenter | PHP | 270 lines
1<?php 2/** 24/** Zend_Search_Lucene_Search_Query_Processing */ 25//require_once 'Zend/Search/Lucene/Search/Query/Preprocessing.php'; 26 127// if (strpos($this->_phrase, '?') !== false || strpos($this->_phrase, '*') !== false) { 128// //require_once 'Zend/Search/Lucene/Search/QueryParserException.php'; 129// throw new Zend_Search_Lucene_Search_QueryParserException('Wildcards are only allowed in a single terms.'); 131 132 // Split query into subqueries if field name is not specified 133 if ($this->_field === null) { 133 if ($this->_field === null) { 134 //require_once 'Zend/Search/Lucene/Search/Query/Boolean.php'; 135 $query = new Zend_Search_Lucene_Search_Query_Boolean(); 137 138 //require_once 'Zend/Search/Lucene.php'; 139 if (Zend_Search_Lucene::getDefaultSearchField() === null) {String.php https://github.com/rgranadino/magento-mirror.git | PHP | 302 lines
109 */ 110 public function splitInjection($str, $length = 50, $needle = '-', $insert = ' ') 111 { 169 } 170 // do a usual str_split, but safe for our encoding 171 if ((!$keepWords) || ($length < 2)) { 175 } 176 // split smartly, keeping words 177 else { 177 else { 178 $split = preg_split('/(' . $wordSeparatorRegex . '+)/siu', $str, null, PREG_SPLIT_DELIM_CAPTURE); 179 $i = 0; 243 $result = array(); 244 $split = preg_split('#' . $wordSeparatorRegexp . '#siu', $str, null, PREG_SPLIT_NO_EMPTY); 245 foreach ($split as $word) {main.php https://github.com/jcftang/flex-slurm.git | PHP | 351 lines
1<?php 2 class main 29 { 30 require_once("objects/key_value.php"); 31 $keys = slurm_get_control_configuration_keys(); 47 { 48 require_once("objects/summary/partition_job_cpus.php"); 49 require_once("objects/summary/partition_node_summary.php"); 49 require_once("objects/summary/partition_node_summary.php"); 50 require_once("objects/Partition.php"); 51 require_once("includes/constants.php"); 130 { 131 require_once("objects/Partition.php"); 132 149 { 150 require_once("includes/constants.php"); 151 require_once("objects/Node.php");CakeTestFixture.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 328 lines
1<?php 2/** 2/** 3 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests 12 * @package Cake.TestSuite.Fixture 12 * @package Cake.TestSuite.Fixture 13 * @since CakePHP(tm) v 1.2.0.4667 14 * @license http://www.opensource.org/licenses/mit-license.php MIT License 34/** 35 * CakePHP's DBO driver (e.g: DboMysql). 36 * 137 if (isset($import['model'])) { 138 list($plugin, $modelClass) = pluginSplit($import['model'], true); 139 App::uses($modelClass, $plugin . 'Model');TextAttributeDescriptor.java https://github.com/CyanogenMod/android_sdk.git | Java | 290 lines
7 * 8 * http://www.eclipse.org/org/documents/epl-v10.php 9 * 205 if (mRequired) { 206 // Note: this string is split in 2 to make it translatable. 207 sb.append(".@@"); //$NON-NLS-1$ @@ inserts a break and is not translatableXmlFileLoader.php https://gitlab.com/fiesta-framework/Documentation | PHP | 256 lines
1<?php 2 128 129 $schemes = preg_split('/[\s,\|]++/', $node->getAttribute('schemes'), -1, PREG_SPLIT_NO_EMPTY); 130 $methods = preg_split('/[\s,\|]++/', $node->getAttribute('methods'), -1, PREG_SPLIT_NO_EMPTY); 156 $host = $node->hasAttribute('host') ? $node->getAttribute('host') : null; 157 $schemes = $node->hasAttribute('schemes') ? preg_split('/[\s,\|]++/', $node->getAttribute('schemes'), -1, PREG_SPLIT_NO_EMPTY) : null; 158 $methods = $node->hasAttribute('methods') ? preg_split('/[\s,\|]++/', $node->getAttribute('methods'), -1, PREG_SPLIT_NO_EMPTY) : null;mod.rss.php https://bitbucket.org/mbaily/tremain.git | PHP | 519 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 92 // We add three, for three line breaks added later in the script 93 $diffe_request = count(preg_split("/(\r\n)|(\r)|(\n)/", 94 trim(substr(ee()->TMPL->tagdata, 0, $items_start)))) + 3; 517 518/* End of file mod.rss.php */ 519/* Location: ./system/expressionengine/modules/rss/mod.rss.php */case.php https://github.com/ponlue/abktours.git | PHP | 206 lines
1<?php 2/** 2/** 3 * @version $Id: case.php 10381 2008-06-01 03:35:53Z pasamio $ 4 * @package utf8 30 * @see http://www.unicode.org/reports/tr21/tr21-5.html 31 * @see http://dev.splitbrain.org/view/darcs/dokuwiki/inc/utf8.php 32 * @package utf8 59 * @author Andreas Gohr <andi@splitbrain.org> 60 * @see http://dev.splitbrain.org/view/darcs/dokuwiki/inc/utf8.php 61 * @see utf8_strtolower 126 * @see http://www.unicode.org/reports/tr21/tr21-5.html 127 * @see http://dev.splitbrain.org/view/darcs/dokuwiki/inc/utf8.php 128 * @package utf8 158 * @subpackage strings 159 * @see http://dev.splitbrain.org/view/darcs/dokuwiki/inc/utf8.php 160 */edit.php https://github.com/alexsebbane/ezpublish.git | PHP | 371 lines
1<?php 2/** 163 164 if ( eZHTTPPersistence::splitSelected( "WorkflowEvent", $event_list, 165 $http, "id",AutoParagraphTest.php https://gitlab.com/potion/librechan | PHP | 577 lines
1<?php 2 220 221 public function testSplitUpInternalsOfPTagInBlockNode() 222 { 232 233 public function testSplitUpInlineNodesInPTagInBlockNode() 234 {plain.class.php https://github.com/godber/PHXdata-Website.git | PHP | 328 lines
1<?php 2/** 5 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 6 * @author Andreas Gohr <andi@splitbrain.org> 7 * @author Chris Smith <chris@jalakai.co.uk> 48 * 49 * @author Andreas Gohr <andi@splitbrain.org> 50 * @return bool 69 * 70 * @author Andreas Gohr <andi@splitbrain.org> 71 */ 86 * 87 * @author Andreas Gohr <andi@splitbrain.org> 88 * @author Chris Smith <chris@jalakai.co.uk> 274 * 275 * @author Andreas Gohr <andi@splitbrain.org> 276 */template.html https://github.com/infusion/HTML5-Experiments.git | HTML | 372 lines
76 77 var today = <?php echo $today;?>; 78 142 143 var list = all.split("; "); 144 for (var i = 0; i < list.length; i++) { 246 247 var data = <?php echo json_encode($gifts);?>; 248 323 width: 705, 324 theme: "/image<?php echo $theme ? $theme : '/cal.jpg' ;?>", 325 alertTooEarly: "Bisschen früh, was?" 330 331 var boxes = <?php echo json_encode($boxes);?> 332class-Mandrill_Webhooks.html https://bitbucket.org/davisshaver/mandrill-api-php.git | HTML | 460 lines
25 </li> 26 <li><a href="namespace-PHP.html">PHP</a> 27 </li> 73 74<div id="splitter"></div> 75 123 124 <b>Located at</b> <a href="source-class-Mandrill_Webhooks.html#3-115" title="Go to source code">Mandrill/Webhooks.php</a><br /> 125 </div> 219 <a class="anchor" href="#_add">#</a> 220 <code><a href="source-class-Mandrill_Webhooks.html#28-49" title="Go to source code">add</a>( <span>string <var>$url</var></span>, <span>string <var>$description</var> = <span class="php-keyword1">null</span></span>, <span>array <var>$events</var> = <span class="php-keyword1">array</span>()</span> )</code> 221 330 <a class="anchor" href="#_update">#</a> 331 <code><a href="source-class-Mandrill_Webhooks.html#71-93" title="Go to source code">update</a>( <span>integer <var>$id</var></span>, <span>string <var>$url</var></span>, <span>string <var>$description</var> = <span class="php-keyword1">null</span></span>, <span>array <var>$events</var> = <span class="php-keyword1">array</span>()</span> )</code> 332transformations.lib.php https://github.com/md-tech/openemr.git | PHP | 279 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 21 * 22 * @uses preg_split() 23 * @uses array_shift() 37 if (! strlen($option_string) 38 || ! $transform_options = preg_split('/,/', $option_string)) { 39 return $result; 108 foreach ($filestack as $file) { 109 if (preg_match('|^.*__.*\.inc\.php$|', $file)) { 110 // File contains transformation functions. 252 * 253 * in fact: it just replaces old php3 with php extension 254 * 268 269 // This value can also contain a 'php3' value, in which case we map this filename to our new 'php' variant 270 $testfile = preg_replace('@\.inc\.php3$@', '.inc.php', $include_file);ClassRegistry.php https://github.com/gustavor/lore.git | PHP | 341 lines
1<?php 2/** 6 * 7 * PHP 5 8 * 8 * 9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @link http://cakephp.org CakePHP(tm) Project 17 * @package Cake.Utility 17 * @package Cake.Utility 18 * @since CakePHP(tm) v 0.9.2 19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 114 115 list($plugin, $class) = pluginSplit($class); 116 if ($plugin) {editor_plugin_src.js https://github.com/narpaldhillon/flowgram.com.git | JavaScript | 613 lines
16 authorurl : 'http://tinymce.moxiecode.com', 17 infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/compat2x', 18 version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion 135 136 tinymce.each(s.split(d), function(v) { 137 if (v != '') 213 214 for (x=0, na = na.split(','); x<na.length; x++) 215 for (i=0, nl = n.getElementsByTagName(na[x]); i<nl.length; i++)State.php https://github.com/Excito/horde3.git | PHP | 416 lines
1<?php 2 4 * SyncML_State object and its property objects from the session. */ 5require_once 'SyncML/DeviceInfo.php'; 6require_once 'SyncML/Device.php'; 6require_once 'SyncML/Device.php'; 7require_once 'SyncML/Constants.php'; 8require_once 'SyncML/Command/SyncElement.php'; 12 * 13 * $Horde: framework/SyncML/SyncML/State.php,v 1.17.2.19 2009/04/07 11:12:54 jan Exp $ 14 * 29 * 30 * This is not to confuse with the PHP session id, though it is part of 31 * the generated PHP session id. 56 * 57 * Can be used to identify the client and is part of the PHP session id. 58 *field.select.php https://github.com/scottkf/nicholscommunications.git | PHP | 401 lines
1<?php 2 84 public function getToggleStates() { 85 $values = preg_split('/,\s*/i', $this->get('static_options'), -1, PREG_SPLIT_NO_EMPTY); 86 131 132 $data = preg_split('/,\s*/i', $data); 133 $data = array_map('trim', $data);search.php https://github.com/severnaya99/Sg-2010.git | PHP | 222 lines
1<?php 2// $Id: search.php,v 4.04 2008/06/05 15:35:59 wishcraft Exp $ 3// ------------------------------------------------------------------------ // 4// XOOPS - PHP Content Management System // 5// Copyright (c) 2000 XOOPS.org // 30// ------------------------------------------------------------------------ // 31include 'header.php'; 32forum_load_lang_file("search"); 35if ($xoopsConfigSearch['enable_search'] != 1) { 36 header('Location: '.XOOPS_URL.'/modules/xforum/index.php'); 37 exit(); 41$xoopsOption['template_main']= 'xforum_search.html'; 42include XOOPS_ROOT_PATH.'/header.php'; 43 43 44include_once XOOPS_ROOT_PATH.'/modules/xforum/include/search.inc.php'; 45$limit = $xoopsModuleConfig['topics_per_page'];image.js https://github.com/ramainen/doit-cms.git | JavaScript | 271 lines
35 uploader : 'upload/uploadify.swf', 36 script : 'upload/image.php', 37 expressInstall : null, // The path to the express install swf file 60 var pagePath = location.pathname; 61 pagePath = pagePath.split('/'); 62 pagePath.pop(); 112 } 113 var sizeParts = byteSize.toString().split('.'); 114 if (sizeParts.length > 1) { 243 if (settingName == 'scriptData') { 244 var returnSplit = unescape(returnValue).split('&'); 245 var returnObj = new Object(); 246 for (var i = 0; i < returnSplit.length; i++) { 247 var iSplit = returnSplit[i].split('='); 248 returnObj[iSplit[0]] = iSplit[1];jqplot.canvasAxisTickRenderer.js https://github.com/jarodl/Django-Bingo.git | JavaScript | 232 lines
8 * use of jqPlot. You can reach the author at: chris dot leonello at gmail 9 * dot com or see http://www.jqplot.com/info.php . This is, of course, 10 * not required. 12 * If you are feeling kind and generous, consider supporting the project by 13 * making a donation at: http://www.jqplot.com/donate.php . 14 * 119 if ($.browser.safari) { 120 var p = $.browser.version.split('.'); 121 for (var i=0; i<p.length; i++) { p[i] = Number(p[i]); } 126 else if ($.browser.mozilla) { 127 var p = $.browser.version.split("."); 128 if (p[0] > 1 || (p[0] == 1 && p[1] >= 9 && p[2] > 0) ) {FCDGeometrySource.h https://bitbucket.org/ardalanaz/dava.framework.git | C Header | 188 lines
5 6 MIT License: http://www.opensource.org/licenses/mit-license.php 7*/ 33 to parse these floating-point values into meaningful content: the stride of the list and the type of data 34 that the floating-point values represent. When the floating-point values are split according to the stride, 35 you get the individual source values of the given type. A data source may also have a user-generated name tohtml.php https://gitlab.com/Bartwillemsen/aurora-framework | PHP | 376 lines
1<?php 2namespace Aurora; 37 38 return '<script src="'.$url.'"'.static::attributes($attributes).'></script>'.PHP_EOL; 39 } 69 70 return '<link href="'.$url.'"'.static::attributes($attributes).'>'.PHP_EOL; 71 } 320 321 foreach (str_split($value) as $letter) 322 {PhotoMenu.cs https://github.com/AnthonyNystrom/GenXSource.git | C# | 293 lines
86 87 string[] fn = FileName.Split('\\'); 88 Program.Title.Text = "File: " + fn[fn.Length - 1] + " Resolution: " + Program.Photo.Width.ToString() + " x " + Program.Photo.Height.ToString() + " Size: " + fileSize; 281 this.Hide(); 282 System.Diagnostics.Process.Start("http://www.genetibase.com/nugenimageworks.php"); 283 this.Close();ko.js http://avblog.googlecode.com/svn/trunk/ | JavaScript | 502 lines
5 * Licensed under the terms of the GNU Lesser General Public License: 6 * http://www.opensource.org/licenses/lgpl-license.php 7 * 115MergeCells : "? ???", 116SplitCell : "? ???", 117TableDelete : "Delete Table", //MISSINGbehat_grade.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 302 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 25 26// NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php. 27 27 28require_once(__DIR__ . '/../../../lib/behat/behat_base.php'); 29 252 protected function select_in_gradebook_tabs($gradepath) { 253 $gradepath = preg_split('/\s*>\s*/', trim($gradepath)); 254 if (count($gradepath) > 2) {inputfilter.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 551 lines
1<?php 2/** 2/** 3 * @class: InputFilter (PHP4 & PHP5, with comments) 4 * @project: PHP Input Filter 5 * @date: 10-05-2005 6 * @version: 1.2.2_php4/php5 7 * @author: Daniel Morris 58 /** 59 * Method to be called by another php script. Processes for XSS and 60 * specified bad code. 354 /* 355 * Split into name/value pairs 356 */ 462 /** 463 * Method to be called by another php script. Processes for SQL injection 464 *Entity.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 354 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 106 if (strpos($k, $key . '/') === 0) { 107 $split = explode('/', $k); 108 $filters[$key][$split[1]] = $v;jquery.tagsinput.js https://gitlab.com/techniconline/kmc | JavaScript | 358 lines
10 Licensed under the MIT license: 11 http://www.opensource.org/licenses/mit-license.php 12 82 83 var tagslist = $(this).val().split(delimiter[id]); 84 if (tagslist[0] == '') { 143 144 var old = $(this).val().split(delimiter[id]); 145 166 var id = $(this).attr('id'); 167 var tagslist = $(this).val().split(delimiter[id]); 168 return (jQuery.inArray(val, tagslist) >= 0); //true when tag exists, false when not 347 var id = $(obj).attr('id'); 348 var tags = val.split(delimiter[id]); 349 for (i = 0; i < tags.length; i++) {Entity.php https://github.com/rgranadino/magento-mirror.git | PHP | 354 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 106 if (strpos($k, $key . '/') === 0) { 107 $split = explode('/', $k); 108 $filters[$key][$split[1]] = $v;function.html_select_date.php https://github.com/kiang/olc_baker.git | PHP | 328 lines
1<?php 2/** 30 * 31 * @link http://smarty.php.net/manual/en/language.function.html.select.date.php {html_select_date} 32 * (Smarty online manual) 41{ 42 require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php'); 43 require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php'); 43 require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php'); 44 require_once(SMARTY_PLUGINS_DIR . 'function.html_options.php'); 45 61 $reverse_years = false; 62 /* Should the select boxes be part of an array when returned from PHP? 63 e.g. setting it to "birthday", would create "birthday[Day]", 150 } 151 // Now split this in pieces, which later can be used to set the select 152 $time = explode("-", $time);SimpleWikiHelper.java https://gitlab.com/brian0218/rk3288_r-box_android4.4.2_sdk | Java | 214 lines
49 /** 50 * Regular expression that splits "Word of the day" entry into word 51 * name, word type, and the first description bullet point. 61 private static final String WIKTIONARY_PAGE = 62 "http://en.wiktionary.org/w/api.php?action=query&prop=revisions&titles=%s&" + 63 "rvprop=content&format=json%s";myocamlbuild.ml https://bitbucket.org/slth/ocaml-tiger.git | OCaml | 512 lines
219 (** OCamlbuild extension, copied from 220 * http://brion.inria.fr/gallium/index.php/Using_ocamlfind_with_ocamlbuild 221 * by N. Pouillard and others 235 236 let split s ch = 237 let x = 250 251 let split_nl s = split s '\n' 252 259 let find_packages () = 260 List.map before_space (split_nl & run_and_read "ocamlfind list") 261Engine.php https://github.com/xoops-pi/engine.git | PHP | 287 lines
1<?php 2/** 13 * @license http://www.fsf.org/copyleft/gpl.html GNU public license 14 * @author Taiwen Jiang <phppp@users.sourceforge.net> 15 * @since 3.0 30 */ 31require SMARTY_DIR . 'Smarty.class.php'; 32 39 if (substr($_class, 0, 16) === 'smarty_internal_' || $_class == 'smarty_security') { 40 return SMARTY_SYSPLUGINS_DIR . $_class . '.php'; 41 } 257 */ 258 // Split "section/item/file" to "section/item" and "file" 259 // Insert "templates" and assemble asd "section/item/templates/file"plugins.modifiers.html https://github.com/dgmike/wikka.git | HTML | 280 lines
119> The modifier has to <A 120HREF="http://php.net/return" 121TARGET="_top" 143><P 144> This plugin basically aliases one of the built-in PHP functions. It 145 does not have any additional parameters. 153><code><span style="color: #000000"> 154<span style="color: #0000BB"><?php<br /></span><span style="color: #FF8000">/*<br /> * Smarty plugin<br /> * -------------------------------------------------------------<br /> * File: modifier.capitalize.php<br /> * Type: modifier<br /> * Name: capitalize<br /> * Purpose: capitalize words in the string<br /> * -------------------------------------------------------------<br /> */<br /></span><span style="color: #007700">function </span><span style="color: #0000BB">smarty_modifier_capitalize</span><span style="color: #007700">(</span><span style="color: #0000BB">$string</span><span style="color: #007700">)<br />{<br /> return </span><span style="color: #0000BB">ucwords</span><span style="color: #007700">(</span><span style="color: #0000BB">$string</span><span style="color: #007700">);<br />}<br /></span><span style="color: #0000BB">?></span> 155</span> 188><code><span style="color: #000000"> 189<span style="color: #0000BB"><?php<br /></span><span style="color: #FF8000">/*<br /> * Smarty plugin<br /> * -------------------------------------------------------------<br /> * File: modifier.truncate.php<br /> * Type: modifier<br /> * Name: truncate<br /> * Purpose: Truncate a string to a certain length if necessary,<br /> * optionally splitting in the middle of a word, and<br /> * appending the $etc string.<br /> * -------------------------------------------------------------<br /> */<br /></span><span style="color: #007700">function </span><span style="color: #0000BB">smarty_modifier_truncate</span><span style="color: #007700">(</span><span style="color: #0000BB">$string</span><span style="color: #007700">, </span><span style="color: #0000BB">$length </span><span style="color: #007700">= </span><span style="color: #0000BB">80</span><span style="color: #007700">, </span><span style="color: #0000BB">$etc </span><span style="color: #007700">= </span><span style="color: #DD0000">'...'</span><span style="color: #007700">,<br /> </span><span style="color: #0000BB">$break_words </span><span style="color: #007700">= </span><span style="color: #0000BB">false</span><span style="color: #007700">)<br />{<br /> if (</span><span style="color: #0000BB">$length </span><span style="color: #007700">== </span><span style="color: #0000BB">0</span><span style="color: #007700">)<br /> return </span><span style="color: #DD0000">''</span><span style="color: #007700">;<br /><br /> if (</span><span style="color: #0000BB">strlen</span><span style="color: #007700">(</span><span style="color: #0000BB">$string</span><span style="color: #007700">) > </span><span style="color: #0000BB">$length</span><span style="color: #007700">) {<br /> </span><span style="color: #0000BB">$length </span><span style="color: #007700">-= </span><span style="color: #0000BB">strlen</span><span style="color: #007700">(</span><span style="color: #0000BB">$etc</span><span style="color: #007700">);<br /> </span><span style="color: #0000BB">$fragment </span><span style="color: #007700">= </span><span style="color: #0000BB">substr</span><span style="color: #007700">(</span><span style="color: #0000BB">$string</span><span style="color: #007700">, </span><span style="color: #0000BB">0</span><span style="color: #007700">, </span><span style="color: #0000BB">$length</span><span style="color: #007700">+</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br /> if (</span><span style="color: #0000BB">$break_words</span><span style="color: #007700">)<br /> </span><span style="color: #0000BB">$fragment </span><span style="color: #007700">= </span><span style="color: #0000BB">substr</span><span style="color: #007700">(</span><span style="color: #0000BB">$fragment</span><span style="color: #007700">, </span><span style="color: #0000BB">0</span><span style="color: #007700">, -</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br /> else<br /> </span><span style="color: #0000BB">$fragment </span><span style="color: #007700">= </span><span style="color: #0000BB">preg_replace</span><span style="color: #007700">(</span><span style="color: #DD0000">'/\s+(\S+)?$/'</span><span style="color: #007700">, </span><span style="color: #DD0000">''</span><span style="color: #007700">, </span><span style="color: #0000BB">$fragment</span><span style="color: #007700">);<br /> return </span><span style="color: #0000BB">$fragment</span><span style="color: #007700">.</span><span style="color: #0000BB">$etc</span><span style="color: #007700">;<br /> } else<br /> return </span><span style="color: #0000BB">$string</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">?></span> 190</span>filter.php https://bitbucket.org/moodle/moodle.git | PHP | 235 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 80 // Looking for tags. 81 $matches = preg_split('/(<[^>]*>)/i', $text, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE); 82 158 159 // Split provided URL into alternatives. 160 $urls = $mediamanager->split_alternatives($matches[1], $width, $height);atlres.h https://bitbucket.org/3F/flightsdc.git | C Header | 263 lines
5// The use and distribution terms for this software are covered by the 6// Common Public License 1.0 (http://opensource.org/licenses/cpl1.0.php) 7// which can be found in the file CPL.TXT at the root of this distribution. 93 94 #define ATL_IDW_SIZE_BOX 0xEA20 // size box for splitters 95 #define ATL_IDW_PANE_SAVE 0xEA21 // to shift ATL_IDW_PANE_FIRST 159#define ID_WINDOW_TILE_VERT 0xE134 160#define ID_WINDOW_SPLIT 0xE135 161#ifndef RC_INVOKED // code onlytripal_feature_interpro_results.tpl.php https://gitlab.com/vijaya.tsavatapalli/drupal7 | PHP | 235 lines
1<?php 2$feature = $variables['node']->feature; 149 150 // the Prosite databases are split into two libraries for InterProScan. But 151 // we can just use the PROSITE database for both of them, so rename it here. 230 231 <div class="tripal_feature-interpro_results_subtitle">Summary of Annotated IPR terms</div> <?php 232 print $resultsHTML;?> 232 print $resultsHTML;?> 233 </div> <?php 234 }Encoder.php https://github.com/Exercise/zf2.git | PHP | 309 lines
1<?php 2/** 265 if (isset($this->_options['wrap']) && strlen($attribute) > $this->_options['wrap']) { 266 $attribute = trim(chunk_split($attribute, $this->_options['wrap'], PHP_EOL . ' ')); 267 } 267 } 268 $output .= $attribute . PHP_EOL; 269 } 269 } 270 return trim($output, PHP_EOL); 271 } 286 && array_key_exists('objectclass', $attributes)) { 287 $string .= sprintf('version: %d', $this->_options['version']) . PHP_EOL; 288 $this->_versionWritten = true; 304 foreach ($attributes as $key => $value) { 305 $string .= $this->_encodeAttribute($key, $value) . PHP_EOL; 306 }Loader.php https://github.com/Exercise/zf2.git | PHP | 277 lines
1<?php 2/** 39 /** 40 * Loads a class from a PHP file. The filename must be formatted 41 * as "$class.php". 45 * 46 * If $dirs is null, it will split the class name at underscores to 47 * generate a path hierarchy (e.g., "Zend_Example_Class" will map 69 // Autodiscover the path from the class name 70 // Implementation is PHP namespace-aware, and based on 71 // Framework Interop Group reference implementation: 110 /** 111 * Loads a PHP file. This is a wrapper for PHP's include() function. 112 * 169 * Returns TRUE if the $filename is readable, or FALSE otherwise. 170 * This function uses the PHP include_path, where PHP's is_readable() 171 * does not.Entity.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 354 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 106 if (strpos($k, $key . '/') === 0) { 107 $split = explode('/', $k); 108 $filters[$key][$split[1]] = $v;umeditor.config.js https://gitlab.com/0072016/0072016-mmzrb- | JavaScript | 257 lines
103 104 parsedStack = parsedStack.split( this.localSeparator ); 105 parsedStack.length = parsedStack.length - 1; 139 //图片上传配置区 140 ,imageUrl:"../admin/upload.php?infImgUpload=1" //图片上传提交地址 141 ,imagePath:URL //图片修正地址,引用了fixedImagePath,如有特殊需求,可自行配置thread.js https://github.com/canercandan/agat-engine.git | JavaScript | 423 lines
13 { 14 var post_ids = quoted.split("|"); 15 post_ids.each(function(post_id) { 36 { 37 var post_ids = quoted.split("|"); 38 post_ids.each(function(post_id) { 77 this.spinner = new ActivityIndicator("body", {image: imagepath + "/spinner_big.gif"}); 78 new Ajax.Request('xmlhttp.php?action=get_multiquoted&load_all=1', {method: 'get', onComplete: function(request) {Thread.multiQuotedLoaded(request); }}); 79 return false; 132 { 133 var post_ids = quoted.split("|"); 134 post_ids.each(function(post_id) { 151 form.setAttribute("method", "post"); 152 form.setAttribute("action", "editpost.php?action=deletepost&delete=1"); 153 form.setAttribute("style", "display: none;");jellybeans.vim https://github.com/richo/jellybeans.vim.git | Vim Script | 551 lines
13" URL: github.com/nanotech/jellybeans.vim 14" Scripts URL: vim.org/scripts/script.php?script_id=2555 15" Maintainer: NanoTech (nanotech.nanotechcorp.net) 290 else 291 let l:noitalic = join(filter(split(a:attr, ","), "v:val !=? 'italic'"), ",") 292 if empty(l:noitalic) 336call s:X("StatusLineNC","ffffff","403c41","italic","White","Black") 337call s:X("VertSplit","777777","403c41","",s:termBlack,s:termBlack) 338call s:X("WildMenu","f0a0c0","302028","","Magenta","") 394 395" PHP 396 396 397hi! link phpFunctions Function 398call s:X("StorageClass","c59f6f","","","Red","")source-class-ResourcePresenter.html https://github.com/jakubkinst/Course-Manager.git | HTML | 208 lines
145<a href="#26" id="26" class="l">26: </a> <span class="php-keyword1">protected</span> <span class="php-keyword1">function</span> startup() { 146<a href="#27" id="27" class="l">27: </a> <span class="php-keyword1">if</span> (<span class="php-keyword1">null</span> != <span class="php-var">$this</span>->getParam(<span class="php-quote">'rid'</span>)) { 147<a href="#28" id="28" class="l">28: </a> <span class="php-var">$this</span>->rid = <span class="php-var">$this</span>->getParam(<span class="php-quote">'rid'</span>); 162<a href="#43" id="43" class="l">43: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> actionHomepage(<span class="php-var">$cid</span>) { 163<a href="#44" id="44" class="l">44: </a> <span class="php-var">$uploader</span> = <span class="php-keyword1">new</span> Uploader(<span class="php-var">$this</span>, <span class="php-quote">'uploader'</span>); 164<a href="#45" id="45" class="l">45: </a> <span class="php-var">$uploader</span>->cid = <span class="php-var">$cid</span>; 170</span><a href="#51" id="51" class="l">51: </a><span class="php-comment"> */</span> 171<a href="#52" id="52" class="l">52: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> renderHomepage(<span class="php-var">$cid</span>) { 172<a href="#53" id="53" class="l">53: </a> <span class="php-var">$this</span>->template->resources = ResourceModel::getResources(<span class="php-var">$cid</span>); 180<a href="#61" id="61" class="l">61: </a> <span class="php-var">$file</span> = ResourceModel::getResource(<span class="php-var">$rid</span>); 181<a href="#62" id="62" class="l">62: </a> <span class="php-var">$this</span>->sendResponse(<span class="php-keyword1">new</span> DownloadResponse(WWW_DIR . <span class="php-quote">'/../uploads/'</span> . <span class="php-var">$file</span>->filename, <span class="php-var">$file</span>->name)); 182<a href="#63" id="63" class="l">63: </a> } 192</span><a href="#73" id="73" class="l">73: </a><span class="php-comment"> */</span> 193<a href="#74" id="74" class="l">74: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> handleDelete(<span class="php-var">$rid</span>) { 194<a href="#75" id="75" class="l">75: </a> <span class="php-var">$this</span>->checkTeacherAuthority();