PageRenderTime 2144ms queryTime 646ms sortTime 114ms getByIdsTime 361ms findMatchingLines 178ms

100+ results results for 'php printf repo:ivansoriasolis/Vidali' (2144 ms)

Not the results you expected?
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 {
                    
                
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		);
                    
                
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',
                    
                
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;
                    
                
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			}
                    
                
jqplot.pointLabels.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 362 lines
                    
8 * jqPlot is currently available for use in all personal or commercial projects 
                    
9 * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL 
                    
10 * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can 
                    
14 * know of any substantial use of jqPlot.  You can reach the author at: 
                    
15 * chris at jqplot dot com or see http://www.jqplot.com/info.php .
                    
16 *
                    
17 * If you are feeling kind and generous, consider supporting the project by
                    
18 * making a donation at: http://www.jqplot.com/donate.php .
                    
19 *
                    
19 *
                    
20 * sprintf functions contained in jqplot.sprintf.js by Ash Searle:
                    
21 *
                    
23 *     author Ash Searle
                    
24 *     http://hexmen.com/blog/2007/03/printf-sprintf/
                    
25 *     http://hexmen.com/js/sprintf.js
                    
                
cs.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 335 lines
                    
1<?php
                    
2$translations = array(
                    
18	'No extension' => 'Žádné rozšíření',
                    
19	'None of the supported PHP extensions (%s) are available.' => 'Není dostupné žádné z podporovaných PHP rozšíření (%s).',
                    
20	'Session support must be enabled.' => 'Session proměnné musí být povolené.',
                    
21	'Session expired, please login again.' => 'Session vypršela, přihlašte se prosím znovu.',
                    
22	'%s version: %s through PHP extension %s' => 'Verze %s: %s přes PHP rozšíření %s',
                    
23	'Refresh' => 'Obnovit',
                    
53	'Show only errors' => 'Zobrazit pouze chyby',
                    
54	// sprintf() format for time of the command
                    
55	'%.3f s' => '%.3f s',
                    
                
class-wp-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
                    
                
SSDB.php https://gitlab.com/dleonov/my-framework-two | PHP | 576 lines
                    
1<?php
                    
2/**
                    
7 *
                    
8 * SSDB PHP client SDK.
                    
9 */
                    
46		}
                    
47		return sprintf('%-13s %12s %s', $this->cmd, $this->code, $s);
                    
48	}
                    
                
site-users.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 330 lines
                    
28		'<p>' . __('<strong>Users</strong> &mdash; This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.') . '</p>' .
                    
29		'<p>' . sprintf( __('<strong>Themes</strong> &mdash; This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site&#8217;s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ), network_admin_url( 'themes.php' ) ) . '</p>' .
                    
30		'<p>' . __('<strong>Settings</strong> &mdash; This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.') . '</p>'
                    
205<h1 id="edit-site"><?php echo $title; ?></h1>
                    
206<p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id, '/' ) ); ?>"><?php _e( 'Visit' ); ?></a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>"><?php _e( 'Dashboard' ); ?></a></p>
                    
207<?php
                    
272if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?>
                    
273<h2 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h2>
                    
274<form action="site-users.php?action=adduser" id="adduser" method="post">
                    
302<h2 id="add-new-user"><?php _e( 'Add New User' ); ?></h2>
                    
303<form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post">
                    
304	<input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
                    
320		<tr class="form-field">
                    
321			<td colspan="2"><?php _e( 'A password reset link will be sent to the user via email.' ) ?></td>
                    
322		</tr>
                    
                
ext_spl.cpp https://gitlab.com/iranjith4/hhvm | C++ | 384 lines
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
29#include "hphp/runtime/base/glob-stream-wrapper.h"
                    
30#include "hphp/runtime/base/request-event-handler.h"
                    
31#include "hphp/runtime/base/stream-wrapper-registry.h"
                    
36#include "hphp/system/systemlib.h"
                    
37#include "hphp/util/string-vsnprintf.h"
                    
38
                    
365    HHVM_FE(hphp_object_pointer);
                    
366    HHVM_FE(hphp_get_this);
                    
367    HHVM_FE(class_implements);
                    
                
AssociatedProducts.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 449 lines
                    
1<?php
                    
2/**
                    
21/**
                    
22 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
23 */
                    
286                        'qty' => $this->getProductStockQty($product),
                    
287                        'price' => $currency->toCurrency(sprintf("%f", $price), ['display' => false]),
                    
288                        'price_string' => $currency->toCurrency(sprintf("%f", $price)),
                    
                
TraitUsageGenerator.php https://gitlab.com/yousafsyed/easternglamor | PHP | 353 lines
                    
1<?php
                    
2/**
                    
318            if ($this->classGenerator->hasMethod($alias['alias'])) {
                    
319                throw new Exception\RuntimeException(sprintf(
                    
320                    'Generation Error: Aliased method %s already exists on this class',
                    
                
Abstract.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 326 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
102    {
                    
103        $connection = sprintf('%s_%s', $this->_modulePrefix, $name);
                    
104        /** @var $resource Mage_Core_Model_Resource */
                    
                
ListCommand.php https://gitlab.com/nzqadri/bejeep | 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    }
                    
                
trpage_pparse.cpp https://gitlab.com/smurmann/KDUProjects | C++ | 431 lines
                    
91 */
                    
92trpgPrintGraphParser::trpgPrintGraphParser(trpgr_Archive *inArch,trpgrImageHelper *inImg,trpgPrintBuffer *inBuf):printBuf(inBuf), archive(inArch), imageHelp(inImg), childRefCB(0)
                    
93{
                    
126 */
                    
127bool trpgPrintGraphParser::EndChildren(void *)
                    
128{
                    
180 */
                    
181void *trpgPrintGraphParser::ReadHelper::Parse(trpgToken tok,trpgReadBuffer &buf)
                    
182{
                    
258                        if (failed) {
                    
259                            fprintf(stderr,"Failed to read local image %d from local material %d.\n",imgN,i);
                    
260                        } else
                    
419                              pBuf.prnLine(errString);
                    
420                              fprintf(stderr,"%s\n",errString);
                    
421                          }
                    
                
about.php https://gitlab.com/Gashler/sg | PHP | 208 lines
                    
88		/* Translators: 1: singular.php; 2: single.php; 3:page.php */
                    
89		'description' => sprintf( __( 'Added %1$s as a fallback for %2$s and %3$s' ), '<code>singular.php</code>', '<code>single.php</code>', '<code>page.php</code>.' ),
                    
90	),
                    
98	<div class="wrap about-wrap">
                    
99		<h1><?php printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version ); ?></h1>
                    
100
                    
100
                    
101		<div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s makes it even easier to format your content and customize your site.' ), $display_version ); ?></div>
                    
102		<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
                    
105			<a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What&#8217;s New' ); ?></a>
                    
106			<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
                    
107			<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
                    
175				<?php endif; ?>
                    
176				<a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
                    
177			</div>
                    
                
about.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 190 lines
                    
26
                    
27<h1><?php printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version ); ?></h1>
                    
28
                    
28
                    
29<div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s helps you communicate and share, globally.' ), $display_version ); ?></div>
                    
30
                    
56	</p>
                    
57	<p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
                    
58         '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 13 ), '4.2.2', number_format_i18n( 13 ) ); ?>
                    
62         '<strong>Version %1$s</strong> addressed some security issues.', 1 ), '4.2.1' ); ?>
                    
63		<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://codex.wordpress.org/Version_4.2.1' ); ?>
                    
64 	</p>
                    
75		<h3><?php _e( 'An easier way to share content' ); ?></h3>
                    
76		<p><?php printf( __( 'Clip it, edit it, publish it. Get familiar with the new and improved Press This. From the <a href="%s">Tools</a> menu, add Press This to your browser bookmark bar or your mobile device home screen. Once installed you can share your content with lightning speed. Sharing your favorite videos, images, and content has never been this fast or this easy.' ), admin_url( 'tools.php' ) ); ?></p>
                    
77		<p><?php _e( 'Drag the bookmarklet below to your bookmarks bar. Then, when you&#8217;re on a page you want to share, simply &#8220;press&#8221; it.' ); ?></p>
                    
                
ListenerOptions.php https://gitlab.com/yousafsyed/easternglamor | PHP | 396 lines
                    
1<?php
                    
2/**
                    
90            throw new Exception\InvalidArgumentException(
                    
91                sprintf(
                    
92                    'Argument passed to %s::%s() must be an array, '
                    
136            throw new Exception\InvalidArgumentException(
                    
137                sprintf(
                    
138                    'Argument passed to %s::%s() must be an array, '
                    
162            throw new Exception\InvalidArgumentException(
                    
163                sprintf(
                    
164                    'Argument passed to %s::%s() must be an array, '
                    
199            throw new Exception\InvalidArgumentException(
                    
200                sprintf(
                    
201                    'Argument passed to %s::%s() must be an array, '
                    
269        if ($this->getConfigCacheKey()) {
                    
270            return $this->getCacheDir() . '/module-config-cache.' . $this->getConfigCacheKey().'.php';
                    
271        }
                    
                
ibase_driver.php https://gitlab.com/joshuacurci/swim-crm | PHP | 396 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
229			return $sql.' AND TRIM("RDB$RELATION_NAME") AS TABLE_NAME LIKE \''.$this->escape_like_str($this->dbprefix)."%' "
                    
230				.sprintf($this->_like_escape_str, $this->_like_escape_chr);
                    
231		}
                    
                
Currency.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 357 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
265         */
                    
266        $price = sprintf("%F", $price);
                    
267        if ($price == -0) {
                    
                
ViewFileReferenceTest.php https://gitlab.com/axeltizon/magento-demopoweraccess | PHP | 273 lines
                    
1<?php
                    
2/**
                    
24
                    
25class ViewFileReferenceTest extends \PHPUnit_Framework_TestCase
                    
26{
                    
157            // If file is found, then old functionality (find modular files in non-modular locations) is used
                    
158            $message = sprintf(
                    
159                "Found modular call:\n  %s in\n  %s\n  which may resolve to non-modular location(s):\n  %s",
                    
249     *
                    
250     * Null is returned, if the file is not within an area, e.g. it is a model/block/helper php-file.
                    
251     *
                    
                
Theme_Manager.class.php https://gitlab.com/albert925/lading-ach | PHP | 381 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
11 */
                    
12require_once './libraries/Theme.class.php';
                    
13
                    
15 *
                    
16 * @package phpMyAdmin
                    
17 */
                    
114            trigger_error(
                    
115                sprintf($GLOBALS['strThemeDefaultNotFound'],
                    
116                    htmlspecialchars($GLOBALS['cfg']['ThemeDefault'])),
                    
152            trigger_error(
                    
153                sprintf($GLOBALS['strThemeNotFound'], htmlspecialchars($theme)),
                    
154                E_USER_ERROR);
                    
206        // force a change of a dummy session variable to avoid problems
                    
207        // with the caching of phpmyadmin.css.php
                    
208        $_SESSION['PMA_Config']->set('theme-update', $this->theme->id);
                    
                
header.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 212 lines
                    
11		<p><?php _e("JavaScript for Mobile Safari is currently turned off.", "wptouch"); ?></p>
                    
12		<p><?php _e("Turn it on in ", "wptouch"); ?><em><?php _e("Settings &rsaquo; Safari", "wptouch"); ?></em><br /><?php _e(" to view this website.", "wptouch"); ?></p>
                    
13	</div>
                    
26		<div id="wptouch-login-inner">
                    
27			<form name="loginform" id="loginform" action="<?php bloginfo('wpurl'); ?>/wp-login.php" method="post">
                    
28				<label><input type="text" name="log" id="log" placeholder="<?php _e("Username", "wptouch"); ?>" tabindex="1" value="" /></label>
                    
92							<br />
                    
93							<?php echo sprintf(__( "You can %ssign-up here%s.", "wptouch" ), '<a href="' . get_bloginfo('wpurl') . '/wp-register.php" target="_blank">','</a>'); ?>
                    
94						<?php endif; ?>
                    
100					<?php if (get_option('comment_registration')) { ?>
                    
101					<li><a href="<?php bloginfo('wpurl'); ?>/wp-register.php"><?php _e( "Register for this site", "wptouch" ); ?></a></li>
                    
102					<?php } ?>
                    
104					<li><a href="<?php bloginfo('wpurl'); ?>/wp-admin/profile.php"><?php _e( "Account Profile", "wptouch" ); ?></a></li>
                    
105					<li><a href="<?php $version = (float)get_bloginfo('version'); if ($version >= 2.7) { ?><?php echo wp_logout_url($_SERVER['REQUEST_URI']); } else { bloginfo('wpurl'); ?>/wp-login.php?action=logout&redirect_to=<?php echo $_SERVER['REQUEST_URI']; ?><?php } ?>"><?php _e( "Logout", "wptouch" ); ?></a></li>
                    
106					<?php } ?>
                    
                
HeadLink.php https://gitlab.com/yousafsyed/easternglamor | PHP | 495 lines
                    
1<?php
                    
2/**
                    
61     *
                    
62     * Use PHP_EOL as separator
                    
63     */
                    
67
                    
68        $this->setSeparator(PHP_EOL);
                    
69    }
                    
159                throw new Exception\BadMethodCallException(
                    
160                    sprintf('%s requires at least one argument', $method)
                    
161                );
                    
294                    foreach ($attributes[$itemKey] as $key => $value) {
                    
295                        $link .= sprintf(' %s="%s"', $key, ($this->autoEscape) ? $this->escape($value) : $value);
                    
296                    }
                    
297                } else {
                    
298                    $link .= sprintf(
                    
299                        ' %s="%s"',
                    
                
Headers.php https://gitlab.com/yousafsyed/easternglamor | PHP | 472 lines
                    
1<?php
                    
2/**
                    
96            // Line does not match header format!
                    
97            throw new Exception\RuntimeException(sprintf(
                    
98                'Line "%s" does not match header format!',
                    
145        if (!is_array($headers) && !$headers instanceof Traversable) {
                    
146            throw new Exception\InvalidArgumentException(sprintf(
                    
147                'Expected array or Traversable; received "%s"',
                    
                
Create.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 374 lines
                    
1<?php
                    
2/**
                    
359    {
                    
360        $saveCard = sprintf($this->vaultCheckbox, $paymentMethod);
                    
361        $this->_rootElement->find($saveCard, Locator::SELECTOR_CSS, 'checkbox')->setValue($creditCardSave);
                    
                
Translate.php https://gitlab.com/jslee1/PrestaShop | PHP | 347 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
22 * @copyright 2007-2015 PrestaShop SA
                    
23 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
                    
24 * International Registered Trademark & Property of PrestaShop SA
                    
31{
                    
32    public static function getFrontTranslation($string, $class, $addslashes = false, $htmlentities = true, $sprintf = null)
                    
33    {
                    
54
                    
55        if ($sprintf !== null) {
                    
56            $str = Translate::checkAndReplaceArgs($str, $sprintf);
                    
69     */
                    
70    public static function getAdminTranslation($string, $class = 'AdminTab', $addslashes = false, $htmlentities = true, $sprintf = null)
                    
71    {
                    
                
class-gf-field-checkbox.php https://gitlab.com/screamud/gravity-forms-project | 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			}
                    
                
class-wp-admin-bar.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | 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;
                    
                
General.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 317 lines
                    
1<?php
                    
2/**
                    
14 *
                    
15 * @SuppressWarnings(PHPMD.DepthOfInheritance)
                    
16 */
                    
92     * @return $this
                    
93     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
94     */
                    
110        $themesCollections->addConstraint(Collection::CONSTRAINT_AREA, Area::AREA_FRONTEND);
                    
111        $onChangeScript = sprintf(
                    
112            'parentThemeOnChange(this.value, %s)',
                    
                
class-wp-filesystem-base.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 321 lines
                    
1<?php
                    
2/**
                    
200				if ( $this->verbose )
                    
201					printf( __('Changing to %s') . '<br/>', $newdir );
                    
202				if ( $ret = $this->search_for_folder( $folder, $newdir, $loop) )
                    
209			if ( $this->verbose )
                    
210				printf( __('Found %s') . '<br/>',  $base . $last_path );
                    
211			return trailingslashit($base . $last_path);
                    
222	 *
                    
223	 * From the PHP documentation page for fileperms()
                    
224	 *
                    
224	 *
                    
225	 * @link http://docs.php.net/fileperms
                    
226	 * @since 2.5
                    
279 	 *
                    
280	 * @link http://docs.php.net/manual/en/function.chmod.php#49614
                    
281	 * @since 2.5
                    
                
jqplot.highlighter.min.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 57 lines
                    
8 * jqPlot is currently available for use in all personal or commercial projects 
                    
9 * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL 
                    
10 * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can 
                    
14 * know of any substantial use of jqPlot.  You can reach the author at: 
                    
15 * chris at jqplot dot com or see http://www.jqplot.com/info.php .
                    
16 *
                    
17 * If you are feeling kind and generous, consider supporting the project by
                    
18 * making a donation at: http://www.jqplot.com/donate.php .
                    
19 *
                    
19 *
                    
20 * sprintf functions contained in jqplot.sprintf.js by Ash Searle:
                    
21 *
                    
23 *     author Ash Searle
                    
24 *     http://hexmen.com/blog/2007/03/printf-sprintf/
                    
25 *     http://hexmen.com/js/sprintf.js
                    
56 */
                    
57(function(d){d.jqplot.eventListenerHooks.push(["jqplotMouseMove",f]);d.jqplot.Highlighter=function(h){this.show=d.jqplot.config.enablePlugins;this.markerRenderer=new d.jqplot.MarkerRenderer({shadow:false});this.showMarker=true;this.lineWidthAdjust=2.5;this.sizeAdjust=5;this.showTooltip=true;this.tooltipLocation="nw";this.fadeTooltip=true;this.tooltipFadeSpeed="fast";this.tooltipOffset=2;this.tooltipAxes="both";this.tooltipSeparator=", ";this.tooltipContentEditor=null;this.useAxesFormatters=true;this.tooltipFormatString="%.5P";this.formatString=null;this.yvalues=1;this.bringSeriesToFront=false;this._tooltipElem;this.isHighlighting=false;this.currentNeighbor=null;d.extend(true,this,h)};var b=["nw","n","ne","e","se","s","sw","w"];var e={nw:0,n:1,ne:2,e:3,se:4,s:5,sw:6,w:7};var c=["se","s","sw","w","nw","n","ne","e"];d.jqplot.Highlighter.init=function(k,j,i){var h=i||{};this.plugins.highlighter=new d.jqplot.Highlighter(h.highlighter)};d.jqplot.Highlighter.parseOptions=function(i,h){this.showHighlight=true};d.jqplot.Highlighter.postPlotDraw=function(){if(this.plugins.highlighter&&this.plugins.highlighter.highlightCanvas){this.plugins.highlighter.highlightCanvas.resetCanvas();this.plugins.highlighter.highlightCanvas=null}if(this.plugins.highlighter&&this.plugins.highlighter._tooltipElem){this.plugins.highlighter._tooltipElem.emptyForce();this.plugins.highlighter._tooltipElem=null}this.plugins.highlighter.highlightCanvas=new d.jqplot.GenericCanvas();this.eventCanvas._elem.before(this.plugins.highlighter.highlightCanvas.createElement(this._gridPadding,"jqplot-highlight-canvas",this._plotDimensions,this));this.plugins.highlighter.highlightCanvas.setContext();var h=document.createElement("div");this.plugins.highlighter._tooltipElem=d(h);h=null;this.plugins.highlighter._tooltipElem.addClass("jqplot-highlighter-tooltip");this.plugins.highlighter._tooltipElem.css({position:"absolute",display:"none"});this.eventCanvas._elem.before(this.plugins.highlighter._tooltipElem)};d.jqplot.preInitHooks.push(d.jqplot.Highlighter.init);d.jqplot.preParseSeriesOptionsHooks.push(d.jqplot.Highlighter.parseOptions);d.jqplot.postDrawHooks.push(d.jqplot.Highlighter.postPlotDraw);function a(m,o){var j=m.plugins.highlighter;var p=m.series[o.seriesIndex];var h=p.markerRenderer;var i=j.markerRenderer;i.style=h.style;i.lineWidth=h.lineWidth+j.lineWidthAdjust;i.size=h.size+j.sizeAdjust;var l=d.jqplot.getColorComponents(h.color);var n=[l[0],l[1],l[2]];var k=(l[3]>=0.6)?l[3]*0.6:l[3]*(2-l[3]);i.color="rgba("+n[0]+","+n[1]+","+n[2]+","+k+")";i.init();i.draw(p.gridData[o.pointIndex][0],p.gridData[o.pointIndex][1],j.highlightCanvas._ctx)}function g(A,q,m){var k=A.plugins.highlighter;var D=k._tooltipElem;var r=q.highlighter||{};var t=d.extend(true,{},k,r);if(t.useAxesFormatters){var w=q._xaxis._ticks[0].formatter;var h=q._yaxis._ticks[0].formatter;var E=q._xaxis._ticks[0].formatString;var s=q._yaxis._ticks[0].formatString;var z;var u=w(E,m.data[0]);var l=[];for(var B=1;B<t.yvalues+1;B++){l.push(h(s,m.data[B]))}if(typeof t.formatString==="string"){switch(t.tooltipAxes){case"both":case"xy":l.unshift(u);l.unshift(t.formatString);z=d.jqplot.sprintf.apply(d.jqplot.sprintf,l);break;case"yx":l.push(u);l.unshift(t.formatString);z=d.jqplot.sprintf.apply(d.jqplot.sprintf,l);break;case"x":z=d.jqplot.sprintf.apply(d.jqplot.sprintf,[t.formatString,u]);break;case"y":l.unshift(t.formatString);z=d.jqplot.sprintf.apply(d.jqplot.sprintf,l);break;default:l.unshift(u);l.unshift(t.formatString);z=d.jqplot.sprintf.apply(d.jqplot.sprintf,l);break}}else{switch(t.tooltipAxes){case"both":case"xy":z=u;for(var B=0;B<l.length;B++){z+=t.tooltipSeparator+l[B]}break;case"yx":z="";for(var B=0;B<l.length;B++){z+=l[B]+t.tooltipSeparator}z+=u;break;case"x":z=u;break;case"y":z=l.join(t.tooltipSeparator);break;default:z=u;for(var B=0;B<l.length;B++){z+=t.tooltipSeparator+l[B]}break}}}else{var z;if(typeof t.formatString==="string"){z=d.jqplot.sprintf.apply(d.jqplot.sprintf,[t.formatString].concat(m.data))}else{if(t.tooltipAxes=="both"||t.tooltipAxes=="xy"){z=d.jqplot.sprintf(t.tooltipFormatString,m.data[0])+t.tooltipSeparator+d.jqplot.sprintf(t.tooltipFormatString,m.data[1])}else{if(t.tooltipAxes=="yx"){z=d.jqplot.sprintf(t.tooltipFormatString,m.data[1])+t.tooltipSeparator+d.jqplot.sprintf(t.tooltipFormatString,m.data[0])}else{if(t.tooltipAxes=="x"){z=d.jqplot.sprintf(t.tooltipFormatString,m.data[0])}else{if(t.tooltipAxes=="y"){z=d.jqplot.sprintf(t.tooltipFormatString,m.data[1])}}}}}}if(d.isFunction(t.tooltipContentEditor)){z=t.tooltipContentEditor(z,m.seriesIndex,m.pointIndex,A)}D.html(z);var C={x:m.gridData[0],y:m.gridData[1]};var v=0;var j=0.707;if(q.markerRenderer.show==true){v=(q.markerRenderer.size+t.sizeAdjust)/2}var o=b;if(q.fillToZero&&q.fill&&m.data[1]<0){o=c}switch(o[e[t.tooltipLocation]]){case"nw":var p=C.x+A._gridPadding.left-D.outerWidth(true)-t.tooltipOffset-j*v;var n=C.y+A._gridPadding.top-t.tooltipOffset-D.outerHeight(true)-j*v;break;case"n":var p=C.x+A._gridPadding.left-D.outerWidth(true)/2;var n=C.y+A._gridPadding.top-t.tooltipOffset-D.outerHeight(true)-v;break;case"ne":var p=C.x+A._gridPadding.left+t.tooltipOffset+j*v;var n=C.y+A._gridPadding.top-t.tooltipOffset-D.outerHeight(true)-j*v;break;case"e":var p=C.x+A._gridPadding.left+t.tooltipOffset+v;var n=C.y+A._gridPadding.top-D.outerHeight(true)/2;break;case"se":var p=C.x+A._gridPadding.left+t.tooltipOffset+j*v;var n=C.y+A._gridPadding.top+t.tooltipOffset+j*v;break;case"s":var p=C.x+A._gridPadding.left-D.outerWidth(true)/2;var n=C.y+A._gridPadding.top+t.tooltipOffset+v;break;case"sw":var p=C.x+A._gridPadding.left-D.outerWidth(true)-t.tooltipOffset-j*v;var n=C.y+A._gridPadding.top+t.tooltipOffset+j*v;break;case"w":var p=C.x+A._gridPadding.left-D.outerWidth(true)-t.tooltipOffset-v;var n=C.y+A._gridPadding.top-D.outerHeight(true)/2;break;default:var p=C.x+A._gridPadding.left-D.outerWidth(true)-t.tooltipOffset-j*v;var n=C.y+A._gridPadding.top-t.tooltipOffset-D.outerHeight(true)-j*v;break}D.css("left",p);D.css("top",n);if(t.fadeTooltip){D.stop(true,true).fadeIn(t.tooltipFadeSpeed)}else{D.show()}D=null}function f(k,j,n,m,l){var h=l.plugins.highlighter;var o=l.plugins.cursor;if(h.show){if(m==null&&h.isHighlighting){var i=h.highlightCanvas._ctx;i.clearRect(0,0,i.canvas.width,i.canvas.height);if(h.fadeTooltip){h._tooltipElem.fadeOut(h.tooltipFadeSpeed)}else{h._tooltipElem.hide()}if(h.bringSeriesToFront){l.restorePreviousSeriesOrder()}h.isHighlighting=false;h.currentNeighbor=null;i=null}else{if(m!=null&&l.series[m.seriesIndex].showHighlight&&!h.isHighlighting){h.isHighlighting=true;h.currentNeighbor=m;if(h.showMarker){a(l,m)}if(h.showTooltip&&(!o||!o._zoom.started)){g(l,l.series[m.seriesIndex],m)}if(h.bringSeriesToFront){l.moveSeriesToFront(m.seriesIndex)}}else{if(m!=null&&h.isHighlighting&&h.currentNeighbor!=m){if(l.series[m.seriesIndex].showHighlight){var i=h.highlightCanvas._ctx;i.clearRect(0,0,i.canvas.width,i.canvas.height);h.isHighlighting=true;h.currentNeighbor=m;if(h.showMarker){a(l,m)}if(h.showTooltip&&(!o||!o._zoom.started)){g(l,l.series[m.seriesIndex],m)}if(h.bringSeriesToFront){l.moveSeriesToFront(m.seriesIndex)}}}}}}}})(jQuery);
                    
                
author-template.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | 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
                    
                
shipping.php https://gitlab.com/reclamare/mao | PHP | 268 lines
                    
1<?php
                    
2class ControllerApiShipping extends Controller {
                    
74					if (($custom_field['location'] == 'address') && $custom_field['required'] && empty($this->request->post['custom_field'][$custom_field['custom_field_id']])) {
                    
75						$json['error']['custom_field' . $custom_field['custom_field_id']] = sprintf($this->language->get('error_custom_field'), $custom_field['name']);
                    
76					}
                    
                
menus-sync.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 272 lines
                    
63                    <tr>
                    
64                        <th scope="row" class="check-column"><input type="checkbox" name="sync[menu_translation][<?php echo $menu_id ?>][<?php echo $language ?>]" value="<?php echo esc_attr( $name ) ?>"/></th>
                    
65                        <td><?php echo $lang_details[ 'display_name' ]; ?></td>
                    
154									?>
                    
155									<input type="text" name="sync[menu_translations][<?php echo $menu_id ?>][<?php echo $l[ 'code' ] ?>]" class="icl_msync_add" value="<?php
                    
156									echo esc_attr( $menu[ 'name' ] ) . ' - ' . $l[ 'display_name' ] ?>"/>
                    
163									?>
                    
164									<input type="hidden" name="sync[menu_options][<?php echo $menu_id ?>][<?php echo $l[ 'code' ] ?>][auto_add]" value="<?php echo esc_attr( $menu[ 'translations' ][ $l[ 'code' ] ][ 'auto_add' ] ); ?>"/>
                    
165								<?php
                    
184				?>
                    
185				<input id="icl_msync_sync" type="submit" class="button-primary" value="<?php _e( 'Sync', 'sitepress' ); ?>"<?php if ( !$need_sync ): ?> disabled="disabled"<?php endif; ?> />
                    
186				&nbsp;&nbsp;
                    
195				?>
                    
196				<input id="icl_msync_sync" type="submit" class="button-primary" value="<?php _e( 'Nothing Sync', 'sitepress' ); ?>"<?php if ( !$need_sync ): ?> disabled="disabled"<?php endif; ?> />
                    
197			<?php
                    
                
order_status.php https://gitlab.com/shapcy/opencart | PHP | 380 lines
                    
1<?php
                    
2class ControllerLocalisationOrderStatus extends Controller {
                    
246
                    
247		$data['results'] = sprintf($this->language->get('text_pagination'), ($order_status_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($order_status_total - $this->config->get('config_limit_admin'))) ? $order_status_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $order_status_total, ceil($order_status_total / $this->config->get('config_limit_admin')));
                    
248
                    
367			if ($store_total) {
                    
368				$this->error['warning'] = sprintf($this->language->get('error_store'), $store_total);
                    
369			}
                    
373			if ($order_total) {
                    
374				$this->error['warning'] = sprintf($this->language->get('error_order'), $order_total);
                    
375			}
                    
                
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 )
                    
                
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	}
                    
                
SelectableAssociationTrait.php https://gitlab.com/ViniciusP/project-games | 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                );
                    
                
ms-load.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 254 lines
                    
1<?php
                    
2/**
                    
32 * manually, define <code>WP_PLUGIN_DIR</code> and <code>WP_PLUGIN_URL</code>
                    
33 * in wp-config.php.
                    
34 *
                    
49		if ( ! validate_file( $plugin ) // $plugin must validate as file
                    
50			&& '.php' == substr( $plugin, -4 ) // $plugin must end with '.php'
                    
51			&& file_exists( WP_PLUGIN_DIR . '/' . $plugin ) // $plugin must exist
                    
65 * To change the default message when a blog does not pass the check,
                    
66 * use the wp-content/blog-deleted.php, blog-inactive.php and
                    
67 * blog-suspended.php drop-ins.
                    
84		if ( file_exists( WP_CONTENT_DIR . '/blog-deleted.php' ) )
                    
85			return WP_CONTENT_DIR . '/blog-deleted.php';
                    
86		else
                    
90	if ( '2' == $current_blog->deleted ) {
                    
91		if ( file_exists( WP_CONTENT_DIR . '/blog-inactive.php' ) )
                    
92			return WP_CONTENT_DIR . '/blog-inactive.php';
                    
                
Translator.php https://gitlab.com/techniconline/kmc | PHP | 440 lines
                    
1<?php
                    
2
                    
334
                    
335                $fallbackContent .= sprintf(<<<EOF
                    
336\$catalogue%s = new MessageCatalogue('%s', %s);
                    
350
                    
351            $content = sprintf(<<<EOF
                    
352<?php
                    
377    {
                    
378        return $this->cacheDir . '/catalogue.' . $locale . '.' . sha1(serialize($this->fallbackLocales)) . '.php';
                    
379    }
                    
387                if (!isset($this->loaders[$resource[0]])) {
                    
388                    throw new \RuntimeException(sprintf('The "%s" translation loader is not registered.', $resource[0]));
                    
389                }
                    
436        if (1 !== preg_match('/^[a-z0-9@_\\.\\-]*$/i', $locale)) {
                    
437            throw new \InvalidArgumentException(sprintf('Invalid "%s" locale.', $locale));
                    
438        }
                    
                
BakeShell.php https://gitlab.com/ViniciusP/project-games | PHP | 317 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         0.1.0
                    
12 * @since         0.1.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
27 *
                    
28 * Bake is CakePHP's code generation script, which can help you kickstart
                    
29 * application development by writing fully functional skeleton controllers,
                    
31 *
                    
32 * @link http://book.cakephp.org/3.0/en/console-and-shells/code-generation-with-bake.html
                    
33 */
                    
                
about.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 243 lines
                    
49	<div class="wrap about-wrap">
                    
50		<h1><?php printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version ); ?></h1>
                    
51
                    
51
                    
52		<p class="about-text"><?php printf( __( 'Thank you for updating to the latest version. WordPress %s changes a lot behind the scenes to make your WordPress experience even better!' ), $display_version ); ?></p>
                    
53		<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
                    
55		<h2 class="nav-tab-wrapper wp-clearfix">
                    
56			<a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What&#8217;s New' ); ?></a>
                    
57			<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
                    
57			<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
                    
58			<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
                    
59		</h2>
                    
200			<?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
                    
201				<a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>">
                    
202					<?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' ); ?>
                    
                
return_status.php https://gitlab.com/reclamare/mao | PHP | 375 lines
                    
1<?php
                    
2class ControllerLocalisationReturnStatus extends Controller {
                    
246
                    
247		$data['results'] = sprintf($this->language->get('text_pagination'), ($return_status_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($return_status_total - $this->config->get('config_limit_admin'))) ? $return_status_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $return_status_total, ceil($return_status_total / $this->config->get('config_limit_admin')));
                    
248
                    
362			if ($return_total) {
                    
363				$this->error['warning'] = sprintf($this->language->get('error_return'), $return_total);
                    
364			}
                    
368			if ($return_total) {
                    
369				$this->error['warning'] = sprintf($this->language->get('error_return'), $return_total);
                    
370			}
                    
                
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">
                    
                
change_item.class.php https://gitlab.com/OnBlox/OnBlox-Template | PHP | 340 lines
                    
1<?php
                    
2/*
                    
69
                    
70      // Well, if I remember my PHP: empty(0) == true ...
                    
71      if (empty($input['changes_id']) || ($input['changes_id'] == 0)) {
                    
218                   || empty($data["name"])) {
                    
219                  $linkname = sprintf(__('%1$s (%2$s)'), $linkname, $data["id"]);
                    
220               }
                    
231                  echo "<td class='center top' rowspan='$nb'>".
                    
232                         ($nb>1 ? sprintf(__('%1$s: %2$s'), $itemname, $nb) : $itemname)."</td>";
                    
233               }
                    
                
itnSend.php https://gitlab.com/blue-media/online-payments-php | PHP | 302 lines
                    
120
                    
121    printf('<div class="checkbox"><label for="%1$s" class="control-label"><input type="checkbox" name="%1$s" id="%1$s" value="1">%1$s %2$d</label></div>', 'sendRequest', $data['sendRequest']);
                    
122
                    
196
                    
197            printf('<pre><strong>XML RAW:</strong> %s</pre>', PHP_EOL . page_itn_check($itnXmlEsc));
                    
198            printf('<pre><strong>XML to JSON:</strong> %s</pre>', PHP_EOL . json_encode($itnXmlEsc));
                    
205
                    
206        printf('<pre><strong>XML FORMATED:</strong> %s</pre>', PHP_EOL . htmlspecialchars($itnXmlFormated, ENT_SUBSTITUTE));
                    
207
                    
224            $xmlReader->close();
                    
225            printf('<pre><strong>DATA PARSED:</strong> %s</pre>', PHP_EOL . var_export($itnXmlData, 1));
                    
226        }
                    
273
                    
274    printf('<pre><strong>curl request:</strong>%s curl -I --request POST --data "%s" %s</pre>', PHP_EOL, $requestDataString, $requestUrl);
                    
275
                    
                
TranslationDebugCommand.php https://gitlab.com/matijabelec/bigpandadev | PHP | 268 lines
                    
1<?php
                    
2
                    
59
                    
60  <info>php %command.full_name% en AcmeDemoBundle</info>
                    
61
                    
63
                    
64  <info>php %command.full_name% --domain=messages en AcmeDemoBundle</info>
                    
65
                    
67
                    
68  <info>php %command.full_name% --only-missing en AcmeDemoBundle</info>
                    
69
                    
71
                    
72  <info>php %command.full_name% --only-unused en AcmeDemoBundle</info>
                    
73
                    
75
                    
76  <info>php %command.full_name% en</info>
                    
77
                    
                
Matcher.php https://gitlab.com/karora/awl | PHP | 308 lines
                    
40 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
41 * @link       http://github.com/sebastianbergmann/phpunit-mock-objects
                    
42 * @since      File available since Release 1.0.0
                    
58 * @version    Release: @package_version@
                    
59 * @link       http://github.com/sebastianbergmann/phpunit-mock-objects
                    
60 * @since      Class available since Release 1.0.0
                    
61 */
                    
62class PHPUnit_Framework_MockObject_Matcher implements PHPUnit_Framework_MockObject_Matcher_Invocation
                    
63{
                    
79    /**
                    
80     * @var PHPUnit_Framework_MockObject_Matcher_MethodName
                    
81     */
                    
178
                    
179        catch (PHPUnit_Framework_ExpectationFailedException $e) {
                    
180            throw new PHPUnit_Framework_ExpectationFailedException(
                    
                
mysql.dbi.lib.php https://gitlab.com/ctheilman92/Aging-In-Place | 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
                    
                
class-wc-api-webhooks.php https://gitlab.com/webkod3r/tripolis | PHP | 462 lines
                    
1<?php
                    
2/**
                    
168			if ( ! isset( $data['webhook'] ) ) {
                    
169				throw new WC_API_Exception( 'woocommerce_api_missing_webhook_data', sprintf( __( 'No %1$s data specified to create %1$s', 'woocommerce' ), 'webhook' ), 400 );
                    
170			}
                    
196				'post_password' => strlen( ( $password = uniqid( 'webhook_' ) ) ) > 20 ? substr( $password, 0, 20 ) : $password,
                    
197				'post_title'    => ! empty( $data['name'] ) ? $data['name'] : sprintf( __( 'Webhook created on %s', 'woocommerce' ), strftime( _x( '%b %d, %Y @ %I:%M %p', 'Webhook created on date parsed by strftime', 'woocommerce' ) ) ),
                    
198			), $data, $this );
                    
202			if ( is_wp_error( $webhook_id ) || ! $webhook_id ) {
                    
203				throw new WC_API_Exception( 'woocommerce_api_cannot_create_webhook', sprintf( __( 'Cannot create webhook: %s', 'woocommerce' ), is_wp_error( $webhook_id ) ? implode( ', ', $webhook_id->get_error_messages() ) : '0' ), 500 );
                    
204			}
                    
244			if ( ! isset( $data['webhook'] ) ) {
                    
245				throw new WC_API_Exception( 'woocommerce_api_missing_webhook_data', sprintf( __( 'No %1$s data specified to edit %1$s', 'woocommerce' ), 'webhook' ), 400 );
                    
246			}
                    
                
lt.inc.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 316 lines
                    
1<?php
                    
2$translations = array(
                    
16	'No extension' => 'Nėra plėtiio',
                    
17	'None of the supported PHP extensions (%s) are available.' => 'Nėra nei vieno iš palaikomų PHP plėtinių (%s).',
                    
18	'Session support must be enabled.' => 'Sesijų palaikymas turi būti įjungtas.',
                    
19	'Session expired, please login again.' => 'Sesijos galiojimas baigėsi. Prisijunkite iš naujo.',
                    
20	'%s version: %s through PHP extension %s' => '%s versija: %s per PHP plėtinį %s',
                    
21	'Refresh' => 'Atnaujinti',
                    
51	'Show only errors' => 'Rodyti tik klaidas',
                    
52	// sprintf() format for time of the command
                    
53	'%.3f s' => '%.3f s',
                    
                
TextDescriptor.php https://gitlab.com/aleksbenmaza/PPE_NEW | PHP | 320 lines
                    
1<?php
                    
2
                    
36        if (null !== $argument->getDefault() && (!is_array($argument->getDefault()) || count($argument->getDefault()))) {
                    
37            $default = sprintf('<comment> [default: %s]</comment>', $this->formatDefaultValue($argument->getDefault()));
                    
38        } else {
                    
44
                    
45        $this->writeText(sprintf('  <info>%s</info>  %s%s%s',
                    
46            $argument->getName(),
                    
59        if ($option->acceptValue() && null !== $option->getDefault() && (!is_array($option->getDefault()) || count($option->getDefault()))) {
                    
60            $default = sprintf('<comment> [default: %s]</comment>', $this->formatDefaultValue($option->getDefault()));
                    
61        } else {
                    
74        $totalWidth = isset($options['total_width']) ? $options['total_width'] : $this->calculateTotalWidthForOptions(array($option));
                    
75        $synopsis = sprintf('%s%s',
                    
76            $option->getShortcut() ? sprintf('-%s, ', $option->getShortcut()) : '    ',
                    
76            $option->getShortcut() ? sprintf('-%s, ', $option->getShortcut()) : '    ',
                    
77            sprintf('--%s%s', $option->getName(), $value)
                    
78        );
                    
                
CategoryRepositoryTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 277 lines
                    
1<?php
                    
2/**
                    
21    /**
                    
22     * @magentoApiDataFixture Magento/Catalog/_files/category_backend.php
                    
23     */
                    
81     *
                    
82     * @magentoApiDataFixture Magento/Catalog/Model/Category/_files/service_category_create.php
                    
83     */
                    
92                $result[$fieldName],
                    
93                sprintf('"%s" field value is invalid', $fieldName)
                    
94            );
                    
100    /**
                    
101     * @magentoApiDataFixture Magento/Catalog/_files/category.php
                    
102     */
                    
153    /**
                    
154     * @magentoApiDataFixture Magento/Catalog/_files/category.php
                    
155     */
                    
                
GraphvizDumper.php https://gitlab.com/leoplanxxi/dr7-web-buap-2016 | PHP | 302 lines
                    
1<?php
                    
2
                    
99
                    
100            $code .= sprintf("  node_%s [label=\"%s\\n%s\\n\", shape=%s%s];\n", $this->dotize($id), $id.($aliases ? ' ('.implode(', ', $aliases).')' : ''), $node['class'], $this->options['node']['shape'], $this->addAttributes($node['attributes']));
                    
101        }
                    
115            foreach ($edges as $edge) {
                    
116                $code .= sprintf("  node_%s -> node_%s [label=\"%s\" style=\"%s\"];\n", $this->dotize($id), $this->dotize($edge['to']), $edge['name'], $edge['required'] ? 'filled' : 'dashed');
                    
117            }
                    
220    {
                    
221        return sprintf("digraph sc {\n  %s\n  node [%s];\n  edge [%s];\n\n",
                    
222            $this->addOptions($this->options['graph']),
                    
248        foreach ($attributes as $k => $v) {
                    
249            $code[] = sprintf('%s="%s"', $k, $v);
                    
250        }
                    
265        foreach ($options as $k => $v) {
                    
266            $code[] = sprintf('%s="%s"', $k, $v);
                    
267        }
                    
                
PhpTransliteration.php https://gitlab.com/leoplanxxi/dr7-web-buap-2016 | PHP | 288 lines
                    
24 * transliteration character tables are searched (see
                    
25 * PhpTransliteration::readGenericData()). If looking up the character in the
                    
26 * generic table results in a NULL value, or an illegal character is
                    
28 */
                    
29class PhpTransliteration implements TransliterationInterface {
                    
30
                    
47   * set up as needed in PhpTransliteration::replace() by calling
                    
48   * PhpTransliteration::readLanguageOverrides().
                    
49   *
                    
58   * whose values are an array of transliterations for each lower-two bytes
                    
59   * character code. This is set up as needed in PhpTransliteration::replace()
                    
60   * by calling PhpTransliteration::readGenericData().
                    
273    // Figure out the file name.
                    
274    $file = $this->dataDirectory . '/x' . sprintf('%02x', $bank) . '.php';
                    
275
                    
                
AbstractRememberMeServices.php https://gitlab.com/Marwamimo/Crowdrise_Web | PHP | 312 lines
                    
1<?php
                    
2
                    
249
                    
250        throw new UnsupportedUserException(sprintf('There is no user provider that supports class "%s".', $class));
                    
251    }
                    
284        if (null !== $this->logger) {
                    
285            $this->logger->debug(sprintf('Clearing remember-me cookie "%s"', $this->options['name']));
                    
286        }
                    
306        if (null === $parameter && null !== $this->logger) {
                    
307            $this->logger->debug(sprintf('Did not send remember-me cookie (remember-me parameter "%s" was not sent).', $this->options['remember_me_parameter']));
                    
308        }
                    
                
index.markdown https://gitlab.com/orvi2014/phpjs | Markdown | 281 lines
                    
23  //        note: found in 'str' corresponding to the appropriate conversion specification in 'format'
                    
24  //        note: I am unclear on how WS is to be handled here because documentation seems to me to contradict PHP behavior
                    
25  //   example 1: sscanf('SN/2350001', 'SN/%d');
                    
29  //   returns 2: 1
                    
30  //   example 3: sscanf("10--20", "%2$d--%1$d"); // Must escape '$' in PHP, but not JS
                    
31  //   returns 3: [20, 10]
                    
152          case 'G':
                    
153            // Not supported in PHP sscanf; shorter of %E and %f
                    
154            // Irrelevant to input conversion
                    
268
                    
269Please note that php.js uses JavaScript objects as substitutes for PHP arrays, they are 
                    
270the closest match to this hashtable-like data structure. 
                    
271
                    
272Please also note that php.js offers community built functions and goes by the 
                    
273[McDonald's Theory](https://medium.com/what-i-learned-building/9216e1c9da7d). We'll put online 
                    
                
Attendees_Table.php https://gitlab.com/ezgonzalez/integral | PHP | 496 lines
                    
1<?php
                    
2
                    
3if ( ! class_exists( 'WP_List_Table' ) ) {
                    
4	require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
                    
5}
                    
138	public function column_cb( $item ) {
                    
139		return sprintf( '<input type="checkbox" name="%1$s[]" value="%2$s" />', esc_attr( $this->_args['singular'] ), esc_attr( $item['attendee_id'] . '|' . $item['provider'] ) );
                    
140	}
                    
152		if ( empty( $item['order_id_link'] ) ) {
                    
153			$item['order_id_link'] = sprintf( '<a class="row-title" href="%s">%s</a>', esc_url( get_edit_post_link( $item['order_id'], true ) ), esc_html( $item['order_id'] ) );
                    
154		}
                    
176		if ( $warning ) {
                    
177			$icon = sprintf( "<span class='warning'><img src='%s'/></span> ", esc_url( Tribe__Tickets__Main::instance()->plugin_url . 'src/resources/images/warning.png' ) );
                    
178		}
                    
202		<div class="event-tickets-ticket-name">
                    
203			<?php echo esc_html( $item['ticket'] ); ?>
                    
204		</div>
                    
                
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,
                    
                
Connection.php https://gitlab.com/daveson/lacitypatterns | PHP | 538 lines
                    
1<?php
                    
2
                    
177    {
                    
178        $message = sprintf(
                    
179            '%s:uri=%s&ip=%s&port=%s',
                    
253
                    
254            $this->log(sprintf(
                    
255                'Handshake successful: %s:%d (%s) connected to %s',
                    
458    {
                    
459        $this->manager->log(sprintf(
                    
460            '%s: %s:%d (%s): %s',
                    
                
eventpergame.php https://gitlab.com/julienv/joomleague | PHP | 337 lines
                    
1<?php
                    
2/**
                    
3 * @copyright	Copyright (C) 2006-2014 joomleague.at. All rights reserved.
                    
4 * @license		GNU/GPL, see LICENSE.php
                    
5 * Joomla! is free software. This version may have been modified pursuant
                    
8 * other free or open source software licenses.
                    
9 * See COPYRIGHT.php for copyright notices and details.
                    
10 */
                    
14
                    
15require_once(JLG_PATH_ADMIN.DS.'statistics'.DS.'base.php');
                    
16
                    
45		if (!count($event_ids)) {
                    
46			JError::raiseWarning(0, JText::sprintf('STAT %s/%s WRONG CONFIGURATION', $this->_name, $this->id));
                    
47			return(array(0));
                    
65		if (!count($event_ids)) {
                    
66			JError::raiseWarning(0, JText::sprintf('STAT %s/%s WRONG CONFIGURATION', $this->_name, $this->id));
                    
67			return(array(0));
                    
                
attachment_types.php https://gitlab.com/Conors99/ppm-1.8 | PHP | 360 lines
                    
1<?php
                    
2/**
                    
16
                    
17$page->add_breadcrumb_item($lang->attachment_types, "index.php?module=config-attachment_types");
                    
18
                    
73			flash_message($lang->success_attachment_type_created, 'success');
                    
74			admin_redirect("index.php?module=config-attachment_types");
                    
75		}
                    
82		'title' => $lang->attachment_types,
                    
83		'link' => "index.php?module=config-attachment_types"
                    
84	);
                    
87		'title' => $lang->add_new_attachment_type,
                    
88		'link' => "index.php?module=config-attachment_types&amp;action=add",
                    
89		'description' => $lang->add_attachment_type_desc
                    
93
                    
94	$form = new Form("index.php?module=config-attachment_types&amp;action=add", "post", "add");
                    
95
                    
                
media-template.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 467 lines
                    
1<?php
                    
2/**
                    
30	<script type="text/html" id="tmpl-media-modal">
                    
31		<div class="<?php echo $class; ?>">
                    
32			<a class="media-modal-close" href="#" title="<?php esc_attr_e('Close'); ?>"><span class="media-modal-icon"></span></a>
                    
39		<div class="uploader-window-content">
                    
40			<h3><?php _e( 'Drop files to upload' ); ?></h3>
                    
41		</div>
                    
98					?>
                    
99					<p class="big-file-warning"><?php printf( __( 'Your browser has some limitations uploading large files with the multi-file uploader. Please use the <a href="%1$s" target="%2$s">browser uploader</a> for files over 100MB.' ),
                    
100						$browser_uploader, '_blank' ); ?></p>
                    
328						if ( size ) { #>
                    
329							<option value="<?php echo esc_attr( $value ); ?>" <?php selected( $value, 'full' ); ?>>
                    
330								<?php echo esc_html( $name ); ?> &ndash; {{ size.width }} &times; {{ size.height }}
                    
363				<?php for ( $i = 1; $i <= 9; $i++ ) : ?>
                    
364					<option value="<?php echo esc_attr( $i ); ?>" <?php selected( $i, 3 ); ?>>
                    
365						<?php echo esc_html( $i ); ?>
                    
                
pcmd_lm_warp.cxx https://gitlab.com/plastimatch/plastimatch | C++ | 354 lines
                    
139    // symbolType, see
                    
140    //http://www.slicer.org/slicerWiki/index.php/Modules:Fiducials-Documentation-3.4
                    
141    symbol =which_cluster+2; 
                    
151
                    
152    fprintf (fp, 
                    
153	"# Fiducial List file %s\n"
                    
176	if (clust_id[i] == which_cluster)
                    
177	    fprintf (fp, "p-%03d-c%02d,%f,%f,%f,1,1\n", 
                    
178		i, clust_id[i],
                    
250{
                    
251    printf ("Usage: plastimatch %s [options]\n", argv[1]);
                    
252    parser->print_options (std::cout);
                    
                
ApacheMatcherDumper.php https://gitlab.com/judielsm/Handora | PHP | 278 lines
                    
1<?php
                    
2
                    
13
                    
14@trigger_error('The '.__NAMESPACE__.'\ApacheMatcherDumper class is deprecated since version 2.5 and will be removed in 3.0. It\'s hard to replicate the behaviour of the PHP implementation and the performance gains are minimal.', E_USER_DEPRECATED);
                    
15
                    
22 *             The performance gains are minimal and it's very hard to replicate
                    
23 *             the behavior of PHP implementation.
                    
24 *
                    
34     *
                    
35     *  * script_name: The script name (app.php by default)
                    
36     *  * base_uri:    The base URI ("" by default)
                    
46        $options = array_merge(array(
                    
47            'script_name' => 'app.php',
                    
48            'base_uri' => '',
                    
59            if ($route->getCondition()) {
                    
60                throw new \LogicException(sprintf('Unable to dump the routes for Apache as route "%s" has a condition.', $name));
                    
61            }
                    
                
meta-box.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 479 lines
                    
1<?php
                    
2// Prevent loading this file directly
                    
46		 *
                    
47		 * @see demo/demo.php file for details
                    
48		 *
                    
217			// Container
                    
218			printf(
                    
219				'<div class="rwmb-meta-box" data-autosave="%s">',
                    
                
Service.php https://gitlab.com/gregtyka/SiberianCMS | 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)));
                    
                
class-wp-filesystem-ssh2.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 391 lines
                    
1<?php
                    
2/**
                    
8 *
                    
9 * Complie libssh2 (Note: Only 0.14 is officaly working with PHP 5.2.6+ right now, But many users have found the latest versions work)
                    
10 *
                    
22 * Copy the ssh.so file it creates to your PHP Module Directory.
                    
23 * Open up your PHP.INI file and look for where extensions are placed.
                    
24 * Add in your PHP.ini file: extension=ssh2.so
                    
26 * Restart Apache!
                    
27 * Check phpinfo() streams to confirm that: ssh2.shell, ssh2.exec, ssh2.tunnel, ssh2.scp, ssh2.sftp  exist.
                    
28 *
                    
53		if ( !function_exists('stream_get_contents') ) {
                    
54			$this->errors->add('ssh2_php_requirement', __('The ssh2 PHP extension is available, however, we require the PHP5 function <code>stream_get_contents()</code>'));
                    
55			return false;
                    
200			return $this->run_command(sprintf('chmod %o %s', $mode, escapeshellarg($file)), true);
                    
201		return $this->run_command(sprintf('chmod -R %o %s', $mode, escapeshellarg($file)), true);
                    
202	}
                    
                
class-wp-http-curl.php https://gitlab.com/webkod3r/tripolis | PHP | 385 lines
                    
1<?php
                    
2/**
                    
116		if ( $is_local ) {
                    
117			/** This filter is documented in wp-includes/class-wp-http-streams.php */
                    
118			$ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify );
                    
119		} elseif ( ! $is_local ) {
                    
120			/** This filter is documented in wp-includes/class-wp-http-streams.php */
                    
121			$ssl_verify = apply_filters( 'https_ssl_verify', $ssl_verify );
                    
147		curl_setopt( $handle, CURLOPT_FOLLOWLOCATION, false );
                    
148		if ( defined( 'CURLOPT_PROTOCOLS' ) ) // PHP 5.2.10 / cURL 7.19.4
                    
149			curl_setopt( $handle, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS );
                    
188			if ( ! $this->stream_handle )
                    
189				return new WP_Error( 'http_request_failed', sprintf( __( 'Could not open handle for fopen() to %s' ), $r['filename'] ) );
                    
190		} else {
                    
                
AbstractCommand.php https://gitlab.com/ViniciusP/project-games | PHP | 341 lines
                    
1<?php
                    
2/**
                    
50     */
                    
51    const DEFAULT_MIGRATION_TEMPLATE = '/../../Migration/Migration.template.php.dist';
                    
52
                    
55     */
                    
56    const DEFAULT_SEED_TEMPLATE = '/../../Seed/Seed.template.php.dist';
                    
57
                    
199
                    
200        $possibleConfigFiles = array('phinx.php', 'phinx.json', 'phinx.yml');
                    
201        foreach ($possibleConfigFiles as $configFile) {
                    
233                    break;
                    
234                case 'php':
                    
235                    $parser = 'php';
                    
246                break;
                    
247            case 'php':
                    
248                $config = Config::fromPhp($configFilePath);
                    
                
Yaml.php https://gitlab.com/yousafsyed/easternglamor | PHP | 415 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25#require_once 'Zend/Config.php';
                    
26
                    
101        if (!is_callable($yamlDecoder)) {
                    
102            #require_once 'Zend/Config/Exception.php';
                    
103            throw new Zend_Config_Exception('Invalid parameter to setYamlDecoder() - must be callable');
                    
133        if (empty($yaml)) {
                    
134            #require_once 'Zend/Config/Exception.php';
                    
135            throw new Zend_Config_Exception('Filename is not set');
                    
173        if ($this->_loadFileErrorStr !== null) {
                    
174            #require_once 'Zend/Config/Exception.php';
                    
175            throw new Zend_Config_Exception($this->_loadFileErrorStr);
                    
188            // decode failed
                    
189            #require_once 'Zend/Config/Exception.php';
                    
190            throw new Zend_Config_Exception("Error parsing YAML data");
                    
                
FormRenderer.php https://gitlab.com/cuza/Clinic_Recods | PHP | 309 lines
                    
1<?php
                    
2
                    
99        if (!$resource) {
                    
100            throw new LogicException(sprintf('No block "%s" found while rendering the form.', $blockName));
                    
101        }
                    
244        if (!$resource) {
                    
245            throw new LogicException(sprintf(
                    
246                'Unable to render the form as none of the following blocks exist: "%s".',
                    
                
Type.php https://gitlab.com/oytunistrator/92five | PHP | 303 lines
                    
36 *
                    
37 * @package    PHPUnit
                    
38 * @subpackage Util
                    
38 * @subpackage Util
                    
39 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2001-2014 Sebastian Bergmann <sebastian@phpunit.de>
                    
53 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
54 * @link       http://www.phpunit.de/
                    
55 * @since      Class available since Release 3.0.0
                    
159            // There seems to be no other way to check arrays for recursion
                    
160            // http://www.php.net/manual/en/language.types.array.php#73936
                    
161            preg_match_all('/\n            \[(\w+)\] => Array\s+\*RECURSION\*/', print_r($value, TRUE), $matches);
                    
218     * @return string
                    
219     * @see    PHPUnit_Util_Type::export
                    
220     */
                    
                
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;
                    
                
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
                    
                
XmlDriver.php https://gitlab.com/freebird/WebApp | PHP | 301 lines
                    
1<?php
                    
2
                    
44        if (!$elems = $elem->xpath("./class[@name = '".$name."']")) {
                    
45            throw new RuntimeException(sprintf('Could not find class %s inside XML element.', $name));
                    
46        }
                    
289                default:
                    
290                    throw new RuntimeException(sprintf('The type "%s" is not supported.', $method->attributes()->name));
                    
291            }
                    
                
class-terminus.php https://gitlab.com/Blueprint-Marketing/cli | PHP | 417 lines
                    
27    if(!$configurator) {
                    
28      $configurator = new Terminus\Configurator(TERMINUS_ROOT . '/php/config-spec.php');
                    
29    }
                    
146    if(!empty($params)) {
                    
147      $message = vsprintf($message, $params);
                    
148    }
                    
251      if(null === $value) {
                    
252        Terminus::error(sprintf('Invalid JSON: %s', $raw_value));
                    
253      }
                    
337
                    
338    $php_bin = self::get_php_binary();
                    
339
                    
348
                    
349    $full_command = "{$php_bin} {$script_path} {$command} {$args} {$assoc_args}";
                    
350
                    
                
Esi.php https://gitlab.com/judielsm/Handora | PHP | 296 lines
                    
1<?php
                    
2
                    
31    private $contentTypes;
                    
32    private $phpEscapeMap = array(
                    
33        array('<?', '<%', '<s', '<S'),
                    
33        array('<?', '<%', '<s', '<S'),
                    
34        array('<?php echo "<?"; ?>', '<?php echo "<%"; ?>', '<?php echo "<s"; ?>', '<?php echo "<S"; ?>'),
                    
35    );
                    
219        $chunks = preg_split('#<esi\:include\s+(.*?)\s*(?:/|</esi\:include)>#', $content, -1, PREG_SPLIT_DELIM_CAPTURE);
                    
220        $chunks[0] = str_replace($this->phpEscapeMap[0], $this->phpEscapeMap[1], $chunks[0]);
                    
221
                    
233
                    
234            $chunks[$i] = sprintf('<?php echo $this->surrogate->handle($this, %s, %s, %s) ?>'."\n",
                    
235                var_export($options['src'], true),
                    
239            ++$i;
                    
240            $chunks[$i] = str_replace($this->phpEscapeMap[0], $this->phpEscapeMap[1], $chunks[$i]);
                    
241            ++$i;
                    
                
install.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 249 lines
                    
20	<h2>Error: PHP is not running</h2>
                    
21	<p>WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.</p>
                    
22</body>
                    
91?>
                    
92<p class="message"><?php printf( __( '<strong>ERROR</strong>: %s' ), $error ); ?></p>
                    
93<?php } ?>
                    
149$mysql_version  = $wpdb->db_version();
                    
150$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
                    
151$mysql_compat   = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' );
                    
153if ( !$mysql_compat && !$php_compat )
                    
154	$compat = sprintf( __('You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version );
                    
155elseif ( !$php_compat )
                    
155elseif ( !$php_compat )
                    
156	$compat = sprintf( __('You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version );
                    
157elseif ( !$mysql_compat )
                    
                
upload.php https://gitlab.com/plusplusminus/aevitas | PHP | 245 lines
                    
1<?php
                    
2
                    
7/**
                    
8 * upload.php
                    
9 *
                    
115		if ( $_FILES['file']['size'] > 0 && $_FILES['file']['size'] > $max_upload_size_in_bytes ) {
                    
116			die( '{"status" : "error", "error" : {"code": 104, "message": "' . sprintf( __( 'File exceeds size limit. Maximum file size: %dMB', 'gravityforms' ), $max_upload_size_in_mb ) . '"}}' );
                    
117		}
                    
126				GFCommon::log_debug( "GFAsyncUpload::upload(): The uploaded file type is not allowed: {$file_name}" );
                    
127				die( '{"status" : "error", "error" : {"code": 104, "message": "' . sprintf( __( 'The uploaded file type is not allowed. Must be one of the following: %s', 'gravityforms' ), strtolower( $field['allowedExtensions'] ) ) . '"}}' );
                    
128			}
                    
195				// Read binary input stream and append it to temp file
                    
196				$in = @fopen( 'php://input', 'rb' );
                    
197
                    
234
                    
235		GFCommon::log_debug( sprintf( 'GFAsyncUpload::upload(): File upload complete. temp_filename: %s  uploaded_filename: %s ', $tmp_file_name, $uploaded_filename ) );
                    
236
                    
                
CustomOptions.php https://gitlab.com/axeltizon/magento-demopoweraccess | PHP | 495 lines
                    
1<?php
                    
2/**
                    
259        /** @var SimpleElement $option */
                    
260        $option = $option->find(sprintf($this->optionLabel, $count), Locator::SELECTOR_XPATH);
                    
261        while ($option->isVisible()) {
                    
263            ++$count;
                    
264            $option = $option->find(sprintf($this->optionLabel, $count), Locator::SELECTOR_XPATH);
                    
265        }
                    
335        $count = $firstOption;
                    
336        $selectOption = $element->find(sprintf($this->option, $count), Locator::SELECTOR_XPATH);
                    
337        $index = 0;
                    
341            ++$count;
                    
342            $selectOption = $element->find(sprintf($this->option, $count), Locator::SELECTOR_XPATH);
                    
343            $index++;
                    
374    {
                    
375        $note = $option->find(sprintf($this->noteByNumber, $number), Locator::SELECTOR_XPATH);
                    
376        return $note->isVisible() ? $note->getText() : null;
                    
                
ArmDisassembler.c https://gitlab.com/envieidoc/Clover | C | 457 lines
                    
8  which accompanies this distribution.  The full text of the license may be found at
                    
9  http://opensource.org/licenses/bsd-license.php
                    
10
                    
154  @param  OpCodePtr   Pointer to pointer of ARM instruction to disassemble.
                    
155  @param  Buf         Buffer to sprintf disassembly into.
                    
156  @param  Size        Size of Buf in bytes.
                    
                
DomQuery37.php https://gitlab.com/yousafsyed/easternglamor | PHP | 434 lines
                    
159        if (!in_array($assertType, $this->_assertTypes)) {
                    
160            #require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
                    
161            throw new Zend_Test_PHPUnit_Constraint_Exception(sprintf('Invalid assertion type "%s" provided to %s constraint', $assertType, __CLASS__));
                    
173                if (!$match) {
                    
174                    #require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
                    
175                    throw new Zend_Test_PHPUnit_Constraint_Exception('No content provided against which to match');
                    
182                if (!$match) {
                    
183                    #require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
                    
184                    throw new Zend_Test_PHPUnit_Constraint_Exception('No pattern provided against which to match');
                    
193                if ($match === false) {
                    
194                    #require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
                    
195                    throw new Zend_Test_PHPUnit_Constraint_Exception('No count provided against which to compare');
                    
226    {
                    
227        #require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
                    
228        switch ($this->_assertType) {
                    
                
Chooser_Meta_Box.php https://gitlab.com/ezgonzalez/integral | PHP | 306 lines
                    
122
                    
123		?><script type="text/template" id="tmpl-tribe-select-<?php echo esc_attr( $this->post_type ); ?>"><?php $this->single_post_dropdown( 0 ); ?></script><?php
                    
124
                    
150				$this->move_handle();
                    
151				?><label data-l10n-create-<?php echo esc_attr( $this->post_type ); ?>="<?php printf( esc_attr__( 'Create New %s', 'the-events-calendar' ), $this->singular_name ); ?>"><?php printf( esc_html__( 'Use Saved %s:', 'the-events-calendar' ), $this->singular_name ); ?></label>
                    
152			</td>
                    
179		<div class="edit-linked-post-link"><a
                    
180				<?php if ( empty( $linked_post_id ) ) { ?> style="display:none;"<?php } ?>
                    
181				data-admin-url="<?php echo esc_url( admin_url( 'post.php?action=edit&post=' ) ); ?>"
                    
182				href="<?php echo esc_url( admin_url( sprintf( 'post.php?action=edit&post=%s', $linked_post_id ) ) ); ?>"
                    
183				target="_blank"><?php printf( esc_html__( 'Edit %s', 'the-events-calendar' ), esc_html( $this->singular_name ) ); ?></a>
                    
184		</div>
                    
220			<tr>
                    
221				<td colspan="2"><a class="tribe-add-post" href="#"><?php echo esc_html( sprintf( __( 'Add another %s', 'the-events-calendar' ), $this->singular_name_lowercase ) ); ?></a></td>
                    
222			</tr>
                    
                
class-gsc-table.php https://gitlab.com/memuller.web/wp_site | PHP | 385 lines
                    
1<?php
                    
2/**
                    
6if ( ! class_exists( 'WP_List_Table' ) ) {
                    
7	require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
                    
8}
                    
162	protected function column_cb( $item ) {
                    
163		return sprintf(
                    
164			'<input type="checkbox" name="wpseo_crawl_issues[]" value="%s" />', $item['url']
                    
211
                    
212		return sprintf(
                    
213			'<span class="value">%1$s</span> %2$s',
                    
342
                    
343		require WPSEO_PATH . '/admin/google_search_console/views/gsc-create-redirect.php';
                    
344
                    
                
class.jetpack-xmlrpc-server.php https://gitlab.com/ibnukipa/cakra | PHP | 429 lines
                    
1<?php
                    
2
                    
97		if ( empty( $verify_secret ) ) {
                    
98			return $this->error( new Jetpack_Error( 'verify_secret_1_missing', sprintf( 'The required "%s" parameter is missing.', 'secret_1' ), 400 ) );
                    
99		} else if ( !is_string( $verify_secret ) ) {
                    
99		} else if ( !is_string( $verify_secret ) ) {
                    
100			return $this->error( new Jetpack_Error( 'verify_secret_1_malformed', sprintf( 'The required "%s" parameter is malformed.', 'secret_1' ), 400 ) );
                    
101		}
                    
162			}
                    
163			$message = sprintf( 'Jetpack: [%s] %s', $this->error->get_error_code(), $this->error->get_error_message() );
                    
164			return new IXR_Error( $code, $message );
                    
404		// needed?
                    
405		require_once ABSPATH . 'wp-admin/includes/admin.php';
                    
406
                    
406
                    
407		require_once JETPACK__PLUGIN_DIR . 'class.json-api.php';
                    
408		$api = WPCOM_JSON_API::init( $method, $url, $post_body );
                    
                
YamlFileLoader.php https://gitlab.com/leoplanxxi/dr7-web-buap-2016 | PHP | 421 lines
                    
1<?php
                    
2
                    
57            if (!is_array($content['parameters'])) {
                    
58                throw new InvalidArgumentException(sprintf('The "parameters" key should contain an array in %s. Check your YAML syntax.', $resource));
                    
59            }
                    
93        if (!is_array($content['imports'])) {
                    
94            throw new InvalidArgumentException(sprintf('The "imports" key should contain an array in %s. Check your YAML syntax.', $file));
                    
95        }
                    
98            if (!is_array($import)) {
                    
99                throw new InvalidArgumentException(sprintf('The values in the "imports" key should be arrays in %s. Check your YAML syntax.', $file));
                    
100            }
                    
119        if (!is_array($content['services'])) {
                    
120            throw new InvalidArgumentException(sprintf('The "services" key should contain an array in %s. Check your YAML syntax.', $file));
                    
121        }
                    
145        if (!is_array($service)) {
                    
146            throw new InvalidArgumentException(sprintf('A service definition must be an array or a string starting with "@" but %s found for service "%s" in %s. Check your YAML syntax.', gettype($service), $id, $file));
                    
147        }
                    
                
home.php https://gitlab.com/Etern4l/BitcoinDice | PHP | 84 lines
                    
22    <td>Total profit:</td>
                    
23    <td><b><?php $settings['t_player_profit']=(0-$settings['t_player_profit']); echo ($settings['t_player_profit']>=0)?'<span style="color: green;">+'.sprintf("%.8f",$settings['t_player_profit']).'</span>':'<span style="color: #d10000;">'.sprintf("%.8f",$settings['t_player_profit']).'</span>'; ?></b> <?php echo $settings['currency_sign']; ?></td>
                    
24  </tr>
                    
50    <td>Last hour</td>
                    
51    <td><?php $this_q=mysql_query("SELECT SUM(CASE WHEN `win_lose`=1 THEN (0-((`bet_amount`*`multiplier`)-`bet_amount`)) ELSE `bet_amount` END) AS `total_profit`,SUM(`bet_amount`) AS `total_wager` FROM `bets` WHERE `time`>NOW()-INTERVAL 1 HOUR"); $h_e_=mysql_fetch_array($this_q); $h_e_['h_e']=($h_e_['total_wager']!=0)?(($h_e_['total_profit']/$h_e_['total_wager'])*100):0; echo ($h_e_['h_e']>=0)?'<span style="color: green;">+'.sprintf("%.5f",$h_e_['h_e']).'%</span>':'<span style="color: #d10000;">'.sprintf("%.5f",$h_e_['h_e']).'%</span>'; ?></td>
                    
52    <td><?php $profit_=mysql_fetch_array(mysql_query("SELECT SUM(CASE WHEN `win_lose`=1 THEN ((`bet_amount`*`multiplier`)-`bet_amount`) ELSE (0-`bet_amount`) END) AS `profit` FROM `bets` WHERE `time`>NOW()-INTERVAL 1 HOUR")); echo ((0-$profit_['profit'])>=0)?'<span style="color: green;">+'.sprintf("%.8f",0-$profit_['profit']).'</span>':'<span style="color: #d10000;">'.sprintf("%.8f",0-$profit_['profit']).'</span>'; ?></td>
                    
56    <td><?php $this_q=mysql_query("SELECT SUM(CASE WHEN `win_lose`=1 THEN (0-((`bet_amount`*`multiplier`)-`bet_amount`)) ELSE `bet_amount` END) AS `total_profit`,SUM(`bet_amount`) AS `total_wager` FROM `bets` WHERE `time`>NOW()-INTERVAL 24 HOUR"); $h_e_=mysql_fetch_array($this_q); $h_e_['h_e']=($h_e_['total_wager']!=0)?(($h_e_['total_profit']/$h_e_['total_wager'])*100):0; echo ($h_e_['h_e']>=0)?'<span style="color: green;">+'.sprintf("%.5f",$h_e_['h_e']).'%</span>':'<span style="color: #d10000;">'.sprintf("%.5f",$h_e_['h_e']).'%</span>'; ?></td>
                    
57    <td><?php $profit_=mysql_fetch_array(mysql_query("SELECT SUM(CASE WHEN `win_lose`=1 THEN ((`bet_amount`*`multiplier`)-`bet_amount`) ELSE (0-`bet_amount`) END) AS `profit` FROM `bets` WHERE `time`>NOW()-INTERVAL 24 HOUR")); echo ((0-$profit_['profit'])>=0)?'<span style="color: green;">+'.sprintf("%.8f",0-$profit_['profit']).'</span>':'<span style="color: #d10000;">'.sprintf("%.8f",0-$profit_['profit']).'</span>'; ?></td>
                    
58  </tr>
                    
61    <td><?php $this_q=mysql_query("SELECT SUM(CASE WHEN `win_lose`=1 THEN (0-((`bet_amount`*`multiplier`)-`bet_amount`)) ELSE `bet_amount` END) AS `total_profit`,SUM(`bet_amount`) AS `total_wager` FROM `bets` WHERE `time`>NOW()-INTERVAL 7 DAY"); $h_e_=mysql_fetch_array($this_q); $h_e_['h_e']=($h_e_['total_wager']!=0)?(($h_e_['total_profit']/$h_e_['total_wager'])*100):0; echo ($h_e_['h_e']>=0)?'<span style="color: green;">+'.sprintf("%.5f",$h_e_['h_e']).'%</span>':'<span style="color: #d10000;">'.sprintf("%.5f",$h_e_['h_e']).'%</span>'; ?></td>
                    
62    <td><?php $profit_=mysql_fetch_array(mysql_query("SELECT SUM(CASE WHEN `win_lose`=1 THEN ((`bet_amount`*`multiplier`)-`bet_amount`) ELSE (0-`bet_amount`) END) AS `profit` FROM `bets` WHERE `time`>NOW()-INTERVAL 7 DAY")); echo ((0-$profit_['profit'])>=0)?'<span style="color: green;">+'.sprintf("%.8f",0-$profit_['profit']).'</span>':'<span style="color: #d10000;">'.sprintf("%.8f",0-$profit_['profit']).'</span>'; ?></td>
                    
63  </tr>
                    
66    <td><?php $this_q=mysql_query("SELECT SUM(CASE WHEN `win_lose`=1 THEN (0-((`bet_amount`*`multiplier`)-`bet_amount`)) ELSE `bet_amount` END) AS `total_profit`,SUM(`bet_amount`) AS `total_wager` FROM `bets` WHERE `time`>NOW()-INTERVAL 30 DAY"); $h_e_=mysql_fetch_array($this_q); $h_e_['h_e']=($h_e_['total_wager']!=0)?(($h_e_['total_profit']/$h_e_['total_wager'])*100):0; echo ($h_e_['h_e']>=0)?'<span style="color: green;">+'.sprintf("%.5f",$h_e_['h_e']).'%</span>':'<span style="color: #d10000;">'.sprintf("%.5f",$h_e_['h_e']).'%</span>'; ?></td>
                    
67    <td><?php $profit_=mysql_fetch_array(mysql_query("SELECT SUM(CASE WHEN `win_lose`=1 THEN ((`bet_amount`*`multiplier`)-`bet_amount`) ELSE (0-`bet_amount`) END) AS `profit` FROM `bets` WHERE `time`>NOW()-INTERVAL 30 DAY")); echo ((0-$profit_['profit'])>=0)?'<span style="color: green;">+'.sprintf("%.8f",0-$profit_['profit']).'</span>':'<span style="color: #d10000;">'.sprintf("%.8f",0-$profit_['profit']).'</span>'; ?></td>
                    
68  </tr>
                    
                
MultiselectgrouplistElement.php https://gitlab.com/axeltizon/magento-demopoweraccess | PHP | 327 lines
                    
1<?php
                    
2/**
                    
130    {
                    
131        $optionElement = $this->find(sprintf($this->uiOptionText, $option), Locator::SELECTOR_XPATH);
                    
132        if ($optionElement->isVisible()) {
                    
145            $optionIndent = $isOptgroup ? $this->indent : '';
                    
146            $optionElement = $context->find(sprintf($this->option, $optionIndent . $value), Locator::SELECTOR_XPATH);
                    
147            if ($optionElement->isVisible()) {
                    
175    {
                    
176        $optgroup = $context->find(sprintf($this->optgroupByLabel, $value), Locator::SELECTOR_XPATH);
                    
177        if (!$optgroup->isVisible()) {
                    
196        while (!$childOptgroup) {
                    
197            $optgroup = $context->find(sprintf($this->nextOptgroup, $count), Locator::SELECTOR_XPATH);
                    
198            if (!$optgroup->isVisible()) {
                    
202            $childOptgroup = $context->find(
                    
203                sprintf($this->childOptgroup, $count, $value),
                    
204                Locator::SELECTOR_XPATH
                    
                
common.js https://gitlab.com/ctheilman92/Aging-In-Place | JavaScript | 288 lines
                    
18 *
                    
19 * The content for this is normally loaded from Header.class.php or
                    
20 * Response.class.php and executed by ajax.js
                    
82        getUrlQuery: function () {
                    
83            return $.sprintf(
                    
84                '?%s&server=%s&db=%s&table=%s',
                    
96 *
                    
97 * The content for this is normally loaded from Header.class.php or
                    
98 * Response.class.php and executed by ajax.js
                    
134     * @param mixed url Undefined to refresh to the same page
                    
135     *                  String to go to a different page, e.g: 'index.php'
                    
136     *
                    
180            if (! url) {
                    
181                url = 'querywindow.php' + PMA_commonParams.getUrlQuery();
                    
182            }
                    
                
ValidatorBuilder.php https://gitlab.com/reasonat/test8 | PHP | 387 lines
                    
1<?php
                    
2
                    
323        if (!in_array($apiVersion, array(Validation::API_VERSION_2_4, Validation::API_VERSION_2_5, Validation::API_VERSION_2_5_BC))) {
                    
324            throw new InvalidArgumentException(sprintf('The requested API version is invalid: "%s"', $apiVersion));
                    
325        }
                    
                
product.class.php https://gitlab.com/leobelizquierdo/cabotsubmitter-wordpress | PHP | 273 lines
                    
1<?php if ( __FILE__ == $_SERVER['SCRIPT_FILENAME'] ) die( header( 'Location: /') );
                    
2
                    
21		if ( isset( self::$instance ) && self::$instance instanceof QSOT_Ticket_Product )
                    
22			throw new Exception( sprintf( __( 'There can only be one instance of the %s object at a time.', 'opentickets-community-edition' ), __CLASS__ ), 12000 );
                    
23
                    
229					$_product = $order->get_product_from_item($item);
                    
230					$template = QSOT_Templates::locate_woo_template( 'meta-boxes/views/html-order-item.php', 'admin' );
                    
231					if ( $template )
                    
236				case 'fee' :
                    
237					$template = QSOT_Templates::locate_woo_template( 'meta-boxes/views/html-order-fee.php', 'admin' );
                    
238					if ( $template )
                    
243				case 'shipping' :
                    
244					$template = QSOT_Templates::locate_woo_template( 'meta-boxes/views/html-order-shipping.php', 'admin' );
                    
245					if ( $template )
                    
250				case 'tax' :
                    
251					$template = QSOT_Templates::locate_woo_template( 'meta-boxes/views/html-order-tax.php', 'admin' );
                    
252					if ( $template )
                    
                
tcpdf_filters.php https://gitlab.com/staging06/myproject | PHP | 478 lines
                    
1<?php
                    
2//============================================================+
                    
2//============================================================+
                    
3// File name   : tcpdf_filters.php
                    
4// Version     : 1.0.000
                    
30//
                    
31// Description : This is a PHP class for decoding common PDF filters (PDF 32000-2008 - 7.4 Filters).
                    
32//
                    
36 * @file
                    
37 * This is a PHP class for decoding common PDF filters (PDF 32000-2008 - 7.4 Filters).<br>
                    
38 * @package com.tecnick.tcpdf
                    
44 * @class TCPDF_FILTERS
                    
45 * This is a PHP class for decoding common PDF filters (PDF 32000-2008 - 7.4 Filters).<br>
                    
46 * @package com.tecnick.tcpdf
                    
46 * @package com.tecnick.tcpdf
                    
47 * @brief This is a PHP class for decoding common PDF filters.
                    
48 * @version 1.0.000
                    
                
ext_string.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 346 lines
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
23#include "hphp/runtime/base/zend-string.h"
                    
24#include "hphp/runtime/base/zend-printf.h"
                    
25#include "hphp/runtime/base/bstring.h"
                    
27
                    
28namespace HPHP {
                    
29///////////////////////////////////////////////////////////////////////////////
                    
31
                    
32extern const HPHP::StaticString k_HPHP_TRIM_CHARLIST;
                    
33extern const int64_t k_STR_PAD_RIGHT;
                    
                
google_fonts.php https://gitlab.com/gregtyka/lfmawordpress | PHP | 489 lines
                    
1<?php
                    
2
                    
449
                    
450		$output = sprintf(
                    
451			'%s { font-family: "%s", %s; }',
                    
477			$query_args = array(
                    
478				'family' => sprintf( '%s:%s',
                    
479					str_replace( ' ', '+', $et_gf_font_name ),
                    
                
Yaml.php https://gitlab.com/fabiorf/curso-zend1-aula1 | PHP | 415 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Yaml.php 25169 2012-12-22 12:23:11Z rob $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Config.php';
                    
26
                    
101        if (!is_callable($yamlDecoder)) {
                    
102            require_once 'Zend/Config/Exception.php';
                    
103            throw new Zend_Config_Exception('Invalid parameter to setYamlDecoder() - must be callable');
                    
133        if (empty($yaml)) {
                    
134            require_once 'Zend/Config/Exception.php';
                    
135            throw new Zend_Config_Exception('Filename is not set');
                    
173        if ($this->_loadFileErrorStr !== null) {
                    
174            require_once 'Zend/Config/Exception.php';
                    
175            throw new Zend_Config_Exception($this->_loadFileErrorStr);
                    
                
tbl_operations.js https://gitlab.com/luyxtran264/myproject | JavaScript | 304 lines
                    
15/**
                    
16 * jQuery coding for 'Table operations'.  Used on tbl_operations.php
                    
17 * Attach Ajax Event handlers for Table operations
                    
206        var question = PMA_messages.strDropTableStrongWarning + ' ';
                    
207        question += PMA_sprintf(
                    
208            PMA_messages.strDoYouReally,
                    
242        var question = PMA_messages.strDropTableStrongWarning + ' ';
                    
243        question += PMA_sprintf(
                    
244            PMA_messages.strDoYouReally,
                    
275        var question = PMA_messages.strTruncateTableStrongWarning + ' ';
                    
276        question += PMA_sprintf(
                    
277            PMA_messages.strDoYouReally,
                    
                
Behavior.php https://gitlab.com/vannh/portal_training | PHP | 399 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 */
                    
45 * Behaviors can listen to any events fired on a Table. By default
                    
46 * CakePHP provides a number of lifecycle events your behaviors can
                    
47 * listen to:
                    
228                if (!is_callable([$this, $method])) {
                    
229                    throw new Exception(sprintf('The method %s is not callable on class %s', $method, get_class($this)));
                    
230                }
                    
                
bookmark-template.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 256 lines
                    
1<?php
                    
2/**
                    
81				$title .= ' (';
                    
82				$title .= sprintf(__('Last updated: %s'), date(get_option('links_updated_date_format'), $bookmark->link_updated_f + (get_option('gmt_offset') * 3600)));
                    
83				$title .= ')';
                    
                
XmlFileLoader.php https://gitlab.com/fiesta-framework/Documentation | PHP | 256 lines
                    
1<?php
                    
2
                    
90            default:
                    
91                throw new \InvalidArgumentException(sprintf('Unknown tag "%s" used in file "%s". Expected "route" or "import".', $node->localName, $path));
                    
92        }
                    
116        if ('' === ($id = $node->getAttribute('id')) || (!$node->hasAttribute('pattern') && !$node->hasAttribute('path'))) {
                    
117            throw new \InvalidArgumentException(sprintf('The <route> element in file "%s" must have an "id" and a "path" attribute.', $path));
                    
118        }
                    
121            if ($node->hasAttribute('path')) {
                    
122                throw new \InvalidArgumentException(sprintf('The <route> element in file "%s" cannot define both a "path" and a "pattern" attribute. Use only "path".', $path));
                    
123            }
                    
150        if ('' === $resource = $node->getAttribute('resource')) {
                    
151            throw new \InvalidArgumentException(sprintf('The <import> element in file "%s" must have a "resource" attribute.', $path));
                    
152        }
                    
238                default:
                    
239                    throw new \InvalidArgumentException(sprintf('Unknown tag "%s" used in file "%s". Expected "default", "requirement" or "option".', $n->localName, $path));
                    
240            }
                    
                
realex_remote.php https://gitlab.com/shapcy/opencart | PHP | 348 lines
                    
1<?php
                    
2class ControllerPaymentRealexRemote extends Controller {
                    
45				'text'  => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)),
                    
46				'value' => sprintf('%02d', $i)
                    
47			);
                    
                
DynamicItem.php https://gitlab.com/billyprice1/MFAdmin | PHP | 450 lines
                    
1<?php namespace App\Helpers\Core;
                    
2
                    
111			{
                    
112				$this->ui->showWarning(sprintf($this->dynamic_item_options['item_not_found']['message'], $id));
                    
113
                    
132
                    
133		if ( file_exists($form_html_view_filepath . '.php') )
                    
134		{
                    
170
                    
171				if ( !file_exists($tab_view_filepath . '.php') )
                    
172				{
                    
172				{
                    
173					throw new \Exception($called_class . ' is missing tab file "' . $tab_view_filename . '.php".');
                    
174				}
                    
304
                    
305				$success_message = sprintf($this->dynamic_item_options['save']['edit']['success']['message'], $item_to_edit->$dynamic_item_title_column);
                    
306
                    
                
comment.php https://gitlab.com/Gashler/sg | PHP | 333 lines
                    
81
                    
82	include( ABSPATH . 'wp-admin/edit-form-comment.php' );
                    
83
                    
159?>
                    
160<p><strong><?php _e('Caution:'); ?></strong> <?php echo $caution_msg; ?></p>
                    
161
                    
175<th scope="row"><?php _e('URL'); ?></th>
                    
176<td><a href="<?php echo $comment->comment_author_url; ?>"><?php echo $comment->comment_author_url; ?></a></td>
                    
177</tr>
                    
224	<?php submit_button( $button, 'primary', 'submit', false ); ?>
                    
225	<a href="<?php echo admin_url('edit-comments.php'); ?>" class="button-cancel"><?php esc_attr_e( 'Cancel' ); ?></a></td>
                    
226</p>
                    
254	if ( !$comment = get_comment($comment_id) )
                    
255		comment_footer_die( __( 'Invalid comment ID.' ) . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'edit-comments.php') );
                    
256	if ( !current_user_can( 'edit_comment', $comment->comment_ID ) )
                    
                
LzmaCompress.c https://gitlab.com/envieidoc/Clover | C | 382 lines
                    
11  which accompanies this distribution.  The full text of the license may be found at
                    
12  http://opensource.org/licenses/bsd-license.php
                    
13
                    
85{
                    
86  sprintf(buffer + strlen(buffer), "\nError code: %x\n", (unsigned)val);
                    
87  return 1;
                    
96{
                    
97  sprintf (buffer, "%s Version %d.%d %s ", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
                    
98}
                    
343    if (!mQuietMode) {
                    
344      printf("Encoding\n");
                    
345    }
                    
350    if (!mQuietMode) {
                    
351      printf("Decoding\n");
                    
352    }
                    
                
YamlFileLoader.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 236 lines
                    
1<?php
                    
2
                    
48        if (!stream_is_local($path)) {
                    
49            throw new \InvalidArgumentException(sprintf('This is not a local file "%s".', $path));
                    
50        }
                    
52        if (!file_exists($path)) {
                    
53            throw new \InvalidArgumentException(sprintf('File "%s" not found.', $path));
                    
54        }
                    
62        } catch (ParseException $e) {
                    
63            throw new \InvalidArgumentException(sprintf('The file "%s" does not contain valid YAML.', $path), 0, $e);
                    
64        }
                    
75        if (!is_array($parsedConfig)) {
                    
76            throw new \InvalidArgumentException(sprintf('The file "%s" must contain a YAML array.', $path));
                    
77        }
                    
81                if (isset($config['path'])) {
                    
82                    throw new \InvalidArgumentException(sprintf('The file "%s" cannot define both a "path" and a "pattern" attribute. Use only "path".', $path));
                    
83                }
                    
                
admin-post-navigation.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 290 lines
                    
1<?php
                    
2/**
                    
72	public static function init() {
                    
73		add_action( 'load-post.php', array( __CLASS__, 'register_post_page_hooks' ) );
                    
74	}
                    
76	/**
                    
77	 * Filters/actions to hook on the admin post.php page.
                    
78	 *
                    
116		if ( in_array( $post->post_status, $post_statuses ) )
                    
117			add_meta_box( 'adminpostnav', sprintf( __( '%s Navigation', 'admin-post-navigation' ), ucfirst( $post_type ) ), array( __CLASS__, 'add_meta_box' ), $post_type, 'side', 'core' );
                    
118	}
                    
136			$display .= '<a href="' . get_edit_post_link( $prev->ID ) . '" id="admin-post-nav-prev" title="' .
                    
137				esc_attr( sprintf( __( 'Previous %1$s: %2$s', 'admin-post-navigation' ), $context, $post_title ) ) .
                    
138				'" class="admin-post-nav-prev add-new-h2">' . self::$prev_text . '</a>';
                    
147				'" id="admin-post-nav-next" title="' .
                    
148				esc_attr( sprintf( __( 'Next %1$s: %2$s', 'admin-post-navigation' ), $context, $post_title ) ).
                    
149				'" class="admin-post-nav-next add-new-h2">' . self::$next_text . '</a>';
                    
                
voucher_theme.php https://gitlab.com/shapcy/opencart | PHP | 402 lines
                    
1<?php
                    
2class ControllerSaleVoucherTheme extends Controller {
                    
246
                    
247		$data['results'] = sprintf($this->language->get('text_pagination'), ($voucher_theme_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($voucher_theme_total - $this->config->get('config_limit_admin'))) ? $voucher_theme_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $voucher_theme_total, ceil($voucher_theme_total / $this->config->get('config_limit_admin')));
                    
248
                    
395			if ($voucher_total) {
                    
396				$this->error['warning'] = sprintf($this->language->get('error_voucher'), $voucher_total);
                    
397			}
                    
                
ErrorHandler.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 301 lines
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://cakephp.org CakePHP(tm) Project
                    
16 * @package       Cake.Error
                    
17 * @since         CakePHP(tm) v 0.10.5.1732
                    
18 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
19 */
                    
73 *
                    
74 * Error handler also provides the built in features for handling php errors (trigger_error).
                    
75 * While in debug mode, errors will be output to the screen using debugger. While in production mode,
                    
105 * @return void
                    
106 * @see http://php.net/manual/en/function.set-exception-handler.php
                    
107 */
                    
                
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.
                    
                
about.php https://gitlab.com/alexandre_cottin/ruralis | PHP | 243 lines
                    
39	<div class="wrap about-wrap">
                    
40		<h1><?php printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version ); ?></h1>
                    
41
                    
41
                    
42		<div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s makes your site more connected and responsive.' ), $display_version ); ?></div>
                    
43		<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
                    
52			<h3><?php echo _n( 'Maintenance and Security Release', 'Maintenance and Security Releases', 2 ); ?></h3>
                    
53			<p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
                    
54				'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 17 ), '4.4.2', number_format_i18n( 17 ) ); ?>
                    
56			</p>
                    
57			<p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
                    
58				'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 52 ), '4.4.1', number_format_i18n( 52 ) ); ?>
                    
58				'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 52 ), '4.4.1', number_format_i18n( 52 ) ); ?>
                    
59				<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'https://codex.wordpress.org/Version_4.4.1' ); ?>
                    
60			</p>
                    
                
menu.php https://gitlab.com/thisishayat/itv-2016 | PHP | 279 lines
                    
24
                    
25$submenu[ 'index.php' ][0] = array( __('Home'), 'read', 'index.php' );
                    
26
                    
40		$cap = 'update_themes';
                    
41	$submenu[ 'index.php' ][10] = array( sprintf( __('Updates %s'), "<span class='update-plugins count-{$update_data['counts']['total']}' title='{$update_data['title']}'><span class='update-count'>" . number_format_i18n($update_data['counts']['total']) . "</span></span>" ), $cap, 'update-core.php');
                    
42	unset( $cap );
                    
216if ( current_user_can('list_users') ) {
                    
217	$_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php.
                    
218	$submenu['users.php'][5] = array(__('All Users'), 'list_users', 'users.php');
                    
237	$submenu['tools.php'][5] = array( __('Available Tools'), 'edit_posts', 'tools.php' );
                    
238	$submenu['tools.php'][10] = array( __('Import'), 'import', 'import.php' );
                    
239	$submenu['tools.php'][15] = array( __('Export'), 'export', 'export.php' );
                    
262$_wp_real_parent_file['wpmu-admin.php'] = 'tools.php';
                    
263$_wp_real_parent_file['ms-admin.php'] = 'tools.php';
                    
264
                    
                
makeXMLForOneService.php https://gitlab.com/florianocomercial/centreon | PHP | 287 lines
                    
1<?php
                    
2/*
                    
38 */
                    
39require_once realpath(dirname(__FILE__) . "/../../../../../../config/centreon.config.php");
                    
40
                    
40
                    
41include_once $centreon_path . "www/class/centreonUtils.class.php";
                    
42
                    
45 */
                    
46include_once _CENTREON_PATH_ . "www/class/centreonXMLBGRequest.class.php";
                    
47include_once _CENTREON_PATH_ . "www/class/centreonLang.class.php";
                    
135    if (strlen($outputLines[0]) > 100) {
                    
136	    $pluginShortOuput = sprintf("%.100s", $outputLines[0])."...";
                    
137    } else {
                    
                
class.jetpack-landing-page.php https://gitlab.com/thisishayat/itv-2016 | PHP | 299 lines
                    
1<?php
                    
2include_once( 'class.jetpack-admin-page.php' );
                    
25			$new_count_i18n = number_format_i18n( $new_modules_count );
                    
26			$span_title     = esc_attr( sprintf( _n( 'One New Jetpack Module', '%s New Jetpack Modules', $new_modules_count, 'jetpack' ), $new_count_i18n ) );
                    
27			$format         = _x( 'Jetpack %s', 'The menu item label with a new module count as %s', 'jetpack' );
                    
28			$update_markup  = "<span class='update-plugins count-{$new_modules_count}' title='$span_title'><span class='update-count'>$new_count_i18n</span></span>";
                    
29			$title          = sprintf( $format, $update_markup );
                    
30		}
                    
49		add_action( "admin_footer-$hook", apply_filters( 'jetpack_landing_page_js_templates_callback', array( $this, 'js_templates' ), $hook ) );
                    
50		/** This action is documented in class.jetpack.php */
                    
51		do_action( 'jetpack_admin_menu', $hook );
                    
144	function js_templates() {
                    
145		Jetpack::init()->load_view( 'admin/landing-page-templates.php' );
                    
146	}
                    
175		);
                    
176		Jetpack::init()->load_view( 'admin/admin-page.php', $data );
                    
177	}
                    
                
mysql.php https://gitlab.com/nacridan/Nacridan | PHP | 372 lines
                    
1<?php
                    
2
                    
10if (!function_exists('mysql_connect'))
                    
11	exit('This PHP environment doesn\'t have MySQL support built in. MySQL support is required if you want to use a MySQL database to run this forum. Consult the PHP documentation for further assistance.');
                    
12
                    
80			if (defined('PUN_SHOW_QUERIES'))
                    
81				$this->saved_queries[] = array($sql, sprintf('%.5f', get_microtime() - $q_start));
                    
82
                    
                
 

Source

Language