PageRenderTime 1932ms queryTime 744ms sortTime 134ms getByIdsTime 199ms findMatchingLines 182ms

100+ results results for 'php printf repo:scottsweb/null' (1932 ms)

Not the results you expected?
Command.php https://bitbucket.org/maatao/estrutura-b-sica-doctrine.git | PHP | 512 lines
                    
1<?php
                    
2
                    
378            $name,
                    
379            $_SERVER['PHP_SELF'].' '.$name
                    
380        );
                    
415    {
                    
416        return sprintf('%s %s', $this->getFullName(), $this->definition->getSynopsis());
                    
417    }
                    
490        $commandXML->appendChild($usageXML = $dom->createElement('usage'));
                    
491        $usageXML->appendChild($dom->createTextNode(sprintf($this->getSynopsis(), '')));
                    
492
                    
                
internal-link-aliases.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 374 lines
                    
1<?php
                    
2
                    
34		if (suwp::permalink_mode() != SUWP_PRETTY_PERMALINKS)
                    
35			$this->print_message('error', sprintf(__('Link Mask Generator won&#8217;t work with default or &#8220;pathinfo&#8221; permalinks. Please change your <a href="%s">permalink structure</a> to enable this module&#8217;s functionality.', 'seo-ultimate'), 'options-permalink.php'));
                    
36		
                    
                
TextArea.php https://gitlab.com/ElvisAns/tiki | PHP | 377 lines
                    
1<?php
                    
2
                    
112        $wikilib = TikiLib::lib('wiki');
                    
113        $wikilib->update_wikicontent_relations($value, 'trackeritemfield', sprintf("%d:%d", $itemId, $fieldId));
                    
114        $wikilib->update_wikicontent_links($value, 'trackeritemfield', sprintf("%d:%d", $itemId, $fieldId));
                    
                
class-cp-user-relationships.php https://gitlab.com/clusterpress/clusterpress | PHP | 543 lines
                    
1<?php
                    
2/**
                    
401		$sql = array(
                    
402			'select' => sprintf( 'SELECT %s FROM %s', esc_sql( $column ), $this->table ),
                    
403			'where'  => array(),
                    
466		$sql = array(
                    
467			'select' => sprintf( 'SELECT count( %s ) FROM %s', esc_sql( $column ), $this->table ),
                    
468			'where'  => array(),
                    
477		if ( $group_by && in_array( $group_by, array( 'user_id', 'primary_id', 'secondary_id' ) ) ) {
                    
478			$sql['select']  = sprintf( 'SELECT DISTINCT %s, count( %s ) as count FROM %s', esc_sql( $group_by ), esc_sql( $column ), $this->table );
                    
479			$sql['groupby'] = sprintf( 'GROUP BY %s', esc_sql( $group_by ) );
                    
531		$sql = array(
                    
532			'select' => sprintf( 'DELETE FROM %s', $this->table ),
                    
533		);
                    
                
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 {
                    
                
fa.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 313 lines
                    
1<?php
                    
2$translations = array(
                    
16	'No extension' => 'پسوند نامعتبر',
                    
17	'None of the supported PHP extensions (%s) are available.' => ' پسوند پی اچ پی در دسترس نیست (%s) تعداد',
                    
18	'Session support must be enabled.' => 'پشتيباني از نشست بايستي فعال گردد',
                    
19	'Session expired, please login again.' => 'نشست پايان يافته، لطفا دوباره وارد شويد',
                    
20	'%s version: %s through PHP extension %s' => 'نسخه %s : %s توسعه پی اچ پی %s',
                    
21	'Refresh' => 'بازيابي',
                    
51	'Show only errors' => 'فقط نمايش خطاها',
                    
52	// sprintf() format for time of the command
                    
53	'%.3f s' => '%.3f s',
                    
                
length_class.php https://bitbucket.org/elena_dyavolova/omf.git | PHP | 412 lines
                    
1<?php
                    
2class ControllerLocalisationLengthClass extends Controller {
                    
400			if ($product_total) {
                    
401				$this->error['warning'] = sprintf($this->language->get('error_product'), $product_total);
                    
402			}
                    
                
XmlFileLoader.php https://github.com/thewiredman/symfony.git | PHP | 402 lines
                    
1<?php
                    
2
                    
73
                    
74        $this->container->getParameterBag()->add($xml->parameters->getArgumentsAsPhp('parameter'));
                    
75    }
                    
84            $this->currentDir = dirname($file);
                    
85            $this->import((string) $import['resource'], (Boolean) $import->getAttributeAsPhp('ignore-errors'));
                    
86        }
                    
112                $method = 'set'.str_replace('-', '', $key);
                    
113                $definition->$method((string) $service->getAttributeAsPhp($key));
                    
114            }
                    
120
                    
121        $definition->setArguments($service->getArgumentsAsPhp('argument'));
                    
122
                    
137        foreach ($service->call as $call) {
                    
138            $definition->addMethodCall((string) $call['method'], $call->getArgumentsAsPhp('argument'));
                    
139        }
                    
                
link-manager.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 292 lines
                    
85<?php screen_icon(); ?>
                    
86<h2><?php echo esc_html( $title ); ?> <a href="link-add.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a> <?php
                    
87if ( !empty($_GET['s']) )
                    
195		$edit_link = get_edit_bookmark_link();
                    
196		?><tr id="link-<?php echo $link->link_id; ?>" valign="middle" <?php echo $style; ?>><?php
                    
197		foreach($link_columns as $column_name=>$column_display_name) {
                    
245				case 'rel':
                    
246					?><td <?php echo $attributes ?>><?php echo empty($link->link_rel) ? '<br />' : $link->link_rel; ?></td><?php
                    
247					break;
                    
248				case 'visible':
                    
249					?><td <?php echo $attributes ?>><?php echo $visible; ?></td><?php
                    
250					break;
                    
251				case 'rating':
                    
252 					?><td <?php echo $attributes ?>><?php echo $rating; ?></td><?php
                    
253					break;
                    
                
ListCommand.php https://gitlab.com/ealexis.t/trends | PHP | 278 lines
                    
1<?php
                    
2
                    
174            $names = array_map(array($this, 'formatItemName'), $items);
                    
175            $output->writeln(sprintf('<strong>%s</strong>: %s', $label, implode(', ', $names)));
                    
176        }
                    
196            $output->writeln('');
                    
197            $output->writeln(sprintf('<strong>%s:</strong>', $label));
                    
198
                    
220    {
                    
221        return sprintf('<%s>%s</%s>', $item['style'], OutputFormatter::escape($item['name']), $item['style']);
                    
222    }
                    
                
class-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			}
                    
                
PhpFormBuilder.php https://gitlab.com/em645jn/brochure | PHP | 539 lines
                    
1<?php
                    
2
                    
4
                    
5class PhpFormBuilder {
                    
6
                    
349							$slug = $this->_make_slug( $opt );
                    
350							$end .= sprintf(
                    
351								'<input type="%s" name="%s[]" value="%s" id="%s"',
                    
                
jqplot.pointLabels.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 362 lines
                    
8 * jqPlot is currently available for use in all personal or commercial projects 
                    
9 * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL 
                    
10 * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can 
                    
14 * know of any substantial use of jqPlot.  You can reach the author at: 
                    
15 * chris at jqplot dot com or see http://www.jqplot.com/info.php .
                    
16 *
                    
17 * If you are feeling kind and generous, consider supporting the project by
                    
18 * making a donation at: http://www.jqplot.com/donate.php .
                    
19 *
                    
19 *
                    
20 * sprintf functions contained in jqplot.sprintf.js by Ash Searle:
                    
21 *
                    
23 *     author Ash Searle
                    
24 *     http://hexmen.com/blog/2007/03/printf-sprintf/
                    
25 *     http://hexmen.com/js/sprintf.js
                    
                
cs.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 335 lines
                    
1<?php
                    
2$translations = array(
                    
18	'No extension' => 'Žádné rozšíření',
                    
19	'None of the supported PHP extensions (%s) are available.' => 'Není dostupné žádné z podporovaných PHP rozšíření (%s).',
                    
20	'Session support must be enabled.' => 'Session proměnné musí být povolené.',
                    
21	'Session expired, please login again.' => 'Session vypršela, přihlašte se prosím znovu.',
                    
22	'%s version: %s through PHP extension %s' => 'Verze %s: %s přes PHP rozšíření %s',
                    
23	'Refresh' => 'Obnovit',
                    
53	'Show only errors' => 'Zobrazit pouze chyby',
                    
54	// sprintf() format for time of the command
                    
55	'%.3f s' => '%.3f s',
                    
                
class-wp-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/juanito.abelo/nlmobile | 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);
                    
                
class-gf-field-checkbox.php https://gitlab.com/level-level/gravityforms | PHP | 380 lines
                    
1<?php
                    
2
                    
45
                    
46		return sprintf( "<div class='ginput_container ginput_container_checkbox'><ul class='gfield_checkbox' id='%s'>%s</ul></div>", esc_attr( $field_id ), $this->get_checkbox_choices( $value, $disabled_text, $form_id ) );
                    
47	}
                    
268			if ( $count < $total ) {
                    
269				$choices .= "<li class='gchoice_total'>" . sprintf( esc_html__( '%d of %d items shown. Edit field to view all', 'gravityforms' ), $count, $total ) . '</li>';
                    
270			}
                    
                
Attributes.php https://bitbucket.org/kdms/sh-magento.git | PHP | 381 lines
                    
1<?php
                    
2/**
                    
258        }
                    
259        return sprintf(Mage::helper('enterprise_targetrule')->__('Target Product ') . $format,
                    
260           $this->getAttributeName(),
                    
309
                    
310            return new Zend_Db_Expr(sprintf('(%s) > 0', $select->assemble()));
                    
311        }
                    
335            }
                    
336            $where = sprintf('(%s)', $where);
                    
337        } else if ($attribute->isScopeGlobal()) {
                    
350            $select = $resource->getReadConnection()->getIfNullSql($select);
                    
351            $where = sprintf('(%s) > 0', $select);
                    
352        } else { //scope store and website
                    
376
                    
377            $where  = sprintf('(%s) > 0', $select);
                    
378        }
                    
                
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)),
                    
                
AddressController.php https://bitbucket.org/enurkov/prestashop.git | PHP | 366 lines
                    
1<?php
                    
2/*
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/osl-3.0.php
                    
11* If you did not receive a copy of the license and are unable to
                    
22*  @copyright  2007-2012 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
30	public $guestAllowed = true;
                    
31	public $php_self = 'address';
                    
32	public $authRedirection = 'addresses';
                    
86						}
                    
87						Tools::redirect('index.php?controller=addresses');
                    
88					}
                    
94			else
                    
95				Tools::redirect('index.php?controller=addresses');
                    
96		}
                    
                
TraitUsageGenerator.php https://gitlab.com/yousafsyed/easternglamor | PHP | 353 lines
                    
1<?php
                    
2/**
                    
318            if ($this->classGenerator->hasMethod($alias['alias'])) {
                    
319                throw new Exception\RuntimeException(sprintf(
                    
320                    'Generation Error: Aliased method %s already exists on this class',
                    
                
Abstract.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 326 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
102    {
                    
103        $connection = sprintf('%s_%s', $this->_modulePrefix, $name);
                    
104        /** @var $resource Mage_Core_Model_Resource */
                    
                
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) {
                    
                
class.FixtureBuilder.php https://github.com/dagda/ThinkUp.git | PHP | 346 lines
                    
1<?php
                    
2/**
                    
101    private function connect() {
                    
102        $db_string = sprintf("mysql:dbname=%s;host=%s", $this->config->getValue('db_name'),
                    
103        $this->config->getValue('db_host'));
                    
193        }
                    
194        $sql .= sprintf(" (%s) VALUES", join(',', array_keys($this->columns) ));
                    
195        $values = array_values($this->columns);
                    
196        array_shift($values);
                    
197        $sql .= sprintf(" (?%s)", str_repeat(",?", count($values)));
                    
198        $stmt = self::$pdo->prepare($sql);
                    
                
notice.php https://gitlab.com/campus-academy/krowkaramel | PHP | 507 lines
                    
312            id="<?php echo esc_attr($this->notice_id); ?>" 
                    
313            class="notice wpmet-notice notice-<?php echo esc_attr($this->notice_id . ' ' .$this->class); ?> <?php echo (false === $this->dismissible ? '' : 'is-dismissible') ;?>"
                    
314
                    
318            <?php if(!empty($this->logo)):?>
                    
319                <img class="notice-logo" style="<?php echo esc_attr($this->logo_style); ?>" src="<?php echo esc_url($this->logo);?>" />
                    
320            <?php endif; ?>
                    
324                <?php if(empty($this->html)): ?>
                    
325                    <?php echo (empty($this->title) ? '' : sprintf('<div class="notice-main-title notice-vert-space">%s</div>', $this->title)); ?>
                    
326
                    
330
                    
331                    <?php if(!empty($this->buttons)): ?>
                    
332                        <div class="button-container notice-vert-space">
                    
333                            <?php foreach($this->buttons as $button): ?>
                    
334                                <a id="<?php echo (!isset($button['id']) ? '' : $button['id']); ?>" href="<?php echo esc_url($button['url']); ?>" class="wpmet-notice-button <?php echo esc_attr($button['class']); ?>">
                    
335                                    <?php if(!empty($button['icon'])) :?>
                    
                
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);
                    
                
class-itsec-core-admin.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 390 lines
                    
1<?php
                    
2
                    
111		echo '<p>' . __( 'BackupBuddy is the complete backup, restore and migration solution for your WordPress site. Schedule automated backups, store your backups safely off-site and restore your site quickly & easily.', 'better-wp-security' ) . '</p>';
                    
112		echo sprintf( '<p style="font-weight: bold; font-size: 1em;">%s<span style="display: block; text-align: center; font-size: 1.2em; background: #ebebeb; padding: .5em;">%s</span></p>', __( '25% off BackupBuddy with coupon code', 'better-wp-security' ), __( 'BACKUPPROTECT', 'better-wp-security' ) );
                    
113		echo '<a href="http://ithemes.com/better-backups" class="button-secondary" target="_blank">' . __( 'Get BackupBuddy', 'better-wp-security' ) . '</a>';
                    
129		echo '<a class="itsec-video-link" href="#" data-video-id="itsec_video"><img src="' . plugins_url( 'img/video.png', __FILE__ ) . '" /></a>';
                    
130		echo sprintf( '<p class="itsec-video-description">%s <a href="http://ithem.es/6y" target="_blank">%s</a> %s </p>', __( 'In this short video, we walk through', 'better-wp-security' ), __( 'how to get started securing your site', 'better-wp-security' ), __( 'with iThemes Security.', 'better-wp-security' ) );
                    
131		echo '<p class="itsec_video"><iframe src="//player.vimeo.com/video/89142424?title=0&amp;byline=0&amp;portrait=0" width="853" height="480" frameborder="0" ></iframe></p>';
                    
177				<div style="text-align: center;">
                    
178					<img src="<?php echo plugins_url( 'img/security-ebook.png', __FILE__ ) ?>" width="145"
                    
179					     height="187" alt="WordPress Security - A Pocket Guide">
                    
180				</div>
                    
181				<p><?php _e( 'Get tips for securing your site + the latest WordPress security updates, news and releases from iThemes.', 'better-wp-security' ); ?></p>
                    
182
                    
187				<label for="mce-EMAIL"
                    
188				       style="display: block;margin-bottom: 3px;"><?php _e( 'Email Address', 'better-wp-security' ); ?></label>
                    
189				<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL"
                    
                
voucher.php https://bitbucket.org/elena_dyavolova/omf.git | PHP | 263 lines
                    
1<?php 
                    
2class ControllerAccountVoucher extends Controller { 
                    
15			$this->session->data['vouchers'][mt_rand()] = array(
                    
16				'description'      => sprintf($this->language->get('text_for'), $this->currency->format($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency'))), $this->request->post['to_name']),
                    
17				'to_name'          => $this->request->post['to_name'],
                    
59		$this->data['entry_message'] = $this->language->get('entry_message');
                    
60		$this->data['entry_amount'] = sprintf($this->language->get('entry_amount'), $this->currency->format($this->config->get('config_voucher_min')), $this->currency->format($this->config->get('config_voucher_max')));
                    
61		
                    
248		if (($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency')) < $this->config->get('config_voucher_min')) || ($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency')) > $this->config->get('config_voucher_max'))) {
                    
249      		$this->error['amount'] = sprintf($this->language->get('error_amount'), $this->currency->format($this->config->get('config_voucher_min')), $this->currency->format($this->config->get('config_voucher_max')) . ' ' . $this->currency->getCode());
                    
250    	}
                    
                
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    {
                    
                
SelectableAssociationTrait.php https://gitlab.com/alexandresgv/siteentec | PHP | 341 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         3.0.0
                    
12 * @since         3.0.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
101                throw new InvalidArgumentException(
                    
102                    sprintf('You are required to select the "%s" field', $key)
                    
103                );
                    
                
class-wc-settings-tax.php https://gitlab.com/campus-academy/krowkaramel | PHP | 348 lines
                    
1<?php
                    
2/**
                    
67			/* translators: $s tax rate section name */
                    
68			$sections[ sanitize_title( $class ) ] = sprintf( __( '%s rates', 'woocommerce' ), $class );
                    
69		}
                    
79	public function get_settings_for_default_section() {
                    
80		return include __DIR__ . '/views/settings-tax.php';
                    
81	}
                    
101	public function save() {
                    
102		// phpcs:disable WordPress.Security.NonceVerification.Missing
                    
103		global $current_section;
                    
108			if ( isset( $_POST['woocommerce_tax_classes'] ) ) {
                    
109				$this->save_tax_classes( wp_unslash( $_POST['woocommerce_tax_classes'] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
                    
110			}
                    
121		WC_Cache_Helper::get_transient_version( 'shipping', true );
                    
122		// phpcs:enable WordPress.Security.NonceVerification.Missing
                    
123	}
                    
                
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);
                    
                
BlockCipher.php https://bitbucket.org/gencer/zf2.git | PHP | 489 lines
                    
1<?php
                    
2/**
                    
125            if (!class_exists($plugins)) {
                    
126                throw new Exception\InvalidArgumentException(sprintf(
                    
127                    'Unable to locate symmetric cipher plugins using class "%s"; class does not exist',
                    
133        if (!$plugins instanceof SymmetricPluginManager) {
                    
134            throw new Exception\InvalidArgumentException(sprintf(
                    
135                'Expected an instance or extension of %s\SymmetricPluginManager; received "%s"',
                    
                
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
                    
                
BakeShell.php https://gitlab.com/alexandresgv/siteentec | PHP | 317 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         0.1.0
                    
12 * @since         0.1.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
27 *
                    
28 * Bake is CakePHP's code generation script, which can help you kickstart
                    
29 * application development by writing fully functional skeleton controllers,
                    
31 *
                    
32 * @link http://book.cakephp.org/3.0/en/console-and-shells/code-generation-with-bake.html
                    
33 */
                    
                
order_status.php https://gitlab.com/shapcy/opencart | PHP | 380 lines
                    
1<?php
                    
2class ControllerLocalisationOrderStatus extends Controller {
                    
246
                    
247		$data['results'] = sprintf($this->language->get('text_pagination'), ($order_status_total) ? (($page - 1) * $this->config->get('config_limit_admin')) + 1 : 0, ((($page - 1) * $this->config->get('config_limit_admin')) > ($order_status_total - $this->config->get('config_limit_admin'))) ? $order_status_total : ((($page - 1) * $this->config->get('config_limit_admin')) + $this->config->get('config_limit_admin')), $order_status_total, ceil($order_status_total / $this->config->get('config_limit_admin')));
                    
248
                    
367			if ($store_total) {
                    
368				$this->error['warning'] = sprintf($this->language->get('error_store'), $store_total);
                    
369			}
                    
373			if ($order_total) {
                    
374				$this->error['warning'] = sprintf($this->language->get('error_order'), $order_total);
                    
375			}
                    
                
HeadMeta.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 420 lines
                    
1<?php
                    
2/**
                    
38     *
                    
39     * Set separator to PHP_EOL
                    
40     *
                    
44        parent::__construct();
                    
45        $this->setSeparator(PHP_EOL);
                    
46    }
                    
94            default:
                    
95                throw new Exception\DomainException(sprintf(
                    
96                    'Invalid type "%s" passed to normalizeType',
                    
314        if (!in_array($item->type, $this->typeKeys)) {
                    
315            throw new Exception\InvalidArgumentException(sprintf(
                    
316                'Invalid type "%s" provided for meta',
                    
358
                    
359        $meta = sprintf(
                    
360            $tpl,
                    
                
legacy.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 596 lines
                    
1<?php
                    
2/**
                    
156			case 'model':
                    
157				$filename = strtolower($parts['name']) . '.php';
                    
158				break;
                    
195				{
                    
196					JLog::add(JText::sprintf('JLIB_APPLICATION_ERROR_MODELCLASS_NOT_FOUND', $modelClass), JLog::WARNING, 'jerror');
                    
197
                    
471
                    
472		throw new Exception(JText::sprintf('JLIB_APPLICATION_ERROR_TABLE_NAME_NOT_SUPPORTED', $name), 0);
                    
473	}
                    
                
theme-install.php https://gitlab.com/mostafame/team_website | PHP | 329 lines
                    
1<?php
                    
2/**
                    
9/** WordPress Administration Bootstrap */
                    
10require_once( dirname( __FILE__ ) . '/admin.php' );
                    
11require( ABSPATH . 'wp-admin/includes/theme-install.php' );
                    
18if ( is_multisite() && ! is_network_admin() ) {
                    
19	wp_redirect( network_admin_url( 'theme-install.php' ) );
                    
20	exit();
                    
23$title = __( 'Add Themes' );
                    
24$parent_file = 'themes.php';
                    
25
                    
26if ( ! is_network_admin() ) {
                    
27	$submenu_file = 'themes.php';
                    
28}
                    
41		'canInstall'    => current_user_can( 'install_themes' ),
                    
42		'installURI'    => current_user_can( 'install_themes' ) ? self_admin_url( 'theme-install.php' ) : null,
                    
43		'adminUrl'      => parse_url( self_admin_url(), PHP_URL_PATH )
                    
                
egg_ut.cpp https://gitlab.com/philipclaude/avro2 | C++ | 367 lines
                    
7// Licensed under The GNU Lesser General Public License, version 2.1
                    
8// See http://www.opensource.org/licenses/lgpl-2.1.php
                    
9//
                    
97  b1.get_entities(entities1);
                    
98  printf("body1 has %lu entities\n",entities1.size());
                    
99
                    
102  b2.get_entities(entities2);
                    
103  printf("body2 has %lu entities\n",entities2.size());
                    
104
                    
118  }
                    
119  printf("--> added objects\n");
                    
120  // END STEP 2
                    
152    if (same == EGADS_SUCCESS)
                    
153      printf("number = %u, i = %lu, j = %lu are the same!\n",entities1[i]->number(),i,j);
                    
154    else
                    
                
ConstructorAnnotationsInspectorTest.php https://gitlab.com/nstwf.pro/json-mapper | PHP | 413 lines
                    
1<?php
                    
2
                    
27use Nstwf\JsonMapper\Unit\Implementation\UnionScalarTypesObject;
                    
28use PHPUnit\Framework\TestCase;
                    
29use Psr\SimpleCache\CacheInterface;
                    
378        $cache->method('has')
                    
379            ->with(sprintf('%s-%s', ConstructorAnnotationsInspector::class, NoTypeObject::class))
                    
380            ->willReturn(false);
                    
382            ->method('set')
                    
383            ->with(sprintf('%s-%s', ConstructorAnnotationsInspector::class, NoTypeObject::class));
                    
384
                    
400        $cache->method('has')
                    
401            ->with(sprintf('%s-%s', ConstructorAnnotationsInspector::class, 'MockClass'))
                    
402            ->willReturn(true);
                    
403        $cache->method('get')
                    
404            ->with(sprintf('%s-%s', ConstructorAnnotationsInspector::class, 'MockClass'))
                    
405            ->willReturn($objectDescriptor);
                    
                
JsonApiDocumentTopLevelNormalizer.php https://gitlab.com/mohamed_hussein/prodt | PHP | 335 lines
                    
1<?php
                    
2
                    
27 *
                    
28 * @internal JSON:API maintains no PHP API since its API is the HTTP API. This
                    
29 *   class may change at any time and this will break any dependencies on it.
                    
31 * @see https://www.drupal.org/project/drupal/issues/3032787
                    
32 * @see jsonapi.api.php
                    
33 *
                    
144            }
                    
145            throw new NotFoundHttpException(sprintf('The resource identified by `%s:%s` (given as a relationship item) could not be found.', $relationship['data'][$delta]['type'], $uuid));
                    
146          }
                    
314      if ($relationship_fields_sent_as_attributes = array_intersect($received_attribute_field_names, $relationship_field_names)) {
                    
315        throw new UnprocessableEntityHttpException(sprintf("The following relationship fields were provided as attributes: [ %s ]", implode(', ', $relationship_fields_sent_as_attributes)));
                    
316      }
                    
                
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	}
                    
                
Template.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 395 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
236        $html = "<style type=\"text/css\">\n%s\n</style>\n%s";
                    
237        return sprintf($html, $this->getTemplateStyles(), $text);
                    
238    }
                    
                
default.php https://bitbucket.org/eternaware/joomus.git | PHP | 218 lines
                    
22?>
                    
23<form action="<?php echo JRoute::_('index.php?option=com_banners&view=banners'); ?>" method="post" name="adminForm" id="adminForm">
                    
24	<fieldset id="filter-bar">
                    
137					<?php if ($canEdit) : ?>
                    
138						<a href="<?php echo JRoute::_('index.php?option=com_banners&task=banner.edit&id='.(int) $item->id); ?>">
                    
139							<?php echo $this->escape($item->name); ?></a>
                    
169						<?php $disabled = $saveOrder ?  '' : 'disabled="disabled"'; ?>
                    
170						<input type="text" name="order[]" value="<?php echo $item->ordering;?>" <?php echo $disabled; ?> class="text-area-order" title="<?php echo $item->name; ?> order" />
                    
171					<?php else : ?>
                    
179					<?php echo $item->clicks;?> -
                    
180					<?php echo sprintf('%.2f%%', $item->impmade ? 100 * $item->clicks / $item->impmade : 0);?>
                    
181				</td>
                    
186					<?php if ($item->purchase_type < 0):?>
                    
187						<?php echo JText::sprintf('COM_BANNERS_DEFAULT', ($item->client_purchase_type > 0) ? JText::_('COM_BANNERS_FIELD_VALUE_'.$item->client_purchase_type) : JText::_('COM_BANNERS_FIELD_VALUE_'.$this->state->params->get('purchase_type')));?>
                    
188					<?php else:?>
                    
                
Container.php https://github.com/Exercise/zf2.git | PHP | 508 lines
                    
1<?php
                    
2/**
                    
363
                    
364        throw new Exception(sprintf(
                    
365                'Bad method call: Unknown method %s::%s',
                    
                
factory.cpp https://gitlab.com/philipclaude/avro2 | C++ | 312 lines
                    
7// Licensed under The GNU Lesser General Public License, version 2.1
                    
8// See http://www.opensource.org/licenses/lgpl-2.1.php
                    
9//
                    
183    ptopology = pmesh->retrieve_ptr<Simplex>(0);
                    
184    printf("mesh has %lu topologies\n",pmesh->nb_topologies());
                    
185    if (pmesh->nb_topologies() > 1) {
                    
206    catch (...) {
                    
207      printf("[warning] could not read number of ghost points, setting to 1\n");
                    
208    }
                    
220      index_t nb_simplices = simplices.size()/(number+1);
                    
221      printf("nb_simplices = %lu\n",nb_simplices);
                    
222      printf("nb_vertices = %lu\n",pmesh->points().nb());
                    
233      std::string s = jm["type"];
                    
234      printf("unsupported element type %s\n",s.c_str());
                    
235      avro_implement;
                    
                
date.php https://github.com/chemila/kohana.git | PHP | 566 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
28	 * Timezone for formatted_time
                    
29	 * @link http://uk2.php.net/manual/en/timezones.php
                    
30	 * @var  string
                    
39	 *
                    
40	 * [!!] A list of time zones that PHP supports can be found at
                    
41	 * <http://php.net/timezones>.
                    
95		{
                    
96			$seconds[$i] = sprintf('%02d', $i);
                    
97		}
                    
204
                    
205		return sprintf('%02d', $hour);
                    
206	}
                    
548	 *
                    
549	 * @see     http://php.net/manual/en/datetime.construct.php
                    
550	 * @param   string  datetime_str     datetime string
                    
                
Type.php https://bitbucket.org/daveschwan/ronin-group.git | 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     */
                    
                
sqlite_driver.php https://gitlab.com/venenux/codeigniterpower | PHP | 660 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
377		{
                    
378			$sql .= " AND 'name' LIKE '".$this->escape_like_str($this->dbprefix)."%' ".sprintf($this->_like_escape_str, $this->_like_escape_chr);
                    
379		}
                    
658
                    
659/* End of file sqlite_driver.php */
                    
660/* Location: ./system/database/drivers/sqlite/sqlite_driver.php */
                    
                
Abstract.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 326 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
102    {
                    
103        $connection = sprintf('%s_%s', $this->_modulePrefix, $name);
                    
104        /** @var $resource Mage_Core_Model_Resource */
                    
                
membership_account.php https://gitlab.com/najomie/fit-hippie | PHP | 265 lines
                    
1<div class="ms-account-wrapper">
                    
2        <?php if ( ms_is_user_logged_in() ) : ?>
                    
3
                    
3
                    
4                <?php
                    
5                // ================================================= MEMBERSHIPS
                    
8                <h2>
                    
9                        <?php
                    
10                        echo get_ms_ac_title();
                    
16                </h2>
                    
17                <?php
                    
18                /**
                    
31                                        <tr>
                    
32                                                <th class="ms-col-membership"><?php
                    
33                                                        _e( 'Membership name', 'membership2' );
                    
                
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';
                    
                
options.php https://gitlab.com/edgarze188/sunrise | PHP | 220 lines
                    
36								<input name="ellipsis" type="text" id="ellipsis" value="<?php echo $ellipsis; ?>" size="5" />
                    
37								<?php printf( __( '(use <a href="%s" target="_blank">HTML entities</a>)', 'advanced-excerpt' ), 'http://entitycode.com' ); ?>
                    
38							</p>
                    
140									<label for="<?php echo $key_dashed; ?>">
                    
141									<input name="exclude_pages[]" type="checkbox" id="<?php echo $key_dashed; ?>" value="<?php echo $key; ?>" <?php echo ( in_array( $key, $exclude_pages ) ) ? 'checked="checked"' : ''; ?> />
                    
142									<?php echo $label; ?>
                    
179											<label for="<?php echo 'ae-' . $tag; ?>">
                    
180											<input name="allowed_tags[]" type="checkbox" id="<?php echo 'ae-' . $tag; ?>" value="<?php echo $tag; ?>" <?php echo ( in_array( $tag, $allowed_tags ) ) ? 'checked="checked" ' : ''; ?> />
                    
181											<code><?php echo $tag; ?></code>
                    
200								<?php foreach ( array_diff( $this->options_all_tags, $this->options_basic_tags ) as $tag ) : ?>
                    
201									<option value="<?php echo $tag; ?>"><?php echo $tag; ?></option>
                    
202								<?php endforeach; ?>
                    
215
                    
216		<?php require_once $this->plugin_dir_path . 'template/sidebar.php'; ?>
                    
217
                    
                
Db.php https://github.com/gryzz/crystal_magento.git | PHP | 415 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) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
123        foreach ($matches as $match) {
                    
124            $this->_foreignKeys[$tableName][] = sprintf('ADD CONSTRAINT %s FOREIGN KEY (%s) REFERENCES %s (%s)%s%s',
                    
125                $this->_read->quoteIdentifier($match[1]),
                    
152            foreach ($this->_foreignKeys as $table => $foreignKeys) {
                    
153                $sql .= sprintf("ALTER TABLE %s\n  %s;\n",
                    
154                    $this->_read->quoteIdentifier($table),
                    
                
Configuration.php https://gitlab.com/cividesk-civicrm/com.cividesk.payment.braintree | PHP | 551 lines
                    
1<?php
                    
2namespace Braintree;
                    
159     * Sets or gets the proxy type to use for connecting to Braintree. This value
                    
160     * can be any of the CURLOPT_PROXYTYPE options in PHP cURL.
                    
161     *
                    
398    {
                    
399        return sprintf('%s://%s:%d', $this->protocol(), $this->serverName(), $this->portNumber());
                    
400    }
                    
                
wps-exclusions.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 234 lines
                    
51			<td>
                    
52				<input id="wps-exclusions" type="checkbox" value="1" name="wps_record_exclusions" <?php echo $WP_Statistics->get_option('record_exclusions')==true? "checked='checked'":'';?>><label for="wps-exclusions"><?php _e('Enable', 'wp_statistics'); ?></label>
                    
53				<p class="description"><?php _e('This will record all the excluded hits in a separate table with the reasons why it was excluded but no other information.  This will generate a lot of data but is useful if you want to see the total number of hits your site gets, not just actual user visits.', 'wp_statistics'); ?></p>
                    
73			<td>
                    
74				<input id="<?php echo $option_name;?>" type="checkbox" value="1" name="<?php echo $option_name;?>" <?php echo $WP_Statistics->get_option($store_name)==true? "checked='checked'":'';?>><label for="<?php echo $option_name;?>"><?php _e('Exclude', 'wp_statistics'); ?></label>
                    
75				<p class="description"><?php echo sprintf(__('Exclude %s role from data collection.', 'wp_statistics'), $translated_role_name); ?></p>
                    
149			<td>
                    
150				<input id="corrupt_browser_info" type="checkbox" value="1" name="wps_corrupt_browser_info" <?php echo $WP_Statistics->get_option('corrupt_browser_info')==true? "checked='checked'":'';?>><label for="wps_corrupt_browser_info"><?php _e('Enable', 'wp_statistics'); ?></label>
                    
151				<p class="description"><?php echo __('Treat any visitor with corrupt browser info (missing IP address or empty user agent string) as a robot.', 'wp_statistics'); ?></p>
                    
202			<td>
                    
203				<input id="wps-exclude-adminpage" type="checkbox" value="1" name="wps_exclude_adminpage" <?php echo $WP_Statistics->get_option('exclude_adminpage')==true? "checked='checked'":'';?>><label for="wps-exclude-adminpage"><?php _e('Exclude', 'wp_statistics'); ?></label>
                    
204				<p class="description"><?php _e('Exclude the admin pages for registering as a hit.', 'wp_statistics'); ?></p>
                    
209			<td>
                    
210				<input id="wps-exclude-feeds" type="checkbox" value="1" name="wps_exclude_feeds" <?php echo $WP_Statistics->get_option('exclude_feeds')==true? "checked='checked'":'';?>><label for="wps-exclude-feeds"><?php _e('Exclude', 'wp_statistics'); ?></label>
                    
211				<p class="description"><?php _e('Exclude the RSS feeds for registering as a hit.', 'wp_statistics'); ?></p>
                    
                
Type.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 303 lines
                    
36 *
                    
37 * @package    PHPUnit
                    
38 * @subpackage Util
                    
38 * @subpackage Util
                    
39 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2001-2013 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     */
                    
                
TranslationDebugCommand.php https://gitlab.com/Isaki/le331.fr | 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
                    
                
wlfc_proto.h https://bitbucket.org/cyanogenmod/lge-kernel-iproj.git | C Header | 216 lines
                    
6* under the terms of the GNU General Public License version 2 (the "GPL"),
                    
7* available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
8* following added to such license:
                    
183#ifdef PROP_TXSTATUS_DEBUG
                    
184#define WLFC_DBGMESG(x) printf x
                    
185/* wlfc-breadcrumb */
                    
186#define WLFC_BREADCRUMB(x) do {if ((x) == NULL) \
                    
187	{printf("WLFC: %s():%d:caller:%p\n", \
                    
188	__FUNCTION__, __LINE__, __builtin_return_address(0));}} while (0)
                    
188	__FUNCTION__, __LINE__, __builtin_return_address(0));}} while (0)
                    
189#define WLFC_PRINTMAC(banner, ea) do {printf("%s MAC: [%02x:%02x:%02x:%02x:%02x:%02x]\n", \
                    
190	banner, ea[0], 	ea[1], 	ea[2], 	ea[3], 	ea[4], 	ea[5]); } while (0)
                    
190	banner, ea[0], 	ea[1], 	ea[2], 	ea[3], 	ea[4], 	ea[5]); } while (0)
                    
191#define WLFC_WHEREIS(s) printf("WLFC: at %s():%d, %s\n", __FUNCTION__, __LINE__, (s))
                    
192#else
                    
                
formvalidator.php https://bitbucket.org/fbertagnin/fbwork4.git | PHP | 573 lines
                    
3  -------------------------------------------------------------------------
                    
4      PHP Form Validator (formvalidator.php)
                    
5              Version 1.1
                    
14	For updates, please visit:
                    
15	http://www.html-form-guide.com/php-form/php-form-validation.html
                    
16	
                    
190			$bret=false;
                    
191			$default_error_message = sprintf(E_VAL_REQUIRED_VALUE,$variable_name);
                    
192		}	
                    
204				$bret=false;
                    
205				$default_error_message = sprintf(E_VAL_MAXLEN_EXCEEDED,$variable_name);
                    
206			}
                    
355				$bret=false;
                    
356				$default_error_message = sprintf(E_VAL_DONTSEL_CHECK_FAILED,$variable_name);
                    
357			}
                    
                
interface.php https://bitbucket.org/mrmustarde/manhattan-beach.git | PHP | 293 lines
                    
27			<a href="<?php echo wp_nonce_url( admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG . '&amp;hmbkp_download_backup=' . $encoded_file . '&amp;hmbkp_schedule_id=' . $schedule->get_id() ), 'hmbkp-download_backup' ); ?>"><?php _e( 'Download', 'hmbkp' ); ?></a> |
                    
28			<a href="<?php echo wp_nonce_url( admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG . '&amp;hmbkp_delete_backup=' . $encoded_file . '&amp;hmbkp_schedule_id=' . $schedule->get_id() ), 'hmbkp-delete_backup' ); ?>" class="delete-action"><?php _e( 'Delete', 'hmbkp' ); ?></a>
                    
29
                    
71		function hmbkp_safe_mode_warning() {
                    
72			echo '<div id="hmbkp-warning" class="updated fade"><p><strong>' . __( 'BackUpWordPress has detected a problem.', 'hmbkp' ) . '</strong> ' . sprintf( __( '%1$s is running in %2$s, please contact your host and ask them to disable it. BackUpWordPress may not work correctly whilst %3$s is on.', 'hmbkp' ), '<code>PHP</code>', sprintf( '<a href="%1$s">%2$s</a>', __( 'http://php.net/manual/en/features.safe-mode.php', 'hmbkp' ), __( 'Safe Mode', 'hmbkp' ) ), '<code>' . __( 'Safe Mode', 'hmbkp' ) . '</code>' ) . '</p></div>';
                    
73		}
                    
248
                    
249		<a class="fancybox" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_edit_schedule_load', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Settings', 'hmbkp' ); ?></a> |
                    
250
                    
251	<?php if ( $schedule->get_type() !== 'database' ) { ?>
                    
252		<a class="fancybox" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_edit_schedule_excludes_load', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Excludes', 'hmbkp' ); ?></a>  |
                    
253	<?php } ?>
                    
254
                    
255		<a class="hmbkp-run" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_run_schedule', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Run now', 'hmbkp' ); ?></a>  |
                    
256
                    
                
Collection.php https://bitbucket.org/kdms/sh-magento.git | PHP | 371 lines
                    
1<?php
                    
2/**
                    
79                $this->_selectedColumns = array(
                    
80                    'period'         =>  sprintf('MAX(%s)', $adapter->getDateFormatSql('period', '%Y-%m-%d')),
                    
81                    'qty_ordered'    => 'SUM(qty_ordered)',
                    
                
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        }
                    
                
class.jetpack-xmlrpc-server.php https://gitlab.com/relacilia/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 );
                    
                
FileWriter.php https://gitlab.com/campus-academy/krowkaramel | PHP | 341 lines
                    
158        if( ! $this->fs->copy($source,$target,true) ){
                    
159            Loco_error_AdminNotices::debug(sprintf('Failed to copy %s to %s via "%s" method',$source,$target,$this->fs->method));
                    
160            throw new Loco_error_WriteException( sprintf( __('Failed to copy %s to %s','loco-translate'), basename($source), basename($target) ) );
                    
184            Loco_error_AdminNotices::debug('copy/delete failure: '.$e->getMessage() );
                    
185            throw new Loco_error_WriteException( sprintf( 'Failed to move %s', $orig->basename() ) );
                    
186        }
                    
197        if( ! $this->fs->delete( $this->getPath(), $recursive ) ){
                    
198            throw new Loco_error_WriteException( sprintf( __('Failed to delete %s','loco-translate'), $this->file->basename() ) );
                    
199        }
                    
218        if( ! $dir ){
                    
219            throw new Loco_error_WriteException( sprintf('Bad file path "%s"',$file) );
                    
220        }
                    
317        // Deny list of executable file extensions, noting that specific actions may limit this further.
                    
318        // Note that this ignores the base file name, so "php.pot" would be permitted, but "foo.php.pot" would not.
                    
319        $exts = array_slice( explode('.', $this->file->basename() ), 1 );
                    
                
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' ); ?>
                    
                
Grammar.php https://github.com/sergiosgc/Structures_Grammar.git | PHP | 407 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */
                    
166    {
                    
167        if ($this->isRegular() && !$value->isRegular()) throw new Structures_Grammar_RestrictionException(sprintf(
                    
168            'Trying to add non regular rule to regular grammar (%s)', (string) $value));
                    
168            'Trying to add non regular rule to regular grammar (%s)', (string) $value));
                    
169        if ($this->isContextFree() && !$value->isContextFree()) throw new Structures_Grammar_RestrictionException(sprintf(
                    
170            'Trying to add non context-free rule to context-free grammar (%s)', (string) $value));
                    
315    {
                    
316        if ($value && !$this->testRegular()) foreach ($this->rules as $rule) if (!$rule->isRegular()) throw new Structures_Grammar_RestrictionException(sprintf('Grammar is not regular. Unable to introduce restriction. Rule \'%s\' is not regular', (string) $rule));
                    
317        $this->regular = $value;
                    
389        $result = '';
                    
390        foreach ($this->rules as $index => $value) $result .= sprintf("[%d] %s\n", $index, (string) $value);
                    
391
                    
                
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
                    
                
date.php https://github.com/2bj/kohana-core.git | PHP | 566 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
8 * @copyright  (c) 2007-2009 Kohana Team
                    
9 * @license    http://kohanaphp.com/license
                    
10 */
                    
28	 * Timezone for formatted_time
                    
29	 * @link http://uk2.php.net/manual/en/timezones.php
                    
30	 * @var  string
                    
39	 *
                    
40	 * [!!] A list of time zones that PHP supports can be found at
                    
41	 * <http://php.net/timezones>.
                    
95		{
                    
96			$seconds[$i] = sprintf('%02d', $i);
                    
97		}
                    
548	 *
                    
549	 * @see     http://php.net/manual/en/datetime.construct.php
                    
550	 * @param   string  datetime_str     datetime string
                    
                
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(
                    
                
article.php https://bitbucket.org/asosso/joomla25.git | PHP | 545 lines
                    
1<?php
                    
2/**
                    
14
                    
15require_once JPATH_COMPONENT_ADMINISTRATOR.'/helpers/content.php';
                    
16
                    
104					// Not fatal error
                    
105					$this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
                    
106					continue;
                    
                
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.jetpack-modules-list-table.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 305 lines
                    
3if ( ! class_exists( 'WP_List_Table' ) )
                    
4	require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
                    
5
                    
74						<# if ( item.activated && 'vaultpress' !== item.module ) { #>
                    
75							<span class='delete'><a href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&#038;action=deactivate&#038;module={{{ item.module }}}&#038;_wpnonce={{{ item.deactivate_nonce }}}"><?php _e( 'Deactivate', 'jetpack' ); ?></a></span>
                    
76						<# } else if ( item.available ) { #>
                    
76						<# } else if ( item.available ) { #>
                    
77							<span class='activate'><a href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&#038;action=activate&#038;module={{{ item.module }}}&#038;_wpnonce={{{ item.activate_nonce }}}"><?php _e( 'Activate', 'jetpack' ); ?></a></span>
                    
78						<# } #>
                    
86				<tr class="no-modules-found">
                    
87					<td colspan="2"><?php esc_html_e( 'No Modules Found' , 'jetpack' ); ?></td>
                    
88				</tr>
                    
215			<div class="module-image">
                    
216				<p><span class="module-image-badge"><?php echo $badge_text; ?></span><span class="module-image-free" style="display: none"><?php echo $free_text; ?></span></p>
                    
217			</div>
                    
                
navigation-link.php https://gitlab.com/campus-academy/krowkaramel | PHP | 350 lines
                    
1<?php
                    
2/**
                    
42		// Add the color class.
                    
43		array_push( $colors['css_classes'], 'has-text-color', sprintf( 'has-%s-color', $named_text_color ) );
                    
44	} elseif ( ! is_null( $custom_text_color ) ) {
                    
46		$colors['css_classes'][]  = 'has-text-color';
                    
47		$colors['inline_styles'] .= sprintf( 'color: %s;', $custom_text_color );
                    
48	}
                    
68		// Add the background-color class.
                    
69		array_push( $colors['css_classes'], 'has-background', sprintf( 'has-%s-background-color', $named_background_color ) );
                    
70	} elseif ( ! is_null( $custom_background_color ) ) {
                    
72		$colors['css_classes'][]  = 'has-background';
                    
73		$colors['inline_styles'] .= sprintf( 'background-color: %s;', $custom_background_color );
                    
74	}
                    
97		// Add the font size class.
                    
98		$font_sizes['css_classes'][] = sprintf( 'has-%s-font-size', $context['fontSize'] );
                    
99	} elseif ( $has_custom_font_size ) {
                    
                
Rooms.php https://github.com/craigrodway/classroombookings.git | PHP | 590 lines
                    
1<?php
                    
2defined('BASEPATH') OR exit('No direct script access allowed');
                    
237			if ($room_id) {
                    
238				$line = sprintf($this->lang->line('crbs_action_added'), $room_data['name']);
                    
239				$flashmsg = msgbox('info', $line);
                    
240			} else {
                    
241				$line = sprintf($this->lang->line('crbs_action_dberror'), 'adding');
                    
242				$flashmsg = msgbox('error', $line);
                    
247			if ($this->rooms_model->edit($room_id, $room_data)) {
                    
248				$line = sprintf($this->lang->line('crbs_action_saved'), $room_data['name']);
                    
249				$flashmsg = msgbox('info', $line);
                    
250			} else {
                    
251				$line = sprintf($this->lang->line('crbs_action_dberror'), 'editing');
                    
252				$flashmsg = msgbox('error', $line);
                    
                
systemCheck.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 289 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
46 * *******************************************************************************/
                    
47logThis('[At systemCheck.php]');
                    
48
                    
82			$filesNotWritable[$i] = $file;
                    
83			$filesNWPerms[$i] = substr(sprintf('%o',fileperms($file)), -4);
                    
84			$filesOut .= "<tr>".
                    
95			$filesNotWritable[$i] = $file;
                    
96			$filesNWPerms[$i] = substr(sprintf('%o',fileperms($file)), -4);
                    
97			$owner = posix_getpwuid(fileowner($file));
                    
162$checks = array(
                    
163	'phpVersion'				=> $mod_strings['LBL_UW_COMPLIANCE_PHP_VERSION'],
                    
164    'dbVersion'                 => $mod_strings['LBL_UW_COMPLIANCE_DB'],
                    
179	$stop = true;
                    
180	$phpIniLocation = get_cfg_var("cfg_file_path");
                    
181
                    
                
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			}
                    
                
AbstractCommand.php https://gitlab.com/alexandresgv/siteentec | 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);
                    
                
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        );
                    
                
calendar_event_exporter.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 329 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
31use \renderer_base;
                    
32require_once($CFG->dirroot . '/course/lib.php');
                    
33/**
                    
105            $moduleid = $moduleproxy->get('id');
                    
106            $url = new \moodle_url(sprintf('/mod/%s/view.php', $modulename), ['id' => $moduleid]);
                    
107
                    
109            $params = array('update' => $moduleid, 'return' => true, 'sesskey' => sesskey());
                    
110            $editurl = new \moodle_url('/course/mod.php', $params);
                    
111            $values['editurl'] = $editurl->out(false);
                    
                
class-gsc-table.php https://gitlab.com/bhargavi_dcw/dflocal | 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
                    
                
configure.php https://github.com/agnesrambaud/yacs.git | PHP | 313 lines
                    
247	Safe::unlink($context['path_to_root'].'parameters/collections.include.php.bak');
                    
248	Safe::rename($context['path_to_root'].'parameters/collections.include.php', $context['path_to_root'].'parameters/collections.include.php.bak');
                    
249
                    
276
                    
277		Logger::error(sprintf(i18n::s('ERROR: Impossible to write to the file %s. The configuration has not been saved.'), 'parameters/collections.include.php'));
                    
278
                    
279		// allow for a manual update
                    
280		$context['text'] .= '<p style="text-decoration: blink;">'.sprintf(i18n::s('To actually change the configuration, please copy and paste following lines by yourself in file %s.'), 'parameters/collections.include.php')."</p>\n";
                    
281
                    
284
                    
285		$context['text'] .= '<p>'.sprintf(i18n::s('The following configuration has been saved into the file %s.'), 'parameters/collections.include.php')."</p>\n";
                    
286
                    
290		// remember the change
                    
291		$label = sprintf(i18n::c('%s has been updated'), 'parameters/collections.include.php');
                    
292		Logger::remember('collections/configure.php', $label);
                    
                
Service.php https://bitbucket.org/simukti/zf1.git | PHP | 473 lines
                    
23 */
                    
24require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
132        if (null == $this->getName()) {
                    
133            require_once 'Zend/Json/Server/Exception.php';
                    
134            throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided');
                    
170            require_once 'Zend/Json/Server/Exception.php';
                    
171            throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));
                    
172        }
                    
197        if (!in_array($transport, $this->_transportTypes)) {
                    
198            require_once 'Zend/Json/Server/Exception.php';
                    
199            throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));
                    
246        if (!in_array($envelopeType, $this->_envelopeTypes)) {
                    
247            require_once 'Zend/Json/Server/Exception.php';
                    
248            throw new Zend_Json_Server_Exception(sprintf('Invalid envelope type "%s"; please specify one of (%s)', $envelopeType, implode(', ', $this->_envelopeTypes)));
                    
                
options-discussion.php https://gitlab.com/Fullerton/PolitePressCore | PHP | 285 lines
                    
62<td><fieldset><legend class="screen-reader-text"><span><?php _e('Other comment settings'); ?></span></legend>
                    
63<label for="require_name_email"><input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked('1', get_option('require_name_email')); ?> /> <?php _e('Comment author must fill out name and email'); ?></label>
                    
64<br />
                    
73<input name="close_comments_for_old_posts" type="checkbox" id="close_comments_for_old_posts" value="1" <?php checked('1', get_option('close_comments_for_old_posts')); ?> />
                    
74<?php printf(
                    
75	__( 'Automatically close comments on articles older than %s days' ),
                    
157<td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Moderation'); ?></span></legend>
                    
158<p><label for="comment_max_links"><?php printf(__('Hold a comment in the queue if it contains %s or more links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type="number" step="1" min="0" id="comment_max_links" value="' . esc_attr(get_option('comment_max_links')) . '" class="small-text" />' ); ?></label></p>
                    
159
                    
159
                    
160<p><label for="moderation_keys"><?php _e('When a comment contains any of these words in its content, name, URL, email, or IP, it will be held in the <a href="edit-comments.php?comment_status=moderated">moderation queue</a>. One word or IP per line. It will match inside words, so &#8220;press&#8221; will match &#8220;WordPress&#8221;.'); ?></label></p>
                    
161<p>
                    
284
                    
285<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?>
                    
286
                    
                
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
                    
                
 

Source

Language