PageRenderTime 1992ms queryTime 136ms sortTime 345ms getByIdsTime 221ms findMatchingLines 319ms

100+ results results for 'php print repo:luckyape/bcta' (1992 ms)

Not the results you expected?
twitter-timeline.php https://gitlab.com/memuller.web/wp_site | PHP | 470 lines
                    
1<?php
                    
2
                    
26			'twitter_timeline',
                    
27			/** This filter is documented in modules/widgets/facebook-likebox.php */
                    
28			apply_filters( 'jetpack_widget_name', esc_html__( 'Twitter Timeline', 'jetpack' ) ),
                    
56		_deprecated_function( __METHOD__, '4.0.0' );
                    
57		wp_print_scripts( array( 'jetpack-twitter-timeline' ) );
                    
58	}
                    
63	public function admin_scripts( $hook ) {
                    
64		// This is still 'widgets.php' when managing widgets via the Customizer.
                    
65		if ( 'widgets.php' === $hook ) {
                    
83		if ( isset( $instance['title'] ) ) {
                    
84			/** This filter is documented in core/src/wp-includes/default-widgets.php */
                    
85			echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title'];
                    
145
                    
146		/** This action is documented in modules/widgets/social-media-icons.php */
                    
147		do_action( 'jetpack_bump_stats_extras', 'widget', 'twitter_timeline' );
                    
                
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 {
                    
                
sysvmsg.c https://gitlab.com/envieidoc/tomato | C | 477 lines
                    
92	PHP_FE(msg_send,					arginfo_msg_send)
                    
93	PHP_FE(msg_receive,					arginfo_msg_receive)
                    
94	PHP_FE(msg_remove_queue,			arginfo_msg_remove_queue)
                    
145{
                    
146	php_info_print_table_start();
                    
147	php_info_print_table_row(2, "sysvmsg support", "enabled");
                    
148	php_info_print_table_row(2, "Revision", "$Id: adf1d2d6be849c46eed3c3ee6f1cbebd1448d6e5 $");
                    
149	php_info_print_table_end();
                    
150}
                    
342
                    
343	messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf));
                    
344
                    
431			case IS_BOOL:
                    
432				message_len = spprintf(&p, 0, "%ld", Z_LVAL_P(message));
                    
433				break;
                    
                
COOKBOOK-FIXERS.md https://gitlab.com/yousafsyed/easternglamor | Markdown | 466 lines
                    
9In order to be able to create a new fixer, you need some background.
                    
10PHP CS Fixer is a transcompiler which takes valid PHP code and pretty
                    
11print valid PHP code. It does all transformations in multiple passes,
                    
23If possible, try to get acquainted with the public interface for the
                    
24[Symfony/CS/Tokenizer/Tokens.php](Symfony/CS/Tokenizer/Tokens.php)
                    
25and [Symfony/CS/Tokenizer/Token.php](Symfony/CS/Tokenizer/Token.php)
                    
30* You are familiar with Test Driven Development.
                    
31* Forked FriendsOfPHP/PHP-CS-Fixer into your own Github Account.
                    
32* Cloned your forked repository locally.
                    
121
                    
122`# php php-cs-fixer readme > README.rst`
                    
123
                    
437
                    
438No. Short arrays were introduced in PHP 5.4 and PHP CS Fixer still
                    
439supports PHP 5.3.6.
                    
                
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',
                    
                
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
                    
                
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			}
                    
                
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 ) )
                    
                
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
                    
                
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 )
                    
                
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	}
                    
                
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>
                    
                
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/carlosambiado89/IntranetPlanEvalWeb | 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) {
                    
                
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>
                    
                
TextDataTest.php https://gitlab.com/Zinnurain/destination_finder_beta | PHP | 365 lines
                    
14        }
                    
15        require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
16
                    
16
                    
17        PHPExcel_Calculation_Functions::setCompatibilityMode(PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL);
                    
18	}
                    
170		$expectedResult = array_pop($args);
                    
171		$result = call_user_func_array(array('PHPExcel_Calculation_TextData','STRINGLENGTH'),$args);
                    
172		$this->assertEquals($expectedResult, $result);
                    
266		$expectedResult = array_pop($args);
                    
267		$result = call_user_func_array(array('PHPExcel_Calculation_TextData','TRIMNONPRINTABLE'),$args);
                    
268		$this->assertEquals($expectedResult, $result);
                    
355		$expectedResult = array_pop($args);
                    
356		$result = call_user_func_array(array('PHPExcel_Calculation_TextData','VALUE'),$args);
                    
357		$this->assertEquals($expectedResult, $result, NULL, 1E-8);
                    
                
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>
                    
                
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
                    
15 *
                    
16 * @package phpMyAdmin
                    
17 */
                    
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);
                    
253            trigger_error(
                    
254                'phpMyAdmin-ERROR: cannot open themes folder: ' . $this->getThemesPath(),
                    
255                E_USER_WARNING);
                    
292        $theme_selected = FALSE;
                    
293        $theme_preview_path= './themes.php';
                    
294        $theme_preview_href = '<a href="' . $theme_preview_path . '" target="themes" onclick="'
                    
329         */
                    
330        if (@file_exists($GLOBALS['pmaThemePath'] . 'layout.inc.php')) {
                    
331            include $GLOBALS['pmaThemePath'] . 'layout.inc.php';
                    
                
header.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 212 lines
                    
11		<p><?php _e("JavaScript for Mobile Safari is currently turned off.", "wptouch"); ?></p>
                    
12		<p><?php _e("Turn it on in ", "wptouch"); ?><em><?php _e("Settings &rsaquo; Safari", "wptouch"); ?></em><br /><?php _e(" to view this website.", "wptouch"); ?></p>
                    
13	</div>
                    
26		<div id="wptouch-login-inner">
                    
27			<form name="loginform" id="loginform" action="<?php bloginfo('wpurl'); ?>/wp-login.php" method="post">
                    
28				<label><input type="text" name="log" id="log" placeholder="<?php _e("Username", "wptouch"); ?>" tabindex="1" value="" /></label>
                    
92							<br />
                    
93							<?php echo sprintf(__( "You can %ssign-up here%s.", "wptouch" ), '<a href="' . get_bloginfo('wpurl') . '/wp-register.php" target="_blank">','</a>'); ?>
                    
94						<?php endif; ?>
                    
100					<?php if (get_option('comment_registration')) { ?>
                    
101					<li><a href="<?php bloginfo('wpurl'); ?>/wp-register.php"><?php _e( "Register for this site", "wptouch" ); ?></a></li>
                    
102					<?php } ?>
                    
104					<li><a href="<?php bloginfo('wpurl'); ?>/wp-admin/profile.php"><?php _e( "Account Profile", "wptouch" ); ?></a></li>
                    
105					<li><a href="<?php $version = (float)get_bloginfo('version'); if ($version >= 2.7) { ?><?php echo wp_logout_url($_SERVER['REQUEST_URI']); } else { bloginfo('wpurl'); ?>/wp-login.php?action=logout&redirect_to=<?php echo $_SERVER['REQUEST_URI']; ?><?php } ?>"><?php _e( "Logout", "wptouch" ); ?></a></li>
                    
106					<?php } ?>
                    
                
vote_channel_list.php https://gitlab.com/alexprowars/bitrix | PHP | 283 lines
                    
7##############################################
                    
8require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
9
                    
13
                    
14require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/vote/prolog.php");
                    
15$VOTE_RIGHT = $APPLICATION->GetGroupRight("vote");
                    
16if($VOTE_RIGHT=="D") $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
                    
17require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/vote/include.php");
                    
18
                    
126
                    
127$lAdmin->NavText($rsData->GetNavPrint(GetMessage("VOTE_PAGES")));
                    
128
                    
171
                    
172	$row->AddViewField("VOTES", '<a title="'.GetMessage("VOTE_OPEN_VOTES").'" href="vote_list.php?lang='.LANGUAGE_ID.'&find_channel='.$f_ID.'&set_filter=Y">'.$f_VOTES.'</a>&nbsp;[<a title="'.GetMessage("VOTE_ADD_VOTE").'" href="vote_edit.php?CHANNEL_ID='.$f_ID.'&lang='.LANGUAGE_ID.'">+</a>]');
                    
173
                    
                
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			}
                    
                
show2.php https://gitlab.com/redwan4re/web-apps-php-26 | PHP | 182 lines
                    
14
                    
15<?php include_once 'header.php'; ?>
                    
16<!-- Page container -->
                    
40                <!-- detached sidebar -->
                    
41                <?php include_once 'sidebar.php'; ?>
                    
42                <!-- /sidebar -->
                    
58                                <div class="heading-btn-group">
                    
59                                    <a type="button" class="btn bg-teal btn-labeled" href="edit.php?id=<?php echo $oneData['unique_id']; ?>"><b><i class="icon-pencil7"></i></b> Edit Course</a>
                    
60                                    
                    
60                                    
                    
61                                    <a type="button" onclick="return checkDelete()" class="btn bg-teal btn-labeled" href="trash.php?id=<?php echo $oneData['unique_id']; ?>"><b><i class="icon-close2"></i></b> Disable Course</a>
                    
62                                    
                    
181
                    
182                <?php include_once 'footer.php'; ?>
                    
183
                    
                
cdat_domain.py https://gitlab.com/rbax81/VisTrails | Python | 289 lines
                    
12## Licensing requirements will be met:
                    
13## http://www.opensource.org/licenses/gpl-license.php
                    
14##
                    
32    else:
                    
33        print "Type %s not found!" % t
                    
34        return None
                    
                
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']) )
                    
166	<tr>
                    
167<?php print_column_headers('link-manager'); ?>
                    
168	</tr>
                    
172	<tr>
                    
173<?php print_column_headers('link-manager', false); ?>
                    
174	</tr>
                    
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) {
                    
251				case 'rating':
                    
252 					?><td <?php echo $attributes ?>><?php echo $rating; ?></td><?php
                    
253					break;
                    
                
class.pop3.php https://gitlab.com/boxnia/NFU_MOVIL | PHP | 410 lines
                    
1<?php
                    
2/*~ class.pop3.php
                    
3.---------------------------------------------------------------------------.
                    
3.---------------------------------------------------------------------------.
                    
4|  Software: PHPMailer - PHP email class                                    |
                    
5|   Version: 5.2.1                                                          |
                    
25/**
                    
26 * PHPMailer - PHP POP Before SMTP Authentication Class
                    
27 * NOTE: Designed for use with PHP version 5 and up
                    
45 *
                    
46 * Specifically for PHPMailer to allow POP before SMTP authentication.
                    
47 * Does not yet work with APOP - if you have an APOP account, contact Richard Davey
                    
54 *
                    
55 * @package PHPMailer
                    
56 * @author Richard Davey
                    
                
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)',
                    
                
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    }
                    
                
media-template.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 467 lines
                    
1<?php
                    
2/**
                    
10/**
                    
11 * Prints the templates used in the media manager.
                    
12 *
                    
14 */
                    
15function wp_print_media_templates() {
                    
16	global $is_IE;
                    
98					?>
                    
99					<p class="big-file-warning"><?php printf( __( 'Your browser has some limitations uploading large files with the multi-file uploader. Please use the <a href="%1$s" target="%2$s">browser uploader</a> for files over 100MB.' ),
                    
100						$browser_uploader, '_blank' ); ?></p>
                    
328						if ( size ) { #>
                    
329							<option value="<?php echo esc_attr( $value ); ?>" <?php selected( $value, 'full' ); ?>>
                    
330								<?php echo esc_html( $name ); ?> &ndash; {{ size.width }} &times; {{ size.height }}
                    
363				<?php for ( $i = 1; $i <= 9; $i++ ) : ?>
                    
364					<option value="<?php echo esc_attr( $i ); ?>" <?php selected( $i, 3 ); ?>>
                    
365						<?php echo esc_html( $i ); ?>
                    
                
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
                    
                
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"',
                    
                
ClientesController.php https://gitlab.com/fabiorf/fsipedidos | PHP | 320 lines
                    
1<?php
                    
2 
                    
2 
                    
3// namespace de localizacao clientesController.php
                    
4namespace Cliente\Controller;
                    
186    {
                    
187        #print "<pre>";
                    
188        #print_r($this->params()->fromRoute());
                    
                
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 {
                    
190 * Does just echo get_author_posts_url() function, like the others do. The
                    
191 * reason for this, is that another function is used to help in printing the
                    
192 * link to the author's posts.
                    
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
                    
                
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';
                    
                
vasm-arm.cpp https://gitlab.com/iranjith4/hhvm | C++ | 492 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
18
                    
19#include "hphp/runtime/vm/jit/abi-arm.h"
                    
20#include "hphp/runtime/vm/jit/ir-instruction.h"
                    
21#include "hphp/runtime/vm/jit/mc-generator.h"
                    
22#include "hphp/runtime/vm/jit/print.h"
                    
23#include "hphp/runtime/vm/jit/reg-algorithms.h"
                    
26#include "hphp/runtime/vm/jit/timer.h"
                    
27#include "hphp/runtime/vm/jit/vasm-gen.h"
                    
28#include "hphp/runtime/vm/jit/vasm-instr.h"
                    
30#include "hphp/runtime/vm/jit/vasm-lower.h"
                    
31#include "hphp/runtime/vm/jit/vasm-print.h"
                    
32#include "hphp/runtime/vm/jit/vasm-reg.h"
                    
                
CHANGELOG.md https://gitlab.com/4gdevs/online-class-record-system | Markdown | 313 lines
                    
26* Update group use support to be in line with recent PHP 7.0 builds.
                    
27* Renamed `php-parse.php` to `php-parse` and registered it as a composer bin.
                    
28* Use composer PSR-4 autoloader instead of custom autoloader.
                    
42
                    
43* Removed support for running on PHP 5.4. It is however still possible to parse PHP 5.2 and PHP 5.3
                    
44  code while running on a newer version.
                    
64
                    
65* `PhpParser\Parser` is now an interface, implemented by `Parser\Php5`, `Parser\Php7` and
                    
66  `Parser\Multiple`. The `Multiple` parser will try multiple parsers, until one succeeds.
                    
66  `Parser\Multiple`. The `Multiple` parser will try multiple parsers, until one succeeds.
                    
67* Token constants are now defined on `PhpParser\Parser\Tokens` rather than `PhpParser\Parser`.
                    
68* The `Name->set()`, `Name->append()`, `Name->prepend()` and `Name->setFirst()` methods are
                    
257
                    
258* [BC] PHP-Parser now requires PHP 5.3 or newer to run. It is however still possible to *parse* PHP 5.2 source code,
                    
259  while running on a newer version.
                    
                
YamlFileLoader.php https://gitlab.com/leoplanxxi/dr7-web-buap-2016 | PHP | 421 lines
                    
1<?php
                    
2
                    
57            if (!is_array($content['parameters'])) {
                    
58                throw new InvalidArgumentException(sprintf('The "parameters" key should contain an array in %s. Check your YAML syntax.', $resource));
                    
59            }
                    
93        if (!is_array($content['imports'])) {
                    
94            throw new InvalidArgumentException(sprintf('The "imports" key should contain an array in %s. Check your YAML syntax.', $file));
                    
95        }
                    
98            if (!is_array($import)) {
                    
99                throw new InvalidArgumentException(sprintf('The values in the "imports" key should be arrays in %s. Check your YAML syntax.', $file));
                    
100            }
                    
119        if (!is_array($content['services'])) {
                    
120            throw new InvalidArgumentException(sprintf('The "services" key should contain an array in %s. Check your YAML syntax.', $file));
                    
121        }
                    
145        if (!is_array($service)) {
                    
146            throw new InvalidArgumentException(sprintf('A service definition must be an array or a string starting with "@" but %s found for service "%s" in %s. Check your YAML syntax.', gettype($service), $id, $file));
                    
147        }
                    
                
rpadlpar_core.c https://gitlab.com/envieidoc/sprd_project | C | 472 lines
                    
31#include "../pci.h"
                    
32#include "rpaphp.h"
                    
33#include "rpadlpar.h"
                    
53	while ((dn = of_get_next_child(parent, dn))) {
                    
54		rc = rpaphp_get_drc_props(dn, NULL, &name, NULL, NULL);
                    
55		if ((rc == 0) && (!strcmp(drc_name, name)))
                    
62/* Find dlpar-capable pci node that contains the specified name and type */
                    
63static struct device_node *find_php_slot_pci_node(char *drc_name,
                    
64						  char *drc_type)
                    
71	while ((np = of_find_node_by_name(np, "pci"))) {
                    
72		rc = rpaphp_get_drc_props(np, NULL, &name, &type, NULL);
                    
73		if (rc == 0)
                    
84
                    
85	dn = find_php_slot_pci_node(drc_name, "SLOT");
                    
86	if (dn) {
                    
                
acpiphp_core.c https://gitlab.com/envieidoc/sprd_project | C | 363 lines
                    
98 */
                    
99int acpiphp_register_attention(struct acpiphp_attention_info *info)
                    
100{
                    
119 */
                    
120int acpiphp_unregister_attention(struct acpiphp_attention_info *info)
                    
121{
                    
152 *
                    
153 * Actual tasks are done in acpiphp_disable_slot()
                    
154 */
                    
292/* callback routine to initialize 'struct slot' for each slot */
                    
293int acpiphp_register_hotplug_slot(struct acpiphp_slot *acpiphp_slot)
                    
294{
                    
344
                    
345void acpiphp_unregister_hotplug_slot(struct acpiphp_slot *acpiphp_slot)
                    
346{
                    
                
wl_iw.h https://gitlab.com/envieidoc/sprd_project | C Header | 325 lines
                    
8 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
10 * following added to such license:
                    
83#define MAX_WX_STRING 80
                    
84#define isprint(c) bcm_isprint(c)
                    
85#define WL_IW_SET_ACTIVE_SCAN	(SIOCIWFIRSTPRIV+1)
                    
                
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	}
                    
                
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 */
                    
                
Generator.php https://gitlab.com/edot92/jpagithub | PHP | 283 lines
                    
1<?php
                    
2/**
                    
6 * @copyright 2014 Barry vd. Heuvel / Fruitcake Studio (http://www.fruitcakestudio.nl)
                    
7 * @license   http://www.opensource.org/licenses/mit-license.php MIT
                    
8 * @link      https://github.com/barryvdh/laravel-ide-helper
                    
63     *
                    
64     * @param  string  $format  The format to generate the helper in (php/json)
                    
65     * @return string;
                    
66     */
                    
67    public function generate($format = 'php')
                    
68    {
                    
74
                    
75        return $this->generatePhpHelper();
                    
76    }
                    
77
                    
78    public function generatePhpHelper()
                    
79    {
                    
                
projectteam.php https://gitlab.com/julienv/joomleague | PHP | 394 lines
                    
1<?php
                    
2/**
                    
3* @copyright	Copyright (C) 2006-2014 joomleague.at. All rights reserved.
                    
4* @license		GNU/GPL, see LICENSE.php
                    
5* Joomla! is free software. This version may have been modified pursuant
                    
8* other free or open source software licenses.
                    
9* See COPYRIGHT.php for copyright notices and details.
                    
10*/
                    
55		if ($model->isCheckedOut($user->get('id'))) {
                    
56			$this->setRedirect('index.php?option=com_joomleague&task=projectteam.display&view=projectteams', JText::_('EDITED BY ANOTHER ADMIN'));
                    
57		}
                    
97	    }	
                    
98	    $link = 'index.php?option=com_joomleague&view=projectteams&task=projectteam.display';
                    
99	  	$this->setRedirect($link, $msg);  
                    
174
                    
175		$link = 'index.php?option=com_joomleague&view=projectteams&task=projectteam.display';
                    
176		$this->setRedirect($link, $msg);
                    
                
server.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 407 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#ifndef incl_HPHP_HTTP_SERVER_SERVER_H_
                    
18#define incl_HPHP_HTTP_SERVER_SERVER_H_
                    
                
wl_cfgp2p.h https://gitlab.com/SerenityS/slteskt_kernel | C Header | 429 lines
                    
8 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
10 * following added to such license:
                    
158		if (wl_dbg_level & WL_DBG_ERR) {				\
                    
159			printk(KERN_INFO CFGP2P_ERROR_TEXT "%s : ", __func__);	\
                    
160			printk args;						\
                    
165		if (wl_dbg_level & WL_DBG_INFO) {				\
                    
166			printk(KERN_INFO "CFGP2P-INFO) %s : ", __func__);	\
                    
167			printk args;						\
                    
172		if (wl_dbg_level & WL_DBG_DBG) {			\
                    
173			printk(KERN_DEBUG "CFGP2P-DEBUG) %s :", __func__);	\
                    
174			printk args;							\
                    
180		if (wl_dbg_level & WL_DBG_P2P_ACTION) {			\
                    
181			printk(KERN_DEBUG "CFGP2P-ACTION) %s :", __func__);	\
                    
182			printk args;							\
                    
                
ApiGenerator.php https://gitlab.com/digitalpoetry/exceptionally-timed | PHP | 519 lines
                    
112
                    
113		if (empty($blueprint))
                    
114		{
                    
114		{
                    
115			$blueprint = $this->askBlueprint();
                    
116		}
                    
146		// Blueprint File
                    
147		if ($blueprint)
                    
148		{
                    
190
                    
191		$make_blueprint = CLI::prompt('Create Blueprint file?', ['y', 'n']);
                    
192
                    
192
                    
193		return $make_blueprint == 'y' ? true : false;
                    
194	}
                    
                
SelectableAssociationTrait.php https://gitlab.com/ViniciusP/project-games | PHP | 341 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         3.0.0
                    
12 * @since         3.0.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
101                throw new InvalidArgumentException(
                    
102                    sprintf('You are required to select the "%s" field', $key)
                    
103                );
                    
                
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);
                    
                
joomleague.php https://gitlab.com/julienv/joomleague | PHP | 431 lines
                    
1<?php
                    
2class JoomleagueConnector extends JLCalendar{
                    
54		// echo '<pre>';
                    
55		// print_r($fav);
                    
56		// echo '</pre>';
                    
193			// new insert for link to player profile
                    
194			//$newrows[$key]['link'] = 'index.php?option=com_joomleague&view=player&p='.$row->project_id.'&pid='.$row->id;
                    
195			$newrows[$key]['link'] = JoomleagueHelperRoute::getPlayerRoute( $row->project_id, $row->teamid, $row->id);
                    
                
FAQ.htm https://gitlab.com/x33n/ProjectPier-Core | HTML | 341 lines
                    
181<br>
                    
182<b>Warning:</b> Cannot modify header information - headers already sent by (output started at script.php:X)<br>
                    
183<br>
                    
194<p><b>10.</b> <span class='question'>I draw a frame with very precise dimensions, but when printed I notice some differences.</span></p>
                    
195To respect dimensions, select "None" for the Page Scaling setting instead of "Shrink to Printable Area" in the print dialog box.
                    
196</li>
                    
232<div class="doc-source">
                    
233<pre><code>require('fpdf.php');
                    
234
                    
272<p><b>15.</b> <span class='question'>How can I send the PDF by email?</span></p>
                    
273As any other file, but an easy way is to use <a href="http://phpmailer.codeworxtech.com">PHPMailer</a> and
                    
274its in-memory attachment:
                    
310<br>
                    
311<a href="http://www.setasign.de/products/pdf-php-solutions/fpdi/" target="_blank">http://www.setasign.de/products/pdf-php-solutions/fpdi/</a><br>
                    
312<br>
                    
                
TranslationDebugCommand.php https://gitlab.com/matijabelec/bigpandadev | PHP | 268 lines
                    
1<?php
                    
2
                    
59
                    
60  <info>php %command.full_name% en AcmeDemoBundle</info>
                    
61
                    
63
                    
64  <info>php %command.full_name% --domain=messages en AcmeDemoBundle</info>
                    
65
                    
67
                    
68  <info>php %command.full_name% --only-missing en AcmeDemoBundle</info>
                    
69
                    
71
                    
72  <info>php %command.full_name% --only-unused en AcmeDemoBundle</info>
                    
73
                    
75
                    
76  <info>php %command.full_name% en</info>
                    
77
                    
                
Matcher.php https://gitlab.com/karora/awl | PHP | 308 lines
                    
40 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
41 * @link       http://github.com/sebastianbergmann/phpunit-mock-objects
                    
42 * @since      File available since Release 1.0.0
                    
58 * @version    Release: @package_version@
                    
59 * @link       http://github.com/sebastianbergmann/phpunit-mock-objects
                    
60 * @since      Class available since Release 1.0.0
                    
61 */
                    
62class PHPUnit_Framework_MockObject_Matcher implements PHPUnit_Framework_MockObject_Matcher_Invocation
                    
63{
                    
79    /**
                    
80     * @var PHPUnit_Framework_MockObject_Matcher_MethodName
                    
81     */
                    
178
                    
179        catch (PHPUnit_Framework_ExpectationFailedException $e) {
                    
180            throw new PHPUnit_Framework_ExpectationFailedException(
                    
                
Database.php https://gitlab.com/digitalpoetry/exceptionally-timed | PHP | 297 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Sprint
                    
4 *
                    
24 *
                    
25 * @package     Sprint
                    
26 * @author      Lonnie Ezell
                    
28 * @license     http://opensource.org/licenses/MIT  (MIT)
                    
29 * @link        http://sprintphp.com
                    
30 * @since       Version 1.0
                    
64     * Example:
                    
65     *      > php index.php database migrate
                    
66     *
                    
243 *
                    
244 * Created by: SprintPHP
                    
245 * Created on: {date}
                    
                
class-terminus.php https://gitlab.com/Blueprint-Marketing/cli | PHP | 417 lines
                    
27    if(!$configurator) {
                    
28      $configurator = new Terminus\Configurator(TERMINUS_ROOT . '/php/config-spec.php');
                    
29    }
                    
146    if(!empty($params)) {
                    
147      $message = vsprintf($message, $params);
                    
148    }
                    
170    if(!empty($params)) {
                    
171      $message = vsprintf($message, $params);
                    
172    }
                    
337
                    
338    $php_bin = self::get_php_binary();
                    
339
                    
340    if(Terminus::is_test()) {
                    
341      $script_path = __DIR__.'/boot-fs.php';
                    
342    } else {
                    
                
SqlServerGrammar.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 551 lines
                    
49     *
                    
50     * @param  \Illuminate\Database\Schema\Blueprint  $blueprint
                    
51     * @param  \Illuminate\Support\Fluent  $command
                    
67     */
                    
68    public function compileAdd(Blueprint $blueprint, Fluent $command)
                    
69    {
                    
111     *
                    
112     * @param  \Illuminate\Database\Schema\Blueprint  $blueprint
                    
113     * @param  \Illuminate\Support\Fluent  $command
                    
195     *
                    
196     * @param  \Illuminate\Database\Schema\Blueprint  $blueprint
                    
197     * @param  \Illuminate\Support\Fluent  $command
                    
540     *
                    
541     * @param  \Illuminate\Database\Schema\Blueprint  $blueprint
                    
542     * @param  \Illuminate\Support\Fluent  $column
                    
                
Esi.php https://gitlab.com/judielsm/Handora | PHP | 296 lines
                    
1<?php
                    
2
                    
31    private $contentTypes;
                    
32    private $phpEscapeMap = array(
                    
33        array('<?', '<%', '<s', '<S'),
                    
33        array('<?', '<%', '<s', '<S'),
                    
34        array('<?php echo "<?"; ?>', '<?php echo "<%"; ?>', '<?php echo "<s"; ?>', '<?php echo "<S"; ?>'),
                    
35    );
                    
219        $chunks = preg_split('#<esi\:include\s+(.*?)\s*(?:/|</esi\:include)>#', $content, -1, PREG_SPLIT_DELIM_CAPTURE);
                    
220        $chunks[0] = str_replace($this->phpEscapeMap[0], $this->phpEscapeMap[1], $chunks[0]);
                    
221
                    
233
                    
234            $chunks[$i] = sprintf('<?php echo $this->surrogate->handle($this, %s, %s, %s) ?>'."\n",
                    
235                var_export($options['src'], true),
                    
239            ++$i;
                    
240            $chunks[$i] = str_replace($this->phpEscapeMap[0], $this->phpEscapeMap[1], $chunks[$i]);
                    
241            ++$i;
                    
                
WARCReader.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 290 lines
                    
106            ArchiveRecord r = i.next();
                    
107            System.out.println(r.getHeader().toString());
                    
108            r.dump();
                    
108            r.dump();
                    
109            System.out.println();
                    
110        }
                    
138            int exitCode) {
                    
139        formatter.printHelp("java org.archive.io.arc.WARCReader" +
                    
140            " [--digest=true|false] \\\n" +
                    
182     * usage: java org.archive.io.arc.WARCReader [--offset=#] ARCFILE
                    
183     *  -h,--help      Prints this message and exits.
                    
184     *  -o,--offset    Outputs record at this offset into arc file.</pre>
                    
186     * <p>Outputs using a pseudo-CDX format as described here:
                    
187     * <a href="http://www.archive.org/web/researcher/cdx_legend.php">CDX
                    
188     * Legent</a> and here
                    
                
sysvmsg.c https://gitlab.com/0072016/appengine-php | C | 477 lines
                    
92	PHP_FE(msg_send,					arginfo_msg_send)
                    
93	PHP_FE(msg_receive,					arginfo_msg_receive)
                    
94	PHP_FE(msg_remove_queue,			arginfo_msg_remove_queue)
                    
145{
                    
146	php_info_print_table_start();
                    
147	php_info_print_table_row(2, "sysvmsg support", "enabled");
                    
148	php_info_print_table_row(2, "Revision", "$Id: a57e25e6c32775fb53ad02fa294f63e934911815 $");
                    
149	php_info_print_table_end();
                    
150}
                    
342
                    
343	messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf));
                    
344
                    
431			case IS_BOOL:
                    
432				message_len = spprintf(&p, 0, "%ld", Z_LVAL_P(message));
                    
433				break;
                    
                
Logger.php https://gitlab.com/nitm/yii2-module | PHP | 395 lines
                    
1<?php
                    
2
                    
38		parent::init();
                    
39		$this->currentUser = (\Yii::$app->hasProperty('user') && \Yii::$app->user->getId()) ? \Yii::$app->user->getIdentity() : new \nitm\models\User(['username' => (php_sapi_name() == 'cli' ? 'console' : 'web')]);
                    
40
                    
167				$event->sender->isWhat(),
                    
168				':'.$event->sender->title()."[".$event->sender->getId()."]\n\nChanged values: \n".json_encode($changedAttributes, JSON_PRETTY_PRINT)
                    
169			])
                    
                
benchmark.rb https://gitlab.com/orvi2014/rcs-db-ext | Ruby | 380 lines
                    
92
                    
93      io.print "#{__name__}"
                    
94
                    
102
                    
103        io.print "\t%9.6f" % t
                    
104        times << t
                    
118    #
                    
119    # See http://www.graphpad.com/curvefit/goodness_of_fit.htm for
                    
120    # more details.
                    
                
options.php https://gitlab.com/billyprice1/website | PHP | 415 lines
                    
1<?php
                    
2require_once(dirname(__FILE__) . '/admin_options/AdminPageFactory.php');
                    
99			'posts' => __('Your latest posts', TEMPLATENAME),
                    
100			'page' => sprintf(__('A %sstatic page%s (select bellow)', TEMPLATENAME), '<a href="edit.php?post_type=page">', '</a>'),
                    
101		),
                    
387		'default' => "<script type=\"text/javascript\">\n\n  var _gaq = _gaq || [];\n  _gaq.push(['_setAccount', 'XX-XXXXXXXX-X']);\n  _gaq.push(['_trackPageview']);\n\n  (function() {\n	 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\n	 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\n	 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\n  })();\n\n</script>",
                    
388		'desc' => sprintf(__('Paste your %sGoogle Analytics%s code here, it will get applied to each page.', TEMPLATENAME), '<a href="http://www.google.com/analytics/" target="_blank">', '</a>'),
                    
389		'class' => 'large-text code',
                    
                
ZoomPrintController.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 392 lines
                    
30   private GraphPlugin _plugin;
                    
31   private GraphPrintable _printable;
                    
32
                    
35
                    
36   public ZoomPrintController(ZoomerXmlBean zoomerXmlBean, PrintXmlBean printXmlBean, EdgesListener edgesListener, GraphPrintable printable, ISession session, GraphPlugin plugin)
                    
37   {
                    
169   {
                    
170      PrinterJob printJob = PrinterJob.getPrinterJob();
                    
171
                    
173
                    
174      printJob.setPrintable(_printable, pf);
                    
175      if (printJob.printDialog())
                    
223
                    
224            Dimension graphPixelSize = _printable.initPrintNoScaleSinglePage();
                    
225            SaveToFilePageFormat pf = new SaveToFilePageFormat(graphPixelSize);
                    
                
OrderCreateForCapture.html https://gitlab.com/CORP-RESELLER/PayPal-PHP-SDK | HTML | 74 lines
                    
1<!DOCTYPE html><html lang="en"><head><title>payments/OrderCreateForCapture</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content="../"><meta name="groc-document-path" content="payments/OrderCreateForCapture"><meta name="groc-project-path" content="payments/OrderCreateForCapture.php"><link rel="stylesheet" type="text/css" media="all" href="../assets/style.css"><script type="text/javascript" src="../assets/behavior.js"></script><body><div id="meta"><div class="file-path">payments/OrderCreateForCapture.php</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="hljs-preprocessor">&lt;?php</span></div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h1 id="order-create-using-paypal">Order Create Using PayPal</h1>
                    
2<p>In a call to the /payment resource, provide the payment details. In the intent field, specify order, and set the payment_method to paypal. Creating an order is similar to creating a payment.
                    
2<p>In a call to the /payment resource, provide the payment details. In the intent field, specify order, and set the payment_method to paypal. Creating an order is similar to creating a payment.
                    
3API used: /v1/payments/payment</p></div></div><div class="code"><div class="wrapper"><span class="hljs-keyword">require</span> <span class="hljs-keyword">__DIR__</span> . <span class="hljs-string">'/../bootstrap.php'</span>;
                    
4<span class="hljs-keyword">use</span> <span class="hljs-title">PayPal</span>\<span class="hljs-title">Api</span>\<span class="hljs-title">Amount</span>;
                    
51<span class="hljs-variable">$redirectUrls</span> = <span class="hljs-keyword">new</span> RedirectUrls();
                    
52<span class="hljs-variable">$redirectUrls</span>-&gt;setReturnUrl(<span class="hljs-string">"$baseUrl/OrderCapture.php?success=true"</span>)
                    
53    -&gt;setCancelUrl(<span class="hljs-string">"$baseUrl/OrderCapture.php?success=false"</span>);</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><h3 id="payment">Payment</h3>
                    
61passing it a valid apiContext.
                    
62(See bootstrap.php for more on <code>ApiContext</code>)
                    
63The return object contains the state and the
                    
66    <span class="hljs-variable">$payment</span>-&gt;create(<span class="hljs-variable">$apiContext</span>);
                    
67} <span class="hljs-keyword">catch</span> (<span class="hljs-keyword">Exception</span> <span class="hljs-variable">$ex</span>) {</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY</p></div></div><div class="code"><div class="wrapper">    ResultPrinter::printError(<span class="hljs-string">"Created Payment Order Using PayPal. Please visit the URL to Approve."</span>, <span class="hljs-string">"Payment"</span>, <span class="hljs-keyword">null</span>, <span class="hljs-variable">$request</span>, <span class="hljs-variable">$ex</span>);
                    
68    <span class="hljs-keyword">exit</span>(<span class="hljs-number">1</span>);
                    
71the buyer to. Retrieve the url from the $payment-&gt;getApprovalLink()
                    
72method</p></div></div><div class="code"><div class="wrapper"><span class="hljs-variable">$approvalUrl</span> = <span class="hljs-variable">$payment</span>-&gt;getApprovalLink();</div></div></div><div class="segment"><div class="comments "><div class="wrapper"><p>NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY</p></div></div><div class="code"><div class="wrapper"> ResultPrinter::printResult(<span class="hljs-string">"Created Payment Order Using PayPal. Please visit the URL to Approve."</span>, <span class="hljs-string">"Payment"</span>, <span class="hljs-string">"&lt;a href='$approvalUrl' &gt;$approvalUrl&lt;/a&gt;"</span>, <span class="hljs-variable">$request</span>, <span class="hljs-variable">$payment</span>);
                    
73
                    
                
AbstractRememberMeServices.php https://gitlab.com/Marwamimo/Crowdrise_Web | PHP | 312 lines
                    
1<?php
                    
2
                    
249
                    
250        throw new UnsupportedUserException(sprintf('There is no user provider that supports class "%s".', $class));
                    
251    }
                    
284        if (null !== $this->logger) {
                    
285            $this->logger->debug(sprintf('Clearing remember-me cookie "%s"', $this->options['name']));
                    
286        }
                    
306        if (null === $parameter && null !== $this->logger) {
                    
307            $this->logger->debug(sprintf('Did not send remember-me cookie (remember-me parameter "%s" was not sent).', $this->options['remember_me_parameter']));
                    
308        }
                    
                
BaseVarDumper.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 272 lines
                    
1<?php
                    
2/**
                    
29     * Displays a variable.
                    
30     * This method achieves the similar functionality as var_dump and print_r
                    
31     * but is more robust when handling complex objects such as Yii controllers.
                    
42     * Dumps a variable in terms of a string.
                    
43     * This method achieves the similar functionality as var_dump and print_r
                    
44     * but is more robust when handling complex objects such as Yii controllers.
                    
56        if ($highlight) {
                    
57            $result = highlight_string("<?php\n" . self::$_output, true);
                    
58            self::$_output = preg_replace('/&lt;\\?php<br \\/>/', '', $result, 1);
                    
119                    self::$_output .= "$className#$id\n" . $spaces . '(';
                    
120                    if ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__debugInfo')) {
                    
121                        $dumpValues = $var->__debugInfo();
                    
141     *
                    
142     * The string is a valid PHP expression that can be evaluated by PHP parser
                    
143     * and the evaluation result will give back the variable value.
                    
                
c.py https://gitlab.com/envieidoc/Clover | Python | 387 lines
                    
8#  which accompanies this distribution.  The full text of the license may be found at
                    
9#  http://opensource.org/licenses/bsd-license.php
                    
10#
                    
72
                    
73## PrintErrorMsg() method
                    
74#
                    
74#
                    
75#  print error message
                    
76#
                    
81#
                    
82def PrintErrorMsg(ErrorType, Msg, TableName, ItemId):
                    
83    Msg = Msg.replace('\n', '').replace('\r', '')
                    
386
                    
387    print 'Done!'
                    
388
                    
                
FileRunner.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 346 lines
                    
63import org.netbeans.modules.php.api.executable.PhpExecutable;
                    
64import org.netbeans.modules.php.api.executable.PhpInterpreter;
                    
65import org.netbeans.modules.php.api.util.Pair;
                    
71import org.netbeans.modules.php.project.ui.options.PhpOptions;
                    
72import org.netbeans.modules.php.project.util.PhpProjectUtils;
                    
73import org.openide.awt.HtmlBrowser;
                    
121
                    
122    public FileRunner phpArgs(String phpArgs) {
                    
123        this.phpArgs = phpArgs;
                    
272    boolean getRedirectToFile() {
                    
273        return getPhpOptions().isOpenResultInBrowser() || getPhpOptions().isOpenResultInEditor();
                    
274    }
                    
316        public void run() {
                    
317            PhpOptions options = PhpOptions.getInstance();
                    
318            try {
                    
                
class.wp-dependencies.php https://gitlab.com/VTTE/sitios-vtte | PHP | 449 lines
                    
1<?php
                    
2/**
                    
102		 * If nothing is passed, print the queue. If a string is passed,
                    
103		 * print that item. If an array is passed, print those items.
                    
104		 */
                    
416			case 'to_do':
                    
417			case 'to_print': // Back compat.
                    
418				return in_array( $handle, $this->to_do, true );
                    
420			case 'done':
                    
421			case 'printed': // Back compat.
                    
422				return in_array( $handle, $this->done, true );
                    
                
languages.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 393 lines
                    
1<?php
                    
2/**
                    
279				// Could not find the url, the information in the update server may be corrupt.
                    
280				$message  = JText::sprintf('COM_INSTALLER_MSG_LANGUAGES_CANT_FIND_REMOTE_MANIFEST', $language->name);
                    
281				$message .= ' ' . JText::_('COM_INSTALLER_MSG_LANGUAGES_TRY_LATER');
                    
291				// Could not find the url , maybe the url is wrong in the update server, or there is not internet access
                    
292				$message  = JText::sprintf('COM_INSTALLER_MSG_LANGUAGES_CANT_FIND_REMOTE_PACKAGE', $language->name);
                    
293				$message .= ' ' . JText::_('COM_INSTALLER_MSG_LANGUAGES_TRY_LATER');
                    
304				// There was an error installing the package.
                    
305				$message  = JText::sprintf('COM_INSTALLER_INSTALL_ERROR', $language->name);
                    
306				$message .= ' ' . JText::_('COM_INSTALLER_MSG_LANGUAGES_TRY_LATER');
                    
311			// Package installed successfully.
                    
312			$app->enqueueMessage(JText::sprintf('COM_INSTALLER_INSTALL_SUCCESS', $language->name));
                    
313
                    
                
pcmd_lm_warp.cxx https://gitlab.com/plastimatch/plastimatch | C++ | 354 lines
                    
16#include "plm_math.h"
                    
17#include "print_and_exit.h"
                    
18#include "raw_pointset.h"
                    
84    if (!lw) {
                    
85	print_and_exit ("Error, landmarks were not loaded successfully.\n");
                    
86    }
                    
91	if (!lw->m_input_img) {
                    
92	    print_and_exit ("Error reading input image: %s\n", 
                    
93		parms->input_img_fn.c_str());
                    
110	    if (!pli) {
                    
111		print_and_exit ("Error loading fixed image: %s\n",
                    
112		    parms->fixed_img_fn.c_str());
                    
139    // symbolType, see
                    
140    //http://www.slicer.org/slicerWiki/index.php/Modules:Fiducials-Documentation-3.4
                    
141    symbol =which_cluster+2; 
                    
                
sum_enhance_log.php https://gitlab.com/xusasuke6/Slg_php | PHP | 297 lines
                    
1<?php
                    
2
                    
3define('IN_DATANG_SYSTEM', true);
                    
4include "../../../config/config.php";
                    
5include SYSDIR_ADMIN."/include/global.php";
                    
76//exit($dateStart.'--'.$dateEnd);
                    
77//exit(print_r($match_data));
                    
78$ttype = isset($_REQUEST['ttype']) ? $_REQUEST['ttype'] :1;
                    
81
                    
82//if($ttype == 2){exit(print_r($date_arr));}
                    
83
                    
116}
                    
117//if($ttype == 1){exit(print_r($data_per));}
                    
118$data10 = array();
                    
144			}
                    
145			//if($ttype == 2){print_r($rid_arr[$v1['do_type']]);echo "<br>";}
                    
146		}
                    
                
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',
                    
                
comment.php https://gitlab.com/Gashler/sg | PHP | 333 lines
                    
81
                    
82	include( ABSPATH . 'wp-admin/edit-form-comment.php' );
                    
83
                    
159?>
                    
160<p><strong><?php _e('Caution:'); ?></strong> <?php echo $caution_msg; ?></p>
                    
161
                    
175<th scope="row"><?php _e('URL'); ?></th>
                    
176<td><a href="<?php echo $comment->comment_author_url; ?>"><?php echo $comment->comment_author_url; ?></a></td>
                    
177</tr>
                    
224	<?php submit_button( $button, 'primary', 'submit', false ); ?>
                    
225	<a href="<?php echo admin_url('edit-comments.php'); ?>" class="button-cancel"><?php esc_attr_e( 'Cancel' ); ?></a></td>
                    
226</p>
                    
254	if ( !$comment = get_comment($comment_id) )
                    
255		comment_footer_die( __( 'Invalid comment ID.' ) . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'edit-comments.php') );
                    
256	if ( !current_user_can( 'edit_comment', $comment->comment_ID ) )
                    
                
LzmaCompress.c https://gitlab.com/envieidoc/Clover | C | 382 lines
                    
11  which accompanies this distribution.  The full text of the license may be found at
                    
12  http://opensource.org/licenses/bsd-license.php
                    
13
                    
57  "Copyright (c) 2009-2012, Intel Corporation. All rights reserved."
                    
58void PrintHelp(char *buffer)
                    
59{
                    
75
                    
76int PrintError(char *buffer, const char *message)
                    
77{
                    
83
                    
84int PrintErrorNumber(char *buffer, SRes val)
                    
85{
                    
85{
                    
86  sprintf(buffer + strlen(buffer), "\nError code: %x\n", (unsigned)val);
                    
87  return 1;
                    
                
plugin.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 321 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id:plugin.php 6961 2007-03-15 16:06:53Z tcp $
                    
4 * @package		Joomla.Framework
                    
6 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
                    
7 * @license		GNU/GPL, see LICENSE.php
                    
8 * Joomla! is free software. This version may have been modified pursuant
                    
11 * other free or open source software licenses.
                    
12 * See COPYRIGHT.php for copyright notices and details.
                    
13 */
                    
237		if ($row->iscore) {
                    
238			JError::raiseWarning(100, JText::_('Plugin').' '.JText::_('Uninstall').': '.JText::sprintf('WARNCOREPLUGIN', $row->name)."<br />".JText::_('WARNCOREPLUGIN2'));
                    
239			return false;
                    
                
Attribute.php https://gitlab.com/reasonat/test8 | PHP | 345 lines
                    
1<?php
                    
2
                    
20 *
                    
21 * $attributes always prints out all the attributes. For example:
                    
22 * @code
                    
29 *
                    
30 * When printing out individual attributes to customize them within a Twig
                    
31 * template, use the "without" filter to prevent attributes that have already
                    
31 * template, use the "without" filter to prevent attributes that have already
                    
32 * been printed from being printed again. For example:
                    
33 * @code
                    
                
ErrorHandler.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 301 lines
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://cakephp.org CakePHP(tm) Project
                    
16 * @package       Cake.Error
                    
17 * @since         CakePHP(tm) v 0.10.5.1732
                    
18 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
19 */
                    
73 *
                    
74 * Error handler also provides the built in features for handling php errors (trigger_error).
                    
75 * While in debug mode, errors will be output to the screen using debugger. While in production mode,
                    
105 * @return void
                    
106 * @see http://php.net/manual/en/function.set-exception-handler.php
                    
107 */
                    
                
SQLiteGrammar.php https://gitlab.com/kimting254/wbms | PHP | 611 lines
                    
46	 *
                    
47	 * @param  \Illuminate\Database\Schema\Blueprint  $blueprint
                    
48	 * @param  \Illuminate\Support\Fluent  $command
                    
50	 */
                    
51	public function compileCreate(Blueprint $blueprint, Fluent $command)
                    
52	{
                    
144	 */
                    
145	public function compileAdd(Blueprint $blueprint, Fluent $command)
                    
146	{
                    
195	 *
                    
196	 * @param  \Illuminate\Database\Schema\Blueprint  $blueprint
                    
197	 * @param  \Illuminate\Support\Fluent  $command
                    
602	 */
                    
603	protected function modifyIncrement(Blueprint $blueprint, Fluent $column)
                    
604	{
                    
                
Type.php https://gitlab.com/oytunistrator/92five | PHP | 303 lines
                    
36 *
                    
37 * @package    PHPUnit
                    
38 * @subpackage Util
                    
38 * @subpackage Util
                    
39 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2001-2014 Sebastian Bergmann <sebastian@phpunit.de>
                    
82     *
                    
83     * The output of this method is similar to the output of print_r(), but
                    
84     * improved in various aspects:
                    
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);
                    
227        if (is_object($value)) {
                    
228            return sprintf(
                    
229              '%s Object (%s)',
                    
                
class-wc-shipping-legacy-flat-rate.php https://gitlab.com/iamgraeme/royalmile | PHP | 379 lines
                    
1<?php
                    
2if ( ! defined( 'ABSPATH' ) ) {
                    
26		$this->method_title       = __( 'Flat Rate (Legacy)', 'woocommerce' );
                    
27		$this->method_description = sprintf( __( '<strong>This method is deprecated in 2.6.0 and will be removed in future versions - we recommend disabling it and instead setting up a new rate within your <a href="%s">Shipping Zones</a>.</strong>', 'woocommerce' ), admin_url( 'admin.php?page=wc-settings&tab=shipping' ) );
                    
28		$this->init();
                    
40		if ( 'no' === $this->settings[ 'enabled' ] ) {
                    
41			wp_redirect( admin_url( 'admin.php?page=wc-settings&tab=shipping&section=options' ) );
                    
42			exit;
                    
76	public function init_form_fields() {
                    
77		$this->form_fields = include( 'includes/settings-flat-rate.php' );
                    
78	}
                    
86	protected function evaluate_cost( $sum, $args = array() ) {
                    
87		include_once( WC()->plugin_path() . '/includes/libraries/class-wc-eval-math.php' );
                    
88
                    
                
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	}
                    
                
BakeShell.php https://gitlab.com/ViniciusP/project-games | PHP | 317 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         0.1.0
                    
12 * @since         0.1.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
27 *
                    
28 * Bake is CakePHP's code generation script, which can help you kickstart
                    
29 * application development by writing fully functional skeleton controllers,
                    
31 *
                    
32 * @link http://book.cakephp.org/3.0/en/console-and-shells/code-generation-with-bake.html
                    
33 */
                    
                
class-popup-public.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 407 lines
                    
1<?php
                    
2// Load dependencies.
                    
2// Load dependencies.
                    
3require_once PO_INC_DIR . 'class-popup-base.php';
                    
4
                    
230	 * PopUp data is loaded via a normal WordPress ajax request, directed at
                    
231	 * the admin-ajax.php handler.
                    
232	 *
                    
237
                    
238		if ( ! in_array( $pagenow, array( 'wp-login.php', 'wp-register.php' ) ) ) {
                    
239			// Data is loaded via a normal WordPress ajax request.
                    
239			// Data is loaded via a normal WordPress ajax request.
                    
240			$this->script_data['ajaxurl'] = admin_url( 'admin-ajax.php' );
                    
241			$this->script_data['ajax_data']['orig_request_uri'] = $_SERVER['REQUEST_URI'];
                    
261
                    
262		if ( ! in_array( $pagenow, array( 'wp-login.php', 'wp-register.php' ) ) ) {
                    
263			/*
                    
                
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     */
                    
                
header.php https://gitlab.com/kaouech/theme | PHP | 198 lines
                    
1<?php include 'config.php' ?>
                    
2<!DOCTYPE html>
                    
29    <link href='bower_components/fullcalendar/dist/fullcalendar.css' rel='stylesheet'>
                    
30    <link href='bower_components/fullcalendar/dist/fullcalendar.print.css' rel='stylesheet' media='print'>
                    
31    <link href='bower_components/chosen/chosen.min.css' rel='stylesheet'>
                    
56<body>
                    
57<?php if (!isset($no_visible_elements) || !$no_visible_elements) { ?>
                    
58    <!-- topbar starts -->
                    
131    <!-- topbar ends -->
                    
132<?php } ?>
                    
133<div class="ch-container">
                    
134    <div class="row">
                    
135        <?php if (!isset($no_visible_elements) || !$no_visible_elements) { ?>
                    
136
                    
197            <!-- content starts -->
                    
198            <?php } ?>
                    
199
                    
                
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
                    
                
makeXMLForOneService.php https://gitlab.com/florianocomercial/centreon | PHP | 287 lines
                    
1<?php
                    
2/*
                    
38 */
                    
39require_once realpath(dirname(__FILE__) . "/../../../../../../config/centreon.config.php");
                    
40
                    
40
                    
41include_once $centreon_path . "www/class/centreonUtils.class.php";
                    
42
                    
45 */
                    
46include_once _CENTREON_PATH_ . "www/class/centreonXMLBGRequest.class.php";
                    
47include_once _CENTREON_PATH_ . "www/class/centreonLang.class.php";
                    
66} else {
                    
67	print "Bad Session ID";
                    
68	exit();
                    
135    if (strlen($outputLines[0]) > 100) {
                    
136	    $pluginShortOuput = sprintf("%.100s", $outputLines[0])."...";
                    
137    } else {
                    
                
class.jetpack-landing-page.php https://gitlab.com/thisishayat/itv-2016 | PHP | 299 lines
                    
1<?php
                    
2include_once( 'class.jetpack-admin-page.php' );
                    
25			$new_count_i18n = number_format_i18n( $new_modules_count );
                    
26			$span_title     = esc_attr( sprintf( _n( 'One New Jetpack Module', '%s New Jetpack Modules', $new_modules_count, 'jetpack' ), $new_count_i18n ) );
                    
27			$format         = _x( 'Jetpack %s', 'The menu item label with a new module count as %s', 'jetpack' );
                    
28			$update_markup  = "<span class='update-plugins count-{$new_modules_count}' title='$span_title'><span class='update-count'>$new_count_i18n</span></span>";
                    
29			$title          = sprintf( $format, $update_markup );
                    
30		}
                    
49		add_action( "admin_footer-$hook", apply_filters( 'jetpack_landing_page_js_templates_callback', array( $this, 'js_templates' ), $hook ) );
                    
50		/** This action is documented in class.jetpack.php */
                    
51		do_action( 'jetpack_admin_menu', $hook );
                    
144	function js_templates() {
                    
145		Jetpack::init()->load_view( 'admin/landing-page-templates.php' );
                    
146	}
                    
175		);
                    
176		Jetpack::init()->load_view( 'admin/admin-page.php', $data );
                    
177	}
                    
                
mysql.php https://gitlab.com/nacridan/Nacridan | PHP | 372 lines
                    
1<?php
                    
2
                    
10if (!function_exists('mysql_connect'))
                    
11	exit('This PHP environment doesn\'t have MySQL support built in. MySQL support is required if you want to use a MySQL database to run this forum. Consult the PHP documentation for further assistance.');
                    
12
                    
80			if (defined('PUN_SHOW_QUERIES'))
                    
81				$this->saved_queries[] = array($sql, sprintf('%.5f', get_microtime() - $q_start));
                    
82
                    
                
author.php https://gitlab.com/mucill/sman7 | PHP | 264 lines
                    
1<?php
                    
2/**
                    
37require SB.'admin/default/session_check.inc.php';
                    
38require SIMBIO.'simbio_GUI/table/simbio_table.inc.php';
                    
39require SIMBIO.'simbio_GUI/form_maker/simbio_form_table_AJAX.inc.php';
                    
39require SIMBIO.'simbio_GUI/form_maker/simbio_form_table_AJAX.inc.php';
                    
40require SIMBIO.'simbio_GUI/paging/simbio_paging.inc.php';
                    
41require SIMBIO.'simbio_DB/datagrid/simbio_dbgrid.inc.php';
                    
120        utility::jsAlert(__('Some or All Data NOT deleted successfully!\nPlease contact system administrator'));
                    
121        echo '<script type="text/javascript">parent.jQuery(\'#mainContent\').simbioAJAX(\''.$_SERVER['PHP_SELF'].'?'.$_POST['lastQueryStr'].'\');</script>';
                    
122    }
                    
135	  <div class="btn-group">
                    
136      <a href="<?php echo MWB; ?>master_file/author.php" class="btn btn-default"><i class="glyphicon glyphicon-list-alt"></i>&nbsp;<?php echo __('Author List'); ?></a>
                    
137      <a href="<?php echo MWB; ?>master_file/author.php?action=detail" class="btn btn-default"><i class="glyphicon glyphicon-plus"></i>&nbsp;<?php echo __('Add New Author'); ?></a>
                    
138	  </div>
                    
139    <form name="search" action="<?php echo MWB; ?>master_file/author.php" id="search" method="get" style="display: inline;"><?php echo __('Search'); ?> :
                    
140    <input type="text" name="keywords" size="30" />
                    
                
Main.java https://gitlab.com/Atomic-ROM/art | Java | 359 lines
                    
39        if (WRITE_HPROF_DATA) {
                    
40            dumpHprofDataMethod = getDumpHprofDataMethod();
                    
41            if (dumpHprofDataMethod != null) {
                    
42                dumpFile = getDumpFileName();
                    
43                System.out.println("Sending output to " + dumpFile);
                    
44            }
                    
64    /**
                    
65     * Finds VMDebug.dumpHprofData() through reflection.  In the reference
                    
66     * implementation this will not be available.
                    
69     */
                    
70    private static Method getDumpHprofDataMethod() {
                    
71        ClassLoader myLoader = Main.class.getClassLoader();
                    
83        } catch (NoSuchMethodException nsme) {
                    
84            System.err.println("Found VMDebug but not dumpHprofData method");
                    
85            return null;
                    
                
upload.php https://gitlab.com/plusplusminus/isissoftware | PHP | 245 lines
                    
1<?php
                    
2
                    
7/**
                    
8 * upload.php
                    
9 *
                    
115		if ( $_FILES['file']['size'] > 0 && $_FILES['file']['size'] > $max_upload_size_in_bytes ) {
                    
116			die( '{"status" : "error", "error" : {"code": 104, "message": "' . sprintf( __( 'File exceeds size limit. Maximum file size: %dMB', 'gravityforms' ), $max_upload_size_in_mb ) . '"}}' );
                    
117		}
                    
126				GFCommon::log_debug( "GFAsyncUpload::upload(): The uploaded file type is not allowed: {$file_name}" );
                    
127				die( '{"status" : "error", "error" : {"code": 104, "message": "' . sprintf( __( 'The uploaded file type is not allowed. Must be one of the following: %s', 'gravityforms' ), strtolower( $field['allowedExtensions'] ) ) . '"}}' );
                    
128			}
                    
195				// Read binary input stream and append it to temp file
                    
196				$in = @fopen( 'php://input', 'rb' );
                    
197
                    
234
                    
235		GFCommon::log_debug( sprintf( 'GFAsyncUpload::upload(): File upload complete. temp_filename: %s  uploaded_filename: %s ', $tmp_file_name, $uploaded_filename ) );
                    
236
                    
                
edit.php https://gitlab.com/JrLucena/moodle | PHP | 241 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
24
                    
25require_once('../config.php');
                    
26require_once('lib.php');
                    
26require_once('lib.php');
                    
27require_once('edit_form.php');
                    
28
                    
39    if (!empty($id)) {
                    
40        $returnurl = new moodle_url($CFG->wwwroot . '/course/view.php', array('id' => $id));
                    
41    } else {
                    
46            case 'category':
                    
47                $returnurl = new moodle_url($CFG->wwwroot . '/course/index.php', array('categoryid' => $categoryid));
                    
48                break;
                    
49            case 'catmanage':
                    
50                $returnurl = new moodle_url($CFG->wwwroot . '/course/management.php', array('categoryid' => $categoryid));
                    
51                break;
                    
                
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)),
                    
                
UserApi.md https://gitlab.com/akkhil2012/swagger-codegen | Markdown | 374 lines
                    
24### Example 
                    
25```php
                    
26<?php
                    
26<?php
                    
27require_once(__DIR__ . '/vendor/autoload.php');
                    
28
                    
68### Example 
                    
69```php
                    
70<?php
                    
70<?php
                    
71require_once(__DIR__ . '/vendor/autoload.php');
                    
72
                    
112### Example 
                    
113```php
                    
114<?php
                    
                
adodb-sqlite3.inc.php https://gitlab.com/mrktinh/bookonline | PHP | 438 lines
                    
1<?php
                    
2/*
                    
239			if ($num === false) {
                    
240				$this->Execute(sprintf($this->_genSeqSQL ,$seq));
                    
241				$start -= 1;
                    
266		}
                    
267		$ok = $this->Execute(sprintf($this->_genSeqSQL,$seqname));
                    
268		if (!$ok) {
                    
280		}
                    
281		return $this->Execute(sprintf($this->_dropSeqSQL,$seqname));
                    
282	}
                    
299		}
                    
300		$SQL=sprintf("SELECT name,sql FROM sqlite_master WHERE type='index' AND tbl_name='%s'", strtolower($table));
                    
301		$rs = $this->Execute($SQL);
                    
                
trpage_pparse.cpp https://gitlab.com/smurmann/KDUProjects | C++ | 431 lines
                    
32   // all the tiles are done
                    
33   void printBuf(int lod, int x, int y, trpgr_Archive *archive, trpgPrintGraphParser& parser, trpgMemReadBuffer &buf, trpgPrintBuffer &pBuf)
                    
34   {
                    
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{
                    
133
                    
134unsigned int trpgPrintGraphParser::GetNbChildrenRef() const
                    
135{
                    
340
                    
341bool trpgPrintArchive(trpgr_Archive *archive,trpgPrintBuffer &pBuf,int flags)
                    
342{
                    
                
rulemailcollector.class.php https://gitlab.com/OnBlox/OnBlox-Template | PHP | 333 lines
                    
1<?php
                    
2/*
                    
136      $criterias['GROUPS']['field']                   = 'completename';
                    
137      $criterias['GROUPS']['name']                    = sprintf(__('%1$s: %2$s'),__('User'),
                    
138                                                                __('Group'));
                    
204
                    
205      $actions['_refuse_email_no_response']['name']    = sprintf(__('%1$s (%2$s)'), __('Reject email'),
                    
206                                                                 __('without email response'));
                    
209
                    
210      $actions['_refuse_email_with_response']['name']  = sprintf(__('%1$s (%2$s)'), __('Reject email'),
                    
211                                                                 __('with email response'));
                    
                
news-edit.php https://gitlab.com/Nightprince/Warcry-CMS | PHP | 436 lines
                    
21	<ul>
                    
22		<li><a href="index.php?page=news">News</a></li>
                    
23		<li><a href="index.php?page=news-post">Post</a></li>
                    
64            
                    
65            <form method="post" action="<?php echo $config['BaseURL']; ?>/admin/execute.php?take=editNews&id=<?php echo $row['id']; ?>" id="newsForm" name="editNewsForm">
                    
66            
                    
94                  <div>
                    
95                    <textarea class="required bbcode" id="textarea" name="text"><?php echo $row['text']; ?></textarea>
                    
96                  </div>
                    
102                {
                    
103                    productUpdatePreview('<?php echo $config['BaseURL'] . '/uploads/news/icons/' . $row['image']; ?>', '<?php echo $row['image']; ?>');
                    
104                });
                    
122        
                    
123                    <form id="croppingForm" method="POST" onsubmit="return false;" action="<?php echo $config['BaseURL']; ?>/admin/execute.php?take=cropImage" name="cropForm">
                    
124                        
                    
                
ConfigForm.php https://gitlab.com/arvidthd/docolist | PHP | 451 lines
                    
5 */
                    
6class HTMLPurifier_Printer_ConfigForm extends HTMLPurifier_Printer
                    
7{
                    
209 */
                    
210class HTMLPurifier_Printer_ConfigForm_NullDecorator extends HTMLPurifier_Printer
                    
211{
                    
218    /**
                    
219     * @param HTMLPurifier_Printer $obj Printer to decorate
                    
220     */
                    
277 */
                    
278class HTMLPurifier_Printer_ConfigForm_default extends HTMLPurifier_Printer
                    
279{
                    
384 */
                    
385class HTMLPurifier_Printer_ConfigForm_bool extends HTMLPurifier_Printer
                    
386{
                    
                
ARC2_TestHandler.php https://gitlab.com/klausmig/CloudSemanticWeb | PHP | 434 lines
                    
91      $pass = 0;
                    
92      $r .= htmlspecialchars($nl . $nl . print_r($errors, 1) . $nl . print_r($rest, 1));
                    
93    }
                    
124      $pass = 1;
                    
125      $r .= htmlspecialchars($nl . $nl . print_r($errors, 1) . $nl . print_r($rest, 1));
                    
126    }
                    
226    }
                    
227    //echo '<pre>query result: ' . $nl . htmlspecialchars(print_r($qr_result, 1)) . '</pre>';
                    
228    if (!$query || $errors || $rest) {
                    
248    $pass_info = $sub_r['info'];
                    
249    $info = print_r($pass_info, 1) . $nl;
                    
250    $info .= '<hr />sql: ' . $nl . htmlspecialchars($sql['result']) . '<hr />';
                    
250    $info .= '<hr />sql: ' . $nl . htmlspecialchars($sql['result']) . '<hr />';
                    
251    $info .= $pass ? '' : print_r($graph_data, 1) . $nl . htmlspecialchars(print_r($graph_data_value, 1)) . '<hr />';
                    
252    $info .= $pass ? '' : print_r($data, 1) . $nl . htmlspecialchars(print_r($data_value, 1)) . '<hr />';
                    
                
update_payment.php https://gitlab.com/exabyte-lab/tiffinbox | PHP | 343 lines
                    
8		  method: "POST",
                    
9		  url: "<?php echo base_url();?>accounting/getClasses",
                    
10		 
                    
28		  method: "POST",
                    
29		  url: "<?php echo base_url();?>accounting/getStudentByClassId",
                    
30		  data: { class_id: class_id }
                    
55					<div class="page-header position-relative">
                    
56					 <a href="<?php echo base_url();?>accounting/payments">
                    
57						<button class="btn btn-primary pull-right">
                    
74						
                    
75						 <?php
                    
76						 //check any alert message or not
                    
79						 ?>
                    
80						 //Print Success Alert Message: 
                    
81								<div class="alert alert-success no-margin">
                    
                
swekey.auth.lib.php https://gitlab.com/luyxtran264/myproject | PHP | 315 lines
                    
136    </script>
                    
137        <?php
                    
138
                    
143        if (count($_SESSION['SWEKEY']['VALID_SWEKEYS']) == 0) {
                    
144            return sprintf(
                    
145                __('File %s does not contain any key id'),
                    
221        if (key.length != 32) {
                    
222            window.location.search="?swekey_id=" + key + "&token=<?php echo $_SESSION[' PMA_token ']; ?>";
                    
223        } else {
                    
227            }
                    
228            Swekey_SetUnplugUrl(key, "pma_login", url + "?session_to_unset=<?php echo session_id();?>&token=<?php echo $_SESSION[' PMA_token ']; ?>");
                    
229            var otp = Swekey_GetOtp(key, <?php echo '"' , $_SESSION['SWEKEY']['RND_TOKEN'] , '"';?>);
                    
271            {
                    
272                window.open("<?php echo PMA_linkURL('https://www.phpmyadmin.net/auth_key/'); ?>");
                    
273            }
                    
                
index.php https://gitlab.com/iarafat/web-apps-php-b-26 | PHP | 234 lines
                    
1<?php
                    
2include_once "../vendor/autoload.php";
                    
12//echo "<pre>";
                    
13//print_r($showdata);
                    
14//echo "</pre>";
                    
27    <body>
                    
28    <?php include_once "include/log-navbar.php"; ?>
                    
29    <div class="container">
                    
31            <div class="col-md-12" style="margin-top: 50px">
                    
32                <h4 class="text-success"><?php $obj->Validation("Login"); ?></h4>
                    
33                <?php
                    
200
                    
201                                <td><a href="profile2.php?id=<?php echo $onedata['users_id'] ?>">View</a></td>
                    
202                                <td><a href="profile.php?id=<?php echo $onedata['users_id'] ?>">Edit</a></td>
                    
203                                <td><?php if ($onedata['is_admin'] == 0) { ?>
                    
204                                        <a href="trash.php?id=<?php echo $onedata['users_id'] ?>">Delete</a>
                    
205                                    <?php } ?>
                    
                
layout.class.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 267 lines
                    
1<?php
                    
2/**
                    
15
                    
16Files: default.php, style.css
                    
17
                    
83				default:
                    
84					print "<p>error: {$block->header} using an unknown section ({$block->section})";
                    
85					break;
                    
127		$qp = explode("/", ltrim(_get_query(), "/"));
                    
128		// php sucks
                    
129		switch($qp[0]) {
                    
197
                    
198		print <<<EOD
                    
199<!doctype html>
                    
                
libgnomecups-0.2.3-cups-1.6.patch https://gitlab.com/abchk1234/slackbuilds | Patch | 285 lines
                    
19
                    
20diff --git a/libgnomecups/gnome-cups-printer.c b/libgnomecups/gnome-cups-printer.c
                    
21index c924af0..f5e1ef7 100644
                    
58 };
                    
59@@ -173,9 +201,9 @@ map_reasons (GnomeCupsPrinter *printer,
                    
60 	printer->details->state_reasons = NULL;
                    
70 
                    
71@@ -224,8 +252,8 @@ gnome_cups_printer_get_info (GnomeCupsPrinter *printer)
                    
72 	return printer->details->info;
                    
97+			if (!g_ascii_strcasecmp (ippGetName (attr), "printer-state-reasons")) {
                    
98 				map_reasons (printer, attr);
                    
99 			}
                    
99 			}
                    
100 			MAP_INT (printer->details->state, "printer-state");
                    
101@@ -570,7 +598,7 @@ get_default (void)
                    
                
module.php https://gitlab.com/mucill/sman7 | PHP | 232 lines
                    
1<?php
                    
2/**
                    
43
                    
44require SIMBIO.'simbio_GUI/form_maker/simbio_form_table_AJAX.inc.php';
                    
45require SIMBIO.'simbio_GUI/table/simbio_table.inc.php';
                    
45require SIMBIO.'simbio_GUI/table/simbio_table.inc.php';
                    
46require SIMBIO.'simbio_GUI/paging/simbio_paging.inc.php';
                    
47require SIMBIO.'simbio_DB/datagrid/simbio_dbgrid.inc.php';
                    
130        utility::jsAlert(__('Some or All Data NOT deleted successfully!\nPlease contact system administrator'));
                    
131        echo '<script type="text/javascript">parent.$(\'#mainContent\').simbioAJAX(\''.$_SERVER['PHP_SELF'].'?'.$_POST['lastQueryStr'].'\');</script>';
                    
132    }
                    
145	  <div class="btn-group">
                    
146      <a href="<?php echo MWB; ?>system/module.php" class="btn btn-default"><i class="glyphicon glyphicon-list-alt"></i>&nbsp;<?php echo __('Modules List'); ?></a>
                    
147      <a href="<?php echo MWB; ?>system/module.php?action=detail" class="btn btn-default"><i class="glyphicon glyphicon-plus"></i>&nbsp;<?php echo __('Add New Modules'); ?></a>
                    
148	  </div>
                    
149    <form name="search" action="<?php echo MWB; ?>system/module.php" id="search" method="get" style="display: inline;"><?php echo __('Search'); ?> :
                    
150    <input type="text" name="keywords" size="30" />
                    
                
host.go https://gitlab.com/4144/gcc | Go | 395 lines
                    
58	InheritEnv []string    // environment variables to inherit from host, as "key"
                    
59	Logger     *log.Logger // optional log for errors or nil to use log.Print
                    
60	Args       []string    // optional arguments to pass to child process
                    
84//      ...
                    
85//      Env: []string{"SCRIPT_FILENAME=foo.php"},
                    
86//    }
                    
167	if req.ContentLength > 0 {
                    
168		env = append(env, fmt.Sprintf("CONTENT_LENGTH=%d", req.ContentLength))
                    
169	}
                    
210		rw.WriteHeader(http.StatusInternalServerError)
                    
211		h.printf("CGI error: %v", err)
                    
212	}
                    
249			rw.WriteHeader(http.StatusInternalServerError)
                    
250			h.printf("cgi: long header line from subprocess.")
                    
251			return
                    
                
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);
                    
                
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
                    
                
 

Source

Language