PageRenderTime 460ms queryTime 65ms sortTime 141ms getByIdsTime 61ms findMatchingLines 62ms

100+ results results for 'php printf repo:petergibbons/OpenCounterWP' (460 ms)

Not the results you expected?
StorageServiceSettings.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 485 lines
                    
1<?php
                    
2
                    
14 * 
                    
15 * PHP version 5
                    
16 *
                    
18 * @package   WindowsAzure\Common\Internal
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright 2012 Microsoft Corporation
                    
21 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
22 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
23 */
                    
35 * @package   WindowsAzure\Common\Internal
                    
36 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
37 * @copyright 2012 Microsoft Corporation
                    
39 * @version   Release: @package_version@
                    
40 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
41 */
                    
                
web.php https://github.com/XioNoX/Benevolus.git | PHP | 509 lines
                    
1<?php
                    
2
                    
3/**
                    
4	Web pack for the PHP Fat-Free Framework
                    
5
                    
63			if (!is_file($path.$file)) {
                    
64				trigger_error(sprintf(self::TEXT_Minify,$file));
                    
65				return $echo?NULL:FALSE;
                    
205		if ($echo) {
                    
206			if (PHP_SAPI!='cli' && !headers_sent())
                    
207				header(self::HTTP_Content.': '.$mime[$ext[1]].'; '.
                    
295				self::HTTP_Agent.': Mozilla/5.0 '.
                    
296					'(compatible;'.PHP_OS.')'.self::EOL.
                    
297				($reqhdrs?
                    
485			// Sockets extension required
                    
486			trigger_error(sprintf(self::TEXT_PHPExt,'sockets'));
                    
487		// Default translations
                    
                
internal-link-aliases.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 374 lines
                    
1<?php
                    
2
                    
34		if (suwp::permalink_mode() != SUWP_PRETTY_PERMALINKS)
                    
35			$this->print_message('error', sprintf(__('Link Mask Generator won&#8217;t work with default or &#8220;pathinfo&#8221; permalinks. Please change your <a href="%s">permalink structure</a> to enable this module&#8217;s functionality.', 'seo-ultimate'), 'options-permalink.php'));
                    
36		
                    
                
TextArea.php https://gitlab.com/ElvisAns/tiki | PHP | 377 lines
                    
1<?php
                    
2
                    
112        $wikilib = TikiLib::lib('wiki');
                    
113        $wikilib->update_wikicontent_relations($value, 'trackeritemfield', sprintf("%d:%d", $itemId, $fieldId));
                    
114        $wikilib->update_wikicontent_links($value, 'trackeritemfield', sprintf("%d:%d", $itemId, $fieldId));
                    
                
class-cp-user-relationships.php https://gitlab.com/clusterpress/clusterpress | PHP | 543 lines
                    
1<?php
                    
2/**
                    
401		$sql = array(
                    
402			'select' => sprintf( 'SELECT %s FROM %s', esc_sql( $column ), $this->table ),
                    
403			'where'  => array(),
                    
466		$sql = array(
                    
467			'select' => sprintf( 'SELECT count( %s ) FROM %s', esc_sql( $column ), $this->table ),
                    
468			'where'  => array(),
                    
477		if ( $group_by && in_array( $group_by, array( 'user_id', 'primary_id', 'secondary_id' ) ) ) {
                    
478			$sql['select']  = sprintf( 'SELECT DISTINCT %s, count( %s ) as count FROM %s', esc_sql( $group_by ), esc_sql( $column ), $this->table );
                    
479			$sql['groupby'] = sprintf( 'GROUP BY %s', esc_sql( $group_by ) );
                    
531		$sql = array(
                    
532			'select' => sprintf( 'DELETE FROM %s', $this->table ),
                    
533		);
                    
                
Command.php https://github.com/l3l0/BehatExamples.git | PHP | 512 lines
                    
1<?php
                    
2
                    
378            $name,
                    
379            $_SERVER['PHP_SELF'].' '.$name
                    
380        );
                    
415    {
                    
416        return sprintf('%s %s', $this->getFullName(), $this->definition->getSynopsis());
                    
417    }
                    
490        $commandXML->appendChild($usageXML = $dom->createElement('usage'));
                    
491        $usageXML->appendChild($dom->createTextNode(sprintf($this->getSynopsis(), '')));
                    
492
                    
                
zone.php https://bitbucket.org/sandeepbhaskar/inspiredliving.git | PHP | 441 lines
                    
1<?php 
                    
2class ControllerLocalisationZone extends Controller {
                    
411			if ($store_total) {
                    
412				$this->error['warning'] = sprintf($this->language->get('error_store'), $store_total);
                    
413			}
                    
417			if ($address_total) {
                    
418				$this->error['warning'] = sprintf($this->language->get('error_address'), $address_total);
                    
419			}
                    
423			if ($affiliate_total) {
                    
424				$this->error['warning'] = sprintf($this->language->get('error_affiliate'), $affiliate_total);
                    
425			}
                    
429			if ($zone_to_geo_zone_total) {
                    
430				$this->error['warning'] = sprintf($this->language->get('error_zone_to_geo_zone'), $zone_to_geo_zone_total);
                    
431			}
                    
                
date.php https://github.com/chemila/kohana.git | PHP | 566 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
28	 * Timezone for formatted_time
                    
29	 * @link http://uk2.php.net/manual/en/timezones.php
                    
30	 * @var  string
                    
39	 *
                    
40	 * [!!] A list of time zones that PHP supports can be found at
                    
41	 * <http://php.net/timezones>.
                    
95		{
                    
96			$seconds[$i] = sprintf('%02d', $i);
                    
97		}
                    
204
                    
205		return sprintf('%02d', $hour);
                    
206	}
                    
548	 *
                    
549	 * @see     http://php.net/manual/en/datetime.construct.php
                    
550	 * @param   string  datetime_str     datetime string
                    
                
class-wpb-map.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 563 lines
                    
1<?php
                    
2/**
                    
12 * This class maps shortcodes settings to VC editors. You can manage add new shortcodes or manage default shortcodes
                    
13 * mapped in config/map.php. For developers it is possible to use API functions to add update settings attributes.
                    
14 *
                    
14 *
                    
15 * @see config/map.php
                    
16 * @see include/helpers/helpers_api.php
                    
126	 * You need to shortcode's tag and  settings to map correctly.
                    
127	 * Default shortcodes are mapped in config/map.php file.
                    
128	 * The best way is to call this method with "init" action callback function of WP.
                    
144			if ( empty( $attributes['name'] ) ) {
                    
145				trigger_error( sprintf( __( "Wrong name for shortcode:%s. Name required", "js_composer" ), $tag ) );
                    
146			} elseif ( empty( $attributes['base'] ) ) {
                    
146			} elseif ( empty( $attributes['base'] ) ) {
                    
147				trigger_error( sprintf( __( "Wrong base for shortcode:%s. Base required", "js_composer" ), $tag ) );
                    
148			} else {
                    
                
PerformanceScenarioTest.cpp https://github.com/dumganhar/cocos2d-x.git | C++ | 438 lines
                    
77    listener->onTouchesMoved = CC_CALLBACK_2(ScenarioTest::onTouchesMoved, this);
                    
78    _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this);
                    
79
                    
157    char str[32] = { 0 };
                    
158    sprintf(str, "Particles : %d", _particleNumber);
                    
159    _particleLabel = Label::createWithTTF(str, "fonts/arial.ttf", 15);
                    
196    char str[25] = { 0 };
                    
197    sprintf(str, "Particles : %d", _particleNumber);
                    
198    _particleLabel->setString(str);
                    
214    char str[25] = { 0 };
                    
215    sprintf(str, "Particles : %d", _particleNumber);
                    
216    _particleLabel->setString(str);
                    
257    char str[20] = {0};
                    
258    sprintf(str, "Sprites : %d", (int)_spriteArray.size());
                    
259    _spriteLabel->setString(str);
                    
                
class-wp-media-list-table.php https://github.com/vidor/vidor.me.git | PHP | 396 lines
                    
66			if ( !empty( $num_posts[$mime_type] ) )
                    
67				$type_links[$mime_type] = "<a href='upload.php?post_mime_type=$mime_type'$class>" . sprintf( translate_nooped_plural( $label[2], $num_posts[$mime_type] ), number_format_i18n( $num_posts[$mime_type] )) . '</a>';
                    
68		}
                    
68		}
                    
69		$type_links['detached'] = '<a href="upload.php?detached=1"' . ( $this->detached ? ' class="current"' : '' ) . '>' . sprintf( _nx( 'Unattached <span class="count">(%s)</span>', 'Unattached <span class="count">(%s)</span>', $total_orphans, 'detached files' ), number_format_i18n( $total_orphans ) ) . '</a>';
                    
70
                    
71		if ( !empty($_num_posts['trash']) )
                    
72			$type_links['trash'] = '<a href="upload.php?status=trash"' . ( (isset($_GET['status']) && $_GET['status'] == 'trash' ) ? ' class="current"' : '') . '>' . sprintf( _nx( 'Trash <span class="count">(%s)</span>', 'Trash <span class="count">(%s)</span>', $_num_posts['trash'], 'uploaded files' ), number_format_i18n( $_num_posts['trash'] ) ) . '</a>';
                    
73
                    
208?>
                    
209				<a href="<?php echo get_edit_post_link( $post->ID, true ); ?>" title="<?php echo esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $att_title ) ); ?>">
                    
210					<?php echo $thumb; ?>
                    
291?>
                    
292		<td <?php echo $attributes ?>><?php echo $h_time ?></td>
                    
293<?php
                    
                
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' => 'بازيابي',
                    
51	'Show only errors' => 'فقط نمايش خطاها',
                    
52	// sprintf() format for time of the command
                    
53	'%.3f s' => '%.3f s',
                    
                
length_class.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 412 lines
                    
1<?php
                    
2class ControllerLocalisationLengthClass extends Controller {
                    
400			if ($product_total) {
                    
401				$this->error['warning'] = sprintf($this->language->get('error_product'), $product_total);
                    
402			}
                    
                
DefaultOptions.php https://github.com/Exercise/symfony.git | PHP | 320 lines
                    
1<?php
                    
2
                    
19 *
                    
20 * Options are a common pattern for initializing classes in PHP. Avoiding the
                    
21 * problems related to this approach is however a non-trivial task. Usually,
                    
294        if (count($diff) > 1) {
                    
295            throw new InvalidOptionException(sprintf('The options "%s" do not exist. Known options are: "%s"', implode('", "', $diff), implode('", "', $knownOptions)));
                    
296        }
                    
298        if (count($diff) > 0) {
                    
299            throw new InvalidOptionException(sprintf('The option "%s" does not exist. Known options are: "%s"', current($diff), implode('", "', $knownOptions)));
                    
300        }
                    
315            if (!in_array($options[$option], $allowedValues, true)) {
                    
316                throw new InvalidOptionException(sprintf('The option "%s" has the value "%s", but is expected to be one of "%s"', $option, $options[$option], implode('", "', $allowedValues)));
                    
317            }
                    
                
category.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 394 lines
                    
1<?php
                    
2/**
                    
4* @copyright	Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
                    
5* @license		GNU/GPL, see LICENSE.php
                    
6* EasyBlog is free software. This version may have been modified pursuant
                    
9* other free or open source software licenses.
                    
10* See COPYRIGHT.php for copyright notices and details.
                    
11*/
                    
76		
                    
77		$mainframe->redirect( 'index.php?option=com_easyblog&view=categories');
                    
78		exit;
                    
96		
                    
97		$mainframe->redirect( 'index.php?option=com_easyblog&view=categories' , $message , $type );
                    
98		exit;
                    
121				
                    
122				$url  = 'index.php?option=com_easyblog&view=category';
                    
123				$mainframe->redirect(JRoute::_($url, false));
                    
                
XmlFileLoader.php https://github.com/thewiredman/symfony.git | PHP | 402 lines
                    
1<?php
                    
2
                    
73
                    
74        $this->container->getParameterBag()->add($xml->parameters->getArgumentsAsPhp('parameter'));
                    
75    }
                    
84            $this->currentDir = dirname($file);
                    
85            $this->import((string) $import['resource'], (Boolean) $import->getAttributeAsPhp('ignore-errors'));
                    
86        }
                    
112                $method = 'set'.str_replace('-', '', $key);
                    
113                $definition->$method((string) $service->getAttributeAsPhp($key));
                    
114            }
                    
120
                    
121        $definition->setArguments($service->getArgumentsAsPhp('argument'));
                    
122
                    
137        foreach ($service->call as $call) {
                    
138            $definition->addMethodCall((string) $call['method'], $call->getArgumentsAsPhp('argument'));
                    
139        }
                    
                
link-manager.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 292 lines
                    
85<?php screen_icon(); ?>
                    
86<h2><?php echo esc_html( $title ); ?> <a href="link-add.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a> <?php
                    
87if ( !empty($_GET['s']) )
                    
195		$edit_link = get_edit_bookmark_link();
                    
196		?><tr id="link-<?php echo $link->link_id; ?>" valign="middle" <?php echo $style; ?>><?php
                    
197		foreach($link_columns as $column_name=>$column_display_name) {
                    
245				case 'rel':
                    
246					?><td <?php echo $attributes ?>><?php echo empty($link->link_rel) ? '<br />' : $link->link_rel; ?></td><?php
                    
247					break;
                    
248				case 'visible':
                    
249					?><td <?php echo $attributes ?>><?php echo $visible; ?></td><?php
                    
250					break;
                    
251				case 'rating':
                    
252 					?><td <?php echo $attributes ?>><?php echo $rating; ?></td><?php
                    
253					break;
                    
                
ListCommand.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 278 lines
                    
1<?php
                    
2
                    
174            $names = array_map(array($this, 'formatItemName'), $items);
                    
175            $output->writeln(sprintf('<strong>%s</strong>: %s', $label, implode(', ', $names)));
                    
176        }
                    
196            $output->writeln('');
                    
197            $output->writeln(sprintf('<strong>%s:</strong>', $label));
                    
198
                    
220    {
                    
221        return sprintf('<%s>%s</%s>', $item['style'], OutputFormatter::escape($item['name']), $item['style']);
                    
222    }
                    
                
SF_FormEdit.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 376 lines
                    
1<?php
                    
2/**
                    
46
                    
47		$msg = self::printForm( $this->mForm, $this->mTarget, $alt_forms, $redirectOnError );
                    
48
                    
89
                    
90	static function printForm( &$form_name, &$target_name, $alt_forms = array(), $redirectOnError = false ) {
                    
91		global $wgOut, $wgRequest, $wgUser, $sfgFormPrinter;
                    
                
class-wp-ms-users-list-table.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 301 lines
                    
95		$role_links = array();
                    
96		$role_links['all'] = "<a href='" . network_admin_url('users.php') . "'$class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_users, 'users' ), number_format_i18n( $total_users ) ) . '</a>';
                    
97		$class = $role == 'super' ? ' class="current"' : '';
                    
97		$class = $role == 'super' ? ' class="current"' : '';
                    
98		$role_links['super'] = "<a href='" . network_admin_url('users.php?role=super') . "'$class>" . sprintf( _n( 'Super Admin <span class="count">(%s)</span>', 'Super Admins <span class="count">(%s)</span>', $total_admins ), number_format_i18n( $total_admins ) ) . '</a>';
                    
99
                    
159			<tr class="<?php echo $alt; ?>">
                    
160			<?php
                    
161
                    
175						<th scope="row" class="check-column">
                    
176							<label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>"><?php echo sprintf( __( 'Select %s' ), $user->user_login ); ?></label>
                    
177							<input type="checkbox" id="blog_<?php echo $user->ID ?>" name="allusers[]" value="<?php echo esc_attr( $user->ID ) ?>" />
                    
186						echo "<td $attributes>"; ?>
                    
187							<?php echo $avatar; ?><strong><a href="<?php echo $edit_link; ?>" class="edit"><?php echo $user->user_login; ?></a><?php
                    
188							if ( in_array( $user->user_login, $super_admins ) )
                    
                
multiple-featured-images.php https://gitlab.com/webkod3r/tripolis | PHP | 374 lines
                    
1<?php
                    
2/*
                    
91		public function kd_admin_init() {		
                    
92			if( strstr($_SERVER['REQUEST_URI'], 'wp-admin/post-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/post.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/media-upload.php')) {
                    
93				wp_enqueue_script(
                    
146
                    
147			$setImageLink = sprintf(
                    
148					'<p class="hide-if-no-js"><a title="%2$s" href="%1$s" id="kd_%3$s" class="thickbox">%%s</a></p>',
                    
157				$thumbnail = wp_get_attachment_image( $image_id, array( 266, 266 ) );
                    
158				$output.= sprintf( $setImageLink, $thumbnail );
                    
159				$output.= '<p class="hide-if-no-js">';
                    
159				$output.= '<p class="hide-if-no-js">';
                    
160				$output.= sprintf(
                    
161						'<a href="#" id="remove-%1$s-image" onclick="kdMuFeaImgRemove( \'%1$s\', \'%2$s\', \'%3$s\' ); return false;">',
                    
172			else {
                    
173				return sprintf( $setImageLink, $this->labels['set'] );
                    
174			}
                    
                
slot.c https://github.com/kvaneesh/linux.git | C | 380 lines
                    
137		}
                    
138		sprintf(new_name, "%s-%d", name, dup++);
                    
139	}
                    
212 * In most cases, @pci_bus, @slot_nr will be sufficient to uniquely identify
                    
213 * a slot. There is one notable exception - pSeries (rpaphp), where the
                    
214 * @slot_nr cannot be determined until a device is actually inserted into
                    
                
Account.php https://github.com/grandison/budo16.git | PHP | 317 lines
                    
1<?php
                    
2
                    
9 * @license    http://www.socialengine.net/license/
                    
10 * @version    $Id: Account.php 8913 2011-05-02 18:03:07Z shaun $
                    
11 * @author     John
                    
109              '<span id="profile_address">http://%s</span>');
                    
110      $description = sprintf($description, $_SERVER['HTTP_HOST']
                    
111          . Zend_Controller_Front::getInstance()->getRouter()
                    
264      $description = Zend_Registry::get('Zend_Translate')->_('I have read and agree to the <a target="_blank" href="%s/help/terms">terms of service</a>.');
                    
265      $description = sprintf($description, Zend_Controller_Front::getInstance()->getBaseUrl());
                    
266
                    
                
PhpFormBuilder.php https://gitlab.com/em645jn/brochure | PHP | 539 lines
                    
1<?php
                    
2
                    
4
                    
5class PhpFormBuilder {
                    
6
                    
349							$slug = $this->_make_slug( $opt );
                    
350							$end .= sprintf(
                    
351								'<input type="%s" name="%s[]" value="%s" id="%s"',
                    
                
jqplot.pointLabels.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 362 lines
                    
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 
                    
10 * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can 
                    
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 *
                    
19 *
                    
20 * sprintf functions contained in jqplot.sprintf.js by Ash Searle:
                    
21 *
                    
23 *     author Ash Searle
                    
24 *     http://hexmen.com/blog/2007/03/printf-sprintf/
                    
25 *     http://hexmen.com/js/sprintf.js
                    
                
cs.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 335 lines
                    
1<?php
                    
2$translations = array(
                    
18	'No extension' => 'Žádné rozšíření',
                    
19	'None of the supported PHP extensions (%s) are available.' => 'Není dostupné žádné z podporovaných PHP rozšíření (%s).',
                    
20	'Session support must be enabled.' => 'Session proměnné musí být povolené.',
                    
21	'Session expired, please login again.' => 'Session vypršela, přihlašte se prosím znovu.',
                    
22	'%s version: %s through PHP extension %s' => 'Verze %s: %s přes PHP rozšíření %s',
                    
23	'Refresh' => 'Obnovit',
                    
53	'Show only errors' => 'Zobrazit pouze chyby',
                    
54	// sprintf() format for time of the command
                    
55	'%.3f s' => '%.3f s',
                    
                
class-wp-admin-bar.php https://github.com/vidor/vidor.me.git | PHP | 474 lines
                    
355
                    
356		?><div id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>" class="ab-group-container"><?php
                    
357			foreach ( $node->children as $group ) {
                    
371
                    
372		?><ul id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>" class="<?php echo esc_attr( $class ); ?>"><?php
                    
373			foreach ( $node->children as $item ) {
                    
400
                    
401		<li id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>" class="<?php echo esc_attr( $menuclass ); ?>"><?php
                    
402			if ( $has_link ):
                    
402			if ( $has_link ):
                    
403				?><a class="ab-item" <?php echo $aria_attributes; ?> href="<?php echo esc_url( $node->href ) ?>"<?php
                    
404					if ( ! empty( $node->meta['onclick'] ) ) :
                    
416				if ( ! empty( $node->meta['title'] ) ) :
                    
417					?> title="<?php echo esc_attr( $node->meta['title'] ); ?>"<?php
                    
418				endif;
                    
                
SSDB.php https://gitlab.com/dleonov/my-framework-two | PHP | 576 lines
                    
1<?php
                    
2/**
                    
7 *
                    
8 * SSDB PHP client SDK.
                    
9 */
                    
46		}
                    
47		return sprintf('%-13s %12s %s', $this->cmd, $this->code, $s);
                    
48	}
                    
                
misc2.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 302 lines
                    
32	$vars="";
                    
33	if (!$to_include || $to_include==".php") $to_include="index";
                    
34
                    
36	if (count($t)==2) {
                    
37		$http=ZING_PHPLIST_URL.'/'.$t[0].'/api.php';
                    
38	} else {
                    
38	} else {
                    
39		$http=ZING_PHPLIST_URL.'/api.php';
                    
40	}
                    
76		$wp['mode']='b';
                    
77		$wp['pageurl']=get_admin_url().'admin.php?page=bookings&';
                    
78	} else {
                    
295		$f.='<center style="margin-top:0px;font-size:x-small">';
                    
296		$f.='Wordpress and <a href ="http://www.phplist.com/" target="_blank">phpList</a> integration by <a href="http://www.zingiri.com" target="_blank">Zingiri</a>';
                    
297		$f.='</center>';
                    
                
fpdi_pdf_parser.php https://bitbucket.org/amitholkar/zenfile-18-05.git | PHP | 363 lines
                    
1<?php
                    
2//
                    
220			} else {
                    
221                        $this->fpdi->error(sprintf("To handle %s filter, please compile php with zlib support.",$_filter[1]));
                    
222			}
                    
228                case '/LZWDecode': 
                    
229			include_once(_MPDF_PATH.'mpdfi/filters/FilterLZW.php');
                    
230			// mPDF 5.0 Removed pass by reference =&
                    
234                case '/ASCII85Decode':
                    
235			include_once(_MPDF_PATH.'mpdfi/filters/FilterASCII85.php');
                    
236			// mPDF 5.0 Removed pass by reference =&
                    
243                default:
                    
244			$this->fpdi->error(sprintf("Unsupported Filter: %s",$_filter[1]));
                    
245            }
                    
342           		$this->success = false;
                    
343            	$this->errormsg = sprintf("Cannot find /Kids in current /Page-Dictionary");
                    
344			return false;
                    
                
site-users.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 330 lines
                    
28		'<p>' . __('<strong>Users</strong> &mdash; This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.') . '</p>' .
                    
29		'<p>' . sprintf( __('<strong>Themes</strong> &mdash; This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site&#8217;s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ), network_admin_url( 'themes.php' ) ) . '</p>' .
                    
30		'<p>' . __('<strong>Settings</strong> &mdash; This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.') . '</p>'
                    
205<h1 id="edit-site"><?php echo $title; ?></h1>
                    
206<p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id, '/' ) ); ?>"><?php _e( 'Visit' ); ?></a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>"><?php _e( 'Dashboard' ); ?></a></p>
                    
207<?php
                    
272if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?>
                    
273<h2 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h2>
                    
274<form action="site-users.php?action=adduser" id="adduser" method="post">
                    
302<h2 id="add-new-user"><?php _e( 'Add New User' ); ?></h2>
                    
303<form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post">
                    
304	<input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
                    
320		<tr class="form-field">
                    
321			<td colspan="2"><?php _e( 'A password reset link will be sent to the user via email.' ) ?></td>
                    
322		</tr>
                    
                
ValidationStatistics_body.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 307 lines
                    
1<?php
                    
2
                    
100					wfMsgExt( 'percent', array( 'escapenoentities' ),
                    
101						$wgLang->formatnum( sprintf( '%4.2f',
                    
102							100 * intval( $reviewed ) / intval( $total ) ) )
                    
108					wfMsgExt( 'percent', array( 'escapenoentities' ),
                    
109						$wgLang->formatnum( sprintf( '%4.2f',
                    
110							100 * intval( $synced ) / intval( $total ) ) )
                    
115				: wfMsgExt( 'percent', array( 'escapenoentities' ),
                    
116					$wgLang->formatnum( sprintf( '%4.2f',
                    
117						100 * intval( $synced ) / intval( $reviewed ) ) )
                    
187			global $wgPhpCli;
                    
188			$ext = !empty( $wgPhpCli ) ? $wgPhpCli : 'php';
                    
189			$path = wfEscapeShellArg( dirname( __FILE__ ) . '/../maintenance/updateStats.php' );
                    
                
ext_spl.cpp https://gitlab.com/iranjith4/hhvm | C++ | 384 lines
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
29#include "hphp/runtime/base/glob-stream-wrapper.h"
                    
30#include "hphp/runtime/base/request-event-handler.h"
                    
31#include "hphp/runtime/base/stream-wrapper-registry.h"
                    
36#include "hphp/system/systemlib.h"
                    
37#include "hphp/util/string-vsnprintf.h"
                    
38
                    
365    HHVM_FE(hphp_object_pointer);
                    
366    HHVM_FE(hphp_get_this);
                    
367    HHVM_FE(class_implements);
                    
                
class-gf-field-checkbox.php https://gitlab.com/level-level/gravityforms | PHP | 380 lines
                    
1<?php
                    
2
                    
45
                    
46		return sprintf( "<div class='ginput_container ginput_container_checkbox'><ul class='gfield_checkbox' id='%s'>%s</ul></div>", esc_attr( $field_id ), $this->get_checkbox_choices( $value, $disabled_text, $form_id ) );
                    
47	}
                    
268			if ( $count < $total ) {
                    
269				$choices .= "<li class='gchoice_total'>" . sprintf( esc_html__( '%d of %d items shown. Edit field to view all', 'gravityforms' ), $count, $total ) . '</li>';
                    
270			}
                    
                
author-template.php https://github.com/vidor/vidor.me.git | PHP | 401 lines
                    
1<?php
                    
2/**
                    
142	if ( get_the_author_meta('url') ) {
                    
143		return '<a href="' . get_the_author_meta('url') . '" title="' . esc_attr( sprintf(__("Visit %s&#8217;s website"), get_the_author()) ) . '" rel="external">' . get_the_author() . '</a>';
                    
144	} else {
                    
207		return false;
                    
208	$link = sprintf(
                    
209		'<a href="%1$s" title="%2$s" rel="author">%3$s</a>',
                    
210		get_author_posts_url( $authordata->ID, $authordata->user_nicename ),
                    
211		esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ),
                    
212		get_the_author()
                    
324
                    
325		$link = '<a href="' . get_author_posts_url( $author->ID, $author->user_nicename ) . '" title="' . esc_attr( sprintf(__("Posts by %s"), $author->display_name) ) . '">' . $name . '</a>';
                    
326
                    
                
HeadStyle.php https://github.com/sidealice/zf2.git | PHP | 426 lines
                    
1<?php
                    
2/**
                    
84     *
                    
85     * Set separator to PHP_EOL.
                    
86     *
                    
91        parent::__construct();
                    
92        $this->setSeparator(PHP_EOL);
                    
93    }
                    
154            if (1 > $argc) {
                    
155                $e = new View\Exception(sprintf('Method "%s" requires minimally content for the stylesheet', $method));
                    
156                $e->setView($this->view);
                    
353                }
                    
354                $attrString .= sprintf(' %s="%s"', $key, htmlspecialchars($value, ENT_COMPAT, $enc));
                    
355            }
                    
357
                    
358        $escapeStart = $indent . '<!--'. PHP_EOL;
                    
359        $escapeEnd = $indent . '-->'. PHP_EOL;
                    
                
Template.php https://github.com/rgranadino/magento-mirror.git | PHP | 395 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 */
                    
236        $html = "<style type=\"text/css\">\n%s\n</style>\n%s";
                    
237        return sprintf($html, $this->getTemplateStyles(), $text);
                    
238    }
                    
                
MysqlPlatform.php https://github.com/kelios/imshop.git | PHP | 547 lines
                    
1<?php
                    
2
                    
10
                    
11require_once dirname(__FILE__) . '/DefaultPlatform.php';
                    
12
                    
182";
                    
183		return sprintf($pattern,
                    
184			$this->quoteIdentifier($table->getName()),
                    
206			if ($vi->hasParameter($name)) {
                    
207				$tableOptions []= sprintf('%s=%s', 
                    
208					$sqlName, 
                    
230		// Special handling of TIMESTAMP/DATETIME types ...
                    
231		// See: http://propel.phpdb.org/trac/ticket/538
                    
232		if ($sqlType == 'DATETIME') {
                    
320";
                    
321		return sprintf($pattern,
                    
322			$this->quoteIdentifier($table->getName())
                    
                
fileform.php https://github.com/projectfork/Projectfork.git | PHP | 431 lines
                    
1<?php
                    
2/**
                    
181        $record_id = JRequest::getInt($urlVar);
                    
182        $link_base = 'index.php?option=' . $this->option . '&view=';
                    
183        $link_list = $link_base . $this->view_list . $this->getRedirectToListAppend();
                    
193            // Somehow the person just went to the form and tried to save it. We don't allow that.
                    
194            $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $record_id));
                    
195            $this->setMessage($this->getError(), 'error');
                    
424        if (empty($return) || !JUri::isInternal(base64_decode($return))) {
                    
425            return JRoute::_('index.php?option=com_pfrepo&view=' . $this->view_list . $append, false);
                    
426        }
                    
                
Attributes.php https://bitbucket.org/kdms/sh-magento.git | PHP | 381 lines
                    
1<?php
                    
2/**
                    
258        }
                    
259        return sprintf(Mage::helper('enterprise_targetrule')->__('Target Product ') . $format,
                    
260           $this->getAttributeName(),
                    
309
                    
310            return new Zend_Db_Expr(sprintf('(%s) > 0', $select->assemble()));
                    
311        }
                    
335            }
                    
336            $where = sprintf('(%s)', $where);
                    
337        } else if ($attribute->isScopeGlobal()) {
                    
350            $select = $resource->getReadConnection()->getIfNullSql($select);
                    
351            $where = sprintf('(%s) > 0', $select);
                    
352        } else { //scope store and website
                    
376
                    
377            $where  = sprintf('(%s) > 0', $select);
                    
378        }
                    
                
class.moderationcontroller.php https://github.com/Emaratilicious/Garden.git | PHP | 327 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
104      if ($CountComments > 0) {
                    
105         $SelectionMessage =  Wrap(sprintf(
                    
106            'You have selected %1$s in this discussion.',
                    
179      if ($CountDiscussions > 0) {
                    
180         $SelectionMessage =  Wrap(sprintf(
                    
181            'You have selected %1$s.',
                    
                
AssociatedProducts.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 449 lines
                    
1<?php
                    
2/**
                    
21/**
                    
22 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
23 */
                    
286                        'qty' => $this->getProductStockQty($product),
                    
287                        'price' => $currency->toCurrency(sprintf("%f", $price), ['display' => false]),
                    
288                        'price_string' => $currency->toCurrency(sprintf("%f", $price)),
                    
                
ucp_prefs.php https://github.com/naderman/phpbb-orchestra.git | PHP | 357 lines
                    
1<?php
                    
2/**
                    
5* @version $Id$
                    
6* @copyright (c) 2005 phpBB Group
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
13*/
                    
14if (!defined('IN_PHPBB'))
                    
15{
                    
29	{
                    
30		global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx;
                    
31
                    
102						meta_refresh(3, $this->u_action);
                    
103						$message = $user->lang['PREFERENCES_UPDATED'] . '<br /><br />' . sprintf($user->lang['RETURN_UCP'], '<a href="' . $this->u_action . '">', '</a>');
                    
104						trigger_error($message);
                    
224						meta_refresh(3, $this->u_action);
                    
225						$message = $user->lang['PREFERENCES_UPDATED'] . '<br /><br />' . sprintf($user->lang['RETURN_UCP'], '<a href="' . $this->u_action . '">', '</a>');
                    
226						trigger_error($message);
                    
                
AddressController.php https://bitbucket.org/enurkov/prestashop.git | PHP | 366 lines
                    
1<?php
                    
2/*
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/osl-3.0.php
                    
11* If you did not receive a copy of the license and are unable to
                    
22*  @copyright  2007-2012 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
30	public $guestAllowed = true;
                    
31	public $php_self = 'address';
                    
32	public $authRedirection = 'addresses';
                    
86						}
                    
87						Tools::redirect('index.php?controller=addresses');
                    
88					}
                    
94			else
                    
95				Tools::redirect('index.php?controller=addresses');
                    
96		}
                    
                
TraitUsageGenerator.php https://gitlab.com/yousafsyed/easternglamor | PHP | 353 lines
                    
1<?php
                    
2/**
                    
318            if ($this->classGenerator->hasMethod($alias['alias'])) {
                    
319                throw new Exception\RuntimeException(sprintf(
                    
320                    'Generation Error: Aliased method %s already exists on this class',
                    
                
Abstract.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 326 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
102    {
                    
103        $connection = sprintf('%s_%s', $this->_modulePrefix, $name);
                    
104        /** @var $resource Mage_Core_Model_Resource */
                    
                
Abstract.php https://github.com/rgranadino/magento-mirror.git | PHP | 326 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
102    {
                    
103        $connection = sprintf('%s_%s', $this->_modulePrefix, $name);
                    
104        /** @var $resource Mage_Core_Model_Resource */
                    
                
trpage_pparse.cpp https://gitlab.com/smurmann/KDUProjects | C++ | 431 lines
                    
91 */
                    
92trpgPrintGraphParser::trpgPrintGraphParser(trpgr_Archive *inArch,trpgrImageHelper *inImg,trpgPrintBuffer *inBuf):printBuf(inBuf), archive(inArch), imageHelp(inImg), childRefCB(0)
                    
93{
                    
126 */
                    
127bool trpgPrintGraphParser::EndChildren(void *)
                    
128{
                    
180 */
                    
181void *trpgPrintGraphParser::ReadHelper::Parse(trpgToken tok,trpgReadBuffer &buf)
                    
182{
                    
258                        if (failed) {
                    
259                            fprintf(stderr,"Failed to read local image %d from local material %d.\n",imgN,i);
                    
260                        } else
                    
419                              pBuf.prnLine(errString);
                    
420                              fprintf(stderr,"%s\n",errString);
                    
421                          }
                    
                
file.php https://github.com/Hackwar/joomla-platform.git | PHP | 554 lines
                    
1<?php
                    
2/**
                    
92		{
                    
93			JLog::add(JText::sprintf('JLIB_FILESYSTEM_ERROR_JFILE_FIND_COPY', $src), JLog::WARNING, 'jerror');
                    
94
                    
103			{
                    
104				JLog::add(JText::sprintf('JLIB_FILESYSTEM_ERROR_JFILE_STREAMS', $src, $dest, $stream->getError()), JLog::WARNING, 'jerror');
                    
105
                    
209				$filename = basename($file);
                    
210				JLog::add(JText::sprintf('JLIB_FILESYSTEM_DELETE_FAILED', $filename), JLog::WARNING, 'jerror');
                    
211
                    
251			{
                    
252				JLog::add(JText::sprintf('JLIB_FILESYSTEM_ERROR_JFILE_MOVE_STREAMS', $stream->getError()), JLog::WARNING, 'jerror');
                    
253
                    
320		{
                    
321			JLog::add(JText::sprintf('JLIB_FILESYSTEM_ERROR_READ_UNABLE_TO_OPEN_FILE', $filename), JLog::WARNING, 'jerror');
                    
322
                    
                
about.php https://gitlab.com/Gashler/sg | PHP | 208 lines
                    
88		/* Translators: 1: singular.php; 2: single.php; 3:page.php */
                    
89		'description' => sprintf( __( 'Added %1$s as a fallback for %2$s and %3$s' ), '<code>singular.php</code>', '<code>single.php</code>', '<code>page.php</code>.' ),
                    
90	),
                    
98	<div class="wrap about-wrap">
                    
99		<h1><?php printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version ); ?></h1>
                    
100
                    
100
                    
101		<div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s makes it even easier to format your content and customize your site.' ), $display_version ); ?></div>
                    
102		<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
                    
105			<a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What&#8217;s New' ); ?></a>
                    
106			<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
                    
107			<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
                    
175				<?php endif; ?>
                    
176				<a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
                    
177			</div>
                    
                
about.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 190 lines
                    
26
                    
27<h1><?php printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version ); ?></h1>
                    
28
                    
28
                    
29<div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s helps you communicate and share, globally.' ), $display_version ); ?></div>
                    
30
                    
56	</p>
                    
57	<p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
                    
58         '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 13 ), '4.2.2', number_format_i18n( 13 ) ); ?>
                    
62         '<strong>Version %1$s</strong> addressed some security issues.', 1 ), '4.2.1' ); ?>
                    
63		<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://codex.wordpress.org/Version_4.2.1' ); ?>
                    
64 	</p>
                    
75		<h3><?php _e( 'An easier way to share content' ); ?></h3>
                    
76		<p><?php printf( __( 'Clip it, edit it, publish it. Get familiar with the new and improved Press This. From the <a href="%s">Tools</a> menu, add Press This to your browser bookmark bar or your mobile device home screen. Once installed you can share your content with lightning speed. Sharing your favorite videos, images, and content has never been this fast or this easy.' ), admin_url( 'tools.php' ) ); ?></p>
                    
77		<p><?php _e( 'Drag the bookmarklet below to your bookmarks bar. Then, when you&#8217;re on a page you want to share, simply &#8220;press&#8221; it.' ); ?></p>
                    
                
ListenerOptions.php https://gitlab.com/yousafsyed/easternglamor | PHP | 396 lines
                    
1<?php
                    
2/**
                    
90            throw new Exception\InvalidArgumentException(
                    
91                sprintf(
                    
92                    'Argument passed to %s::%s() must be an array, '
                    
136            throw new Exception\InvalidArgumentException(
                    
137                sprintf(
                    
138                    'Argument passed to %s::%s() must be an array, '
                    
162            throw new Exception\InvalidArgumentException(
                    
163                sprintf(
                    
164                    'Argument passed to %s::%s() must be an array, '
                    
199            throw new Exception\InvalidArgumentException(
                    
200                sprintf(
                    
201                    'Argument passed to %s::%s() must be an array, '
                    
269        if ($this->getConfigCacheKey()) {
                    
270            return $this->getCacheDir() . '/module-config-cache.' . $this->getConfigCacheKey().'.php';
                    
271        }
                    
                
ibase_driver.php https://gitlab.com/joshuacurci/swim-crm | PHP | 396 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
229			return $sql.' AND TRIM("RDB$RELATION_NAME") AS TABLE_NAME LIKE \''.$this->escape_like_str($this->dbprefix)."%' "
                    
230				.sprintf($this->_like_escape_str, $this->_like_escape_chr);
                    
231		}
                    
                
Currency.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 357 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
265         */
                    
266        $price = sprintf("%F", $price);
                    
267        if ($price == -0) {
                    
                
Type.php https://bitbucket.org/rybadour/todo_list_site.git | PHP | 303 lines
                    
38 * @subpackage Util
                    
39 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2001-2012 Sebastian Bergmann <sebastian@phpunit.de>
                    
51 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
52 * @copyright  2001-2012 Sebastian Bergmann <sebastian@phpunit.de>
                    
53 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
53 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
54 * @link       http://www.phpunit.de/
                    
55 * @since      Class available since Release 3.0.0
                    
159            // There seems to be no other way to check arrays for recursion
                    
160            // http://www.php.net/manual/en/language.types.array.php#73936
                    
161            preg_match_all('/\n            \[(\w+)\] => Array\s+\*RECURSION\*/', print_r($value, TRUE), $matches);
                    
233        if (is_array($value)) {
                    
234            return sprintf(
                    
235              "%s (%s)",
                    
                
voucher.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 263 lines
                    
1<?php 
                    
2class ControllerAccountVoucher extends Controller { 
                    
15			$this->session->data['vouchers'][mt_rand()] = array(
                    
16				'description'      => sprintf($this->language->get('text_for'), $this->currency->format($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency'))), $this->request->post['to_name']),
                    
17				'to_name'          => $this->request->post['to_name'],
                    
59		$this->data['entry_message'] = $this->language->get('entry_message');
                    
60		$this->data['entry_amount'] = sprintf($this->language->get('entry_amount'), $this->currency->format($this->config->get('config_voucher_min')), $this->currency->format($this->config->get('config_voucher_max')));
                    
61		
                    
248		if (($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency')) < $this->config->get('config_voucher_min')) || ($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency')) > $this->config->get('config_voucher_max'))) {
                    
249      		$this->error['amount'] = sprintf($this->language->get('error_amount'), $this->currency->format($this->config->get('config_voucher_min')), $this->currency->format($this->config->get('config_voucher_max')) . ' ' . $this->currency->getCode());
                    
250    	}
                    
                
Matcher.php https://bitbucket.org/rybadour/todo_list_site.git | PHP | 308 lines
                    
40 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
41 * @link       http://github.com/sebastianbergmann/phpunit-mock-objects
                    
42 * @since      File available since Release 1.0.0
                    
58 * @version    Release: @package_version@
                    
59 * @link       http://github.com/sebastianbergmann/phpunit-mock-objects
                    
60 * @since      Class available since Release 1.0.0
                    
61 */
                    
62class PHPUnit_Framework_MockObject_Matcher implements PHPUnit_Framework_MockObject_Matcher_Invocation
                    
63{
                    
79    /**
                    
80     * @var PHPUnit_Framework_MockObject_Matcher_MethodName
                    
81     */
                    
178
                    
179        catch (PHPUnit_Framework_ExpectationFailedException $e) {
                    
180            throw new PHPUnit_Framework_ExpectationFailedException(
                    
                
class.FixtureBuilder.php https://github.com/dagda/ThinkUp.git | PHP | 346 lines
                    
1<?php
                    
2/**
                    
101    private function connect() {
                    
102        $db_string = sprintf("mysql:dbname=%s;host=%s", $this->config->getValue('db_name'),
                    
103        $this->config->getValue('db_host'));
                    
193        }
                    
194        $sql .= sprintf(" (%s) VALUES", join(',', array_keys($this->columns) ));
                    
195        $values = array_values($this->columns);
                    
196        array_shift($values);
                    
197        $sql .= sprintf(" (?%s)", str_repeat(",?", count($values)));
                    
198        $stmt = self::$pdo->prepare($sql);
                    
                
ArgvInput.php https://github.com/Exercise/symfony.git | PHP | 313 lines
                    
1<?php
                    
2
                    
127            if (!$this->definition->hasShortcut($name[$i])) {
                    
128                throw new \RuntimeException(sprintf('The "-%s" option does not exist.', $name[$i]));
                    
129            }
                    
195        if (!$this->definition->hasShortcut($shortcut)) {
                    
196            throw new \RuntimeException(sprintf('The "-%s" option does not exist.', $shortcut));
                    
197        }
                    
212        if (!$this->definition->hasOption($name)) {
                    
213            throw new \RuntimeException(sprintf('The "--%s" option does not exist.', $name));
                    
214        }
                    
230            if ($option->isValueRequired()) {
                    
231                throw new \RuntimeException(sprintf('The "--%s" option requires a value.', $name));
                    
232            }
                    
                
notice.php https://gitlab.com/campus-academy/krowkaramel | PHP | 507 lines
                    
312            id="<?php echo esc_attr($this->notice_id); ?>" 
                    
313            class="notice wpmet-notice notice-<?php echo esc_attr($this->notice_id . ' ' .$this->class); ?> <?php echo (false === $this->dismissible ? '' : 'is-dismissible') ;?>"
                    
314
                    
318            <?php if(!empty($this->logo)):?>
                    
319                <img class="notice-logo" style="<?php echo esc_attr($this->logo_style); ?>" src="<?php echo esc_url($this->logo);?>" />
                    
320            <?php endif; ?>
                    
324                <?php if(empty($this->html)): ?>
                    
325                    <?php echo (empty($this->title) ? '' : sprintf('<div class="notice-main-title notice-vert-space">%s</div>', $this->title)); ?>
                    
326
                    
330
                    
331                    <?php if(!empty($this->buttons)): ?>
                    
332                        <div class="button-container notice-vert-space">
                    
333                            <?php foreach($this->buttons as $button): ?>
                    
334                                <a id="<?php echo (!isset($button['id']) ? '' : $button['id']); ?>" href="<?php echo esc_url($button['url']); ?>" class="wpmet-notice-button <?php echo esc_attr($button['class']); ?>">
                    
335                                    <?php if(!empty($button['icon'])) :?>
                    
                
spaceinput.php https://github.com/shafiqissani/ASTRA-College-Website.git | PHP | 374 lines
                    
33*/
                    
34require_once('../local/config.inc.php');
                    
35
                    
72	$message = urlencode($general_strings['not_allowed']);
                    
73	header("Location: {$CONFIG['FULL_URL']}/index.php?message=$message");
                    
74	exit;
                    
117						$message = urlencode(sprintf($space_strings['space_added'], $general_strings['space_text']));					
                    
118						header("Location: {$CONFIG['FULL_URL']}/spaces/space.php?space_key=$parent_key&message=$message");
                    
119						
                    
159				
                    
160							 $message = urlencode(sprintf($space_strings['space_modified'], $general_strings['space_text']));
                    
161							 header("Location: {$CONFIG['FULL_URL']}/spaceadmin/admin.php?space_key=$space_key&message=$message");
                    
274
                    
275	$t->set_var('DELETE_SUB_STRING',sprintf($space_strings['delete_sub_spaces'],sprintf($space_strings['sub_sites'],$general_strings['space_plural'])));
                    
276
                    
                
Template.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 395 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
236        $html = "<style type=\"text/css\">\n%s\n</style>\n%s";
                    
237        return sprintf($html, $this->getTemplateStyles(), $text);
                    
238    }
                    
                
function.maxdb-select-db.html https://bitbucket.org/thncr/manuals.git | HTML | 105 lines
                    
11 <div class="up"><a href="ref.maxdb.html">MaxDB 函数</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="function.maxdb-select-db" class="refentry">
                    
57<div class="phpcode"><code><span style="color: #000000">
                    
58<span style="color: #0000BB">&lt;?php<br />$maxdb&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">maxdb</span><span style="color: #007700">(</span><span style="color: #DD0000">"localhost"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"MONA"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"RED"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"DEMODB"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/*&nbsp;check&nbsp;connection&nbsp;*/<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">maxdb_connect_errno</span><span style="color: #007700">())&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Connect&nbsp;failed:&nbsp;%s\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">maxdb_connect_error</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;exit();<br />}<br /><br /></span><span style="color: #FF8000">/*&nbsp;return&nbsp;name&nbsp;of&nbsp;current&nbsp;default&nbsp;database&nbsp;*/<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$maxdb</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;SERVERDB&nbsp;FROM&nbsp;USERS&nbsp;WHERE&nbsp;USERNAME='MONA'"</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$row&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$result</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetch_row</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Default&nbsp;database&nbsp;is&nbsp;%s.\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$row</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]);<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$result</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">close</span><span style="color: #007700">();<br />}<br /><br /></span><span style="color: #FF8000">/*&nbsp;change&nbsp;db&nbsp;to&nbsp;non&nbsp;existing&nbsp;db&nbsp;*/<br /></span><span style="color: #0000BB">$maxdb</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">select_db</span><span style="color: #007700">(</span><span style="color: #DD0000">"XXXXXXXX"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/*&nbsp;return&nbsp;name&nbsp;of&nbsp;current&nbsp;default&nbsp;database&nbsp;*/<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$maxdb</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;SERVERDB&nbsp;FROM&nbsp;USERS&nbsp;WHERE&nbsp;USERNAME='MONA'"</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$row&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$result</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetch_row</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Default&nbsp;database&nbsp;is&nbsp;%s.\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$row</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]);<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$result</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">close</span><span style="color: #007700">();<br />}<br /><br /></span><span style="color: #0000BB">$maxdb</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">close</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span>
                    
59</span>
                    
67<div class="phpcode"><code><span style="color: #000000">
                    
68<span style="color: #0000BB">&lt;?php<br />$link&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">maxdb_connect</span><span style="color: #007700">(</span><span style="color: #DD0000">"localhost"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"MONA"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"RED"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"DEMODB"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/*&nbsp;check&nbsp;connection&nbsp;*/<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">maxdb_connect_errno</span><span style="color: #007700">())&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Connect&nbsp;failed:&nbsp;%s\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">maxdb_connect_error</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;exit();<br />}<br /><br /></span><span style="color: #FF8000">/*&nbsp;return&nbsp;name&nbsp;of&nbsp;current&nbsp;default&nbsp;database&nbsp;*/<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">maxdb_query</span><span style="color: #007700">(</span><span style="color: #0000BB">$link</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"SELECT&nbsp;SERVERDB&nbsp;FROM&nbsp;USERS&nbsp;WHERE&nbsp;USERNAME='MONA'"</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$row&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">maxdb_fetch_row</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Default&nbsp;database&nbsp;is&nbsp;%s.\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$row</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]);<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">maxdb_free_result</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #FF8000">/*&nbsp;change&nbsp;db&nbsp;to&nbsp;non&nbsp;existing&nbsp;db&nbsp;*/<br /></span><span style="color: #0000BB">maxdb_select_db</span><span style="color: #007700">(</span><span style="color: #0000BB">$link</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"XXXXXXXX"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/*&nbsp;return&nbsp;name&nbsp;of&nbsp;current&nbsp;default&nbsp;database&nbsp;*/<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">maxdb_query</span><span style="color: #007700">(</span><span style="color: #0000BB">$link</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"SELECT&nbsp;SERVERDB&nbsp;FROM&nbsp;USERS&nbsp;WHERE&nbsp;USERNAME='MONA'"</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$row&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">maxdb_fetch_row</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Default&nbsp;database&nbsp;is&nbsp;%s.\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$row</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]);<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">maxdb_free_result</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #0000BB">maxdb_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$link</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
                    
69</span>
                    
103 <div class="up"><a href="ref.maxdb.html">MaxDB 函数</a></div>
                    
104 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
105</div></body></html>
                    
                
ViewFileReferenceTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 273 lines
                    
1<?php
                    
2/**
                    
24
                    
25class ViewFileReferenceTest extends \PHPUnit_Framework_TestCase
                    
26{
                    
157            // If file is found, then old functionality (find modular files in non-modular locations) is used
                    
158            $message = sprintf(
                    
159                "Found modular call:\n  %s in\n  %s\n  which may resolve to non-modular location(s):\n  %s",
                    
249     *
                    
250     * Null is returned, if the file is not within an area, e.g. it is a model/block/helper php-file.
                    
251     *
                    
                
linux_osl.h https://github.com/defer/kernel_zte_blade.git | C Header | 327 lines
                    
8 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
10 * following added to such license:
                    
145
                    
146#ifndef printf
                    
147#define	printf(fmt, args...)	printk(fmt, ## args)
                    
                
Theme_Manager.class.php https://gitlab.com/albert925/lading-ach | PHP | 381 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
11 */
                    
12require_once './libraries/Theme.class.php';
                    
13
                    
15 *
                    
16 * @package phpMyAdmin
                    
17 */
                    
114            trigger_error(
                    
115                sprintf($GLOBALS['strThemeDefaultNotFound'],
                    
116                    htmlspecialchars($GLOBALS['cfg']['ThemeDefault'])),
                    
152            trigger_error(
                    
153                sprintf($GLOBALS['strThemeNotFound'], htmlspecialchars($theme)),
                    
154                E_USER_ERROR);
                    
206        // force a change of a dummy session variable to avoid problems
                    
207        // with the caching of phpmyadmin.css.php
                    
208        $_SESSION['PMA_Config']->set('theme-update', $this->theme->id);
                    
                
ms-load.php https://github.com/vidor/vidor.me.git | PHP | 254 lines
                    
1<?php
                    
2/**
                    
32 * manually, define <code>WP_PLUGIN_DIR</code> and <code>WP_PLUGIN_URL</code>
                    
33 * in wp-config.php.
                    
34 *
                    
49		if ( ! validate_file( $plugin ) // $plugin must validate as file
                    
50			&& '.php' == substr( $plugin, -4 ) // $plugin must end with '.php'
                    
51			&& file_exists( WP_PLUGIN_DIR . '/' . $plugin ) // $plugin must exist
                    
65 * To change the default message when a blog does not pass the check,
                    
66 * use the wp-content/blog-deleted.php, blog-inactive.php and
                    
67 * blog-suspended.php drop-ins.
                    
84		if ( file_exists( WP_CONTENT_DIR . '/blog-deleted.php' ) )
                    
85			return WP_CONTENT_DIR . '/blog-deleted.php';
                    
86		else
                    
90	if ( '2' == $current_blog->deleted ) {
                    
91		if ( file_exists( WP_CONTENT_DIR . '/blog-inactive.php' ) )
                    
92			return WP_CONTENT_DIR . '/blog-inactive.php';
                    
                
header.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 212 lines
                    
11		<p><?php _e("JavaScript for Mobile Safari is currently turned off.", "wptouch"); ?></p>
                    
12		<p><?php _e("Turn it on in ", "wptouch"); ?><em><?php _e("Settings &rsaquo; Safari", "wptouch"); ?></em><br /><?php _e(" to view this website.", "wptouch"); ?></p>
                    
13	</div>
                    
26		<div id="wptouch-login-inner">
                    
27			<form name="loginform" id="loginform" action="<?php bloginfo('wpurl'); ?>/wp-login.php" method="post">
                    
28				<label><input type="text" name="log" id="log" placeholder="<?php _e("Username", "wptouch"); ?>" tabindex="1" value="" /></label>
                    
92							<br />
                    
93							<?php echo sprintf(__( "You can %ssign-up here%s.", "wptouch" ), '<a href="' . get_bloginfo('wpurl') . '/wp-register.php" target="_blank">','</a>'); ?>
                    
94						<?php endif; ?>
                    
100					<?php if (get_option('comment_registration')) { ?>
                    
101					<li><a href="<?php bloginfo('wpurl'); ?>/wp-register.php"><?php _e( "Register for this site", "wptouch" ); ?></a></li>
                    
102					<?php } ?>
                    
104					<li><a href="<?php bloginfo('wpurl'); ?>/wp-admin/profile.php"><?php _e( "Account Profile", "wptouch" ); ?></a></li>
                    
105					<li><a href="<?php $version = (float)get_bloginfo('version'); if ($version >= 2.7) { ?><?php echo wp_logout_url($_SERVER['REQUEST_URI']); } else { bloginfo('wpurl'); ?>/wp-login.php?action=logout&redirect_to=<?php echo $_SERVER['REQUEST_URI']; ?><?php } ?>"><?php _e( "Logout", "wptouch" ); ?></a></li>
                    
106					<?php } ?>
                    
                
HeadLink.php https://gitlab.com/yousafsyed/easternglamor | PHP | 495 lines
                    
1<?php
                    
2/**
                    
61     *
                    
62     * Use PHP_EOL as separator
                    
63     */
                    
67
                    
68        $this->setSeparator(PHP_EOL);
                    
69    }
                    
159                throw new Exception\BadMethodCallException(
                    
160                    sprintf('%s requires at least one argument', $method)
                    
161                );
                    
294                    foreach ($attributes[$itemKey] as $key => $value) {
                    
295                        $link .= sprintf(' %s="%s"', $key, ($this->autoEscape) ? $this->escape($value) : $value);
                    
296                    }
                    
297                } else {
                    
298                    $link .= sprintf(
                    
299                        ' %s="%s"',
                    
                
Headers.php https://gitlab.com/yousafsyed/easternglamor | PHP | 472 lines
                    
1<?php
                    
2/**
                    
96            // Line does not match header format!
                    
97            throw new Exception\RuntimeException(sprintf(
                    
98                'Line "%s" does not match header format!',
                    
145        if (!is_array($headers) && !$headers instanceof Traversable) {
                    
146            throw new Exception\InvalidArgumentException(sprintf(
                    
147                'Expected array or Traversable; received "%s"',
                    
                
Create.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 374 lines
                    
1<?php
                    
2/**
                    
359    {
                    
360        $saveCard = sprintf($this->vaultCheckbox, $paymentMethod);
                    
361        $this->_rootElement->find($saveCard, Locator::SELECTOR_CSS, 'checkbox')->setValue($creditCardSave);
                    
                
reindex.php https://github.com/karpenoktem/punbb.git | PHP | 267 lines
                    
89<!DOCTYPE html>
                    
90<html lang="<?php $lang_common['lang_identifier'] ?>" dir="<?php echo $lang_common['lang_direction'] ?>">
                    
91<head>
                    
104
                    
105<?php
                    
106
                    
229					<div class="sf-box text">
                    
230						<label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_reindex['Posts per cycle'] ?></span> <small><?php echo $lang_admin_reindex['Posts per cycle info'] ?></small></label><br />
                    
231						<span class="fld-input"><input type="number" id="fld<?php echo $forum_page['fld_count'] ?>" name="i_per_page" size="7" maxlength="7" value="100" /></span>
                    
236					<div class="sf-box text">
                    
237						<label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span class="fld-label"><?php echo $lang_admin_reindex['Starting post'] ?></span> <small><?php echo $lang_admin_reindex['Starting post info'] ?></small></label><br />
                    
238						<span class="fld-input"><input type="number" id="fld<?php echo $forum_page['fld_count'] ?>" name="i_start_at" size="7" maxlength="7" value="<?php echo (isset($first_id)) ? $first_id : 0 ?>" /></span>
                    
244						<span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="i_empty_index" value="1" checked="checked" /></span>
                    
245						<label for="fld<?php echo $forum_page['fld_count'] ?>"><?php echo $lang_admin_reindex['Empty index'] ?></label>
                    
246					</div>
                    
                
Item.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 447 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
373                $this->getConfig()->getCountryInfo($targetCountry, 'price_attribute_name', $this->getStoreId()),
                    
374                sprintf('%.2f', $value),
                    
375                'floatUnit'
                    
                
class-itsec-core-admin.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 390 lines
                    
1<?php
                    
2
                    
111		echo '<p>' . __( 'BackupBuddy is the complete backup, restore and migration solution for your WordPress site. Schedule automated backups, store your backups safely off-site and restore your site quickly & easily.', 'better-wp-security' ) . '</p>';
                    
112		echo sprintf( '<p style="font-weight: bold; font-size: 1em;">%s<span style="display: block; text-align: center; font-size: 1.2em; background: #ebebeb; padding: .5em;">%s</span></p>', __( '25% off BackupBuddy with coupon code', 'better-wp-security' ), __( 'BACKUPPROTECT', 'better-wp-security' ) );
                    
113		echo '<a href="http://ithemes.com/better-backups" class="button-secondary" target="_blank">' . __( 'Get BackupBuddy', 'better-wp-security' ) . '</a>';
                    
129		echo '<a class="itsec-video-link" href="#" data-video-id="itsec_video"><img src="' . plugins_url( 'img/video.png', __FILE__ ) . '" /></a>';
                    
130		echo sprintf( '<p class="itsec-video-description">%s <a href="http://ithem.es/6y" target="_blank">%s</a> %s </p>', __( 'In this short video, we walk through', 'better-wp-security' ), __( 'how to get started securing your site', 'better-wp-security' ), __( 'with iThemes Security.', 'better-wp-security' ) );
                    
131		echo '<p class="itsec_video"><iframe src="//player.vimeo.com/video/89142424?title=0&amp;byline=0&amp;portrait=0" width="853" height="480" frameborder="0" ></iframe></p>';
                    
177				<div style="text-align: center;">
                    
178					<img src="<?php echo plugins_url( 'img/security-ebook.png', __FILE__ ) ?>" width="145"
                    
179					     height="187" alt="WordPress Security - A Pocket Guide">
                    
180				</div>
                    
181				<p><?php _e( 'Get tips for securing your site + the latest WordPress security updates, news and releases from iThemes.', 'better-wp-security' ); ?></p>
                    
182
                    
187				<label for="mce-EMAIL"
                    
188				       style="display: block;margin-bottom: 3px;"><?php _e( 'Email Address', 'better-wp-security' ); ?></label>
                    
189				<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL"
                    
                
exceptions.php https://bitbucket.org/koronios/cakephp.git | PHP | 625 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Exceptions file. Contains the various exceptions CakePHP will throw until they are
                    
4 * moved into their permanent location.
                    
5 *
                    
6 * PHP 5
                    
7 *
                    
7 *
                    
8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
9 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://book.cakephp.org/2.0/en/development/testing.html
                    
17 * @package       Cake.Error
                    
17 * @package       Cake.Error
                    
18 * @since         CakePHP(tm) v 2.0
                    
19 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
                
Translate.php https://gitlab.com/jslee1/PrestaShop | PHP | 347 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
22 * @copyright 2007-2015 PrestaShop SA
                    
23 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
                    
24 * International Registered Trademark & Property of PrestaShop SA
                    
31{
                    
32    public static function getFrontTranslation($string, $class, $addslashes = false, $htmlentities = true, $sprintf = null)
                    
33    {
                    
54
                    
55        if ($sprintf !== null) {
                    
56            $str = Translate::checkAndReplaceArgs($str, $sprintf);
                    
69     */
                    
70    public static function getAdminTranslation($string, $class = 'AdminTab', $addslashes = false, $htmlentities = true, $sprintf = null)
                    
71    {
                    
                
ucp_pm.php https://bitbucket.org/enitarzi/phpbb3-gorgon.git | PHP | 416 lines
                    
105					'S_NOT_LOGGED_IN'	=> ($user->data['user_id'] == ANONYMOUS) ? true : false,
                    
106					'CLICK_TO_VIEW'		=> sprintf($user->lang['CLICK_VIEW_PRIVMSG'], '<a href="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&amp;folder=inbox') . '" onclick="jump_to_inbox(this.href); return false;">', '</a>'),
                    
107					'U_INBOX'			=> append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&amp;folder=inbox'),
                    
107					'U_INBOX'			=> append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&amp;folder=inbox'),
                    
108					'UA_INBOX'			=> append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&folder=inbox', false))
                    
109				);
                    
131
                    
132				include($phpbb_root_path . 'includes/ucp/ucp_pm_compose.' . $phpEx);
                    
133				compose_pm($id, $mode, $action, $user_folders);
                    
141
                    
142				include($phpbb_root_path . 'includes/ucp/ucp_pm_options.' . $phpEx);
                    
143				message_options($id, $mode, $global_privmsgs_rules, $global_rule_conditions);
                    
153				// Call another module... please do not try this at home... Hoochie Coochie Man
                    
154				include($phpbb_root_path . 'includes/ucp/ucp_main.' . $phpEx);
                    
155
                    
                
Service.php https://bitbucket.org/resourcemode/smodels.git | PHP | 439 lines
                    
1<?php
                    
2/**
                    
251//				if(!$attrValue) {
                    
252//					$this->messages[] = sprintf('Unable to load attribute value: %s', $attrValue);
                    
253//				}
                    
                
mysql.dbi.lib.php https://github.com/drbowen/openemr.git | PHP | 552 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package    PhpMyAdmin-DBI
                    
7 * @subpackage MySQL
                    
8 */
                    
9if (! defined('PHPMYADMIN')) {
                    
10    exit;
                    
12
                    
13require_once './libraries/logging.lib.php';
                    
14
                    
21        'PMA_MYSQL_CLIENT_API',
                    
22        (int)sprintf(
                    
23            '%d%02d%02d',
                    
73{
                    
74    // N.B.: PHP's 'mysql' extension does not support
                    
75    // multi_queries so this function will always
                    
                
PrototypeEngineHelper.php https://github.com/gustavor/lore.git | PHP | 360 lines
                    
1<?php
                    
2/**
                    
7 *
                    
8 * PHP 5
                    
9 *
                    
9 *
                    
10 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
11 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
17 * @link          http://cakephp.org CakePHP(tm) Project
                    
18 * @package       Cake.View.Helper
                    
18 * @package       Cake.View.Helper
                    
19 * @since         CakePHP(tm) v 1.3
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
147		if ($options['wrap']) {
                    
148			$callback = sprintf($function, $callback);
                    
149		}
                    
                
Abstract.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 326 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
102    {
                    
103        $connection = sprintf('%s_%s', $this->_modulePrefix, $name);
                    
104        /** @var $resource Mage_Core_Model_Resource */
                    
                
ClassScanner.php https://github.com/sidealice/zf2.git | PHP | 494 lines
                    
1<?php
                    
2
                    
435            ) {
                    
436                throw new Exception\RuntimeException(sprintf(
                    
437                    'Class must be or extend "%s"', $baseScannerClass
                    
                
SelectableAssociationTrait.php https://gitlab.com/alexandresgv/siteentec | PHP | 341 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         3.0.0
                    
12 * @since         3.0.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
101                throw new InvalidArgumentException(
                    
102                    sprintf('You are required to select the "%s" field', $key)
                    
103                );
                    
                
class-wc-settings-tax.php https://gitlab.com/campus-academy/krowkaramel | PHP | 348 lines
                    
1<?php
                    
2/**
                    
67			/* translators: $s tax rate section name */
                    
68			$sections[ sanitize_title( $class ) ] = sprintf( __( '%s rates', 'woocommerce' ), $class );
                    
69		}
                    
79	public function get_settings_for_default_section() {
                    
80		return include __DIR__ . '/views/settings-tax.php';
                    
81	}
                    
101	public function save() {
                    
102		// phpcs:disable WordPress.Security.NonceVerification.Missing
                    
103		global $current_section;
                    
108			if ( isset( $_POST['woocommerce_tax_classes'] ) ) {
                    
109				$this->save_tax_classes( wp_unslash( $_POST['woocommerce_tax_classes'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
                    
110			}
                    
121		WC_Cache_Helper::get_transient_version( 'shipping', true );
                    
122		// phpcs:enable WordPress.Security.NonceVerification.Missing
                    
123	}
                    
                
exceptions.php https://bitbucket.org/vishallogiciel/admin-bootstrap.git | PHP | 624 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Exceptions file. Contains the various exceptions CakePHP will throw until they are
                    
4 * moved into their permanent location.
                    
5 *
                    
6 * PHP 5
                    
7 *
                    
7 *
                    
8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
9 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://book.cakephp.org/2.0/en/development/testing.html
                    
17 * @package       Cake.Error
                    
17 * @package       Cake.Error
                    
18 * @since         CakePHP(tm) v 2.0
                    
19 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
                
AspDownloads.tpl https://bitbucket.org/jstechnologies/cats.git | Smarty Template | 181 lines
                    
3<?php TemplateUtility::printHeaderBlock(); ?>

                    
4<?php TemplateUtility::printTabs($this->active, $this->subActive); ?>

                    
5

                    
5

                    
6<?php // <---------------------------------- FIXME: Move to ASP Hook? ?>

                    
7<script>

                    
135                                            {

                    
136                                                 showPopWin('<?php echo(CATSUtility::getIndexName()); ?>?m=settings&a=getPaidModal', 400, 270, null); return false;

                    
137                                            }

                    
163                                                        xpi["CATS ToolBar"] = "http://www.catsone.com/extensions/firefox/catstoolbar.xpi";

                    
164                                                    <?php endif; ?>

                    
165                                                    InstallTrigger.install(xpi);

                    
180    <div id="bottomShadow"></div>

                    
181<?php TemplateUtility::printFooter(); ?>

                    
182
                    
                
General.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 317 lines
                    
1<?php
                    
2/**
                    
14 *
                    
15 * @SuppressWarnings(PHPMD.DepthOfInheritance)
                    
16 */
                    
92     * @return $this
                    
93     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
94     */
                    
110        $themesCollections->addConstraint(Collection::CONSTRAINT_AREA, Area::AREA_FRONTEND);
                    
111        $onChangeScript = sprintf(
                    
112            'parentThemeOnChange(this.value, %s)',
                    
                
class-wp-filesystem-base.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 321 lines
                    
1<?php
                    
2/**
                    
200				if ( $this->verbose )
                    
201					printf( __('Changing to %s') . '<br/>', $newdir );
                    
202				if ( $ret = $this->search_for_folder( $folder, $newdir, $loop) )
                    
209			if ( $this->verbose )
                    
210				printf( __('Found %s') . '<br/>',  $base . $last_path );
                    
211			return trailingslashit($base . $last_path);
                    
222	 *
                    
223	 * From the PHP documentation page for fileperms()
                    
224	 *
                    
224	 *
                    
225	 * @link http://docs.php.net/fileperms
                    
226	 * @since 2.5
                    
279 	 *
                    
280	 * @link http://docs.php.net/manual/en/function.chmod.php#49614
                    
281	 * @since 2.5
                    
                
jqplot.highlighter.min.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 57 lines
                    
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 
                    
10 * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can 
                    
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 *
                    
19 *
                    
20 * sprintf functions contained in jqplot.sprintf.js by Ash Searle:
                    
21 *
                    
23 *     author Ash Searle
                    
24 *     http://hexmen.com/blog/2007/03/printf-sprintf/
                    
25 *     http://hexmen.com/js/sprintf.js
                    
56 */
                    
57(function(d){d.jqplot.eventListenerHooks.push(["jqplotMouseMove",f]);d.jqplot.Highlighter=function(h){this.show=d.jqplot.config.enablePlugins;this.markerRenderer=new d.jqplot.MarkerRenderer({shadow:false});this.showMarker=true;this.lineWidthAdjust=2.5;this.sizeAdjust=5;this.showTooltip=true;this.tooltipLocation="nw";this.fadeTooltip=true;this.tooltipFadeSpeed="fast";this.tooltipOffset=2;this.tooltipAxes="both";this.tooltipSeparator=", ";this.tooltipContentEditor=null;this.useAxesFormatters=true;this.tooltipFormatString="%.5P";this.formatString=null;this.yvalues=1;this.bringSeriesToFront=false;this._tooltipElem;this.isHighlighting=false;this.currentNeighbor=null;d.extend(true,this,h)};var b=["nw","n","ne","e","se","s","sw","w"];var e={nw:0,n:1,ne:2,e:3,se:4,s:5,sw:6,w:7};var c=["se","s","sw","w","nw","n","ne","e"];d.jqplot.Highlighter.init=function(k,j,i){var h=i||{};this.plugins.highlighter=new d.jqplot.Highlighter(h.highlighter)};d.jqplot.Highlighter.parseOptions=function(i,h){this.showHighlight=true};d.jqplot.Highlighter.postPlotDraw=function(){if(this.plugins.highlighter&&this.plugins.highlighter.highlightCanvas){this.plugins.highlighter.highlightCanvas.resetCanvas();this.plugins.highlighter.highlightCanvas=null}if(this.plugins.highlighter&&this.plugins.highlighter._tooltipElem){this.plugins.highlighter._tooltipElem.emptyForce();this.plugins.highlighter._tooltipElem=null}this.plugins.highlighter.highlightCanvas=new d.jqplot.GenericCanvas();this.eventCanvas._elem.before(this.plugins.highlighter.highlightCanvas.createElement(this._gridPadding,"jqplot-highlight-canvas",this._plotDimensions,this));this.plugins.highlighter.highlightCanvas.setContext();var h=document.createElement("div");this.plugins.highlighter._tooltipElem=d(h);h=null;this.plugins.highlighter._tooltipElem.addClass("jqplot-highlighter-tooltip");this.plugins.highlighter._tooltipElem.css({position:"absolute",display:"none"});this.eventCanvas._elem.before(this.plugins.highlighter._tooltipElem)};d.jqplot.preInitHooks.push(d.jqplot.Highlighter.init);d.jqplot.preParseSeriesOptionsHooks.push(d.jqplot.Highlighter.parseOptions);d.jqplot.postDrawHooks.push(d.jqplot.Highlighter.postPlotDraw);function a(m,o){var j=m.plugins.highlighter;var p=m.series[o.seriesIndex];var h=p.markerRenderer;var i=j.markerRenderer;i.style=h.style;i.lineWidth=h.lineWidth+j.lineWidthAdjust;i.size=h.size+j.sizeAdjust;var l=d.jqplot.getColorComponents(h.color);var n=[l[0],l[1],l[2]];var k=(l[3]>=0.6)?l[3]*0.6:l[3]*(2-l[3]);i.color="rgba("+n[0]+","+n[1]+","+n[2]+","+k+")";i.init();i.draw(p.gridData[o.pointIndex][0],p.gridData[o.pointIndex][1],j.highlightCanvas._ctx)}function g(A,q,m){var k=A.plugins.highlighter;var D=k._tooltipElem;var r=q.highlighter||{};var t=d.extend(true,{},k,r);if(t.useAxesFormatters){var w=q._xaxis._ticks[0].formatter;var h=q._yaxis._ticks[0].formatter;var E=q._xaxis._ticks[0].formatString;var s=q._yaxis._ticks[0].formatString;var z;var u=w(E,m.data[0]);var l=[];for(var B=1;B<t.yvalues+1;B++){l.push(h(s,m.data[B]))}if(typeof t.formatString==="string"){switch(t.tooltipAxes){case"both":case"xy":l.unshift(u);l.unshift(t.formatString);z=d.jqplot.sprintf.apply(d.jqplot.sprintf,l);break;case"yx":l.push(u);l.unshift(t.formatString);z=d.jqplot.sprintf.apply(d.jqplot.sprintf,l);break;case"x":z=d.jqplot.sprintf.apply(d.jqplot.sprintf,[t.formatString,u]);break;case"y":l.unshift(t.formatString);z=d.jqplot.sprintf.apply(d.jqplot.sprintf,l);break;default:l.unshift(u);l.unshift(t.formatString);z=d.jqplot.sprintf.apply(d.jqplot.sprintf,l);break}}else{switch(t.tooltipAxes){case"both":case"xy":z=u;for(var B=0;B<l.length;B++){z+=t.tooltipSeparator+l[B]}break;case"yx":z="";for(var B=0;B<l.length;B++){z+=l[B]+t.tooltipSeparator}z+=u;break;case"x":z=u;break;case"y":z=l.join(t.tooltipSeparator);break;default:z=u;for(var B=0;B<l.length;B++){z+=t.tooltipSeparator+l[B]}break}}}else{var z;if(typeof t.formatString==="string"){z=d.jqplot.sprintf.apply(d.jqplot.sprintf,[t.formatString].concat(m.data))}else{if(t.tooltipAxes=="both"||t.tooltipAxes=="xy"){z=d.jqplot.sprintf(t.tooltipFormatString,m.data[0])+t.tooltipSeparator+d.jqplot.sprintf(t.tooltipFormatString,m.data[1])}else{if(t.tooltipAxes=="yx"){z=d.jqplot.sprintf(t.tooltipFormatString,m.data[1])+t.tooltipSeparator+d.jqplot.sprintf(t.tooltipFormatString,m.data[0])}else{if(t.tooltipAxes=="x"){z=d.jqplot.sprintf(t.tooltipFormatString,m.data[0])}else{if(t.tooltipAxes=="y"){z=d.jqplot.sprintf(t.tooltipFormatString,m.data[1])}}}}}}if(d.isFunction(t.tooltipContentEditor)){z=t.tooltipContentEditor(z,m.seriesIndex,m.pointIndex,A)}D.html(z);var C={x:m.gridData[0],y:m.gridData[1]};var v=0;var j=0.707;if(q.markerRenderer.show==true){v=(q.markerRenderer.size+t.sizeAdjust)/2}var o=b;if(q.fillToZero&&q.fill&&m.data[1]<0){o=c}switch(o[e[t.tooltipLocation]]){case"nw":var p=C.x+A._gridPadding.left-D.outerWidth(true)-t.tooltipOffset-j*v;var n=C.y+A._gridPadding.top-t.tooltipOffset-D.outerHeight(true)-j*v;break;case"n":var p=C.x+A._gridPadding.left-D.outerWidth(true)/2;var n=C.y+A._gridPadding.top-t.tooltipOffset-D.outerHeight(true)-v;break;case"ne":var p=C.x+A._gridPadding.left+t.tooltipOffset+j*v;var n=C.y+A._gridPadding.top-t.tooltipOffset-D.outerHeight(true)-j*v;break;case"e":var p=C.x+A._gridPadding.left+t.tooltipOffset+v;var n=C.y+A._gridPadding.top-D.outerHeight(true)/2;break;case"se":var p=C.x+A._gridPadding.left+t.tooltipOffset+j*v;var n=C.y+A._gridPadding.top+t.tooltipOffset+j*v;break;case"s":var p=C.x+A._gridPadding.left-D.outerWidth(true)/2;var n=C.y+A._gridPadding.top+t.tooltipOffset+v;break;case"sw":var p=C.x+A._gridPadding.left-D.outerWidth(true)-t.tooltipOffset-j*v;var n=C.y+A._gridPadding.top+t.tooltipOffset+j*v;break;case"w":var p=C.x+A._gridPadding.left-D.outerWidth(true)-t.tooltipOffset-v;var n=C.y+A._gridPadding.top-D.outerHeight(true)/2;break;default:var p=C.x+A._gridPadding.left-D.outerWidth(true)-t.tooltipOffset-j*v;var n=C.y+A._gridPadding.top-t.tooltipOffset-D.outerHeight(true)-j*v;break}D.css("left",p);D.css("top",n);if(t.fadeTooltip){D.stop(true,true).fadeIn(t.tooltipFadeSpeed)}else{D.show()}D=null}function f(k,j,n,m,l){var h=l.plugins.highlighter;var o=l.plugins.cursor;if(h.show){if(m==null&&h.isHighlighting){var i=h.highlightCanvas._ctx;i.clearRect(0,0,i.canvas.width,i.canvas.height);if(h.fadeTooltip){h._tooltipElem.fadeOut(h.tooltipFadeSpeed)}else{h._tooltipElem.hide()}if(h.bringSeriesToFront){l.restorePreviousSeriesOrder()}h.isHighlighting=false;h.currentNeighbor=null;i=null}else{if(m!=null&&l.series[m.seriesIndex].showHighlight&&!h.isHighlighting){h.isHighlighting=true;h.currentNeighbor=m;if(h.showMarker){a(l,m)}if(h.showTooltip&&(!o||!o._zoom.started)){g(l,l.series[m.seriesIndex],m)}if(h.bringSeriesToFront){l.moveSeriesToFront(m.seriesIndex)}}else{if(m!=null&&h.isHighlighting&&h.currentNeighbor!=m){if(l.series[m.seriesIndex].showHighlight){var i=h.highlightCanvas._ctx;i.clearRect(0,0,i.canvas.width,i.canvas.height);h.isHighlighting=true;h.currentNeighbor=m;if(h.showMarker){a(l,m)}if(h.showTooltip&&(!o||!o._zoom.started)){g(l,l.series[m.seriesIndex],m)}if(h.bringSeriesToFront){l.moveSeriesToFront(m.seriesIndex)}}}}}}}})(jQuery);
                    
                
BlockCipher.php https://bitbucket.org/gencer/zf2.git | PHP | 489 lines
                    
1<?php
                    
2/**
                    
125            if (!class_exists($plugins)) {
                    
126                throw new Exception\InvalidArgumentException(sprintf(
                    
127                    'Unable to locate symmetric cipher plugins using class "%s"; class does not exist',
                    
133        if (!$plugins instanceof SymmetricPluginManager) {
                    
134            throw new Exception\InvalidArgumentException(sprintf(
                    
135                'Expected an instance or extension of %s\SymmetricPluginManager; received "%s"',
                    
                
mysqli-stmt.param-count.html https://bitbucket.org/thncr/manuals.git | HTML | 110 lines
                    
11 <div class="up"><a href="class.mysqli-stmt.html">MySQLi_STMT</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="mysqli-stmt.param-count" class="refentry">
                    
16  <h1 class="refname">mysqli_stmt_param_count</h1>
                    
17  <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">mysqli_stmt::$param_count</span> -- <span class="refname">mysqli_stmt_param_count</span> &mdash; <span class="dc-title">Returns the number of parameter for the given statement</span></p>
                    
18
                    
69<div class="phpcode"><code><span style="color: #000000">
                    
70<span style="color: #0000BB">&lt;?php<br />$mysqli&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">mysqli</span><span style="color: #007700">(</span><span style="color: #DD0000">"localhost"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"my_user"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"my_password"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"world"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/*&nbsp;check&nbsp;connection&nbsp;*/<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">mysqli_connect_errno</span><span style="color: #007700">())&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Connect&nbsp;failed:&nbsp;%s\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">mysqli_connect_error</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;exit();<br />}<br /><br />if&nbsp;(</span><span style="color: #0000BB">$stmt&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$mysqli</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;Name&nbsp;FROM&nbsp;Country&nbsp;WHERE&nbsp;Name=?&nbsp;OR&nbsp;Code=?"</span><span style="color: #007700">))&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$marker&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">param_count</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Statement&nbsp;has&nbsp;%d&nbsp;markers.\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$marker</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*&nbsp;close&nbsp;statement&nbsp;*/<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">close</span><span style="color: #007700">();<br />}<br /><br /></span><span style="color: #FF8000">/*&nbsp;close&nbsp;connection&nbsp;*/<br /></span><span style="color: #0000BB">$mysqli</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">close</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span>
                    
71</span>
                    
79<div class="phpcode"><code><span style="color: #000000">
                    
80<span style="color: #0000BB">&lt;?php<br />$link&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysqli_connect</span><span style="color: #007700">(</span><span style="color: #DD0000">"localhost"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"my_user"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"my_password"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"world"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/*&nbsp;check&nbsp;connection&nbsp;*/<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">mysqli_connect_errno</span><span style="color: #007700">())&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Connect&nbsp;failed:&nbsp;%s\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">mysqli_connect_error</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;exit();<br />}<br /><br />if&nbsp;(</span><span style="color: #0000BB">$stmt&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysqli_prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$link</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"SELECT&nbsp;Name&nbsp;FROM&nbsp;Country&nbsp;WHERE&nbsp;Name=?&nbsp;OR&nbsp;Code=?"</span><span style="color: #007700">))&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$marker&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysqli_stmt_param_count</span><span style="color: #007700">(</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Statement&nbsp;has&nbsp;%d&nbsp;markers.\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$marker</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*&nbsp;close&nbsp;statement&nbsp;*/<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mysqli_stmt_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #FF8000">/*&nbsp;close&nbsp;connection&nbsp;*/<br /></span><span style="color: #0000BB">mysqli_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$link</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
                    
81</span>
                    
108 <div class="up"><a href="class.mysqli-stmt.html">MySQLi_STMT</a></div>
                    
109 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
110</div></body></html>
                    
                
Server.php https://bitbucket.org/jokusafet/magento2.git | PHP | 315 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
287            $response->setBody($renderer->render($messages));
                    
288            $response->setHeader('Content-Type', sprintf(
                    
289                '%s; charset=%s', $renderer->getMimeType(), Mage_Api2_Model_Response::RESPONSE_CHARSET
                    
                
shipping.php https://gitlab.com/reclamare/mao | PHP | 268 lines
                    
1<?php
                    
2class ControllerApiShipping extends Controller {
                    
74					if (($custom_field['location'] == 'address') && $custom_field['required'] && empty($this->request->post['custom_field'][$custom_field['custom_field_id']])) {
                    
75						$json['error']['custom_field' . $custom_field['custom_field_id']] = sprintf($this->language->get('error_custom_field'), $custom_field['name']);
                    
76					}
                    
                
menus-sync.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 272 lines
                    
63                    <tr>
                    
64                        <th scope="row" class="check-column"><input type="checkbox" name="sync[menu_translation][<?php echo $menu_id ?>][<?php echo $language ?>]" value="<?php echo esc_attr( $name ) ?>"/></th>
                    
65                        <td><?php echo $lang_details[ 'display_name' ]; ?></td>
                    
154									?>
                    
155									<input type="text" name="sync[menu_translations][<?php echo $menu_id ?>][<?php echo $l[ 'code' ] ?>]" class="icl_msync_add" value="<?php
                    
156									echo esc_attr( $menu[ 'name' ] ) . ' - ' . $l[ 'display_name' ] ?>"/>
                    
163									?>
                    
164									<input type="hidden" name="sync[menu_options][<?php echo $menu_id ?>][<?php echo $l[ 'code' ] ?>][auto_add]" value="<?php echo esc_attr( $menu[ 'translations' ][ $l[ 'code' ] ][ 'auto_add' ] ); ?>"/>
                    
165								<?php
                    
184				?>
                    
185				<input id="icl_msync_sync" type="submit" class="button-primary" value="<?php _e( 'Sync', 'sitepress' ); ?>"<?php if ( !$need_sync ): ?> disabled="disabled"<?php endif; ?> />
                    
186				&nbsp;&nbsp;
                    
195				?>
                    
196				<input id="icl_msync_sync" type="submit" class="button-primary" value="<?php _e( 'Nothing Sync', 'sitepress' ); ?>"<?php if ( !$need_sync ): ?> disabled="disabled"<?php endif; ?> />
                    
197			<?php
                    
                
BakeShell.php https://gitlab.com/alexandresgv/siteentec | PHP | 317 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         0.1.0
                    
12 * @since         0.1.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
27 *
                    
28 * Bake is CakePHP's code generation script, which can help you kickstart
                    
29 * application development by writing fully functional skeleton controllers,
                    
31 *
                    
32 * @link http://book.cakephp.org/3.0/en/console-and-shells/code-generation-with-bake.html
                    
33 */
                    
                
order_status.php https://gitlab.com/shapcy/opencart | PHP | 380 lines
                    
1<?php
                    
2class ControllerLocalisationOrderStatus extends Controller {
                    
246
                    
247		$data['results'] = sprintf($this->language->get('text_pagination'), ($order_status_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($order_status_total - $this->config->get('config_limit_admin'))) ? $order_status_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $order_status_total, ceil($order_status_total / $this->config->get('config_limit_admin')));
                    
248
                    
367			if ($store_total) {
                    
368				$this->error['warning'] = sprintf($this->language->get('error_store'), $store_total);
                    
369			}
                    
373			if ($order_total) {
                    
374				$this->error['warning'] = sprintf($this->language->get('error_order'), $order_total);
                    
375			}
                    
                
functions.php https://github.com/torstein1989/Capstone_II.git | PHP | 315 lines
                    
88	?>
                    
89	<article <?php comment_class(); ?> id="comment-<?php comment_ID() ?>">
                    
90			<?php echo get_avatar( $comment, 40 ); ?>
                    
90			<?php echo get_avatar( $comment, 40 ); ?>
                    
91			<?php printf( __( '%s says:', 'starkers' ), sprintf( '%s', get_comment_author_link() ) ); ?>
                    
92		<?php if ( $comment->comment_approved == '0' ) : ?>
                    
99				/* translators: 1: date, 2: time */
                    
100				printf( __( '%1$s at %2$s', 'starkers' ), get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'starkers' ), ' ' );
                    
101			?>
                    
104
                    
105			<?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
                    
106
                    
112	<article <?php comment_class(); ?> id="comment-<?php comment_ID() ?>">
                    
113		<p><?php _e( 'Pingback:', 'starkers' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'starkers'), ' ' ); ?></p>
                    
114	<?php
                    
                
Sitemap.php https://github.com/MontmereLimited/zf2.git | PHP | 460 lines
                    
1<?php
                    
2/**
                    
37 *
                    
38 * @link http://www.sitemaps.org/protocol.php
                    
39 *
                    
221        } else {
                    
222            throw new Exception\InvalidArgumentException(sprintf(
                    
223                'Invalid server URL: "%s"',
                    
371            ) {
                    
372                throw new Exception\RuntimeException(sprintf(
                    
373                        'Encountered an invalid URL for Sitemap XML: "%s"',
                    
427            if (!@$dom->schemaValidate(self::SITEMAP_XSD)) {
                    
428                throw new Exception\RuntimeException(sprintf(
                    
429                        'Sitemap is invalid according to XML Schema at "%s"',
                    
457
                    
458        return rtrim($xml, PHP_EOL);
                    
459    }
                    
                
HeadMeta.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 420 lines
                    
1<?php
                    
2/**
                    
38     *
                    
39     * Set separator to PHP_EOL
                    
40     *
                    
44        parent::__construct();
                    
45        $this->setSeparator(PHP_EOL);
                    
46    }
                    
94            default:
                    
95                throw new Exception\DomainException(sprintf(
                    
96                    'Invalid type "%s" passed to normalizeType',
                    
314        if (!in_array($item->type, $this->typeKeys)) {
                    
315            throw new Exception\InvalidArgumentException(sprintf(
                    
316                'Invalid type "%s" provided for meta',
                    
358
                    
359        $meta = sprintf(
                    
360            $tpl,
                    
                
legacy.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 596 lines
                    
1<?php
                    
2/**
                    
156			case 'model':
                    
157				$filename = strtolower($parts['name']) . '.php';
                    
158				break;
                    
195				{
                    
196					JLog::add(JText::sprintf('JLIB_APPLICATION_ERROR_MODELCLASS_NOT_FOUND', $modelClass), JLog::WARNING, 'jerror');
                    
197
                    
471
                    
472		throw new Exception(JText::sprintf('JLIB_APPLICATION_ERROR_TABLE_NAME_NOT_SUPPORTED', $name), 0);
                    
473	}
                    
                
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' );
                    
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
                    
26if ( ! is_network_admin() ) {
                    
27	$submenu_file = 'themes.php';
                    
28}
                    
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 )
                    
                
egg_ut.cpp https://gitlab.com/philipclaude/avro2 | C++ | 367 lines
                    
7// Licensed under The GNU Lesser General Public License, version 2.1
                    
8// See http://www.opensource.org/licenses/lgpl-2.1.php
                    
9//
                    
97  b1.get_entities(entities1);
                    
98  printf("body1 has %lu entities\n",entities1.size());
                    
99
                    
102  b2.get_entities(entities2);
                    
103  printf("body2 has %lu entities\n",entities2.size());
                    
104
                    
118  }
                    
119  printf("--> added objects\n");
                    
120  // END STEP 2
                    
152    if (same == EGADS_SUCCESS)
                    
153      printf("number = %u, i = %lu, j = %lu are the same!\n",entities1[i]->number(),i,j);
                    
154    else
                    
                
 

Source

Language