PageRenderTime 2643ms queryTime 777ms sortTime 196ms getByIdsTime 325ms findMatchingLines 298ms

100+ results results for 'php substr' (2643 ms)

Not the results you expected?
club.php https://gitlab.com/julienv/joomleague | PHP | 190 lines
                    
1<?php
                    
2/**
                    
3 * @copyright	Copyright (C) 2005-2014 joomleague.at. All rights reserved.
                    
4 * @license		GNU/GPL,see LICENSE.php
                    
5 * Joomla! is free software. This version may have been modified pursuant
                    
8 * other free or open source software licenses.
                    
9 * See COPYRIGHT.php for copyright notices and details.
                    
10 */
                    
84				$team_name=JRequest::getVar('name');
                    
85				$team_short_name=strtoupper(substr(ereg_replace("[^a-zA-Z]","",$team_name),0,3));
                    
86				$teammodel=$this->getModel('team');
                    
101		{
                    
102			$link='index.php?option=com_joomleague&view=clubs&club.display';
                    
103		}
                    
105		{
                    
106			$link='index.php?option=com_joomleague&task=club.edit&cid[]='.$post['id'];
                    
107		}
                    
                
class-ftp-pure.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 190 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PemFTP - A Ftp implementation in pure PHP
                    
4 *
                    
10 * @author Alexey Dotsenko
                    
11 * @link http://www.phpclasses.org/browse/package/1743.html Site
                    
12 * @license LGPL License http://www.opensource.org/licenses/lgpl-license.html
                    
24 * @author Alexey Dotsenko
                    
25 * @link http://www.phpclasses.org/browse/package/1743.html Site
                    
26 * @license LGPL License http://www.opensource.org/licenses/lgpl-license.html
                    
169			}
                    
170			$block=substr($block, $t);
                    
171		} while(!empty($block));
                    
                
HIncludeFragmentRenderer.php https://gitlab.com/ealexis.t/trends | PHP | 160 lines
                    
1<?php
                    
2
                    
90            // we need to sign the absolute URI, but want to return the path only.
                    
91            $uri = substr($this->signer->sign($this->generateFragmentUri($uri, $request, true)), strlen($request->getSchemeAndHttpHost()));
                    
92        }
                    
                
graphparser.c https://gitlab.com/envieidoc/tomato | C | 357 lines
                    
25
                    
26#include "graphparser.h"
                    
27#include "avfilter.h"
                    
335        av_log(log_ctx, AV_LOG_ERROR,
                    
336               "Unable to parse graph description substring: \"%s\"\n",
                    
337               filters - 1);
                    
                
Query.php https://gitlab.com/yousafsyed/easternglamor | PHP | 356 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25#require_once 'Zend/Dom/Query/Css2Xpath.php';
                    
26
                    
29 */
                    
30#require_once 'Zend/Dom/Query/Result.php';
                    
31
                    
32/** @see Zend_Xml_Security */
                    
33#require_once 'Zend/Xml/Security.php';
                    
34
                    
35/** @see Zend_Xml_Exception */
                    
36#require_once 'Zend/Xml/Exception.php';
                    
37
                    
135        // breaking XML declaration to make syntax highlighting work
                    
136        if ('<' . '?xml' == substr(trim($document), 0, 5)) {
                    
137            if (preg_match('/<html[^>]*xmlns="([^"]+)"[^>]*>/i', $document, $matches)) {
                    
                
Database.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 336 lines
                    
1<?php
                    
2/**
                    
209                $extension = strrchr($filename, '.');
                    
210                $filenameWoExtension = substr($filename, 0, -1 * strlen($extension));
                    
211                while ($this->fileExists($directory . $filenameWoExtension . '_' . $index . $extension)) {
                    
                
InstanceTest.php https://gitlab.com/axeltizon/magento-demopoweraccess | PHP | 139 lines
                    
1<?php
                    
2/**
                    
7
                    
8class InstanceTest extends \PHPUnit_Framework_TestCase
                    
9{
                    
129        $this->assertContains('<block class="' . $model->getType() . '"', $result);
                    
130        $this->assertEquals(count($params), substr_count($result, '<action method="setData">'));
                    
131        $this->assertContains('<argument name="name" xsi:type="string">display_mode</argument>', $result);
                    
                
DiConfigFilesTest.php https://gitlab.com/axeltizon/magento-demopoweraccess | PHP | 155 lines
                    
1<?php
                    
2/**
                    
9
                    
10class DiConfigFilesTest extends \PHPUnit_Framework_TestCase
                    
11{
                    
98        foreach ($common as $path => $content) {
                    
99            $output[] = [substr($path, strlen(BP)), $content];
                    
100        }
                    
                
Chain.php https://gitlab.com/rsilveira1987/Expresso | PHP | 169 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Chain.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Controller_Router_Route_Abstract */
                    
24require_once 'Zend/Controller/Router/Route/Abstract.php';
                    
25
                    
80            if ($key > 0 && $matchedPath !== null) {
                    
81                $separator = substr($subPath, 0, strlen($this->_separators[$key]));
                    
82                
                    
86                
                    
87                $subPath = substr($subPath, strlen($separator));
                    
88            }
                    
105            if ($matchedPath !== null) {
                    
106                $subPath     = substr($subPath, strlen($matchedPath));
                    
107                $separator   = substr($subPath, 0, strlen($this->_separators[$key]));
                    
                
hash.php https://gitlab.com/gundambison/secure | PHP | 198 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
40/**
                    
41 * PHP ext/hash compatibility package
                    
42 *
                    
47 * @link		http://codeigniter.com/user_guide/
                    
48 * @link		http://php.net/hash
                    
49 */
                    
52
                    
53if (is_php('5.6'))
                    
54{
                    
64	 *
                    
65	 * @link	http://php.net/hash_equals
                    
66	 * @param	string	$known_string
                    
                
YamlFileLoader.php https://gitlab.com/fbi/radyo-api-server | PHP | 325 lines
                    
1<?php
                    
2
                    
128        if (is_string($service) && 0 === strpos($service, '@')) {
                    
129            $this->container->setAlias($id, substr($service, 1));
                    
130
                    
284            if (0 === strpos($value, '@?')) {
                    
285                $value = substr($value, 2);
                    
286                $invalidBehavior = ContainerInterface::IGNORE_ON_INVALID_REFERENCE;
                    
287            } else {
                    
288                $value = substr($value, 1);
                    
289                $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE;
                    
291
                    
292            if ('=' === substr($value, -1)) {
                    
293                $value = substr($value, 0, -1);
                    
                
Inline.php https://gitlab.com/noirscape/myimouto | PHP | 193 lines
                    
1<?php
                    
2/**
                    
131            while ($orig[0] !== false && $final[0] !== false &&
                    
132                   substr($orig[0], 0, 1) == ' ' &&
                    
133                   substr($final[0], 0, 1) == ' ') {
                    
133                   substr($final[0], 0, 1) == ' ') {
                    
134                $prefix .= substr($orig[0], 0, 1);
                    
135                $orig[0] = substr($orig[0], 1);
                    
135                $orig[0] = substr($orig[0], 1);
                    
136                $final[0] = substr($final[0], 1);
                    
137            }
                    
179            // Eat a word with any preceding whitespace.
                    
180            $spaces = strspn(substr($string, $pos), " \n");
                    
181            $nextpos = strcspn(substr($string, $pos + $spaces), " \n");
                    
181            $nextpos = strcspn(substr($string, $pos + $spaces), " \n");
                    
182            $words[] = str_replace("\n", $newlineEscape, substr($string, $pos, $spaces + $nextpos));
                    
183            $pos += $spaces + $nextpos;
                    
                
class-path-processor.php https://gitlab.com/campus-academy/krowkaramel | PHP | 186 lines
                    
76
                    
77		// phpcs:disable WordPress.PHP.NoSilencedErrors.Discouraged
                    
78		$directory = @is_file( $file ) ? dirname( $file ) : $file;
                    
81		}
                    
82		// phpcs:enable WordPress.PHP.NoSilencedErrors.Discouraged
                    
83
                    
147		// We're only able to find the absolute path for plugin/theme PHP files.
                    
148		if ( ! is_string( $normalized_path ) || '.php' !== substr( $normalized_path, -4 ) ) {
                    
149			return null;
                    
153			$normalized_check = wp_normalize_path( trailingslashit( $directory ) ) . $normalized_path;
                    
154			// phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
                    
155			if ( @is_file( $normalized_check ) ) {
                    
171		// We want to resolve symbolic links for consistency with __DIR__ paths.
                    
172		// phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
                    
173		$real_path = @realpath( $path );
                    
                
smarty_internal_parsetree.php https://gitlab.com/garabedian.kevin/web2TB | PHP | 393 lines
                    
188            } else {
                    
189                $more_php = $subtree->to_smarty_php();
                    
190            }
                    
294                if (substr($subtree, 0, 1) == '?') {
                    
295                    $code = substr($code, 0, strlen($code) - 1) . '<<?php ?>?' . substr($subtree, 1);
                    
296                } elseif ($this->parser->asp_tags && substr($subtree, 0, 1) == '%') {
                    
296                } elseif ($this->parser->asp_tags && substr($subtree, 0, 1) == '%') {
                    
297                    $code = substr($code, 0, strlen($code) - 1) . '<<?php ?>%' . substr($subtree, 1);
                    
298                } else {
                    
305                if (substr($subtree, 0, 1) == '>') {
                    
306                    $code = substr($code, 0, strlen($code) - 1) . '%<?php ?>>' . substr($subtree, 1);
                    
307                } else {
                    
314                if (substr($subtree, 0, 1) == '>') {
                    
315                    $code = substr($code, 0, strlen($code) - 1) . '?<?php ?>>' . substr($subtree, 1);
                    
316                } else {
                    
                
class-credits-options.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 161 lines
                    
1<?php
                    
2class Footer_Credits_Options  {
                    
89	private static function get_default_site() { 
                    
90		$domain = strtolower(parse_url(site_url(),PHP_URL_HOST));
                    
91		$p = strpos($domain,'www.') ;
                    
91		$p = strpos($domain,'www.') ;
                    
92		if (($p !== FALSE) && ($p == 0)) $domain = substr($domain,4);
                    
93		return $domain; 
                    
                
File.php https://github.com/stinie/Ushahidi_Web.git | PHP | 245 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
4 *
                    
5 * $Id: File.php 3917 2009-01-21 03:06:22Z zombor $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
125				// Get the id from the filename
                    
126				$array[] = substr(current(explode('~', $file)), $offset);
                    
127			}
                    
159				// Find the hash of the data
                    
160				$hash = substr($data, 0, 40);
                    
161
                    
162				// Remove the hash from the data
                    
163				$data = substr($data, 40);
                    
164
                    
                
Language.php https://github.com/azouts/oscommerce.git | PHP | 132 lines
                    
1<?php
                    
2/*
                    
51      $this->loadIniFile();
                    
52      $this->loadIniFile(OSCOM::getSiteApplication() . '.php');
                    
53    }
                    
84      if ( is_null($filename) ) {
                    
85        if ( file_exists(OSCOM::BASE_DIRECTORY . 'Core/Site/' . OSCOM::getSite() . '/Languages/' . $language_code . '.php') ) {
                    
86          $contents = file(OSCOM::BASE_DIRECTORY . 'Core/Site/' . OSCOM::getSite() . '/Languages/' . $language_code . '.php');
                    
90      } else {
                    
91        if ( substr(realpath(OSCOM::BASE_DIRECTORY . 'Core/Site/' . OSCOM::getSite() . '/Languages/' . $language_code . '/' . $filename), 0, strlen(realpath(OSCOM::BASE_DIRECTORY . 'Core/Site/' . OSCOM::getSite() . '/Languages/' . $language_code))) != realpath(OSCOM::BASE_DIRECTORY . 'Core/Site/' . OSCOM::getSite() . '/Languages/' . $language_code) ) {
                    
92          return array();
                    
106
                    
107        $firstchar = substr($line, 0, 1);
                    
108
                    
112          if ( $delimiter !== false ) {
                    
113            $key = trim(substr($line, 0, $delimiter));
                    
114            $value = trim(substr($line, $delimiter + 1));
                    
                
AbstractFieldCoder.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 158 lines
                    
1<?php
                    
2/*
                    
35
                    
36require_once 'api/Wrapper.php';
                    
37
                    
76    // Field is multilingual and after cutting off _xx_YY should be skipped (CRM-7230)…
                    
77    if ((preg_match('/_[a-z][a-z]_[A-Z][A-Z]$/', $fldName) && in_array(substr($fldName, 0, -6), $skipFields))) {
                    
78      return TRUE;
                    
                
Url.php https://gitlab.com/x33n/respond | PHP | 548 lines
                    
1<?php
                    
2
                    
91            // Always ensure that the path begins with '/' if set and something is before the path
                    
92            if ($url && $parts['path'][0] != '/' && substr($url, -1)  != '/') {
                    
93                $url .= '/';
                    
                
_functions.php https://gitlab.com/bradanlane/AirPRS | PHP | 227 lines
                    
1<?php
                    
2
                    
4
                    
5$conf = parse_ini_file("/appdata/airprs/php_db_settings.ini");
                    
6$default_key 	= "af14a856-ae0e-44f1-878b-d4f0a747d762";
                    
62	$temp_key = sprintf('%02x%02x%02x%02x', $parts[0], $parts[1], $parts[2], $parts[3]);
                    
63	$temp_key = $temp_key . substr($default_key, 8);
                    
64	printf ("key = %s\n", $temp_key);
                    
192
                    
193	$file_parts = pathinfo($_SERVER['PHP_SELF']);
                    
194	$data = array (
                    
                
detect.php https://gitlab.com/afrizal/projekrenkam | PHP | 261 lines
                    
1<?php
                    
2
                    
12 * @copyright Bastian Allgeier
                    
13 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
26  /**
                    
27   * Checks if the required php version is installed
                    
28   * 
                    
31   */
                    
32  public static function php($min = '5.3') {
                    
33    return version_compare(PHP_VERSION, $min, '>=');
                    
36  /**
                    
37   * Checks if PHP is running on Apache
                    
38   * 
                    
204    $absolute = $_SERVER['SCRIPT_FILENAME'];
                    
205    return substr($absolute, 0, strpos($absolute, $local));     
                    
206  }
                    
                
VarCloner.php https://gitlab.com/Sigpot/AirSpot | PHP | 324 lines
                    
1<?php
                    
2
                    
105                                $stub->cut = $cut;
                    
106                                $stub->value = substr($v, 0, -$cut);
                    
107                            } else {
                    
114                            $stub->cut = $cut;
                    
115                            $stub->value = mb_substr($v, 0, $maxString, 'UTF-8');
                    
116                        }
                    
148                    case 'object':
                    
149                        if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) {
                    
150                            $stub = new Stub();
                    
164                                } else {
                    
165                                    $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE));
                    
166                                }
                    
321
                    
322        self::$hashMask ^= hexdec(substr(spl_object_hash($obj), self::$hashOffset, PHP_INT_SIZE));
                    
323    }
                    
                
Editor.php https://bitbucket.org/kdms/sh-magento.git | PHP | 187 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Editor.php 20116 2010-01-07 14:18:34Z matthew $
                    
21 */
                    
23/** Zend_Dojo_View_Helper_Dijit */
                    
24#require_once 'Zend/Dojo/View/Helper/Dijit.php';
                    
25
                    
26/** Zend_Json */
                    
27#require_once 'Zend/Json.php';
                    
28
                    
157    {
                    
158        if ('[]' == substr($name, -2)) {
                    
159            $name = substr($name, 0, strlen($name) - 2);
                    
                
Memcached.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 159 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 */
                    
129
                    
130        if (is_string($data) && (substr($data, 0, strlen(self::CODE_WORD)) == self::CODE_WORD)) {
                    
131            // Seems we've got chunked data
                    
                
Bundle.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 203 lines
                    
1<?php
                    
2
                    
113
                    
114        return substr($class, 0, strrpos($class, '\\'));
                    
115    }
                    
161
                    
162        return $this->name = false === $pos ? $name : substr($name, $pos + 1);
                    
163    }
                    
181        $finder = new Finder();
                    
182        $finder->files()->name('*Command.php')->in($dir);
                    
183
                    
189            }
                    
190            $class = $ns.'\\'.$file->getBasename('.php');
                    
191            if ($this->container) {
                    
                
BufferedReader.php https://gitlab.com/Isaki/le331.fr | PHP | 196 lines
                    
1<?php
                    
2/*
                    
21
                    
22include_once 'phing/system/io/Reader.php';
                    
23
                    
83
                    
84                    $data = substr($data, 0, $validSize);
                    
85
                    
                
Default.php https://github.com/gryzz/crystal_magento.git | PHP | 206 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) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
181    {
                    
182        return substr($this->getFieldIdPrefix(), 0, -1);
                    
183    }
                    
                
class.pop3.php https://github.com/mrbmc/erector.git | PHP | 391 lines
                    
1<?php
                    
2/*~ class.pop3.php
                    
3.---------------------------------------------------------------------------.
                    
4|  Software: PHPMailer - PHP email class                                    |
                    
5|   Version: 2.0.0 rc2                                                      |
                    
7|      Info: http://phpmailer.sourceforge.net                               |
                    
8|   Support: http://sourceforge.net/projects/phpmailer/                     |
                    
9| ------------------------------------------------------------------------- |
                    
30 *
                    
31 * Author: Richard Davey (rich@corephp.co.uk)
                    
32 * License: LGPL, see PHPMailer License
                    
188    /*
                    
189    On Windows this will raise a PHP Warning error if the hostname doesn't exist.
                    
190    Rather than supress it with @fsockopen, let's capture it cleanly instead
                    
232      //  Does not work on Windows
                    
233      if (substr(PHP_OS, 0, 3) !== 'WIN') {
                    
234        socket_set_timeout($this->pop_conn, $tval, 0);
                    
                
XmlParser.php https://gitlab.com/thallian/freebsd-roles | PHP | 229 lines
                    
1<?php
                    
2
                    
93
                    
94        if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
                    
95            $dom->loadHTML($input, LIBXML_NONET);
                    
155        if (strpos($data, '<?xml') !== false) {
                    
156            $data = substr($data, 0, strrpos($data, '?>'));
                    
157            $data = str_replace("'", '"', $data);
                    
162            if ($p1 !== false && $p2 !== false) {
                    
163                $encoding = substr($data, $p1 + 10, $p2 - $p1 - 10);
                    
164                $encoding = strtolower($encoding);
                    
                
DashletsDialog.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 193 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
38
                    
39include('include/MySugar/DashletsDialog/DashletsDialog.php');
                    
40
                    
46
                    
47        require_once($GLOBALS['sugar_config']['cache_dir'].'dashlets/dashlets.php');
                    
48
                    
74
                    
75                $directory = substr($files['meta'], 0, strrpos($files['meta'], '/') + 1);
                    
76                if(is_file($directory . $files['class'] . '.' . $current_language . '.lang.php'))
                    
76                if(is_file($directory . $files['class'] . '.' . $current_language . '.lang.php'))
                    
77                    require_once($directory . $files['class'] . '.' . $current_language . '.lang.php');
                    
78                elseif(is_file($directory . $files['class'] . '.en_us.lang.php'))
                    
78                elseif(is_file($directory . $files['class'] . '.en_us.lang.php'))
                    
79                    require_once($directory . $files['class'] . '.en_us.lang.php');
                    
80
                    
                
twitter-timeline.php https://gitlab.com/hunt9310/ras | PHP | 470 lines
                    
1<?php
                    
2
                    
26			'twitter_timeline',
                    
27			/** This filter is documented in modules/widgets/facebook-likebox.php */
                    
28			apply_filters( 'jetpack_widget_name', esc_html__( 'Twitter Timeline', 'jetpack' ) ),
                    
63	public function admin_scripts( $hook ) {
                    
64		// This is still 'widgets.php' when managing widgets via the Customizer.
                    
65		if ( 'widgets.php' === $hook ) {
                    
78	public function widget( $args, $instance ) {
                    
79		$instance['lang'] = substr( strtoupper( get_locale() ), 0, 2 );
                    
80
                    
83		if ( isset( $instance['title'] ) ) {
                    
84			/** This filter is documented in core/src/wp-includes/default-widgets.php */
                    
85			echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title'];
                    
145
                    
146		/** This action is documented in modules/widgets/social-media-icons.php */
                    
147		do_action( 'jetpack_bump_stats_extras', 'widget', 'twitter_timeline' );
                    
                
register.php https://gitlab.com/nvtdn2006/azora | PHP | 284 lines
                    
1<?php require_once './includes/application.php'; $this->template = 'registration'; $this->title = 'Registration'; ?>
                    
2
                    
106			if ($customerObj->registerCustomer($customer)) {			
                    
107				//$activation_link = $config['PRMSConfig']->live_site . '/activate.php?atk=' . $customer['activation_key'] . '&id=' . $cryptographer->Encrypt($customer['id']);
                    
108				$activation_link = $config['PRMSConfig']->live_site . '/activate.php?atk=' . $customer['activation_key'] . '&id=' . $customer['id'];
                    
190			<td class="LabelCell Required">NRIC / FIN <span class="hint">(Identity for account)</span></td>
                    
191			<td><input type="text" name="nric" id="nric" maxlength="25" class="input Required AlphaNumberic" value="<?php echo $customer['nric']; ?>" size="20" tabindex="10" /></td>
                    
192		</tr>
                    
198			<td class="LabelCell Required">Date of Birth <span class="hint">(DD/MM/YYYY)</span></td>
                    
199			<td><input type="text" name="dob" id="dob" maxlength="10" class="input Required ValidDate" value="<?php echo $customer['dob']; ?>" size="20" tabindex="30" /></td>
                    
200		</tr>
                    
255			<td>
                    
256				<img src="components/cool.php.captcha/captcha.php" id="captcha" />&nbsp;&nbsp;&nbsp;
                    
257				<!-- CHANGE TEXT LINK -->
                    
258				<a href="#" onclick="
                    
259					document.getElementById('captcha').src='components/cool.php.captcha/captcha.php?'+Math.random();
                    
260					document.getElementById('captcha-form').focus();"
                    
                
Descarte.php https://gitlab.com/SFMSP/Hagape | PHP | 346 lines
                    
1<?php
                    
2
                    
153            if (!empty($data['idItensExcluidos']) && !empty($data['id'])) {
                    
154                $itensExcluidos = substr($data['idItensExcluidos'], 0, -1);
                    
155                $itensExcluidos = explode(',', $itensExcluidos);
                    
                
WinFsStreamWrapper.php https://gitlab.com/oytunistrator/92five | PHP | 400 lines
                    
1<?php // vi: set fenc=utf-8 ts=4 sw=4 et:
                    
2/*
                    
18 *
                    
19 * See also https://code.google.com/p/php-wfio/ for a PHP extension
                    
20 * and comments on http://www.rooftopsolutions.nl/blog/filesystem-encoding-and-php
                    
270        {
                    
271            if ('x' === $m = substr($mode, 0, 1))
                    
272            {
                    
                
Command.php https://bitbucket.org/maatao/estrutura-b-sica-doctrine.git | PHP | 512 lines
                    
1<?php
                    
2
                    
268        if (false !== $pos = strrpos($name, ':')) {
                    
269            $namespace = substr($name, 0, $pos);
                    
270            $name = substr($name, $pos + 1);
                    
378            $name,
                    
379            $_SERVER['PHP_SELF'].' '.$name
                    
380        );
                    
                
UriParser.php https://gitlab.com/itlboy/yii2-starter-installed | PHP | 201 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * League.Uri (http://uri.thephpleague.com)
                    
4 *
                    
7 * @copyright 2013-2015 Ignace Nyamagana Butera
                    
8 * @license   https://github.com/thephpleague/uri/blob/master/LICENSE (MIT License)
                    
9 * @version   4.1.0
                    
9 * @version   4.1.0
                    
10 * @link      https://github.com/thephpleague/uri/
                    
11 */
                    
71                'path' => $parts['path'],
                    
72                'query' => '' === $parts['query'] ? null : mb_substr($parts['query'], 1, null, 'UTF-8'),
                    
73                'fragment' => '' === $parts['fragment'] ? null : mb_substr($parts['fragment'], 1, null, 'UTF-8'),
                    
188    {
                    
189        return ('.' === mb_substr($host, -1, 1, 'UTF-8')) ? mb_substr($host, 0, -1, 'UTF-8') : $host;
                    
190    }
                    
                
commands.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 222 lines
                    
1<?php
                    
2/*
                    
21 *
                    
22 * This is the File Manager Connector for PHP.
                    
23 */
                    
174		// Get the extension.
                    
175		$sExtension = substr( $sFileName, ( strrpos($sFileName, '.') + 1 ) ) ;
                    
176		$sExtension = strtolower( $sExtension ) ;
                    
                
acymenu.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 83 lines
                    
1<?php
                    
2/**
                    
7?>
                    
8<?php
                    
9class acymenuHelper{
                    
14		}
                    
15		$selected = substr($selected,0,5);
                    
16		$config = acymailing_config();
                    
19		if(acymailing_isAllowed($config->get('acl_subscriber_manage','all'))){
                    
20			$mainmenu['subscriber'] = array(JText::_('USERS'), 'index.php?option=com_acymailing&ctrl=subscriber','acyicon-16-users');
                    
21			$submenu['subscriber'] = array();
                    
21			$submenu['subscriber'] = array();
                    
22			$submenu['subscriber'][] = array(JText::_('USERS'), 'index.php?option=com_acymailing&ctrl=subscriber','acyicon-16-users');
                    
23			if(acymailing_isAllowed($config->get('acl_subscriber_import','all'))) $submenu['subscriber'][] = array(JText::_('IMPORT'), 'index.php?option=com_acymailing&ctrl=data&task=import','acyicon-16-import');
                    
23			if(acymailing_isAllowed($config->get('acl_subscriber_import','all'))) $submenu['subscriber'][] = array(JText::_('IMPORT'), 'index.php?option=com_acymailing&ctrl=data&task=import','acyicon-16-import');
                    
24			if(acymailing_isAllowed($config->get('acl_subscriber_export','all'))) $submenu['subscriber'][] = array(JText::_('ACY_EXPORT'), 'index.php?option=com_acymailing&ctrl=data&task=export','acyicon-16-export');
                    
25		}
                    
                
zoo.php https://gitlab.com/ricardosanchez/prueba | PHP | 281 lines
                    
1<?php
                    
2/**
                    
13
                    
14require_once dirname(__DIR__) . '/assignment.php';
                    
15
                    
243		{
                    
244			if (substr($id, 0, 3) == 'app')
                    
245			{
                    
                
TranslatorPathsPass.php https://gitlab.com/madwanz64/laravel | PHP | 147 lines
                    
1<?php
                    
2
                    
48        foreach ($this->findControllerArguments($container) as $controller => $argument) {
                    
49            $id = substr($controller, 0, strpos($controller, ':') ?: \strlen($controller));
                    
50            if ($container->hasDefinition($id)) {
                    
                
RegionUrlMaps.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 206 lines
                    
1<?php
                    
2/*
                    
103   * example-instance`. The `:` operator can be used with string fields to match
                    
104   * substrings. For non-string fields it is equivalent to the `=` operator. The
                    
105   * `:*` comparison can be used to test whether a key has been defined. For
                    
                
MainOptions.php https://gitlab.com/ElvisAns/tiki | PHP | 233 lines
                    
1<?php
                    
2
                    
10if (strpos($_SERVER['SCRIPT_NAME'], basename(__FILE__)) !== false) {
                    
11    header('location: index.php');
                    
12    exit;
                    
104                if (parent::$usecolselector) {
                    
105                    $orh[$col] = 'if (id == \'' . substr($col, 1) . '\'){';
                    
106                } else {
                    
148        }
                    
149        //only fancytable uses this and it is set in wikiplugin_fancytable.php
                    
150        //other tables don't show up full width due to use of table-responsive class in wrapper div
                    
                
Cache.php https://github.com/cinnamong/mag3nt0.git | PHP | 250 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Cache.php 21974 2010-04-23 17:10:17Z alexander $
                    
20 */
                    
132            // security controls are explicit
                    
133            #require_once str_replace('_', DIRECTORY_SEPARATOR, $backendClass) . '.php';
                    
134        } else {
                    
145            if (!$autoload) {
                    
146                $file = str_replace('_', DIRECTORY_SEPARATOR, $backendClass) . '.php';
                    
147                if (!(self::_isReadable($file))) {
                    
174            // security controls are explicit
                    
175            #require_once str_replace('_', DIRECTORY_SEPARATOR, $frontendClass) . '.php';
                    
176        } else {
                    
232     * Returns TRUE if the $filename is readable, or FALSE otherwise.
                    
233     * This function uses the PHP include_path, where PHP's is_readable()
                    
234     * does not.
                    
                
Editor.php https://github.com/skoop/Gesichtbuch.git | PHP | 187 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Editor.php 6352 2010-08-16 15:02:45Z tpater $
                    
21 */
                    
23/** Zend_Dojo_View_Helper_Dijit */
                    
24// require_once 'Zend/Dojo/View/Helper/Dijit.php';
                    
25
                    
26/** Zend_Json */
                    
27// require_once 'Zend/Json.php';
                    
28
                    
157    {
                    
158        if ('[]' == substr($name, -2)) {
                    
159            $name = substr($name, 0, strlen($name) - 2);
                    
                
usertypepropertydiskfile.php https://gitlab.com/Rad1calDreamer/honey | PHP | 197 lines
                    
1<?php
                    
2
                    
149		$documentType = $fieldType->getDocumentType();
                    
150		$iblockId = intval(substr($documentType[2], strlen("iblock_")));
                    
151
                    
180		$documentType = $fieldType->getDocumentType();
                    
181		$iblockId = intval(substr($documentType[2], strlen("iblock_")));
                    
182		if(!$iblockId)
                    
                
ArrayInput.php https://github.com/l3l0/BehatExamples.git | PHP | 190 lines
                    
1<?php
                    
2
                    
118        foreach ($this->parameters as $key => $value) {
                    
119            if ('--' === substr($key, 0, 2)) {
                    
120                $this->addLongOption(substr($key, 2), $value);
                    
121            } elseif ('-' === $key[0]) {
                    
122                $this->addShortOption(substr($key, 1), $value);
                    
123            } else {
                    
                
File.php https://github.com/Jaybee-/bluebox.git | PHP | 245 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
4 *
                    
5 * $Id: File.php 3769 2008-12-15 00:48:56Z zombor $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
125				// Get the id from the filename
                    
126				$array[] = substr(current(explode('~', $file)), $offset);
                    
127			}
                    
159				// Find the hash of the data
                    
160				$hash = substr($data, 0, 40);
                    
161
                    
162				// Remove the hash from the data
                    
163				$data = substr($data, 40);
                    
164
                    
                
smarty_internal_config.php https://gitlab.com/ilya.webcity/anna | PHP | 302 lines
                    
1<?php
                    
2/**
                    
109        if ($this->smarty->use_sub_dirs) {
                    
110            $_filepath = substr($_filepath, 0, 2) . DS
                    
111                    . substr($_filepath, 2, 2) . DS
                    
111                    . substr($_filepath, 2, 2) . DS
                    
112                    . substr($_filepath, 4, 2) . DS
                    
113                    . $_filepath;
                    
119        $_compile_dir = $this->smarty->getCompileDir();
                    
120        return $_compile_dir . $_filepath . '.' . basename($this->source->name) . '.config' . '.php';
                    
121    }
                    
                
position.php https://github.com/bermi/akelos.git | PHP | 173 lines
                    
1<?php
                    
2/**
                    
3* Locate a byte index given a UTF-8 character index
                    
4* @version $Id: position.php,v 1.1 2006/10/01 00:01:31 harryf Exp $
                    
5* @package utf8
                    
13* index of that character. Can be useful when you want to
                    
14* PHP's native string functions but we warned, locating
                    
15* the byte can be expensive
                    
45    // $c -> character offset into $str
                    
46    $c = strlen(utf8_decode(substr($str,0,$i)));
                    
47    
                    
78                // determine new character offset
                    
79                $c += strlen(utf8_decode(substr($str,$i,$j-$i)));
                    
80            } else {
                    
81                // ditto
                    
82                $c -= strlen(utf8_decode(substr($str,$j,$i-$j)));
                    
83            }
                    
                
Math.php https://github.com/openstate/HNS.dev.git | PHP | 154 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Math.php 8672 2008-03-07 21:20:42Z thomas $
                    
20 */
                    
24 * Utility class for proxying math function to bcmath functions, if present,
                    
25 * otherwise to PHP builtin math operators, with limited detection of overflow conditions.
                    
26 * Sampling of PHP environments and platforms suggests that at least 80% to 90% support bcmath.
                    
56     * Surprisingly, the results of this implementation of round()
                    
57     * prove better than the native PHP round(). For example, try:
                    
58     *   round(639.795, 2);
                    
96            // zero fill digits to the left of the decimal place
                    
97            $op1 = substr($op1, 0, $decPos + $precision) . str_pad('', abs($precision), '0');
                    
98        }
                    
152    || !extension_loaded('bcmath')) {
                    
153    require_once 'Zend/Locale/Math/PhpMath.php';
                    
154}
                    
                
check_config.php https://github.com/sherdog/GitWitty.git | PHP | 180 lines
                    
1<?php

                    
2/**

                    
2/**

                    
3 * @file       check_config.php

                    
4 * @brief      Check if the CCBoard configuration wrapper is present.

                    
21 *             Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

                    
22 *             A full text version of the GNU GPL version 2 can be found in the LICENSE.php file.

                    
23 * @par History:

                    
52	   $rc = '[NOK]';

                    
53      $result .= JText::_( 'The configuration wrapper is not present in the MASTER ccboard-config.php file.');

                    
54      $result .= '|[ACTION]';

                    
72   

                    
73   include_once( $patch_dir .DS. 'joomla' .DS. 'patchloader.php');

                    
74   $patchStr = jms2win_loadPatch( '..' .DS. 'ccboard' .DS. 'patch_config.php');

                    
107if ( defined( 'MULTISITES_ID')

                    
108  && file_exists( dirname(__FILE__) .DS. 'ccboard-config.' .MULTISITES_ID. '.php')) {

                    
109   require_once(  dirname(__FILE__) .DS. 'ccboard-config.' .MULTISITES_ID. '.php');

                    
                
sitemailer_.php https://gitlab.com/nvtdn2006/azora | PHP | 384 lines
                    
1<?php
                    
2class SiteMailer
                    
52		$this->headers .= "MIME-Version: 1.0\r\n";		
                    
53		//$this->headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-" . $this->randomHash . "\"\r\n";
                    
54		$this->headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
                    
90			{
                    
91				$this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";
                    
92				$this->msgBody .= $this->attachment;				
                    
92				$this->msgBody .= $this->attachment;				
                    
93				$this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";
                    
94			}*/		
                    
156	private function sendActivationToCustomer($property) {
                    
157		/*$htmlCT = "--PHP-alt-" . $this->randomHash . "\r\n";
                    
158		$htmlCT .= 'Content-Type: text/html; charset="iso-8859-1"' . "\r\n";
                    
165		foreach ($placeholders[0] as $placeholder) {
                    
166			$ph = substr($placeholder, 2, strlen($placeholder)-4);					
                    
167			$this->msgBody = preg_replace('/\{\%'.$ph.'\%\}/', $property[$ph], $this->msgBody);
                    
                
position.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 173 lines
                    
1<?php
                    
2/**
                    
3* Locate a byte index given a UTF-8 character index
                    
4* @version $Id: position.php,v 1.1 2008/10/10 20:52:53 mj Exp $
                    
5* @package utf8
                    
13* index of that character. Can be useful when you want to
                    
14* PHP's native string functions but we warned, locating
                    
15* the byte can be expensive
                    
45    // $c -> character offset into $str
                    
46    $c = strlen(utf8_decode(substr($str,0,$i)));
                    
47    
                    
78                // determine new character offset
                    
79                $c += strlen(utf8_decode(substr($str,$i,$j-$i)));
                    
80            } else {
                    
81                // ditto
                    
82                $c -= strlen(utf8_decode(substr($str,$j,$i-$j)));
                    
83            }
                    
                
DocCommentAlignmentSniff.php https://github.com/amumu/modev.git | PHP | 149 lines
                    
28 * @version   Release: 1.2.2
                    
29 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
30 */
                    
49     *
                    
50     * @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
                    
51     * @param int                  $stackPtr  The position of the current token
                    
55     */
                    
56    public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
57    {
                    
60        // We are only interested in function/class/interface doc block comments.
                    
61        $nextToken = $phpcsFile->findNext(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr + 1), null, true);
                    
62        $ignore    = array(
                    
73            // Could be a file comment.
                    
74            $prevToken = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr - 1), null, true);
                    
75            if ($tokens[$prevToken]['code'] !== T_OPEN_TAG) {
                    
                
tcpdf_config_alt.php https://github.com/hermansyam/cardiac.git | PHP | 227 lines
                    
1<?php
                    
2//============================================================+
                    
2//============================================================+
                    
3// File name   : tcpdf_config.php
                    
4// Begin       : 2004-06-11
                    
34	if(isset($_SERVER['SCRIPT_FILENAME'])) {
                    
35		$_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])));
                    
36	} elseif(isset($_SERVER['PATH_TRANSLATED'])) {
                    
36	} elseif(isset($_SERVER['PATH_TRANSLATED'])) {
                    
37		$_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF'])));
                    
38	}	else {
                    
44// Automatic calculation for the following K_PATH_MAIN constant
                    
45$k_path_main = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config'))));
                    
46if (substr($k_path_main, -1) != '/') {
                    
63	$k_path_url .= $_SERVER['HTTP_HOST'];
                    
64	$k_path_url .= str_replace( '\\', '/', substr($_SERVER['PHP_SELF'], 0, -24));
                    
65}
                    
                
Translator.php https://github.com/comfortablynumb/symfony.git | PHP | 212 lines
                    
1<?php
                    
2
                    
206        if (strlen($locale) > 3) {
                    
207            array_unshift($locales, substr($locale, 0, -strlen(strrchr($locale, '_'))));
                    
208        }
                    
                
Path.php https://github.com/kronda/kronda.git | PHP | 170 lines
                    
1<?php
                    
2
                    
65
                    
66        if (substr_compare($path, "/", 0, 1) !== 0) return "must start with \"/\"";
                    
67        $l = strlen($path);
                    
114
                    
115        if (substr_compare($path, "/", 0, 1) !== 0) {
                    
116            throw new InvalidArgumentException("'path' must start with \"/\"");
                    
124        $lastSlash = strrpos($path, "/");
                    
125        return substr($path, $lastSlash+1);
                    
126    }
                    
                
date_helper.php https://gitlab.com/ricoru21/py_incidencia | PHP | 611 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 *
                    
68 *
                    
69 * This function is identical to PHPs date() function,
                    
70 * except that it allows date codes to be formatted using
                    
247
                    
248		return substr(trim($str), 0, -1);
                    
249	}
                    
369		return  mktime(
                    
370						substr($time, 8, 2),
                    
371						substr($time, 10, 2),
                    
371						substr($time, 10, 2),
                    
372						substr($time, 12, 2),
                    
373						substr($time, 4, 2),
                    
                
Curl.php https://gitlab.com/yousafsyed/easternglamor | PHP | 453 lines
                    
1<?php
                    
2/**
                    
156     *
                    
157     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
158     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
175     *
                    
176     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
177     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
293    {
                    
294        $optionName = substr($optionName, strpos($optionName, "/") + 1);
                    
295        $optionName = str_replace(['-', ' & '], "_", trim($optionName));
                    
297        if ($end !== false) {
                    
298            $optionName = substr($optionName, 0, $end);
                    
299        }
                    
308     *
                    
309     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
310     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
                
Resource.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23567 2010-12-20 08:12:16Z mjh_ca $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
import_spec_test.py https://gitlab.com/iranjith4/hhvm | Python | 312 lines
                    
29    'README.md',
                    
30    'make_phpt',
                    
31)
                    
41    '/expressions/general/order_of_evaluation.php',
                    
42    '/expressions/primary_expressions/intrinsics_eval.php',
                    
43    '/tests/expressions/primary_expressions/intrinsics_unset.php',
                    
46    '/functions/basics.php',
                    
47    '/functions/byrefs.php',
                    
48)
                    
81    action='append',
                    
82    help="only import tests whose path contains this substring."
                    
83)
                    
128
                    
129def index_containing_substring(the_list, substring):
                    
130    if not the_list:
                    
                
BigBlueButton.php https://gitlab.com/rsilveira1987/Expresso | PHP | 268 lines
                    
1<?php
                    
2
                    
91        $host = $_SERVER['HTTP_HOST'];
                    
92        $base = substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], '/'));
                    
93        return $protocol.'//'.$host.$base.'/Webconference/views/logoutPage.html';
                    
97        $host = $_SERVER['HTTP_HOST'];
                    
98        $base = substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], '/'));
                    
99        return $protocol.'//'.$host.$base.'/Webconference/views/logoutPage.html';
                    
                
config.php https://github.com/bfritz/fusionpbx.git | PHP | 178 lines
                    
1<?php
                    
2/*
                    
67	$len = strpos($string,$end,$ini) - $ini;
                    
68	return substr($string,$ini,$len);
                    
69}
                    
78    //$db = new PDO('sqlite::memory:'); //sqlite 3
                    
79    if (!function_exists('phpmd5')) {
                    
80      function phpmd5($string) {
                    
83    }
                    
84    if (!function_exists('phpmd5')) {
                    
85      function phpunix_timestamp($string) {
                    
88    }
                    
89    if (!function_exists('phpnow')) {
                    
90      function phpnow() {
                    
94
                    
95    if (!function_exists('phpleft')) {
                    
96      function phpleft($string, $num) {
                    
                
Resource.php https://github.com/ccapndave/flextrine.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23568 2010-12-20 08:13:20Z mjh_ca $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
CurrencyTest.php https://github.com/necrogami/zf2.git | PHP | 173 lines
                    
1<?php
                    
2/**
                    
39 */
                    
40class CurrencyTest extends \PHPUnit_Framework_TestCase
                    
41{
                    
114        } catch (\Exception $e) {
                    
115            if (substr($e->getMessage(), 0, 15) == 'No region found') {
                    
116                $this->assertContains('within the locale', $e->getMessage());
                    
127        } catch (\Exception $e) {
                    
128            if (substr($e->getMessage(), 0, 15) == 'No region found') {
                    
129                $this->assertContains('within the locale', $e->getMessage());
                    
                
util.php https://github.com/fabiobatalha/Regional-2.git | PHP | 220 lines
                    
1<?php
                    
2/*
                    
21 *
                    
22 * Utility functions for the File Manager Connector for PHP.
                    
23 */
                    
53        }
                    
54        $string = substr($string, strlen($matches[0]));
                    
55    }
                    
61{
                    
62    if ( defined( 'PHP_OS' ) )
                    
63    {
                    
63    {
                    
64        $os = PHP_OS ;
                    
65    }
                    
67    {
                    
68        $os = php_uname() ;
                    
69    }
                    
                
view.html.php https://github.com/sengann/iks-school.com.git | PHP | 152 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: view.html.php 19331 2010-11-02 17:32:30Z chdemko $
                    
4 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
                    
78		// Load the category helper.
                    
79		require_once JPATH_COMPONENT.'/helpers/categories.php';
                    
80
                    
100		// Prepare the toolbar.
                    
101		JToolBarHelper::title($title, substr($component,4).($section?"-$section":'').'-category-'.($isNew?'add':'edit').'.png');
                    
102
                    
134		if (!$lang->hasKey($ref_key = strtoupper($component.($section?"_$section":'')).'_CATEGORY_'.($isNew?'ADD':'EDIT').'_HELP_KEY')) {
                    
135			$ref_key = 'JHELP_COMPONENTS_'.strtoupper(substr($component,4).($section?"_$section":'')).'_CATEGORY_'.($isNew?'ADD':'EDIT');
                    
136		}
                    
                
Editor.php https://github.com/FranckErnewein/citron.git | PHP | 187 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Editor.php 20116 2010-01-07 14:18:34Z matthew $
                    
21 */
                    
23/** Zend_Dojo_View_Helper_Dijit */
                    
24// require_once 'Zend/Dojo/View/Helper/Dijit.php';
                    
25
                    
26/** Zend_Json */
                    
27// require_once 'Zend/Json.php';
                    
28
                    
157    {
                    
158        if ('[]' == substr($name, -2)) {
                    
159            $name = substr($name, 0, strlen($name) - 2);
                    
                
BaseCiniveles.php https://github.com/cidesa/siga-universitario.git | PHP | 505 lines
                    
1<?php
                    
2
                    
204    {
                    
205      $prefijo = substr($m,0,3);
                    
206    $metodo = strtolower(substr($m,3));
                    
326	
                    
327	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
                    
328	{
                    
363	
                    
364	public function toArray($keyType = BasePeer::TYPE_PHPNAME)
                    
365	{
                    
379	
                    
380	public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
                    
381	{
                    
413	
                    
414	public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
                    
415	{
                    
                
basic.php https://github.com/ciudadanointeligente/legacy-legislativo.git | PHP | 247 lines
                    
1<?php
                    
2require('simple_html_dom.php');
                    
2require('simple_html_dom.php');
                    
3require("class/cnx.php");
                    
4require("class/controlador.php");
                    
31        {
                    
32            $leytext= array_pop(array_reverse(explode("'",substr($e->onclick,17))));
                    
33            $data=array_pop(array_reverse(explode("&",substr($e->onclick,49+strlen(array_pop(explode("?",array_pop(array_reverse(explode("=",$e->onclick))))))))));
                    
47        if($c<8)
                    
48            $dato=substr($value, $v[$c], $cal);
                    
49        else
                    
49        else
                    
50            $dato=substr($value, $v[$c]);
                    
51        $res=explode(":",$dato);
                    
66            {
                    
67                if($arrayMeses[$j]==substr($fechaArray[3], 0, -1))
                    
68                {
                    
                
Default.php https://github.com/leochaves/magento-pt_br.git | PHP | 206 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) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
181    {
                    
182        return substr($this->getFieldIdPrefix(), 0, -1);
                    
183    }
                    
                
Math.php https://github.com/sitengine/sitengine.git | PHP | 154 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Math.php 8584 2008-03-06 18:36:46Z thomas $
                    
20 */
                    
24 * Utility class for proxying math function to bcmath functions, if present,
                    
25 * otherwise to PHP builtin math operators, with limited detection of overflow conditions.
                    
26 * Sampling of PHP environments and platforms suggests that at least 80% to 90% support bcmath.
                    
56     * Surprisingly, the results of this implementation of round()
                    
57     * prove better than the native PHP round(). For example, try:
                    
58     *   round(639.795, 2);
                    
96            // zero fill digits to the left of the decimal place
                    
97            $op1 = substr($op1, 0, $decPos + $precision) . str_pad('', abs($precision), '0');
                    
98        }
                    
152    || !extension_loaded('bcmath')) {
                    
153    require_once 'Zend/Locale/Math/PhpMath.php';
                    
154}
                    
                
File.php https://github.com/craig1709/j-s-bar.git | PHP | 245 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
4 *
                    
5 * $Id: File.php 3160 2008-07-20 16:03:48Z Shadowhand $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
125				// Get the id from the filename
                    
126				$array[] = substr(current(explode('~', $file)), $offset);
                    
127			}
                    
159				// Find the hash of the data
                    
160				$hash = substr($data, 0, 40);
                    
161
                    
162				// Remove the hash from the data
                    
163				$data = substr($data, 40);
                    
164
                    
                
mo.php https://gitlab.com/campus-academy/krowkaramel | PHP | 349 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * @version $Id: mo.php 1157 2015-11-20 04:30:11Z dd32 $
                    
6 * @package pomo
                    
9
                    
10require_once __DIR__ . '/translations.php';
                    
11require_once __DIR__ . '/streams.php';
                    
69		public function export() {
                    
70			$tmp_fh = fopen( 'php://temp', 'r+' );
                    
71			if ( ! $tmp_fh ) {
                    
198
                    
199			// bug in PHP 5.0.2, see https://savannah.nongnu.org/bugs/?func=detailitem&item_id=10565
                    
200			$magic_little    = (int) - 1794895138;
                    
289
                    
290				$original    = $reader->substr( $strings, $o['pos'], $o['length'] );
                    
291				$translation = $reader->substr( $strings, $t['pos'], $t['length'] );
                    
                
Resource.php https://github.com/almaghi/FileZ.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
config.php https://github.com/olberger/fusionforge.git | PHP | 396 lines
                    
1<?php
                    
2// rcs_id('$Id: config.php 7797 2010-12-21 13:23:45Z vargenau $');
                    
3/*
                    
16define ('_DEBUG_PARSER',    4); // verbose parsing steps
                    
17define ('_DEBUG_TRACE',     8); // test php memory usage, prints php debug backtraces
                    
18define ('_DEBUG_INFO',     16);
                    
26function isCGI() {
                    
27    return (substr(php_sapi_name(),0,3) == 'cgi' and
                    
28            isset($GLOBALS['HTTP_ENV_VARS']['GATEWAY_INTERFACE']) and
                    
59    if (strstr($agent, "Mozilla/4.0 (compatible; MSIE"))
                    
60        return (float)substr($agent, 30);
                    
61    elseif (strstr($agent, "Mozilla/5.0 (compatible; Konqueror/"))
                    
242        // do reinit to purge PHP's static cache [43ms]
                    
243        if ( ($lcfile = FindLocalizedFile("LC_MESSAGES/phpwiki.php", 'missing_ok', 'reinit')) ) {
                    
244            include($lcfile);
                    
                
lexer.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
                    
329            if (strncmp($mode, "_", 1) == 0) {
                    
330                $mode = substr($mode, 1);
                    
331                $this->_mode->enter($mode);
                    
385                $count = strpos($raw, $match);
                    
386                $unparsed = substr($raw, 0, $count);
                    
387                $raw = substr($raw, $count + strlen($match));
                    
                
AtualizacaoExternaPlsController.php https://gitlab.com/digaotinfo/agendaLegislativa | PHP | 168 lines
                    
1<?php
                    
2App::import('Vendor', 'receiveMail/receiveMail');
                    
139    //         if( $acheiTipo > 0 ){
                    
140    //             $tratarStr = substr($corpo, $acheiTipo);
                    
141    //             $explodeType = explode('/', $tratarStr);
                    
                
string.php https://github.com/geekforbrains/caffeine.git | PHP | 305 lines
                    
1<?php
                    
2
                    
166    {
                    
167        if(substr($string, 0, strlen($start)) == $start)
                    
168            return true;
                    
181    {
                    
182        if(substr($string, -strlen($end)) == $end)
                    
183            return true;
                    
270                {
                    
271                    $shortened = substr($string, 0, $i);
                    
272                    return substr($string, 0, $i) . $append;
                    
                
ExceptionCaster.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 248 lines
                    
1<?php
                    
2
                    
144            if (preg_match('/\((\d+)\)(?:\([\da-f]{32}\))? : (?:eval\(\)\'d code|runtime-created function)$/', $f['file'], $match)) {
                    
145                $f['file'] = substr($f['file'], 0, -strlen($match[0]));
                    
146                $f['line'] = (int) $match[1];
                    
241            foreach ($src as $i => $line) {
                    
242                $src[$i] = isset($line[$ltrim]) && "\r" !== $line[$ltrim] ? substr($line, $ltrim) : ltrim($line, " \t");
                    
243            }
                    
                
info.php https://github.com/duofei/dawuweiba.git | PHP | 121 lines
                    
17                <h3 class="ma-t5px f16px ma-b5px"><?php echo $tuaninfo->name?>网</h3>
                    
18                <p class="ma-t10px f16px"><a href="<?php echo $tuaninfo->url?>" target="_blank"><?php echo $tuaninfo->url?></a></p>
                    
19            </div>
                    
26                <p class="f14px border-bottom-red lh24px cred">团购网站信息</p>
                    
27                <p class="lh24px pa-l10px"> 上线时间:<?php echo substr($tuaninfo->online_time, 0, 10);?></p>
                    
28                <p class="lh24px pa-l10px"> 购买类型:<?php echo $tuaninfo->buyTypeText?></p>
                    
54                     <p class="lh20px">Email:<?php echo $tuaninfo->email?></p>
                    
55                     <p class="lh20px">电话:<?php echo $tuaninfo->mobile?> </p>
                    
56                     <p class="lh20px">地址:<?php echo $tuaninfo->adress?>  </p>
                    
59                <div class="fl w-50">
                    
60                    <p class="lh20px">QQ:<?php echo $tuaninfo->QQ?></p>
                    
61                    <p class="lh20px">网站创办者:<?php echo $tuaninfo->create?></p>
                    
81                <div class="lh24px  border-bottom-dot">
                    
82                	<div class="today-arrow fl pa-l20px "><span class="cred f14px"><?php echo $val->user->username?></span><span class="ma-l20px cgray"> 发表于<?php echo $val->createTimeText?></span></div>
                    
83                	<div class="fr pa-r10px f14px color-c60 "><?php echo $pages->itemCount-$key-$pages->pageSize*$pagenum;?></div><div class="clear"></div>
                    
                
File.php https://github.com/Juuro/Dreamapp-Website.git | PHP | 245 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
4 *
                    
5 * $Id: File.php 19191 2008-12-15 05:35:20Z bharat $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
125				// Get the id from the filename
                    
126				$array[] = substr(current(explode('~', $file)), $offset);
                    
127			}
                    
159				// Find the hash of the data
                    
160				$hash = substr($data, 0, 40);
                    
161
                    
162				// Remove the hash from the data
                    
163				$data = substr($data, 40);
                    
164
                    
                
mssql_driver.php https://gitlab.com/digitalpoetry/exceptionally-timed | PHP | 517 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
451			// We have to strip the ORDER BY clause
                    
452			$sql = trim(substr($sql, 0, strrpos($sql, $orderby)));
                    
453
                    
                
contact.php https://gitlab.com/h94373035/web | PHP | 301 lines
                    
42	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
                    
43		  d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
                    
44		  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
                    
77        <li><a href="home.php">首頁</a></li>
                    
78        <?php
                    
79          		if($_SESSION["login_status"]=="login_ok")
                    
80           		{
                    
81           			 echo "<li><a href=\"register.php\">志工報名</a></li>";
                    
82           		}
                    
108        <li><a href="location.php">交通位置</a></li>
                    
109        <li><a href="add.php">留言板</a></li>
                    
110        <li><a href="contact.php">聯繫我們</a></li>
                    
110        <li><a href="contact.php">聯繫我們</a></li>
                    
111        <?php
                    
112          	if($_SESSION["login_status"]=="login_ok")
                    
                
korean.php https://github.com/severnaya99/Sg-2010.git | PHP | 168 lines
                    
1<?php
                    
2// $Id: korean.php,v 1.2 2005/04/18 01:22:29 phppp Exp $
                    
3//  ------------------------------------------------------------------------ //
                    
3//  ------------------------------------------------------------------------ //
                    
4//                XOOPS - PHP Content Management System                      //
                    
5//                    Copyright (c) 2000 XOOPS.org                           //
                    
34
                    
35require NEWS_FPDF_PATH.'/korean.php';
                    
36
                    
105$pdf_config['mail'] = 'mailto:'.$xoopsConfig['adminmail'];
                    
106$pdf_config['slogan']=xoops_substr($myts->htmlspecialchars( $xoopsConfig['sitename'] ),0,30);
                    
107$pdf_config['scale'] = '0.8';
                    
                
Auth.php https://github.com/plusjade/pluspanda-php.git | PHP | 241 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
8 * @copyright  (c) 2007 Kohana Team
                    
9 * @license    http://kohanaphp.com/license.html
                    
10 */
                    
176			// Create a salt seed, same length as the number of offsets in the pattern
                    
177			$salt = substr($this->hash(uniqid(NULL, TRUE)), 0, count($this->config['salt_pattern']));
                    
178		}
                    
194			// Split a new part of the hash off
                    
195			$part = substr($hash, 0, $offset - $last_offset);
                    
196
                    
197			// Cut the current part out of the hash
                    
198			$hash = substr($hash, $offset - $last_offset);
                    
199
                    
                
TableEntity.php https://bitbucket.org/kdms/sh-magento.git | PHP | 328 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: TableEntity.php 23167 2010-10-19 17:53:31Z mabe $
                    
21 */
                    
25 */
                    
26#require_once 'Zend/Service/WindowsAzure/Exception.php';
                    
27
                    
188                );
                    
189            } else if ($accessor->EntityType == 'ReflectionMethod' && substr(strtolower($accessor->EntityAccessor), 0, 3) == 'get') {
                    
190                $method = $accessor->EntityAccessor;
                    
239                    $this->$property = $values[$accessor->AzurePropertyName];
                    
240                } else if ($accessor->EntityType == 'ReflectionMethod' && substr(strtolower($accessor->EntityAccessor), 0, 3) == 'set') {
                    
241                    $method = $accessor->EntityAccessor;
                    
310            if (strpos($commentLine, '@azure') !== false) {
                    
311                $azureComment = trim(substr($commentLine, strpos($commentLine, '@azure') + 6));
                    
312                while (strpos($azureComment, '  ') !== false) {
                    
                
FsExplorer.class.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 297 lines
                    
1<?php
                    
2/**
                    
21
                    
22class_exists('org_tubepress_impl_classloader_ClassLoader') || require dirname(__FILE__) . '/../classloader/ClassLoader.class.php';
                    
23org_tubepress_impl_classloader_ClassLoader::loadClasses(array(
                    
294    {
                    
295    	return substr('                         ', 0, 3 * $level);
                    
296    }
                    
                
Label.php https://github.com/arturolinares/asandbox.git | PHP | 332 lines
                    
1<?php
                    
2/**
                    
22/** Zend_Form_Decorator_Abstract */
                    
23require_once 'Zend/Form/Decorator/Abstract.php';
                    
24
                    
28 * Accepts the options:
                    
29 * - separator: separator to use between label and content (defaults to PHP_EOL)
                    
30 * - placement: whether to append or prepend label to content (defaults to prepend)
                    
43 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
44 * @version    $Id: Label.php 22129 2010-05-06 11:20:39Z alab $
                    
45 */
                    
196    {
                    
197        $tail = substr($method, -6);
                    
198        $head = substr($method, 0, 3);
                    
201        ) {
                    
202            $position = substr($method, -6);
                    
203            $type     = strtolower(substr($method, 3, 3));
                    
                
Adapter.php https://github.com/btweedy/foresmo.git | PHP | 224 lines
                    
1<?php
                    
2/**
                    
58        // remove "Test_" prefix
                    
59        $this->_class = substr(get_class($this), 5);
                    
60        
                    
                
postgresql.php https://gitlab.com/ricardosanchez/prueba | PHP | 641 lines
                    
1<?php
                    
2/**
                    
612	{
                    
613		if (substr($interval, 0, 1) != '-')
                    
614		{
                    
                
frmfolders.html https://github.com/samlown/BComposer.git | HTML | 192 lines
                    
5 * Licensed under the terms of the GNU Lesser General Public License:
                    
6 * 		http://www.opensource.org/licenses/lgpl-license.php
                    
7 * 
                    
135	if ( folderPath != '/' )
                    
136		sParentFolderPath = folderPath.substring( 0, folderPath.lastIndexOf( '/', folderPath.length - 2 ) + 1 ) ;
                    
137
                    
                
Editor.php https://github.com/lazenge/zf2.git | PHP | 601 lines
                    
1<?php
                    
2/**
                    
454        }
                    
455        if ('em' != substr($minHeight, -2)) {
                    
456            $minHeight .= 'em';
                    
                
mysql.php https://gitlab.com/nacridan/Nacridan | PHP | 372 lines
                    
1<?php
                    
2
                    
10if (!function_exists('mysql_connect'))
                    
11	exit('This PHP environment doesn\'t have MySQL support built in. MySQL support is required if you want to use a MySQL database to run this forum. Consult the PHP documentation for further assistance.');
                    
12
                    
288		// We remove the last two characters (a newline and a comma) and add on the ending
                    
289		$query = substr($query, 0, strlen($query) - 2)."\n".') ENGINE = '.(isset($schema['ENGINE']) ? $schema['ENGINE'] : 'MyISAM').' CHARACTER SET utf8';
                    
290
                    
                
Chunk.php https://gitlab.com/matthww/Elywing | PHP | 463 lines
                    
1<?php
                    
2
                    
235	public function getBlockIdColumn($x, $z){
                    
236		return substr($this->blocks, ($x << 11) + ($z << 7), 128);
                    
237	}
                    
239	public function getBlockDataColumn($x, $z){
                    
240		return substr($this->data, ($x << 10) + ($z << 6), 64);
                    
241	}
                    
243	public function getBlockSkyLightColumn($x, $z){
                    
244		return substr($this->skyLight, ($x << 10) + ($z << 6), 64);
                    
245	}
                    
247	public function getBlockLightColumn($x, $z){
                    
248		return substr($this->blockLight, ($x << 10) + ($z << 6), 64);
                    
249	}
                    
324			$chunk->provider = $provider;
                    
325			$chunk->x = Binary::readInt(substr($data, $offset, 4));
                    
326			$offset += 4;
                    
                
update-data.php https://github.com/jackbravo/symfony-sandbox.git | PHP | 324 lines
                    
1<?php
                    
2
                    
68    foreach ($iterator as $file) {
                    
69        if (!$file->isDot() && substr($file->getFilename(), -strlen($extension)) === $extension) {
                    
70            $files[] = substr($file->getFilename(), 0, -strlen($extension));
                    
98    bailout(<<<MESSAGE
                    
99Usage: php update-data.php [icu-data-directory]
                    
100
                    
                
ARC2_CBJSONParser.php https://gitlab.com/klausmig/CloudSemanticWeb | PHP | 267 lines
                    
1<?php
                    
2/**
                    
83    $s = str_replace('#self', '/', $s);
                    
84    if (preg_match('/(office|ship|investment|milestone|fund|embed|link)s$/', $k)) $k = substr($k, 0, -1);
                    
85    return $s . $k . '-' . ($pos + 1) . '#self';
                    
                
clientes.php https://gitlab.com/henriquebotega/protesto | PHP | 235 lines
                    
2
                    
3if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/protesto/php/ip.php")) {
                    
4    include_once $_SERVER['DOCUMENT_ROOT'] . "/protesto/php/ip.php";
                    
4    include_once $_SERVER['DOCUMENT_ROOT'] . "/protesto/php/ip.php";
                    
5} else if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/uploads/protesto/php/ip.php")) {
                    
6    include_once $_SERVER['DOCUMENT_ROOT'] . "/uploads/protesto/php/ip.php";
                    
6    include_once $_SERVER['DOCUMENT_ROOT'] . "/uploads/protesto/php/ip.php";
                    
7} else if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/php/protesto/php/ip.php")) {
                    
8    include_once $_SERVER['DOCUMENT_ROOT'] . "/php/protesto/php/ip.php";
                    
12
                    
13include_once URL_PHP_CRUD . "cConfig.php";
                    
14include_once URL_PHP_CRUD . "cContratos.php";
                    
14include_once URL_PHP_CRUD . "cContratos.php";
                    
15include_once URL_PHP_CRUD . "cClientes.php";
                    
16include_once URL_PHP_CRUD . "cClientesPF.php";
                    
                
imageupload.php https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters | PHP | 287 lines
                    
1<?php
                    
2
                    
68
                    
69    include_once AIU_BASE_PATH . 'includes/fileuploader/fileuploader.class.php';
                    
70
                    
82        function includeFile($name, $type = 'config', $defaultName = 'default', $fileType = '.inc.php') {
                    
83            $folder = (substr($type, -1) != 'y') ? $type . 's/' : substr($folder, 0, -1) . 'ies/';
                    
84            $allowedConfigs = glob(AIU_BASE_PATH . $folder . '*.' . $type . $fileType);
                    
93                } else {
                    
94                    $modx->messageQuit('Default AjaxImageUpload ' . $type . ' file "' . AIU_BASE_PATH . $folder . $defaultName . '.' . $type . '.inc.php" not found. Did you upload all snippet files?');
                    
95                }
                    
106
                    
107    include_once AIU_BASE_PATH . 'includes/PhpThumbFactory/ThumbLib.inc.php';
                    
108    // delete uploaded images
                    
243                    }
                    
244                    $thumb = PhpThumbFactory::create($path . $uniqueName);
                    
245                    $thumb->adaptiveResize($thumbX, $thumbY);
                    
                
CreditCard.php https://github.com/michaelmcandrew/vaw.git | PHP | 297 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
5 *
                    
6 * PHP Versions 4 and 5
                    
7 *
                    
10 * the world-wide-web at
                    
11 * http://www.opensource.org/licenses/bsd-license.php
                    
12 * If you did not receive a copy of the new BSDlicense and are unable
                    
13 * to obtain it through the world-wide-web, please send a note to
                    
14 * pajoye@php.net so we can mail you a copy immediately.
                    
15 *
                    
20 * @copyright 1997-2005  Stefan Neufeind
                    
21 * @license   http://www.opensource.org/licenses/bsd-license.php  New BSD License
                    
22 * @version   CVS: $Id: CreditCard.php,v 1.13 2007/09/16 16:42:34 kguest Exp $
                    
22 * @version   CVS: $Id: CreditCard.php,v 1.13 2007/09/16 16:42:34 kguest Exp $
                    
23 * @link      http://pear.php.net/package/Validate_Finance_CreditCard
                    
24 */
                    
                
lib.php https://bitbucket.org/ngmares/moodle.git | PHP | 327 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
24 */
                    
25require_once($CFG->dirroot . '/repository/lib.php');
                    
26require_once($CFG->libdir.'/flickrlib.php');
                    
58
                    
59        $this->flickr = new phpFlickr($this->api_key, $this->secret, $this->token);
                    
60
                    
157    /**
                    
158     * Converts result received from phpFlickr::photo_search to Filepicker/repository format
                    
159     *
                    
183                // append extensions to the files
                    
184                if (substr($p['title'], strlen($p['title'])-strlen($format)) != $format) {
                    
185                    $p['title'] .= $format;
                    
295            $instance = array_shift($instances);
                    
296            $callbackurl = $CFG->wwwroot.'/repository/repository_callback.php?repo_id='.$instance->id;
                    
297            $mform->addElement('static', 'callbackurl', '', get_string('callbackurltext', 'repository_flickr', $callbackurl));
                    
                
wp-background-process.php https://gitlab.com/campus-academy/krowkaramel | PHP | 503 lines
                    
1<?php // @codingStandardsIgnoreLine.
                    
2/**
                    
149
                    
150		return substr( $prepend . $unique, 0, $length );
                    
151	}
                    
                
CacheCollector.php https://gitlab.com/geeta7/drupal | PHP | 348 lines
                    
1<?php
                    
2
                    
288    }
                    
289    return substr($cid, 0, 255 - strlen($hash)) . $hash;
                    
290  }
                    
                
Message.php https://github.com/tmccormi/openemr.git | PHP | 311 lines
                    
1<?php
                    
2/**
                    
210        while (($p = strpos($body, '--' . $boundary . "\n", $start)) !== false) {
                    
211            $res[] = substr($body, $start, $p - $start);
                    
212            $start = $p + 3 + strlen($boundary);
                    
221        // the remaining part also needs to be parsed:
                    
222        $res[] = substr($body, $start, $p - $start);
                    
223        return $res;
                    
                
Resource.php https://github.com/rogerwu99/punch_bantana.git | PHP | 436 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 14026 2009-02-09 19:03:22Z matthew $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
112    {
                    
113        if ('get' == substr($method, 0, 3)) {
                    
114            $type  = strtolower(substr($method, 3));
                    
                
Label.php https://github.com/cinnamong/mag3nt0.git | PHP | 332 lines
                    
1<?php
                    
2/**
                    
22/** Zend_Form_Decorator_Abstract */
                    
23#require_once 'Zend/Form/Decorator/Abstract.php';
                    
24
                    
28 * Accepts the options:
                    
29 * - separator: separator to use between label and content (defaults to PHP_EOL)
                    
30 * - placement: whether to append or prepend label to content (defaults to prepend)
                    
43 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
44 * @version    $Id: Label.php 22129 2010-05-06 11:20:39Z alab $
                    
45 */
                    
196    {
                    
197        $tail = substr($method, -6);
                    
198        $head = substr($method, 0, 3);
                    
201        ) {
                    
202            $position = substr($method, -6);
                    
203            $type     = strtolower(substr($method, 3, 3));
                    
                
Console.php https://github.com/bate/zf2.git | PHP | 174 lines
                    
1<?php
                    
2/**
                    
49            // Use the supplied adapter class
                    
50            if (substr($forceAdapter, 0, 1) == '\\') {
                    
51                $className = $forceAdapter;
                    
78        if ($forceCharset !== null) {
                    
79            if (substr($forceCharset, 0, 1) == '\\') {
                    
80                $className = $forceCharset;
                    
103     *
                    
104     * @see http://stackoverflow.com/questions/738823/possible-values-for-php-os
                    
105     * @return bool
                    
109        return
                    
110            ( defined('PHP_OS') && ( substr_compare(PHP_OS,'win',0,3,true) === 0) ) ||
                    
111            (getenv('OS') != false && substr_compare(getenv('OS'),'windows',0,7,true))
                    
131    {
                    
132        return PHP_SAPI == 'cli';
                    
133    }
                    
                
custom-header.php https://gitlab.com/morganestes/wordpress-develop | PHP | 378 lines
                    
1<?php
                    
2/**
                    
59	if ( strlen( $color ) == 3 ) {
                    
60		$r = hexdec( substr( $color, 0, 1 ) . substr( $color, 0, 1 ) );
                    
61		$g = hexdec( substr( $color, 1, 1 ) . substr( $color, 1, 1 ) );
                    
61		$g = hexdec( substr( $color, 1, 1 ) . substr( $color, 1, 1 ) );
                    
62		$b = hexdec( substr( $color, 2, 1 ) . substr( $color, 2, 1 ) );
                    
63	} elseif ( strlen( $color ) == 6 ) {
                    
63	} elseif ( strlen( $color ) == 6 ) {
                    
64		$r = hexdec( substr( $color, 0, 2 ) );
                    
65		$g = hexdec( substr( $color, 2, 2 ) );
                    
65		$g = hexdec( substr( $color, 2, 2 ) );
                    
66		$b = hexdec( substr( $color, 4, 2 ) );
                    
67	} else {
                    
96		<style type="text/css" id="twentyfifteen-header-css">
                    
97		<?php
                    
98		// Short header for when there is no Custom Header and Header Text is hidden.
                    
                
sql.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 287 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
3/**
                    
4 * SQL import plugin for phpMyAdmin
                    
5 *
                    
5 *
                    
6 * @version $Id: sql.php 11387 2008-07-14 15:28:58Z lem9 $
                    
7 */
                    
7 */
                    
8if (! defined('PHPMYADMIN')) {
                    
9    exit;
                    
197            if ($start_pos != $i) {
                    
198                $sql .= substr($buffer, $start_pos, $i - $start_pos);
                    
199            }
                    
214                if ($buffer[$j + 2] == '!') {
                    
215                    $comment = substr($buffer, $j + 3, $i - $j - 3);
                    
216                    if (preg_match('/^[0-9]{5}/', $comment, $version)) {
                    
                
 

Source

Language