PageRenderTime 492ms queryTime 58ms sortTime 92ms getByIdsTime 139ms findMatchingLines 103ms

100+ results results for 'php sprintf repo:jalet/util-sprintf-php' (492 ms)

Not the results you expected?
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;
                    
                
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
                    
                
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
                    
                
SSDB.php https://gitlab.com/webbroteam/satisfaction-mvc | 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	}
                    
                
AssociatedProducts.php https://gitlab.com/svillegas/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)),
                    
                
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 */
                    
                
exceptions.php https://bitbucket.org/FuscaSoftware/candycane.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)
                    
                
Rooms.php https://github.com/craigrodway/classroombookings.git | PHP | 590 lines
                    
1<?php
                    
2defined('BASEPATH') OR exit('No direct script access allowed');
                    
237			if ($room_id) {
                    
238				$line = sprintf($this->lang->line('crbs_action_added'), $room_data['name']);
                    
239				$flashmsg = msgbox('info', $line);
                    
240			} else {
                    
241				$line = sprintf($this->lang->line('crbs_action_dberror'), 'adding');
                    
242				$flashmsg = msgbox('error', $line);
                    
247			if ($this->rooms_model->edit($room_id, $room_data)) {
                    
248				$line = sprintf($this->lang->line('crbs_action_saved'), $room_data['name']);
                    
249				$flashmsg = msgbox('info', $line);
                    
250			} else {
                    
251				$line = sprintf($this->lang->line('crbs_action_dberror'), 'editing');
                    
252				$flashmsg = msgbox('error', $line);
                    
                
Container.php https://github.com/rettal/zf2.git | PHP | 508 lines
                    
1<?php
                    
2/**
                    
363
                    
364        throw new Exception(sprintf(
                    
365                'Bad method call: Unknown method %s::%s',
                    
                
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
                    
                
Command.php https://github.com/nguyennamtien/TaskBoxx.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
                    
                
length_class.php https://bitbucket.org/sandeepbhaskar/inspiredliving.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			}
                    
                
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		
                    
                
ProfilerController.php https://github.com/1ed/symfony.git | PHP | 407 lines
                    
1<?php
                    
2
                    
108        if (!$profile->hasCollector($panel)) {
                    
109            throw new NotFoundHttpException(sprintf('Panel "%s" is not available for token "%s".', $panel, $token));
                    
110        }
                    
316    /**
                    
317     * Displays the PHP info.
                    
318     *
                    
322     */
                    
323    public function phpinfoAction()
                    
324    {
                    
331        ob_start();
                    
332        phpinfo();
                    
333        $phpinfo = ob_get_clean();
                    
334
                    
335        return new Response($phpinfo, 200, ['Content-Type' => 'text/html']);
                    
336    }
                    
                
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		);
                    
                
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			}
                    
                
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);
                    
                
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 {
                    
                
mysqlnd_bt.c https://github.com/Doap/php-src.git | C | 483 lines
                    
2  +----------------------------------------------------------------------+
                    
3  | PHP Version 5                                                        |
                    
4  +----------------------------------------------------------------------+
                    
4  +----------------------------------------------------------------------+
                    
5  | Copyright (c) 2006-2011 The PHP Group                                |
                    
6  +----------------------------------------------------------------------+
                    
6  +----------------------------------------------------------------------+
                    
7  | This source file is subject to version 3.01 of the PHP license,      |
                    
8  | that is bundled with this package in the file LICENSE, and is        |
                    
9  | available through the world-wide-web at the following url:           |
                    
10  | http://www.php.net/license/3_01.txt                                  |
                    
11  | If you did not receive a copy of the PHP license and are unable to   |
                    
12  | obtain it through the world-wide-web, please send a note to          |
                    
13  | license@php.net so we can mail you a copy immediately.               |
                    
14  +----------------------------------------------------------------------+
                    
                
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',
                    
                
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        }
                    
                
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
                    
                
class-wp-media-list-table.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | 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
                    
                
author-template.php https://github.com/muskmelon/Greemo.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
                    
                
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())
                    
                
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        }
                    
                
site-users.php https://gitlab.com/em645jn/brochure | 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>
                    
                
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			}
                    
                
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    }
                    
                
UrlGenerator.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 330 lines
                    
1<?php
                    
2
                    
52     *
                    
53     * PHP's rawurlencode() encodes all chars except "a-zA-Z0-9-._~" according to RFC 3986. But we want to allow some chars
                    
54     * to be used in their literal form (reasons below). Other chars inside the path must of course be encoded, e.g.
                    
129        if (null === $route = $this->routes->get($name)) {
                    
130            throw new RouteNotFoundException(sprintf('Unable to generate a URL for the named route "%s" as such route does not exist.', $name));
                    
131        }
                    
150        if ($diff = array_diff_key($variables, $mergedParams)) {
                    
151            throw new MissingMandatoryParametersException(sprintf('Some mandatory parameters are missing ("%s") to generate a URL for route "%s".', implode('", "', array_keys($diff)), $name));
                    
152        }
                    
160                    if (null !== $this->strictRequirements && !preg_match('#^'.$token[2].'$#', $mergedParams[$token[3]])) {
                    
161                        $message = sprintf('Parameter "%s" for route "%s" must match "%s" ("%s" given) to generate a corresponding URL.', $token[3], $name, $token[2], $mergedParams[$token[3]]);
                    
162                        if ($this->strictRequirements) {
                    
219                        if (null !== $this->strictRequirements && !preg_match('#^'.$token[2].'$#i', $mergedParams[$token[3]])) {
                    
220                            $message = sprintf('Parameter "%s" for route "%s" must match "%s" ("%s" given) to generate a corresponding URL.', $token[3], $name, $token[2], $mergedParams[$token[3]]);
                    
221
                    
                
redirect.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 409 lines
                    
1<?php
                    
2/**
                    
102
                    
103		// Sort it in PHP
                    
104		ksort( $items );
                    
162		$url = str_replace( '$dec$', $id, $url );
                    
163		$url = str_replace( '$hex$', sprintf( '%x', $id), $url );
                    
164		return $url;
                    
                
Form.php https://gitlab.com/Sigpot/AirSpot | PHP | 473 lines
                    
1<?php
                    
2
                    
132    /**
                    
133     * Gets the field values as PHP.
                    
134     *
                    
135     * This method converts fields with the array notation
                    
136     * (like foo[bar] to arrays) like PHP does.
                    
137     *
                    
139     */
                    
140    public function getPhpValues()
                    
141    {
                    
155    /**
                    
156     * Gets the file field values as PHP.
                    
157     *
                    
158     * This method converts fields with the array notation
                    
159     * (like foo[bar] to arrays) like PHP does.
                    
160     * The returned array is consistent with the array for field values
                    
                
general.php https://github.com/Jon86/oscommerce.git | PHP | 520 lines
                    
1<?php
                    
2/*
                    
188
                    
189    return osc_link_object(osc_href_link(basename($_SERVER['SCRIPT_FILENAME']), osc_get_all_get_params(array('page', 'sort')) . '&sort=' . $key . ($direction == '+' ? '|d' : '')), $heading . (($key == $current) ? $direction : ''), 'title="' . (isset($_GET['sort']) && ($_GET['sort'] == $key) ? sprintf($osC_Language->get('listing_sort_ascendingly'), $heading) : sprintf($osC_Language->get('listing_sort_descendingly'), $heading)) . '" class="productListing-heading"');
                    
190  }
                    
316    if (!isset($seeded)) {
                    
317      if (version_compare(PHP_VERSION, '4.2', '<')) {
                    
318        mt_srand((double)microtime()*1000000);
                    
503  function osc_setlocale($category, $locale) {
                    
504    if (version_compare(PHP_VERSION, '4.3', '<')) {
                    
505      if (is_array($locale)) {
                    
                
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);
                    
                
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    }
                    
                
ProfilerController.php https://github.com/nattaphat/hgis.git | PHP | 378 lines
                    
1<?php
                    
2
                    
88        if (!$profile->hasCollector($panel)) {
                    
89            throw new NotFoundHttpException(sprintf('Panel "%s" is not available for token "%s".', $panel, $token));
                    
90        }
                    
117        if (!$profile = $this->profiler->loadProfile($token)) {
                    
118            throw new NotFoundHttpException(sprintf('Token "%s" does not exist.', $token));
                    
119        }
                    
349    /**
                    
350     * Displays the PHP info.
                    
351     *
                    
353     */
                    
354    public function phpinfoAction()
                    
355    {
                    
358        ob_start();
                    
359        phpinfo();
                    
360        $phpinfo = ob_get_clean();
                    
                
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                );
                    
                
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 )
                    
                
comments.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 484 lines
                    
2
                    
3require dirname( __FILE__ ) . '/base.php';
                    
4
                    
217			<div id="cancel-comment-reply-link" style="display:none; float:right;"><a href="#"><?php echo esc_html( __( 'Cancel Reply', 'jetpack' ) ); ?></a></div>
                    
218			<iframe src="<?php echo esc_url( $url ); ?>" allowtransparency="<?php echo $transparent; ?>" style="width:100%; height: <?php echo $height; ?>px;border:0px;" frameBorder="0" scrolling="no" name="jetpack_remote_comment" id="jetpack_remote_comment"></iframe>
                    
219		</div>
                    
220
                    
221		<?php // Below is required for comment reply JS to work ?>
                    
222
                    
299
                    
300	<?php endif; ?>
                    
301
                    
464try {
                    
465	window.parent.location = <?php echo json_encode( $url ); ?>;
                    
466	window.parent.location.reload();
                    
                
AbstractSmtpTransport.php https://gitlab.com/dsasmita/talita-shop | PHP | 507 lines
                    
1<?php
                    
2
                    
297        $this->executeCommand(
                    
298            sprintf("HELO %s\r\n", $this->_domain), array(250)
                    
299            );
                    
305        $this->executeCommand(
                    
306            sprintf("MAIL FROM: <%s>\r\n", $address), array(250)
                    
307            );
                    
313        $this->executeCommand(
                    
314            sprintf("RCPT TO: <%s>\r\n", $address), array(250, 251, 252)
                    
315            );
                    
484        } elseif (!empty($_SERVER['SERVER_ADDR'])) {
                    
485            $this->_domain = sprintf('[%s]', $_SERVER['SERVER_ADDR']);
                    
486        }
                    
                
Service.php https://github.com/grjones/qframe.git | PHP | 473 lines
                    
23 */
                    
24require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
132        if (null == $this->getName()) {
                    
133            require_once 'Zend/Json/Server/Exception.php';
                    
134            throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided');
                    
170            require_once 'Zend/Json/Server/Exception.php';
                    
171            throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));
                    
172        }
                    
197        if (!in_array($transport, $this->_transportTypes)) {
                    
198            require_once 'Zend/Json/Server/Exception.php';
                    
199            throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));
                    
246        if (!in_array($envelopeType, $this->_envelopeTypes)) {
                    
247            require_once 'Zend/Json/Server/Exception.php';
                    
248            throw new Zend_Json_Server_Exception(sprintf('Invalid envelope type "%s"; please specify one of (%s)', $envelopeType, implode(', ', $this->_envelopeTypes)));
                    
                
RouteProvider.php https://gitlab.com/reasonat/test8 | PHP | 424 lines
                    
1<?php
                    
2
                    
186    if (empty($routes)) {
                    
187      throw new RouteNotFoundException(sprintf('Route "%s" does not exist.', $name));
                    
188    }
                    
349
                    
350    // We sort by fit and name in PHP to avoid a SQL filesort.
                    
351    usort($routes, array($this, 'routeProviderRouteCompare'));
                    
366    }
                    
367    // Reverse sort from highest to lowest fit. PHP should cast to int, but
                    
368    // the explicit cast makes this sort more robust against unexpected input.
                    
                
HeadMeta.php https://bitbucket.org/juan_sanchez/aiyellow.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,
                    
                
useradd.php https://gitlab.com/surya.ayrus22/Matrimony | PHP | 199 lines
                    
6            <div class="content-top clearfix">
                    
7                <h1 class="al-title"><?php echo sprintf($this->lang->line('add'), $this->lang->line('profile_admin')); ?></h1>
                    
8                <ul class="breadcrumb al-breadcrumb">
                    
9                    <li><a href="<?php echo base_url() . 'index.php/admin/dashboard'; ?>"><?php echo $this->lang->line('home'); ?></a></li>
                    
10                    <li><a href="<?php echo base_url() . 'index.php/admin/UsersAddInfo'; ?>"><?php echo sprintf($this->lang->line('add'), $this->lang->line('users')); ?> </a></li>
                    
11                    <li class=""><?php echo sprintf($this->lang->line('add'), $this->lang->line('member_admin_register')), $this->lang->line('profile_admin'); ?></li>
                    
20            <!--col-md-4-->
                    
21            <form action="<?php echo base_url() . 'index.php/admin/userRegistration'; ?>" method="post">	
                    
22                <div class="col-md-6 text-left margintop"><h3><?php echo sprintf($this->lang->line('add'), $this->lang->line('member_admin_register')), $this->lang->line('profile_admin'); ?></h3></div>
                    
27                            <tr class="opened">
                    
28                                <td class="day_label"><?php echo sprintf($this->lang->line('search_profile_create'), $this->lang->line('by_text')); ?> </td>
                    
29                                <td class="day_value">
                    
112                            <tr class="opened">
                    
113                                <td class="day_label"><?php echo sprintf($this->lang->line('mobile_admin_register'), $this->lang->line('number_admin_register')); ?> </td>
                    
114                                <td class="day_value">
                    
                
itnSend.php https://gitlab.com/blue-media/online-payments-php | PHP | 302 lines
                    
1<?php
                    
2
                    
2
                    
3require_once './.config.php';
                    
4
                    
68{
                    
69    return sprintf('<div class="form-group"><label for="%1$s" class="control-label">%1$s</label><input name="%1$s" id="%1$s" type="number" class="form-control" value="%2$d"></div>', $fieldName, $fieldValue);
                    
70}
                    
73{
                    
74    return sprintf('<div class="form-group"><label for="%1$s" class="control-label">%1$s</label><input name="%1$s" id="%1$s" type="text" class="form-control" value="%2$s"></div>', $fieldName, $fieldValue);
                    
75}
                    
78{
                    
79    $result = sprintf('<div class="form-group"><label for="%1$s" class="control-label">%1$s</label><select name="%1$s" id="%1$s" class="form-control">', $fieldName);
                    
80    if (is_array($fieldSelects) && !empty($fieldSelects)) {
                    
82            $isSelected = ($fieldValue === $fieldSelectName);
                    
83            $result .= sprintf('<option value="%1$s" title="%1$s" %2$s>%1$s</option>', $fieldSelectName, ($isSelected ? 'selected' : ''));
                    
84        }
                    
                
class-wp-admin-bar.php https://github.com/chopsuei3/oscc.git | PHP | 506 lines
                    
366			<?php if ( is_user_logged_in() ) : ?>
                    
367			<a class="screen-reader-shortcut" href="<?php echo esc_url( wp_logout_url() ); ?>"><?php _e('Log Out'); ?></a>
                    
368			<?php endif; ?>
                    
396
                    
397		?><ul id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>"<?php echo $class; ?>><?php
                    
398			foreach ( $node->children as $item ) {
                    
428
                    
429		<li id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>"<?php echo $menuclass; ?>><?php
                    
430			if ( $has_link ):
                    
430			if ( $has_link ):
                    
431				?><a class="ab-item" <?php echo $aria_attributes; ?> href="<?php echo esc_url( $node->href ) ?>"<?php
                    
432					if ( ! empty( $node->meta['onclick'] ) ) :
                    
432					if ( ! empty( $node->meta['onclick'] ) ) :
                    
433						?> onclick="<?php echo esc_js( $node->meta['onclick'] ); ?>"<?php
                    
434					endif;
                    
                
rpt.php https://gitlab.com/iamgraeme/royalmile | PHP | 420 lines
                    
1<?php
                    
2/**
                    
24function rpt_free_pro_check() {
                    
25    if (is_plugin_active('responsive-pricing-table-pro/rpt_pro.php')) {
                    
26
                    
108
                    
109		$view_link = sprintf( '', '', '' );
                    
110		$messages[ $post_type ][1] .= $view_link;
                    
114		$preview_permalink = add_query_arg( 'preview', 'true', $permalink );
                    
115		$preview_link = sprintf( '', '', '' );
                    
116		$messages[ $post_type ][8]  .= $preview_link;
                    
123// Add the amazing metabox class (CMB2)
                    
124if ( file_exists( dirname( __FILE__ ) . '/inc/cmb2/init.php' ) ) {
                    
125    require_once dirname( __FILE__ ) . '/inc/cmb2/init.php';
                    
125    require_once dirname( __FILE__ ) . '/inc/cmb2/init.php';
                    
126} elseif ( file_exists( dirname( __FILE__ ) . '/inc/CMB2/init.php' ) ) {
                    
127    require_once dirname( __FILE__ ) . '/inc/CMB2/init.php';
                    
                
PU_test_dcp_role.php https://github.com/CircleCode/dynacase-core.git | PHP | 432 lines
                    
1<?php
                    
2/*
                    
14
                    
15require_once 'PU_testcase_dcp_commonfamily.php';
                    
16
                    
59        foreach ($expectedRoles as $roleLogin) {
                    
60            $this->assertTrue(in_array($roleLogin, $uRoleLogins) , sprintf("role %s must be present", $roleLogin));
                    
61        }
                    
62        foreach ($uRoleLogins as $roleLogin) {
                    
63            $this->assertTrue(in_array($roleLogin, $expectedRoles) , sprintf("role %s must not be present", $roleLogin));
                    
64        }
                    
75        $uRoleIds = $u->getRoles();
                    
76        simpleQuery(self::$dbaccess, sprintf("select login from users where id in (%s)", implode(',', $uRoleIds)) , $uRoleLogins, true);
                    
77        
                    
78        foreach ($expectedRoles as $roleLogin) {
                    
79            $this->assertTrue(in_array($roleLogin, $uRoleLogins) , sprintf("role %s must be present", $roleLogin));
                    
80        }
                    
                
Observer.php https://bitbucket.org/sevenly/magento-ce.git | 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) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
120        foreach ($attributes as $attribute) {
                    
121            $fieldAlias = sprintf('weee_%s_table.value', $attribute);
                    
122            $checkAdditionalCalculation = $select->getAdapter()->getCheckSql("{$fieldAlias} IS NULL", 0, $fieldAlias);
                    
123            if (Mage::helper('weee')->isDiscounted()) {
                    
124                $additionalCalculations[] = sprintf('+(%s*(1-(%s/100)))', $checkAdditionalCalculation, $checkDiscountField);
                    
125            } else {
                    
137                ->getIdByCode(Mage_Catalog_Model_Product::ENTITY, $attribute);
                    
138            $tableAlias  = sprintf('weee_%s_table', $attribute);
                    
139            $quotedTableAlias = $select->getAdapter()->quoteTableAs($tableAlias, null);
                    
                
calendar_event_exporter.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 329 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
31use \renderer_base;
                    
32require_once($CFG->dirroot . '/course/lib.php');
                    
33/**
                    
105            $moduleid = $moduleproxy->get('id');
                    
106            $url = new \moodle_url(sprintf('/mod/%s/view.php', $modulename), ['id' => $moduleid]);
                    
107
                    
109            $params = array('update' => $moduleid, 'return' => true, 'sesskey' => sesskey());
                    
110            $editurl = new \moodle_url('/course/mod.php', $params);
                    
111            $values['editurl'] = $editurl->out(false);
                    
                
interface.php https://bitbucket.org/mrmustarde/manhattan-beach.git | PHP | 293 lines
                    
27			<a href="<?php echo wp_nonce_url( admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG . '&amp;hmbkp_download_backup=' . $encoded_file . '&amp;hmbkp_schedule_id=' . $schedule->get_id() ), 'hmbkp-download_backup' ); ?>"><?php _e( 'Download', 'hmbkp' ); ?></a> |
                    
28			<a href="<?php echo wp_nonce_url( admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG . '&amp;hmbkp_delete_backup=' . $encoded_file . '&amp;hmbkp_schedule_id=' . $schedule->get_id() ), 'hmbkp-delete_backup' ); ?>" class="delete-action"><?php _e( 'Delete', 'hmbkp' ); ?></a>
                    
29
                    
71		function hmbkp_safe_mode_warning() {
                    
72			echo '<div id="hmbkp-warning" class="updated fade"><p><strong>' . __( 'BackUpWordPress has detected a problem.', 'hmbkp' ) . '</strong> ' . sprintf( __( '%1$s is running in %2$s, please contact your host and ask them to disable it. BackUpWordPress may not work correctly whilst %3$s is on.', 'hmbkp' ), '<code>PHP</code>', sprintf( '<a href="%1$s">%2$s</a>', __( 'http://php.net/manual/en/features.safe-mode.php', 'hmbkp' ), __( 'Safe Mode', 'hmbkp' ) ), '<code>' . __( 'Safe Mode', 'hmbkp' ) . '</code>' ) . '</p></div>';
                    
73		}
                    
248
                    
249		<a class="fancybox" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_edit_schedule_load', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Settings', 'hmbkp' ); ?></a> |
                    
250
                    
251	<?php if ( $schedule->get_type() !== 'database' ) { ?>
                    
252		<a class="fancybox" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_edit_schedule_excludes_load', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Excludes', 'hmbkp' ); ?></a>  |
                    
253	<?php } ?>
                    
254
                    
255		<a class="hmbkp-run" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_run_schedule', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Run now', 'hmbkp' ); ?></a>  |
                    
256
                    
                
configure.php https://github.com/jmarc06/yacs.git | PHP | 313 lines
                    
247	Safe::unlink($context['path_to_root'].'parameters/collections.include.php.bak');
                    
248	Safe::rename($context['path_to_root'].'parameters/collections.include.php', $context['path_to_root'].'parameters/collections.include.php.bak');
                    
249
                    
276
                    
277		Logger::error(sprintf(i18n::s('ERROR: Impossible to write to the file %s. The configuration has not been saved.'), 'parameters/collections.include.php'));
                    
278
                    
279		// allow for a manual update
                    
280		$context['text'] .= '<p style="text-decoration: blink;">'.sprintf(i18n::s('To actually change the configuration, please copy and paste following lines by yourself in file %s.'), 'parameters/collections.include.php')."</p>\n";
                    
281
                    
284
                    
285		$context['text'] .= '<p>'.sprintf(i18n::s('The following configuration has been saved into the file %s.'), 'parameters/collections.include.php')."</p>\n";
                    
286
                    
290		// remember the change
                    
291		$label = sprintf(i18n::c('%s has been updated'), 'parameters/collections.include.php');
                    
292		Logger::remember('collections/configure.php', $label);
                    
                
users.php https://github.com/mterenzio/FollowThis.git | PHP | 379 lines
                    
1<?php
                    
2
                    
5	 *
                    
6	 * $Id: users.php,v 1.40 2008/02/25 17:20:44 xzilla Exp $
                    
7	 */
                    
9	// Include application functions
                    
10	include_once('./libraries/lib.inc.php');
                    
11
                    
34		if ($userdata->recordCount() > 0) {
                    
35			$userdata->fields['usesuper'] = $data->phpBool($userdata->fields['usesuper']);
                    
36			$userdata->fields['usecreatedb'] = $data->phpBool($userdata->fields['usecreatedb']);
                    
49		
                    
50		echo "<p><a class=\"navlink\" href=\"users.php?action=confchangepassword&amp;{$misc->href}\">{$lang['strchangepassword']}</a></p>\n";
                    
51	}
                    
70			
                    
71			echo "<form action=\"users.php\" method=\"post\">\n";
                    
72			echo "<table>\n";
                    
                
db_search.php https://bitbucket.org/steve_delbar/iepsm-projet-de-d-veloppement-internet-2013.git | PHP | 366 lines
                    
206
                    
207                   echo '<td>' . PMA_linkOrButton('sql.php?' . $url_sql_query
                    
208                    . '&amp;sql_query=' .urlencode($newsearchsqls['delete']),
                    
294    <tr><td colspan="2"></td></tr><tr>
                    
295        <td align="right" valign="top" bgcolor="<?php echo $cfg['BgcolorOne']; ?>">
                    
296            <?php echo $strSearchType; ?>&nbsp;
                    
298        <td bgcolor="<?php echo $cfg['BgcolorOne']; ?>">
                    
299            <input type="radio" id="search_option_1" name="search_option" value="1"<?php if ($search_option == 1) echo ' checked="checked"'; ?> /><label for="search_option_1"><?php echo $strSearchOption1; ?></label>&nbsp;*<br />
                    
300            <input type="radio" id="search_option_2" name="search_option" value="2"<?php if ($search_option == 2) echo ' checked="checked"'; ?> /><label for="search_option_2"><?php echo $strSearchOption2; ?></label>&nbsp;*<br />
                    
301            <input type="radio" id="search_option_3" name="search_option" value="3"<?php if ($search_option == 3) echo ' checked="checked"'; ?> /><label for="search_option_3"><?php echo $strSearchOption3; ?></label><br />
                    
302            <input type="radio" id="search_option_4" name="search_option" value="4"<?php if ($search_option == 4) echo ' checked="checked"'; ?> /><label for="search_option_4"><?php echo $strSearchOption4; ?></label><?php echo PMA_showMySQLDocu('Regexp', 'Regexp'); ?><br />
                    
303            <br />
                    
350        </td>
                    
351    </tr><tr><td align="right" valign="bottom" bgcolor="<?php echo $cfg['BgcolorOne']; ?>"><?php echo $strDoSelectAll; ?></td></tr>
                    
352    <tr><td colspan="2"></td>
                    
                
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
                    
                
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"',
                    
                
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',
                    
                
AdminCmsContentController.php https://gitlab.com/jslee1/PrestaShop | PHP | 316 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
                    
146            } else {
                    
147                $this->toolbar_title[] = sprintf($this->l('Edit: %s'), $cms_category->name[$this->context->employee->id_lang]);
                    
148            }
                    
155                $cms_page = new CMS($id_cms_page);
                    
156                $this->toolbar_title[] = sprintf($this->l('Edit: %s'), $cms_page->meta_title[$this->context->employee->id_lang]);
                    
157            }
                    
293            if ($id_cms = (int)Tools::getValue('id_cms')) {
                    
294                $bo_cms_url = _PS_BASE_URL_.__PS_BASE_URI__.basename(_PS_ADMIN_DIR_).'/index.php?tab=AdminCmsContent&id_cms='.(int)$id_cms.'&updatecms&token='.$this->token;
                    
295
                    
                
showstream.php https://gitlab.com/BeS/io.schiessle.org | PHP | 268 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP version 5
                    
8 *
                    
67                // TRANS: %1$s is the username, %2$s is the hash tag.
                    
68                return sprintf(_('Notices by %1$s tagged %2$s'), $base, $this->tag);
                    
69            } else {
                    
71                // TRANS: %1$s is the username, %2$s is the hash tag, %3$d is the page number.
                    
72                return sprintf(_('Notices by %1$s tagged %2$s, page %3$d'), $base, $this->tag, $this->page);
                    
73            }
                    
75            if ($this->page == 1) {
                    
76                return sprintf(_('Notices by %s'), $base);
                    
77            } else {
                    
79                // TRANS: %1$s is the username, %2$d is the page number.
                    
80                return sprintf(_('Notices by %1$s, page %2$d'),
                    
81                               $base,
                    
                
Axis.class.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 760 lines
                    
1<?php
                    
2/*
                    
313		eval('function '.$function.'($value) {
                    
314			return sprintf("%.'.(int)$precision.'f", $value);
                    
315		}');
                    
                
AbstractJoomlaPlatformFilter.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 388 lines
                    
1<?php
                    
2/**
                    
134        if (!empty($this->access_where)) {
                    
135            $access_where = sprintf('(%s)', implode(' AND ', $this->access_where));
                    
136            $article_where_parts[] = $access_where;
                    
140        if (!empty($this->displayed_where)) {
                    
141            $displayed_where = sprintf('(%s)', implode(' AND ', $this->displayed_where));
                    
142            $article_where_parts[] = $displayed_where;
                    
147            $article_where_parts[] = implode(' AND ', $this->article_where);
                    
148            $this->query->where(sprintf('(%s)', implode(' AND ', $article_where_parts)), 'OR');
                    
149        }
                    
151            $filter_where_parts[] = implode(' AND ', $this->filter_where);
                    
152            $this->query->where(sprintf('(%s)', implode(' AND ', $filter_where_parts)), 'OR');
                    
153        }
                    
159        if ($this->manualSort) {
                    
160            $this->query->join('LEFT OUTER', sprintf('(select rsi.provider_id, rsi.order from #__roksprocket_items as rsi where module_id = %d) rsi on a.id = rsi.provider_id', $this->moduleId));
                    
161            array_unshift($this->sort_order, 'rsi.order');
                    
                
zbzippclzip.php https://bitbucket.org/anneivycat/california-tour.git | PHP | 406 lines
                    
1<?php
                    
2/**
                    
118			
                    
119				$pclzip_file = ABSPATH . 'wp-admin/includes/class-pclzip.php';
                    
120				pb_backupbuddy::status( 'details', 'PCLZip class not found. Attempting to load from `' . $pclzip_file . '`.' );
                    
136					
                    
137							pb_backupbuddy::status( 'details', sprintf( __('Error #564634. Unable to delete test file (%s)!','it-l10n-backupbuddy' ), $test_file ) );
                    
138						
                    
212				
                    
213				$pclzip_file = ABSPATH . 'wp-admin/includes/class-pclzip.php';
                    
214				pb_backupbuddy::status( 'details', 'PCLZip class not found. Attempting to load from `' . $pclzip_file . '`.' );
                    
                
tax_class.php https://gitlab.com/shapcy/opencart | PHP | 402 lines
                    
1<?php
                    
2class ControllerLocalisationTaxClass extends Controller {
                    
246
                    
247		$data['results'] = sprintf($this->language->get('text_pagination'), ($tax_class_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($tax_class_total - $this->config->get('config_limit_admin'))) ? $tax_class_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $tax_class_total, ceil($tax_class_total / $this->config->get('config_limit_admin')));
                    
248
                    
395			if ($product_total) {
                    
396				$this->error['warning'] = sprintf($this->language->get('error_product'), $product_total);
                    
397			}
                    
                
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.',
                    
                
DDAutoFilterSearchBehavior.php https://bitbucket.org/jwerner/yii-ddautofilter.git | PHP | 360 lines
                    
1<?php
                    
2/**
                    
86                    $criteria->addCondition(
                    
87                        sprintf(
                    
88                            "t.%s BETWEEN '%s' AND '%s'",
                    
99                    $criteria->addCondition(
                    
100                        sprintf(
                    
101                            "t.%s BETWEEN '%s' AND '%s'",
                    
112                    $criteria->addCondition(
                    
113                        sprintf(
                    
114                            "t.%s BETWEEN '%s' AND '%s'",
                    
127                    $criteria->addCondition(
                    
128                        sprintf(
                    
129                            "t.%s BETWEEN '%s' AND '%s'",
                    
140                    $criteria->addCondition(
                    
141                        sprintf(
                    
142                            "t.%s BETWEEN '%s' AND '%s'",
                    
                
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);
                    
                
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));
                    
                
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            }
                    
                
class-sidebar-login-widget.php https://bitbucket.org/akeda/bmw-id-hris.git | PHP | 408 lines
                    
55				'default'         => 1,
                    
56				'description'     => sprintf( __( '<a href="%s">Anyone can register</a> must be enabled.', 'sidebar_login' ), admin_url('options-general.php') ),
                    
57				'type'            => 'checkbox'
                    
183		    			'text' => __( 'Register', 'sidebar_login' ),
                    
184		    			'href' => apply_filters( 'sidebar_login_widget_register_url', site_url( 'wp-login.php?action=register', 'login' ) )
                    
185		    		);
                    
383					<label for="<?php echo esc_attr( $this->get_field_id( $name ) ); ?>"><?php echo wp_kses_post( $option['label'] ) ?>:</label>
                    
384					<input type="text" class="widefat" id="<?php echo esc_attr( $this->get_field_id( $name ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( $name ) ); ?>" placeholder="<?php echo esc_attr( $option['placeholder'] ); ?>" value="<?php echo esc_attr( $instance[ $name ] ); ?>" />
                    
385					<?php
                    
388					?>
                    
389					<label for="<?php echo esc_attr( $this->get_field_id( $name ) ); ?>"><input type="checkbox" class="checkbox" id="<?php echo esc_attr( $this->get_field_id( $name ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( $name ) ); ?>" <?php checked( $instance[ $name ], 1 ) ?> value="1" /> <?php echo wp_kses_post( $option['label'] ) ?></label>
                    
390					<?php
                    
394					<label for="<?php echo esc_attr( $this->get_field_id( $name ) ); ?>"><?php echo wp_kses_post( $option['label'] ) ?>:</label>
                    
395					<textarea class="widefat" cols="20" rows="3" id="<?php echo esc_attr( $this->get_field_id( $name ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( $name ) ); ?>" placeholder="<?php echo esc_attr( $option['placeholder'] ); ?>"><?php echo esc_textarea( $instance[ $name ] ); ?></textarea>
                    
396					<?php
                    
                
AutowirePass.php https://gitlab.com/pr0055/symfonypizza | PHP | 350 lines
                    
1<?php
                    
2
                    
37    {
                    
38        $throwingAutoloader = function ($class) { throw new \ReflectionException(sprintf('Class %s does not exist', $class)); };
                    
39        spl_autoload_register($throwingAutoloader);
                    
120                    if (!$parameter->isOptional()) {
                    
121                        throw new RuntimeException(sprintf('Unable to autowire argument index %d ($%s) for the service "%s". If this is an object, give it a type-hint. Otherwise, specify this argument\'s value explicitly.', $index, $parameter->name, $id));
                    
122                    }
                    
152                if (!$parameter->isDefaultValueAvailable()) {
                    
153                    throw new RuntimeException(sprintf('Cannot autowire argument %s for %s because the type-hinted class does not exist (%s).', $index + 1, $definition->getClass(), $e->getMessage()), 0, $e);
                    
154                }
                    
262
                    
263            throw new RuntimeException(sprintf('Unable to autowire argument of type "%s" for the service "%s". Multiple services exist for this %s (%s).', $typeHint->name, $id, $classOrInterface, $matchingServices));
                    
264        }
                    
267            $classOrInterface = $typeHint->isInterface() ? 'interface' : 'class';
                    
268            throw new RuntimeException(sprintf('Unable to autowire argument of type "%s" for the service "%s". No services were found matching this %s and it cannot be auto-registered.', $typeHint->name, $id, $classOrInterface));
                    
269        }
                    
                
gamespy3.php https://gitlab.com/leon0399/damnit-engine | PHP | 446 lines
                    
1<?php
                    
2/**
                    
97
                    
98		$challenge_result = sprintf(
                    
99			"%c%c%c%c",
                    
                
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{
                    
114 */
                    
115bool trpgPrintGraphParser::StartChildren(void *)
                    
116{
                    
126 */
                    
127bool trpgPrintGraphParser::EndChildren(void *)
                    
128{
                    
152
                    
153void trpgPrintGraphParser::Reset()
                    
154{
                    
158
                    
159void trpgPrintGraphParser::ReadHelper::Reset()
                    
160{
                    
                
Image.php https://github.com/nicodmf/Imagine.git | PHP | 473 lines
                    
127    /**
                    
128     * (non-PHPdoc)
                    
129     * @see Imagine\Image\ManipulatorInterface::paste()
                    
160        /**
                    
161         * @see http://pecl.php.net/bugs/bug.php?id=22435
                    
162         */
                    
219    /**
                    
220     * (non-PHPdoc)
                    
221     * @see Imagine\Image\ManipulatorInterface::save()
                    
236    /**
                    
237     * (non-PHPdoc)
                    
238     * @see Imagine\Image\ManipulatorInterface::show()
                    
264    /**
                    
265     * (non-PHPdoc)
                    
266     * @see Imagine\ImageInterface::__toString()
                    
                
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;
                    
                
view.php https://github.com/cgajardo/repositorium.git | PHP | 491 lines
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @package       cake
                    
16 * @subpackage    cake.cake.console.libs.tasks
                    
17 * @since         CakePHP(tm) v 1.2
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
20App::import('Controller', 'Controller', false);
                    
21include_once dirname(__FILE__) . DS . 'bake.php';
                    
22
                    
                
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"',
                    
                
theme-editor.php https://gitlab.com/webkod3r/tripolis | PHP | 298 lines
                    
1<?php
                    
2/**
                    
9/** WordPress Administration Bootstrap */
                    
10require_once( dirname( __FILE__ ) . '/admin.php' );
                    
11
                    
12if ( is_multisite() && ! is_network_admin() ) {
                    
13	wp_redirect( network_admin_url( 'theme-editor.php' ) );
                    
14	exit();
                    
243?>
                    
244		<li><a href="theme-editor.php?file=<?php echo urlencode( $filename ) ?>&amp;theme=<?php echo urlencode( $stylesheet ) ?>"><?php echo $file_description; ?></a></li>
                    
245<?php
                    
265		<?php echo $docs_select; ?>
                    
266		<input type="button" class="button" value=" <?php esc_attr_e( 'Look Up' ); ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'https://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&amp;locale=<?php echo urlencode( get_locale() ) ?>&amp;version=<?php echo urlencode( $wp_version ) ?>&amp;redirect=true'); }" />
                    
267		</div>
                    
271		<?php if ( is_child_theme() && $theme->get_stylesheet() == get_template() ) : ?>
                    
272			<p><?php if ( is_writeable( $file ) ) { ?><strong><?php _e( 'Caution:' ); ?></strong><?php } ?>
                    
273			<?php _e( 'This is a file in your current parent theme.' ); ?></p>
                    
                
twitter.php https://github.com/jrcryer/twitter-for-wordpress.git | PHP | 296 lines
                    
164            <label for="<?php echo $this->get_field_id('username'); ?>"><?php _e('Twitter username:'); ?>
                    
165                <input class="widefat" id="<?php echo $this->get_field_id('username'); ?>" name="<?php echo $this->get_field_name('username'); ?>" type="text" value="<?php echo $username; ?>" />
                    
166            </label>
                    
174            <label for="<?php echo $this->get_field_id('update'); ?>"><?php _e('Show date posted:'); ?>
                    
175                <input id="<?php echo $this->get_field_id('update'); ?>" name="<?php echo $this->get_field_name('update'); ?>" type="checkbox" <?php echo $update? 'checked="chcked"' : ''; ?> />
                    
176            </label>
                    
179            <label for="<?php echo $this->get_field_id('hyperlinks'); ?>"><?php _e('Discover hyperlinks:'); ?>
                    
180                <input id="<?php echo $this->get_field_id('hyperlinks'); ?>" name="<?php echo $this->get_field_name('hyperlinks'); ?>" type="checkbox" <?php echo $hyperlinks ? 'checked="checked"' : ''; ?> />
                    
181            </label>
                    
184            <label for="<?php echo $this->get_field_id('twitter_users'); ?>"><?php _e('Discover @replies:'); ?>
                    
185                <input id="<?php echo $this->get_field_id('twitter_users'); ?>" name="<?php echo $this->get_field_name('twitter_users'); ?>" type="checkbox" <?php echo $twitter_users ? 'checked="checked"' : ''; ?> />
                    
186            </label>
                    
189            <label for="<?php echo $this->get_field_id('encode_utf8'); ?>"><?php _e('UTF8 Encode:'); ?>
                    
190                <input id="<?php echo $this->get_field_id('encode_utf8'); ?>" name="<?php echo $this->get_field_name('encode_utf8'); ?>" type="checkbox" <?php echo $encode ? 'checked="checked"' : ''; ?> />
                    
191            </label>
                    
                
ListCommand.php https://gitlab.com/ealexis.t/trends | 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    }
                    
                
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"
                    
                
DelegatingValidator.php https://github.com/Exercise/symfony.git | PHP | 280 lines
                    
1<?php
                    
2
                    
272                if (!isset($forms[$form])) {
                    
273                    throw new FormException(sprintf('The child form with path "%s" does not exist', $form));
                    
274                }
                    
                
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
                    
                
users.php https://github.com/holsinger/openfloor.git | PHP | 402 lines
                    
1<?php
                    
2/**
                    
9/** WordPress Administration Bootstrap */
                    
10require_once('admin.php');
                    
11
                    
12/** WordPress Registration API */
                    
13require_once( ABSPATH . WPINC . '/registration.php');
                    
14
                    
266$class = empty($role) ? ' class="current"' : '';
                    
267$role_links[] = "<li><a href='users.php'$class>" . sprintf( __ngettext( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_users ), number_format_i18n( $total_users ) ) . '</a>';
                    
268foreach ( $wp_roles->get_names() as $this_role => $name ) {
                    
310<input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
                    
311<label class="hidden" for="new_role"><?php _e('Change role to&hellip;') ?></label><select name="new_role" id="new_role"><option value=''><?php _e('Change role to&hellip;') ?></option><?php wp_dropdown_roles(); ?></select>
                    
312<input type="submit" value="<?php _e('Change'); ?>" name="changeit" class="button-secondary" />
                    
333	<?php if ( $wp_user_search->is_search() ) : ?>
                    
334		<p><a href="users.php"><?php _e('&larr; Back to All Users'); ?></a></p>
                    
335	<?php endif; ?>
                    
                
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			}
                    
                
Service.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 473 lines
                    
23 */
                    
24#require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
132        if (null == $this->getName()) {
                    
133            #require_once 'Zend/Json/Server/Exception.php';
                    
134            throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided');
                    
170            #require_once 'Zend/Json/Server/Exception.php';
                    
171            throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));
                    
172        }
                    
197        if (!in_array($transport, $this->_transportTypes)) {
                    
198            #require_once 'Zend/Json/Server/Exception.php';
                    
199            throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));
                    
246        if (!in_array($envelopeType, $this->_envelopeTypes)) {
                    
247            #require_once 'Zend/Json/Server/Exception.php';
                    
248            throw new Zend_Json_Server_Exception(sprintf('Invalid envelope type "%s"; please specify one of (%s)', $envelopeType, implode(', ', $this->_envelopeTypes)));
                    
                
class-page-logs.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 374 lines
                    
1<?php
                    
2/**
                    
133			$logdata = BackWPup_Job::read_logheader( BackWPup_Option::get( 'cfg', 'logfolder' ) . $logfile );
                    
134			echo PHP_EOL . "\t", $this->single_row( BackWPup_Option::get( 'cfg', 'logfolder' ) . $logfile, $logdata, $style );
                    
135		}
                    
180				case 'log':
                    
181					$r .= "<td $attributes><strong><a class=\"thickbox\" href=\"" . admin_url( 'admin-ajax.php' ) . '?&action=backwpup_view_log&logfile=' . basename( $logfile ) .'&_ajax_nonce=' . wp_create_nonce( 'view-logs' ) . "&height=440&width=630&TB_iframe=true\" title=\"" . basename( $logfile ) . "\">" . sprintf( __( '%1$s at %2$s', 'backwpup' ), date_i18n( get_option( 'date_format' ) , $logdata[ 'logtime' ], TRUE ), date_i18n( get_option( 'time_format' ), $logdata[ 'logtime' ], TRUE ) ) . ": <i>" . $logdata[ 'name' ] . "</i></a></strong>";
                    
182					$actions               = array();
                    
182					$actions               = array();
                    
183					$actions[ 'view' ]     = '<a class="thickbox" href="' . admin_url( 'admin-ajax.php' ) . '?&action=backwpup_view_log&logfile=' . basename( $logfile ) .'&_ajax_nonce=' . wp_create_nonce( 'view-logs' ) . '&height=440&width=630&TB_iframe=true" title="' . basename( $logfile ) . '">' . __( 'View', 'backwpup' ) . '</a>';
                    
184					if ( current_user_can( 'backwpup_logs_delete' ) )
                    
184					if ( current_user_can( 'backwpup_logs_delete' ) )
                    
185						$actions[ 'delete' ]   = "<a class=\"submitdelete\" href=\"" . wp_nonce_url( network_admin_url( 'admin.php' ) . '?page=backwpuplogs&action=delete&paged=' . $this->get_pagenum() . '&logfiles[]=' . basename( $logfile ), 'bulk-logs' ) . "\" onclick=\"return showNotice.warn();\">" . __( 'Delete', 'backwpup' ) . "</a>";
                    
186					$actions[ 'download' ] = "<a href=\"" . wp_nonce_url( network_admin_url( 'admin.php' ) . '?page=backwpuplogs&action=download&file=' . $logfile, 'download-backup_' . basename( $logfile ) ) . "\">" . __( 'Download', 'backwpup' ) . "</a>";
                    
335			<?php screen_icon(); ?>
                    
336			<h2><?php echo esc_html( sprintf( __( '%s Logs', 'backwpup' ), BackWPup::get_plugin_data( 'name' ) ) ); ?></h2>
                    
337			<?php BackWPup_Admin::display_messages(); ?>
                    
                
class-wcs-query.php https://gitlab.com/remyvianne/krowkaramel | PHP | 389 lines
                    
1<?php
                    
2/**
                    
100				// translators: placeholder is a subscription ID.
                    
101				$title = ( $subscription ) ? sprintf( _x( 'Subscription #%s', 'hash before order number', 'woocommerce-subscriptions' ), $subscription->get_order_number() ) : '';
                    
102				break;
                    
105					// translators: placeholder is a page number.
                    
106					$title = sprintf( __( 'Subscriptions (page %d)', 'woocommerce-subscriptions' ), intval( $wp->query_vars['subscriptions'] ) );
                    
107				} else {
                    
175
                    
176		wc_get_template( 'myaccount/subscriptions.php', array( 'current_page' => $current_page ), '', WC_Subscriptions_Core_Plugin::instance()->get_subscriptions_core_directory( 'templates/' ) );
                    
177	}
                    
253
                    
254		wp_redirect( $url ); // phpcs:ignore WordPress.Security.SafeRedirect.wp_redirect_wp_redirect
                    
255		exit();
                    
267		if ( isset( $value ) ) {
                    
268			wcs_doing_it_wrong( 'woocommerce_myaccount_view_subscriptions_endpoint', sprintf( '%1$s option is deprecated. Use %2$s option instead.', 'woocommerce_myaccount_view_subscriptions_endpoint', 'woocommerce_myaccount_view_subscription_endpoint' ), '2.2.17' );
                    
269
                    
                
Definition.php https://github.com/nattaphat/hgis.git | PHP | 659 lines
                    
1<?php
                    
2
                    
250        if ($index < 0 || $index > count($this->arguments) - 1) {
                    
251            throw new OutOfBoundsException(sprintf('The index "%d" is not in the range [0, %d].', $index, count($this->arguments) - 1));
                    
252        }
                    
284        if ($index < 0 || $index > count($this->arguments) - 1) {
                    
285            throw new OutOfBoundsException(sprintf('The index "%d" is not in the range [0, %d].', $index, count($this->arguments) - 1));
                    
286        }
                    
324        if (empty($method)) {
                    
325            throw new InvalidArgumentException(sprintf('Method name cannot be empty.'));
                    
326        }
                    
634     *
                    
635     * @param callable $callable A PHP callable
                    
636     *
                    
650     *
                    
651     * @return callable The PHP callable to call
                    
652     *
                    
                
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    }
                    
                
blocklayered.tpl https://gitlab.com/staging06/myproject | Smarty Template | 252 lines
                    
8* It is also available through the world-wide-web at this URL:
                    
9* http://opensource.org/licenses/afl-3.0.php
                    
10* If you did not receive a copy of the license and are unable to
                    
21*  @copyright  2007-2015 PrestaShop SA
                    
22*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23*  International Registred Trademark & Property of PrestaShop SA
                    
52												{if $filter.format == 1}
                    
53													{l s='%1$s: %2$s - %3$s'|sprintf:$filter.name:{displayPrice price=$filter.values[0]}:{displayPrice price=$filter.values[1]}|escape:html:'UTF-8' mod='blocklayered'}
                    
54												{else}
                    
54												{else}
                    
55													{l s='%1$s: %2$s %4$s - %3$s %4$s'|sprintf:$filter.name:$filter.values[0]:$filter.values[1]:$filter.unit|escape:html:'UTF-8' mod='blocklayered'}
                    
56												{/if}
                    
63													<a href="#" data-rel="layered_{$filter.type_lite}_{$id_value}" title="{l s='Cancel' mod='blocklayered'}">x</a>
                    
64													{l s='%1$s: %2$s' mod='blocklayered' sprintf=[$filter.name, $value.name]}
                    
65												</li>
                    
                
ConstructorAnnotationsInspectorTest.php https://gitlab.com/nstwf.pro/json-mapper | PHP | 413 lines
                    
1<?php
                    
2
                    
27use Nstwf\JsonMapper\Unit\Implementation\UnionScalarTypesObject;
                    
28use PHPUnit\Framework\TestCase;
                    
29use Psr\SimpleCache\CacheInterface;
                    
378        $cache->method('has')
                    
379            ->with(sprintf('%s-%s', ConstructorAnnotationsInspector::class, NoTypeObject::class))
                    
380            ->willReturn(false);
                    
382            ->method('set')
                    
383            ->with(sprintf('%s-%s', ConstructorAnnotationsInspector::class, NoTypeObject::class));
                    
384
                    
400        $cache->method('has')
                    
401            ->with(sprintf('%s-%s', ConstructorAnnotationsInspector::class, 'MockClass'))
                    
402            ->willReturn(true);
                    
403        $cache->method('get')
                    
404            ->with(sprintf('%s-%s', ConstructorAnnotationsInspector::class, 'MockClass'))
                    
405            ->willReturn($objectDescriptor);
                    
                
JsonApiDocumentTopLevelNormalizer.php https://gitlab.com/mohamed_hussein/prodt | PHP | 335 lines
                    
1<?php
                    
2
                    
27 *
                    
28 * @internal JSON:API maintains no PHP API since its API is the HTTP API. This
                    
29 *   class may change at any time and this will break any dependencies on it.
                    
31 * @see https://www.drupal.org/project/drupal/issues/3032787
                    
32 * @see jsonapi.api.php
                    
33 *
                    
144            }
                    
145            throw new NotFoundHttpException(sprintf('The resource identified by `%s:%s` (given as a relationship item) could not be found.', $relationship['data'][$delta]['type'], $uuid));
                    
146          }
                    
314      if ($relationship_fields_sent_as_attributes = array_intersect($received_attribute_field_names, $relationship_field_names)) {
                    
315        throw new UnprocessableEntityHttpException(sprintf("The following relationship fields were provided as attributes: [ %s ]", implode(', ', $relationship_fields_sent_as_attributes)));
                    
316      }
                    
                
UserXMLParser.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 416 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * @file UserXMLParser.inc.php
                    
5 *
                    
15
                    
16// $Id: UserXMLParser.inc.php,v 1.22 2009/05/13 00:14:46 asmecher Exp $
                    
17
                    
233					// Failed to add user!
                    
234					$this->errors[] = sprintf('%s: %s (%s)',
                    
235						Locale::translate('manager.people.importUsers.failedToImportUser'),
                    
255						// Failed to add role!
                    
256						$this->errors[] = sprintf('%s: %s - %s (%s)',
                    
257							Locale::translate('manager.people.importUsers.failedToImportRole'),
                    
                
class-config.php https://gitlab.com/iamgraeme/royalmile | PHP | 452 lines
                    
1<?php
                    
2/**
                    
40			WPSEO_Options::reset();
                    
41			wp_redirect( admin_url( 'admin.php?page=' . WPSEO_Admin::PAGE_IDENTIFIER ) );
                    
42		}
                    
116			/* translators: %s: '%%term_title%%' variable used in titles and meta's template that's not compatible with the given template */
                    
117			'variable_warning' => sprintf( __( 'Warning: the variable %s cannot be used in this template.', 'wordpress-seo' ), '<code>%s</code>' ) . ' ' . __( 'See the help tab for more info.', 'wordpress-seo' ),
                    
118			'locale' => get_locale(),
                    
395		?>
                    
396			<div id="<?php echo esc_attr( $id ); ?>" class="yoastbox">
                    
397				<h1><?php echo $title; ?></h1>
                    
397				<h1><?php echo $title; ?></h1>
                    
398				<?php echo $content; ?>
                    
399			</div>
                    
399			</div>
                    
400		<?php
                    
401	}
                    
                
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' );
                    
                
 

Source

Language