100+ results results for 'php print' (1301 ms)
1<?php 2 378 $name, 379 $_SERVER['PHP_SELF'].' '.$name 380 ); 415 { 416 return sprintf('%s %s', $this->getFullName(), $this->definition->getSynopsis()); 417 } 490 $commandXML->appendChild($usageXML = $dom->createElement('usage')); 491 $usageXML->appendChild($dom->createTextNode(sprintf($this->getSynopsis(), ''))); 492Particle3DTest.cpp https://github.com/dumganhar/cocos2d-x.git | C++ | 480 lines
78 listener->onTouchesEnded = CC_CALLBACK_2(Particle3DTestDemo::onTouchesEnded, this); 79 _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this); 80 135 char str[128]; 136 sprintf(str, "Particle Count: %d", count); 137 _particleLab->setString(str);header.tmpl.php https://github.com/harriswong/ATutor.git | PHP | 237 lines
87 <?php if (get_num_new_messages()): ?> 88 <strong><a href="<?php echo $this->base_path; ?>inbox/index.php"><?php echo _AT('inbox'); ?> - <?php echo get_num_new_messages(); ?></a></strong> | 89 <?php else: ?> 102 <a href="<?php echo $this->base_path; ?>browse.php"><?php echo _AT('browse_courses'); ?></a> | 103 <a href="<?php echo $this->base_path; ?>login.php?course=<?php echo $_SESSION['course_id']; ?>"><?php echo _AT('login'); ?></a> | 104 <a href="<?php echo $this->base_path; ?>search.php"><?php echo _AT('search'); ?></a> | 160 <?php else: ?> 161 <li><a href="<?php echo $page['url']; ?>" <?php echo $accesskey_text; ?> title="<?php echo $page['title'] . $accesskey_title; ?>"><?php echo $page['title']; ?></a></li> 162 <?php endif; ?> 222 if ($this->sequence_links['previous']): ?> 223 <a href="<?php echo $this->sequence_links['previous']['url']; ?>" title="<?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?> Alt+," accesskey=","><img src="<?php echo $this->img; ?>previous.gif" border="0" alt="<?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?> Alt+," class="img-size-ascdesc" /></a> 224 <?php endif; 225 if ($this->sequence_links['next']): ?> 226 <a href="<?php echo $this->sequence_links['next']['url']; ?>" title="<?php echo _AT('next_topic').': '.$this->sequence_links['next']['title']; ?> Alt+." accesskey="."><img src="<?php echo $this->img; ?>next.gif" border="0" alt="<?php echo _AT('next_topic').': '.$this->sequence_links['next']['title']; ?> Alt+." class="img-size-ascdesc" /></a> 227 <?php endif; ?>ContributionPage.php https://github.com/michaelmcandrew/vaw.git | PHP | 354 lines
1<?php 2 36 37require_once 'CRM/Core/Form.php'; 38require_once 'CRM/Core/PseudoConstant.php'; 38require_once 'CRM/Core/PseudoConstant.php'; 39require_once 'CRM/Contribute/PseudoConstant.php'; 40 115 // set up tabs 116 require_once 'CRM/Contribute/Form/ContributionPage/TabHeader.php'; 117 CRM_Contribute_Form_ContributionPage_TabHeader::build( $this ); 224 //set defaults for pledgeBlock values. 225 require_once 'CRM/Pledge/BAO/PledgeBlock.php'; 226 $pledgeBlockParams = array( 'entity_id' => $this->_id, 342 { 343 if ( $this->controller->getPrint( ) == CRM_Core_Smarty::PRINT_NOFORM || 344 $this->getVar( '_id' ) <= 0 ||admin_review.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 501 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 2 3require_once(APPPATH.'controllers/project.php'); 4 45 } 46 //print_r($this->names); 47 129 130 //print_r($this->input->post()); 131 $par = array( 294 295 //print_r($this->input->post()); 296 $parstate = array( 337 338 print_r($project_chaps_id); 339class-wp-terms-list-table.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 454 lines
1<?php 2/** 207 208 // If the page starts in a subtree, print the parents. 209 if ( $count == $start && $term->parent > 0 && empty( $_REQUEST['s'] ) ) { 258 if ( current_user_can( get_taxonomy( $this->screen->taxonomy )->cap->delete_terms ) && $tag->term_id != $default_term ) 259 return '<label class="screen-reader-text" for="cb-select-' . $tag->term_id . '">' . sprintf( __( 'Select %s' ), $tag->name ) . '</label>' 260 . '<input type="checkbox" name="delete_tags[]" value="' . $tag->term_id . '" id="cb-select-' . $tag->term_id . '" />'; 290 291 $out = '<strong><a class="row-title" href="' . $edit_link . '" title="' . esc_attr( sprintf( __( 'Edit “%s”' ), $name ) ) . '">' . $name . '</a></strong><br />'; 292 298 if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term ) 299 $actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>"; 300 if ( $tax->public ) 331 332 /** This filter is documented in wp-admin/edit-tag-form.php */ 333 $out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug ) . '</div>';web.php https://github.com/XioNoX/Benevolus.git | PHP | 509 lines
1<?php 2 3/** 4 Web pack for the PHP Fat-Free Framework 5 63 if (!is_file($path.$file)) { 64 trigger_error(sprintf(self::TEXT_Minify,$file)); 65 return $echo?NULL:FALSE; 205 if ($echo) { 206 if (PHP_SAPI!='cli' && !headers_sent()) 207 header(self::HTTP_Content.': '.$mime[$ext[1]].'; '. 295 self::HTTP_Agent.': Mozilla/5.0 '. 296 '(compatible;'.PHP_OS.')'.self::EOL. 297 ($reqhdrs? 485 // Sockets extension required 486 trigger_error(sprintf(self::TEXT_PHPExt,'sockets')); 487 // Default translationsauth_tkt.py https://bitbucket.org/eaviles/gobierno.git | Python | 380 lines
1# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) 2# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 3########################################################################## 66 os.environ['REMOTE_ADDR'], tokens=['admin']) 67 print 'Status: 200 OK' 68 print 'Content-type: text/html' 68 print 'Content-type: text/html' 69 print token.cookie() 70 printStorageServiceSettings.php https://bitbucket.org/skudatech/azure-sdk-for-php.git | PHP | 485 lines
1<?php 2 14 * 15 * PHP version 5 16 * 18 * @package WindowsAzure\Common\Internal 19 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 20 * @copyright 2012 Microsoft Corporation 21 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 22 * @link https://github.com/windowsazure/azure-sdk-for-php 23 */ 35 * @package WindowsAzure\Common\Internal 36 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 37 * @copyright 2012 Microsoft Corporation 39 * @version Release: @package_version@ 40 * @link https://github.com/windowsazure/azure-sdk-for-php 41 */twitter-timeline.php https://gitlab.com/hunt9310/thereback | 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' );view.html.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 496 lines
1<?php 2/** 448 { 449 $title = JText::sprintf('JPAGETITLE', $app->get('sitename'), $title); 450 } 452 { 453 $title = JText::sprintf('JPAGETITLE', $title, $app->get('sitename')); 454 }acpiphp_ibm.c https://gitlab.com/karrei/imx6-kernel | C | 487 lines
27 28#define pr_fmt(fmt) "acpiphp_ibm: " fmt 29 39 40#include "acpiphp.h" 41#include "../pci.h" 104 u32 lvl, void *context, void **rv); 105static int __init ibm_acpiphp_init(void); 106static void __exit ibm_acpiphp_exit(void); 117}; 118static struct acpiphp_attention_info ibm_attention_info = 119{ 167 * 168 * Description: This method is registered with the acpiphp module as a 169 * callback to do the device specific task of setting the LED status.hostkreskoweczki.py https://gitlab.com/Ghoz/iptvplayer-for-e2 | Python | 318 lines
6from Plugins.Extensions.IPTVPlayer.components.ihost import CHostBase, CBaseHostClass, CDisplayListItem, RetHost, CUrlItem, ArticleContent 7from Plugins.Extensions.IPTVPlayer.tools.iptvtools import printDBG, printExc, CSearchHistoryHelper, GetDefaultLang, remove_html_markup, GetLogoDir, GetCookieDir, byteify 8from Plugins.Extensions.IPTVPlayer.libs.pCommon import common, CParsingHelper 60 self.MAIN_URL = 'http://www.kreskoweczki.pl/' 61 self.SEARCH_URL = self.MAIN_URL + 'search.php?keywords=' 62 self.DEFAULT_ICON = "http://www.kreskoweczki.pl/uploads/custom-logo.png" 73 def listABC(self, cItem, category): 74 printDBG("KreskoweczkiPL.listABC") 75 88 def listTitles(self, cItem, nextCategory): 89 printDBG("KreskoweczkiPL.listTitles") 90 subCat = cItem.get('sub_cat', '') 96 def listItems(self, cItem): 97 printDBG("KreskoweczkiPL.listItems") 98internal-link-aliases.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 374 lines
1<?php 2 34 if (suwp::permalink_mode() != SUWP_PRETTY_PERMALINKS) 35 $this->print_message('error', sprintf(__('Link Mask Generator won’t work with default or “pathinfo” permalinks. Please change your <a href="%s">permalink structure</a> to enable this module’s functionality.', 'seo-ultimate'), 'options-permalink.php')); 36Period.php https://github.com/quarkness/piwik.git | PHP | 418 lines
1<?php 2/** 381 382 Piwik_Query(sprintf($query, $blobTable)); 383 Piwik_Query(sprintf($query, $numericTable)); 396 397 Piwik_Query(sprintf($query, $blobTable), $bind); 398 Piwik_Query(sprintf($query, $numericTable), $bind);index.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 428 lines
66 67$url = new moodle_url('/report/progress/index.php', array('course'=>$id)); 68if ($sort !== '') { 273 274 print $pagingbar; 275 300 301 // Print user identity columns 302 foreach ($extrafields as $field) { 357 } else { 358 print '<tr><th scope="row"><a href="'.$CFG->wwwroot.'/user/view.php?id='. 359 $user->id.'&course='.$course->id.'">'.fullname($user).'</a></th>'; 421 422print '<ul class="progress-actions"><li><a href="index.php?course='.$course->id. 423 '&format=csv">'.get_string('csvdownload','completion').'</a></li>EditView.php https://github.com/lukio/sugarcrm_dev.git | PHP | 349 lines
1<?php 2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 45 46require_once('modules/Campaigns/utils.php'); 47 106}else{ 107 $params[] = "<a href='index.php?module={$focus->module_dir}&action=DetailView&record={$focus->id}'>{$focus->name}</a>"; 108 $params[] = $GLOBALS['app_strings']['LBL_EDIT_BUTTON_LABEL']; 166//Assign qsd script 167require_once('include/QuickSearchDefaults.php'); 168$qsd = new QuickSearchDefaults(); 172$xtpl->assign("CANCEL_SCRIPT", $cancel_script); 173$xtpl->assign("PRINT_URL", "index.php?".$GLOBALS['request_string']); 174$xtpl->assign("JAVASCRIPT", get_set_focus_js() . $quicksearch_js); 176if(!is_file($GLOBALS['sugar_config']['cache_dir'] . 'jsLanguage/' . $GLOBALS['current_language'] . '.js')) { 177 require_once('include/language/jsLanguage.php'); 178 jsLanguage::createAppStringsCache($GLOBALS['current_language']);TextArea.php https://gitlab.com/ElvisAns/tiki | PHP | 377 lines
1<?php 2 112 $wikilib = TikiLib::lib('wiki'); 113 $wikilib->update_wikicontent_relations($value, 'trackeritemfield', sprintf("%d:%d", $itemId, $fieldId)); 114 $wikilib->update_wikicontent_links($value, 'trackeritemfield', sprintf("%d:%d", $itemId, $fieldId));class-cp-user-relationships.php https://gitlab.com/clusterpress/clusterpress | PHP | 543 lines
1<?php 2/** 401 $sql = array( 402 'select' => sprintf( 'SELECT %s FROM %s', esc_sql( $column ), $this->table ), 403 'where' => array(), 466 $sql = array( 467 'select' => sprintf( 'SELECT count( %s ) FROM %s', esc_sql( $column ), $this->table ), 468 'where' => array(), 477 if ( $group_by && in_array( $group_by, array( 'user_id', 'primary_id', 'secondary_id' ) ) ) { 478 $sql['select'] = sprintf( 'SELECT DISTINCT %s, count( %s ) as count FROM %s', esc_sql( $group_by ), esc_sql( $column ), $this->table ); 479 $sql['groupby'] = sprintf( 'GROUP BY %s', esc_sql( $group_by ) ); 531 $sql = array( 532 'select' => sprintf( 'DELETE FROM %s', $this->table ), 533 );index.php https://github.com/tlezotte/HCR.git | PHP | 342 lines
56 <link href="/Common/noPrint.css" rel="stylesheet" type="text/css"> 57 <link href="/Common/Print.css" rel="stylesheet" type="text/css" media="print"> 58 <link href="/Common/company.css" rel="stylesheet" type="text/css" media="screen"> 79 <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div> 80 <img src="/Common/images/companyPrint.gif" alt="your company" name="Print" width="437" height="61" id="Print" /> 81 <div id="noPrint"> 148 <!-- 149 <td nowrap><a href="../Help/CER/index.php" class="off">Capital Expense</a></td> 150 <td width="20" valign="middle" nowrap><div align="center"><img src="../images/Dot.gif" width="10" height="10"></div></td> 177 ?> 178 <div align="right" class="FieldNumberDisabled"><strong><?= $language['label']['welcome']; ?> <a href="../../Administration/user_information.php" class="FieldNumberDisabled" <?php help('', 'Edit your user information', 'default'); ?>><?= ucwords(strtolower($_SESSION['fullname'])); ?></a></strong> <a href="../../logout.php" class="FieldNumberDisabled" <?php help('', 'Selecting [logout] will Log you out of the '.$default[title1].' and stop automatic cookie login', 'default'); ?>>[logout]</a> </div> 179 <?php 310 <tr> 311 <td width="50%" nowrap><!-- InstanceBeginEditable name="copyright" --><?php include('../include/copyright.php'); ?><!-- InstanceBeginEditable --></td> 312 <td width="50%"><div id="noPrint" align="right"><!-- InstanceBeginEditable name="version" --><!-- InstanceEndEditable --></div></td>Move.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 364 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4: */ 3// +----------------------------------------------------------------------+ 4// | PHP version 5 | 5// +----------------------------------------------------------------------+ 9// | This LICENSE is in the BSD license style. | 10// | http://www.opensource.org/licenses/bsd-license.php | 11// | | 43// 44// $Id: Move.php 12 2007-09-17 20:20:11Z killersoft $ 45// 77 * 'q [quiet]' => true|false, 78 * // prints as little as possible 79 * 'force' => true|false, 112 * <code> 113 * <?php 114 * require_once 'VersionControl/SVN.php';admin.php https://github.com/Brucee/pyrocms.git | PHP | 562 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2/** 376 $link = anchor('admin/pages/preview/'.$id, $this->input->post('title'), 'class="modal-large"'); 377 $this->session->set_flashdata('success', sprintf(lang('pages_edit_success'), $link)); 378 407 $this->template 408 ->title($this->module_details['name'], sprintf(lang('pages.edit_title'), $page->title)) 409 475 { 476 $this->session->set_flashdata('success', sprintf(lang('pages_delete_success'), $deleted_ids[0])); 477 } 479 { 480 $this->session->set_flashdata('success', sprintf(lang('pages_mass_delete_success'), count($deleted_ids))); 481 } 543 544 <li id="page_<?php echo $page['id']; ?>"> 545 <div>PerformanceScenarioTest.cpp https://github.com/dumganhar/cocos2d-x.git | C++ | 438 lines
77 listener->onTouchesMoved = CC_CALLBACK_2(ScenarioTest::onTouchesMoved, this); 78 _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this); 79 157 char str[32] = { 0 }; 158 sprintf(str, "Particles : %d", _particleNumber); 159 _particleLabel = Label::createWithTTF(str, "fonts/arial.ttf", 15); 196 char str[25] = { 0 }; 197 sprintf(str, "Particles : %d", _particleNumber); 198 _particleLabel->setString(str); 214 char str[25] = { 0 }; 215 sprintf(str, "Particles : %d", _particleNumber); 216 _particleLabel->setString(str); 257 char str[20] = {0}; 258 sprintf(str, "Sprites : %d", (int)_spriteArray.size()); 259 _spriteLabel->setString(str);zone.php https://bitbucket.org/sandeepbhaskar/inspiredliving.git | PHP | 441 lines
1<?php 2class ControllerLocalisationZone extends Controller { 411 if ($store_total) { 412 $this->error['warning'] = sprintf($this->language->get('error_store'), $store_total); 413 } 417 if ($address_total) { 418 $this->error['warning'] = sprintf($this->language->get('error_address'), $address_total); 419 } 423 if ($affiliate_total) { 424 $this->error['warning'] = sprintf($this->language->get('error_affiliate'), $affiliate_total); 425 } 429 if ($zone_to_geo_zone_total) { 430 $this->error['warning'] = sprintf($this->language->get('error_zone_to_geo_zone'), $zone_to_geo_zone_total); 431 }config.php https://github.com/olberger/fusionforge.git | PHP | 396 lines
4 * NOTE: The settings here should probably not need to be changed. 5 * The user-configurable settings have been moved to IniConfig.php 6 * The run-time code has been moved to lib/IniConfig.php:fix_configs() 16define ('_DEBUG_PARSER', 4); // verbose parsing steps 17define ('_DEBUG_TRACE', 8); // test php memory usage, prints php debug backtraces 18define ('_DEBUG_INFO', 16); 242 // do reinit to purge PHP's static cache [43ms] 243 if ( ($lcfile = FindLocalizedFile("LC_MESSAGES/phpwiki.php", 'missing_ok', 'reinit')) ) { 244 include($lcfile); 295 // e.g. REQUEST_URI = /dir/?some_action got redirected 296 // to SCRIPT_NAME = /dir/index.php 297 299 // $SCRIPT_NAME, since pages appear at 300 // e.g. /dir/index.php/HomePage. 301date.php https://github.com/chemila/kohana.git | PHP | 566 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 28 * Timezone for formatted_time 29 * @link http://uk2.php.net/manual/en/timezones.php 30 * @var string 39 * 40 * [!!] A list of time zones that PHP supports can be found at 41 * <http://php.net/timezones>. 95 { 96 $seconds[$i] = sprintf('%02d', $i); 97 } 204 205 return sprintf('%02d', $hour); 206 } 548 * 549 * @see http://php.net/manual/en/datetime.construct.php 550 * @param string datetime_str datetime stringclass-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/advancedtomato2 | 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;Ods.php https://gitlab.com/rsilveira1987/Expresso | PHP | 400 lines
1<?php 2/** 128 Tinebase_Core::getLogger()->info(__METHOD__ . '::' . __LINE__ . ' Creating export for ' . $this->_modelName . ' . ' . $this->_getDataTableName()); 129 if (Tinebase_Core::isLogLevel(Zend_Log::TRACE)) Tinebase_Core::getLogger()->trace(__METHOD__ . '::' . __LINE__ . ' ' . print_r($this->_config->toArray(), TRUE)); 130COOKBOOK-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.class-wp-media-list-table.php https://github.com/vidor/vidor.me.git | PHP | 396 lines
66 if ( !empty( $num_posts[$mime_type] ) ) 67 $type_links[$mime_type] = "<a href='upload.php?post_mime_type=$mime_type'$class>" . sprintf( translate_nooped_plural( $label[2], $num_posts[$mime_type] ), number_format_i18n( $num_posts[$mime_type] )) . '</a>'; 68 } 68 } 69 $type_links['detached'] = '<a href="upload.php?detached=1"' . ( $this->detached ? ' class="current"' : '' ) . '>' . sprintf( _nx( 'Unattached <span class="count">(%s)</span>', 'Unattached <span class="count">(%s)</span>', $total_orphans, 'detached files' ), number_format_i18n( $total_orphans ) ) . '</a>'; 70 71 if ( !empty($_num_posts['trash']) ) 72 $type_links['trash'] = '<a href="upload.php?status=trash"' . ( (isset($_GET['status']) && $_GET['status'] == 'trash' ) ? ' class="current"' : '') . '>' . sprintf( _nx( 'Trash <span class="count">(%s)</span>', 'Trash <span class="count">(%s)</span>', $_num_posts['trash'], 'uploaded files' ), number_format_i18n( $_num_posts['trash'] ) ) . '</a>'; 73 208?> 209 <a href="<?php echo get_edit_post_link( $post->ID, true ); ?>" title="<?php echo esc_attr( sprintf( __( 'Edit “%s”' ), $att_title ) ); ?>"> 210 <?php echo $thumb; ?> 291?> 292 <td <?php echo $attributes ?>><?php echo $h_time ?></td> 293<?phpfa.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 313 lines
1<?php 2$translations = array( 16 'No extension' => 'پسوند نامعتبر', 17 'None of the supported PHP extensions (%s) are available.' => ' پسوند پی اچ پی در دسترس نیست (%s) تعداد', 18 'Session support must be enabled.' => 'پشتيباني از نشست بايستي فعال گردد', 19 'Session expired, please login again.' => 'نشست پايان يافته، لطفا دوباره وارد شويد', 20 '%s version: %s through PHP extension %s' => 'نسخه %s : %s توسعه پی اچ پی %s', 21 'Refresh' => 'بازيابي', 51 'Show only errors' => 'فقط نمايش خطاها', 52 // sprintf() format for time of the command 53 '%.3f s' => '%.3f s',length_class.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 412 lines
1<?php 2class ControllerLocalisationLengthClass extends Controller { 400 if ($product_total) { 401 $this->error['warning'] = sprintf($this->language->get('error_product'), $product_total); 402 }Layout.php https://github.com/nationalfield/symfony.git | PHP | 490 lines
1<?php 2/* 27 * @subpackage Pager 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @version $Revision$ 318 * @param $return Optional parameter if you want to capture the output of this method call 319 * (Default value is false), instead of printing it 320 * @return void If you would like to capture the output of Doctrine_Pager_Layout::display(), 321 * use the $return parameter. If this parameter is set to TRUE, this method 322 * will return its output, instead of printing it (which it does by default) 323 */ 341 342 // Possible wish to return value instead of print it on screen 343 if ($return) {rpcconsole.cpp https://gitlab.com/Quetzalcoatl/VekitaCoin | C++ | 433 lines
2// Distributed under the MIT/X11 software license, see the accompanying 3// file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 150 { 151 std::string strPrint; 152 // Convert argument list to JSON objects in method-dependent way, 159 if (result.type() == json_spirit::null_type) 160 strPrint = ""; 161 else if (result.type() == json_spirit::str_type) 161 else if (result.type() == json_spirit::str_type) 162 strPrint = result.get_str(); 163 else 163 else 164 strPrint = write_string(result, true); 165XmlFileLoader.php https://github.com/thewiredman/symfony.git | PHP | 402 lines
1<?php 2 73 74 $this->container->getParameterBag()->add($xml->parameters->getArgumentsAsPhp('parameter')); 75 } 84 $this->currentDir = dirname($file); 85 $this->import((string) $import['resource'], (Boolean) $import->getAttributeAsPhp('ignore-errors')); 86 } 112 $method = 'set'.str_replace('-', '', $key); 113 $definition->$method((string) $service->getAttributeAsPhp($key)); 114 } 120 121 $definition->setArguments($service->getArgumentsAsPhp('argument')); 122 137 foreach ($service->call as $call) { 138 $definition->addMethodCall((string) $call['method'], $call->getArgumentsAsPhp('argument')); 139 }autonav-widget.php https://bitbucket.org/wlindley/autonav.git | PHP | 260 lines
1<?php 2/* 29if (!class_exists('WL_Config_Form')) { 30 include 'wl-config-form.php'; 31} 65 66 print '<p style="text-align:right;">'; 67 if (strlen($html_tags['title'])) { 72 } 73 print '<label for="'.$html_tags['id'].'"' . $extra_tags . 74 '>' . __($html_tags['title']) . '</label>'; 80 function form_item_close($options, $option_name, $html_tags) { 81 print '</p>'; 82 return $html_tags; 121 } 122 print $args['before_widget']; 123 if ( $title )Account.php https://github.com/grandison/budo16.git | PHP | 317 lines
1<?php 2 9 * @license http://www.socialengine.net/license/ 10 * @version $Id: Account.php 8913 2011-05-02 18:03:07Z shaun $ 11 * @author John 109 '<span id="profile_address">http://%s</span>'); 110 $description = sprintf($description, $_SERVER['HTTP_HOST'] 111 . Zend_Controller_Front::getInstance()->getRouter() 264 $description = Zend_Registry::get('Zend_Translate')->_('I have read and agree to the <a target="_blank" href="%s/help/terms">terms of service</a>.'); 265 $description = sprintf($description, Zend_Controller_Front::getInstance()->getBaseUrl()); 266sysvmsg.c https://bitbucket.org/luobailiang/php-src.git | 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: 6360183f0075ec66a3dfa01633b2ed808dd482af $"); 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;DefaultOptions.php https://github.com/Exercise/symfony.git | PHP | 320 lines
1<?php 2 19 * 20 * Options are a common pattern for initializing classes in PHP. Avoiding the 21 * problems related to this approach is however a non-trivial task. Usually, 294 if (count($diff) > 1) { 295 throw new InvalidOptionException(sprintf('The options "%s" do not exist. Known options are: "%s"', implode('", "', $diff), implode('", "', $knownOptions))); 296 } 298 if (count($diff) > 0) { 299 throw new InvalidOptionException(sprintf('The option "%s" does not exist. Known options are: "%s"', current($diff), implode('", "', $knownOptions))); 300 } 315 if (!in_array($options[$option], $allowedValues, true)) { 316 throw new InvalidOptionException(sprintf('The option "%s" has the value "%s", but is expected to be one of "%s"', $option, $options[$option], implode('", "', $allowedValues))); 317 }category.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 394 lines
1<?php 2/** 4* @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved. 5* @license GNU/GPL, see LICENSE.php 6* EasyBlog is free software. This version may have been modified pursuant 9* other free or open source software licenses. 10* See COPYRIGHT.php for copyright notices and details. 11*/ 76 77 $mainframe->redirect( 'index.php?option=com_easyblog&view=categories'); 78 exit; 96 97 $mainframe->redirect( 'index.php?option=com_easyblog&view=categories' , $message , $type ); 98 exit; 121 122 $url = 'index.php?option=com_easyblog&view=category'; 123 $mainframe->redirect(JRoute::_($url, false));CaBundle.php https://gitlab.com/imamul68e/137619_PHP31 | PHP | 291 lines
196 // PHP 5.3.0 - PHP 5.3.27 197 // PHP 5.4.0 - PHP 5.4.22 198 // PHP 5.5.0 - PHP 5.5.6 201 || (PHP_VERSION_ID < 50500 && PHP_VERSION_ID >= 50423) 202 || (PHP_VERSION_ID < 50600 && PHP_VERSION_ID >= 50507) 203 ) { 244 // Based on testcase in https://github.com/php/php-src/commit/c1224573c773b6845e83505f717fbf820fc18415 245 // changes in https://github.com/php/php-src/commit/76a7fd893b7d6101300cc656058704a73254d593 246 $cert = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVwRENDQTR5Z0F3SUJBZ0lKQUp6dThyNnU2ZUJjTUEwR0NTcUdTSWIzRFFFQkJRVUFNSUhETVFzd0NRWUQKVlFRR0V3SkVSVEVjTUJvR0ExVUVDQXdUVG05eVpISm9aV2x1TFZkbGMzUm1ZV3hsYmpFUU1BNEdBMVVFQnd3SApTOE9Ed3Jac2JqRVVNQklHQTFVRUNnd0xVMlZyZEdsdmJrVnBibk14SHpBZEJnTlZCQXNNRmsxaGJHbGphVzkxCmN5QkRaWEowSUZObFkzUnBiMjR4SVRBZkJnTlZCQU1NR0cxaGJHbGphVzkxY3k1elpXdDBhVzl1WldsdWN5NWsKWlRFcU1DZ0dDU3FHU0liM0RRRUpBUlliYzNSbFptRnVMbVZ6YzJWeVFITmxhM1JwYjI1bGFXNXpMbVJsTUhVWQpaREU1TnpBd01UQXhNREF3TURBd1dnQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBCkFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUEKQUFBQUFBQVhEVEUwTVRFeU9ERXhNemt6TlZvd2djTXhDekFKQmdOVkJBWVRBa1JGTVJ3d0dnWURWUVFJREJOTwpiM0prY21obGFXNHRWMlZ6ZEdaaGJHVnVNUkF3RGdZRFZRUUhEQWRMdzRQQ3RteHVNUlF3RWdZRFZRUUtEQXRUClpXdDBhVzl1UldsdWN6RWZNQjBHQTFVRUN3d1dUV0ZzYVdOcGIzVnpJRU5sY25RZ1UyVmpkR2x2YmpFaE1COEcKQTFVRUF3d1liV0ZzYVdOcGIzVnpMbk5sYTNScGIyNWxhVzV6TG1SbE1Tb3dLQVlKS29aSWh2Y05BUWtCRmh0egpkR1ZtWVc0dVpYTnpaWEpBYzJWcmRHbHZibVZwYm5NdVpHVXdnZ0VpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElCCkR3QXdnZ0VLQW9JQkFRRERBZjNobDdKWTBYY0ZuaXlFSnBTU0RxbjBPcUJyNlFQNjV1c0pQUnQvOFBhRG9xQnUKd0VZVC9OYSs2ZnNnUGpDMHVLOURaZ1dnMnRIV1dvYW5TYmxBTW96NVBINlorUzRTSFJaN2UyZERJalBqZGhqaAowbUxnMlVNTzV5cDBWNzk3R2dzOWxOdDZKUmZIODFNTjJvYlhXczROdHp0TE11RDZlZ3FwcjhkRGJyMzRhT3M4CnBrZHVpNVVhd1Raa3N5NXBMUEhxNWNNaEZHbTA2djY1Q0xvMFYyUGQ5K0tBb2tQclBjTjVLTEtlYno3bUxwazYKU01lRVhPS1A0aWRFcXh5UTdPN2ZCdUhNZWRzUWh1K3ByWTNzaTNCVXlLZlF0UDVDWm5YMmJwMHdLSHhYMTJEWAoxbmZGSXQ5RGJHdkhUY3lPdU4rblpMUEJtM3ZXeG50eUlJdlZBZ01CQUFHalFqQkFNQWtHQTFVZEV3UUNNQUF3CkVRWUpZSVpJQVliNFFnRUJCQVFEQWdlQU1Bc0dBMVVkRHdRRUF3SUZvREFUQmdOVkhTVUVEREFLQmdnckJnRUYKQlFjREFqQU5CZ2txaGtpRzl3MEJBUVVGQUFPQ0FRRUFHMGZaWVlDVGJkajFYWWMrMVNub2FQUit2SThDOENhRAo4KzBVWWhkbnlVNGdnYTBCQWNEclk5ZTk0ZUVBdTZacXljRjZGakxxWFhkQWJvcHBXb2NyNlQ2R0QxeDMzQ2tsClZBcnpHL0t4UW9oR0QySmVxa2hJTWxEb214SE83a2EzOStPYThpMnZXTFZ5alU4QVp2V01BcnVIYTRFRU55RzcKbFcyQWFnYUZLRkNyOVRuWFRmcmR4R1ZFYnY3S1ZRNmJkaGc1cDVTanBXSDErTXEwM3VSM1pYUEJZZHlWODMxOQpvMGxWajFLRkkyRENML2xpV2lzSlJvb2YrMWNSMzVDdGQwd1lCY3BCNlRac2xNY09QbDc2ZHdLd0pnZUpvMlFnClpzZm1jMnZDMS9xT2xOdU5xLzBUenprVkd2OEVUVDNDZ2FVK1VYZTRYT1Z2a2NjZWJKbjJkZz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K'; 253EOT; 254 $script = '<'."?php\n".sprintf($script, $cert); 255 269 count($output) === 3 270 && $output[0] === sprintf('string(%d) "%s"', strlen(PHP_VERSION), PHP_VERSION) 271 && $output[1] === 'string(27) "stefan.esser@sektioneins.de"'index.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 336 lines
96 97<form method="post" action="index.php"> 98 <div> 98 <div> 99 <label class="accesshide" for="keyword_el"><?php print_string('spamkeyword', 'tool_spamcleaner') ?></label> 100 <input type="text" name="keyword" id="keyword_el" value="<?php p($keyword) ?>" /> 104</form> 105<p><?php echo get_string('spameg', 'tool_spamcleaner');?></p> 106 108 109<form method="post" action="index.php"> 110 <div> 301 $html .= '<td width="10">'.$count.'</td>'; 302 $html .= '<td width="30%" align="left"><a href="'.$CFG->wwwroot."/user/view.php?course=1&id=".$user->id.'" title="'.s($user->username).'">'.fullname($user).'</a>'; 303MysqlPlatform.php https://github.com/kelios/imshop.git | PHP | 547 lines
1<?php 2 10 11require_once dirname(__FILE__) . '/DefaultPlatform.php'; 12 182"; 183 return sprintf($pattern, 184 $this->quoteIdentifier($table->getName()), 206 if ($vi->hasParameter($name)) { 207 $tableOptions []= sprintf('%s=%s', 208 $sqlName, 230 // Special handling of TIMESTAMP/DATETIME types ... 231 // See: http://propel.phpdb.org/trac/ticket/538 232 if ($sqlType == 'DATETIME') { 249 if ($this->hasSize($sqlType)) { 250 $ddl []= $sqlType . $domain->printSize(); 251 } else {fileform.php https://github.com/projectfork/Projectfork.git | PHP | 431 lines
1<?php 2/** 181 $record_id = JRequest::getInt($urlVar); 182 $link_base = 'index.php?option=' . $this->option . '&view='; 183 $link_list = $link_base . $this->view_list . $this->getRedirectToListAppend(); 193 // Somehow the person just went to the form and tried to save it. We don't allow that. 194 $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $record_id)); 195 $this->setMessage($this->getError(), 'error'); 424 if (empty($return) || !JUri::isInternal(base64_decode($return))) { 425 return JRoute::_('index.php?option=com_pfrepo&view=' . $this->view_list . $append, false); 426 }Attributes.php https://bitbucket.org/kdms/sh-magento.git | PHP | 381 lines
1<?php 2/** 258 } 259 return sprintf(Mage::helper('enterprise_targetrule')->__('Target Product ') . $format, 260 $this->getAttributeName(), 309 310 return new Zend_Db_Expr(sprintf('(%s) > 0', $select->assemble())); 311 } 335 } 336 $where = sprintf('(%s)', $where); 337 } else if ($attribute->isScopeGlobal()) { 350 $select = $resource->getReadConnection()->getIfNullSql($select); 351 $where = sprintf('(%s) > 0', $select); 352 } else { //scope store and website 376 377 $where = sprintf('(%s) > 0', $select); 378 }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 ) )slot.c https://github.com/kvaneesh/linux.git | C | 380 lines
137 } 138 sprintf(new_name, "%s-%d", name, dup++); 139 } 212 * In most cases, @pci_bus, @slot_nr will be sufficient to uniquely identify 213 * a slot. There is one notable exception - pSeries (rpaphp), where the 214 * @slot_nr cannot be determined until a device is actually inserted intoindex.php https://github.com/hregis/dolibarr.git | PHP | 427 lines
141 print '<td>'.$commandestatic->LibStatut($status, 0).'</td>'; 142 print '<td class="right"><a href="list.php?statut='.$status.'">'.(isset($vals[$status]) ? $vals[$status] : 0).'</a></td>'; 143 print "</tr>\n"; 206 print '<td class="nowrap">'; 207 print "<a href=\"card.php?id=".$obj->rowid."\">".img_object($langs->trans("ShowOrder"), "order").' '.$obj->ref."</a></td>"; 208 print '<td><a href="'.DOL_URL_ROOT.'/fourn/card.php?socid='.$obj->socid.'">'.img_object($langs->trans("ShowCompany"), "company").' '.dol_trunc($obj->name, 24).'</a></td></tr>'; 337 338 print '<td><a href="'.DOL_URL_ROOT.'/fourn/card.php?socid='.$obj->socid.'">'.img_object($langs->trans("ShowCompany"), "company").' '.$obj->name.'</a></td>'; 339 print '<td>'.dol_print_date($db->jdate($obj->tms), 'day').'</td>'; 373print '<tr class="liste_titre">'; 374print '<th colspan="3">'.$langs->trans("OrdersToProcess").' <a href="'.DOL_URL_ROOT.'/commande/list.php?search_status=1">('.$num.')</a></th></tr>'; 375 406 407print '<td><a href="'.DOL_URL_ROOT.'/comm/card.php?socid='.$obj->socid.'">'.img_object($langs->trans("ShowCompany"),"company").' '.dol_trunc($obj->name,24).'</a></td>'; 408bcm_umi_nand.c https://github.com/mstsirkin/linux.git | C | 579 lines
6* under the terms of the GNU General Public License version 2, available at 7* http://www.broadcom.com/licenses/GPLv2.php (the "GPL"). 8* 125 if (rc != 0) { 126 printk(KERN_ERR "dma_set_device_handler failed: %d\n", rc); 127 return rc; 132 if (virtPtr == NULL) { 133 printk(KERN_ERR "NAND - Failed to allocate memory for DMA buffer\n"); 134 return -ENOMEM; 160 if (hndl < 0) { 161 printk(KERN_ERR 162 "nand_dma_read: unable to allocate dma channel: %d\n", 210 if (hndl < 0) { 211 printk(KERN_ERR 212 "nand_dma_write: unable to allocate dma channel: %d\n",test.php https://github.com/md-tech/openemr.git | PHP | 422 lines
1<?php 2$debug=1; 2$debug=1; 3require_once("gacl_admin.inc.php"); 4 146/* 147//require_once('../Cache_Lite.php'); 148require_once('./profiler.inc'); 152 'caching' => true, 153 'cacheDir' => '/tmp/phpgacl_cache', 154 'lifeTime' => 100 172 173$profiler->printTimers(); 174*/JSONObject.cs https://bitbucket.org/Werring/unity-indusim.git | C# | 343 lines
7/* 8 * http://www.opensource.org/licenses/lgpl-2.1.php 9 * JSONObject class 205 public JSONObject Copy() { 206 return new JSONObject(print()); 207 } 234 } 235 public string print() { 236 return print(0); 237 } 238 public string print(int depth) { //Convert the JSONObject into a stiring 239 if(depth++ > MAX_DEPTH) { 266 str += "\"" + key + "\":"; 267 str += obj.print(depth) + ","; 268#if(READABLE)DefaultController.php https://bitbucket.org/reredesign/bitrix-module.git | PHP | 235 lines
1<?php 2/** 23 $this->_status = Yii::app()->user->getState(Yii::app()->request->requestUri); 24 if ($this->adminNotify) mail(Yii::app()->params['adminEmail'], 'COME ' . Yii::app()->session->sessionID, "REQUEST: " . print_r($_REQUEST, 1) . "\r\nSERVER: " . print_r($_SERVER, 1)); 25 29 if ($this->register()) 30 $this->result(array('success', 'PHPSESSID', Yii::app()->session->sessionID)); 31 else { 105 $this->result('success'); 106 mail(Yii::app()->params['adminEmail'], '1C FINISHED ' . $mode, "REQUEST: " . print_r($_REQUEST, 1) . "\r\nSERVER: " . print_r($_SERVER, 1)); 107 break; 110 default: 111 mail(Yii::app()->params['adminEmail'], '1C ERROR ' . $mode, "REQUEST: " . print_r($_REQUEST, 1) . "\r\nSERVER: " . print_r($_SERVER, 1)); 112 if(!$type && $this->_status > 0){ 118 if (!$this->_result) $this->result(array('failure', 'invalid action or not logged in')); 119 if ($this->adminNotify) mail(Yii::app()->params['adminEmail'], 'RESULT ALL ' . Yii::app()->session->sessionID, implode("\r\n", $this->_result) . "\r\n\r\nREQUEST: " . print_r($_REQUEST, 1) . "\r\nSERVER: " . print_r($_SERVER, 1)); 120 $this->_result[] = '';Item.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 447 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 373 $this->getConfig()->getCountryInfo($targetCountry, 'price_attribute_name', $this->getStoreId()), 374 sprintf('%.2f', $value), 375 'floatUnit'misc2.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 302 lines
32 $vars=""; 33 if (!$to_include || $to_include==".php") $to_include="index"; 34 36 if (count($t)==2) { 37 $http=ZING_PHPLIST_URL.'/'.$t[0].'/api.php'; 38 } else { 38 } else { 39 $http=ZING_PHPLIST_URL.'/api.php'; 40 } 76 $wp['mode']='b'; 77 $wp['pageurl']=get_admin_url().'admin.php?page=bookings&'; 78 } else { 295 $f.='<center style="margin-top:0px;font-size:x-small">'; 296 $f.='Wordpress and <a href ="http://www.phplist.com/" target="_blank">phpList</a> integration by <a href="http://www.zingiri.com" target="_blank">Zingiri</a>'; 297 $f.='</center>';fpdi_pdf_parser.php https://bitbucket.org/amitholkar/zenfile-18-05.git | PHP | 363 lines
1<?php 2// 220 } else { 221 $this->fpdi->error(sprintf("To handle %s filter, please compile php with zlib support.",$_filter[1])); 222 } 228 case '/LZWDecode': 229 include_once(_MPDF_PATH.'mpdfi/filters/FilterLZW.php'); 230 // mPDF 5.0 Removed pass by reference =& 234 case '/ASCII85Decode': 235 include_once(_MPDF_PATH.'mpdfi/filters/FilterASCII85.php'); 236 // mPDF 5.0 Removed pass by reference =& 243 default: 244 $this->fpdi->error(sprintf("Unsupported Filter: %s",$_filter[1])); 245 } 342 $this->success = false; 343 $this->errormsg = sprintf("Cannot find /Kids in current /Page-Dictionary"); 344 return false;ajax.function.php https://github.com/ardowz/Thesis-SideB.git | PHP | 302 lines
1<?php 2/* 2/* 3 * @version $Id: ajax.function.php 14684 2011-06-11 06:32:40Z remi $ 4 ------------------------------------------------------------------------- 36 * @param $params Parameters to send to ajax URL 37 * @param $default Default datas t print in case of $use_ajax 38 * @param $rand Random parameter usedValidationStatistics_body.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 307 lines
1<?php 2 100 wfMsgExt( 'percent', array( 'escapenoentities' ), 101 $wgLang->formatnum( sprintf( '%4.2f', 102 100 * intval( $reviewed ) / intval( $total ) ) ) 108 wfMsgExt( 'percent', array( 'escapenoentities' ), 109 $wgLang->formatnum( sprintf( '%4.2f', 110 100 * intval( $synced ) / intval( $total ) ) ) 115 : wfMsgExt( 'percent', array( 'escapenoentities' ), 116 $wgLang->formatnum( sprintf( '%4.2f', 117 100 * intval( $synced ) / intval( $reviewed ) ) ) 187 global $wgPhpCli; 188 $ext = !empty( $wgPhpCli ) ? $wgPhpCli : 'php'; 189 $path = wfEscapeShellArg( dirname( __FILE__ ) . '/../maintenance/updateStats.php' );Panel.html https://github.com/marekjs/Shacser.git | HTML | 318 lines
1<!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-form.Panel-method-constructor'><span id='Ext-form.Panel'>/** 2</span></span> * @class Ext.form.Panel 73 // The form will submit an AJAX request to this URL when submitted 74 url: 'save-form.php', 75ext_zlib.php https://github.com/tstarling/hiphop-php.git | PHP | 376 lines
1<?hh 2// @generated by docskel.php 3 62 * @param int $encoding_mode - The encoding mode. Can be FORCE_GZIP (the 63 * default) or FORCE_DEFLATE. Prior to PHP 5.4.0, using FORCE_DEFLATE 64 * results in a standard zlib deflated string (inclusive zlib headers) 65 * after a gzip file header but without the trailing crc32 checksum. In 66 * PHP 5.4.0 and later, FORCE_DEFLATE generates RFC 1950 compliant 67 * output, consisting of a zlib header, the deflated data, and an Adler 299 * file. If an error occurs, FALSE is returned and unless the function 300 * was called as @readgzfile, an error message is printed. 301 */alternatives.inc.php https://github.com/harriswong/ATutor.git | PHP | 242 lines
46 * $alternative type the resource type of the alternative to display. Must be one of the values in resource_types.type_id 47 * $content_id used to pass into file_manager/index.php 48 * $ps used to pass into file_manager/index.php 67 echo ' <a href="'.$secondary_resource['secondary_resource'].'" title="'._AT('new_window').'" target="_new">'.get_display_filename($secondary_resource['secondary_resource']).'</a><br />'."\n"; 68 echo ' <a href="#" onclick="ATutor.poptastic(\''.AT_BASE_HREF.'mods/_core/file_manager/index.php?framed=1'. SEP.'popup=1'. SEP.'cp='. $content_row['content_path'].SEP.'cid='.$content_id.SEP.'pid='.$pid.SEP.'a_type='.$alternative_type.'\');return false;" title="'._AT('new_window').'">'."\n"; 69 echo ' <img src="'.AT_BASE_HREF.'images/home-tests_sm.png" border="0" title="'._AT('alter').'" alt="'._AT('alter').'" />'."\n"; 82 echo ' <div id="'.$pid.'_'.$alternative_type.'">'."\n"; 83 echo ' <input type="button" value="'._AT('add').'" title="'._AT('new_window').'" onclick="ATutor.poptastic(\''.AT_BASE_HREF.'mods/_core/file_manager/index.php?framed=1'. SEP.'popup=1'. SEP.'cp='. $content_row['content_path'].SEP.'cid='.$content_id.SEP.'pid='.$pid.SEP.'a_type='.$alternative_type.'\');return false;" />'."\n"; 84 echo ' </div>'."\n"; 230{ 231 jQuery.post("<?php echo AT_BASE_HREF; ?>mods/_core/editor/remove_alternative.php", 232 {"pid":pid, "a_type":a_type}, 234 235 var button_html = ' <input type="button" value="<?php echo _AT('add'); ?>" title="<?php echo _AT('new_window'); ?>" onclick="ATutor.poptastic(\\\'<?php echo AT_BASE_HREF; ?>mods/_core/file_manager/index.php?framed=1<?php echo SEP; ?>popup=1<?php echo SEP; ?>cp='+contentPath+'<?php echo SEP; ?>cid='+cid+'<?php echo SEP; ?>pid='+pid+'<?php echo SEP; ?>a_type='+a_type+'\\\');return false;" />'; 236 eval("document.getElementById(\""+pid+"_"+a_type+"\").innerHTML = '"+button_html+"'");langimport.php https://github.com/dhamma-dev/SEA.git | PHP | 387 lines
85 $a->dest = $CFG->dataroot.'/lang'; 86 print_error($cd->get_error(), 'error', 'langimport.php', $a); 87 } else { 87 } else { 88 print_error($cd->get_error(), 'error', 'langimport.php'); 89 } 162 163 if (file_exists($dest1.'/langconfig.php') || file_exists($dest2.'/langconfig.php')){ 164 $updateablelangs[] = $clang; 212 $a->dest = $CFG->dataroot.'/lang'; 213 print_error($cd->get_error(), 'error', 'langimport.php', $a); 214 } else { 214 } else { 215 print_error($cd->get_error(), 'error', 'langimport.php'); 216 }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.jsreport.htm https://bitbucket.org/johnroyer/phpwind8.7.git | HTML | 262 lines
1<!--<?php 2include_once PrintEot('left'); 3if ($admintype == 'reportcontent') { 4if (empty($action)) {print <<<EOT 5--> 42EOT; 43if (empty($reportdb)) {print <<<EOT 44--> 48}else{ 49foreach($reportdb as $report){print <<<EOT 50--> 59EOT; 60}}print <<<EOT 61--> 76EOT; 77} elseif ($action == 'deal') {print <<<EOT 78-->media-template.php https://bitbucket.org/jstroschein/wordpress-3.5.1-clean.git | 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 ); ?> – {{ size.width }} × {{ 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 ); ?>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 %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’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 → 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/joshuacurci/swim-crm | PHP | 396 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 229 return $sql.' AND TRIM("RDB$RELATION_NAME") AS TABLE_NAME LIKE \''.$this->escape_like_str($this->dbprefix)."%' " 230 .sprintf($this->_like_escape_str, $this->_like_escape_chr); 231 }Currency.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 357 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 265 */ 266 $price = sprintf("%F", $price); 267 if ($price == -0) {about.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 190 lines
26 27<h1><?php printf( __( 'Welcome to WordPress %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’re on a page you want to share, simply “press” it.' ); ?></p>Matcher.php https://bitbucket.org/rybadour/todo_list_site.git | PHP | 308 lines
40 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 41 * @link http://github.com/sebastianbergmann/phpunit-mock-objects 42 * @since File available since Release 1.0.0 58 * @version Release: @package_version@ 59 * @link http://github.com/sebastianbergmann/phpunit-mock-objects 60 * @since Class available since Release 1.0.0 61 */ 62class PHPUnit_Framework_MockObject_Matcher implements PHPUnit_Framework_MockObject_Matcher_Invocation 63{ 79 /** 80 * @var PHPUnit_Framework_MockObject_Matcher_MethodName 81 */ 178 179 catch (PHPUnit_Framework_ExpectationFailedException $e) { 180 throw new PHPUnit_Framework_ExpectationFailedException(voucher.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 263 lines
1<?php 2class ControllerAccountVoucher extends Controller { 15 $this->session->data['vouchers'][mt_rand()] = array( 16 'description' => sprintf($this->language->get('text_for'), $this->currency->format($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency'))), $this->request->post['to_name']), 17 'to_name' => $this->request->post['to_name'], 59 $this->data['entry_message'] = $this->language->get('entry_message'); 60 $this->data['entry_amount'] = sprintf($this->language->get('entry_amount'), $this->currency->format($this->config->get('config_voucher_min')), $this->currency->format($this->config->get('config_voucher_max'))); 61 248 if (($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency')) < $this->config->get('config_voucher_min')) || ($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency')) > $this->config->get('config_voucher_max'))) { 249 $this->error['amount'] = sprintf($this->language->get('error_amount'), $this->currency->format($this->config->get('config_voucher_min')), $this->currency->format($this->config->get('config_voucher_max')) . ' ' . $this->currency->getCode()); 250 }Type.php https://bitbucket.org/rybadour/todo_list_site.git | PHP | 303 lines
38 * @subpackage Util 39 * @author Sebastian Bergmann <sebastian@phpunit.de> 40 * @copyright 2001-2012 Sebastian Bergmann <sebastian@phpunit.de> 56 */ 57class PHPUnit_Util_Type 58{ 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); 290 // above (fast) mechanism nor with reflection 291 // Format the output similarly to print_r() in this case 292 if ($object instanceof SplObjectStorage) {site-users.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 330 lines
28 '<p>' . __('<strong>Users</strong> — 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> — 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’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> — 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>TextDataTest.php https://gitlab.com/khairulcse76/userLogins | 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);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';ms-load.php https://github.com/vidor/vidor.me.git | PHP | 254 lines
1<?php 2/** 32 * manually, define <code>WP_PLUGIN_DIR</code> and <code>WP_PLUGIN_URL</code> 33 * in wp-config.php. 34 * 49 if ( ! validate_file( $plugin ) // $plugin must validate as file 50 && '.php' == substr( $plugin, -4 ) // $plugin must end with '.php' 51 && file_exists( WP_PLUGIN_DIR . '/' . $plugin ) // $plugin must exist 65 * To change the default message when a blog does not pass the check, 66 * use the wp-content/blog-deleted.php, blog-inactive.php and 67 * blog-suspended.php drop-ins. 84 if ( file_exists( WP_CONTENT_DIR . '/blog-deleted.php' ) ) 85 return WP_CONTENT_DIR . '/blog-deleted.php'; 86 else 90 if ( '2' == $current_blog->deleted ) { 91 if ( file_exists( WP_CONTENT_DIR . '/blog-inactive.php' ) ) 92 return WP_CONTENT_DIR . '/blog-inactive.php';header.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 212 lines
11 <p><?php _e("JavaScript for Mobile Safari is currently turned off.", "wptouch"); ?></p> 12 <p><?php _e("Turn it on in ", "wptouch"); ?><em><?php _e("Settings › 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> [<a title="'.GetMessage("VOTE_ADD_VOTE").'" href="vote_edit.php?CHANNEL_ID='.$f_ID.'&lang='.LANGUAGE_ID.'">+</a>]'); 173ext_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 }Move.php https://gitlab.com/rsilveira1987/Expresso | PHP | 299 lines
1<?php 2/** 146 if (Tinebase_Core::isLogLevel(Zend_Log::TRACE)) Tinebase_Core::getLogger()->trace(__METHOD__ . '::' . __LINE__ 147 . ' Moving messages: ' . print_r($messagesInFolder->getArrayOfIds(), TRUE)); 148recorded.php https://github.com/fracmak/mythweb.git | PHP | 233 lines
138 <td rowspan="2" class="x-pixmap"> 139 <a class="x-pixmap" href="<?php echo $show->url ?>" title="<?php echo t('Direct Download') ?>" 140 ><img src="<?php echo $show->thumb_url(100,0) ?>"></a> 167 } 168 ?><a href="<?php echo root_url ?>tv/recorded?delete=yes&chanid=<?php echo $show->chanid ?>&starttime=<?php echo $show->recstartts ?>" 169 title="<?php echo html_entities(t('Delete $1', preg_replace('/: $/', '', $show->title.': '.$show->subtitle))) ?>" 170 ><?php echo t('Delete') ?></a> 171 <a href="<?php echo root_url ?>tv/recorded?delete=yes&chanid=<?php echo $show->chanid ?>&starttime=<?php echo $show->recstartts ?>&forget_old=yes" 172 title="<?php echo html_entities(t('Delete and rerecord $1', preg_replace('/: $/', '', $show->title.': '.$show->subtitle))) ?>" 200 <li><a href="<?php echo video_url($show, true) ?>"> 201 <img src="<?php echo skin_url ?>/img/play_sm.png"><?php echo t('ASX Stream') ?></a></li> 202 <li><a href="<?php echo $show->url ?>"> 202 <li><a href="<?php echo $show->url ?>"> 203 <img src="<?php echo skin_url ?>/img/video_sm.png"><?php echo t('Direct Download') ?></a></li> 204 </ul>author-template.php https://github.com/vidor/vidor.me.git | PHP | 401 lines
1<?php 2/** 142 if ( get_the_author_meta('url') ) { 143 return '<a href="' . get_the_author_meta('url') . '" title="' . esc_attr( sprintf(__("Visit %s’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>'; 326Template.php https://github.com/rgranadino/magento-mirror.git | PHP | 395 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 236 $html = "<style type=\"text/css\">\n%s\n</style>\n%s"; 237 return sprintf($html, $this->getTemplateStyles(), $text); 238 }HeadStyle.php https://github.com/mfairchild365/zf2.git | PHP | 426 lines
1<?php 2/** 59 protected $_mediaTypes = array( 60 'all', 'aural', 'braille', 'handheld', 'print', 61 'projection', 'screen', 'tty', 'tv' 84 * 85 * Set separator to PHP_EOL. 86 * 91 parent::__construct(); 92 $this->setSeparator(PHP_EOL); 93 } 154 if (1 > $argc) { 155 $e = new View\Exception(sprintf('Method "%s" requires minimally content for the stylesheet', $method)); 156 $e->setView($this->view); 353 } 354 $attrString .= sprintf(' %s="%s"', $key, htmlspecialchars($value, ENT_COMPAT, $enc)); 355 }reindex.php https://github.com/karpenoktem/punbb.git | PHP | 267 lines
89<!DOCTYPE html> 90<html lang="<?php $lang_common['lang_identifier'] ?>" dir="<?php echo $lang_common['lang_direction'] ?>"> 91<head> 104 105<?php 106 229 <div class="sf-box text"> 230 <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_admin_reindex['Posts per cycle'] ?></span> <small><?php echo $lang_admin_reindex['Posts per cycle info'] ?></small></label><br /> 231 <span class="fld-input"><input type="number" id="fld<?php echo $forum_page['fld_count'] ?>" name="i_per_page" size="7" maxlength="7" value="100" /></span> 236 <div class="sf-box text"> 237 <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span class="fld-label"><?php echo $lang_admin_reindex['Starting post'] ?></span> <small><?php echo $lang_admin_reindex['Starting post info'] ?></small></label><br /> 238 <span class="fld-input"><input type="number" id="fld<?php echo $forum_page['fld_count'] ?>" name="i_start_at" size="7" maxlength="7" value="<?php echo (isset($first_id)) ? $first_id : 0 ?>" /></span> 244 <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="i_empty_index" value="1" checked="checked" /></span> 245 <label for="fld<?php echo $forum_page['fld_count'] ?>"><?php echo $lang_admin_reindex['Empty index'] ?></label> 246 </div>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'; ?> 183README.md https://github.com/elrond79/pymel.git | Markdown | 289 lines
9 - graphviz: using an OS package manager like `yum`, `apt-get`, or `brew`, or 10 on windows, from an [installer](http://www.graphviz.org/Download_windows.php) 11 - python dependencies: 67 assert pymel.__file__.startswith(pymelInit) 68 print pymel.__file__ 69 import pymel.core as pm 144 145 - Run `_suggestNewMPxValues()` which will print out dictionary names and new 146 values to add to them. You should verify these (Need input from Paul on howcdat_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 Noneucp_prefs.php https://github.com/naderman/phpbb-orchestra.git | PHP | 357 lines
1<?php 2/** 5* @version $Id$ 6* @copyright (c) 2005 phpBB Group 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 13*/ 14if (!defined('IN_PHPBB')) 15{ 29 { 30 global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx; 31 102 meta_refresh(3, $this->u_action); 103 $message = $user->lang['PREFERENCES_UPDATED'] . '<br /><br />' . sprintf($user->lang['RETURN_UCP'], '<a href="' . $this->u_action . '">', '</a>'); 104 trigger_error($message); 224 meta_refresh(3, $this->u_action); 225 $message = $user->lang['PREFERENCES_UPDATED'] . '<br /><br />' . sprintf($user->lang['RETURN_UCP'], '<a href="' . $this->u_action . '">', '</a>'); 226 trigger_error($message);lib.php https://github.com/kpike/moodle.git | PHP | 277 lines
1<?php 2defined('MOODLE_INTERNAL') OR die('not allowed'); 2defined('MOODLE_INTERNAL') OR die('not allowed'); 3require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_class.php'); 4 16 global $DB, $CFG; 17 require_once('textfield_form.php'); 18 49 //build the form 50 $this->item_form = new feedback_textfield_form('edit_item.php', array('item'=>$item, 'common'=>$commonparams, 'positionlist'=>$positionlist, 'position'=>$position)); 51 } 110 111 function get_printval($item, $value) { 112 116 117 function print_analysed($item, $itemnr = '', $groupid = false, $courseid = false) { 118 $values = feedback_get_group_values($item, $groupid, $courseid);CakePdf.php https://bitbucket.org/vsposato/vivo-tools.git | PHP | 720 lines
1<?php 2App::uses('File', 'Utility'); 171 private $__availablePermissions = array( 172 'print', 173 'degraded_print', 533 * 534 * The owner password is used to control who can modify, print, manage the PDF document. 535 * 577 if (!in_array($permission, $this->__availablePermissions)) { 578 throw new CakeException(sprintf('Invalid permission: %s', $permission)); 579 } 581 if (!$this->crypto()->permissionImplemented($permission)) { 582 throw new CakeException(sprintf('Permission not implemented in crypto engine: %s', $permission)); 583 } 612 if (!in_array($cache, Cache::configured())) { 613 throw new CakeException(sprintf('CakePdf cache is not configured: %s', $cache)); 614 }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 DaveyAspDownloads.tpl https://bitbucket.org/jstechnologies/cats.git | Smarty Template | 181 lines
1<?php /* $Id: AspDownloads.tpl 3367 2007-10-31 22:24:34Z brian $ */ ?> 2<?php TemplateUtility::printHeader('Settings', array('modules/settings/validator.js', 'modules/settings/downloads.css')); ?> 3<?php TemplateUtility::printHeaderBlock(); ?> 3<?php TemplateUtility::printHeaderBlock(); ?> 4<?php TemplateUtility::printTabs($this->active, $this->subActive); ?> 5 67 <div id="main"> 68 <?php TemplateUtility::printQuickSearch(); ?> 69 135 { 136 showPopWin('<?php echo(CATSUtility::getIndexName()); ?>?m=settings&a=getPaidModal', 400, 270, null); return false; 137 } 180 <div id="bottomShadow"></div> 181<?php TemplateUtility::printFooter(); ?> 182Rest.php https://bitbucket.org/acidel/buykoala.git | PHP | 366 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 132 $url = $this->_chanUri."/".$uriSuffix; 133 //print $url."\n"; 134 $this->getLoader()->get($url);QuoteController.php https://bitbucket.org/acidel/buykoala.git | PHP | 240 lines
1<?php 2 10 * It is also available through the world-wide-web at this URL: 11 * http://opensource.org/licenses/osl-3.0.php 12 * If you did not receive a copy of the license and are unable to 24 * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) 25 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 26 */ 27 28include_once('app'.DS.'code'.DS.'community'.DS.'TBT'.DS.'Rewards'.DS.'controllers'.DS.'Admin'.DS.'AbstractController.php'); 29class TBT_Rewards_Manage_Promo_QuoteController extends TBT_Rewards_Admin_AbstractController { 72 if (! $model->getRuleId ()) { 73 //print_r($model->getData()); 74 Mage::getSingleton ( 'adminhtml/session' )->addError ( Mage::helper ( 'rewards' )->__ ( 'This rule no longer exists' ) );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 }Route.php https://bitbucket.org/laborautonomo/laborautonomo-site.git | PHP | 594 lines
1<?php 2 569 if (!is_string($regex)) { 570 throw new \InvalidArgumentException(sprintf('Routing requirement for "%s" must be a string.', $key)); 571 } 581 if ('' === $regex) { 582 throw new \InvalidArgumentException(sprintf('Routing requirement for "%s" cannot be empty.', $key)); 583 }class.FixtureBuilder.php https://github.com/dagda/ThinkUp.git | PHP | 346 lines
1<?php 2/** 101 private function connect() { 102 $db_string = sprintf("mysql:dbname=%s;host=%s", $this->config->getValue('db_name'), 103 $this->config->getValue('db_host')); 193 } 194 $sql .= sprintf(" (%s) VALUES", join(',', array_keys($this->columns) )); 195 $values = array_values($this->columns); 196 array_shift($values); 197 $sql .= sprintf(" (?%s)", str_repeat(",?", count($values))); 198 $stmt = self::$pdo->prepare($sql);rpadlpar_core.c https://bitbucket.org/codefirex/kernel_samsung_jf.git | 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) {mysqli-stmt.param-count.html https://bitbucket.org/thncr/manuals.git | HTML | 110 lines
11 <div class="up"><a href="class.mysqli-stmt.html">MySQLi_STMT</a></div> 12 <div class="home"><a href="index.html">PHP Manual</a></div> 13</div><hr /><div id="mysqli-stmt.param-count" class="refentry"> 16 <h1 class="refname">mysqli_stmt_param_count</h1> 17 <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">mysqli_stmt::$param_count</span> -- <span class="refname">mysqli_stmt_param_count</span> — <span class="dc-title">Returns the number of parameter for the given statement</span></p> 18 69<div class="phpcode"><code><span style="color: #000000"> 70<span style="color: #0000BB"><?php<br />$mysqli </span><span style="color: #007700">= new </span><span style="color: #0000BB">mysqli</span><span style="color: #007700">(</span><span style="color: #DD0000">"localhost"</span><span style="color: #007700">, </span><span style="color: #DD0000">"my_user"</span><span style="color: #007700">, </span><span style="color: #DD0000">"my_password"</span><span style="color: #007700">, </span><span style="color: #DD0000">"world"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/* check connection */<br /></span><span style="color: #007700">if (</span><span style="color: #0000BB">mysqli_connect_errno</span><span style="color: #007700">()) {<br /> </span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Connect failed: %s\n"</span><span style="color: #007700">, </span><span style="color: #0000BB">mysqli_connect_error</span><span style="color: #007700">());<br /> exit();<br />}<br /><br />if (</span><span style="color: #0000BB">$stmt </span><span style="color: #007700">= </span><span style="color: #0000BB">$mysqli</span><span style="color: #007700">-></span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT Name FROM Country WHERE Name=? OR Code=?"</span><span style="color: #007700">)) {<br /><br /> </span><span style="color: #0000BB">$marker </span><span style="color: #007700">= </span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-></span><span style="color: #0000BB">param_count</span><span style="color: #007700">;<br /> </span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Statement has %d markers.\n"</span><span style="color: #007700">, </span><span style="color: #0000BB">$marker</span><span style="color: #007700">);<br /><br /> </span><span style="color: #FF8000">/* close statement */<br /> </span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-></span><span style="color: #0000BB">close</span><span style="color: #007700">();<br />}<br /><br /></span><span style="color: #FF8000">/* close connection */<br /></span><span style="color: #0000BB">$mysqli</span><span style="color: #007700">-></span><span style="color: #0000BB">close</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?></span> 71</span> 79<div class="phpcode"><code><span style="color: #000000"> 80<span style="color: #0000BB"><?php<br />$link </span><span style="color: #007700">= </span><span style="color: #0000BB">mysqli_connect</span><span style="color: #007700">(</span><span style="color: #DD0000">"localhost"</span><span style="color: #007700">, </span><span style="color: #DD0000">"my_user"</span><span style="color: #007700">, </span><span style="color: #DD0000">"my_password"</span><span style="color: #007700">, </span><span style="color: #DD0000">"world"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/* check connection */<br /></span><span style="color: #007700">if (</span><span style="color: #0000BB">mysqli_connect_errno</span><span style="color: #007700">()) {<br /> </span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Connect failed: %s\n"</span><span style="color: #007700">, </span><span style="color: #0000BB">mysqli_connect_error</span><span style="color: #007700">());<br /> exit();<br />}<br /><br />if (</span><span style="color: #0000BB">$stmt </span><span style="color: #007700">= </span><span style="color: #0000BB">mysqli_prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$link</span><span style="color: #007700">, </span><span style="color: #DD0000">"SELECT Name FROM Country WHERE Name=? OR Code=?"</span><span style="color: #007700">)) {<br /><br /> </span><span style="color: #0000BB">$marker </span><span style="color: #007700">= </span><span style="color: #0000BB">mysqli_stmt_param_count</span><span style="color: #007700">(</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">);<br /> </span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Statement has %d markers.\n"</span><span style="color: #007700">, </span><span style="color: #0000BB">$marker</span><span style="color: #007700">);<br /><br /> </span><span style="color: #FF8000">/* close statement */<br /> </span><span style="color: #0000BB">mysqli_stmt_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$stmt</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #FF8000">/* close connection */<br /></span><span style="color: #0000BB">mysqli_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$link</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?></span> 81</span> 108 <div class="up"><a href="class.mysqli-stmt.html">MySQLi_STMT</a></div> 109 <div class="home"><a href="index.html">PHP Manual</a></div> 110</div></body></html>schedules_custom.php https://github.com/freedenizen/mythweb.git | PHP | 240 lines
62<?php } ?> 63 <li><input type="radio" class="radio" name="record" value="<?php echo rectype_always ?>" id="record_always"<?php 64 if ($schedule->type == rectype_always) echo ' CHECKED' ?> /> 81 <ul> 82 <li><input type="radio" class="radio" name="searchtype" value="<?php echo searchtype_title ?>" id="searchtype_title"<?php 83 if (empty($schedule->search) || $schedule->search == searchtype_title) echo ' CHECKED' 85 <label for="searchtype_title"><?php echo t('Title Search') ?></label></li> 86 <li><input type="radio" class="radio" name="searchtype" value="<?php echo searchtype_keyword ?>" id="searchtype_keyword"<?php 87 if ($schedule->search == searchtype_keyword) echo ' CHECKED' 89 <label for="searchtype_keyword"><?php echo t('Keyword Search') ?></label></li> 90 <li><input type="radio" class="radio" name="searchtype" value="<?php echo searchtype_people ?>" id="searchtype_people"<?php 91 if ($schedule->search == searchtype_people) echo ' CHECKED' 93 <label for="searchtype_people"><?php echo t('People Search') ?></label></li> 94 <li><input type="radio" class="radio" name="searchtype" value="<?php echo searchtype_power ?>" id="searchtype_power"<?php 95 if ($schedule->search == searchtype_power) echo ' CHECKED'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 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 <?phpTemplate.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 395 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 236 $html = "<style type=\"text/css\">\n%s\n</style>\n%s"; 237 return sprintf($html, $this->getTemplateStyles(), $text); 238 }functions.php https://github.com/torstein1989/Capstone_II.git | PHP | 315 lines
88 ?> 89 <article <?php comment_class(); ?> id="comment-<?php comment_ID() ?>"> 90 <?php echo get_avatar( $comment, 40 ); ?> 90 <?php echo get_avatar( $comment, 40 ); ?> 91 <?php printf( __( '%s says:', 'starkers' ), sprintf( '%s', get_comment_author_link() ) ); ?> 92 <?php if ( $comment->comment_approved == '0' ) : ?> 99 /* translators: 1: date, 2: time */ 100 printf( __( '%1$s at %2$s', 'starkers' ), get_comment_date(), get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'starkers' ), ' ' ); 101 ?> 106 107 <?php 108 break; 112 <article <?php comment_class(); ?> id="comment-<?php comment_ID() ?>"> 113 <p><?php _e( 'Pingback:', 'starkers' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'starkers'), ' ' ); ?></p> 114 <?phpGetDeviceBrowserStats.php https://gitlab.com/i-have-a-green/digitemis-v3 | PHP | 403 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 391 { 392 if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print 393 return json_encode( 394 ObjectSerializer::sanitizeForSerialization($this), 395 JSON_PRETTY_PRINT 396 );