PageRenderTime 515ms queryTime 54ms sortTime 75ms getByIdsTime 133ms findMatchingLines 166ms

100+ results results for 'php implode repo:jelix/jelix-trunk' (515 ms)

Not the results you expected?
projectteams.php https://gitlab.com/julienv/joomleague | PHP | 444 lines
                    
1<?php
                    
2/**
                    
3 * @copyright	Copyright (C) 2006-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 */
                    
15jimport( 'joomla.application.component.model' );
                    
16require_once( JPATH_COMPONENT . DS . 'models' . DS . 'list.php' );
                    
17
                    
87		}
                    
88		$where=(count($where) ? ' WHERE '.implode(' AND ',$where) : '');
                    
89		
                    
118			JArrayHelper::toInteger( $peid );
                    
119			$peids = implode( ',', $peid );
                    
120			$query = "	DELETE
                    
                
InputDefinition.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 455 lines
                    
1<?php
                    
2
                    
182    {
                    
183        return $this->hasAnArrayArgument ? PHP_INT_MAX : count($this->arguments);
                    
184    }
                    
409
                    
410        return implode(' ', $elements);
                    
411    }
                    
                
Database.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 636 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
4 *
                    
5 * $Id: Database.php 3769 2008-12-15 00:48:56Z zombor $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
40	{
                    
41		return 'DELETE FROM '.$this->escape_table($table).' WHERE '.implode(' ', $where);
                    
42	}
                    
57		}
                    
58		return 'UPDATE '.$this->escape_table($table).' SET '.implode(', ', $valstr).' WHERE '.implode(' ',$where);
                    
59	}
                    
238		}
                    
239		return 'INSERT INTO '.$this->escape_table($table).' ('.implode(', ', $keys).') VALUES ('.implode(', ', $values).')';
                    
240	}
                    
                
converter.php https://gitlab.com/hunt9310/ras | PHP | 438 lines
                    
1<?php
                    
2/**
                    
88			$class = array_map( 'ucfirst', $class );
                    
89			$class = 'WR_Pb_Converter_' . implode( '_', $class );
                    
90
                    
128		foreach ( $files as $file ) {
                    
129			if ( 'converter.php' != $file['name'] ) {
                    
130				$converter = substr( $file['name'], 0, -4 );
                    
134				$class = array_map( 'ucfirst', $class );
                    
135				$class = 'WR_Pb_Converter_' . implode( '_', $class );
                    
136
                    
409
                    
410		return implode( '&', $pairs );
                    
411	}
                    
                
Mapper.php https://gitlab.com/yousafsyed/easternglamor | PHP | 407 lines
                    
1<?php
                    
2/**
                    
12/**
                    
13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
14 */
                    
107     * @throws StateException
                    
108     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
109     */
                    
296        $allElements = array_keys($elements);
                    
297        $notUsedElements = implode(', ', array_diff($allElements, $mappedElements));
                    
298        if (!empty($notUsedElements)) {
                    
                
customer.php https://gitlab.com/reclamare/mao | PHP | 392 lines
                    
252		if ($implode) {
                    
253			$sql .= " WHERE " . implode(" AND ", $implode);
                    
254		}
                    
274		if ($implode) {
                    
275			$sql .= " WHERE " . implode(" AND ", $implode);
                    
276		}
                    
310		if ($implode) {
                    
311			$sql .= " WHERE " . implode(" AND ", $implode);
                    
312		}
                    
340		if ($implode) {
                    
341			$sql .= " WHERE " . implode(" AND ", $implode);
                    
342		}
                    
384		if ($implode) {
                    
385			$sql .= " WHERE " . implode(" AND ", $implode);
                    
386		}
                    
                
eztemplateautoload.php https://github.com/Socrattes2099/ezpublish.git | PHP | 206 lines
                    
1<?php
                    
2//
                    
50                                                               'ends_with',
                    
51                                                               'implode',
                    
52                                                               'explode',
                    
201
                    
202// eZTemplatePHPOperator is not autoload due to it's generic use
                    
203// it's up to the users of eZTemplate to initiate a proper usage
                    
                
URI.php https://github.com/mkhairul/Presta.git | PHP | 591 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
165		
                    
166		$parsed_uri = implode("/", array_slice($parsed_uri, $i));
                    
167		
                    
443		
                    
444		return implode('/', $temp);
                    
445	}
                    
583	{
                    
584		return '/'.implode('/', $this->rsegment_array()).'/';
                    
585	}
                    
589
                    
590/* End of file URI.php */
                    
591/* Location: ./system/libraries/URI.php */
                    
                
index.php https://gitlab.com/Mishu_ctg69/Princy_143467_B37_Atomic_project | PHP | 331 lines
                    
41$availableKeywords=$obj->getAllKeywords();
                    
42$comma_separated_keywords= '"'.implode('","',$availableKeywords).'"';
                    
43
                    
111    <div style="margin-top: 40px ;float: left;"> <a href="email.php?list=1" class="btn  btn-success btn-lg" role="button">Email To A Friend</a></br></br></div>
                    
112    <div style="margin-top: 40px ;float: right;"> <a href="../index.php" class="btn btn-info btn-info btn-lg" role="button">Go Atomic Project List</a></br></br></div>
                    
113
                    
126
                    
127                    <div style="float: right;">   <form id="searchForm" action="index.php"  method="get">
                    
128                            <input type="text" value="" id="searchID" name="search" placeholder="Search" width="60" >
                    
172                                <td><?php echo $result['email']?></td>
                    
173                                <td><a href="view.php?id=<?php echo $result['id']  ?>" class="btn btn-primary" role="button">View</a>
                    
174                                    <a href="edit.php?id=<?php echo $result['id'] ?>"  class="btn btn-success" role="button">Edit</a>
                    
175                                    <a href="delete.php?id=<?php echo $result['id'] ?>" class="btn btn-danger" role="button" id="delete"  Onclick="return ConfirmDelete()">Delete</a>
                    
176                                    <a href="trash.php?id=<?php echo $result['id'] ?>"  class="btn btn-info" role="button">Trash</a>
                    
177                                </td>
                    
                
index.php https://gitlab.com/Princy008/Princy_143467_B37_Atomic_project | PHP | 330 lines
                    
41$availableKeywords=$obj->getAllKeywords();
                    
42$comma_separated_keywords= '"'.implode('","',$availableKeywords).'"';
                    
43
                    
112    <div style="margin-top: 40px ;float: left;"> <a href="email.php?list=1" class="btn  btn-success btn-lg" role="button">Email To A Friend</a></br></br></div>
                    
113    <div style="margin-top: 40px ;float: right;"> <a href="../index.php" class="btn btn-info btn-info btn-lg" role="button">Go Atomic Project List</a></br></br></div>
                    
114
                    
126
                    
127                    <div style="float: right;">   <form id="searchForm" action="index.php"  method="get">
                    
128                            <input type="text" value="" id="searchID" name="search" placeholder="Search" width="60" >
                    
172                                <td><?php echo $result['gender']?></td>
                    
173                                <td><a href="view.php?id=<?php echo $result['id']  ?>" class="btn btn-primary" role="button">View</a>
                    
174                                    <a href="edit.php?id=<?php echo $result['id'] ?>"  class="btn btn-info" role="button">Edit</a>
                    
175                                    <a href="delete.php?id=<?php echo $result['id'] ?>" class="btn btn-danger" role="button" id="delete"  Onclick="return ConfirmDelete()">Delete</a>
                    
176                                    <a href="trash.php?id=<?php echo $result['id'] ?>"  class="btn btn-info" role="button">Trash</a>
                    
177                                </td>
                    
                
helper.php https://github.com/trungnthut/dl.git | PHP | 443 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: helper.php 21091 2011-04-06 05:53:50Z infograf768 $
                    
4 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
                    
144		$module->module = preg_replace('/[^A-Z0-9_\.-]/i', '', $module->module);
                    
145		$path = JPATH_BASE.'/modules/'.$module->module.'/'.$module->module.'.php';
                    
146
                    
172
                    
173		require_once JPATH_THEMES.'/system/html/modules.php';
                    
174		$chromePath = JPATH_THEMES.'/'.$app->getTemplate().'/html/modules.php';
                    
236		// Build the template and base path for the layout
                    
237		$tPath = JPATH_THEMES.'/'.$template.'/html/'.$module.'/'.$layout.'.php';
                    
238		$bPath = JPATH_BASE.'/modules/'.$module.'/tmpl/'.$defaultLayout.'.php';
                    
264		$user		= JFactory::getUser();
                    
265		$groups		= implode(',', $user->getAuthorisedViewLevels());
                    
266		$lang 		= JFactory::getLanguage()->getTag();
                    
                
Database.php https://github.com/dannyrealfox/Fu-Chi--Future-Chinatown.git | PHP | 636 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
4 *
                    
5 * $Id: Database.php 3917 2009-01-21 03:06:22Z zombor $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
40	{
                    
41		return 'DELETE FROM '.$this->escape_table($table).' WHERE '.implode(' ', $where);
                    
42	}
                    
57		}
                    
58		return 'UPDATE '.$this->escape_table($table).' SET '.implode(', ', $valstr).' WHERE '.implode(' ',$where);
                    
59	}
                    
238		}
                    
239		return 'INSERT INTO '.$this->escape_table($table).' ('.implode(', ', $keys).') VALUES ('.implode(', ', $values).')';
                    
240	}
                    
                
Null.php https://github.com/sgtcarneiro/horde.git | PHP | 412 lines
                    
1<?php
                    
2/**
                    
137            $name = array_pop($parts);
                    
138            $parent = implode(':', $parts);
                    
139            $pid = $this->getId($parent);
                    
                
UnicodeString.php https://gitlab.com/jjpa2018/dashboard | PHP | 377 lines
                    
1<?php
                    
2
                    
46        $str = clone $this;
                    
47        $str->string = $this->string.(1 >= \count($suffix) ? ($suffix[0] ?? '') : implode('', $suffix));
                    
48        normalizer_is_normalized($str->string) ?: $str->string = normalizer_normalize($str->string);
                    
174        if (0 > $offset) {
                    
175            // workaround https://bugs.php.net/74264
                    
176            if (0 > $offset += grapheme_strlen($needle)) {
                    
221        $str = clone $this;
                    
222        $str->string = (1 >= \count($prefix) ? ($prefix[0] ?? '') : implode('', $prefix)).$this->string;
                    
223        normalizer_is_normalized($str->string) ?: $str->string = normalizer_normalize($str->string);
                    
270
                    
271        if (\PHP_VERSION_ID < 80000 && 0 > $start && grapheme_strlen($this->string) < -$start) {
                    
272            $start = 0;
                    
282
                    
283        if (\PHP_VERSION_ID < 80000 && 0 > $start && grapheme_strlen($this->string) < -$start) {
                    
284            $start = 0;
                    
                
threads.inc.php https://github.com/gcao/bbs.git | PHP | 402 lines
                    
1<?php
                    
2
                    
6
                    
7$Id: threads.inc.php 21059 2009-11-10 01:28:17Z monkey $
                    
8*/
                    
65
                    
66				$keywords = implode(', ', $keywords);
                    
67			}
                    
133		if($query) {
                    
134			require_once DISCUZ_ROOT.'./include/misc.func.php';
                    
135			while ($thread = $db->fetch_array($query)) {
                    
185
                    
186		if($pids = implodeids($delete)) {
                    
187			$tidsdelete = $pidsdelete = '0';
                    
198		if($pidsdelete) {
                    
199			require_once DISCUZ_ROOT.'./include/post.func.php';
                    
200
                    
                
parse_iloc.py https://github.com/v/school.git | Python | 500 lines
                    
177def print_lineobj(lineobj):	
                    
178	return lineobj['instruction']+ "\t"+ implode(lineobj['read'])+ " => "+ lineobj['write']
                    
179
                    
179
                    
180#Implementation of php's implode
                    
181def implode(arr, glue=", "):
                    
288		if(lineobj['instruction'] == 'store'):
                    
289			line += implode(readregs, ' => ' ) + "\n"
                    
290
                    
292			
                    
293			line += implode(readregs)
                    
294
                    
429		if line['instruction'] == 'store':
                    
430			gen_line += implode(readregs, ' => ') + "\n"
                    
431
                    
                
helper.php https://github.com/ramdesh/joomla-platform.git | PHP | 441 lines
                    
1<?php
                    
2/**
                    
144		$module->module = preg_replace('/[^A-Z0-9_\.-]/i', '', $module->module);
                    
145		$path = JPATH_BASE.'/modules/'.$module->module.'/'.$module->module.'.php';
                    
146
                    
171
                    
172		require_once JPATH_THEMES.'/system/html/modules.php';
                    
173		$chromePath = JPATH_THEMES.'/'.$app->getTemplate().'/html/modules.php';
                    
234		// Build the template and base path for the layout
                    
235		$tPath = JPATH_THEMES.'/'.$template.'/html/'.$module.'/'.$layout.'.php';
                    
236		$bPath = JPATH_BASE.'/modules/'.$module.'/tmpl/'.$defaultLayout.'.php';
                    
262		$user		= JFactory::getUser();
                    
263		$groups		= implode(',', $user->getAuthorisedViewLevels());
                    
264		$lang 		= JFactory::getLanguage()->getTag();
                    
                
Schema.php https://github.com/michaelmcandrew/lbc.git | PHP | 370 lines
                    
1<?php
                    
2
                    
36
                    
37require_once 'CRM/Core/DAO.php';
                    
38
                    
57    {
                    
58        require_once 'CRM/Contact/DAO/Contact.php';
                    
59        $dao = new CRM_Contact_DAO_Contact( );
                    
197            SET is_active = 1
                    
198            WHERE value IN ('" . implode("', '", $this->reports) . "')
                    
199        ");
                    
201        // add report instances
                    
202        require_once 'CRM/Report/DAO/Instance.php';
                    
203        $domain_id = CRM_Core_Config::domainID();
                    
264
                    
265        $columns = implode(', ', $this->columnsOf($table));
                    
266        CRM_Core_DAO::executeQuery("INSERT INTO `{$this->db}`.log_$table ($columns, log_conn_id, log_user_id, log_action) SELECT $columns, CONNECTION_ID(), @civicrm_user_id, 'Initialization' FROM {$table}");
                    
                
Relationship.php https://github.com/michaelmcandrew/lms.git | PHP | 313 lines
                    
1<?php
                    
2/*
                    
34 * @copyright CiviCRM LLC (c) 2004-2011
                    
35 * @version $Id: Relationship.php 30486 2010-11-02 16:12:09Z shot $
                    
36 *
                    
41 */
                    
42require_once 'api/v3/utils.php';
                    
43require_once 'CRM/Contact/BAO/Relationship.php';
                    
43require_once 'CRM/Contact/BAO/Relationship.php';
                    
44require_once 'CRM/Contact/BAO/RelationshipType.php';
                    
45
                    
51 * 
                    
52 * {@example RelationshipTypeCreate.php 0}
                    
53 * @return array (reference) id of created or updated record
                    
70        $values = array( );
                    
71        require_once 'CRM/Contact/BAO/Relationship.php';
                    
72        $error = _civicrm_api3_relationship_format_params( $params, $values );
                    
                
complexsumpergame.php https://gitlab.com/julienv/joomleague | PHP | 456 lines
                    
1<?php
                    
2/**
                    
3 * @copyright	Copyright (C) 2006-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 */
                    
14
                    
15require_once(JLG_PATH_ADMIN.DS.'statistics'.DS.'base.php');
                    
16
                    
156		}
                    
157		$query .= '   AND ms.statistic_id IN ('. implode(',', $sqids) .')'
                    
158				. '   AND m.published = 1';
                    
213				. '   AND p.published = 1'
                    
214				. '   AND tp.id IN ('. implode(',', $ids) .')';
                    
215		if ($division_id != 0)
                    
                
class-wc-shipping-zone.php https://gitlab.com/0072016/woocommerce | PHP | 438 lines
                    
1<?php
                    
2
                    
201			$remaining = sizeof( $location_parts ) - $max;
                    
202			return sprintf( _n( '%s and %d other region', '%s and %d other regions', $remaining, 'woocommerce' ), implode( ', ', array_splice( $location_parts, 0, $max ) ), $remaining );
                    
203		} else {
                    
203		} else {
                    
204			return implode( ', ', $location_parts );
                    
205		}
                    
                
GenesisAdmin.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 317 lines
                    
112                <div id="<?php echo esc_attr($id)?>">
                    
113                <input type="hidden" name="<?php echo esc_attr($name)?>" value="" />
                    
114                <?php foreach( get_editable_roles() as $role_name => $role_data ) : ?>
                    
114                <?php foreach( get_editable_roles() as $role_name => $role_data ) : ?>
                    
115                    <input <?php disabled(w3_extension_is_sealed('genesis.theme')) ?> type="checkbox" name="<?php echo esc_attr($name)?>[]" value="<?php echo $role_name ?>" <?php checked( in_array( $role_name, $saved_roles ) ) ?> id="role_<?php echo $role_name ?>" />
                    
116                    <label for="role_<?php echo $role_name ?>"><?php echo $role_data['name'] ?></label>
                    
116                    <label for="role_<?php echo $role_name ?>"><?php echo $role_data['name'] ?></label>
                    
117                <?php endforeach; ?>
                    
118                </div>
                    
125                <div id="<?php echo esc_attr($id)?>">
                    
126                    <input <?php disabled(w3_extension_is_sealed('genesis.theme')) ?> type="hidden" name="<?php echo esc_attr($name)?>" value="" />
                    
127                <?php foreach( $hooks as $hook => $hook_label ) : ?>
                    
127                <?php foreach( $hooks as $hook => $hook_label ) : ?>
                    
128                    <input <?php disabled(w3_extension_is_sealed('genesis.theme')) ?> type="checkbox" name="<?php echo esc_attr($name)?>[]" value="<?php echo $hook ?>" <?php checked( in_array( $hook, $saved_hooks ) ) ?> id="role_<?php echo $hook ?>" />
                    
129                    <label for="role_<?php echo $hook ?>"><?php echo $hook_label ?></label><br />
                    
                
Database.php https://github.com/Juuro/Dreamapp-Website.git | PHP | 636 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
4 *
                    
5 * $Id: Database.php 19191 2008-12-15 05:35:20Z bharat $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
40	{
                    
41		return 'DELETE FROM '.$this->escape_table($table).' WHERE '.implode(' ', $where);
                    
42	}
                    
57		}
                    
58		return 'UPDATE '.$this->escape_table($table).' SET '.implode(', ', $valstr).' WHERE '.implode(' ',$where);
                    
59	}
                    
238		}
                    
239		return 'INSERT INTO '.$this->escape_table($table).' ('.implode(', ', $keys).') VALUES ('.implode(', ', $values).')';
                    
240	}
                    
                
Mssql.php https://gitlab.com/yousafsyed/easternglamor | PHP | 423 lines
                    
1<?php
                    
2/**
                    
26 */
                    
27#require_once 'Zend/Db/Adapter/Pdo/Abstract.php';
                    
28
                    
93            $seperator = ':';
                    
94            if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
                    
95                $seperator = ',';
                    
101        // this driver supports multiple DSN prefixes
                    
102        // @see http://www.php.net/manual/en/ref.pdo-dblib.connection.php
                    
103        if (isset($dsn['pdoType'])) {
                    
124
                    
125        $dsn = $this->_pdoType . ':' . implode(';', $dsn);
                    
126        return $dsn;
                    
321            /** @see Zend_Db_Adapter_Exception */
                    
322            #require_once 'Zend/Db/Adapter/Exception.php';
                    
323            throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid");
                    
                
Database.php https://github.com/scarygary/gallery3.git | PHP | 636 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
4 *
                    
5 * $Id: Database.php 4343 2009-05-08 17:04:48Z jheathco $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
40	{
                    
41		return 'DELETE FROM '.$this->escape_table($table).' WHERE '.implode(' ', $where);
                    
42	}
                    
57		}
                    
58		return 'UPDATE '.$this->escape_table($table).' SET '.implode(', ', $valstr).' WHERE '.implode(' ',$where);
                    
59	}
                    
238		}
                    
239		return 'INSERT INTO '.$this->escape_table($table).' ('.implode(', ', $keys).') VALUES ('.implode(', ', $values).')';
                    
240	}
                    
                
CustomValue.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 396 lines
                    
1<?php
                    
2/*
                    
76    if (is_array($param)) {
                    
77      $param = $sp . implode($sp, $param) . $sp;
                    
78    }
                    
                
Mssql.php https://github.com/grandison/budo16.git | PHP | 423 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Mssql.php 17792 2009-08-24 16:18:02Z ralph $
                    
21 */
                    
26 */
                    
27// require_once 'Zend/Db/Adapter/Pdo/Abstract.php';
                    
28
                    
93            $seperator = ':';
                    
94            if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
                    
95                $seperator = ',';
                    
101        // this driver supports multiple DSN prefixes
                    
102        // @see http://www.php.net/manual/en/ref.pdo-dblib.connection.php
                    
103        if (isset($dsn['pdoType'])) {
                    
124
                    
125        $dsn = $this->_pdoType . ':' . implode(';', $dsn);
                    
126        return $dsn;
                    
                
Part.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 665 lines
                    
1<?php
                    
2
                    
426
                    
427						$this->Headers->Parse(implode($aHeadersLines))->SetParentCharset($this->HeaderCharset());
                    
428						$aHeadersLines = array();
                    
581
                    
582				$this->Headers->Parse(implode($aHeadersLines))->SetParentCharset($this->HeaderCharset());
                    
583				$aHeadersLines = array();
                    
599			{
                    
600				$this->Headers->Parse(implode($aHeadersLines))->SetParentCharset($this->HeaderCharset());
                    
601				$aHeadersLines = array();
                    
                
PwInstall.php https://gitlab.com/wuhang2003/phpwind | PHP | 428 lines
                    
1<?php
                    
2Wind::import('APPCENTER:service.srv.iPwInstall');
                    
7 * @author Qiong Wu <papa0924@gmail.com>
                    
8 * @copyright ©2003-2103 phpwind.com
                    
9 * @license http://www.windframework.com
                    
9 * @license http://www.windframework.com
                    
10 * @version $Id: PwInstall.php 24585 2013-02-01 04:02:37Z jieyin $
                    
11 * @package wind
                    
15	const DB_TABLE = 'conf/data.sql';
                    
16	const CONTROLLER = 'controller/IndexController.php';
                    
17	const ADMIN = 'admin/ManageController.php';
                    
19	/*
                    
20	 * (non-PHPdoc) @see iPwInstall::unInstall()
                    
21	 */
                    
47	/*
                    
48	 * (non-PHPdoc) @see iPwInstall::install()
                    
49	 */
                    
                
Criterion.php https://github.com/1989gaurav/Propel.git | PHP | 543 lines
                    
1<?php
                    
2
                    
332				$field = ($this->table === null) ? $this->column : $this->table . '.' . $this->column;
                    
333				$sb .= $field . $this->comparison . '(' . implode(',', $bindParams) . ')';
                    
334			} else {
                    
481		foreach ( $this->clauses as $clause ) {
                    
482			// TODO: i KNOW there is a php incompatibility with the following line
                    
483			// but i dont remember what it is, someone care to look it up and
                    
                
Template.php https://bitbucket.org/laborautonomo/laborautonomo-site.git | PHP | 455 lines
                    
1<?php
                    
2
                    
298     * implementation detail that has been introduced to optimize variable
                    
299     * access for versions of PHP before 5.4. This is not a way to override
                    
300     * the way to get a variable value.
                    
364                } elseif (is_array($object)) {
                    
365                    throw new Twig_Error_Runtime(sprintf('Key "%s" for array with keys "%s" does not exist', $arrayItem, implode(', ', array_keys($object))), -1, $this->getTemplateName());
                    
366                } elseif (Twig_TemplateInterface::ARRAY_CALL === $type) {
                    
                
_kohana.php https://bitbucket.org/seyar/kinda.local.git | PHP | 403 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2
                    
6* Owing that classes can be loaded faster and app performance can be increased. 
                    
7* It will likely be more effective on multiple files PHP applications of big overall size.
                    
8* 
                    
13*   Kohana::$caching_merged['status'] = TRUE;
                    
14* and other needed settings (see below) anywhere in APPPATH/bootstrap.php (preferably closer to beginning, 
                    
15* but before other than Kohana class methods invokation; I put them right after Kohana::init())
                    
295            {
                    
296                file_put_contents($dir.$file, Kohana::FILE_SECURITY.PHP_EOL);
                    
297                
                    
366                    
                    
367                    // cut leading and trailing php tags if they are presented
                    
368                    if (strpos($data[$key], '<?php') === 0)
                    
384               
                    
385                $dump = PHP_EOL.implode(PHP_EOL, $data);
                    
386                
                    
                
App.php https://github.com/Hildy/cerb5.git | PHP | 564 lines
                    
1<?php
                    
2class ChFnrAjaxController extends DevblocksControllerExtension {
                    
64				DAO_FnrExternalResource::ID,
                    
65				implode(',', array_keys($sources))
                    
66			);
                    
350		
                    
351		$id_list = implode(',', $ids);
                    
352		$db->Execute(sprintf("DELETE QUICK FROM fnr_query WHERE id IN (%s)",$id_list));
                    
386
                    
387		$ids_string = implode(',', $ids);
                    
388		
                    
468			self::_TABLE,
                    
469			implode(',', $ids)
                    
470		);
                    
                
base.php https://github.com/bermi/akelos.git | PHP | 374 lines
                    
1<?php
                    
2
                    
20
                    
21        $source = preg_match('/^<\?php.*/', $source)?$source:"<?php ".$source;
                    
22        $this->tokens = token_get_all($source);
                    
43                            $byReference = true;
                    
44                        } else if (((defined('T_DOC_COMMENT')?$prev[0] == T_DOC_COMMENT:false) || T_COMMENT) && !@preg_match('/<\?php.*/',$prev[1]) && @preg_match('/\/\*/',$prev[1])) {
                    
45                            $docBlock = isset($prev[1])?$prev[1]:null;
                    
66                            }
                    
67                            $docBlock=implode("\n",$doclines);
                    
68                        }
                    
71                    }
                    
72                    $docBlock = str_replace('<?php','',$docBlock);
                    
73                    $string = (!empty($docBlock)?$docBlock."\n":'').($visibility?$visibility.' ':'').($static?' static ':'');
                    
180            }
                    
181            $docBlockStructure['comment'] = trim(implode("\n",$commentLines));
                    
182            $docBlockStructure['tags'] = $tags;
                    
                
Direct.php https://gitlab.com/yousafsyed/easternglamor | PHP | 511 lines
                    
1<?php
                    
2/**
                    
12 * PayPal Direct Module
                    
13 * @SuppressWarnings(PHPMD.TooManyFields)
                    
14 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
154     * @param array $data
                    
155     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
                    
156     */
                    
257        }
                    
258        return implode(',', $ccTypes);
                    
259    }
                    
277     * @return null|string
                    
278     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
                    
279     */
                    
                
URI.php https://github.com/romaricdrigon/Keypass-server.git | PHP | 623 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 *
                    
64			// Is the request coming from the command line?
                    
65			if (php_sapi_name() == 'cli' or defined('STDIN'))
                    
66			{
                    
192
                    
193		$uri = parse_url($uri, PHP_URL_PATH);
                    
194
                    
212
                    
213		return $args ? '/' . implode('/', $args) : '';
                    
214	}
                    
228		{
                    
229			// preg_quote() in PHP 5.3 escapes -, so the str_replace() and addition of - to preg_quote() is to maintain backwards
                    
230			// compatibility as many are unaware of how characters in the permitted_uri_chars will be parsed as a regex pattern
                    
                
File.php https://github.com/razvanp/zfs.git | PHP | 465 lines
                    
25 */
                    
26require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
30 */
                    
31require_once 'Zend/CodeGenerator/Php/Class.php';
                    
32
                    
38 */
                    
39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
                    
40{
                    
86        if ($fileName == '') {
                    
87            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
88            throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.');
                    
113            if ( ($realpath = Zend_Reflection_file::findRealpathInIncludePath($filePath)) === false) {
                    
114                require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
115                throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');
                    
                
Part.php https://bitbucket.org/acidel/buykoala.git | PHP | 520 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Part.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 */
                    
25 */
                    
26#require_once 'Zend/Mime/Decode.php';
                    
27
                    
30 */
                    
31#require_once 'Zend/Mail/Part/Interface.php';
                    
32
                    
110                 */
                    
111                #require_once 'Zend/Mail/Exception.php';
                    
112                throw new Zend_Mail_Exception('handler is not a valid mail handler');
                    
117                 */
                    
118                #require_once 'Zend/Mail/Exception.php';
                    
119                throw new Zend_Mail_Exception('need a message id with a handler');
                    
                
PluginLoader.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 480 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: PluginLoader.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
23/** Zend_Loader_PluginLoader_Interface */
                    
24// require_once 'Zend/Loader/PluginLoader/Interface.php';
                    
25
                    
26/** Zend_Loader */
                    
27// require_once 'Zend/Loader.php';
                    
28
                    
141        if (!is_string($prefix) || !is_string($path)) {
                    
142            // require_once 'Zend/Loader/PluginLoader/Exception.php';
                    
143            throw new Zend_Loader_PluginLoader_Exception('Zend_Loader_PluginLoader::addPrefixPath() method only takes strings for prefix and path.');
                    
246        if (!isset($registry[$prefix])) {
                    
247            // require_once 'Zend/Loader/PluginLoader/Exception.php';
                    
248            throw new Zend_Loader_PluginLoader_Exception('Prefix ' . $prefix . ' was not found in the PluginLoader.');
                    
                
PluginLoader.php https://github.com/grandison/budo16.git | PHP | 480 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: PluginLoader.php 18207 2009-09-17 22:29:50Z beberlei $
                    
21 */
                    
23/** Zend_Loader_PluginLoader_Interface */
                    
24// require_once 'Zend/Loader/PluginLoader/Interface.php';
                    
25
                    
26/** Zend_Loader */
                    
27// require_once 'Zend/Loader.php';
                    
28
                    
141        if (!is_string($prefix) || !is_string($path)) {
                    
142            // require_once 'Zend/Loader/PluginLoader/Exception.php';
                    
143            throw new Zend_Loader_PluginLoader_Exception('Zend_Loader_PluginLoader::addPrefixPath() method only takes strings for prefix and path.');
                    
246        if (!isset($registry[$prefix])) {
                    
247            // require_once 'Zend/Loader/PluginLoader/Exception.php';
                    
248            throw new Zend_Loader_PluginLoader_Exception('Prefix ' . $prefix . ' was not found in the PluginLoader.');
                    
                
class-wp-theme-install-list-table.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 431 lines
                    
1<?php
                    
2/**
                    
86					$args['tag'] = $this->features;
                    
87					$_REQUEST['s'] = implode( ',', $this->features );
                    
88					$_REQUEST['type'] = 'tag';
                    
145			$class = ( $action == $tab ) ? ' class="current"' : '';
                    
146			$href = self_admin_url('theme-install.php?tab=' . $action);
                    
147			$display_tabs['theme-install-'.$action] = "<a href='$href'$class>$text</a>";
                    
157			<div class="alignleft actions">
                    
158				<?php
                    
159				/**
                    
266		?>
                    
267		<a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>">
                    
268			<img src="<?php echo esc_url( $theme->screenshot_url ); ?>" width="150" />
                    
282
                    
283		<?php
                    
284		$this->install_theme_info( $theme );
                    
                
firebird.php https://github.com/lucanos/scuttle.git | PHP | 527 lines
                    
6* @copyright (c) 2005 phpBB Group 
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
                    
8*
                    
198
                    
199			$query = ' (' . implode(', ', $fields) . ') VALUES (' . implode(', ', $values) . ')';
                    
200		}
                    
235	{
                    
236		// TODO: hmm, maybe doing something similar as in mssql-odbc.php?
                    
237		return ($this->query_result) ? true : false;
                    
402		{
                    
403			$this_page =(!empty($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : $_ENV['PHP_SELF'];
                    
404			$this_page .= '&' .((!empty($_SERVER['QUERY_STRING'])) ? $_SERVER['QUERY_STRING'] : $_ENV['QUERY_STRING']);
                    
454				echo '</style><title>' . $msg_title . '</title></head><body>';
                    
455				echo '<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td><a href="' . htmlspecialchars(preg_replace('/&explain=([^&]*)/', '', $_SERVER['REQUEST_URI'])) . '"><img src="' . $phpbb_root_path . 'adm/images/header_left.jpg" width="200" height="60" alt="phpBB Logo" title="phpBB Logo" border="0"/></a></td><td width="100%" background="' . $phpbb_root_path . 'adm/images/header_bg.jpg" height="60" align="right" nowrap="nowrap"><span class="maintitle">SQL Report</span> &nbsp; &nbsp; &nbsp;</td></tr></table><br clear="all"/><table width="95%" cellspacing="1" cellpadding="4" border="0" align="center"><tr><td height="40" align="center" valign="middle"><b>Page generated in ' . round($totaltime, 4) . " seconds with {$this->num_queries} queries" . (($cache_num_queries) ? " + $cache_num_queries " . (($cache_num_queries == 1) ? 'query' : 'queries') . ' returning data from cache' : '') . '</b></td></tr><tr><td align="center" nowrap="nowrap">Time spent on MySQL queries: <b>' . round($this->sql_time, 5) . 's</b> | Time spent on PHP: <b>' . round($totaltime - $this->sql_time, 5) . 's</b></td></tr></table><table width="95%" cellspacing="1" cellpadding="4" border="0" align="center"><tr><td>';
                    
456				echo $sql_report;
                    
                
laybuy.php https://gitlab.com/shapcy/opencart | PHP | 362 lines
                    
113		if (!empty($data['filter_dp_percent'])) {
                    
114			$implode[] = "`lt`.`downpayment` = '" . (int)$data['filter_dp_percent'] . "'";
                    
115		}
                    
117		if (!empty($data['filter_months'])) {
                    
118			$implode[] = "`lt`.`months` = '" . (int)$data['filter_months'] . "'";
                    
119		}
                    
129		if ($implode) {
                    
130			$sql .= " AND " . implode(" AND ", $implode);
                    
131		}
                    
184		if (!empty($data['filter_order_id'])) {
                    
185			$implode[] = "`lt`.`order_id` = '" . (int)$data['filter_order_id'] . "'";
                    
186		}
                    
208		if ($implode) {
                    
209			$sql .= " AND " . implode(" AND ", $implode);
                    
210		}
                    
                
Migrator.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 527 lines
                    
1<?php
                    
2
                    
300        return Collection::make($paths)->flatMap(function ($path) {
                    
301            return $this->files->glob($path.'/*_*.php');
                    
302        })->filter()->sortBy(function ($file) {
                    
407    {
                    
408        $class = Str::studly(implode('_', array_slice(explode('_', $file), 4)));
                    
409
                    
420    {
                    
421        return str_replace('.php', '', basename($path));
                    
422    }
                    
                
country_list.php https://gitlab.com/alexprowars/bitrix | PHP | 424 lines
                    
1<?php
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/prolog.php");
                    
4/** @var CMain $APPLICATION */
                    
4/** @var CMain $APPLICATION */
                    
5include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/colors.php");
                    
6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/img.php");
                    
83
                    
84$str = (is_array($find_country_id)) ? implode(" | ",$find_country_id) : "";
                    
85$arFilter = Array(
                    
122			<td valign="center">
                    
123				<img src="/bitrix/admin/country_graph.php?find_data_type=<?=$find_data_type?><?=GetFilterParams($FilterArr)?>&width=<?=$width?>&height=<?=$height?>&lang=<? echo LANG?>" width="<?=$width?>" height="<?=$height?>"></td>
                    
124			</td>
                    
132	<tr>
                    
133		<td valign="center"><img src="/bitrix/admin/country_diagram.php?<?=GetFilterParams($FilterArr)?>&lang=<?=LANG?>&find_data_type=<?=$find_data_type?>" width="<?=$diameter?>" height="<?=$diameter?>"></td>
                    
134		<td valign="center">
                    
                
Innodb.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 330 lines
                    
1<?php
                    
2/**
                    
7
                    
8namespace PhpMyAdmin\Engines;
                    
9
                    
9
                    
10use PhpMyAdmin\StorageEngine;
                    
11use PhpMyAdmin\Util;
                    
14use function htmlspecialchars;
                    
15use function implode;
                    
16
                    
143            . ' / '
                    
144            . implode('&nbsp;', $bytes) . "\n"
                    
145            . '            </th>' . "\n"
                    
299     *
                    
300     * (do not confuse this with phpMyAdmin's storage engine plugins!)
                    
301     *
                    
                
document.php https://github.com/mblodau/GMTJ.git | PHP | 583 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version   $Id: document.php 221 2011-06-11 17:30:33Z happy_noodle_boy $
                    
4 * @package      JCE
                    
245			if (count($parts)) {
                    
246				$pre = rtrim($pre, '/') . '/' . implode('/', $parts);
                    
247			}
                    
289
                    
290		return $this->getBaseURL($root) . implode('/', $parts);
                    
291	}
                    
459		if ($this->get('compress_javascript', 0)) {
                    
460			$script = JURI::base(true) . '/index.php?option=com_jce&view=editor&layout='.$layout.'&'.$layout.'=' . $item . $dialog . $standalone . '&task=pack&' . $token . '=1';
                    
461			$output .= "\t\t<script type=\"text/javascript\" src=\"" . $script . "\"></script>\n";
                    
468		if ($this->get('compress_css', 0)) {
                    
469			$file = JURI::base(true) . '/index.php?option=com_jce&view=editor&layout='.$layout.'&'.$layout.'=' . $item . $dialog . $standalone . '&task=pack&type=css&' . $token . '=1';
                    
470
                    
                
transition.php https://github.com/antz29/transition.git | PHP | 484 lines
                    
1<?php
                    
2
                    
24	{
                    
25		if (!file_exists(ROOT.'config.php')) {
                    
26			$settings = array();			
                    
28		else {
                    
29			$settings = include(ROOT.'config.php');
                    
30		}	
                    
34		echo "Set {$setting} to '{$value}'\n";
                    
35		file_put_contents(ROOT.'config.php','<?php return '.var_export($settings,true).';');
                    
36	}
                    
158				}
                    
159				$task['target'] = implode(',',$task['target']);
                    
160			}
                    
235				
                    
236			//implode to get the project name
                    
237			$project = implode($project);
                    
                
Parser.php https://github.com/ocStore/ocStore.git | PHP | 519 lines
                    
1<?php
                    
2namespace JmesPath;
                    
505                . " the following tokens: "
                    
506                . implode(', ', array_map(function ($i) {
                    
507                    return '"' . substr($i, 4) . '"';
                    
                
Abstract.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 462 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 */
                    
146            }
                    
147            $deleteCondition = implode(' AND ', $condition);
                    
148        }
                    
239        }
                    
240        $whereCondition = implode(' OR ', $whereCondition);
                    
241        if ($whereCondition == '') {
                    
282                array($relatedAlias => $relatedTable),
                    
283                implode(' AND ', $joinConditionSql),
                    
284                array()
                    
                
Google_OAuth2.php https://bitbucket.org/insigngmbh/googlephpapi.git | PHP | 453 lines
                    
1<?php
                    
2/*
                    
17
                    
18require_once "Google_Verifier.php";
                    
19require_once "Google_LoginTicket.php";
                    
19require_once "Google_LoginTicket.php";
                    
20require_once "service/Google_Utils.php";
                    
21
                    
150    }
                    
151    $params = implode('&', $params);
                    
152    return self::OAUTH2_AUTH_URL . "?$params";
                    
                
pagebreak.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 368 lines
                    
1<?php
                    
2/**
                    
225
                    
226				$row->text = implode(' ', $t);
                    
227			}
                    
                
categories.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 305 lines
                    
1<?php
                    
2/**
                    
196		{
                    
197			$groups = implode(',', $user->getAuthorisedViewLevels());
                    
198			$query->where('a.access IN (' . $groups . ')');
                    
297			$hname = $cname . 'HelperAssociation';
                    
298			JLoader::register($hname, JPATH_SITE . '/components/' . $component . '/helpers/association.php');
                    
299
                    
                
table.php https://bitbucket.org/Maron1/taqman.git | PHP | 462 lines
                    
1<?php namespace Laravel\Database\Schema;
                    
2
                    
160
                    
161			$name = $name.'_'.implode('_', $columns).'_'.$type;
                    
162		}
                    
                
facebooknewsitem.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 208 lines
                    
1<?php
                    
2
                    
134        // Build the WHERE clause for the primary keys.
                    
135        $where = $k . '=' . implode(' OR ' . $k . '=', $pks);
                    
136
                    
                
MarkdownDescriptor.php https://gitlab.com/pr0055/symfonypizza | PHP | 371 lines
                    
1<?php
                    
2
                    
55            ."\n".'- Host Regex: '.('' !== $route->getHost() ? $route->compile()->getHostRegex() : '')
                    
56            ."\n".'- Scheme: '.($route->getSchemes() ? implode('|', $route->getSchemes()) : 'ANY')
                    
57            ."\n".'- Method: '.($route->getMethods() ? implode('|', $route->getMethods()) : 'ANY')
                    
                
legacy.php https://github.com/MikeLockz/lockwitz.git | PHP | 396 lines
                    
168<input type="hidden" name="action" value="delete" />
                    
169<?php printf(__('There are currently %1$s comments identified as spam.'), $spam_count); ?>&nbsp; &nbsp; <input type="submit" class="button delete" name="Submit" value="<?php _e('Delete all'); ?>" />
                    
170<input type="hidden" name="display_time" value="<?php echo current_time('mysql', 1); ?>" />
                    
208<ul class="akismet-tabs">
                    
209<li <?php if ( !isset( $_GET['ctype'] ) ) echo ' class="active"'; ?>><a href="edit-comments.php?page=akismet-admin"><?php _e('All'); ?></a></li>
                    
210<?php
                    
281
                    
282<p><strong><?php comment_author() ?></strong> <?php if ($comment->comment_author_email) { ?>| <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_url && 'http://' != $comment->comment_author_url) { ?> | <?php comment_author_url_link() ?> <?php } ?>| <?php _e('IP:') ?> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></p>
                    
283
                    
286<p><label for="spam-<?php echo $comment->comment_ID; ?>">
                    
287<input type="checkbox" id="spam-<?php echo $comment->comment_ID; ?>" name="not_spam[]" value="<?php echo $comment->comment_ID; ?>" />
                    
288<?php _e('Not Spam') ?></label> &#8212; <?php comment_date('M j, g:i A');  ?> &#8212; [
                    
293?>
                    
294 <a href="<?php echo get_permalink($comment->comment_post_ID); ?>" title="<?php echo $post_title; ?>"><?php _e('View Post') ?></a> ] </p>
                    
295
                    
                
BrowserConsoleHandler.php https://gitlab.com/ealexis.t/trends | PHP | 230 lines
                    
1<?php
                    
2
                    
56     * Convert records to javascript console commands and send it to the browser.
                    
57     * This method is automatically called on PHP shutdown if output is HTML or Javascript.
                    
58     */
                    
88    {
                    
89        if (PHP_SAPI !== 'cli') {
                    
90            register_shutdown_function(array('Monolog\Handler\BrowserConsoleHandler', 'send'));
                    
151
                    
152        return "(function (c) {if (c && c.groupCollapsed) {\n" . implode("\n", $script) . "\n}})(console);";
                    
153    }
                    
227    {
                    
228        return 'c.' . $method . '(' . implode(', ', $args) . ');';
                    
229    }
                    
                
Article.php https://gitlab.com/forby/Trace | PHP | 358 lines
                    
1<?php namespace App;
                    
2
                    
159
                    
160		return implode(' ', $classes);
                    
161	}
                    
                
CreateZipFile.inc.php https://bitbucket.org/cfraunholz/big-red-button.git | PHP | 220 lines
                    
1<?php
                    
2/**
                    
42		$this->compressedData[] = $feedArrayRow;
                    
43		$newOffset = strlen(implode("", $this->compressedData));
                    
44		$addCentralRecord = "\x50\x4b\x01\x02";
                    
95		$this->compressedData[] = $feedArrayRow;
                    
96		$newOffset = strlen(implode("", $this->compressedData));
                    
97		$addCentralRecord = "\x50\x4b\x01\x02";
                    
125	public function getZippedfile() {
                    
126		$data = implode("", $this->compressedData);
                    
127		$controlDirectory = implode("", $this->centralDirectory);
                    
                
index.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 428 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
25
                    
26require('../../config.php');
                    
27require_once($CFG->libdir . '/completionlib.php');
                    
66
                    
67$url = new moodle_url('/report/progress/index.php', array('course'=>$id));
                    
68if ($sort !== '') {
                    
92// nothing to display (no users or no activities)
                    
93$reportsurl = $CFG->wwwroot.'/course/report.php?id='.$course->id;
                    
94$completion = new completion_info($course);
                    
111// Get user match count
                    
112$total = $completion->get_num_tracked_users(implode(' AND ', $where), $where_params, $group);
                    
113
                    
121    $progress = $completion->get_progress_all(
                    
122        implode(' AND ', $where),
                    
123        $where_params,
                    
                
PhpClass.php https://github.com/Shreef/zf2.git | PHP | 566 lines
                    
148     * 
                    
149     * @param Zend\CodeGenerator\Php\PhpFile $phpFile
                    
150     */
                    
150     */
                    
151    public function setPhpFile(PhpFile $phpFile)
                    
152    {
                    
202     * @param $namespaceName
                    
203     * @return Zend\CodeGenerator\Php\PhpClass
                    
204     */
                    
333     * @param array|\Zend\CodeGenerator\Php\PhpProperty $property
                    
334     * @return \Zend\CodeGenerator\Php\PhpClass
                    
335     */
                    
562        $this->_properties = new PhpMember\MemberContainer(PhpMember\MemberContainer::TYPE_PROPERTY);
                    
563        $this->_methods = new PhpMember\MemberContainer(PhpMember\MemberContainer::TYPE_METHOD);
                    
564    }
                    
                
Post.php https://github.com/kervin/kyzstudio.git | PHP | 292 lines
                    
1<?php
                    
2
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: Post.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
22 */
                    
27 */
                    
28#require_once 'Zend/Date.php';
                    
29
                    
32 */
                    
33#require_once 'Zend/Service/Delicious/SimplePost.php';
                    
34
                    
93             */
                    
94            #require_once 'Zend/Service/Delicious/Exception.php';
                    
95            throw new Zend_Service_Delicious_Exception("Second argument must be array with at least 2 keys ('url' and"
                    
102             */
                    
103            #require_once 'Zend/Service/Delicious/Exception.php';
                    
104            throw new Zend_Service_Delicious_Exception("Date has to be an instance of Zend_Date");
                    
                
em-tickets.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 238 lines
                    
1<?php
                    
2/**
                    
112		if(count($ticket_ids) > 0){
                    
113			$bookings = $wpdb->get_var("SELECT COUNT(*) FROM ". EM_TICKETS_BOOKINGS_TABLE." WHERE ticket_id IN (".implode(',',$ticket_ids).")");
                    
114			if( $bookings > 0 ){
                    
117			}else{
                    
118				$result = $wpdb->query("DELETE FROM ".EM_TICKETS_TABLE." WHERE event_id IN (".implode(',',$ticket_ids).")");
                    
119			}
                    
                
ExtractStyleBlocks.php https://github.com/mackensen/moodle.git | PHP | 341 lines
                    
1<?php
                    
2
                    
2
                    
3// why is this a top level function? Because PHP 5.2.0 doesn't seem to
                    
4// understand how to interpret this filter if it's a static method.
                    
16 * @note
                    
17 *      See tests/HTMLPurifier/Filter/ExtractStyleBlocksTest.php for
                    
18 *      sample usage.
                    
302                }
                    
303                $selector = implode(', ', $new_selectors);
                    
304                foreach ($style as $name => $value) {
                    
                
LanguageTyv.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 226 lines
                    
1<?php
                    
2
                    
67					if ( in_array( $wordLastVowel, $roundFrontVowels ) ) {
                    
68						$word = implode( "", $ar[0] ) . "түң";
                    
69					} elseif ( in_array( $wordLastVowel, $unroundFrontVowels ) ) {
                    
69					} elseif ( in_array( $wordLastVowel, $unroundFrontVowels ) ) {
                    
70						$word = implode( "", $ar[0] ) . "тиң";
                    
71					} elseif ( in_array( $wordLastVowel, $roundBackVowels ) ) {
                    
71					} elseif ( in_array( $wordLastVowel, $roundBackVowels ) ) {
                    
72						$word = implode( "", $ar[0] ) . "туң";
                    
73					} elseif ( in_array( $wordLastVowel, $unroundBackVowels ) ) {
                    
73					} elseif ( in_array( $wordLastVowel, $unroundBackVowels ) ) {
                    
74						$word = implode( "", $ar[0] ) . "тың";
                    
75					} else {
                    
78					if ( in_array( $wordLastVowel, $roundFrontVowels ) ) {
                    
79						$word = implode( "", $ar[0] ) . "дүң";
                    
80					} elseif ( in_array( $wordLastVowel, $unroundFrontVowels ) ) {
                    
                
Post.php https://github.com/grjones/qframe.git | PHP | 292 lines
                    
1<?php
                    
2
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: Post.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
22 */
                    
27 */
                    
28require_once 'Zend/Date.php';
                    
29
                    
32 */
                    
33require_once 'Zend/Service/Delicious/SimplePost.php';
                    
34
                    
93             */
                    
94            require_once 'Zend/Service/Delicious/Exception.php';
                    
95            throw new Zend_Service_Delicious_Exception("Second argument must be array with at least 2 keys ('url' and"
                    
102             */
                    
103            require_once 'Zend/Service/Delicious/Exception.php';
                    
104            throw new Zend_Service_Delicious_Exception("Date has to be an instance of Zend_Date");
                    
                
cubrid_forge.php https://gitlab.com/RikaPM/manik | PHP | 289 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 *
                    
74			// Numeric field names aren't allowed in databases, so if the key is
                    
75			// numeric, we know it was assigned by PHP and the developer manually
                    
76			// entered the field information, so we'll simply add it to the list
                    
102							case 'numeric':
                    
103								$sql .= '('.implode(',', $attributes['CONSTRAINT']).')';
                    
104								break;
                    
108							case 'set':
                    
109								$sql .= '("'.implode('","', $attributes['CONSTRAINT']).'")';
                    
110								break;
                    
189			$key_name = "pk_" . $table . "_" .
                    
190				$this->db->_protect_identifiers(implode('_', $primary_keys));
                    
191			
                    
                
ScreenArchive.php https://gitlab.com/slondon/fortissimo | PHP | 302 lines
                    
1<?php
                    
2
                    
2
                    
3require_once 'lib/abstract_regular_screen.php';
                    
4
                    
4
                    
5require_once 'tools/Common.php';
                    
6require_once 'tools/ScreenNavigator.php';
                    
253
                    
254		$file_path = implode('/', array($full_path, $name));
                    
255
                    
                
Html.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 453 lines
                    
38 * @version  CVS: $Id: Html.php,v 1.12 2008/07/22 20:26:19 farell Exp $
                    
39 * @link     http://pear.php.net/package/PHP_CompatInfo
                    
40 * @since    File available since Release 1.8.0b4
                    
43require_once 'HTML/Table.php';
                    
44require_once 'HTML/CSS.php';
                    
45
                    
57 * @version  Release: 1.8.1
                    
58 * @link     http://pear.php.net/package/PHP_CompatInfo
                    
59 * @since    Class available since Release 1.8.0b4
                    
60 */
                    
61class PHP_CompatInfo_Renderer_Html extends PHP_CompatInfo_Renderer
                    
62{
                    
394        if (!isset($css)) {
                    
395            $css = 'C:\php5\pear\data' . DIRECTORY_SEPARATOR
                    
396                 . 'PHP_CompatInfo' . DIRECTORY_SEPARATOR
                    
                
Helpers.php https://bitbucket.org/iiic/iszp.git | PHP | 233 lines
                    
1<?php
                    
2
                    
75		if (is_bool($var)) {
                    
76			return '<span class="php-bool">' . ($var ? 'TRUE' : 'FALSE') . "</span>\n";
                    
77
                    
78		} elseif ($var === NULL) {
                    
79			return "<span class=\"php-null\">NULL</span>\n";
                    
80
                    
81		} elseif (is_int($var)) {
                    
82			return "<span class=\"php-int\">$var</span>\n";
                    
83
                    
88			}
                    
89			return "<span class=\"php-float\">$var</span>\n";
                    
90
                    
98			$len = strlen($var);
                    
99			return "<span class=\"php-string\">\"$s\"</span>" . ($len > 1 ? " ($len)" : "") . "\n";
                    
100
                    
                
Validator.php https://gitlab.com/rsilveira1987/Expresso | PHP | 248 lines
                    
1<?php
                    
2
                    
49        $this->aliases = array();
                    
50        // PHP is a bit lax with integer <=> string conversions in
                    
51        // arrays, so we don't use the identical !== comparison
                    
243    {
                    
244        return implode(' in ', array_reverse($this->context));
                    
245    }
                    
                
Notifications.php https://gitlab.com/yousafsyed/easternglamor | PHP | 269 lines
                    
1<?php
                    
2/**
                    
222            $messageDetails .= __('Store(s) affected: ');
                    
223            $messageDetails .= implode(', ', $this->storesWithInvalidDisplaySettings);
                    
224            $messageDetails .= '</p><p>';
                    
239            $messageDetails .= __('Store(s) affected: ');
                    
240            $messageDetails .= implode(', ', $this->storesWithInvalidDiscountSettings);
                    
241            $messageDetails .= '</p><p>';
                    
                
TbButton.php https://bitbucket.org/sonnylazuardi/savary.git | PHP | 272 lines
                    
1<?php
                    
2/**
                    
5 * @copyright Copyright &copy; Christoffer Niska 2011-
                    
6 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
                    
7 * @package bootstrap.widgets
                    
171		{
                    
172			$classes = implode(' ', $classes);
                    
173			if (isset($this->htmlOptions['class']))
                    
181			if (strpos($this->icon, 'icon') === false)
                    
182				$this->icon = 'icon-'.implode(' icon-', explode(' ', $this->icon));
                    
183
                    
                
Post.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 292 lines
                    
1<?php
                    
2
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: Post.php 24593 2012-01-05 20:35:02Z matthew $
                    
22 */
                    
27 */
                    
28require_once 'Zend/Date.php';
                    
29
                    
32 */
                    
33require_once 'Zend/Service/Delicious/SimplePost.php';
                    
34
                    
93             */
                    
94            require_once 'Zend/Service/Delicious/Exception.php';
                    
95            throw new Zend_Service_Delicious_Exception("Second argument must be array with at least 2 keys ('url' and"
                    
102             */
                    
103            require_once 'Zend/Service/Delicious/Exception.php';
                    
104            throw new Zend_Service_Delicious_Exception("Date has to be an instance of Zend_Date");
                    
                
QueryBuilder.php https://gitlab.com/PragmaticLinux/Yii | PHP | 346 lines
                    
1<?php
                    
2/**
                    
97            }
                    
98            $values[] = implode(', ', $vs);
                    
99        }
                    
105        return 'INSERT INTO ' . $schema->quoteTableName($table)
                    
106        . ' (' . implode(', ', $columns) . ') SELECT ' . implode(' UNION SELECT ', $values);
                    
107    }
                    
340            }
                    
341            $vss[] = '(' . implode($operator === 'IN' ? ' AND ' : ' OR ', $vs) . ')';
                    
342        }
                    
343
                    
344        return '(' . implode($operator === 'IN' ? ' OR ' : ' AND ', $vss) . ')';
                    
345    }
                    
                
Combination.php https://bitbucket.org/enurkov/prestashop.git | PHP | 281 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-2012 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
                    
144				INSERT INTO `'._DB_PREFIX_.'product_attribute_combination` (`id_attribute`, `id_product_attribute`)
                    
145				VALUES '.implode(',', $sql_values)
                    
146			);
                    
195			INSERT INTO `'._DB_PREFIX_.'product_attribute_image` (`id_product_attribute`, `id_image`)
                    
196			VALUES '.implode(',', $sql_values)
                    
197		);
                    
                
acp_ban.php https://bitbucket.org/enitarzi/phpbb3-gorgon.git | PHP | 276 lines
                    
1<?php
                    
2/**
                    
5* @version $Id$
                    
6* @copyright (c) 2005 phpBB Group
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
13*/
                    
14if (!defined('IN_PHPBB'))
                    
15{
                    
28		global $config, $db, $user, $auth, $template, $cache;
                    
29		global $phpbb_root_path, $phpbb_admin_path, $phpEx, $table_prefix;
                    
30
                    
30
                    
31		include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
                    
32
                    
114			'U_ACTION'			=> $this->u_action,
                    
115			'U_FIND_USERNAME'	=> append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=searchuser&amp;form=acp_ban&amp;field=ban'),
                    
116		));
                    
                
HttpException.php https://bitbucket.org/jokusafet/magento2.git | PHP | 166 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 X.commerce, Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
160            }
                    
161            $this->message = implode("\n", $this->_messages);
                    
162            $this->code = implode(';', $this->_codes);
                    
                
index.php https://github.com/shikadilord/weldyn.git | PHP | 467 lines
                    
13define('IN_PHPBB', true);
                    
14$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../';
                    
15$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
15$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
16include($phpbb_root_path . 'common.' . $phpEx);
                    
17
                    
162			{
                    
163				include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
                    
164			}
                    
238			// Delete the user's blog
                    
239			if ($config['asacp_ocban_blog'] && file_exists($phpbb_root_path . 'blog/includes/functions_admin.' . $phpEx))
                    
240			{
                    
263					{
                    
264						include($phpbb_root_path . 'includes/functions_privmsgs.' . $phpEx);
                    
265					}
                    
                
index.php https://github.com/andreev-artem/moodle_admin_report_advuserbulk.git | PHP | 347 lines
                    
1<?php
                    
2/**
                    
67    $userlist = $DB->get_records_select_menu('user', "id $in", $params, 'fullname', 'id,' . $DB->sql_fullname() . ' AS fullname');
                    
68    $usernames = implode('<br />', $userlist);
                    
69
                    
274                            onclick="this.focus();">
                    
275                                <?php echo $coursenames ?>
                    
276                    </select>
                    
298                  <div id="addcontrols">
                    
299                        <input name="add" id="add" type="submit" disabled value="<?php echo '&nbsp;' . $OUTPUT->rarrow() . ' &nbsp; &nbsp; ' . get_string('add'); ?>" title="<?php print_string('add'); ?>" />
                    
300                  </div>
                    
301                  <div id="removecontrols">
                    
302                        <input name="remove" id="remove" type="submit" disabled value="<?php echo '&nbsp; ' . $OUTPUT->larrow() . ' &nbsp; &nbsp; ' . get_string('remove'); ?>" title="<?php print_string('remove'); ?>" />
                    
303                  </div>
                    
344</div>
                    
345<?php
                    
346    echo $OUTPUT->footer();
                    
                
PgsqlTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 240 lines
                    
1<?php
                    
2/**
                    
22
                    
23require_once 'Zend/Db/Adapter/Pdo/TestCommon.php';
                    
24
                    
128     * Test that quote() takes an array and returns
                    
129     * an imploded string of comma-separated, quoted elements.
                    
130     */
                    
223
                    
224        require_once 'Zend/Db/Expr.php';
                    
225        $this->_db->lastSequenceId(new Zend_Db_Expr('camelCase_id_seq'));
                    
                
Redirector.php https://github.com/jorgenils/zend-framework.git | PHP | 496 lines
                    
1<?php
                    
2/**
                    
22/** Zend_Controller_Action_Exception */
                    
23require_once 'Zend/Controller/Action/Exception.php';
                    
24
                    
25/** Zend_Controller_Action_Helper_Abstract */
                    
26require_once 'Zend/Controller/Action/Helper/Abstract.php';
                    
27
                    
87        if (!is_int($code) || (300 > $code) || (307 < $code)) {
                    
88            require_once 'Zend/Controller/Exception.php';
                    
89            throw new Zend_Controller_Action_Exception('Invalid redirect HTTP status code (' . $code  . ')');
                    
258        }
                    
259        $paramsString = implode('/', $paramsNormalized);
                    
260
                    
                
class.wsdlcache.php https://github.com/joshbhamilton/sugarcrm_dev.git | PHP | 251 lines
                    
1<?php
                    
2
                    
142			if ($fp) {
                    
143				$s = implode("", @file($filename));
                    
144				fclose($fp);
                    
                
Post.php https://gitlab.com/luisrepo/ClienteWS | PHP | 292 lines
                    
1<?php
                    
2
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: Post.php 23775 2011-03-01 17:25:24Z ralph $
                    
22 */
                    
27 */
                    
28require_once 'Zend/Date.php';
                    
29
                    
32 */
                    
33require_once 'Zend/Service/Delicious/SimplePost.php';
                    
34
                    
93             */
                    
94            require_once 'Zend/Service/Delicious/Exception.php';
                    
95            throw new Zend_Service_Delicious_Exception("Second argument must be array with at least 2 keys ('url' and"
                    
102             */
                    
103            require_once 'Zend/Service/Delicious/Exception.php';
                    
104            throw new Zend_Service_Delicious_Exception("Date has to be an instance of Zend_Date");
                    
                
LDAPQuery.class.php https://github.com/treuter/xp-framework.git | PHP | 321 lines
                    
1<?php
                    
2/* This class is part of the XP framework
                    
254     *
                    
255     * @see     php://ldap_sort
                    
256     * @param   string[] sort array of fields to sort with
                    
303        if (is_bool($value)) $value= $value ? 'TRUE' : 'FALSE';
                    
304        if (is_array($value)) $value= implode(', ', $value);
                    
305        
                    
                
HtmlExtractor.class.php https://bitbucket.org/zjut/labs.git | PHP | 222 lines
                    
1<?php
                    
2/* 海龙挖掘机 2.0正式版
                    
100        }
                    
101        return implode("",$content);
                    
102    }
                    
                
CheckOut.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 319 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Created by PhpStorm.
                    
4 * User: THANH
                    
210            $invoice['total'] = $moneySend;
                    
211            $invoice['order_id'] = implode(',',$orderID);
                    
212            $invoice['product_id'] = implode(',',$productID);
                    
                
class-wp-media-list-table.php https://github.com/vidor/vidor.me.git | PHP | 396 lines
                    
174?>
                    
175	<tr id='post-<?php echo $id; ?>' class='<?php echo trim( $alt . ' author-' . $post_owner . ' status-' . $post->post_status ); ?>' valign="top">
                    
176<?php
                    
253?>
                    
254		<td <?php echo $attributes ?>><?php
                    
255		$tags = get_the_tags();
                    
270?>
                    
271		<td <?php echo $attributes ?>><?php echo has_excerpt() ? $post->post_excerpt : ''; ?></td>
                    
272<?php
                    
291?>
                    
292		<td <?php echo $attributes ?>><?php echo $h_time ?></td>
                    
293<?php
                    
313?>
                    
314			<td <?php echo $attributes ?>><?php _e( '(Unattached)' ); ?><br />
                    
315			<?php if( $user_can_edit ) {?>
                    
                
search.php https://gitlab.com/alexprowars/bitrix | PHP | 532 lines
                    
1<?php
                    
2/**
                    
262					'name' => htmlspecialcharsbx(str_replace(array(';', ','), ' ', $company['TITLE'])),
                    
263					'desc' => htmlspecialcharsbx(implode(', ', $descList))
                    
264				);
                    
357					'name' => htmlspecialcharsbx($deal['TITLE']),
                    
358					'desc' => htmlspecialcharsbx(implode(', ', $descList))
                    
359				);
                    
                
Post.php https://github.com/oveach/tuto-zf-doctrine2.git | PHP | 292 lines
                    
1<?php
                    
2
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: Post.php 24594 2012-01-05 21:27:01Z matthew $
                    
22 */
                    
27 */
                    
28require_once 'Zend/Date.php';
                    
29
                    
32 */
                    
33require_once 'Zend/Service/Delicious/SimplePost.php';
                    
34
                    
93             */
                    
94            require_once 'Zend/Service/Delicious/Exception.php';
                    
95            throw new Zend_Service_Delicious_Exception("Second argument must be array with at least 2 keys ('url' and"
                    
102             */
                    
103            require_once 'Zend/Service/Delicious/Exception.php';
                    
104            throw new Zend_Service_Delicious_Exception("Date has to be an instance of Zend_Date");
                    
                
Dropdown.php https://gitlab.com/ElvisAns/tiki | PHP | 391 lines
                    
1<?php
                    
2
                    
117        } elseif (isset($requestData[$ins_id])) {
                    
118            $value = implode(',', (array) $requestData[$ins_id]);
                    
119        } elseif (isset($requestData[$ins_id . '_old'])) {
                    
137        }
                    
138        return implode(',', $existing);
                    
139    }
                    
146        });
                    
147        return implode(',', $existing);
                    
148    }
                    
157        if (! empty($context['list_mode']) && $context['list_mode'] === 'csv') {
                    
158            return implode(', ', $this->getConfiguration('selected', []));
                    
159        } else {
                    
160            $labels = array_map([$this, 'getValueLabel'], $this->getConfiguration('selected', []));
                    
161            return implode(', ', $labels);
                    
162        }
                    
                
PlainHTTPFetcher.php https://github.com/Shigaru/shigaru.git | PHP | 254 lines
                    
1<?php
                    
2
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
22 */
                    
23require_once "Auth/Yadis/HTTPFetcher.php";
                    
24
                    
109
                    
110            fputs($sock, implode("\r\n", $headers) . "\r\n\r\n");
                    
111
                    
181        // Join all headers together.
                    
182        $all_headers = implode("\r\n", $headers);
                    
183
                    
                
Cli.php https://gitlab.com/billyprice1/app-download.org | PHP | 260 lines
                    
15        // PHP doesn't implement non-blocking stdin on Windows
                    
16        // https://bugs.php.net/bug.php?id=34972
                    
17        $isWin = 'WIN' === strtoupper(substr(PHP_OS, 0, 3));
                    
86            fputs(STDERR, "ERROR: The protoc command in your system is too old." . PHP_EOL);
                    
87            fputs(STDERR, "       Minimum version required is 2.3.0 but found {$m[0]}." . PHP_EOL);
                    
88            exit(1);
                    
115        // Protoc will pass custom arguments to the plugin if they are given
                    
116        // before a colon character. ie: --php_out="foo=bar:/path/to/plugin"
                    
117        // We make use of it to pass arguments encoded as an URI query string
                    
168            fputs(STDERR, 'ERROR: protoc exited with an error (' . $return . ') when executed with: ' . PHP_EOL);
                    
169            fputs(STDERR, '  ' . implode(" \\\n    ", $cmd) . PHP_EOL);
                    
170            exit($return);
                    
250        try {
                    
251            echo 'Protobuf-PHP ' . Protobuf::VERSION . ' by Ivan -DrSlump- Montes' . PHP_EOL . PHP_EOL;
                    
252            $result = $main->parse();
                    
                
Save.php https://bitbucket.org/jhunsinfotech/blue-blues.git | PHP | 201 lines
                    
1<?php
                    
2/*+********************************************************************************
                    
10
                    
11require_once('modules/Emails/Emails.php');
                    
12require_once('modules/Webmails/Webmails.php');
                    
12require_once('modules/Webmails/Webmails.php');
                    
13require_once('include/logging.php');
                    
14require_once('include/database/PearDatabase.php');
                    
14require_once('include/database/PearDatabase.php');
                    
15require_once('include/utils/UserInfoUtil.php');
                    
16require_once('include/utils/CommonUtils.php');
                    
16require_once('include/utils/CommonUtils.php');
                    
17require_once('modules/Webmails/MailParse.php');
                    
18require_once('modules/Webmails/MailBox.php');
                    
18require_once('modules/Webmails/MailBox.php');
                    
19require_once('modules/Documents/Documents.php');
                    
20require_once('modules/Settings/MailScanner/core/MailAttachmentMIME.php');
                    
                
Post.php https://github.com/gryzz/crystal_magento.git | PHP | 292 lines
                    
1<?php
                    
2
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: Post.php 16211 2009-06-21 19:23:55Z thomas $
                    
22 */
                    
27 */
                    
28#require_once 'Zend/Date.php';
                    
29
                    
32 */
                    
33#require_once 'Zend/Service/Delicious/SimplePost.php';
                    
34
                    
93             */
                    
94            #require_once 'Zend/Service/Delicious/Exception.php';
                    
95            throw new Zend_Service_Delicious_Exception("Second argument must be array with at least 2 keys ('url' and"
                    
102             */
                    
103            #require_once 'Zend/Service/Delicious/Exception.php';
                    
104            throw new Zend_Service_Delicious_Exception("Date has to be an instance of Zend_Date");
                    
                
Gender.php https://gitlab.com/shahriarnowshad/atomicfinal | PHP | 231 lines
                    
1<?php
                    
2namespace App\Bitm\SEIP129575\Gender;
                    
37</div>");
                    
38            Utility::redirect('index.php');
                    
39
                    
44</div>");
                    
45            Utility::redirect('index.php');
                    
46
                    
74</div>");
                    
75            Utility::redirect('index.php');
                    
76
                    
81</div>");
                    
82            Utility::redirect('index.php');
                    
83
                    
94</div>");
                    
95            Utility::redirect('index.php');
                    
96
                    
                
Controller.php https://gitlab.com/makkooz/nikestreetbeat | PHP | 221 lines
                    
1<?php
                    
2/**
                    
106            throw new BadRequestHttpException(Yii::t('yii', 'Missing required parameters: {params}', [
                    
107                'params' => implode(', ', $missing),
                    
108            ]));
                    
136     *
                    
137     * ```php
                    
138     * // stop executing this action and redirect to login page
                    
166     *
                    
167     * ```php
                    
168     * // stop executing this action and redirect to home page
                    
183     *
                    
184     * ```php
                    
185     * // stop executing this action and redirect to last visited page
                    
207     *
                    
208     * ```php
                    
209     * // stop executing this action and refresh the current page
                    
                
userreporttracks.php https://github.com/mackensen/moodle.git | PHP | 172 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
24
                    
25require_once("../../../config.php");
                    
26require_once($CFG->dirroot.'/mod/scorm/locallib.php');
                    
26require_once($CFG->dirroot.'/mod/scorm/locallib.php');
                    
27require_once($CFG->libdir.'/tablelib.php');
                    
28
                    
36// Building the url to use for links.+ data details buildup.
                    
37$url = new moodle_url('/mod/scorm/report/userreporttracks.php', array('id' => $id,
                    
38    'user' => $userid,
                    
44$scorm = $DB->get_record('scorm', array('id' => $cm->instance), '*', MUST_EXIST);
                    
45$user = $DB->get_record('user', array('id' => $userid), implode(',', \core_user\fields::get_picture_fields()), MUST_EXIST);
                    
46$selsco = $DB->get_record('scorm_scoes', array('id' => $scoid), '*', MUST_EXIST);
                    
76$PAGE->set_heading($course->fullname);
                    
77$PAGE->navbar->add($strreport, new moodle_url('/mod/scorm/report.php', array('id' => $cm->id)));
                    
78$PAGE->navbar->add("$strattempt $attempt - ".fullname($user),
                    
                
class-taxonomy-sitemap-provider.php https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br | PHP | 322 lines
                    
1<?php
                    
2/**
                    
192
                    
193		/** This filter is documented in inc/sitemaps/class-taxonomy-sitemap-provider.php */
                    
194		$hide_empty = apply_filters( 'wpseo_sitemap_exclude_empty_terms', true, [ $taxonomy->name ] );
                    
194		$hide_empty = apply_filters( 'wpseo_sitemap_exclude_empty_terms', true, [ $taxonomy->name ] );
                    
195		/** This filter is documented in inc/sitemaps/class-taxonomy-sitemap-provider.php */
                    
196		$hide_empty_tax = apply_filters( 'wpseo_sitemap_exclude_empty_terms_taxonomy', $hide_empty, $taxonomy->name );
                    
223				AND		term_tax.term_id = %d
                    
224			WHERE	p.post_status IN ('" . implode( "','", $post_statuses ) . "')
                    
225				AND		p.post_password = ''
                    
264
                    
265			/** This filter is documented at inc/sitemaps/class-post-type-sitemap-provider.php */
                    
266			$url = apply_filters( 'wpseo_sitemap_entry', $url, 'term', $term );
                    
                
view.html.php https://github.com/chalosalvador/GDS.git | PHP | 264 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: view.html.php 21484 2011-06-08 00:57:51Z dextercowley $
                    
4 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
                    
42		if (count($errors = $this->get('Errors'))) {
                    
43			JError::raiseWarning(500, implode("\n", $errors));
                    
44
                    
130		$results = $dispatcher->trigger('onContentAfterTitle', array('com_content.article', &$item, &$this->params, $offset));
                    
131		$item->event->afterDisplayTitle = trim(implode("\n", $results));
                    
132
                    
133		$results = $dispatcher->trigger('onContentBeforeDisplay', array('com_content.article', &$item, &$this->params, $offset));
                    
134		$item->event->beforeDisplayContent = trim(implode("\n", $results));
                    
135
                    
136		$results = $dispatcher->trigger('onContentAfterDisplay', array('com_content.article', &$item, &$this->params, $offset));
                    
137		$item->event->afterDisplayContent = trim(implode("\n", $results));
                    
138
                    
                
 

Source

Language