PageRenderTime 1057ms queryTime 171ms sortTime 291ms getByIdsTime 136ms findMatchingLines 145ms

100+ results results for 'php trim' (1057 ms)

Not the results you expected?
class.php https://gitlab.com/alexprowars/bitrix | PHP | 524 lines
                    
1<?php
                    
2
                    
66		{
                    
67			$params["PATH_TO_PAYMENT"] = trim($params["PATH_TO_PAYMENT"]);
                    
68		}
                    
412			$currencyList = CCurrencyLang::GetFormatDescription($account["CURRENCY"]);
                    
413			$account['FORMATED_CURRENCY'] = trim(str_replace("#", "", $currencyList['FORMAT_STRING']));
                    
414			$this->arResult['INNER_PAYMENT_INFO'] = $account;
                    
                
MaildirTest.php https://github.com/mrbanzai/zf2.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class MaildirTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
220        $content = $mail->getHeader(3, 1)->getContent();
                    
221        $this->assertEquals('Fair river! in thy bright, clear flow', trim($content));
                    
222    }
                    
237        list($content, ) = explode("\n", $content, 2);
                    
238        $this->assertEquals('Fair river! in thy bright, clear flow', trim($content));
                    
239    }
                    
                
Cost_Utils.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 481 lines
                    
1<?php
                    
2/**
                    
87	public function is_valid_cost( $cost, $allow_negative = true ) {
                    
88		return preg_match( $this->get_cost_regex(), trim( $cost ) );
                    
89	}
                    
                
Resource.php https://github.com/orchestra-io/sample-openx.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');
                    
115            if (!$this->hasResourceType($type)) {
                    
116                require_once 'Zend/Loader/Exception.php';
                    
117                throw new Zend_Loader_Exception("Invalid resource type $type; cannot load resource");
                    
                
simpletest.php https://github.com/orchestra-io/sample-openx.git | PHP | 433 lines
                    
1<?php
                    
2    /**
                    
5     *	@subpackage	UnitTester
                    
6     *	@version	$Id: simpletest.php 7321 2007-06-05 09:08:01Z andrew.hill@openads.org $
                    
7     */
                    
12    if (version_compare(phpversion(), '5') >= 0) {
                    
13        require_once(dirname(__FILE__) . '/reflection_php5.php');
                    
14    } else {
                    
14    } else {
                    
15        require_once(dirname(__FILE__) . '/reflection_php4.php');
                    
16    }
                    
33            $content = file(dirname(__FILE__) . '/VERSION');
                    
34            return trim($content[0]);
                    
35        }
                    
39         *    because the class is an abstract case that should
                    
40         *    not be run. Once PHP4 is dropped this will disappear
                    
41         *    as a public method and "abstract" will rule.
                    
                
Twig.php https://gitlab.com/3dplex/3d-plex-main-site | PHP | 420 lines
                    
1<?php
                    
2<<<<<<< HEAD
                    
107=======
                    
108            $path_append = rtrim($this->grav['pages']->base(), '/');
                    
109            if ($language->getDefault() != $active_language || $config->get('system.languages.include_default_lang') === true) {
                    
185                    'uri'               => $this->grav['uri'],
                    
186                    'base_dir'          => rtrim(ROOT_DIR, '/'),
                    
187<<<<<<< HEAD
                    
                
postgresql.php https://gitlab.com/ricardosanchez/prueba | PHP | 641 lines
                    
1<?php
                    
2/**
                    
618		{
                    
619			return "timestamp '" . $date . "' - interval '" . ltrim($interval, '-') . " " . $datePart . "'";
                    
620		}
                    
                
date_helper.php https://gitlab.com/BeyondeLabs/tweet-daily | 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	}
                    
441
                    
442		$datestr = trim($datestr);
                    
443		$datestr = preg_replace("/\040+/", ' ', $datestr);
                    
609
                    
610/* End of file date_helper.php */
                    
611/* Location: ./system/helpers/date_helper.php */
                    
                
Route.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 413 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Route.php 23485 2010-12-10 04:03:18Z mjh_ca $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Controller/Router/Route/Interface.php';
                    
26
                    
29 */
                    
30require_once 'Zend/Controller/Router/Route/Module.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Controller/Dispatcher/Interface.php';
                    
36
                    
39 */
                    
40require_once 'Zend/Controller/Request/Abstract.php';
                    
41
                    
                
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
                    
81    if (!function_exists('includeFile')) {
                    
82        function includeFile($name, $type = 'config', $defaultName = 'default', $fileType = '.inc.php') {
                    
83            $folder = (substr($type, -1) != 'y') ? $type . 's/' : substr($folder, 0, -1) . 'ies/';
                    
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
                    
110        $result = array();
                    
111        $formUid = (isset($_GET['uid'])) ? htmlentities(trim($_GET['uid']), ENT_NOQUOTES) : $formUid;
                    
112        if (strtolower($_GET['delete']) == 'all') {
                    
                
Curl.php https://gitlab.com/AlexandrSy/magento.xxx | PHP | 453 lines
                    
1<?php
                    
2/**
                    
156     *
                    
157     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
158     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
175     *
                    
176     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
177     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
294        $optionName = substr($optionName, strpos($optionName, "/") + 1);
                    
295        $optionName = str_replace(['-', ' & '], "_", trim($optionName));
                    
296        $end = strpos($optionName, ' ');
                    
308     *
                    
309     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
310     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
345     *
                    
346     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
347     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
                
Config.php https://github.com/blanketCMS/zf2.git | PHP | 536 lines
                    
1<?php
                    
2/**
                    
211    /**
                    
212     * Support isset() overloading on PHP 5.1
                    
213     *
                    
222    /**
                    
223     * Support unset() overloading on PHP 5.1
                    
224     *
                    
532    {
                    
533        $this->_errorMessages[] = trim($errstr);
                    
534    }
                    
                
Route.php https://github.com/kromeyer/MMK-Newsroom.git | PHP | 413 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Route.php 23486 2010-12-10 04:05:30Z mjh_ca $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Controller/Router/Route/Interface.php';
                    
26
                    
29 */
                    
30require_once 'Zend/Controller/Router/Route/Module.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Controller/Dispatcher/Interface.php';
                    
36
                    
39 */
                    
40require_once 'Zend/Controller/Request/Abstract.php';
                    
41
                    
                
zbzippclzip.php https://bitbucket.org/anneivycat/california-tour.git | PHP | 406 lines
                    
1<?php
                    
2/**
                    
118			
                    
119				$pclzip_file = ABSPATH . 'wp-admin/includes/class-pclzip.php';
                    
120				pb_backupbuddy::status( 'details', 'PCLZip class not found. Attempting to load from `' . $pclzip_file . '`.' );
                    
198			// The basedir must have a trailing normalized directory separator
                    
199			$basedir = ( rtrim( trim( $dir ), self::DIRECTORY_SEPARATORS ) ) . self::NORM_DIRECTORY_SEPARATOR;
                    
200		
                    
212				
                    
213				$pclzip_file = ABSPATH . 'wp-admin/includes/class-pclzip.php';
                    
214				pb_backupbuddy::status( 'details', 'PCLZip class not found. Attempting to load from `' . $pclzip_file . '`.' );
                    
                
index.php https://github.com/chadisel/Janrain-Sample-Code.git | PHP | 467 lines
                    
13}
                    
14if (file_exists('../library/engage.lib.php')) {
                    
15	require_once('../library/engage.lib.php');
                    
15	require_once('../library/engage.lib.php');
                    
16} elseif (file_exists('engage.lib.php')) {
                    
17	require_once('engage.lib.php');
                    
334							<input id="app_domain_input" type="text" name="app_dom" value="<?php echo htmlentities($actions['auth_info']['app_dom']); ?>" />
                    
335							<input id="app_domain_submit" type="submit"	name="phpapi" value="submit" />
                    
336						</form>
                    
347						Click <a class="rpxnow" onclick="return false;"					
                    
348						href="<?php echo htmlentities($actions['auth_info']['app_dom']); ?>openid/v2/signin?token_url=<?php echo urlencode($token_url); ?>"> Sign In </a><br />
                    
349						This will fill in the token.<br />
                    
464</body>
                    
465</html><?php
                    
466ob_end_flush();
                    
                
Route.php https://github.com/Spavacz/NPG.git | PHP | 410 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Route.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Controller/Router/Route/Interface.php';
                    
26
                    
29 */
                    
30require_once 'Zend/Controller/Router/Route/Module.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Controller/Dispatcher/Interface.php';
                    
36
                    
39 */
                    
40require_once 'Zend/Controller/Request/Abstract.php';
                    
41
                    
                
Rss.php https://github.com/vtiger-jp/vtigercrm-5.1.x-ja.git | PHP | 464 lines
                    
1<?php
                    
2/*********************************************************************************
                    
16
                    
17require_once('data/CRMEntity.php');
                    
18require_once('include/database/PearDatabase.php');
                    
19// Require the xmlParser class
                    
20//require_once('include/feedParser/xmlParser.php');
                    
21
                    
22// Require the feedParser class
                    
23//require_once('include/feedParser/feedParser.php');
                    
24
                    
77				$stringConvert = function_exists(iconv) ? @iconv("UTF-8",$default_charset,$item[title]) : $item[title];
                    
78				$rss_title= ltrim(rtrim($stringConvert));
                    
79				
                    
177			}
                    
178			$shtml .= "<td class=\"rssTitle\"><a href=\"index.php?module=Rss&action=ListView&record=$allrssrow[rssid]
                    
179				\" class=\"rssTitle\">".$allrssrow[rsstitle]."</a></td>";
                    
                
projectActivity.php https://github.com/solusee/OrangeEarthstoneHRM.git | PHP | 418 lines
                    
1<?php
                    
2/**
                    
18 */
                    
19require_once ROOT_PATH . '/lib/confs/sysConf.php';
                    
20require_once ROOT_PATH . '/lib/models/eimadmin/Projects.php';
                    
20require_once ROOT_PATH . '/lib/models/eimadmin/Projects.php';
                    
21require_once ROOT_PATH . '/lib/models/eimadmin/ProjectActivity.php';
                    
22
                    
22
                    
23require_once($lan->getLangPath("full.php"));
                    
24
                    
282            <div class="messagebar">
                    
283                <span class="<?php echo $messageType; ?>"><?php echo (isset($$message)) ? $$message: ""; ?></span>
                    
284            </div>  
                    
335	       				<input type='checkbox' class='checkbox' name='chkLocID[]'
                    
336	       					<?php echo $disableEdit; ?> value='<?php echo $activity->getId();?>' onclick="setFormAction();"/>
                    
337	       			</td>
                    
                
Canvas.java https://github.com/neelance/swt4ruby.git | Java | 407 lines
                    
36 * @see <a href="http://www.eclipse.org/swt/snippets/#canvas">Canvas snippets</a>
                    
37 * @see <a href="http://www.eclipse.org/swt/examples.php">SWT Example: ControlExample</a>
                    
38 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
                    
194
                    
195void redrawWidget (int x, int y, int width, int height, boolean redrawAll, boolean all, boolean trim) {
                    
196	boolean isFocus = caret != null && caret.isFocusCaret ();
                    
197	if (isFocus) caret.killFocus ();
                    
198	super.redrawWidget (x, y, width, height, redrawAll, all, trim);
                    
199	if (isFocus) caret.setFocus ();
                    
                
arr.php https://gitlab.com/ken3/bluSky | PHP | 602 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
116			// Remove starting delimiters and spaces
                    
117			$path = ltrim($path, "{$delimiter} ");
                    
118
                    
119			// Remove ending delimiters, spaces, and wildcards
                    
120			$path = rtrim($path, "{$delimiter} *");
                    
121
                    
351	/**
                    
352	 * Recursive version of [array_map](http://php.net/array_map), applies one or more
                    
353	 * callbacks to all elements in an array, including sub-arrays.
                    
403	 * Merges one or more arrays recursively and preserves all keys.
                    
404	 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)!
                    
405	 *
                    
                
catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
                    
1<?php
                    
2/**
                    
343					$email = sha1($row['VALUE']);
                    
344					$email256 = hash('sha256', mb_strtolower(trim($row['VALUE'])));
                    
345				}
                    
                
ContributionPage.php https://github.com/michaelmcandrew/vaw.git | PHP | 354 lines
                    
1<?php
                    
2
                    
36
                    
37require_once 'CRM/Core/Form.php';
                    
38require_once 'CRM/Core/PseudoConstant.php';
                    
38require_once 'CRM/Core/PseudoConstant.php';
                    
39require_once 'CRM/Contribute/PseudoConstant.php';
                    
40
                    
115        // set up tabs
                    
116        require_once 'CRM/Contribute/Form/ContributionPage/TabHeader.php';
                    
117        CRM_Contribute_Form_ContributionPage_TabHeader::build( $this );
                    
146    {
                    
147        $this->applyFilter('__ALL__', 'trim');
                    
148
                    
224            //set defaults for pledgeBlock values.
                    
225            require_once 'CRM/Pledge/BAO/PledgeBlock.php';
                    
226            $pledgeBlockParams = array( 'entity_id'    => $this->_id,
                    
                
class-wp-terms-list-table.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 454 lines
                    
1<?php
                    
2/**
                    
77
                    
78		$search = !empty( $_REQUEST['s'] ) ? trim( wp_unslash( $_REQUEST['s'] ) ) : '';
                    
79
                    
86		if ( !empty( $_REQUEST['orderby'] ) )
                    
87			$args['orderby'] = trim( wp_unslash( $_REQUEST['orderby'] ) );
                    
88
                    
89		if ( !empty( $_REQUEST['order'] ) )
                    
90			$args['order'] = trim( wp_unslash( $_REQUEST['order'] ) );
                    
91
                    
298		if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term )
                    
299			$actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url( "edit-tags.php?action=delete&amp;taxonomy=$taxonomy&amp;tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>";
                    
300		if ( $tax->public )
                    
331
                    
332		/** This filter is documented in wp-admin/edit-tag-form.php */
                    
333		$out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug ) . '</div>';
                    
                
Resource.php https://github.com/rico/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);
                    
                
ActivitySearch.php https://github.com/nysenate/Bluebird-CRM.git | PHP | 431 lines
                    
1<?php
                    
2/*
                    
223        else {
                    
224          $sql .= ' ORDER BY ' . trim($sort->orderBy());
                    
225        }
                    
                
Route.php https://github.com/FbN/Zend-Framework-Namespaced-.git | PHP | 419 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Route.php 23421 2010-11-21 10:03:53Z wilmoore $
                    
20 */
                    
30 */
                    
31require_once 'Zend/Controller/Router/Route/Interface.php';
                    
32
                    
35 */
                    
36require_once 'Zend/Controller/Router/Route/Module.php';
                    
37
                    
40 */
                    
41require_once 'Zend/Controller/Dispatcher/Interface.php';
                    
42
                    
45 */
                    
46require_once 'Zend/Controller/Request/Abstract.php';
                    
47
                    
                
web.php https://github.com/XioNoX/Benevolus.git | PHP | 509 lines
                    
1<?php
                    
2
                    
3/**
                    
4	Web pack for the PHP Fat-Free Framework
                    
5
                    
37		$out=preg_replace('/([^\w]|-)+/','-',
                    
38			trim(strtr(str_replace('\'','',$text),
                    
39			self::$vars['DIACRITICS'])));
                    
39			self::$vars['DIACRITICS'])));
                    
40		return trim(strtolower($maxlen?substr($out,0,$maxlen):$out),'-');
                    
41	}
                    
205		if ($echo) {
                    
206			if (PHP_SAPI!='cli' && !headers_sent())
                    
207				header(self::HTTP_Content.': '.$mime[$ext[1]].'; '.
                    
295				self::HTTP_Agent.': Mozilla/5.0 '.
                    
296					'(compatible;'.PHP_OS.')'.self::EOL.
                    
297				($reqhdrs?
                    
                
NetClient.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 629 lines
                    
1<?php
                    
2
                    
187	 */
                    
188	public function capturePhpErrorWithException($iErrNo, $sErrStr, $sErrFile, $iErrLine)
                    
189	{
                    
223
                    
224		$sServerName = \trim($sServerName);
                    
225
                    
270
                    
271		\set_error_handler(array(&$this, 'capturePhpErrorWithException'));
                    
272
                    
                
CookieJar.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 441 lines
                    
29 */
                    
30require_once "Zend/Http/Cookie.php";
                    
31/**
                    
33 */
                    
34require_once "Zend/Http/Response.php";
                    
35
                    
185        if ($ret_as == self::COOKIE_STRING_CONCAT_STRICT) {
                    
186            $cookies = rtrim(trim($cookies), ';');
                    
187        }
                    
226        if ($ret_as == self::COOKIE_STRING_CONCAT_STRICT) {
                    
227            $ret = rtrim(trim($ret), ';');
                    
228        }
                    
266                case self::COOKIE_STRING_CONCAT_STRICT:
                    
267                    return rtrim(trim($cookie->__toString()), ';');
                    
268                    break;
                    
                
Resource.php https://github.com/ParveenArora/AddressHunter.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);
                    
                
cat_msproduct_get.php https://gitlab.com/ptisky/API_prestashop | PHP | 311 lines
                    
1<?php

                    
2/**

                    
140		}

                    
141		$filters=trim($filters,',');

                    
142		return $filters;

                    
                
Router.php https://bitbucket.org/mbaily/tremain.git | PHP | 460 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.2.4 or newer
                    
6 *
                    
70			{
                    
71				$this->set_directory(trim($this->uri->_filter_uri($_GET[$this->config->item('directory_trigger')])));
                    
72				$segments[] = $this->fetch_directory();
                    
76			{
                    
77				$this->set_class(trim($this->uri->_filter_uri($_GET[$this->config->item('controller_trigger')])));
                    
78				$segments[] = $this->fetch_class();
                    
82			{
                    
83				$this->set_method(trim($this->uri->_filter_uri($_GET[$this->config->item('function_trigger')])));
                    
84				$segments[] = $this->fetch_method();
                    
87
                    
88		// Load the routes.php file.
                    
89		@include(APPPATH.'config/routes.php');
                    
                
file_helper.php https://bitbucket.org/prasoon2211/schooldayz.git | PHP | 479 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 *
                    
122	{
                    
123		// Trim the trailing slash
                    
124		$path = rtrim($path, DIRECTORY_SEPARATOR);
                    
185				$_filedata = array();
                    
186				$source_dir = rtrim(realpath($source_dir), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR;
                    
187			}
                    
237				$_filedata = array();
                    
238				$source_dir = rtrim(realpath($source_dir), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR;
                    
239			}
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
                
index.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 336 lines
                    
1<?php
                    
2
                    
15
                    
16require_once('../../../config.php');
                    
17require_once($CFG->libdir.'/adminlib.php');
                    
96
                    
97<form method="post" action="index.php">
                    
98  <div>
                    
98  <div>
                    
99    <label class="accesshide" for="keyword_el"><?php print_string('spamkeyword', 'tool_spamcleaner') ?></label>
                    
100    <input type="text" name="keyword" id="keyword_el" value="<?php p($keyword) ?>" />
                    
100    <input type="text" name="keyword" id="keyword_el" value="<?php p($keyword) ?>" />
                    
101    <input type="hidden" name="sesskey" value="<?php echo sesskey();?>" />
                    
102    <input type="submit" value="<?php echo get_string('spamsearch', 'tool_spamcleaner')?>" />
                    
104</form>
                    
105<p><?php echo get_string('spameg', 'tool_spamcleaner');?></p>
                    
106
                    
                
Country.php https://gitlab.com/goolic/PrestaShop | PHP | 417 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
                    
22 * @copyright 2007-2015 PrestaShop SA
                    
23 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
                    
24 * International Registered Trademark & Property of PrestaShop SA
                    
404        if ($sql) {
                    
405            $sql = 'INSERT IGNORE INTO `'._DB_PREFIX_.'module_country` (`id_module`, `id_shop`, `id_country`) VALUES '.rtrim($sql, ',');
                    
406            return Db::getInstance()->execute($sql);
                    
                
helper.php https://bitbucket.org/gnomeontherun/square-one.git | PHP | 434 lines
                    
1<?php
                    
2/**
                    
173				{
                    
174					$tag = trim($tag);
                    
175
                    
183				{
                    
184					$attribute = trim($attribute);
                    
185
                    
330		// Get component path
                    
331		if ($app->isAdmin() && file_exists(JPATH_COMPONENT . '/admin.' . $file . '.php'))
                    
332		{
                    
332		{
                    
333			$path = JPATH_COMPONENT . '/admin.' . $file . '.php';
                    
334		}
                    
336		{
                    
337			$path = JPATH_COMPONENT . '/' . $file . '.php';
                    
338		}
                    
                
biblio_list.inc.php https://gitlab.com/mucill/majalengka | PHP | 294 lines
                    
1<?php
                    
2/**
                    
83      if ($_field != 'title' && $_title_buffer != '') {
                    
84        $_title_buffer = trim($_title_buffer);
                    
85        $_sql_criteria .= " biblio.biblio_id IN(SELECT DISTINCT biblio_id FROM biblio WHERE MATCH (title, series_title) AGAINST ('$_title_buffer' IN BOOLEAN MODE)) ";
                    
216    // remove boolean's logic symbol prefix and suffix
                    
217    $_sql_criteria = preg_replace('@^(AND|OR|NOT)\s*|\s+(AND|OR|NOT)$@i', '', trim($_sql_criteria));
                    
218    // below for debugging purpose only
                    
255    // checking custom frontpage fields file
                    
256    $custom_frontpage_record_file = SB.$sysconf['template']['dir'].'/'.$sysconf['template']['theme'].'/custom_frontpage_record.inc.php';
                    
257    if (file_exists($custom_frontpage_record_file)) {
                    
                
class-wc-shipping-legacy-flat-rate.php https://gitlab.com/hunt9310/ras | PHP | 379 lines
                    
1<?php
                    
2if ( ! defined( 'ABSPATH' ) ) {
                    
26		$this->method_title       = __( 'Flat Rate (Legacy)', 'woocommerce' );
                    
27		$this->method_description = sprintf( __( '<strong>This method is deprecated in 2.6.0 and will be removed in future versions - we recommend disabling it and instead setting up a new rate within your <a href="%s">Shipping Zones</a>.</strong>', 'woocommerce' ), admin_url( 'admin.php?page=wc-settings&tab=shipping' ) );
                    
28		$this->init();
                    
40		if ( 'no' === $this->settings[ 'enabled' ] ) {
                    
41			wp_redirect( admin_url( 'admin.php?page=wc-settings&tab=shipping&section=options' ) );
                    
42			exit;
                    
76	public function init_form_fields() {
                    
77		$this->form_fields = include( 'includes/settings-flat-rate.php' );
                    
78	}
                    
86	protected function evaluate_cost( $sum, $args = array() ) {
                    
87		include_once( WC()->plugin_path() . '/includes/libraries/class-wc-eval-math.php' );
                    
88
                    
117		// Trim invalid start/end characters
                    
118		$sum = rtrim( ltrim( $sum, "\t\n\r\0\x0B+*/" ), "\t\n\r\0\x0B+-*/" );
                    
119
                    
                
author.php https://gitlab.com/mucill/majalengka | PHP | 264 lines
                    
1<?php
                    
2/**
                    
38require SIMBIO.'simbio_GUI/table/simbio_table.inc.php';
                    
39require SIMBIO.'simbio_GUI/form_maker/simbio_form_table_AJAX.inc.php';
                    
40require SIMBIO.'simbio_GUI/paging/simbio_paging.inc.php';
                    
40require SIMBIO.'simbio_GUI/paging/simbio_paging.inc.php';
                    
41require SIMBIO.'simbio_DB/datagrid/simbio_dbgrid.inc.php';
                    
42require SIMBIO.'simbio_DB/simbio_dbop.inc.php';
                    
88                utility::jsAlert(__('New Author Data Successfully Saved'));
                    
89                echo '<script type="text/javascript">parent.jQuery(\'#mainContent\').simbioAJAX(\''.$_SERVER['PHP_SELF'].'\');</script>';
                    
90            } else { utility::jsAlert(__('Author Data FAILED to Save. Please Contact System Administrator')."\nDEBUG : ".$sql_op->error); }
                    
135	  <div class="btn-group">
                    
136      <a href="<?php echo MWB; ?>master_file/author.php" class="btn btn-default"><i class="glyphicon glyphicon-list-alt"></i>&nbsp;<?php echo __('Author List'); ?></a>
                    
137      <a href="<?php echo MWB; ?>master_file/author.php?action=detail" class="btn btn-default"><i class="glyphicon glyphicon-plus"></i>&nbsp;<?php echo __('Add New Author'); ?></a>
                    
138	  </div>
                    
139    <form name="search" action="<?php echo MWB; ?>master_file/author.php" id="search" method="get" style="display: inline;"><?php echo __('Search'); ?> :
                    
140    <input type="text" name="keywords" size="30" />
                    
                
Database.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 350 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
295    {
                    
296        $folderName = rtrim($folderName, '/');
                    
297        if (!strlen($folderName)) {
                    
331    {
                    
332        $directory = trim($directory, '/');
                    
333        $adapter = $this->_getReadAdapter();
                    
                
Database.php https://github.com/rgranadino/magento-mirror.git | PHP | 350 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 */
                    
295    {
                    
296        $folderName = rtrim($folderName, '/');
                    
297        if (!strlen($folderName)) {
                    
331    {
                    
332        $directory = trim($directory, '/');
                    
333        $adapter = $this->_getReadAdapter();
                    
                
jlparameter.php https://gitlab.com/julienv/joomleague | PHP | 552 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 */
                    
145
                    
146		if ($data = trim($data))
                    
147		{
                    
301
                    
302		return implode(PHP_EOL, $html);
                    
303	}
                    
470
                    
471		if ((isset($this->_elements[$signature]) && !($this->_elements[$signature] instanceof __PHP_Incomplete_Class)) && $new === false)
                    
472		{
                    
                
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);
                    
                
lib.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 339 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
24 */
                    
25require_once($CFG->dirroot . '/repository/lib.php');
                    
26
                    
86        if (!isset($this->service)) {
                    
87            require_once($CFG->libdir . '/google/lib.php');
                    
88            $this->client = get_google_client();
                    
101        if (!empty($options['apikey'])) {
                    
102            set_config('apikey', trim($options['apikey']), 'youtube');
                    
103        }
                    
115        if ($config === 'apikey') {
                    
116            return trim(get_config('youtube', 'apikey'));
                    
117        } else {
                    
117        } else {
                    
118            $options['apikey'] = trim(get_config('youtube', 'apikey'));
                    
119        }
                    
                
WishlistController.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 326 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
133            $result = $wishlist->addNewItem($product, $buyRequest);
                    
134            if (strlen(trim((string)$request->getParam('description')))) {
                    
135                $result->setDescription($request->getParam('description'))->save();
                    
                
Database.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 350 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
295    {
                    
296        $folderName = rtrim($folderName, '/');
                    
297        if (!strlen($folderName)) {
                    
331    {
                    
332        $directory = trim($directory, '/');
                    
333        $adapter = $this->_getReadAdapter();
                    
                
text_effects.hs https://gitlab.com/stallmanifold/imagemagick | Haskell | 313 lines
                    
5See this forum thread for the genesis of these effects
                    
6http://www.imagemagick.org/discourse-server/viewtopic.php?f=6&t=11586
                    
7and Anthony's Text Effects page at:
                    
28--           \( +clone -background navy  -shadow 70x4+5+5 \) +swap \
                    
29--           -background lightblue -flatten  -trim +repage  font_shadow_soft.jpg
                    
30
                    
52
                    
53  -- Trim the image down to include only the text
                    
54  trimImage w 0
                    
119  drawImage w dw
                    
120  -- Trim the image
                    
121  trimImage w 0
                    
130--           -annotate +25+65 'Anthony' -distort Arc 120 \
                    
131--           -trim +repage -bordercolor lightblue -border 10  font_arc.jpg
                    
132textEffect3 :: (MonadResource m) => PMagickWand -> PDrawingWand -> PPixelWand -> m ()
                    
                
BaseVarDumper.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 272 lines
                    
1<?php
                    
2/**
                    
56        if ($highlight) {
                    
57            $result = highlight_string("<?php\n" . self::$_output, true);
                    
58            self::$_output = preg_replace('/&lt;\\?php<br \\/>/', '', $result, 1);
                    
119                    self::$_output .= "$className#$id\n" . $spaces . '(';
                    
120                    if ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__debugInfo')) {
                    
121                        $dumpValues = $var->__debugInfo();
                    
128                    foreach ($dumpValues as $key => $value) {
                    
129                        $keyDisplay = strtr(trim($key), "\0", ':');
                    
130                        self::$_output .= "\n" . $spaces . "    [$keyDisplay] => ";
                    
141     *
                    
142     * The string is a valid PHP expression that can be evaluated by PHP parser
                    
143     * and the evaluation result will give back the variable value.
                    
147     *
                    
148     * It also handles objects by using the PHP functions serialize() and unserialize().
                    
149     *
                    
                
admin.php https://github.com/Brucee/pyrocms.git | PHP | 562 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2/**
                    
21				'label'	=> 'lang:pages.title_label',
                    
22				'rules'	=> 'trim|required|max_length[250]'
                    
23			),
                    
26				'label'	=> 'lang:pages.slug_label',
                    
27				'rules'	=> 'trim|required|alpha_dot_dash|max_length[250]'
                    
28			),
                    
31				'label'	=> 'lang:pages.body_label',
                    
32				'rules' => 'trim|required'
                    
33			),
                    
36				'label'	=> 'lang:pages.layout_id_label',
                    
37				'rules'	=> 'trim|numeric|required'
                    
38			),
                    
41				'label'	=> 'lang:pages.css_label',
                    
42				'rules'	=> 'trim'
                    
43			),
                    
                
CssSelector.php https://github.com/nattaphat/hgis.git | PHP | 322 lines
                    
1<?php
                    
2
                    
52            if (preg_match('#^\w+\s*$#u', $cssExpr, $match)) {
                    
53                return $prefix.trim($match[0]);
                    
54            }
                    
                
Index.php https://gitlab.com/tonycodes/october | PHP | 458 lines
                    
1<?php namespace Cms\Controllers;
                    
2
                    
141        $type = Request::input('templateType');
                    
142        $templatePath = trim(Request::input('templatePath'));
                    
143        $template = $templatePath ? $this->loadTemplate($type, $templatePath) : $this->createTemplate($type);
                    
265
                    
266        $this->loadTemplate($type, trim(Request::input('templatePath')))->delete();
                    
267
                    
                
class-gf-field-checkbox.php https://gitlab.com/level-level/gravityforms | PHP | 380 lines
                    
1<?php
                    
2
                    
78					foreach ( $parameter_values as $item ) {
                    
79						$item = trim( $item );
                    
80						if ( GFFormsModel::choice_value_match( $this, $this->choices[ $choice_index ], $item ) ) {
                    
                
author-template.php https://github.com/vidor/vidor.me.git | PHP | 401 lines
                    
1<?php
                    
2/**
                    
362
                    
363	$return = rtrim($return, ', ');
                    
364
                    
                
composite_log.php https://gitlab.com/alexprowars/bitrix | PHP | 461 lines
                    
14 */
                    
15require_once(dirname(__FILE__)."/../include/prolog_admin_before.php");
                    
16require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
16require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
17define("HELP_FILE", "settings/composite_pages.php");
                    
18
                    
89{
                    
90	if (!isset($date) || mb_strlen(trim($date)) < 1)
                    
91	{
                    
94
                    
95	$date = trim($date);
                    
96	return Type\DateTime::isCorrect($date) ? new Type\DateTime($date) : null;
                    
112{
                    
113	if (!is_array($value) && !mb_strlen(trim($value)))
                    
114	{
                    
                
options.php https://gitlab.com/alexprowars/bitrix | PHP | 479 lines
                    
1<?php
                    
2$module_id = 'landing';
                    
23// lang
                    
24IncludeModuleLangFile($docRoot . '/bitrix/modules/main/options.php');
                    
25Loc::loadMessages(__FILE__);
                    
224				{
                    
225					if (trim(${$name}[$j]) <> '')
                    
226					{
                    
226					{
                    
227						$val .= ($val <> '' ? ',':'') . trim(${$name}[$j]);
                    
228					}
                    
244					{
                    
245						if (trim(${$name}[$j]) <> '')
                    
246						{
                    
246						{
                    
247							$val .= ($val <> '' ? ',':'') . trim(${$name}[$j]);
                    
248						}
                    
                
ConsoleShell.php https://bitbucket.org/ManiAdil/jardinorient.git | PHP | 384 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
9 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @link          http://cakephp.org CakePHP(tm) Project
                    
11 * @since         CakePHP(tm) v 1.2.0.5012
                    
11 * @since         CakePHP(tm) v 1.2.0.5012
                    
12 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
13 */
                    
17/**
                    
18 * Provides a very basic 'interactive' console for CakePHP apps.
                    
19 *
                    
136			'Alternatively, you can use simple array syntax to test reverse',
                    
137			'To reload your routes config (Config/routes.php), do the following:',
                    
138			"",
                    
                
Ini.php https://github.com/studioskylab/Docblox.git | PHP | 293 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Ini.php 16201 2009-06-21 18:51:15Z thomas $
                    
20 */
                    
25 */
                    
26require_once 'Zend/Config.php';
                    
27
                    
105             */
                    
106            require_once 'Zend/Config/Exception.php';
                    
107            throw new Zend_Config_Exception('Filename is not set');
                    
148                     */
                    
149                    require_once 'Zend/Config/Exception.php';
                    
150                    throw new Zend_Config_Exception("Section '$sectionName' cannot be found in $filename");
                    
182             */
                    
183            require_once 'Zend/Config/Exception.php';
                    
184            throw new Zend_Config_Exception($this->_loadFileErrorStr);
                    
                
CMssqlCommandBuilder.php https://bitbucket.org/haichau59/manga.git | PHP | 338 lines
                    
1<?php
                    
2/**
                    
232				$subs=array();
                    
233				if(preg_match_all('/(.*)[\s"\]](ASC|DESC)$/i', trim($part), $subs))
                    
234				{
                    
241								$name.='.';
                    
242							$name.='[' . trim($p, '[]') . ']';
                    
243						}
                    
248				else
                    
249					$ordering[trim($part)] = 'ASC';
                    
250			}
                    
296		foreach($orders as $column => $direction)
                    
297			$orders[$column] = strtolower(trim($direction))==='desc' ? 'ASC' : 'DESC';
                    
298		return $orders;
                    
                
date.php https://github.com/chemila/kohana.git | PHP | 566 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
28	 * Timezone for formatted_time
                    
29	 * @link http://uk2.php.net/manual/en/timezones.php
                    
30	 * @var  string
                    
39	 *
                    
40	 * [!!] A list of time zones that PHP supports can be found at
                    
41	 * <http://php.net/timezones>.
                    
306		// Normalize output
                    
307		$output = trim(strtolower( (string) $output));
                    
308
                    
548	 *
                    
549	 * @see     http://php.net/manual/en/datetime.construct.php
                    
550	 * @param   string  datetime_str     datetime string
                    
                
class-wp-ms-users-list-table.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 301 lines
                    
159			<tr class="<?php echo $alt; ?>">
                    
160			<?php
                    
161
                    
175						<th scope="row" class="check-column">
                    
176							<label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>"><?php echo sprintf( __( 'Select %s' ), $user->user_login ); ?></label>
                    
177							<input type="checkbox" id="blog_<?php echo $user->ID ?>" name="allusers[]" value="<?php echo esc_attr( $user->ID ) ?>" />
                    
178						</th>
                    
179					<?php
                    
180					break;
                    
186						echo "<td $attributes>"; ?>
                    
187							<?php echo $avatar; ?><strong><a href="<?php echo $edit_link; ?>" class="edit"><?php echo $user->user_login; ?></a><?php
                    
188							if ( in_array( $user->user_login, $super_admins ) )
                    
191							<br/>
                    
192							<?php
                    
193								$actions = array();
                    
                
sfValidatorBaseTest.php https://github.com/bheneka/gitta.git | PHP | 246 lines
                    
1<?php
                    
2
                    
10
                    
11require_once(dirname(__FILE__).'/../../bootstrap/unit.php');
                    
12
                    
112}
                    
113$t->is($v->clean('  foo  '), '  foo  ', '->clean() does not trim whitespaces by default');
                    
114
                    
132$t->is($v->clean(''), null, '->setOption() changes options (required for example)');
                    
133$v->setOption('trim', true);
                    
134$t->is($v->clean('  foo  '), 'foo', '->setOption() can turn on whitespace trimming');
                    
162$t->diag('->getOptions() ->setOptions()');
                    
163$v->setOptions(array('required' => true, 'trim' => false));
                    
164$t->is($v->getOptions(), array('required' => true, 'trim' => false, 'empty_value' => null), '->setOptions() changes all options');
                    
                
CookieJar.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 385 lines
                    
1<?php
                    
2
                    
26 * @license  http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
27 * @link     https://wiki.jasig.org/display/CASC/phpCAS
                    
28 */
                    
35 * @category Authentication
                    
36 * @package  PhpCAS
                    
37 * @author   Adam Franco <afranco@middlebury.edu>
                    
127     * Parse Cookies without PECL
                    
128     * From the comments in http://php.net/manual/en/function.http-parse-cookie.php
                    
129     *
                    
137    {
                    
138        phpCAS::traceBegin();
                    
139        $cookies = array();
                    
145
                    
146        phpCAS::traceEnd($cookies);
                    
147        return $cookies;
                    
                
IWforums_user_forum.htm https://github.com/intraweb-modules13/IWforums.git | HTML | 258 lines
                    
6    <div class="userpageicon">{img modname='core' src='windowlist.png' set='icons/large'}</div>
                    
7    <h2>{$name} {if $u > 0}({$users[$u]|trim}){/if}</h2>
                    
8    
                    
44                            {if $tema.photo neq '' AND ($userid neq '' OR $avatarsVisible eq 1)}
                    
45                            <img src="index.php?module=IWmain&type=user&func=getPhoto&fileName={$tema.photo}" class="photoImg" />
                    
46                            {else}
                    
100{else}
                    
101<h2>{$name} - {gt text="List of messages"} {if $u > 0}({$users[$u]|trim}){/if}</h2>
                    
102{/if}
                    
103{else}
                    
104<h2>{$name} => {$topicName} {if $u > 0}({$users[$u]|trim}){/if}</h2>
                    
105{/if}
                    
                
Layout.php https://github.com/nationalfield/symfony.git | PHP | 490 lines
                    
1<?php
                    
2/*
                    
27 * @subpackage  Pager
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @version     $Revision$
                    
273    {
                    
274        if (($oldMask = trim($oldMask)) != 'page_number') {
                    
275            $this->_maskReplacements[$oldMask] = array(
                    
                
en_us.lang.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 199 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
51	'ERR_BAD_LOGIN_PASSWORD'=> 'Login or Password Incorrect',
                    
52	'ERR_BODY_TOO_LONG'		=> '\rBody text too long to capture FULL email.  Trimmed.',
                    
53	'ERR_INI_ZLIB'			=> 'Could not turn off Zlib compression temporarily.  "Test Settings" may fail.',
                    
104	'LBL_MAILBOX_DEFAULT'	=> 'INBOX',
                    
105	'LBL_MAILBOX_SSL_DESC'	=> 'Use SSL when connecting. If this does not work, check that your PHP installation included "--with-imap-ssl" in the configuration.',
                    
106	'LBL_MAILBOX_SSL'		=> 'Use SSL',
                    
131	'LBL_NO_OPTIMUMS'		=> 'Could not find optimums.  Please check your settings and try again.',
                    
132	'LBL_ONLY_SINCE_DESC'	=> 'When using POP3, PHP cannot filter for New/Unread messages.  This flag allows the request to check for messages since the last time the mail account was polled.  This will significantly improve performance if your mail server does not support IMAP.',
                    
133	'LBL_ONLY_SINCE_NO'		=> 'No. Check against all emails on mail server.',
                    
173	'LBL_WARN_IMAP'			=> 'Warnings:',
                    
174	'LBL_WARN_NO_IMAP'		=> 'Inbound Email <b>cannot</b> function without the IMAP c-client libraries enabled/compiled with the PHP module.  Please contact your administrator to resolve this issue.',
                    
175
                    
                
cat_contractor_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 339 lines
                    
1<?
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/catalog/prolog.php");
                    
10$selfFolderUrl = $adminPage->getSelfFolderUrl();
                    
11$listUrl = $selfFolderUrl."cat_contractor_list.php?lang=".LANGUAGE_ID;
                    
12$listUrl = $adminSidePanelHelper->editUrlToPublicPage($listUrl);
                    
20{
                    
21	require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
                    
22
                    
25
                    
26	require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");
                    
27	die();
                    
82		{
                    
83			$applyUrl = $selfFolderUrl."cat_contractor_edit.php?lang=".LANGUAGE_ID."&ID=".$ID;
                    
84			$applyUrl = $adminSidePanelHelper->setDefaultQueryParams($applyUrl);
                    
                
TextStatistics.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 414 lines
                    
1<?php
                    
2/**
                    
17	 *
                    
18	 * @link    http://code.google.com/p/php-text-statistics/
                    
19	 * @link	https://github.com/DaveChild/Text-Statistics (new repo location)
                    
19	 * @link	https://github.com/DaveChild/Text-Statistics (new repo location)
                    
20	 * @license http://www.opensource.org/licenses/bsd-license.php New BSD license
                    
21	 *
                    
123		/**
                    
124		 * Trims, removes line breaks, multiple spaces and generally cleans text before processing.
                    
125		 *
                    
145			$strText = preg_replace( '`[\.!?]`', '.', $strText ); // Unify terminators
                    
146			$strText = trim( $strText ) . '.'; // Add final terminator, just in case it's missing.
                    
147			$strText = preg_replace( '`[ ]*(\n|\r\n|\r)[ ]*`', ' ', $strText ); // Replace new lines with spaces
                    
148			$strText = preg_replace( '`([\.])[\. ]+`', '$1', $strText ); // Check for duplicated terminators
                    
149			$strText = trim( preg_replace( '`[ ]*([\.])`', '$1 ', $strText ) ); // Pad sentence terminators
                    
150			$strText = preg_replace( '` [0-9]+ `', ' ', ' ' . $strText . ' ' ); // Remove "words" comprised only of numbers
                    
                
Misc.php https://bitbucket.org/tdevonshire/guinness-jazz-festival.git | PHP | 388 lines
                    
1<?php
                    
2/*
                    
30        if (!empty($_GET['langCode']) && preg_match("/^[a-z\-]+$/", $_GET['langCode'])) {
                    
31            if (file_exists(CKFINDER_CONNECTOR_LANG_PATH . "/" . $_GET['langCode'] . ".php"))
                    
32                $langCode = $_GET['langCode'];
                    
33        }
                    
34        include CKFINDER_CONNECTOR_LANG_PATH . "/" . $langCode . ".php";
                    
35        if ($number) {
                    
64    /**
                    
65     * @link http://pl.php.net/manual/en/function.imagecopyresampled.php
                    
66     * replacement to imagecopyresampled that will deliver results that are almost identical except MUCH faster (very typically 30 times faster)
                    
110    /**
                    
111     * @link http://pl.php.net/manual/pl/function.imagecreatefromjpeg.php
                    
112     * function posted by e dot a dot schultz at gmail dot com
                    
170    /**
                    
171     * convert shorthand php.ini notation into bytes, much like how the PHP source does it
                    
172     * @link http://pl.php.net/manual/en/function.ini-get.php
                    
                
Action.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 408 lines
                    
1<?php
                    
2/*
                    
158  public static function mapItem($item) {
                    
159    $mask = CRM_Utils_Array::value(trim($item), self::$_names);
                    
160    return $mask ? $mask : 0;
                    
                
PDFLetterCommon.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 339 lines
                    
1<?php
                    
2/*
                    
314      foreach ($messages as $key => & $msg) {
                    
315        $msg = trim($msg);
                    
316        $matches = [];
                    
318          $spaceLen = strlen($matches[0]) / 6;
                    
319          $trimMsg = ltrim($msg, '&nbsp; ');
                    
320          $charLen = strlen($trimMsg);
                    
329            }
                    
330            $msg = str_repeat('&nbsp;', $spacesCount) . $trimMsg;
                    
331          }
                    
                
Graph.php https://github.com/studioskylab/Docblox.git | PHP | 259 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5
                    
6 *
                    
11 * @copyright  2010-2011 Mike van Riel / Naenius (http://www.naenius.com)
                    
12 * @license    http://www.opensource.org/licenses/mit-license.php MIT
                    
13 * @link       http://docblox-project.org
                    
24 * @author     Mike van Riel <mike.vanriel@naenius.com>
                    
25 * @license    http://www.opensource.org/licenses/mit-license.php MIT
                    
26 * @link       http://docblox-project.org
                    
100        $full_namespace_name .= '\\'.$namespace;
                    
101        $full_namespace_name = ltrim($full_namespace_name, '\\');
                    
102
                    
127            if (!isset($this->class_paths[$sub_element->getElementsByTagName('full_name')->item(0)->nodeValue])) {
                    
128                echo $sub_element->getElementsByTagName('full_name')->item(0)->nodeValue.PHP_EOL;
                    
129            } else {
                    
                
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
                    
98        if (!empty($options['api_key'])) {
                    
99            set_config('api_key', trim($options['api_key']), 'flickr');
                    
100        }
                    
101        if (!empty($options['secret'])) {
                    
102            set_config('secret', trim($options['secret']), 'flickr');
                    
103        }
                    
116        if ($config==='api_key') {
                    
117            return trim(get_config('flickr', 'api_key'));
                    
118        } elseif ($config ==='secret') {
                    
                
stylies.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 347 lines
                    
1<?php
                    
2defined('JPATH_BASE') or die();
                    
35		foreach($aryParams as $item){
                    
36			$posStyle = strpos(trim($item),'layout_style=');
                    
37			if($posStyle === false){
                    
38			} else {
                    
39				$layoutStyle = substr(trim($item),$posStyle+(int)strlen('layout_style='));
                    
40			}
                    
125					var jvStyle7 = $$('.jv_slide_style7');
                    
126          var layout = "<?php echo $layoutStyle; ?>";
                    
127		   var selectStyle = function(style){				
                    
343		</script>
                    
344		<?php	
                    
345		return JHTML::_('select.genericlist',  $options, ''.$control_name.'['.$name.']', $class, 'value', 'text', $value, $control_name.$name);
                    
                
Filesystem.php https://github.com/mamayoleksandr/xtbackup.git | PHP | 317 lines
                    
1<?php
                    
2class Storage_Filesystem implements Storage_Interface
                    
26     */
                    
27    protected $_trimFromBegin;
                    
28    /**
                    
54        $this->_baseDir = $this->_options['basedir']; // for faster access
                    
55        $this->_baseDir = rtrim($this->_baseDir, '/'). '/';
                    
56        $this->_isWindows = (strpos(strtolower(php_uname('s')), 'win') !== false);
                    
165            //initialize windows's FileSystemObject
                    
166            /** @noinspection PhpUndefinedClassInspection, PhpUndefinedConstantInspection */
                    
167            $fso = new COM('Scripting.FileSystemObject', null, CP_UTF8);
                    
176            //see Scripting.FileSystemObject on http://msdn.microsoft.com
                    
177            /** @noinspection PhpUndefinedMethodInspection */
                    
178            $folder = $fso->GetFolder($curDir);
                    
227        $itemCount = 0;
                    
228        $this->_trimFromBegin = strlen($this->_baseDir);
                    
229        $compare->updateFromLocalStart();
                    
                
ListenerOptions.php https://gitlab.com/yousafsyed/easternglamor | PHP | 396 lines
                    
1<?php
                    
2/**
                    
269        if ($this->getConfigCacheKey()) {
                    
270            return $this->getCacheDir() . '/module-config-cache.' . $this->getConfigCacheKey().'.php';
                    
271        }
                    
272
                    
273        return $this->getCacheDir() . '/module-config-cache.php';
                    
274    }
                    
353        if ($this->getModuleMapCacheKey()) {
                    
354            return $this->getCacheDir() . '/module-classmap-cache.' . $this->getModuleMapCacheKey() . '.php';
                    
355        }
                    
356
                    
357        return $this->getCacheDir() . '/module-classmap-cache.php';
                    
358    }
                    
391    {
                    
392        $path = rtrim($path, '/');
                    
393        $path = rtrim($path, '\\');
                    
                
Clients.php https://gitlab.com/my-application.bjoernbartels.earth/my-application | PHP | 322 lines
                    
1<?php
                    
2/**
                    
86                    array('name' => 'StripTags'),
                    
87                    array('name' => 'StringTrim'),
                    
88                    ),
                    
109                    array('name' => 'StripTags'),
                    
110                    array('name' => 'StringTrim'),
                    
111                    ),
                    
132                    array('name' => 'StripTags'),
                    
133                    array('name' => 'StringTrim'),
                    
134                    ),
                    
155                    array('name' => 'StripTags'),
                    
156                    array('name' => 'StringTrim'),
                    
157                    ),
                    
178                    array('name' => 'StripTags'),
                    
179                    array('name' => 'StringTrim'),
                    
180                    ),
                    
                
ibase_driver.php https://gitlab.com/carlosambiado89/IntranetPlanEvalWeb | PHP | 396 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
224	{
                    
225		$sql = 'SELECT TRIM("RDB$RELATION_NAME") AS TABLE_NAME FROM "RDB$RELATIONS" WHERE "RDB$RELATION_NAME" NOT LIKE \'RDB$%\' AND "RDB$RELATION_NAME" NOT LIKE \'MON$%\'';
                    
226
                    
228		{
                    
229			return $sql.' AND TRIM("RDB$RELATION_NAME") AS TABLE_NAME LIKE \''.$this->escape_like_str($this->dbprefix)."%' "
                    
230				.sprintf($this->_like_escape_str, $this->_like_escape_chr);
                    
247	{
                    
248		return 'SELECT TRIM("RDB$FIELD_NAME") AS COLUMN_NAME FROM "RDB$RELATION_FIELDS" WHERE "RDB$RELATION_NAME" = '.$this->escape($table);
                    
249	}
                    
                
Abstract.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 350 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
26 */
                    
27// require_once 'Zend/Mime.php';
                    
28
                    
186             */
                    
187            // require_once 'Zend/Mail/Transport/Exception.php';
                    
188            throw new Zend_Mail_Transport_Exception('Missing Zend_Mail object in _mail property');
                    
206        foreach (explode($this->EOL, $this->header) as $line) {
                    
207            if (strlen(trim($line)) > 998) {
                    
208                $sane = false;
                    
215             */
                    
216            // require_once 'Zend/Mail/Transport/Exception.php';
                    
217            throw new Zend_Mail_Exception('At least one mail header line is too long');
                    
                
utils.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 313 lines
                    
1<?php
                    
2
                    
44    if(image_check_memory_usage($imgfile,$newwidth,$newheight)){
                    
45	require_once('php_image_magician.php');
                    
46	$magicianObj = new imageLib($imgfile);
                    
55    if(image_check_memory_usage($imgfile,$newwidth,$newheight)){
                    
56	require_once('php_image_magician.php');
                    
57	$magicianObj = new imageLib($imgfile);
                    
78    $files = scandir($path);
                    
79    $cleanPath = rtrim($path, '/'). '/';
                    
80
                    
118        foreach($files as $file){
                    
119            check_files_extensions_on_path(trim($path,'/')."/".$file,$ext);
                    
120        }
                    
168
                    
169    return trim( $str );
                    
170}
                    
                
CMssqlCommandBuilder.php https://github.com/pittwt/myjackshop.git | PHP | 335 lines
                    
1<?php
                    
2/**
                    
18 * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
                    
19 * @version $Id: CMssqlCommandBuilder.php 2821 2011-01-06 17:41:53Z qiang.xue $
                    
20 * @package system.db.schema.mssql
                    
228				$subs=array();
                    
229				if(preg_match_all('/(.*)[\s"\]](ASC|DESC)$/i', trim($part), $subs))
                    
230				{
                    
237								$name.='.';
                    
238							$name.='[' . trim($p, '[]') . ']';
                    
239						}
                    
244				else
                    
245					$ordering[trim($part)] = 'ASC';
                    
246			}
                    
292		foreach($orders as $column => $direction)
                    
293			$orders[$column] = strtolower(trim($direction))==='desc' ? 'ASC' : 'DESC';
                    
294		return $orders;
                    
                
Bounce.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 304 lines
                    
1<?php
                    
2/*
                    
230      else {
                    
231        $orderBy = trim($sort->orderBy());
                    
232      }
                    
                
Type.php https://bitbucket.org/shashwat_dinasource/bitscentral.git | PHP | 395 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP version 4                                                        |
                    
5// +----------------------------------------------------------------------+
                    
5// +----------------------------------------------------------------------+
                    
6// | Copyright (c) 1997-2002 The PHP Group                                |
                    
7// +----------------------------------------------------------------------+
                    
7// +----------------------------------------------------------------------+
                    
8// | This source file is subject to version 3.0 of the PHP license,       |
                    
9// | that is bundled with this package in the file LICENSE, and is        |
                    
10// | available at through the world-wide-web at                           |
                    
11// | http://www.php.net/license/3_0.txt.                                  |
                    
12// | If you did not receive a copy of the PHP license and are unable to   |
                    
13// | obtain it through the world-wide-web, please send a note to          |
                    
14// | license@php.net so we can mail you a copy immediately.               |
                    
15// +----------------------------------------------------------------------+
                    
                
sso.class.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 234 lines
                    
1<?php
                    
2
                    
11 * overwrite its method, then modify the corresponding calling code in 
                    
12 * main/inc/local.inc.php
                    
13 * @package chamilo.auth.sso
                    
22    public $deauth_uri; //    '/?q=logout',
                    
23    public $referer; // http://my.chamilo.com/main/auth/profile.php
                    
24
                    
32        $domains          = split(',',api_get_setting('sso_authentication_domain'));
                    
33        $this->domain     = trim($domains[0]);
                    
34        $this->auth_uri   = api_get_setting('sso_authentication_auth_uri');
                    
75     * Validates the received active connection data with the database
                    
76     * @return	bool	Return the loginFailed variable value to local.inc.php
                    
77     */
                    
90                FROM $user_table
                    
91                WHERE username = '".trim(Database::escape_string($sso['username']))."'";
                    
92        $result = Database::query($sql);
                    
                
ReporteEgresoView.php https://bitbucket.org/raboit/sisfac.git | PHP | 286 lines
                    
1<?php
                    
2
                    
19                        $default_border = array(
                    
20                            'style' => PHPExcel_Style_Border::BORDER_THIN,
                    
21                            'color' => array('rgb'=>'000000')
                    
31                                                    'fill' => array(
                    
32                                'type' => PHPExcel_Style_Fill::FILL_SOLID,
                    
33                                'color' => array('rgb'=>'819FF7'),
                    
53				} else
                    
54					$head =trim($column->header)!=='' ? $column->header : $column->grid->blankDisplay;
                    
55                                self::$activeSheet->setCellValue($this->columnName($i)."1" ,$head);
                    
68			  
                    
69					$footer =trim($column->footer)!=='' ? $column->footer : "";
                    
70
                    
248			//create writer for saving
                    
249			$objWriter = PHPExcel_IOFactory::createWriter(self::$objPHPExcel, $this->exportType);
                    
250			if(!$this->stream)
                    
                
tprScriptParser.php https://github.com/yoyar/tprsp.git | PHP | 456 lines
                    
12		$this->zip = $zipEntry;
                    
13		$this->script = trim($zipEntry->getDocFileAsPlainText());
                    
14
                    
46
                    
47		$tok = trim(strtok($this->script, "\n"));
                    
48
                    
56
                    
57			$tok = trim($tok);
                    
58
                    
98				case 'clip:' == strtolower(substr($tok, 0, 5)):
                    
99					$tok = trim(trim(strtok("\n")), '()');
                    
100					$parseResult = $this->parseClip($tok);
                    
204
                    
205		$teaser = trim($matches[1]);
                    
206
                    
                
BaseFcvalinmold.php https://github.com/cidesa/siga-universitario.git | PHP | 714 lines
                    
1<?php
                    
2
                    
71
                    
72    return trim($this->codzon);
                    
73
                    
78
                    
79    return trim($this->deszon);
                    
80
                    
85
                    
86    return trim($this->codtip);
                    
87
                    
92
                    
93    return trim($this->destip);
                    
94
                    
147
                    
148    return trim($this->anovig);
                    
149
                    
                
OracleSchemaManager.php https://gitlab.com/adrianjose605/SaintW | PHP | 322 lines
                    
1<?php
                    
2/*
                    
122            // Sometimes trailing spaces are also encountered.
                    
123            $tableColumn['data_default'] = trim(trim($tableColumn['data_default']), "'");
                    
124        }
                    
                
recaptchalib.php https://bitbucket.org/Mainboarder/s2firewall.git | PHP | 277 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * This is a PHP library that handles calling reCAPTCHA.
                    
4 *    - Documentation and latest version
                    
4 *    - Documentation and latest version
                    
5 *          http://recaptcha.net/plugins/php/
                    
6 *    - Get a reCAPTCHA API Key
                    
74        $http_request .= "Content-Length: " . strlen($req) . "\r\n";
                    
75        $http_request .= "User-Agent: reCAPTCHA/PHP\r\n";
                    
76        $http_request .= "\r\n";
                    
183
                    
184        if (trim ($answers [0]) == 'true') {
                    
185                $recaptcha_response->is_valid = true;
                    
215	if (! function_exists ("mcrypt_encrypt")) {
                    
216		die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed.");
                    
217	}
                    
                
tlAttachment.class.php https://github.com/viglesiasce/testlink.git | PHP | 342 lines
                    
1<?php
                    
2/**
                    
8 * @copyright 	2007-2009, TestLink community 
                    
9 * @version    	CVS: $Id: tlAttachment.class.php,v 1.2 2009/12/28 08:53:37 franciscom Exp $
                    
10 * @link 		http://www.teamst.org/index.php
                    
13/** parenthal class */
                    
14require_once( 'object.class.php' );
                    
15
                    
163		
                    
164		$title = trim($title);
                    
165		$config = $this->attachmentCfg;
                    
184		$this->fkID = $fkid;
                    
185		$this->fkTableName = trim($fkTableName);
                    
186		$this->fType = trim($fType);
                    
188		$this->fName = $fName; 
                    
189		$this->destFPath = trim($destFPath); 
                    
190		$this->fContents = $fContents;
                    
                
exec.inc.php https://github.com/viglesiasce/testlink.git | PHP | 298 lines
                    
1<?php
                    
2/**
                    
11 * @copyright 	2005-2009, TestLink community 
                    
12 * @version    	CVS: $Id: exec.inc.php,v 1.60 2010/06/24 17:25:53 asimon83 Exp $
                    
13 * @link 		http://www.teamst.org/index.php
                    
34/** 
                    
35 * @uses  common.php required basic environment (configuration and core libraries) 
                    
36 **/
                    
36 **/
                    
37require_once('common.php');
                    
38
                    
109		$is_bulk_save=1;
                    
110		$bulk_notes = $db->prepare_string(trim($exec_data['bulk_exec_notes']));		
                    
111	}	
                    
126			
                    
127			$my_notes = $is_bulk_save ? $bulk_notes : $db->prepare_string(trim($exec_data['notes'][$tcversion_id]));		
                    
128			$sql = "INSERT INTO {$executions_table} ".
                    
                
WufooApiWrapper.php https://github.com/Fourshift/Wufoo-API-Wrappers.git | PHP | 270 lines
                    
1<?php
                    
2
                    
2
                    
3require_once('WufooApiWrapperBase.php');
                    
4require_once('WufooValueObjects.php');
                    
96		$url = $this->getFullUrl($from.'/'.$identifier.'/entries');
                    
97		$url.= ($getArgs) ? '?'. ltrim($getArgs, '?') : '';
                    
98		return $this->getHelper($url, 'Entry', 'Entries', $index);
                    
111		$url = $this->getFullUrl($from.'/'.$identifier.'/entries/count');
                    
112		$url.= ($getArgs) ? '?'. ltrim($getArgs, '?') : '';
                    
113		$this->curl = new WufooCurl();
                    
                
ProxyFactory.php https://github.com/weaverryan/mongodb-odm.git | PHP | 283 lines
                    
1<?php
                    
2/*
                    
29 *
                    
30 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
31 * @since       1.0
                    
83        if ($this->autoGenerate && ! class_exists($fqn, false)) {
                    
84            $fileName = $this->proxyDir . DIRECTORY_SEPARATOR . $proxyClassName . '.php';
                    
85            $this->generateProxyClass($this->dm->getClassMetadata($className), $proxyClassName, $fileName, self::$_proxyClassTemplate);
                    
106        $proxyDir = $toDir ?: $this->proxyDir;
                    
107        $proxyDir = rtrim($proxyDir, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
                    
108        foreach ($classes as $class) {
                    
199                $methods .= $parameterString . ')';
                    
200                $methods .= PHP_EOL . '    {' . PHP_EOL;
                    
201                $methods .= '        $this->load();' . PHP_EOL;
                    
202                $methods .= '        return parent::' . $method->getName() . '(' . $argumentString . ');';
                    
203                $methods .= PHP_EOL . '    }' . PHP_EOL;
                    
204            }
                    
                
ScopeIndentSniff.php https://gitlab.com/michield/dokuwiki | PHP | 319 lines
                    
15 * @version   CVS: $Id: ScopeIndentSniff.php 270281 2008-12-02 02:38:34Z squiz $
                    
16 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
17 */
                    
31 * @version   Release: 1.2.0
                    
32 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
33 */
                    
76     *
                    
77     * @param PHP_CodeSniffer_File $phpcsFile All the tokens found in the document.
                    
78     * @param int                  $stackPtr  The position of the current token
                    
82     */
                    
83    public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
84    {
                    
110            // Record the first code token on the line.
                    
111            if (in_array($tokens[$i]['code'], PHP_CodeSniffer_Tokens::$emptyTokens) === false) {
                    
112                $firstToken = $i;
                    
                
WishlistController.php https://github.com/arush/desparation-deprecated.git | PHP | 326 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 */
                    
133            $result = $wishlist->addNewItem($product, $buyRequest);
                    
134            if (strlen(trim((string)$request->getParam('description')))) {
                    
135                $result->setDescription($request->getParam('description'))->save();
                    
                
class.ScalrAPICore.php https://github.com/kennethjiang/Wolke.git | PHP | 361 lines
                    
1<?php
                    
2
                    
63
                    
64                $valid_sign = base64_encode(hash_hmac(self::HASH_ALGO, trim($string_to_sign), $auth_key, 1));
                    
65
                    
123    		
                    
124    		$valid_sign = base64_encode(hash_hmac(self::HASH_ALGO, trim($string_to_sign), $auth_key, 1));
                    
125
                    
168    		
                    
169    		$valid_sign = base64_encode(hash_hmac(self::HASH_ALGO, trim($string_to_sign), $auth_key, 1));    		
                    
170    		if ($valid_sign != $request['Signature'])
                    
296			{
                    
297				$allowedhost = trim($allowed_ip);
                    
298				if ($allowedhost == '')
                    
307	    	    {
                    
308	    	        $ip_parts = explode(".", trim($allowedhost));
                    
309	    	        if (
                    
                
ManageGitIgnoreTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 256 lines
                    
141    $stdout = $this->mustExec('git status --porcelain', $sut);
                    
142    $this->assertEquals(trim($expected), trim($stdout));
                    
143  }
                    
238  - Skip [web-root]/sites/default/default.settings.php: overridden in fixtures/scaffold-override-fixture
                    
239  - Copy [web-root]/sites/example.settings.local.php from assets/example.settings.local.php
                    
240  - Copy [web-root]/sites/example.sites.php from assets/example.sites.php
                    
240  - Copy [web-root]/sites/example.sites.php from assets/example.sites.php
                    
241  - Copy [web-root]/index.php from assets/index.php
                    
242  - Skip [web-root]/robots.txt: overridden in fixtures/drupal-composer-drupal-project
                    
242  - Skip [web-root]/robots.txt: overridden in fixtures/drupal-composer-drupal-project
                    
243  - Copy [web-root]/update.php from assets/update.php
                    
244  - Copy [web-root]/web.config from assets/web.config
                    
245Scaffolding files for fixtures/scaffold-override-fixture:
                    
246  - Copy [web-root]/sites/default/default.settings.php from assets/override-settings.php
                    
247Scaffolding files for fixtures/drupal-composer-drupal-project:
                    
                
training_partner_game_update.php https://bitbucket.org/itoxable/chiron-gaming.git | PHP | 264 lines
                    
1<?php
                    
2/*******************************************************************************/
                    
6
                    
7include('general_include.php');
                    
8include"checklogin.php";
                    
25	$FabricArr['peak_hours']	 = $peak_hours;
                    
26	$FabricArr['experience']     = htmlspecialchars(trim($experience));
                    
27	$FabricArr['need_improvement'] = htmlspecialchars(trim($need_improvement));
                    
112		}		
                    
113		echo "<script>window.location.href='training_partner_gamemanager.php?messg=".$msgreport."&u_id=".$u_id."&IsPreserved=Y'</script>";
                    
114		exit; 
                    
                
class-gf-field-multiselect.php https://gitlab.com/BenjaminHolm/gravity-forms | PHP | 336 lines
                    
1<?php
                    
2
                    
96		$class         = $size . $class_suffix;
                    
97		$css_class     = trim( esc_attr( $class ) . ' gfield_select' );
                    
98		$tabindex      = $this->get_tabindex();
                    
                
shipping.php https://gitlab.com/reclamare/mao | PHP | 268 lines
                    
1<?php
                    
2class ControllerApiShipping extends Controller {
                    
35
                    
36				if ((utf8_strlen(trim($this->request->post['firstname'])) < 1) || (utf8_strlen(trim($this->request->post['firstname'])) > 32)) {
                    
37					$json['error']['firstname'] = $this->language->get('error_firstname');
                    
39
                    
40				if ((utf8_strlen(trim($this->request->post['lastname'])) < 1) || (utf8_strlen(trim($this->request->post['lastname'])) > 32)) {
                    
41					$json['error']['lastname'] = $this->language->get('error_lastname');
                    
43
                    
44				if ((utf8_strlen(trim($this->request->post['address_1'])) < 3) || (utf8_strlen(trim($this->request->post['address_1'])) > 128)) {
                    
45					$json['error']['address_1'] = $this->language->get('error_address_1');
                    
55
                    
56				if ($country_info && $country_info['postcode_required'] && (utf8_strlen(trim($this->request->post['postcode'])) < 2 || utf8_strlen(trim($this->request->post['postcode'])) > 10)) {
                    
57					$json['error']['postcode'] = $this->language->get('error_postcode');
                    
                
User.php https://github.com/redokes/Framework.git | PHP | 418 lines
                    
1<?php
                    
2class User_Model_User extends Redokes_Model_Model {
                    
189		$primaryKey = intval($primaryKey);
                    
190		$title = trim($db->quote($title), "'");
                    
191		if (!$userId) {
                    
                
parameter.php https://github.com/Shigaru/shigaru.git | PHP | 454 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: parameter.php 14401 2010-01-26 14:10:00Z louis $
                    
4 * @package		Joomla.Framework
                    
6 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
                    
7 * @license		GNU/GPL, see LICENSE.php
                    
8 * Joomla! is free software. This version may have been modified pursuant
                    
11 * other free or open source software licenses.
                    
12 * See COPYRIGHT.php for copyright notices and details.
                    
13 */
                    
20//Register the element class with the loader
                    
21JLoader::register('JElement', dirname(__FILE__).DS.'parameter'.DS.'element.php');
                    
22
                    
82
                    
83		if (trim( $data )) {
                    
84			$this->loadINI($data);
                    
                
Ini.php https://github.com/orchestra-io/sample-openx.git | PHP | 293 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Ini.php 14667 2009-04-05 09:18:21Z rob $
                    
20 */
                    
25 */
                    
26require_once 'Zend/Config.php';
                    
27
                    
105             */
                    
106            require_once 'Zend/Config/Exception.php';
                    
107            throw new Zend_Config_Exception('Filename is not set');
                    
148                     */
                    
149                    require_once 'Zend/Config/Exception.php';
                    
150                    throw new Zend_Config_Exception("Section '$sectionName' cannot be found in $filename");
                    
182             */
                    
183            require_once 'Zend/Config/Exception.php';
                    
184            throw new Zend_Config_Exception($this->_loadFileErrorStr);
                    
                
 

Source

Language