PageRenderTime 2538ms queryTime 344ms sortTime 271ms getByIdsTime 128ms findMatchingLines 179ms

100+ results results for 'php current repo:hgregoire/rubedo' (2538 ms)

Not the results you expected?
fckeditor.css https://gitlab.com/ptisky/API_prestashop | CSS | 536 lines
                    
176

                    
177#currentFolderInfo dl{

                    
178	list-style:none;

                    
185}

                    
186#currentFolderInfo dt{

                    
187	font-size:12px;

                    
193}

                    
194#currentFolderInfo dd{

                    
195display:inline;

                    
289span.fileExcel{background-image:url(../images/small_icon/fileExcel.png);}

                    
290span.filePhp{background-image:url(../images/small_icon/filePhp.png);}

                    
291span.fileMusic{background-image:url(../images/small_icon/fileMusic.png);}

                    
328dt.fileExcel{background-image:url(../images/big_icon/fileExcel.png);}

                    
329dt.filePhp{background-image:url(../images/big_icon/filePhp.png);}

                    
330dt.fileMusic{background-image:url(../images/big_icon/fileMusic.png);}

                    
                
CheckOut.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 319 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Created by PhpStorm.
                    
4 * User: THANH
                    
56                        'birthday' => '',
                    
57                        'regdate'=>CURRENT_TIME,
                    
58                        'gender' => '1',
                    
213            $invoice['invoice_status']= 1;
                    
214            $invoice['add_time']=CURRENT_TIME;
                    
215            $invoice['edit_time']=CURRENT_TIME;
                    
282                    $invoice['payment'] = Input::Post('payment',1);
                    
283                    $invoice['edit_time']= CURRENT_TIME;
                    
284                    $update = DB::Query('invoice')->Where('invoice_id','=',$id)->Update($invoice);
                    
                
Ods.php https://gitlab.com/rsilveira1987/Expresso | PHP | 400 lines
                    
1<?php
                    
2/**
                    
126        
                    
127        // build export table (use current table if using template)
                    
128        Tinebase_Core::getLogger()->info(__METHOD__ . '::' . __LINE__ . ' Creating export for ' . $this->_modelName . ' . ' . $this->_getDataTableName());
                    
                
class.php https://gitlab.com/alexprowars/bitrix | PHP | 524 lines
                    
1<?php
                    
2
                    
173		{
                    
174			if ((float)$this->arResult['INNER_PAYMENT_INFO']["CURRENT_BUDGET"] > 0)
                    
175			{
                    
324
                    
325		$budget = $this->arResult['INNER_PAYMENT_INFO']['CURRENT_BUDGET'];
                    
326		if ($budget <= 0)
                    
406			false,
                    
407			array("ID", "CURRENT_BUDGET", "CURRENCY", "TIMESTAMP_X")
                    
408		);
                    
                
fa.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 313 lines
                    
1<?php
                    
2$translations = array(
                    
16	'No extension' => 'پسوند نامعتبر',
                    
17	'None of the supported PHP extensions (%s) are available.' => ' پسوند پی اچ پی در دسترس نیست (%s) تعداد',
                    
18	'Session support must be enabled.' => 'پشتيباني از نشست بايستي فعال گردد',
                    
19	'Session expired, please login again.' => 'نشست پايان يافته، لطفا دوباره وارد شويد',
                    
20	'%s version: %s through PHP extension %s' => 'نسخه %s : %s توسعه پی اچ پی %s',
                    
21	'Refresh' => 'بازيابي',
                    
89	
                    
90	// link to current database schema layout
                    
91	'Permanent link' => 'ارتباط دائم',
                    
                
Client.php https://bitbucket.org/cryofrost/portal.git | PHP | 489 lines
                    
226
                    
227        return $this->request($form->getMethod(), $form->getUri(), $form->getPhpValues(), $form->getPhpFiles());
                    
228    }
                    
252        }
                    
253        $server['HTTP_HOST'] = parse_url($uri, PHP_URL_HOST);
                    
254        $server['HTTPS'] = 'https' == parse_url($uri, PHP_URL_SCHEME);
                    
294        // We set the TMPDIR (for Macs) and TEMP (for Windows), because on these platforms the temp directory changes based on the user.
                    
295        $process = new PhpProcess($this->getScript($request), null, array('TMPDIR' => sys_get_temp_dir(), 'TEMP' => sys_get_temp_dir()));
                    
296        $process->run();
                    
450        if (!$this->history->isEmpty()) {
                    
451            $currentUri = $this->history->current()->getUri();
                    
452        } else {
                    
464        if ('/' !== $uri[0]) {
                    
465            $path = parse_url($currentUri, PHP_URL_PATH);
                    
466
                    
                
CurrentEmployer.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 394 lines
                    
1<?php
                    
2/*
                    
32 */
                    
33class CRM_Report_Form_Contact_CurrentEmployer extends CRM_Report_Form {
                    
34
                    
361      // Handle ID to label conversion for contact fields
                    
362      $entryFound = $this->alterDisplayContactFields($row, $rows, $rowNum, 'contact/currentEmployer', 'View Contact Detail') ? TRUE : $entryFound;
                    
363      $entryFound = $this->alterDisplayAddressFields($row, $rows, $rowNum, NULL, NULL) ? TRUE : $entryFound;
                    
                
Part.php https://bitbucket.org/baruffaldi/cms-php-bfcms.git | PHP | 486 lines
                    
72    /**
                    
73     * current position of iterator
                    
74     * @var int
                    
110                 */
                    
111                require_once 'Zend/Mail/Exception.php';
                    
112                throw new Zend_Mail_Exception('handler is not a valid mail handler');
                    
342                 */
                    
343                require_once 'Zend/Mail/Exception.php';
                    
344                throw new Zend_Mail_Exception("no Header with Name $name found");
                    
381    public function getHeaderField($name, $wantedPart = 0, $firstName = 0) {
                    
382    	return Zend_Mime_Decode::splitHeaderField(current($this->getHeader($name, 'array')), $wantedPart, $firstName);
                    
383    }
                    
419        $current = $this->current();
                    
420        return $current && $current instanceof Zend_Mail_Part && $current->isMultipart();
                    
421    }
                    
                
class-wp-media-list-table.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | 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
                    
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
                    
302			<td <?php echo $attributes ?>><strong>
                    
303				<?php if( current_user_can( 'edit_post', $post->post_parent ) ) { ?>
                    
304					<a href="<?php echo get_edit_post_link( $post->post_parent ); ?>">
                    
313?>
                    
314			<td <?php echo $attributes ?>><?php _e( '(Unattached)' ); ?><br />
                    
315			<?php if( $user_can_edit ) {?>
                    
                
Cost_Utils.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 481 lines
                    
1<?php
                    
2/**
                    
16	 */
                    
17	protected $_current_original_cost_separator;
                    
18
                    
215		// return the non-numeric cost so that value is preserved
                    
216		if ( 1 === count( $costs ) && ! is_numeric( current( $costs ) ) ) {
                    
217			return current( $costs );
                    
392			$matches );
                    
393		$this->_current_original_cost_separator = empty( $matches[1][0] ) ? '.' : $matches[1][0];
                    
394		$matches[0]                             = empty( $matches[0] ) ? $matches[0] : array_map( array(
                    
461	private function restore_original_decimal_separator( $value ) {
                    
462		return str_replace( '.', $this->_current_original_cost_separator, $value );
                    
463	}
                    
                
admin.php https://bitbucket.org/viktorfabry/banditos.git | PHP | 503 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2/**
                    
10	/**
                    
11	 * The current active section
                    
12	 *
                    
                
postgresql.php https://gitlab.com/ricardosanchez/prueba | PHP | 641 lines
                    
1<?php
                    
2/**
                    
301	/**
                    
302	 * Gets the current date and time.
                    
303	 *
                    
307	 */
                    
308	public function currentTimestamp()
                    
309	{
                    
595	/**
                    
596	 * Add to the current date and time in Postgresql.
                    
597	 * Usage:
                    
                
theme-install.php https://gitlab.com/mostafame/team_website | PHP | 329 lines
                    
1<?php
                    
2/**
                    
9/** WordPress Administration Bootstrap */
                    
10require_once( dirname( __FILE__ ) . '/admin.php' );
                    
11require( ABSPATH . 'wp-admin/includes/theme-install.php' );
                    
14
                    
15if ( ! current_user_can('install_themes') )
                    
16	wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) );
                    
18if ( is_multisite() && ! is_network_admin() ) {
                    
19	wp_redirect( network_admin_url( 'theme-install.php' ) );
                    
20	exit();
                    
23$title = __( 'Add Themes' );
                    
24$parent_file = 'themes.php';
                    
25
                    
41		'canInstall'    => current_user_can( 'install_themes' ),
                    
42		'installURI'    => current_user_can( 'install_themes' ) ? self_admin_url( 'theme-install.php' ) : null,
                    
43		'adminUrl'      => parse_url( self_admin_url(), PHP_URL_PATH )
                    
                
SYLK.php https://gitlab.com/ptisky/API_prestashop | PHP | 450 lines
                    
22 * @package    PHPExcel_Reader
                    
23 * @copyright  Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
42 * @package    PHPExcel_Reader
                    
43 * @copyright  Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
44 */
                    
44 */
                    
45class PHPExcel_Reader_SYLK extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader
                    
46{
                    
213	/**
                    
214	 * Loads PHPExcel from file into PHPExcel instance
                    
215	 *
                    
                
jqplot.pyramidAxisRenderer.min.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 57 lines
                    
7 * Copyright (c) 2009-2011 Chris Leonello
                    
8 * jqPlot is currently available for use in all personal or commercial projects 
                    
9 * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL 
                    
14 * know of any substantial use of jqPlot.  You can reach the author at: 
                    
15 * chris at jqplot dot com or see http://www.jqplot.com/info.php .
                    
16 *
                    
17 * If you are feeling kind and generous, consider supporting the project by
                    
18 * making a donation at: http://www.jqplot.com/donate.php .
                    
19 *
                    
32 *
                    
33 * jsDate is currently available for use in all personal or commercial projects 
                    
34 * under both the MIT and GPL version 2.0 licenses. This means that you can 
                    
                
DomainKeySigner.php https://gitlab.com/fiesta-framework/Documentation | PHP | 512 lines
                    
1<?php
                    
2
                    
182    /**
                    
183     * For any bytes that are currently buffered inside the stream, force them
                    
184     * off the buffer.
                    
213     * If $is is not bound, no errors will be raised.
                    
214     * If the stream currently has any buffered data it will be written to $is
                    
215     * before unbinding occurs.
                    
                
core.php https://bitbucket.org/beneberle/recipes.beneberle.com.git | PHP | 440 lines
                    
42			if ( !empty($submenu[$item[2]]) )
                    
43				$class[] = 'wp-has-current-submenu current wp-menu-open';
                    
44			else
                    
67				$admin_is_parent = true;
                    
68				$href = "admin.php?page={$submenu[$item[2]][0][2]}";
                    
69			} else {
                    
71			}
                    
72		} else if ( current_user_can($item[1]) ) {
                    
73			$menu_hook = get_plugin_page_hook($item[2], 'admin.php');
                    
117					if ( $submenu_file == $sub_item[2] )
                    
118						$class[] = 'current';
                    
119				// If plugin_page is set the parent must either match the current page or not physically exist.
                    
129				if ( ( ('index.php' != $sub_item[2]) && file_exists(WP_PLUGIN_DIR . "/{$sub_item[2]}") ) || ! empty($menu_hook) ) {
                    
130					// If admin.php is the current page or if the parent exists as a file in the plugins or admin dir
                    
131					$parent_exists = (!$admin_is_parent && file_exists(WP_PLUGIN_DIR . "/{$item[2]}") && !is_dir(WP_PLUGIN_DIR . "/{$item[2]}") ) || file_exists($item[2]);
                    
                
top-posts.php https://gitlab.com/Gashler/sg | PHP | 435 lines
                    
76			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title:', 'jetpack' ); ?></label>
                    
77			<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
                    
78		</p>
                    
81			<label for="<?php echo $this->get_field_id( 'count' ); ?>"><?php esc_html_e( 'Maximum number of posts to show (no more than 10):', 'jetpack' ); ?></label>
                    
82			<input id="<?php echo $this->get_field_id( 'count' ); ?>" name="<?php echo $this->get_field_name( 'count' ); ?>" type="number" value="<?php echo (int) $count; ?>" min="1" max="10" />
                    
83		</p>
                    
98					<li><label>
                    
99						<input value="<?php echo esc_attr( $type ); ?>" name="<?php echo $this->get_field_name( 'types' ); ?>[]" id="<?php echo $this->get_field_id( 'types' ); ?>-<?php echo $type; ?>" type="checkbox" <?php echo $checked; ?>>
                    
100						<?php echo esc_html( $label ); ?>
                    
109			<ul>
                    
110				<li><label><input id="<?php echo $this->get_field_id( 'display' ); ?>-text" name="<?php echo $this->get_field_name( 'display' ); ?>" type="radio" value="text" <?php checked( 'text', $display ); ?> /> <?php esc_html_e( 'Text List', 'jetpack' ); ?></label></li>
                    
111				<li><label><input id="<?php echo $this->get_field_id( 'display' ); ?>-list" name="<?php echo $this->get_field_name( 'display' ); ?>" type="radio" value="list" <?php checked( 'list', $display ); ?> /> <?php esc_html_e( 'Image List', 'jetpack' ); ?></label></li>
                    
111				<li><label><input id="<?php echo $this->get_field_id( 'display' ); ?>-list" name="<?php echo $this->get_field_name( 'display' ); ?>" type="radio" value="list" <?php checked( 'list', $display ); ?> /> <?php esc_html_e( 'Image List', 'jetpack' ); ?></label></li>
                    
112				<li><label><input id="<?php echo $this->get_field_id( 'display' ); ?>-grid" name="<?php echo $this->get_field_name( 'display' ); ?>" type="radio" value="grid" <?php checked( 'grid', $display ); ?> /> <?php esc_html_e( 'Image Grid', 'jetpack' ); ?></label></li>
                    
113			</ul>
                    
                
InfGuidObject.py https://gitlab.com/envieidoc/Clover | Python | 353 lines
                    
9# distribution. The full text of the license may be found at 
                    
10# http://opensource.org/licenses/bsd-license.php
                    
11#
                    
187                #
                    
188                # Add Current help string
                    
189                #
                    
250                CommentsList = Item[1]
                    
251            CurrentLineOfItem = Item[2]
                    
252            Item = Item[0]
                    
261                                 ST.ERR_INF_PARSER_INVALID_CNAME%(Item[0]),
                    
262                                 File=CurrentLineOfItem[2], 
                    
263                                 Line=CurrentLineOfItem[1], 
                    
263                                 Line=CurrentLineOfItem[1], 
                    
264                                 ExtraData=CurrentLineOfItem[0])
                    
265                if (Item[0] != ''):
                    
                
categories.php https://github.com/cpucci/oscommerce.git | PHP | 336 lines
                    
1<?php
                    
2/*
                    
44    public static function getAll($id = null) {
                    
45      global $osC_Database, $osC_Language, $current_category_id;
                    
46
                    
47      if ( !is_numeric($id) ) {
                    
48        if ( isset($current_category_id) && is_numeric($current_category_id) ) {
                    
49          $id = $current_category_id;
                    
75    public static function find($search, $id = null) {
                    
76      global $osC_Database, $osC_Language, $current_category_id;
                    
77
                    
78      if ( !is_numeric($id) ) {
                    
79        if ( isset($current_category_id) && is_numeric($current_category_id) ) {
                    
80          $id = $current_category_id;
                    
                
File.php https://gitlab.com/rsilveira1987/Expresso | 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.');
                    
                
index.php https://gitlab.com/alexprowars/bitrix | PHP | 400 lines
                    
20
                    
21		include(__DIR__.'/version.php');
                    
22
                    
57		{
                    
58			// last installation date have to be current
                    
59			$DATE_INSTALL_TABLES = date("d.m.Y H:i:s",time());
                    
151		// ip-to-country
                    
152		require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/ip_tools.php");
                    
153		i2c_load_countries();
                    
234		{
                    
235			include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/install/events/set_events.php");
                    
236		}
                    
285			$APPLICATION->ThrowException(implode("<br>", $this->errors));
                    
286			$APPLICATION->IncludeAdminFile(GetMessage("STAT_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/install/step2.php");
                    
287		}
                    
                
walkthrough_test.php https://gitlab.com/JrLucena/moodle | PHP | 309 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
30global $CFG;
                    
31require_once(dirname(__FILE__) . '/../../../engine/lib.php');
                    
32require_once(dirname(__FILE__) . '/../../../engine/tests/helpers.php');
                    
48        // Check the initial state.
                    
49        $this->check_current_state(question_state::$todo);
                    
50        $this->check_output_contains_lang_string('notyetanswered', 'question');
                    
50        $this->check_output_contains_lang_string('notyetanswered', 'question');
                    
51        $this->check_current_mark(null);
                    
52        $this->check_current_output($this->get_contains_question_text_expectation($tf),
                    
62
                    
63        $this->check_current_state(question_state::$complete);
                    
64        $this->check_output_contains_lang_string('answersaved', 'question');
                    
64        $this->check_output_contains_lang_string('answersaved', 'question');
                    
65        $this->check_current_mark(null);
                    
66        $this->check_current_output($this->get_contains_tf_true_radio_expectation(true, true),
                    
                
Store.php https://gitlab.com/ealexis.t/trends | PHP | 707 lines
                    
1<?php
                    
2
                    
470    /**
                    
471     * Reflash a subset of the current flash data.
                    
472     *
                    
                
Font.php https://gitlab.com/adamlwalker/generatedata | PHP | 640 lines
                    
33 * @package	PHPExcel_Style
                    
34 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
155		} else {
                    
156			$this->_color	= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor);
                    
157		}
                    
185	/**
                    
186	 * Get the shared style component for the currently active cell in currently active sheet.
                    
187	 * Only used for style supervisor
                    
206	/**
                    
207	 * Get the currently active cell coordinate in currently active sheet.
                    
208	 * Only used for supervisor
                    
217	/**
                    
218	 * Get the currently active cell coordinate in currently active sheet.
                    
219	 * Only used for supervisor
                    
                
Url.php https://gitlab.com/x33n/respond | PHP | 548 lines
                    
1<?php
                    
2
                    
313    /**
                    
314     * Add a relative path to the currently set path
                    
315     *
                    
                
Publisher.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 417 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24require_once 'Zend/Feed/Pubsubhubbub.php';
                    
25
                    
91        } elseif (!is_array($config)) {
                    
92            require_once 'Zend/Feed/Pubsubhubbub/Exception.php';
                    
93            throw new Zend_Feed_Pubsubhubbub_Exception('Array or Zend_Config object'
                    
116        if (empty($url) || !is_string($url) || !Zend_Uri::check($url)) {
                    
117            require_once 'Zend/Feed/Pubsubhubbub/Exception.php';
                    
118            throw new Zend_Feed_Pubsubhubbub_Exception('Invalid parameter "url"'
                    
156    /**
                    
157     * Return an array of unique Hub Server URLs currently available
                    
158     *
                    
175        if (empty($url) || !is_string($url) || !Zend_Uri::check($url)) {
                    
176            require_once 'Zend/Feed/Pubsubhubbub/Exception.php';
                    
177            throw new Zend_Feed_Pubsubhubbub_Exception('Invalid parameter "url"'
                    
                
anomaly.h https://bitbucket.org/sola/android_board_gnexus_kernel.git | C Header | 282 lines
                    
9 * Licensed under the ADI BSD license.
                    
10 *   https://docs.blackfin.uclinux.org/doku.php?id=adi_bsd
                    
11 */
                    
104#define ANOMALY_05000389 (_ANOMALY_BF527(< 2))
                    
105/* pTempCurrent Not Present in ADI_BOOT_DATA Structure */
                    
106#define ANOMALY_05000392 (_ANOMALY_BF527(< 2))
                    
194#define ANOMALY_05000457 (1)
                    
195/* USB DMA Mode 1 Failure When Multiple USB DMA Channels Are Concurrently Enabled */
                    
196#define ANOMALY_05000460 (1)
                    
                
Relationship.php https://github.com/ksecor/civicrm.git | PHP | 285 lines
                    
1<?php
                    
2
                    
35
                    
36require_once 'CRM/Contact/Page/View.php';
                    
37
                    
61    {
                    
62        require_once 'CRM/Core/DAO.php';
                    
63        $viewRelationship = CRM_Contact_BAO_Relationship::getRelationship( $this->_contactId, null, null, null, $this->_id );
                    
102        
                    
103        $currentRelationships = CRM_Contact_BAO_Relationship::getRelationship($this->_contactId,
                    
104                                                                              CRM_Contact_BAO_Relationship::CURRENT  ,
                    
112        
                    
113        $this->assign( 'currentRelationships',  $currentRelationships  );
                    
114        // to show the 'Current Relationships' title and links only when viewed
                    
146                //create an activity for case role removal.CRM-4480
                    
147                require_once "CRM/Case/BAO/Case.php";
                    
148                CRM_Case_BAO_Case::createCaseRoleActivity( $this->_caseId, $this->_id );  
                    
                
VarCloner.php https://gitlab.com/Sigpot/AirSpot | PHP | 324 lines
                    
1<?php
                    
2
                    
27        $useExt = $this->useExt;
                    
28        $i = 0;                         // Current iteration position in $queue
                    
29        $len = 1;                       // Length of $queue
                    
44                                        // or null if the original value is used directly
                    
45        $zval = array(                  // Main properties of the current value
                    
46            'type' => null,
                    
60        for ($i = 0; $i < $len; ++$i) {
                    
61            $indexed = true;            // Whether the currently iterated array is numerically indexed or not
                    
62            $j = -1;                    // Position in the currently iterated array
                    
148                    case 'object':
                    
149                        if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) {
                    
150                            $stub = new Stub();
                    
164                                } else {
                    
165                                    $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE));
                    
166                                }
                    
                
abstract-wc-payment-gateway.php https://gitlab.com/campus-academy/krowkaramel | PHP | 562 lines
                    
1<?php
                    
2/**
                    
161		if ( is_user_logged_in() && $this->supports( 'tokenization' ) ) {
                    
162			$this->tokens = WC_Payment_Tokens::get_customer_tokens( get_current_user_id(), $this->id );
                    
163		}
                    
190		echo '<h2>' . esc_html( $this->get_method_title() );
                    
191		wc_back_link( __( 'Return to payments', 'woocommerce' ), admin_url( 'admin.php?page=wc-settings&tab=checkout' ) );
                    
192		echo '</h2>';
                    
341	/**
                    
342	 * Set as current gateway.
                    
343	 *
                    
343	 *
                    
344	 * Set this as the current gateway.
                    
345	 */
                    
345	 */
                    
346	public function set_current() {
                    
347		$this->chosen = true;
                    
                
gma.c https://gitlab.com/envieidoc/Clover | C | 371 lines
                    
2	Original patch by Nawcom
                    
3	http://forum.voodooprojects.org/index.php/topic,1029.0.html
                    
4*/
                    
39	{ 0x00, 0x00, 0x00, 0x00 },	//12 "AAPL01,Inverter"
                    
40	{ 0x08, 0x52, 0x00, 0x00 },	//13 "AAPL01,InverterCurrent"
                    
41	{ 0x00, 0x00, 0x00, 0x00 },	//14 "AAPL01,LinkFormat"
                    
346      devprop_add_value(device, "AAPL01,Inverter", GMAX3100_vals[12], 4);
                    
347      devprop_add_value(device, "AAPL01,InverterCurrent", GMAX3100_vals[13], 4);
                    
348      //		devprop_add_value(device, "AAPL01,InverterCurrency", GMAX3100_vals[15], 4);
                    
                
Filesystem.php https://gitlab.com/milton2913/myBlog | PHP | 543 lines
                    
1<?php
                    
2
                    
466        foreach ($items as $item) {
                    
467            // As we spin through items, we will check to see if the current file is actually
                    
468            // a directory or a file. When it is actually a directory we will need to call
                    
479
                    
480            // If the current items is just a regular file, we will just copy this to the new
                    
481            // location and keep looping. If for some reason the copy fails we'll bail out
                    
                
wp-seo-main.php https://gitlab.com/ngochuynh1991/cuacuon | PHP | 471 lines
                    
1<?php
                    
2/**
                    
44		$classes = array(
                    
45			'wp_list_table'   => ABSPATH . 'wp-admin/includes/class-wp-list-table.php',
                    
46			'walker_category' => ABSPATH . 'wp-includes/category-template.php',
                    
46			'walker_category' => ABSPATH . 'wp-includes/category-template.php',
                    
47			'pclzip'          => ABSPATH . 'wp-admin/includes/class-pclzip.php',
                    
48		);
                    
57
                    
58if ( file_exists( WPSEO_PATH . '/vendor/autoload_52.php' ) ) {
                    
59	require WPSEO_PATH . '/vendor/autoload_52.php';
                    
124
                    
125			restore_current_blog();
                    
126		}
                    
133function _wpseo_activate() {
                    
134	require_once( WPSEO_PATH . 'inc/wpseo-functions.php' );
                    
135
                    
                
CCEventDispatcher.h https://gitlab.com/gasabr/flappy-test | C Header | 350 lines
                    
72     */
                    
73    void addEventListenerWithSceneGraphPriority(EventListener* listener, Node* node);
                    
74
                    
221        inline std::vector<EventListener*>* getFixedPriorityListeners() const { return _fixedListeners; };
                    
222        inline std::vector<EventListener*>* getSceneGraphPriorityListeners() const { return _sceneGraphListeners; };
                    
223        inline ssize_t getGt0Index() const { return _gt0Index; };
                    
231    /** Adds an event listener with item
                    
232     *  @note if it is dispatching event, the added operation will be delayed to the end of current dispatch
                    
233     *  @see forceAddEventListener
                    
255    /** Sorts the listeners of specified type by scene graph priority */
                    
256    void sortEventListenersOfSceneGraphPriority(const EventListener::ListenerID& listenerID, Node* rootNode);
                    
257    
                    
284     *      to 3D world space is different by different camera.
                    
285     *  When listener process touch event, can get current camera by Camera::getVisitingCamera().
                    
286     */
                    
                
config.php https://gitlab.com/RikaPM/manik | PHP | 364 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
25|
                    
26| Typically this will be your index.php file, unless you've renamed it to
                    
27| something else. If you are using mod_rewrite to remove the page set this
                    
30*/
                    
31$config['index_page'] = 'index.php';
                    
32
                    
151| invoke your controllers and its functions:
                    
152| example.com/index.php?c=controller&m=function
                    
153|
                    
162$config['function_trigger']		= 'm';
                    
163$config['directory_trigger']	= 'd'; // experimental not currently in use
                    
164
                    
175|	0 = Disables logging, Error logging TURNED OFF
                    
176|	1 = Error Messages (including PHP errors)
                    
177|	2 = Debug Messages
                    
                
form.js https://gitlab.com/jslee1/PrestaShop | JavaScript | 505 lines
                    
33		'ajax-tab.php',
                    
34		{controller:'AdminCartRules',token:currentToken,newProductRuleGroup:1,product_rule_group_id:product_rule_groups_counter},
                    
35		function(content) {
                    
51		$.get(
                    
52			'ajax-tab.php',
                    
53			{controller:'AdminCartRules',token:currentToken,newProductRule:1,product_rule_type:$('#product_rule_type_' + product_rule_group_id).val(),product_rule_group_id:product_rule_group_id,product_rule_id:product_rule_counters[product_rule_group_id]},
                    
319	.autocomplete(
                    
320			'ajax-tab.php', {
                    
321			minChars: 2,
                    
337				controller: 'AdminCartRules',
                    
338				token: currentToken,
                    
339				customerFilter: 1
                    
384	// Define a custom regional settings in order to use PrestaShop translation tools
                    
385	currentText: currentText,
                    
386	closeText:closeText,
                    
                
SYLK.php https://gitlab.com/marchelo8622/pluslawip | PHP | 450 lines
                    
22 * @package    PHPExcel_Reader
                    
23 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
42 * @package    PHPExcel_Reader
                    
43 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
44 */
                    
44 */
                    
45class PHPExcel_Reader_SYLK extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader
                    
46{
                    
213	/**
                    
214	 * Loads PHPExcel from file into PHPExcel instance
                    
215	 *
                    
                
HTML.php https://gitlab.com/dmsapiens/physicians | PHP | 478 lines
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
44 */
                    
45class PHPExcel_Reader_HTML extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader
                    
46{
                    
409	/**
                    
410	 * Loads PHPExcel from file into PHPExcel instance
                    
411	 *
                    
412	 * @param 	string 		$pFilename
                    
413	 * @param	PHPExcel	$objPHPExcel
                    
414	 * @return 	PHPExcel
                    
416	 */
                    
417	public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel)
                    
418	{
                    
                
form.tpl https://bitbucket.org/enurkov/prestashop.git | Smarty Template | 418 lines
                    
8* It is also available through the world-wide-web at this URL:
                    
9* http://opensource.org/licenses/afl-3.0.php
                    
10* If you did not receive a copy of the license and are unable to
                    
21*  @copyright  2007-2012 PrestaShop SA
                    
22*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23*  International Registered Trademark & Property of PrestaShop SA
                    
179		<li class="tab-row">
                    
180			<a class="nav-profile {if $profile.id_profile == $current_profile}selected{/if}" id="profile-{$profile.id_profile}" href="{$current}&token={$token}&id_profile={$profile.id_profile}">{$profile.name}</a>
                    
181		</li>
                    
185
                    
186<form id="{$table}_form" class="defaultForm" action="{$current}&{$submit_action}=1&token={$token}" method="post" enctype="multipart/form-data">
                    
187	{if $form_id}
                    
199
                    
200		<div class="profile-{$profile.id_profile} tab-profile" style="display:{if $profile.id_profile == $current_profile}block{else}none{/if}">
                    
201
                    
                
Collection.php https://bitbucket.org/acidel/buykoala.git | PHP | 461 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
34
                    
35require_once('Varien/Data/Collection.php');
                    
36require_once('Varien/Directory/Factory.php');
                    
36require_once('Varien/Directory/Factory.php');
                    
37require_once('Varien/Directory/IFactory.php');
                    
38
                    
181            if (!$iter->isDot() && $curr[0]!='.'){
                    
182                $this->addItem(Varien_Directory_Factory::getFactory($iter->current(),$this->getRecursion(),$this->getRecursionLevel()));
                    
183            }
                    
                
File.php https://gitlab.com/rsilveira1987/Expresso | PHP | 473 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: File.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
21 */
                    
32    /**
                    
33     * Reads $length number of bytes at the current position in the
                    
34     * file and advances the file pointer.
                    
47     * SEEK_SET - Set position equal to offset bytes.
                    
48     * SEEK_CUR - Set position to current location plus offset.
                    
49     * SEEK_END - Set position to end-of-file plus offset. (To move to
                    
100    /**
                    
101     * Reads a byte from the current position in the file
                    
102     * and advances the file pointer.
                    
121    /**
                    
122     * Read num bytes from the current position in the file
                    
123     * and advances the file pointer.
                    
                
eventapi.html.md https://gitlab.com/ggsaavedra/PredictionIO | Markdown | 412 lines
                    
11data store of Event Server) through [PredictionIO's Storage
                    
12API](http://docs.prediction.io/api/current/index.html#io.prediction.data.storage.package).
                    
13
                    
109  </div>
                    
110  <div data-tab="PHP SDK" data-lang="php">
                    
111```php
                    
111```php
                    
112<?php
                    
113  require_once("vendor/autoload.php");
                    
204  </div>
                    
205  <div data-tab="PHP SDK" data-lang="php">
                    
206```php
                    
206```php
                    
207<?php
                    
208  require_once("vendor/autoload.php");
                    
                
Url.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 445 lines
                    
1<?php
                    
2/**
                    
11 *
                    
12 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
13 */
                    
18     *
                    
19     * @bug Currently, this constant is slightly misleading: it says "form key", but in fact it is used by URLs, too
                    
20     */
                    
99     *
                    
100     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
                    
101     */
                    
                
HeaderFooter.php https://gitlab.com/ilyales/vigma | PHP | 494 lines
                    
2/**
                    
3 * PHPExcel_Worksheet_HeaderFooter
                    
4 *
                    
22 * @package    PHPExcel_Worksheet
                    
23 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
                    
305     * @param string $pValue
                    
306     * @return PHPExcel_Worksheet_HeaderFooter
                    
307     */
                    
327     * @param boolean $pValue
                    
328     * @return PHPExcel_Worksheet_HeaderFooter
                    
329     */
                    
480    /**
                    
481     * Implement PHP __clone to create a deep clone, not just a shallow copy.
                    
482     */
                    
                
arr.php https://gitlab.com/ken3/bluSky | PHP | 602 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
212
                    
213		// Set current $array to inner-most array path
                    
214		while (count($keys) > 1)
                    
351	/**
                    
352	 * Recursive version of [array_map](http://php.net/array_map), applies one or more
                    
353	 * callbacks to all elements in an array, including sub-arrays.
                    
403	 * Merges one or more arrays recursively and preserves all keys.
                    
404	 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)!
                    
405	 *
                    
                
catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
                    
1<?php
                    
2/**
                    
91		// first, try to find in cookies
                    
92		$recommendationCookie = Context::getCurrent()->getRequest()->getCookie(static::getCookieLogName());
                    
93
                    
147			'bx_user_id' => static::getBxUserId(),
                    
148			'domain' => Context::getCurrent()->getServer()->getHttpHost(),
                    
149			'recommendation' => $recommendationId,
                    
229		$data['paid'] = '0';
                    
230		$data['domain'] = Context::getCurrent()->getServer()->getHttpHost();
                    
231		$data['date'] = date(DATE_ISO8601);
                    
299		$data['paid'] = '1';
                    
300		$data['domain'] = Context::getCurrent()->getServer()->getHttpHost();
                    
301		$data['date'] = date(DATE_ISO8601);
                    
                
provider.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 286 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
167
                    
168        // Reference to the course seen in the last iteration of the loop. By comparing this with the current record, and
                    
169        // because we know the results are ordered, we know when we've moved to the PayPal transactions for a new course
                    
                
Abstract.php https://bitbucket.org/FnTm/codeigniter-zend-sample-application.git | PHP | 456 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Abstract.php 22473 2010-06-20 08:30:04Z thomas $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/Interface.php';
                    
26
                    
151        if (!isset($this->_messageTemplates[$messageKey])) {
                    
152            require_once 'Zend/Validate/Exception.php';
                    
153            throw new Zend_Validate_Exception("No message template exists for key '$messageKey'");
                    
193         */
                    
194        require_once 'Zend/Validate/Exception.php';
                    
195        throw new Zend_Validate_Exception("No property exists by the name '$property'");
                    
261            $keys = array_keys($this->_messageTemplates);
                    
262            $messageKey = current($keys);
                    
263        }
                    
                
Abstract.php https://bitbucket.org/babanesma/mysimpleadmin.git | PHP | 456 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Abstract.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/Interface.php';
                    
26
                    
151        if (!isset($this->_messageTemplates[$messageKey])) {
                    
152            require_once 'Zend/Validate/Exception.php';
                    
153            throw new Zend_Validate_Exception("No message template exists for key '$messageKey'");
                    
193         */
                    
194        require_once 'Zend/Validate/Exception.php';
                    
195        throw new Zend_Validate_Exception("No property exists by the name '$property'");
                    
261            $keys = array_keys($this->_messageTemplates);
                    
262            $messageKey = current($keys);
                    
263        }
                    
                
SharedTempStoreTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 440 lines
                    
387    $current_user = $this->createMock(AccountProxyInterface::class);
                    
388    $container->set('current_user', $current_user);
                    
389    \Drupal::setContainer($container);
                    
394    $current_user_property->setAccessible(TRUE);
                    
395    $this->assertSame($current_user, $current_user_property->getValue($store));
                    
396
                    
410    $current_user = $this->createMock(AccountProxyInterface::class);
                    
411    $container->set('current_user', $current_user);
                    
412    \Drupal::setContainer($container);
                    
416
                    
417    $current_user_property = $reflection_class->getProperty('currentUser');
                    
418    $current_user_property->setAccessible(TRUE);
                    
418    $current_user_property->setAccessible(TRUE);
                    
419    $this->assertSame($current_user, $current_user_property->getValue($store));
                    
420
                    
                
class-admin.php https://gitlab.com/bhargavi_dcw/dflocal | PHP | 513 lines
                    
1<?php
                    
2
                    
49		// update opt-in
                    
50		$this->update_optin = new MC4WP_Update_Optin( '4.0.0', $this->plugin_file, MC4WP_PLUGIN_DIR . 'includes/views/parts/update-4.x-notice.php' );
                    
51	}
                    
61
                    
62		add_action( 'current_screen', array( $this, 'customize_admin_texts' ) );
                    
63		add_action( 'wp_dashboard_setup', array( $this, 'register_dashboard_widgets' ) );
                    
215
                    
216		$current = mc4wp_get_options();
                    
217
                    
217
                    
218		// merge with current settings to allow passing partial arrays to this method
                    
219		$settings = array_merge( $current, $settings );
                    
221		// toggle usage tracking
                    
222		if( $settings['allow_usage_tracking'] !== $current['allow_usage_tracking'] ) {
                    
223			MC4WP_Usage_Tracking::instance()->toggle( $settings['allow_usage_tracking'] );
                    
                
Range.php https://gitlab.com/Ltaimao/wecenter | PHP | 377 lines
                    
24/** Zend_Search_Lucene_Search_Query */
                    
25//require_once 'Zend/Search/Lucene/Search/Query.php';
                    
26
                    
161
                    
162        //require_once 'Zend/Search/Lucene.php';
                    
163        $maxTerms = Zend_Search_Lucene::getTermsPerQueryLimit();
                    
166
                    
167            //require_once 'Zend/Search/Lucene/Index/Term.php';
                    
168            if ($this->_lowerTerm !== null) {
                    
199
                    
200                if ($this->_inclusive  &&  $index->currentTerm() == $upperTerm) {
                    
201                    // Include upper term into result
                    
205                // Walk up to the end of field data
                    
206                while ($index->currentTerm() !== null  &&  $index->currentTerm()->field == $field) {
                    
207                    $this->_matches[] = $index->currentTerm();
                    
                
IncidentTable.php https://bitbucket.org/openfisma-ondemand/openfisma.git | PHP | 396 lines
                    
1<?php
                    
2/**
                    
35    /**
                    
36     * Returns a query which matches all of the current user's viewable incidents
                    
37     *
                    
199            ),
                    
200            'currentWorkflowName' => array(
                    
201                'initiallyVisible' => false,
                    
339    {
                    
340        if (CurrentUser::getInstance()->acl()->hasPrivilegeForClass('read', 'Incident')) {
                    
341            // If the user has the privilege to view all incidents, then no ACL is required.
                    
369    {
                    
370        $currentUser = CurrentUser::getInstance();
                    
371
                    
374                               ->from('IrIncidentUser INDEXBY incidentId')
                    
375                               ->where('userId = ?', $currentUser->id)
                    
376                               ->setHydrationMode(Doctrine::HYDRATE_ARRAY);
                    
                
class-wcs-query.php https://gitlab.com/remyvianne/krowkaramel | PHP | 389 lines
                    
1<?php
                    
2/**
                    
169	 *
                    
170	 * @param int $current_page
                    
171	 */
                    
171	 */
                    
172	public function endpoint_content( $current_page = 1 ) {
                    
173
                    
173
                    
174		$current_page = empty( $current_page ) ? 1 : absint( $current_page );
                    
175
                    
175
                    
176		wc_get_template( 'myaccount/subscriptions.php', array( 'current_page' => $current_page ), '', WC_Subscriptions_Core_Plugin::instance()->get_subscriptions_core_directory( 'templates/' ) );
                    
177	}
                    
179	/**
                    
180	 * Check if the current query is for a type we want to override.
                    
181	 *
                    
                
feed.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 546 lines
                    
1<?php
                    
2/**
                    
104/**
                    
105 * Retrieve the current post title for the feed.
                    
106 *
                    
111 *
                    
112 * @return string Current post title.
                    
113 */
                    
125 * @since 0.71
                    
126 * @uses get_the_title_rss() Used to retrieve current post title.
                    
127 */
                    
192/**
                    
193 * Outputs the link to the comments for the current post in an xml safe way
                    
194 * 
                    
202/**
                    
203 * Display the feed GUID for the current comment.
                    
204 *
                    
                
ir-builder.h https://gitlab.com/iranjith4/hhvm | C Header | 375 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#ifndef incl_HPHP_VM_IRBUILDER_H_
                    
18#define incl_HPHP_VM_IRBUILDER_H_
                    
                
class-wp-customize-panel.php https://gitlab.com/Gashler/sg | PHP | 482 lines
                    
1<?php
                    
2/**
                    
135	 *               whether the section is active (such as it relates to the URL
                    
136	 *               currently being previewed).
                    
137	 */
                    
170	/**
                    
171	 * Check whether panel is active to current Customizer preview.
                    
172	 *
                    
175	 *
                    
176	 * @return bool Whether the panel is active to the current preview.
                    
177	 */
                    
234	final public function check_capabilities() {
                    
235		if ( $this->capability && ! call_user_func_array( 'current_user_can', (array) $this->capability ) ) {
                    
236			return false;
                    
238
                    
239		if ( $this->theme_supports && ! call_user_func_array( 'current_theme_supports', (array) $this->theme_supports ) ) {
                    
240			return false;
                    
                
user-deletions.inc.php https://gitlab.com/Gashler/sg | PHP | 223 lines
                    
1<?php
                    
2/**
                    
45			static $processed = array(); // No duplicate processing.
                    
46			global $pagenow; // Need this to detect the current admin page.
                    
47
                    
51
                    
52			if($user_id && is_multisite() && empty($processed[$user_id]) && ($s2says || (is_blog_admin() && $pagenow === 'users.php')))
                    
53			{
                    
                
Command.php https://bitbucket.org/maatao/estrutura-b-sica-doctrine.git | PHP | 512 lines
                    
1<?php
                    
2
                    
74    /**
                    
75     * Configures the current command.
                    
76     */
                    
81    /**
                    
82     * Executes the current command.
                    
83     *
                    
158     *
                    
159     * @return Command The current instance
                    
160     */
                    
191     *
                    
192     * @return Command The current instance
                    
193     */
                    
224     *
                    
225     * @return Command The current instance
                    
226     */
                    
                
admin_review.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 501 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
2
                    
3require_once(APPPATH.'controllers/project.php');
                    
4
                    
25		
                    
26		$this->data["self_project"] = is_self_project( $this->dataproj[0]["user_id"], $this->data['current_user_id'] );
                    
27		
                    
41		
                    
42		if( !is_in_admin_review( $this->dataproj[0]["user_id"], $admin_review_ids, $this->data['current_user_id']) ) {
                    
43			show_404();
                    
                
Escaper.php https://gitlab.com/yousafsyed/easternglamor | PHP | 386 lines
                    
1<?php
                    
2/**
                    
34    /**
                    
35     * Current encoding for escaping. If not UTF-8, we convert strings from this encoding
                    
36     * pre-escaping and back to this encoding post-escaping.
                    
43     * Holds the value of the special flags passed as second parameter to
                    
44     * htmlspecialchars(). We modify these for PHP 5.4 to take advantage
                    
45     * of the new ENT_SUBSTITUTE flag for correctly dealing with invalid
                    
91     * Constructor: Single parameter allows setting of global encoding for use by
                    
92     * the current object. If PHP 5.4 is detected, additional ENT_SUBSTITUTE flag
                    
93     * is set for htmlspecialchars() calls.
                    
195     * an entire URI - only a subcomponent being inserted. The function is a simple proxy
                    
196     * to rawurlencode() which now implements RFC 3986 since PHP 5.3 completely.
                    
197     *
                    
246        /**
                    
247         * Check if the current character to escape has a name entity we should
                    
248         * replace it with while grabbing the integer value of the character.
                    
                
after-the-deadline.php https://gitlab.com/thisishayat/itv-2016 | PHP | 334 lines
                    
81function AtD_addbuttons() {
                    
82	/* Don't bother doing this stuff if the current user lacks permissions */
                    
83	if ( ! AtD_is_allowed() )
                    
189	/* this is not an AtD/jQuery setting but I'm putting it in AtD to make it easy for the non-viz plugin to find it */
                    
190	$admin_ajax_url = admin_url( 'admin-ajax.php?action=atd_ignore&_wpnonce=' . wp_create_nonce( 'atd_ignore' ) . '&phrase=' );
                    
191	echo "AtD.rpc_ignore = " . json_encode( esc_url_raw( $admin_ajax_url ) ) . ";\n";
                    
267
                    
268	if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) )
                    
269		return;
                    
287
                    
288	$pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php', 'admin.php', 'profile.php' );
                    
289
                    
290	if ( in_array( $pagenow, $pages ) ) {
                    
291		if ( isset( $current_screen->post_type ) && $current_screen->post_type ) {
                    
292			return post_type_supports( $current_screen->post_type, 'editor' );
                    
                
Route.php https://github.com/ramonornela/trilhas.git | PHP | 413 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Route.php 23486 2010-12-10 04:05:30Z mjh_ca $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Controller/Router/Route/Interface.php';
                    
26
                    
29 */
                    
30require_once 'Zend/Controller/Router/Route/Module.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Controller/Dispatcher/Interface.php';
                    
36
                    
39 */
                    
40require_once 'Zend/Controller/Request/Abstract.php';
                    
41
                    
                
component.php https://gitlab.com/alexprowars/bitrix | PHP | 391 lines
                    
85
                    
86	$arResult["TITLE"] = GetMessage("IBL_NEWS_CAL_M_".date("n", mktime(0, 0, 0, $currentMonth, 1, $currentYear)))." ".$currentYear;
                    
87
                    
110			">=".$arParams["DATE_FIELD"] => date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,$currentMonth,1,$currentYear)),
                    
111			"<".$arParams["DATE_FIELD"] => date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,$currentMonth+1,1,$currentYear)),
                    
112			"IBLOCK_ID" => $arParams["IBLOCK_ID"]
                    
145			"ACTIVE" => "Y",
                    
146			"<".$arParams["DATE_FIELD"] => date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,$currentMonth,1,$currentYear)),
                    
147			"IBLOCK_ID" => $arParams["IBLOCK_ID"],
                    
169				"ACTIVE" => "Y",
                    
170				">=".$arParams["DATE_FIELD"] => date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,1,1,$currentYear+1)),
                    
171				"IBLOCK_ID" => $arParams["IBLOCK_ID"],
                    
184				"ACTIVE" => "Y",
                    
185				">=".$arParams["DATE_FIELD"] => date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,$currentMonth+1,1,$currentYear)),
                    
186				"IBLOCK_ID" => $arParams["IBLOCK_ID"]
                    
                
Thumbnail.php https://gitlab.com/manuvelasco/agostoliquida | PHP | 333 lines
                    
1<?php
                    
2/*
                    
60
                    
61        if (!$this->_currentFolder->checkAcl(CKFINDER_CONNECTOR_ACL_FILE_VIEW)) {
                    
62            $this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED);
                    
69        $fileName = CKFinder_Connector_Utils_FileSystem::convertToFilesystemEncoding($_GET["FileName"]);
                    
70        $_resourceTypeInfo = $this->_currentFolder->getResourceTypeConfig();
                    
71
                    
75
                    
76        $sourceFilePath = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_currentFolder->getServerPath(), $fileName);
                    
77
                    
81
                    
82        $thumbFilePath = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_currentFolder->getThumbsServerPath(), $fileName);
                    
83
                    
243        {
                    
244            $bg = imagecolorallocatealpha($oThumbImage, 255, 255, 255, 127); // (PHP 4 >= 4.3.2, PHP 5)
                    
245            imagefill($oThumbImage, 0, 0 , $bg);
                    
                
CommandTest.php https://gitlab.com/ealexis.t/trends | PHP | 350 lines
                    
1<?php
                    
2
                    
25
                    
26class CommandTest extends \PHPUnit_Framework_TestCase
                    
27{
                    
226
                    
227        $this->assertEquals('interact called'.PHP_EOL.'execute called'.PHP_EOL, $tester->getDisplay(), '->run() calls the interact() method if the input is interactive');
                    
228    }
                    
298        $tester->execute(array());
                    
299        $this->assertEquals('interact called'.PHP_EOL.'from the code...'.PHP_EOL, $tester->getDisplay());
                    
300    }
                    
323        $tester->execute(array());
                    
324        $this->assertEquals('interact called'.PHP_EOL.$expected.PHP_EOL, $tester->getDisplay());
                    
325    }
                    
333        $tester->execute(array());
                    
334        $this->assertEquals('interact called'.PHP_EOL.'from the code...'.PHP_EOL, $tester->getDisplay());
                    
335    }
                    
                
_customized_data.tpl https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | Smarty Template | 238 lines
                    
8* It is also available through the world-wide-web at this URL:
                    
9* http://opensource.org/licenses/afl-3.0.php
                    
10* If you did not receive a copy of the license and are unable to
                    
21*  @copyright  2007-2016 PrestaShop SA
                    
22*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23*  International Registered Trademark & Property of PrestaShop SA
                    
77		{if ($order->hasBeenDelivered() || $order->hasProductReturned())}<td class="productQuantity text-center">{$product['customizationQuantityReturned']}</td>{/if}
                    
78		{if $stock_management}<td class="text-center">{$product['current_stock']}</td>{/if}
                    
79		<td class="total_product">
                    
85		</td>
                    
86		<td class="cancelQuantity standard_refund_fields current-edit" style="display:none" colspan="2">
                    
87			&nbsp;
                    
89		<td class="edit_product_fields" colspan="2" style="display:none">&nbsp;</td>
                    
90		<td class="partial_refund_fields current-edit" style="text-align:left;display:none;"></td>
                    
91		{if ($can_edit && !$order->hasBeenDelivered())}
                    
                
collections.rst https://gitlab.com/albertkeba/docs | ReStructuredText | 260 lines
                    
8  of behaviors.  For 2.0, they were given a unified API for interacting with
                    
9  collections of similar objects.  The collection objects in CakePHP, give you
                    
10  a uniform way to interact with several different kinds of objects in your
                    
142.0では、同種のオブジェクトのコレクションとやり取りできる統一APIがそれらに与えられました。
                    
15CakePHPのこのコレクションオブジェクトは、アプリケーション内の様々な異なる種類のオブジェクトとのやり取りにおいて統一された方法を提供します。
                    
16
                    
37..
                    
38  When loading a component, if the component is not currently loaded into the
                    
39  collection, a new instance will be created.  If the component is already loaded,
                    
                
RCCWP_CreateCustomFieldPage.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 357 lines
                    
129				?>
                    
130					<label><input name="custom-field-type" value="<?php echo $field->id?>" type="radio" <?php echo $checked?> onclick='fun("<?php echo $field->name?>");' /> <!-- Calling Javascript Function -->
                    
131					<?php echo $field->name?></label><br />
                    
273				<?php foreach ($customWritePanels as $panel): ?>
                    
274					<option value="<?php echo $panel->id ?>"><?php echo $panel->name ?></option>
                    
275				<?php endforeach; ?>
                    
314
                    
315		<?php if( $current_field->has_properties && $current_field->name == 'Image' ) : ?>
                    
316		<tr valign="top">
                    
326		<!-- Date Custom Field -->
                    
327		<?php if( $current_field->has_properties && $current_field->name == 'Date' ) : ?>
                    
328		<tr valign="top">
                    
348		<p class="submit" >
                    
349			<a style="color:black" href="<?php echo RCCWP_ManagementPage::GetCustomWritePanelGenericUrl('cancel-create-custom-field')."&custom-group-id=$customGroupID"?>" class="button"><?php _e('Cancel', $mf_domain); ?></a> 
                    
350			<input type="submit" id="finish-create-custom-field" value="<?php _e('Finish', $mf_domain); ?>" />
                    
                
jquery.foundation.clearing.js https://gitlab.com/Mirros/cdnjs | JavaScript | 413 lines
                    
60            .on('click.fndtn.clearing', 'ul[data-clearing] li', function (e, current, target) {
                    
61              var current = current || $(this),
                    
62                  target = target || current,
                    
67              if (!settings) {
                    
68                current.parent().foundationClearing();
                    
69              }
                    
70
                    
71              // set current and target to the clicked li if not otherwise defined.
                    
72              cl.open($(e.target), current, target);
                    
110
                    
111        open : function ($image, current, target) {
                    
112          var root = target.closest('.clearing-assembled'),
                    
256        go : function ($ul, direction) {
                    
257          var current = $ul.find('.visible'),
                    
258              target = current[direction]();
                    
                
Range.php https://bitbucket.org/ealexandru/jobeet.git | PHP | 377 lines
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Range.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
90        if ($lowerTerm === null  &&  $upperTerm === null) {
                    
91            require_once 'Zend/Search/Lucene/Exception.php';
                    
92            throw new Zend_Search_Lucene_Exception('At least one term must be non-null');
                    
161
                    
162        require_once 'Zend/Search/Lucene.php';
                    
163        $maxTerms = Zend_Search_Lucene::getTermsPerQueryLimit();
                    
192                    if ($maxTerms != 0  &&  count($this->_matches) > $maxTerms) {
                    
193                        require_once 'Zend/Search/Lucene/Exception.php';
                    
194                        throw new Zend_Search_Lucene_Exception('Terms per query limit is reached.');
                    
205                // Walk up to the end of field data
                    
206                while ($index->currentTerm() !== null  &&  $index->currentTerm()->field == $field) {
                    
207                    $this->_matches[] = $index->currentTerm();
                    
                
adminlib.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 372 lines
                    
106    public function __construct($subtype) {
                    
107        $this->pageurl = new moodle_url('/mod/assign/adminmanageplugins.php', array('subtype'=>$subtype));
                    
108        $this->subtype = $subtype;
                    
289    public function move_plugin($plugintomove, $dir) {
                    
290        // Get a list of the current plugins.
                    
291        $plugins = $this->get_sorted_plugins_list();
                    
307        if ($dir == 'up') {
                    
308            if ($currentindex > 0) {
                    
309                $tempplugin = $plugins[$currentindex - 1];
                    
309                $tempplugin = $plugins[$currentindex - 1];
                    
310                $plugins[$currentindex - 1] = $plugins[$currentindex];
                    
311                $plugins[$currentindex] = $tempplugin;
                    
315                $tempplugin = $plugins[$currentindex + 1];
                    
316                $plugins[$currentindex + 1] = $plugins[$currentindex];
                    
317                $plugins[$currentindex] = $tempplugin;
                    
                
ext_zlib.php https://gitlab.com/Blueprint-Marketing/hhvm | PHP | 402 lines
                    
1<?hh
                    
2// @generated by docskel.php
                    
3
                    
15/**
                    
16 * ( excerpt from http://docs.hhvm.com/manual/en/function.zlib-encode.php )
                    
17 *
                    
18 * Compress data with the specified encoding. Warning: This function is
                    
19 * currently not documented; only its argument list is available.
                    
20 *
                    
28/**
                    
29 * ( excerpt from http://docs.hhvm.com/manual/en/function.zlib-decode.php )
                    
30 *
                    
31 * Uncompress any raw/gzip/zlib encoded data. Warning: This function is
                    
32 * currently not documented; only its argument list is available.
                    
33 *
                    
                
class-wc-api-webhooks.php https://gitlab.com/webkod3r/tripolis | PHP | 462 lines
                    
1<?php
                    
2/**
                    
88
                    
89			$webhooks[] = current( $this->get_webhook( $webhook_id, $fields ) );
                    
90		}
                    
141		try {
                    
142			if ( ! current_user_can( 'read_private_shop_webhooks' ) ) {
                    
143				throw new WC_API_Exception( 'woocommerce_api_user_cannot_read_webhooks_count', __( 'You do not have permission to read the webhooks count', 'woocommerce' ), 401 );
                    
174			// permission check
                    
175			if ( ! current_user_can( 'publish_shop_webhooks' ) ) {
                    
176				throw new WC_API_Exception( 'woocommerce_api_user_cannot_create_webhooks', __( 'You do not have permission to create webhooks', 'woocommerce' ), 401 );
                    
194				'ping_status'   => 'closed',
                    
195				'post_author'   => get_current_user_id(),
                    
196				'post_password' => strlen( ( $password = uniqid( 'webhook_' ) ) ) > 20 ? substr( $password, 0, 20 ) : $password,
                    
212			// set secret if provided, defaults to API users consumer secret
                    
213			$webhook->set_secret( ! empty( $data['secret'] ) ? $data['secret'] : get_user_meta( get_current_user_id(), 'woocommerce_api_consumer_secret', true ) );
                    
214
                    
                
insertar_U.php https://gitlab.com/slayerfat/sistemaJAG | PHP | 392 lines
                    
24}
                    
25$enlace = $_SERVER['DOCUMENT_ROOT']."/github/sistemaJAG/php/master.php";
                    
26require_once($enlace);
                    
268              <p>
                    
269                <?php $cerrar = enlaceDinamico('cerrar.php'); ?>
                    
270                <a class="btn btn-warning btn-lg" href="<?php echo $cerrar ?>">
                    
353  //FINALIZAMOS LA PAGINA:
                    
354  //trae footer.php y cola.php
                    
355  finalizarPagina($_SESSION['cod_tipo_usr'], $_SESSION['cod_tipo_usr']);?>
                    
366          <p>
                    
367            <?php $cerrar = enlaceDinamico('cerrar.php'); ?>
                    
368            <a class="btn btn-warning btn-lg" href="<?php echo $cerrar ?>">
                    
388//FINALIZAMOS LA PAGINA:
                    
389//trae footer.php y cola.php
                    
390finalizarPagina($_SESSION['cod_tipo_usr'], $_SESSION['cod_tipo_usr']);
                    
                
update.php https://bitbucket.org/sephora99/kmirock.git | PHP | 420 lines
                    
27	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
28	$php_version = phpversion();
                    
29
                    
61		'version'           => $wp_version,
                    
62		'php'               => $php_version,
                    
63		'locale'            => $locale,
                    
146	// Check for updated every 60 minutes if hitting update pages; else, check every 12 hours.
                    
147	$timeout = in_array( current_filter(), array( 'load-plugins.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200;
                    
148	$time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked );
                    
153
                    
154		if ( !isset( $current->checked[ $file ] ) || strval($current->checked[ $file ]) !== strval($p['Version']) )
                    
155			$plugin_changed = true;
                    
225	// Check for updated every 60 minutes if hitting update pages; else, check every 12 hours.
                    
226	$timeout = in_array( current_filter(), array( 'load-themes.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200;
                    
227	$time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time( ) - $last_update->last_checked );
                    
                
FieldApiDataTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 385 lines
                    
114    // The node field should join against node_field_data.
                    
115    $this->assertArrayHasKey('node_field_data', $data[$current_table]['table']['join']);
                    
116    $this->assertArrayHasKey('node_field_revision', $data[$revision_table]['table']['join']);
                    
145    $current_table_long = $table_mapping->getDedicatedDataTableName($field_storage_string_long);
                    
146    $this->assertTrue($data_long[$current_table_long][$field_storage_string_long->getName()]['field']['click sortable']);
                    
147
                    
148    $this->assertInstanceOf(MarkupInterface::class, $data[$current_table][$field_storage_string->getName()]['help']);
                    
149    $this->assertEquals('Appears in: page, article. Also known as: Content: GiraffeB&quot; label', $data[$current_table][$field_storage_string->getName()]['help']);
                    
150
                    
150
                    
151    $this->assertInstanceOf(MarkupInterface::class, $data[$current_table][$field_storage_string->getName() . '_value']['help']);
                    
152    $this->assertEquals('Appears in: page, article. Also known as: Content: GiraffeA&quot; label (field_string)', $data[$current_table][$field_storage_string->getName() . '_value']['help']);
                    
194    $revision_table = $table_mapping->getDedicatedRevisionTableName($field_storage);
                    
195    $data[$current_table] = $views_data->get($current_table);
                    
196    $data[$revision_table] = $views_data->get($revision_table);
                    
                
LocaleConfigTranslationImportTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 308 lines
                    
1<?php
                    
2
                    
76    $status = locale_translation_get_status();
                    
77    $status['drupal']['af']->type = 'current';
                    
78    \Drupal::state()->set('locale.translation_status', $status);
                    
108    $status = locale_translation_get_status();
                    
109    $status['drupal']['af']->type = 'current';
                    
110    \Drupal::state()->set('locale.translation_status', $status);
                    
228    // Remove the string from translation to simulate a Locale removal. Note
                    
229    // that is no current way of doing this in the UI.
                    
230    $locale_storage = \Drupal::service('locale.storage');
                    
                
manager.php https://gitlab.com/campus-academy/krowkaramel | PHP | 435 lines
                    
1<?php
                    
2namespace Elementor\Core\Kits;
                    
96	 *
                    
97	 * After moving the `default_font` to the kit, the Typography group control cause initialize the kit controls at: https://github.com/elementor/elementor/blob/e6e1db9eddef7e3c1a5b2ba0c2338e2af2a3bfe3/includes/controls/groups/typography.php#L91
                    
98	 * and because the group control is a singleton, its args are changed to the last kit group control.
                    
103
                    
104	public function get_current_settings( $setting = null ) {
                    
105		$kit = $this->get_active_kit_for_frontend();
                    
203			'user' => [
                    
204				'can_edit_kit' => $kit->is_editable_by_current_user(),
                    
205			],
                    
236	public function render_panel_html() {
                    
237		require __DIR__ . '/views/panel.php';
                    
238	}
                    
245		if ( $is_kit_preview ) {
                    
246			$kit = Plugin::$instance->documents->get_doc_or_auto_save( $active_kit->get_main_id(), get_current_user_id() );
                    
247		} elseif ( 'publish' === $active_kit->get_main_post()->post_status ) {
                    
                
ClassLoader.php https://gitlab.com/wendy-du-973/club-invest-gr2 | PHP | 481 lines
                    
1<?php
                    
2
                    
39 * @author Jordi Boggiano <j.boggiano@seld.be>
                    
40 * @see    https://www.php-fig.org/psr/psr-0/
                    
41 * @see    https://www.php-fig.org/psr/psr-4/
                    
274    /**
                    
275     * Should class lookup fail if not found in the current class map?
                    
276     *
                    
376
                    
377        $file = $this->findFileWithExtension($class, '.php');
                    
378
                    
396    /**
                    
397     * Returns the currently registered loaders indexed by their corresponding vendor directories.
                    
398     *
                    
                
Profiler.php https://gitlab.com/florianocomercial/centreon | PHP | 471 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
143    /**
                    
144     * Get the current state of enable.  If True is returned,
                    
145     * the profiler is enabled.
                    
280         */
                    
281        require_once 'Zend/Db/Profiler/Query.php';
                    
282        $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType);
                    
308             */
                    
309            require_once 'Zend/Db/Profiler/Exception.php';
                    
310            throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'.");
                    
319             */
                    
320            require_once 'Zend/Db/Profiler/Exception.php';
                    
321            throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended.");
                    
                
user-moderation-admin.php https://gitlab.com/Gashler/sg | PHP | 432 lines
                    
180		?>
                    
181		<input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_none" value="none"<?php checked( $this->get_option( 'type' ), 'none' ); ?> />
                    
182		<label for="<?php echo $this->options_key; ?>_type_none"><?php _e( 'None', 'theme-my-login' ); ?></label>
                    
184
                    
185		<input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_email" value="email" <?php checked( $this->get_option( 'type' ), 'email' ); ?> />
                    
186		<label for="<?php echo $this->options_key; ?>_type_email"><?php _e( 'E-mail Confirmation', 'theme-my-login' ); ?></label>
                    
188
                    
189		<input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_admin" value="admin" <?php checked( $this->get_option( 'type' ), 'admin' ); ?> />
                    
190		<label for="<?php echo $this->options_key; ?>_type_admin"><?php _e( 'Admin Approval', 'theme-my-login' ); ?></label>
                    
190		<label for="<?php echo $this->options_key; ?>_type_admin"><?php _e( 'Admin Approval', 'theme-my-login' ); ?></label>
                    
191		<p class="description"><?php _e( 'Check this option to require new users to be approved by an administrator before they may log in.', 'theme-my-login' ); ?></p>
                    
192		<?php
                    
295
                    
296		$current_user = wp_get_current_user();
                    
297
                    
                
inputfilter.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 551 lines
                    
2/**
                    
3 *  @class: InputFilter (PHP4 & PHP5, with comments)
                    
4 * @project: PHP Input Filter
                    
5 * @date: 10-05-2005
                    
6 * @version: 1.2.2_php4/php5
                    
7 * @author: Daniel Morris
                    
58	/**
                    
59	 * Method to be called by another php script. Processes for XSS and
                    
60	 * specified bad code.
                    
183			$attrSet		= array ();
                    
184			$currentSpace	= strpos($tagLeft, ' ');
                    
185
                    
188			 */
                    
189			if (substr($currentTag, 0, 1) == "/")
                    
190			{
                    
                
DefaultTableMapping.php https://gitlab.com/reasonat/test8 | PHP | 396 lines
                    
1<?php
                    
2
                    
387      $separator = $revision ? '_r__' : '__';
                    
388      // Truncate to the same length for the current and revision tables.
                    
389      $entity_type = substr($storage_definition->getTargetEntityTypeId(), 0, 34);
                    
                
jquery.tagsinput.js https://gitlab.com/techniconline/kmc | JavaScript | 358 lines
                    
10 Licensed under the MIT license:
                    
11 http://www.opensource.org/licenses/mit-license.php
                    
12
                    
37            newWidth = (testerWidth + o.comfortZone) >= minWidth ? testerWidth + o.comfortZone : minWidth,
                    
38            currentWidth = input.width(),
                    
39            isValidWidthChange = (newWidth < currentWidth && newWidth >= minWidth)
                    
                
Manager.js https://github.com/flomotlik/grails-qooxdoo.git | JavaScript | 453 lines
                    
11     LGPL: http://www.gnu.org/licenses/lgpl.html
                    
12     EPL: http://www.eclipse.org/org/documents/epl-v10.php
                    
13     See the LICENSE file in the project's top-level directory for details.
                    
67    __activeBoxInfo : null,
                    
68    __currentGroupBox : null,
                    
69    __groupBoxChange : false,
                    
89      // set the start groupBox
                    
90      this.__currentGroupBox = activeBox.getGroupBoxId();
                    
91
                    
308        // get the first element of the groupBox as start point
                    
309        nextBox = qx.dom.Hierarchy.getFirstDescendant(document.getElementById(this.__currentGroupBox));
                    
310
                    
423      // check at first the current groupBox
                    
424      if (this.__groupBoxInfos[this.__currentGroupBox].left <= left && this.__groupBoxInfos[this.__currentGroupBox].right >= left)
                    
425      {
                    
                
revision.php https://gitlab.com/sihabudinahmad/asppi | PHP | 403 lines
                    
190		$current = ! $autosave && $revision->post_modified_gmt === $post->post_modified_gmt;
                    
191		if ( $current && ! empty( $current_id ) ) {
                    
192			// If multiple revisions have the same post_modified_gmt, highest ID is current.
                    
210			'autosave'   => $autosave,
                    
211			'current'    => $current,
                    
212			'restoreUrl' => $can_restore ? $restore_link : false,
                    
273		}
                    
274		$revisions[ $current_id ]['current'] = true;
                    
275	}
                    
302		'diffData'         => $diffs,
                    
303		'baseUrl'          => parse_url( admin_url( 'revision.php' ), PHP_URL_PATH ),
                    
304		'compareTwoMode'   => absint( $compare_two_mode ), // Apparently booleans are not allowed
                    
362					<# } else if ( data.attributes.current ) { #>
                    
363						<span class="byline"><?php printf( __( 'Current Revision by %s' ),
                    
364							'<span class="author-name">{{ data.attributes.author.name }}</span>' ); ?></span>
                    
                
Abstract.php https://bitbucket.org/jfrubiom/zendframework-1.x.git | PHP | 456 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/Interface.php';
                    
26
                    
151        if (!isset($this->_messageTemplates[$messageKey])) {
                    
152            require_once 'Zend/Validate/Exception.php';
                    
153            throw new Zend_Validate_Exception("No message template exists for key '$messageKey'");
                    
193         */
                    
194        require_once 'Zend/Validate/Exception.php';
                    
195        throw new Zend_Validate_Exception("No property exists by the name '$property'");
                    
261            $keys = array_keys($this->_messageTemplates);
                    
262            $messageKey = current($keys);
                    
263        }
                    
                
tcp_cubic.c https://gitlab.com/karrei/imx6-kernel | C | 497 lines
                    
19 * All testing results are available from:
                    
20 * http://netsrv.csc.ncsu.edu/wiki/index.php/TCP_Testing
                    
21 *
                    
89	u32	bic_origin_point;/* origin point of bic function */
                    
90	u32	bic_K;		/* time to origin point from the beginning of the current epoch */
                    
91	u32	delay_min;	/* min delay (msec << 3) */
                    
102	u32	last_ack;	/* last time when the ACK spacing is close */
                    
103	u32	curr_rtt;	/* the minimum rtt of current round */
                    
104};
                    
                
about.php https://gitlab.com/relacilia/cakra | PHP | 243 lines
                    
45		<h2 class="nav-tab-wrapper">
                    
46			<a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What&#8217;s New' ); ?></a>
                    
47			<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
                    
47			<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
                    
48			<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
                    
49		</h2>
                    
110				<div class="embed-container">
                    
111					<blockquote data-secret="OcUe7B6Edh" class="wp-embedded-content"><a href="https://wordpress.org/news/2015/12/clifford/">WordPress 4.4 &ldquo;Clifford&rdquo;</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="display:none;" src="https://wordpress.org/news/2015/12/clifford/embed/#?secret=OcUe7B6Edh" data-secret="OcUe7B6Edh" width="600" height="338" title="<?php esc_attr_e( 'Embedded WordPress Post' ); ?>" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
                    
112				</div>
                    
199				<?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
                    
200					<a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>">
                    
201						<?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' ); ?>
                    
203				<?php endif; ?>
                    
204				<a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
                    
205			</div>
                    
                
class-page-title.php https://gitlab.com/campus-academy/krowkaramel | PHP | 530 lines
                    
412	 *
                    
413	 * Written in PHP and used to generate the final HTML.
                    
414	 *
                    
431
                    
432		<?php
                    
433		$head_link_url    = isset( $settings['page_heading_link']['url'] ) ? $settings['page_heading_link']['url'] : '';
                    
440			<?php } ?>
                    
441			<<?php echo $heading_size_tag; ?> class="elementor-heading-title elementor-size-<?php echo $settings['size']; ?>">
                    
442				<?php if ( '' !== $settings['new_page_title_select_icon']['value'] ) { ?>
                    
443						<span class="hfe-page-title-icon">
                    
444							<?php \Elementor\Icons_Manager::render_icon( $settings['new_page_title_select_icon'], [ 'aria-hidden' => 'true' ] ); ?>             </span>
                    
445				<?php } ?>				
                    
465		</div>
                    
466		<?php
                    
467
                    
                
tools.php https://gitlab.com/campus-academy/krowkaramel | PHP | 432 lines
                    
1<?php
                    
2namespace Elementor;
                    
152
                    
153		$plugin_slug = basename( ELEMENTOR__FILE__, '.php' );
                    
154
                    
205
                    
206			require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
                    
207
                    
221
                    
222			$current_index = 0;
                    
223			foreach ( $plugin_information->versions as $version => $download_link ) {
                    
223			foreach ( $plugin_information->versions as $version => $download_link ) {
                    
224				if ( $max_versions <= $current_index ) {
                    
225					break;
                    
429	public static function can_user_rollback_versions() {
                    
430		return current_user_can( 'activate_plugins' ) && current_user_can( 'update_plugins' );
                    
431	}
                    
                
directw.php https://gitlab.com/Zinnurain/destination_finder_beta | PHP | 412 lines
                    
69						//Move to next line
                    
70						if ($currentx != 0) $this->mpdf->x=$currentx;
                    
71						else $this->mpdf->x=$this->mpdf->lMargin;
                    
95						$inclCursive=false;
                    
96						if (isset($this->mpdf->CurrentFont['useOTL']) && $this->mpdf->CurrentFont['useOTL']) {
                    
97							if (preg_match("/([".$this->mpdf->pregCURSchars."])/u", $tmp)) { $inclCursive = true; }
                    
187				if($nl==1) {
                    
188					if ($currentx != 0) $this->mpdf->x=$currentx;
                    
189					else $this->mpdf->x=$this->mpdf->lMargin;
                    
203	if($i!=$j) {
                    
204		if ($currentx != 0) $this->mpdf->x=$currentx;
                    
205		else $this->mpdf->x=$this->mpdf->lMargin;	
                    
365	// Use OTL OpenType Table Layout - GSUB & GPOS
                    
366	if (isset($this->mpdf->CurrentFont['useOTL']) && $this->mpdf->CurrentFont['useOTL']) {
                    
367		$text = $this->mpdf->otl->applyOTL($text, $this->mpdf->CurrentFont['useOTL']);
                    
                
users.md https://gitlab.com/certik/gitlab-ce | Markdown | 164 lines
                    
25- **Programming experience**<br>Over 10 years
                    
26- **Frequently used programming languages**<br>JavaScript, SQL, PHP
                    
27- **Hobbies / interests**<br>Functional programming, open source, gaming, web development and web security.
                    
29#### Motivations
                    
30Nazim works for a software development company which currently hires around 80 people. When Nazim first joined the company, the engineering team were using Subversion (SVN) as their primary form of source control. However, Nazim felt SVN was not flexible enough to work with many feature branches and noticed that developers with less experience of source control struggled with the central-repository nature of SVN. Armed with a wishlist of features, Nazim began comparing source control tools. A search for “self-hosted Git server repository management” returned GitLab. In his own words, Nazim explains why he wanted the engineering team to start using GitLab:
                    
31
                    
67##### UI/UX
                    
68GitLab’s interface initially attracted Nazim when he was comparing version control software. He thought it would help his less technical colleagues to adapt to using Git and perhaps, GitLab could be rolled out to other areas of the business, beyond engineering. However, using GitLab’s interface daily has left him frustrated at the lack of personalisation / control over his user experience. He’s also regularly lost in a maze of navigation. Whilst he acknowledges that GitLab listens to its users and that the interface is improving, he becomes annoyed when the changes are too progressive. “Too frequent UI changes. Most of them tend to turn out great after a few cycles of fixes, but the frequency is still far too high for me to feel comfortable to always stay on the current release.”
                    
69
                    
89- **Programming experience**<br>Over 10 years
                    
90- **Frequently used programming languages**<br>JavaScript, SQL, Node.js, Java, PHP, Python
                    
91- **Hobbies / interests**<br>DevOps, open source, web development, science, automation and electronics.
                    
93#### Motivations
                    
94James works for a research company which currently hires around 800 staff. He began using GitLab.com back in 2013 for his own open source, hobby projects and loved “the simplicity of installation, administration and use”. After using GitLab for over a year, he began to wonder about using it at work. James explains:
                    
95
                    
                
meta-box.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 479 lines
                    
1<?php
                    
2// Prevent loading this file directly
                    
29		/**
                    
30		 * @var array Contains all field types of current meta box
                    
31		 */
                    
46		 *
                    
47		 * @see demo/demo.php file for details
                    
48		 *
                    
65			// 1st action applies to all meta boxes
                    
66			// 2nd action applies to only current meta box
                    
67			$show = true;
                    
104		{
                    
105			$screen = get_current_screen();
                    
106
                    
187		 * @param array  $hidden Array of default hidden meta boxes
                    
188		 * @param object $screen Current screen information
                    
189		 *
                    
                
spellChecker.js https://gitlab.com/phamngsinh/baitaplon_sinhvien | JavaScript | 458 lines
                    
296			// if the current word index is zero then reset the seed
                    
297			if( this.currentWordIndex == 0 && this.currentTextIndex > 0 ) {
                    
298				this.currentTextIndex--;
                    
368	// check if this is the last word in the current text element
                    
369	if( this.currentWordIndex == ww.totalWords( this.currentTextIndex) ) {
                    
370		this.currentTextIndex++;
                    
387	// skip the current word if it has already been worked on
                    
388	if( this.wordFlags[this.currentTextIndex][this.currentWordIndex] ) {
                    
389		// increment the global current word index and move on.
                    
392	} else {
                    
393		var evalText = ww.getTextVal( this.currentTextIndex, this.currentWordIndex );
                    
394		if( evalText ) {
                    
396			ww.setFocus( this.currentTextIndex, this.currentWordIndex );
                    
397			this._getSuggestions( this.currentTextIndex, this.currentWordIndex );
                    
398		}
                    
                
Abstract.php https://bitbucket.org/ksekar/campus.git | PHP | 456 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Abstract.php 24594 2012-01-05 21:27:01Z matthew $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/Interface.php';
                    
26
                    
151        if (!isset($this->_messageTemplates[$messageKey])) {
                    
152            require_once 'Zend/Validate/Exception.php';
                    
153            throw new Zend_Validate_Exception("No message template exists for key '$messageKey'");
                    
193         */
                    
194        require_once 'Zend/Validate/Exception.php';
                    
195        throw new Zend_Validate_Exception("No property exists by the name '$property'");
                    
261            $keys = array_keys($this->_messageTemplates);
                    
262            $messageKey = current($keys);
                    
263        }
                    
                
SubPanel.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 384 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
40
                    
41require_once('include/SubPanel/registered_layout_defs.php');
                    
42/**
                    
56	var $show_select_button = true;
                    
57	var $subpanel_define = null;  // contains the layout_def.php
                    
58	var $subpanel_defs;
                    
91			if (!class_exists('MyClass')) {
                    
92				require_once 'include/SubPanel/SubPanelDefinitions.php' ;
                    
93			}
                    
115
                    
116	function getHeaderText( $currentModule){
                    
117	}
                    
157		global $app_strings;
                    
158		global $current_user;
                    
159		global $sugar_config;
                    
                
AbstractClassMetadataFactory.php https://gitlab.com/mario.uriarte/doctrine2.5-tutorial | PHP | 429 lines
                    
1<?php
                    
2/*
                    
90    /**
                    
91     * Returns an array of all the loaded metadata currently in memory.
                    
92     *
                    
294     * Scenarios in a code-generation setup might have access to XML/YAML
                    
295     * Mapping files without the actual PHP code existing here. That is why the
                    
296     * {@see Doctrine\Common\Persistence\Mapping\ReflectionService} interface
                    
                
Mbox.php https://gitlab.com/rsilveira1987/Expresso | PHP | 447 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Mbox.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
21 */
                    
27 */
                    
28// require_once 'Zend/Loader.php';
                    
29
                    
32 */
                    
33require_once 'Zend/Mail/Storage/Abstract.php';
                    
34
                    
37 */
                    
38require_once 'Zend/Mail/Message/File.php';
                    
39
                    
80    /**
                    
81     * Count messages all messages in current box
                    
82     *
                    
                
gravatar-profile.php https://gitlab.com/hunt9310/ras | PHP | 405 lines
                    
256			<label for="<?php echo $this->get_field_id( 'title' ); ?>">
                    
257				<?php esc_html_e( 'Title', 'jetpack' ); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
                    
258			</label>
                    
277			<label for="<?php echo $this->get_field_id( 'email' ); ?>"><?php esc_html_e( 'Custom Email Address', 'jetpack' ); ?>
                    
278				<input class="widefat" id="<?php echo $this->get_field_id('email'); ?>" name="<?php echo $this->get_field_name( 'email' ); ?>" type="text" value="<?php echo esc_attr( $email ); ?>" />
                    
279			</label>
                    
283			<label for="<?php echo $this->get_field_id( 'show_personal_links' ); ?>">
                    
284				<input type="checkbox" name="<?php echo $this->get_field_name( 'show_personal_links' ); ?>" id="<?php echo $this->get_field_id( 'show_personal_links' ); ?>" <?php checked( $show_personal_links ); ?> />
                    
285				<?php esc_html_e( 'Show Personal Links', 'jetpack' ); ?>
                    
292			<label for="<?php echo $this->get_field_id( 'show_account_links' ); ?>">
                    
293				<input type="checkbox" name="<?php echo $this->get_field_name( 'show_account_links' ); ?>" id="<?php echo $this->get_field_id( 'show_account_links' ); ?>" <?php checked( $show_account_links ); ?> />
                    
294				<?php esc_html_e( 'Show Account Links', 'jetpack' ); ?>
                    
299
                    
300		<p><a href="<?php echo esc_url( $profile_url ); ?>" target="_blank" title="<?php esc_attr_e( 'Opens in new window', 'jetpack' ); ?>"><?php esc_html_e( 'Edit Your Profile', 'jetpack' )?></a> | <a href="https://gravatar.com" target="_blank" title="<?php esc_attr_e( 'Opens in new window', 'jetpack' ); ?>"><?php esc_html_e( "What's a Gravatar?", 'jetpack' ); ?></a></p>
                    
301
                    
                
ProductCustomOptionRepositoryTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 373 lines
                    
1<?php
                    
2/**
                    
35    /**
                    
36     * @magentoApiDataFixture Magento/Catalog/_files/product_with_options.php
                    
37     * @magentoAppIsolation enabled
                    
66    /**
                    
67     * @magentoApiDataFixture Magento/Catalog/_files/product_with_options.php
                    
68     * @magentoAppIsolation enabled
                    
76        $options = $service->getList('simple');
                    
77        $option = current($options);
                    
78        $optionId = $option->getOptionId();
                    
92        unset($option['option_id']);
                    
93        $excepted = include '_files/product_options.php';
                    
94        $this->assertEquals($excepted[0], $option);
                    
97    /**
                    
98     * @magentoApiDataFixture Magento/Catalog/_files/product_with_options.php
                    
99     * @magentoAppIsolation enabled
                    
                
EventHelpers.js https://gitlab.com/techniconline/kmc | JavaScript | 437 lines
                    
9 * released under the MIT License:
                    
10 *   http://www.opensource.org/licenses/mit-license.php
                    
11 *
                    
225            // W3C
                    
226        } else if (e.currentTarget) {
                    
227            return e.currentTarget;
                    
                
_customized_data.tpl https://gitlab.com/nghiep5890/prestashop | Smarty Template | 238 lines
                    
8* It is also available through the world-wide-web at this URL:
                    
9* http://opensource.org/licenses/afl-3.0.php
                    
10* If you did not receive a copy of the license and are unable to
                    
21*  @copyright  2007-2015 PrestaShop SA
                    
22*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23*  International Registered Trademark & Property of PrestaShop SA
                    
77		{if ($order->hasBeenDelivered() || $order->hasProductReturned())}<td class="productQuantity text-center">{$product['customizationQuantityReturned']}</td>{/if}
                    
78		{if $stock_management}<td class="text-center">{$product['current_stock']}</td>{/if}
                    
79		<td class="total_product">
                    
85		</td>
                    
86		<td class="cancelQuantity standard_refund_fields current-edit" style="display:none" colspan="2">
                    
87			&nbsp;
                    
89		<td class="edit_product_fields" colspan="2" style="display:none">&nbsp;</td>
                    
90		<td class="partial_refund_fields current-edit" style="text-align:left;display:none;"></td>
                    
91		{if ($can_edit && !$order->hasBeenDelivered())}
                    
                
 

Source

Language