100+ results results for 'php count repo:anodyne/sms' (953 ms)
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP Project 15 * @package cake 16 * @subpackage cake.tests.cases.libs 17 * @since CakePHP(tm) v 1.2.0.5432 18 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 50 if (!defined('SIMPLETESTVENDORPATH')) { 51 if (file_exists(APP . DS . 'vendors' . DS . 'simpletest' . DS . 'reporter.php')) { 52 define('SIMPLETESTVENDORPATH', 'APP' . DS . 'vendors');AggregateColumnBehaviorTest.php https://github.com/1989gaurav/Propel.git | PHP | 255 lines
1<?php 2 3/* 4 * $Id: SoftDeleteBehaviorTest.php 1612 2010-03-16 22:56:21Z francois $ 5 * This file is part of the Propel package. 11 12require_once dirname(__FILE__) . '/../../../../tools/helpers/bookstore/BookstoreTestBase.php'; 13 26 $postTable = AggregatePostPeer::getTableMap(); 27 $this->assertEquals(count($postTable->getColumns()), 2, 'AggregateColumn adds one column by default'); 28 $this->assertTrue(method_exists('AggregatePost', 'getNbComments'));AbstractRememberMeServicesTest.php https://github.com/Exercise/symfony.git | PHP | 268 lines
1<?php 2 17 18class AbstractRememberMeServicesTest extends \PHPUnit_Framework_TestCase 19{ 117 $response = new Response; 118 $account = $this->getMock('Symfony\Component\Security\Core\User\UserInterface'); 119 $token = $this->getMock('Symfony\Component\Security\Core\Authentication\Token\TokenInterface'); 140 $response = new Response; 141 $account = $this->getMock('Symfony\Component\Security\Core\User\UserInterface'); 142 $token = $this->getMock('Symfony\Component\Security\Core\Authentication\Token\TokenInterface'); 145 ->method('getUser') 146 ->will($this->returnValue($account)) 147 ; 164 $response = new Response; 165 $account = $this->getMock('Symfony\Component\Security\Core\User\UserInterface'); 166 $token = $this->getMock('Symfony\Component\Security\Core\Authentication\Token\TokenInterface');homefeatured.php https://gitlab.com/staging06/myproject | PHP | 272 lines
1<?php 2/* 9* It is also available through the world-wide-web at this URL: 10* http://opensource.org/licenses/afl-3.0.php 11* If you did not receive a copy of the license and are unable to 22* @copyright 2007-2015 PrestaShop SA 23* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 24* International Registered Trademark & Property of PrestaShop SA 93 $errors[] = $this->l('Invalid value for the "randomize" flag.'); 94 if (isset($errors) && count($errors)) 95 $output = $this->displayError(implode('<br />', $errors)); 115 { 116 if (isset($this->context->controller->php_self) && $this->context->controller->php_self == 'index') 117 $this->context->controller->addCSS(_THEME_CSS_DIR_.'product_list.css');standard.php https://gitlab.com/buitenzorg812/garapic.cms | PHP | 389 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 40/** 41 * PHP ext/standard compatibility package 42 * 51 52if (is_php('5.5')) 53{ 63 * 64 * @link http://php.net/array_column 65 * @param string $array 137 138if (is_php('5.4')) 139{101_MailchimpSeed.php https://gitlab.com/x33n/platform | PHP | 253 lines
1<?php 2 2 3require_once(dirname(__FILE__) . '/base.php'); 4 111 $webhooks1 = $mc->listWebhooks(); 112 $initial_webhooks = count($webhooks1); 113 //$this->assertTrue(count($webhooks1) == 0, 'zero webhooks initially'); 120 $this->assertTrue($webhooks2); 121 $this->assertTrue(count($webhooks2) == $initial_webhooks + 1, 'incorrect webhook count'); 122 $this->assertTrue($webhooks2[$initial_webhooks]); // using $initial_webhooks as index — zero if none, course corrects to our "new" webhook 230 $members = $mc->listMembers(); 231 $member_count = count($members['data']); 232 // this is a little weird because it's testing the last member of the subcriber list 249 // removed from the subscribers list correctly on the mailchimp end 250 $this->assertEqual($member_count - count($members['data']),1); 251 }shoutbox.class.php https://gitlab.com/x33n/ampache | PHP | 288 lines
1<?php 2/* vim:set softtabstop=4 shiftwidth=4 expandtab: */ 82 * get_top 83 * This returns the top user_shouts, shoutbox objects are always shown regardless and count against the total 84 * number of objects shown 90 // If we've already got too many stop here 91 if (count($shouts) > $limit) { 92 $shouts = array_slice($shouts,0,$limit); 96 // Only get as many as we need 97 $limit = intval($limit) - count($shouts); 98 $sql = "SELECT * FROM `user_shout` WHERE `sticky`='0' ORDER BY `date` DESC LIMIT $limit"; 165 if (Art::has_db($this->object_id, $this->object_type)) { 166 $image_string = "<img class=\"shoutboximage\" height=\"75\" width=\"75\" src=\"" . AmpConfig::get('web_path') . "/image.php?object_id=" . $this->object_id . "&object_type=" . $this->object_type . "&thumb=1\" />"; 167 } 257 if (Access::check('interface','25')) { 258 $html .= "<a href=\"" . AmpConfig::get('web_path') . "/shout.php?action=show_add_shout&type=" . $this->object_type . "&id=" . $this->object_id . "\">" . UI::get_icon('comment', T_('Post Shout')) . "</a>"; 259 }FromProcessor.php https://gitlab.com/staging06/myproject | PHP | 237 lines
1<?php 2/** 2/** 3 * FromProcessor.php 4 * 32 33require_once(dirname(__FILE__) . '/AbstractProcessor.php'); 34require_once(dirname(__FILE__) . '/ExpressionListProcessor.php'); 34require_once(dirname(__FILE__) . '/ExpressionListProcessor.php'); 35require_once(dirname(__FILE__) . '/DefaultProcessor.php'); 36require_once(dirname(__FILE__) . '/../utils/ExpressionType.php'); 52 // loop init 53 return array('expression' => "", 'token_count' => 0, 'table' => "", 'no_quotes' => "", 'alias' => false, 54 'join_type' => "", 'next_join_type' => "", 'saved_join_type' => $parseInfo['saved_join_type'], 118 if ($skip_next && $token !== "") { 119 $parseInfo['token_count']++; 120 $skip_next = false;MoreLikeThis.php https://gitlab.com/Blueprint-Marketing/solr-power | PHP | 341 lines
1<?php 2/** 319 /** 320 * Set count option 321 * 323 * 324 * @param int $count 325 * @return self Provides fluent interface 326 */ 327 public function setCount($count) 328 { 328 { 329 return $this->setOption('count', $count); 330 } 332 /** 333 * Get count option 334 *apc-handle.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 238 lines
16 17#ifndef incl_HPHP_APC_HANDLE_H_ 18#define incl_HPHP_APC_HANDLE_H_ 21 22#include "hphp/util/atomic.h" 23#include "hphp/util/hash.h" 107 * 108 * function | Uncounted | Counted 109 * -----------------+-----------+----------- 133 /* 134 * Get an instance of the PHP object represented by this APCHandle. The 135 * instance returned will be local to the request/thread that performed 184 bool isUncounted() const { return m_flags & FUncounted; } 185 void setUncounted() { m_flags |= FUncounted; } 186ro.php https://gitlab.com/ptisky/API_prestashop | PHP | 147 lines
31 32 // Date time formats. See http://www.php.net/manual/en/function.strftime.php 33 '_dateTimeFull' => "%A, %e %B, %Y %H:%M", 78 "The files in the Clipboard are not readable." => "Fișierele de pe clipboard nu pot fi citite.", 79 "{count} files in the Clipboard are not readable. Do you want to copy the rest?" => "{count} fișiere de pe clipboard nu pot fi citite. Doriți să copiați restul fișierelor?", 80 "The files in the Clipboard are not movable." => "Fișierele de pe clipboard nu pot fi mutate.", 80 "The files in the Clipboard are not movable." => "Fișierele de pe clipboard nu pot fi mutate.", 81 "{count} files in the Clipboard are not movable. Do you want to move the rest?" => "{count} fișiere de pe clipboard nu pot fi mutate. Doriți să mutați restul fișierelor?", 82 "The files in the Clipboard are not removable." => "Fișierele de pe clipboard nu pot fi fi mutate.", 82 "The files in the Clipboard are not removable." => "Fișierele de pe clipboard nu pot fi fi mutate.", 83 "{count} files in the Clipboard are not removable. Do you want to delete the rest?" => "{count} fișiere de pe clipboard nu pot fi înlăturate. Doriți să înlăturați restul fișierelor?", 84 "The selected files are not removable." => "Fișierele selectate nu pot fi mutate.", 84 "The selected files are not removable." => "Fișierele selectate nu pot fi mutate.", 85 "{count} selected files are not removable. Do you want to delete the rest?" => "{count} fișiere selectate nu pot fi înlăturate. Doriți să ștergeți restul fișierelor?", 86 "Are you sure you want to delete all selected files?" => "Sigur doriți să ștergeți toate fișierele selectate?",Injector.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 281 lines
1<?php 2 159 // check for exclusion 160 for ($i = count($this->currentNesting) - 2; $i >= 0; $i--) { 161 $node = $this->currentNesting[$i]; 182 if ($i === null) { 183 $i = count($this->inputZipper->back) - 1; 184 } else { 236 if ($i === null) { 237 $i = count($this->inputZipper->front) - 1; 238 } else {editorFrame.php https://github.com/Asherontas/Active-CMS.git | PHP | 315 lines
104 var mode = "<?php echo $editor->getAction(); ?>" //crop, scale, measure 105 var currentImageFile = "<?php if(count($imageInfo)>0) echo rawurlencode($imageInfo['file']); ?>"; 106 176 alert(i18n('File was not saved.')); 177<?php 178 } 255 <td> 256<?php if(count($imageInfo) > 0 && is_file($imageInfo['fullpath'])) { ?> 257 257 258 <div id="background" name="background" style="margin: auto; width: <?php echo $imageInfo['width']; ?>px; height: <?php echo $imageInfo['height']; ?>px; background-image: url(<?php echo $imageInfo['src']; ?>);"> 259 <?php if (count($IMConfig['watermarks']) > 0) { ?> 263 264 <span id="imgCanvas" name="imgCanvas" class="crop" style="display: none;"><img src="<?php echo $imageInfo['src']; ?>" <?php echo $imageInfo['dimensions']; ?> alt="" id="theImage" name="theImage" /></span> 265class.splitmerge.plugin.php https://github.com/Emaratilicious/Garden.git | PHP | 195 lines
76 $Sender->ShowCategorySelector = (bool)C('Vanilla.Categories.Use'); 77 $CountCheckedComments = count($CommentIDs); 78 $Sender->SetData('CountCheckedComments', $CountCheckedComments); 87 88 if ($Sender->Form->ErrorCount() == 0 && $NewDiscussionID > 0) { 89 // Re-assign the comments to the new discussion record 97 $CommentModel = new CommentModel(); 98 $CommentModel->UpdateCommentCount($DiscussionID); 99// $CommentModel->UpdateUserCommentCounts($DiscussionID); 99// $CommentModel->UpdateUserCommentCounts($DiscussionID); 100 $CommentModel->UpdateCommentCount($NewDiscussionID); 101 129 $Sender->SetData('DiscussionIDs', $DiscussionIDs); 130 $CountCheckedDiscussions = count($DiscussionIDs); 131 $Sender->SetData('CountCheckedDiscussions', $CountCheckedDiscussions);io.php https://github.com/Asherontas/Active-CMS.git | PHP | 303 lines
1<?php 2/* 21 * 22 * This is the File Manager Connector for PHP. 23 */ 117 118 $php_errormsg = '' ; 119 // Enable error tracking to catch the error. 138 139 $sErrorMsg = $php_errormsg ; 140 159 160 $sSelfPath = $_SERVER['PHP_SELF'] ; 161 $sSelfPath = substr( $sSelfPath, 0, strrpos( $sSelfPath, '/' ) ) ; 169 if ( $position === false || $position <> strlen( $sRealPath ) - strlen( $sSelfPath ) ) 170 SendError( 1, 'Sorry, can\'t map "UserFilesPath" to a physical path. You must set the "UserFilesAbsolutePath" value in "editor/filemanager/connectors/php/config.php".' ) ; 171Regex.php https://github.com/kervin/kyzstudio.git | PHP | 269 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Regex.php 20096 2010-01-06 02:05:09Z bkarwin $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Controller_Router_Route_Abstract */ 24#require_once 'Zend/Controller/Router/Route/Abstract.php'; 25 92 93 // array_filter_key()? Why isn't this in a standard PHP function set yet? :) 94 foreach ($values as $i => $value) { 109 /** 110 * Maps numerically indexed array values to it's associative mapped counterpart. 111 * Or vice versa. Uses user provided map array which consists of index => name 124 { 125 if (count($this->_map) == 0) { 126 return $values;LBFgcac.plugin.php https://github.com/md-tech/openemr.git | PHP | 288 lines
19 $encrow = sqlQuery("SELECT date FROM form_encounter WHERE " . 20 "pid = '$pid' AND encounter = '$encounter'"); 21 $encdate = $encrow['date']; 28 "f.deleted = 0 AND " . 29 "fe.pid = f.pid AND fe.encounter = f.encounter AND " . 30 "fe.date <= '$encdate' AND " . 61 $encrow = sqlQuery("SELECT date FROM form_encounter WHERE " . 62 "pid = '$pid' AND encounter = '$encounter'"); 63 $encdate = $encrow['date']; 69 "DATE_ADD(fe.date, INTERVAL 14 DAY) > '$encdate' AND " . 70 "b.pid = fe.pid AND b.encounter = fe.encounter AND b.activity = 1 AND " . 71 "b.code_type = 'MA' AND c.code_type = '12' AND " . 84 "FROM billing AS b, codes AS c WHERE " . 85 "b.pid = '$pid' AND b.encounter = '$encounter' AND b.activity = 1 AND " . 86 "b.code_type = 'MA' AND c.code_type = '12' AND " .webfont.php https://github.com/PressCrew/infinity.git | PHP | 441 lines
1<?php 2/** 319 // is array and has items? 320 if ( isset( $array['items'] ) && is_array( $array['items'] ) && count( $array['items'] ) ) { 321 // data to return 346 ( isset( $item['family'] ) && strlen( $item['family'] ) ) && 347 ( isset( $item['variants'] ) && is_array( $item['variants'] ) && count( $item['variants'] ) ) && 348 ( isset( $item['subsets'] ) && is_array( $item['subsets'] ) && count( $item['subsets'] ) )template.php https://gitlab.com/srueegger/1zu12bB | PHP | 290 lines
1<?php 2 class Template{ 152 $this->loops[strtoupper($name)][] = $this->loop_templates[strtoupper($name)]; 153 $res = count($this->loops[strtoupper($name)]) - 1; 154 }standard.php https://gitlab.com/jLKisni/furandpaw-frontend | PHP | 389 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 40/** 41 * PHP ext/standard compatibility package 42 * 51 52if (is_php('5.5')) 53{ 63 * 64 * @link http://php.net/array_column 65 * @param array $array 137 138if (is_php('5.4')) 139{Regex.php https://github.com/grjones/qframe.git | PHP | 269 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Regex.php 20096 2010-01-06 02:05:09Z bkarwin $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Controller_Router_Route_Abstract */ 24require_once 'Zend/Controller/Router/Route/Abstract.php'; 25 92 93 // array_filter_key()? Why isn't this in a standard PHP function set yet? :) 94 foreach ($values as $i => $value) { 109 /** 110 * Maps numerically indexed array values to it's associative mapped counterpart. 111 * Or vice versa. Uses user provided map array which consists of index => name 124 { 125 if (count($this->_map) == 0) { 126 return $values;AssetBundleTest.php https://gitlab.com/brucealdridge/yii2 | PHP | 273 lines
1<?php 2/** 45 TestSimpleAsset::register($view); 46 $this->assertEquals(1, count($view->assetBundles)); 47 $this->assertArrayHasKey('yiiunit\\framework\\web\\TestSimpleAsset', $view->assetBundles); 52EOF; 53 $this->assertEquals($expected, $view->renderFile('@yiiunit/data/views/rawlayout.php')); 54 } 61 TestAssetBundle::register($view); 62 $this->assertEquals(3, count($view->assetBundles)); 63 $this->assertArrayHasKey('yiiunit\\framework\\web\\TestAssetBundle', $view->assetBundles); 73EOF; 74 $this->assertEqualsWithoutLE($expected, $view->renderFile('@yiiunit/data/views/rawlayout.php')); 75 } 106 TestAssetBundle::register($view); 107 $this->assertEquals(3, count($view->assetBundles)); 108 $this->assertArrayHasKey('yiiunit\\framework\\web\\TestAssetBundle', $view->assetBundles);Unit_test.php https://gitlab.com/rezaul007/Hospital-information-bank | PHP | 405 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 195 { 196 if (count($result) === 0) 197 { 278 279 if (count($results) === 0) 280 {shmop.c https://gitlab.com/envieidoc/advancedtomato2 | C | 377 lines
127{ 128 struct php_shmop *shmop = (struct php_shmop *)rsrc->ptr; 129 156 gets and attaches a shared memory segment */ 157PHP_FUNCTION(shmop_open) 158{ 258 259 if (count < 0 || start > (INT_MAX - count) || start + count > shmop->size) { 260 php_error_docref(NULL TSRMLS_CC, E_WARNING, "count is out of range"); 264 startaddr = shmop->addr + start; 265 bytes = count ? count : shmop->size - start; 266 349 long shmid; 350 struct php_shmop *shmop; 351 int type;CrtWrapper.c https://gitlab.com/envieidoc/Clover | C | 450 lines
8which accompanies this distribution. The full text of the license may be found at 9http://opensource.org/licenses/bsd-license.php 10 37 IN OUT VOID *BufferToSort, 38 IN CONST UINTN Count, 39 IN CONST UINTN ElementSize, 44 VOID *Pivot; 45 UINTN LoopCount; 46 UINTN NextSwapLocation; 51 52 if (Count < 2 || ElementSize < 1) { 53 return; 66 // 67 for (LoopCount = 0; LoopCount < Count - 1; LoopCount++) 68 {Sreg.php https://gitlab.com/rsilveira1987/Expresso | PHP | 300 lines
1<?php 2 25 */ 26require_once "Zend/OpenId/Extension.php"; 27 107 "postcode", 108 "country", 109 "language", 122 { 123 if (is_array($this->_props) && count($this->_props) > 0) { 124 foreach ($this->_props as $prop => $req) { 195 196 $this->_props = (count($props2) > 0) ? $props2 : null; 197 return true; 207 { 208 if (is_array($this->_props) && count($this->_props) > 0) { 209 if ($this->_version >= 1.1) {Sreg.php https://gitlab.com/yousafsyed/easternglamor | PHP | 300 lines
1<?php 2 25 */ 26#require_once "Zend/OpenId/Extension.php"; 27 107 "postcode", 108 "country", 109 "language", 122 { 123 if (is_array($this->_props) && count($this->_props) > 0) { 124 foreach ($this->_props as $prop => $req) { 195 196 $this->_props = (count($props2) > 0) ? $props2 : null; 197 return true; 207 { 208 if (is_array($this->_props) && count($this->_props) > 0) { 209 if ($this->_version >= 1.1) {Export.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 267 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 */ 150 ->export(); 151 $countRows = substr_count(trim($result), "\n"); 152 if (!$countRows) { 158 $this->addLogComment(array( 159 Mage::helper('importexport')->__('Exported %s rows.', $countRows), 160 Mage::helper('importexport')->__('Export has been done.')class.jetpack-twitter-cards.php https://gitlab.com/thisishayat/itv-2016 | PHP | 213 lines
1<?php 2 31 $site_tag = apply_filters( 'jetpack_sharing_twitter_via', $site_tag, ( is_singular() ? $post->ID : null ) ); 32 /** This action is documented in modules/sharedaddy/sharing-sources.php */ 33 $site_tag = apply_filters( 'jetpack_twitter_cards_site_tag', $site_tag, $og_tags ); 50 $featured = Jetpack_PostImages::from_thumbnail( $post->ID, 240, 240 ); 51 if ( !empty( $featured ) && count( $featured ) > 0 ) { 52 if ( (int) $featured[0]['src_width'] >= 280 && (int) $featured[0]['src_height'] >= 150 ) { 87 if ( ! empty( $post ) && ! empty( $post->post_author ) ) { 88 /** This action is documented in modules/sharedaddy/sharing-sources.php */ 89 $handle = apply_filters( 'jetpack_sharing_twitter_via', '', $post->ID ); 95 // Make sure we have a description for Twitter, their validator isn't happy without some content (single space not valid). 96 if ( ! isset( $og_tags['og:description'] ) || '' == trim( $og_tags['og:description'] ) || __('Visit the post for more.', 'jetpack') == $og_tags['og:description'] ) { // empty( trim( $og_tags['og:description'] ) ) isn't valid php 97 $has_creator = ( ! empty($og_tags['twitter:creator']) && '@wordpressdotcom' != $og_tags['twitter:creator'] ) ? true : false; 120 $card_type = 'summary'; 121 $img_count = $extract['count']['image']; 122DefaultIterator.php https://github.com/sidealice/zf2.git | PHP | 308 lines
1<?php 2/** 30 * 31 * @uses Countable 32 * @uses Iterator 38 */ 39class DefaultIterator implements \Iterator, \Countable 40{ 70 */ 71 protected $_itemCount = -1; 72 90 $this->_resultId = $resultId; 91 $this->_itemCount = @ldap_count_entries($ldap->getResource(), $resultId); 92 if ($this->_itemCount === false) { 92 if ($this->_itemCount === false) { 93 throw new Ldap\Exception($this->_ldap, 'counting entries'); 94 }Export.php https://github.com/rgranadino/magento-mirror.git | PHP | 267 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 */ 150 ->export(); 151 $countRows = substr_count(trim($result), "\n"); 152 if (!$countRows) { 158 $this->addLogComment(array( 159 Mage::helper('importexport')->__('Exported %s rows.', $countRows), 160 Mage::helper('importexport')->__('Export has been done.')iblock_reindex.php https://gitlab.com/alexprowars/bitrix | PHP | 298 lines
3use Bitrix\Main\Loader; 4require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 5Loader::includeModule('iblock'); 5Loader::includeModule('iblock'); 6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/iblock/prolog.php"); 7IncludeModuleLangFile(__FILE__); 51 CUtil::JSPostUnescape(); 52 require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_js.php"); 53 86 $index->startIndex(); 87 $NS[$IBLOCK_ID]["TOTAL"] = $index->estimateElementCount(); 88 } 108 jsSelectUtils.selectOption(BX('iblock'), <?echo $IBLOCK_ID?>); 109 DoNext(<?echo CUtil::PhpToJSObject($NS)?>); 110 </script>MysqliStatement.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 335 lines
1<?php 2/* 72 73 $paramCount = $this->_stmt->param_count; 74 if (0 < $paramCount) { 75 // Index 0 is types 76 // Need to init the string else php think we are trying to access it as a array. 77 $bindedValues = array(0 => str_repeat('s', $paramCount)); 78 $null = null; 79 for ($i = 1; $i < $paramCount; $i++) { 80 $bindedValues[] =& $null; 157 $this->_columnNames = $columnNames; 158 $this->_rowBindedValues = array_fill(0, count($columnNames), NULL); 159 188 $params = array(); 189 $types = str_repeat('s', count($values)); 190 $params[0] = $types;Xml.php https://bitbucket.org/iiic/iszp.git | PHP | 178 lines
1<?php 2 20 * @link http://www.gediminasm.org 21 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 22 */ 167 if (isset($config['strategy'])) { 168 if (is_array($meta->identifier) && count($meta->identifier) > 1) { 169 throw new InvalidMappingException("Tree does not support composite identifiers in class - {$meta->name}");en.php https://github.com/masuman/elgg-1.git | PHP | 217 lines
1<?php 2 /** 67 68 'dgroups:count' => "groups created", 69 'dgroups:open' => "open group",cache.php https://bitbucket.org/uziel/busao.git | PHP | 299 lines
6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package cake 59/** 60 * Counter used for counting nocache section tags. 61 * 63 */ 64 var $_counter = 0; 65 174 $this->_counter += 1; 175 return sprintf('<cake:nocache:%03d>', $this->_counter); 176 }Export.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 267 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 */ 150 ->export(); 151 $countRows = substr_count(trim($result), "\n"); 152 if (!$countRows) { 158 $this->addLogComment(array( 159 Mage::helper('importexport')->__('Exported %s rows.', $countRows), 160 Mage::helper('importexport')->__('Export has been done.')NegotiationUrlForm.php https://gitlab.com/mohamed_hussein/prodt | PHP | 220 lines
1<?php 2 142 // Count repeated values for uniqueness check. 143 $count = array_count_values($form_state->getValue('prefix')); 144 $default_langcode = $this->config('language.negotiation')->get('selected_langcode'); 163 } 164 elseif (isset($count[$value]) && $count[$value] > 1) { 165 // Throw a form error if there are two languages with the same 171 // Count repeated values for uniqueness check. 172 $count = array_count_values($form_state->getValue('domain')); 173 foreach ($languages as $langcode => $language) { 182 } 183 elseif (isset($count[$value]) && $count[$value] > 1) { 184 // Throw a form error if there are two languages with the same 195 $host = 'http://' . str_replace(['http://', 'https://'], '', $value); 196 if (parse_url($host, PHP_URL_HOST) != $value) { 197 $form_state->setErrorByName("domain][$langcode", $this->t('The domain for %language may only contain the domain name, not a trailing slash, protocol and/or port.', ['%language' => $language->getName()]));pi.splitter.php https://bitbucket.org/tdevonshire/guinness-jazz-festival.git | PHP | 324 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/* 6 Copyright: Oliver Heine 7 http://utilitees.de/ee.php/splitter 8-------------------------------------------------------- 12======================================================== 13 File: pi.splitter.php 14-------------------------------------------------------- 34 'pi_author' => 'Oliver Heine', 35 'pi_author_url' => 'http://utilitees.de/ee.php/splitter', 36 'pi_description' => 'Split any kind of lists into blocks.', 59 // find pagination 60 $pc = substr_count($tagdata, PAGINATION); 61 96 } 97 $num_cats = count($cat_array); 98ShellDispatcher.php https://github.com/suzuki/candycane.git | PHP | 332 lines
6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @since CakePHP(tm) v 2.0 15 * @since CakePHP(tm) v 2.0 16 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 17 */ 86 define('CAKE_CORE_INCLUDE_PATH', dirname(dirname(dirname(__FILE__)))); 87 define('CAKEPHP_SHELL', true); 88 if (!defined('CORE_PATH')) { 101 if (!$this->_bootstrap()) { 102 $message = "Unable to load CakePHP core.\nMake sure " . DS . 'lib' . DS . 'Cake exists in ' . CAKE_CORE_INCLUDE_PATH; 103 throw new CakeException($message);ezpcontentpublishingqueueprocessor.php https://github.com/eeggenberger/ezpublish.git | PHP | 269 lines
1<?php 2/** 61 { 62 return ( ezpContentPublishingProcess::currentWorkingProcessCount() < $this->allowedPublishingSlots ); 63 } 219 { 220 $this->out->write( count( $this->currentJobs ) . ' jobs remaining' ); 221 sleep( 1 );info.tpl https://github.com/eeggenberger/ezpublish.git | Smarty Template | 283 lines
52 <label>{'Version'|i18n( 'design/admin/setup/info', 'PHP version' )}:</label> 53 {$php_version} (<a href={'/setup/info/php'|ezurl}>{'Details'|i18n( 'design/admin/setup/info', 'Detailed PHP information' )}</a>) 54 </div> 83 {'Maximum size of post data (text and files) is %1.'|i18n( 'design/admin/setup/info',, array( $php_ini.post_max_size ) )}<br/> 84 {if and( is_set( $php_ini.memory_limit ), $php_ini.memory_limit )} 85 {'Script memory limit is %1.'|i18n( 'design/admin/setup/info' ,,array( $php_ini.memory_limit ) )}<br/> 100<td> 101{if $php_accelerator} 102 104<label>{'Name'|i18n( 'design/admin/setup/info', 'PHP Accelerator name' )}:</label> 105{if $php_accelerator.url}<a href="{$php_accelerator.url|wash}">{/if}{$php_accelerator.name|wash}{if $php_accelerator.url}</a>{/if} 106</div> 238<div class="block"> 239 <label>{'Connection retry count'|i18n( 'design/admin/setup/info', 'Database retry count' )}:</label> 240 {$database_object.retry_count}SQLParserUtils.php https://gitlab.com/aleksbenmaza/PPE_NEW | PHP | 243 lines
1<?php 2/* 130 $needlePos += $queryOffset; 131 $count = count($params[$needle]); 132 140 array_slice($types, 0, $needle), 141 $count ? 142 array_fill(0, $count, $types[$needle] - Connection::ARRAY_PARAM_OFFSET) : // array needles are at PDO::PARAM_* + 100 146 147 $expandStr = $count ? implode(", ", array_fill(0, $count, "?")) : 'NULL'; 148 $query = substr($query, 0, $needlePos) . $expandStr . substr($query, $needlePos + 1); 149 150 $paramOffset += ($count - 1); // Grows larger by number of parameters minus the replaced needle. 151 $queryOffset += (strlen($expandStr) - 1); 174 175 $count = count($value); 176 $expandStr = $count > 0 ? implode(', ', array_fill(0, $count, '?')) : 'NULL';Element.php https://bitbucket.org/jokusafet/magento2.git | PHP | 265 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 X.commerce, Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 224 /** 225 * if count of attributes of extend element is 0 in $namespace, 226 * and current element has attributes in $namespace - different elements 227 */ 228// if (!count($attributes) && count($this->getAttributes($child, $namespace))) { 229// foreach ($this->getAttributes($child, $namespace) as $attribute) { 243 */ 244 if (!count($extendElmAttributes) && count($this->getAttributes($child))) { 245 $elm = false;Atom.js https://github.com/stephaneerard/qooxdoo.git | JavaScript | 364 lines
11 LGPL: http://www.gnu.org/licenses/lgpl.html 12 EPL: http://www.eclipse.org/org/documents/epl-v10.php 13 See the LICENSE file in the project's top-level directory for details. 203 204 var count=0; 205 for (var i=start; i!=end; i+=increment) 217 218 count++; 219 } 221 222 if (count > 1) 223 { 223 { 224 var gapSum = (count - 1) * gap; 225 remainingWidth -= gapSum;PriorityQueue.php https://github.com/Riges/KawaiViewModel.git | PHP | 319 lines
1<?php 2/** 20 21require_once 'Zend/Stdlib/SplPriorityQueue.php'; 22 39 */ 40class Zend_Stdlib_PriorityQueue implements Countable, IteratorAggregate, Serializable 41{ 128 { 129 return (0 === $this->count()); 130 } 136 */ 137 public function count() 138 { 138 { 139 return count($this->items); 140 }DelimitedFileReporter.scala https://gitlab.com/zachcoyle/geomesa | Scala | 246 lines
5* which accompanies this distribution and is available at 6* http://www.opensource.org/licenses/apache2.0.php. 7*************************************************************************/ 28 29 val counterCols = Array(("count", "%d")) 30 141 override def report(gauges: java.util.SortedMap[String, Gauge[_]], 142 counters: java.util.SortedMap[String, Counter], 143 histograms: java.util.SortedMap[String, Histogram], 148 gauges.foreach { case (name, metric) => writeGauge(name, timestamp, metric) } 149 counters.foreach { case (name, metric) => writeCounter(name, timestamp, metric) } 150 histograms.foreach { case (name, metric) => writeHistogram(name, timestamp, metric) } 158 private def writeCounter(name: String, timestamp: String, counter: Counter): Unit = 159 write("counters", counterCols, name, timestamp, Array[Any](counter.getCount)) 160Regex.php https://gitlab.com/luisrepo/ClienteWS | PHP | 269 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Regex.php 23775 2011-03-01 17:25:24Z ralph $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Controller_Router_Route_Abstract */ 24require_once 'Zend/Controller/Router/Route/Abstract.php'; 25 92 93 // array_filter_key()? Why isn't this in a standard PHP function set yet? :) 94 foreach ($values as $i => $value) { 109 /** 110 * Maps numerically indexed array values to it's associative mapped counterpart. 111 * Or vice versa. Uses user provided map array which consists of index => name 124 { 125 if (count($this->_map) == 0) { 126 return $values;Ldap.php https://bitbucket.org/baruffaldi/cms-php-bfcms.git | PHP | 296 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Ldap.php 10171 2008-07-18 04:57:08Z miallen $ 21 */ 25 */ 26require_once 'Zend/Auth/Adapter/Interface.php'; 27 52 /** 53 * The username of the account being authenticated. 54 * 59 /** 60 * The password of the account being authenticated. 61 * 69 * @param array $options An array of arrays of Zend_Ldap options 70 * @param string $username The username of the account being authenticated 71 * @param string $password The password of the account being authenticatedCQHelpTopicsViewController.m https://github.com/HHRy/Colloquy.git | Objective C | 267 lines
7 8static NSString *CQHelpTopicsURLFormatString = @"http://colloquy.mobi/help.php?locale=%@"; 9 74 75 if (help.count) 76 [self _generateSectionsFromHelpContent:help]; 91- (NSInteger) numberOfSectionsInTableView:(UITableView *) tableView { 92 return (_helpSections.count ? _helpSections.count : 1); 93} 95- (NSInteger) tableView:(UITableView *) tableView numberOfRowsInSection:(NSInteger) section { 96 if (!_helpSections.count) 97 return 1; 97 return 1; 98 return ((NSArray *)[_helpSections objectAtIndex:section]).count; 99}renderer.php https://github.com/pauln/moodle.git | PHP | 211 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 66 // Exit if empty, we don't want an empty ul element. 67 if (count($items) === 0) { 68 return ''; 82 83 $isexpandable = (empty($expansionlimit) || ($item->type > navigation_node::TYPE_ACTIVITY || $item->type < $expansionlimit) || ($item->contains_active_node() && $item->children->count() > 0)); 84 $isbranch = $isexpandable && ($item->children->count() > 0 || ($item->has_children() && (isloggedin() || $item->type <= navigation_node::TYPE_CATEGORY))); 172 } 173 if (!empty($item->classes) && count($item->classes)>0) { 174 $divclasses[] = join(' ', $item->classes); 200 201 if (count($lis) === 0) { 202 // There is still a chance, despite having items, that nothing had content and no list items were created.ArrayStorage.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 348 lines
1<?php 2/** 215 * - Setting expiry data 216 * - Maintaining access counts 217 * - localizing session storageview.html.php https://bitbucket.org/eternaware/joomus.git | PHP | 271 lines
1<?php 2/** 11 12require_once JPATH_COMPONENT.'/models/category.php'; 13 57 // Check for errors. 58 if (count($errors = $this->get('Errors'))) { 59 JError::raiseWarning(500, implode("\n", $errors)); 80 } 81 if ($params->get('show_street_address') || $params->get('show_suburb') || $params->get('show_state') || $params->get('show_postcode') || $params->get('show_country')) { 82 if (!empty ($item->address) || !empty ($item->suburb) || !empty ($item->state) || !empty ($item->country) || !empty ($item->postcode)) { 134 // Add links to contacts 135 if ($params->get('show_contact_list') && count($contacts) > 1) { 136 foreach($contacts as &$contact)ListView.php https://bitbucket.org/jhunsinfotech/blue-blues.git | PHP | 232 lines
1<?php 2/*+********************************************************************************** 14require_once('include/utils/utils.php'); 15require_once('modules/CustomView/CustomView.php'); 16require_once('modules/RecycleBin/RecycleBinUtils.php'); 21$image_path=$theme_path."images/"; 22require_once('modules/Vtiger/layout_utils.php'); 23 23 24require("user_privileges/user_privileges_".$current_user->id.".php"); 25 37$sql = 'SELECT tabid, name FROM vtiger_tab WHERE presence=0 AND isentitytype=1 '; 38if (count($skip_tab_ids) > 0) { 39 $sql .= ' AND tabid NOT IN ('. generateQuestionMarks($skip_tab_ids) .')'; 97 } 98 $count_result = $adb->query( mkCountQuery($list_query)); 99 $noofrows = $adb->query_result($count_result,0,"count");rl2.c https://github.com/tsangpozheng/iFrameExtractor.git | C | 300 lines
26 * For more information regarding the RL2 file format, visit: 27 * http://wiki.multimedia.cx/index.php?title=RL2 28 * 78 AVStream *st; 79 unsigned int frame_count; 80 unsigned int audio_frame_counter = 0; 80 unsigned int audio_frame_counter = 0; 81 unsigned int video_frame_counter = 0; 82 unsigned int back_size; 101 data_size = get_be32(pb); 102 frame_count = get_le32(pb); 103 103 104 /* disallow back_sizes and frame_counts that may lead to overflows later */ 105 if(back_size > INT_MAX/2 || frame_count > INT_MAX / sizeof(uint32_t))BelongsTo.php https://gitlab.com/hatemdigify/digifyblog | PHP | 310 lines
1<?php 2 111 112 $query->from($query->getModel()->getTable().' as '.$hash = $this->getRelationCountHash()); 113 125 */ 126 public function getRelationCountHash() 127 { 168 // be what this developer is expecting in a case where this happens to them. 169 if (count($keys) == 0) { 170 return [0];components.php https://github.com/kelios/imshop.git | PHP | 354 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 32 // Find not installed modules 33 $count = count($fs_modules); 34 for ($i = 0; $i < $count; $i++) 48 // process modules info 49 $count = count($db_modules); 50 for ($i = 0; $i < $count; $i++) 58 59 if ( file_exists(APPPATH.'modules/'.$db_modules[$i]['name'].'/admin.php') ) 60 { 85 86 if ( file_exists(APPPATH.'modules/'.$module.'/'.$module.'.php') AND $this->is_installed($module) == 0 ) 87 { 126 127 if ( file_exists(APPPATH.'modules/'.$module.'/'.$module.'.php') AND $this->is_installed($module) == 1 ) 128 {index.php https://github.com/AJenbo/ubuntudanmark.dk.git | PHP | 165 lines
1<?php 2//Include wordpress files 3$wp_blog_header_path = ''; 4if(file_exists($_SERVER['DOCUMENT_ROOT'].'/'.'wp-blog-header.php')) 5{ 5{ 6 $wp_blog_header_path = $_SERVER['DOCUMENT_ROOT'].'/'.'wp-blog-header.php'; 7} 7} 8 else if(file_exists($_SERVER['DOCUMENT_ROOT'].'/'.'wp-blog-header.php')) 9{ 9{ 10 $wp_blog_header_path = $_SERVER['DOCUMENT_ROOT'].'/'.'wp-blog-header.php'; 11} 27 <link rel="stylesheet" type="text/css" href="/wp-content/themes/light-wordpress-theme/style.css" /> 28 <link rel="pingback" href="/xmlrpc.php" /> 29 <link rel="alternate" type="application/rss+xml" title="Ubuntu Danmark » Feed" href="/feed/" />CourseArchiver.class.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 209 lines
1<?php 2 4 5require_once 'Course.class.php'; 6 55 //TODO set and handle an error message telling the user to review the permissions on the archive directory 56 error_log(__FILE__ . ' line ' . __LINE__ . ': ' . (ini_get('track_errors') != false ? $php_errormsg : 'error not recorded because track_errors is off in your php.ini') . ' - This error, occuring because your archive directory will not let this script write data into it, will prevent courses backups to be created', 0); 57 } 60 if ($fp === false) { 61 error_log(__FILE__ . ' line ' . __LINE__ . ': ' . (ini_get('track_errors') != false ? $php_errormsg : 'error not recorded because track_errors is off in your php.ini'), 0); 62 } 65 if ($res === false) { 66 error_log(__FILE__ . ' line ' . __LINE__ . ': ' . (ini_get('track_errors') != false ? $php_errormsg : 'error not recorded because track_errors is off in your php.ini'), 0); 67 } 70 if ($res === false) { 71 error_log(__FILE__ . ' line ' . __LINE__ . ': ' . (ini_get('track_errors') != false ? $php_errormsg : 'error not recorded because track_errors is off in your php.ini'), 0); 72 }Element.php https://bitbucket.org/kdms/sh-magento.git | PHP | 265 lines
1<?php 2/** 224 /** 225 * if count of attributes of extend element is 0 in $namespace, 226 * and current element has attributes in $namespace - different elements 227 */ 228// if (!count($attributes) && count($this->getAttributes($child, $namespace))) { 229// foreach ($this->getAttributes($child, $namespace) as $attribute) { 240 /** 241 * if count of namespaces attributes of element to extend is 0, 242 * but current element has namespaces attributes - different elements 243 */ 244 if (!count($extendElmAttributes) && count($this->getAttributes($child))) { 245 $elm = false;lib_test.php https://bitbucket.org/moodle/moodle.git | PHP | 219 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 34 35require_once(__DIR__ . '/local/ltiadvantage/lti_advantage_testcase.php'); 36 148 // Verify data exists. 149 $this->assertEquals(1, $DB->count_records('enrol_lti_user_resource_link')); 150 $this->assertEquals(1, $DB->count_records('enrol_lti_resource_link')); 150 $this->assertEquals(1, $DB->count_records('enrol_lti_resource_link')); 151 $this->assertEquals(1, $DB->count_records('enrol_lti_app_registration')); 152 $this->assertEquals(1, $DB->count_records('enrol_lti_deployment')); 152 $this->assertEquals(1, $DB->count_records('enrol_lti_deployment')); 153 $this->assertEquals(1, $DB->count_records('enrol_lti_context')); 154 $this->assertEquals(1, $DB->count_records('enrol_lti_users')); 160 161 $this->assertEquals(0, $DB->count_records('enrol_lti_user_resource_link')); 162 $this->assertEquals(0, $DB->count_records('enrol_lti_resource_link'));Abstract.php https://bitbucket.org/netglue/zf-1.12-release.git | PHP | 304 lines
1<?php 2 26 */ 27require_once 'Zend/Feed/Element.php'; 28 32 * 33 * Zend_Feed_Abstract implements two core PHP 5 interfaces: ArrayAccess and 34 * Iterator. In both cases the collection being treated as an array is 42 */ 43abstract class Zend_Feed_Abstract extends Zend_Feed_Element implements Iterator, Countable 44{ 82 */ 83 require_once 'Zend/Feed/Exception.php'; 84 throw new Zend_Feed_Exception('Feed failed to load, got response code ' . $response->getStatus() . '; request: ' . $client->getLastRequest() . "\nresponse: " . $response->asString()); 118 // prevent the class to generate an undefined variable notice (ZF-2590) 119 if (!isset($php_errormsg)) { 120 if (function_exists('xdebug_is_enabled')) {FormCheckboxTest.php https://github.com/MontmereLimited/zf2.git | PHP | 289 lines
1<?php 2/** 39 */ 40class FormCheckboxTest extends \PHPUnit_Framework_TestCase 41{ 48 } 49 $this->view = new \Zend\View\Renderer\PhpRenderer(); 50 $this->helper = new \Zend\View\Helper\FormCheckbox(); 101 $this->assertRegexp('/<input[^>]*?(checked="checked")/', $html); 102 $count = substr_count($html, 'checked'); 103 $this->assertEquals(2, $count); 186 } 187 $this->assertEquals(2, count($matches[1])); 188 foreach ($matches[1] as $element) {class-ms-rule-url-model.php https://gitlab.com/najomie/fit-hippie | PHP | 391 lines
156 $check_list = lib3()->array->get( $check_list ); 157 if ( count( $check_list ) ) { 158 $check_list = array_map( 'strtolower', $check_list ); 185 * @param bool $has_access_only Optional. Count rules for has_access status only. 186 * @return int $count The rule count result. 187 */ 188 public function count_rules( $has_access_only = true ) { 189 $count = count( $this->rule_value ); 190 192 'ms_rule_url_model_count_rules', 193 $count, 194 $this 207 public function get_content_count( $args = null ) { 208 $count = count( $this->get_protected_urls() ); 209class.importcontroller.php https://github.com/dkobia/Garden.git | PHP | 210 lines
1<?php if (!defined('APPLICATION')) exit(); 2/* 119 $Validation = new Gdn_Validation(); 120 if (count($ImportPaths) > 0) 121 $Validation->ApplyRule('PathSelect', 'Required', T('You must select a file to import.')); 122 123 if (count($ImportPaths) == 0 || $this->Form->GetFormValue('PathSelect') == 'NEW') 124 $TmpFile = $Upload->ValidateUpload('ImportFile', FALSE); 147 $Imp->ImportPath = $PathSelect; 148 } elseif (!$Imp->ImportPath && count($ImportPaths) == 0) { 149 // There was no file uploaded this request or before.Pagefiles.php https://bitbucket.org/webbear/processwire-base-installation.git | PHP | 359 lines
1<?php 2 65 protected function removeHooks() { 66 if(count($this->hookIDs) && $this->page && $this->page->filesManager) { 67 foreach($this->hookIDs as $id) $this->page->filesManager->removeHook($id); 186 // if it didn't match any tag, then see if it matches in some other way 187 if(!count($value)) $value = parent::find($selector); 188 } else { 248 if(!$this->isValidItem($item)) throw new WireException("Invalid type to {$this->className}::remove(item)"); 249 if(!count($this->unlinkQueue)) { 250 $this->hookIDs[] = $this->page->filesManager->addHookBefore('save', $this, 'hookPageSave');index.php https://gitlab.com/sdlion/nandini_151534_b35_atomic_project | PHP | 244 lines
19######################## pagination code block#1 of 2 start ###################################### 20$recordCount= count($allData); 21 32 33$pages = ceil($recordCount/$itemsPerPage); 34$someData = $objSummaryofOrganization->indexPaginator($page,$itemsPerPage); 72<div align="right"> 73 <a href="pdf.php" class="btn btn-primary" role="button">Download as PDF</a> 74 <a href="xl.php" class="btn btn-primary" role="button">Download as XL</a> 103 <button type="button" onclick="window.location.href='create.php'" class=" btn-info btn-lg">Add new</button> 104 <button type="button" onclick="window.location.href='trashed.php?Page=1'" class=" btn-info btn-lg">Trashed List</button> 105 </div> 155 } 156 if($page<$pages) echo "<li><a href='index.php?Page=$pagePlusOne'>" . "Next" . "</a></li>"; 157index.php https://bitbucket.org/darrellhawley/actus_radius_connect_django.git | PHP | 324 lines
226 227 <?php 228 if ($_SERVER['REQUEST_METHOD'] != 'POST'){ 228 if ($_SERVER['REQUEST_METHOD'] != 'POST'){ 229 $me = $_SERVER['PHP_SELF']; 230?> 232 <form name="form1" method="post" 233 action="<?php echo $me;?>"> 234 <label for="name">Name<input type="text" name="name" id="name" /></label><label for="email">Email<input type="text" name="email" id="email" /></label> 236 </form> 237 <?php 238} else { 320 321<?php include '../radius.php'; ?> 322Pop3.php https://github.com/shevron/zf2.git | PHP | 286 lines
1<?php 2/** 31 /** 32 * Count messages all messages in current box 33 * 37 */ 38 public function countMessages() 39 { 39 { 40 $count = 0; // "Declare" variable before first usage. 41 $octets = 0; // "Declare" variable since it's passed by reference 41 $octets = 0; // "Declare" variable since it's passed by reference 42 $this->_protocol->status($count, $octets); 43 return (int)$count; 207 } 208 $count = $this->countMessages(); 209 if ($count < 1) {pagination.php https://github.com/uwiuw/myphpclass.git | PHP | 255 lines
172 if ($lastpage < 7 + ($this->adjacents * 2)){//not enough pages to bother breaking it up 173 for ($counter = 1; $counter <= $lastpage; $counter++){ 174 if ($this->showNumber) { 184 if($this->page < 1 + ($this->adjacents * 2)){ 185 for ($counter = 1; $counter < 4 + ($this->adjacents * 2); $counter++){ 186 if ($this->showNumber) { 207 208 for ($counter = $this->page - $this->adjacents; $counter <= $this->page + $this->adjacents; $counter++) { 209 if ($this->showNumber) { 230 231 for ($counter = $lastpage - (2 + ($this->adjacents * 2)); $counter <= $lastpage; $counter++) { 232 if ($this->showNumber) { 235 else 236 $this->pagination .= "<a href=\"".$this->get_pagenum_link($counter)."\">$counter</a>"; 237 }Propel2Collector.php https://gitlab.com/ntphuc/FoodyBackend | PHP | 307 lines
1<?php 2/* 60 */ 61 protected $queryCount = 0; 62 130 */ 131 protected function getQueryCount() 132 { 132 { 133 return $this->queryCount; 134 } 149 150 $detailsCount = count($config['details']); 151 $parameters = explode($config['outerGlue'], $record['message'], $detailsCount + 1); 151 $parameters = explode($config['outerGlue'], $record['message'], $detailsCount + 1); 152 if (count($parameters) === ($detailsCount + 1)) { 153 $parameters = array_map('trim', $parameters);loadTopStats.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 257 lines
1<?php 2session_start(); 5 6require("../XBTeam/functions.php"); 7require("../XBTeam/se7en.php"); 55<ul class="top-list"> 56<?php 57$i = 0; 77<div class="song-info"> 78<div class="song-count">Lượt nghe trong tuần: <span><?=$sView?></span></div> 79</div> 82</li> 83<?php } ?> 84</ul> 89<ul class="top-list"> 90<?php 91$i = 0;DetailView.php https://gitlab.com/tjaafar/SuiteCRM | PHP | 207 lines
1<?php 2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 50require_once('include/upload_file.php'); 51require_once('include/DetailView/DetailView.php'); 52 71} else { 72 header("Location: index.php?module=Accounts&action=index"); 73} 90} 91if(isset($_REQUEST['account_name']) && is_null($focus->parent_name)) { 92 $focus->parent_name = $_REQUEST['account_name']; 93} 94if(isset($_REQUEST['account_id']) && is_null($focus->parent_id)) { 95 $focus->parent_id = $_REQUEST['account_id']; 121); 122require_once('include/Smarty/plugins/function.sugar_action_menu.php'); 123$action_button = smarty_function_sugar_action_menu(array(HarmonyImportSpecifierDependency.js https://gitlab.com/ahmad.jamal/sally | JavaScript | 321 lines
1/* 2 MIT License http://www.opensource.org/licenses/mit-license.php 3 Author Tobias Koppers @sokra 199 /** 200 * implement this method to allow the occurrence order plugin to count correctly 201 * @returns {number} count how often the id is used in this dependencyMailFake.php https://gitlab.com/madwanz64/laravel | PHP | 344 lines
8use Illuminate\Contracts\Queue\ShouldQueue; 9use PHPUnit\Framework\Assert as PHPUnit; 10 61 PHPUnit::assertTrue( 62 ($count = $this->sent($mailable)->count()) === $times, 63 "The expected [{$mailable}] mailable was sent {$count} times instead of {$times} times." 92 93 PHPUnit::assertEmpty($this->mailables, 'The following mailables were sent unexpectedly: '.$mailableNames); 94 } 109 PHPUnit::assertTrue( 110 $this->queued($mailable, $callback)->count() > 0, 111 "The expected [{$mailable}] mailable was not queued." 124 PHPUnit::assertTrue( 125 ($count = $this->queued($mailable)->count()) === $times, 126 "The expected [{$mailable}] mailable was queued {$count} times instead of {$times} times."view-add_event.tpl https://gitlab.com/zohaibsaleem/shipcliq | Smarty Template | 183 lines
15 <h2>Add Event</h2> 16 <form name="frmevent" id="frmevent" method="post" action="{$tconfig.tsite_url}index.php?file=o-add_event_a"> 17 <input type="hidden" name="iEventId" id="iEventId" value="{$iEventId}"> 58 </label> 59 <span style="flot:left;width: 100%;"><strong>Note: </strong>If event categoty is not available which you want to add please <a href="{$tconfig.tsite_url}index.php?file=o-add_new_category" style="font-size:17px;color: #92A20A;" class="editbooking">click here</a> to add new event category.</span> 60 </div> 100 <p> 101 <select class="validate[required]" id="vCountry" name="vCountry" style="width:322px; float:left;" onChange="get_county_list(this.value);"> 102 <option value="">-- Please Select --</option> 103 {section name=i loop=$db_country} 104 <option value="{$db_country[i].vCountryCode}" {if $event[0].vCountry eq ''}{if $db_country[i].vCountryCode eq 'US'} selected {/if}{else}{if $db_country[i].vCountryCode eq $event[0].vCountry} selected {/if}{/if}>{$db_country[i].vCountry}</option> 105 {/section} 181{if $event[0].uplogo neq ''}{literal}<script>show_regimage('{/literal}{$event[0].uplogo}{literal}', '{/literal}{$event[0].imageurl}{literal}', '{/literal}{$event[0].width}{literal}', '{/literal}{$event[0].height}{literal}');</script>{/literal}{/if} 182{literal}<script>if('{/literal}{$event[0].vState}{literal}' != '' || '{/literal}{$event[0].vCountry}{literal}' != ''){get_county_list('{/literal}{$event[0].vCountry}{literal}', '{/literal}{$event[0].vState}{literal}');}</script>{/literal} 183{literal}<script>if('{/literal}{$event[0].vCountry}{literal}' == '' ){get_county_list('US');}</script>{/literal}view.html.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 343 lines
1<?php 2/** 73 // @TODO: Maybe this could go into JComponentHelper::raiseErrors($this->get('Errors')) 74 if (count($errors = $this->get('Errors'))) 75 { 213 214 // Increment the hit counter of the newsfeed. 215 $model = $this->getModel();rl2.c https://github.com/shaobin0604/rockplayer_ffmpeg_git_20100418.git | C | 300 lines
26 * For more information regarding the RL2 file format, visit: 27 * http://wiki.multimedia.cx/index.php?title=RL2 28 * 78 AVStream *st; 79 unsigned int frame_count; 80 unsigned int audio_frame_counter = 0; 80 unsigned int audio_frame_counter = 0; 81 unsigned int video_frame_counter = 0; 82 unsigned int back_size; 101 data_size = avio_rb32(pb); 102 frame_count = avio_rl32(pb); 103 103 104 /* disallow back_sizes and frame_counts that may lead to overflows later */ 105 if(back_size > INT_MAX/2 || frame_count > INT_MAX / sizeof(uint32_t))setup_atmailopen.pas https://github.com/rsd/artica-1.5.git | Pascal | 277 lines
103 104 if not FileExists('/usr/share/atmailopen/libs/Atmail/Config.php.default') then begin 105 writeln('Installing failed to stat /usr/share/atmailopen/libs/Atmail/Config.php.default'); 174EnableVirtualDomainsInMailBoxes:=0; 175if Not FileExists('/usr/share/atmailopen/libs/Atmail/Config.php') then begin 176 if Not FileExists('/usr/share/atmailopen/libs/Atmail/Config.php.default') then begin 176 if Not FileExists('/usr/share/atmailopen/libs/Atmail/Config.php.default') then begin 177 writeln('Unable to stat /usr/share/atmailopen/libs/Atmail/Config.php.default'); 178 exit; 180 181 fpsystem('/bin/cp -r /usr/share/atmailopen/libs/Atmail/Config.php.default /usr/share/atmailopen/libs/Atmail/Config.php'); 182 fpsystem('/bin/chown www-data:www-data /usr/share/atmailopen/libs/Atmail/Config.php'); 184 185if Not FileExists('/usr/share/atmailopen/libs/Atmail/Config.php') then begin 186 writeln('Unable to stat /usr/share/atmailopen/libs/Atmail/Config.php');HeaderBag.php https://gitlab.com/oytunistrator/92five | PHP | 350 lines
1<?php 2 20 */ 21class HeaderBag implements \IteratorAggregate, \Countable 22{ 140 if ($first) { 141 return count($this->headers[$key]) ? $this->headers[$key][0] : $default; 142 } 308 */ 309 public function count() 310 { 310 { 311 return count($this->headers); 312 }Feed.php https://gitlab.com/geeta7/drupal | PHP | 315 lines
1<?php 2 197 $displays = array_filter($this->getOption('displays')); 198 if (count($displays) > 1) { 199 $attach_to = $this->t('Multiple displays'); 200 } 201 elseif (count($displays) == 1) { 202 $display = array_shift($displays);members.php https://github.com/bluelovers/Discuz.git | PHP | 294 lines
1<?php 2 5 * 6 * $Id: members.php 17836 2010-11-03 05:24:59Z cnteacher $ 7 */ 21 $db_target->query("TRUNCATE $table_target_admincp"); 22 $db_target->query("TRUNCATE {$table_target}_count"); 23 $db_target->query("TRUNCATE {$table_target}_field_forum"); 30// bluelovers 31include_once DISCUZ_ROOT.'./include/editor.func.php'; 32$_old = $_new = array(); 50 $data = implode_field_value($emptyrow); 51 $db_target->query("INSERT INTO {$table_target}_count SET $data"); 52 $db_target->query("INSERT INTO {$table_target}_field_forum SET $data"); 57 58// $db_target->query("REPLACE INTO {$table_target}_count SET $data"); 59// $db_target->query("REPLACE INTO {$table_target}_field_forum SET $data");cache.php https://github.com/robwilkerson/CakePHP-Boilerplate.git | PHP | 299 lines
6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package cake 59/** 60 * Counter used for counting nocache section tags. 61 * 63 */ 64 var $_counter = 0; 65 174 $this->_counter += 1; 175 return sprintf('<cake:nocache:%03d>', $this->_counter); 176 }wikiplugin_twitter.php https://gitlab.com/ElvisAns/tiki | PHP | 228 lines
1<?php 2 13 'documentation' => 'PluginTwitter', 14 'description' => tra('Display the activity for a twitter account'), 15 'prefs' => ['wikiplugin_twitter'], 24 'Depends on the type of timeline (Users, Collections, Favorites or Lists). For a 25 User, it is the Account Name (like %0twitterdev%1), for Favorites, something like 26 %0twitterdev/favorites%1. For lists, something like %0twitterdev/lists/listname%1, etc. ', 187 } 188 if (count($datachrome) > 0) { 189 $datachromehtml = "data-chrome=' " . implode(' ', $datachrome) . "' ";minicallib.php https://gitlab.com/ElvisAns/tiki | PHP | 226 lines
1<?php 2 10if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) { 11 header("location: index.php"); 12 exit; 79 $query = "select `isIcon`,`path`,`name`,`topicId` from `tiki_minical_topics` where `user`=? $mid order by " . $this->convertSortMode($sort_mode); 80 $query_cant = "select count(*) from `tiki_minical_topics` where `user`=? $mid"; 81 $result = $this->query($query, $bindvars, $maxRecords, $offset); 112 $query = "select * from `tiki_minical_events` where `user`=? $mid order by " . $this->convertSortMode($sort_mode); 113 $query_cant = "select count(*) from `tiki_minical_events` where `user`=? $mid"; 114 $result = $this->query($query, $bindvars, $maxRecords, $offset); 145 $query = "select * from `tiki_minical_events` where `start`>? and `user`=? $mid order by " . $this->convertSortMode($sort_mode); 146 $query_cant = "select count(*) from `tiki_minical_events` where `start`>? and `user`=? $mid"; 147 $result = $this->query($query, $bindvars, $maxRecords, $offset);tiki-admin_rssmodules.php https://gitlab.com/ElvisAns/tiki | PHP | 254 lines
1<?php 2 12 13require_once('tiki-setup.php'); 14/** @var RSSLib $rsslib */ 93if (isset($_REQUEST['clear']) && $access->checkCsrf()) { 94 $count = $rsslib->table('tiki_rss_items')->fetchCount( 95 ['rssId' => $_REQUEST['clear']] 96 ); 97 if ($count == 0) { 98 Feedback::note(tr( 174 $_REQUEST['cat_categories'] = $config['categories']; 175 include 'categorize_list.php'; 176} 247$smarty->assign_by_ref('cant', $cant); 248$temp_max = count($channels["data"]); 249$smarty->assign_by_ref('channels', $channels["data"]);BinaryAuthorization.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 278 lines
1<?php 2/* 38{ 39 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ 40 const CLOUD_PLATFORM =RedactDBCommand.php https://gitlab.com/ElvisAns/tiki | PHP | 204 lines
1<?php 2 40 // For $dbs_tiki - better way? 41 require('db/redact/local.php'); 42 44 45 // Reset admin account 46 $output->writeln('<info>Resetting admin account.</info>'); 57 while (! $userprefixready) { 58 $query = "SELECT count(*) FROM users_users WHERE login LIKE '" . $userprefix . "%';"; 59 $result = $tikilib->getOne($query); 137 138 // Remove user web-mail accounts 139 $output->writeln('<info>Removing user mail accounts.</info>'); 167 // Remove DSN and mailin 168 $output->writeln('<info>Removing DSN and mailin account data.</info>'); 169 $query = "TRUNCATE TABLE tiki_dsn;";form.php https://gitlab.com/chernushov881/charity-fund | PHP | 205 lines
28 <?php foreach ( $product_posts as $product_post ) { ?> 29 <option value="<?php echo esc_attr( $product_post->ID ); ?>" <?php selected( (int) $instance['product_post_id'], $product_post->ID ); ?>> 30 <?php echo esc_attr( get_the_title( $product_post ) ); ?> 108 id="<?php echo esc_attr( $this->get_field_id( 'form_product_description' ) ); ?>" 109 name="<?php echo esc_attr( $this->get_field_name( 'form_product_description' ) ); ?>"><?php echo esc_textarea( $instance['form_product_description'] ); ?></textarea> 110 </p> 119 <?php foreach ( Jetpack_Simple_Payments_Widget::$supported_currency_list as $code => $currency ) { ?> 120 <option value="<?php echo esc_attr( $code ); ?>"<?php selected( $instance['form_product_currency'], $code ); ?>> 121 <?php echo esc_html( "$code $currency" ); ?> 159 /* Translators: placeholders are a link to Paypal website and a target attribute. */ 160 __( 'This is where PayPal will send your money. To claim a payment, you\'ll need a <a href="%1$s" %2$s>PayPal account</a> connected to a bank account.', 'jetpack' ), 161 array( 180 <div class="alignright"> 181 <button name="<?php echo esc_attr( $this->get_field_name( 'save' ) ); ?>" class="button jetpack-simple-payments-save-product"><?php esc_html_e( 'Save', 'jetpack' ); ?></button> 182 <span> | <button type="button" class="button-link jetpack-simple-payments-cancel-form"><?php esc_html_e( 'Cancel', 'jetpack' ); ?></button></span>AdminBarMenu.php https://gitlab.com/ebrjose/comcebu | PHP | 380 lines
1<?php 2 71 72 return wpforms()->get( 'notifications' )->get_count(); 73 } 96 sprintf( 97 '#wpadminbar .wpforms-menu-notification-counter, #wpadminbar .wpforms-menu-notification-indicator { 98 background-color: %s !important; 189 $count = $notifications < 10 ? $notifications : '!'; 190 $indicator = ' <div class="wp-core-ui wp-ui-notification wpforms-menu-notification-counter">' . $count . '</div>'; 191 } 196 'title' => 'WPForms' . $indicator, 197 'href' => admin_url( 'admin.php?page=wpforms-overview' ), 198 ] 219 'title' => esc_html__( 'Notifications', 'wpforms-lite' ) . ' <div class="wp-core-ui wp-ui-notification wpforms-menu-notification-indicator"></div>', 220 'href' => admin_url( 'admin.php?page=wpforms-overview' ), 221 ]osapiRestIO.php https://github.com/webvpro/RUA-CORE.git | PHP | 235 lines
1<?php 2/* 83 } 84 if (isset($entry['data']['list']) && count($entry['data']) != 1) { 85 foreach ($entry['data']['list'] as $key => $val) { 224 // Everything that was a part of the url template has been removed from the array, so what's left are the query params 225 if (count($params)) { 226 foreach ($params as $key => $val) {method_statement.cpp https://github.com/ckwalsh/hiphop-php.git | C++ | 242 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 +----------------------------------------------------------------------+ 23 24namespace HPHP { 25namespace Eval {Sreg.php https://bitbucket.org/areeves42/openfisma.git | PHP | 300 lines
1<?php 2 25 */ 26// require_once "Zend/OpenId/Extension.php"; 27 107 "postcode", 108 "country", 109 "language", 122 { 123 if (is_array($this->_props) && count($this->_props) > 0) { 124 foreach ($this->_props as $prop => $req) { 195 196 $this->_props = (count($props2) > 0) ? $props2 : null; 197 return true; 207 { 208 if (is_array($this->_props) && count($this->_props) > 0) { 209 if ($this->_version >= 1.1) {controller.php https://github.com/sphilp/com_weever.git | PHP | 427 lines
26JTable::addIncludePath(JPATH_COMPONENT.DS.'tables'); 27require_once (JPATH_COMPONENT.DS.'helpers'.DS.'helper'.'.php'); 28 258 259 $this->setRedirect('index.php?option=com_weever&view=account&task=account',$msg); 260 return; 293 294 comWeeverHelper::saveAccount(); 295 296 if(JRequest::getVar("install")) 297 $this->setRedirect('index.php?option=com_weever&view=list',JText::_('WEEVER_ACCOUNT_SAVED')); 298 else 298 else 299 $this->setRedirect('index.php?option=com_weever&view=account&task=account',JText::_('WEEVER_ACCOUNT_SAVED')); 300settings.php https://github.com/front/3-16.git | PHP | 227 lines
1<?php 2// $Id: default.settings.php,v 1.8.2.1 2008/08/13 06:52:36 dries Exp $ 48 * 49 * Note that the $db_url variable gets parsed using PHP's built-in 50 * URL parser (i.e. using the "parse_url()" function) so make sure 95/** 96 * Access control for update.php script 97 * 97 * 98 * If you are updating your Drupal installation using the update.php script 99 * being not logged in as administrator, you will need to modify the access 131 * be set at runtime (ie., when ini_set() occurs), read the PHP 132 * documentation at http://www.php.net/manual/en/ini.php#ini.list 133 * and take a look at the .htaccess file to see which non-runtime 225# 'forum' => 'Discussion board', 226# '@count min' => '@count minutes', 227# );sfFormFilterDoctrine.class.php https://github.com/bigcalm/urlcatcher.git | PHP | 310 lines
1<?php 2 23 * @author Jonathan H. Wage <jonwage@gmail.com> 24 * @version SVN: $Id: sfFormFilterDoctrine.class.php 11690 2008-09-20 19:50:03Z fabien $ 25 */ 93 * To process a value before it is used by the buildQuery() method, 94 * you need to define an convertXXXValue() method where XXX is the PHP name 95 * of the column. 166 $names = array_merge($fields, array_diff(array_keys($this->validatorSchema->getFields()), array_keys($fields))); 167 $fields = array_merge($fields, array_combine($names, array_fill(0, count($names), null))); 168default.php https://github.com/3den/J-MediaGalleries.git | PHP | 191 lines
1<?php 2/** 2/** 3 * @version $Id: default.php 19232 2010-10-27 12:52:54Z 3dentech $ 4 * @package Joomla.Administrator 24 25<form action="<?php echo JRoute::_('index.php?option=com_weblinks'); ?>" method="post" name="adminForm" id="adminForm"> 26 <fieldset id="filter-bar"> 29 <label class="filter-search-lbl" for="filter_search"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?></label> 30 <input type="text" name="filter_search" id="filter_search" value="<?php echo $this->state->get('filter.search'); ?>" title="<?php echo JText::_('COM_WEBLINKS_SEARCH_IN_TITLE'); ?>" /> 31 <button type="submit"><?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></button> 130 <?php if ($canEdit) : ?> 131 <a href="<?php echo JRoute::_('index.php?option=com_weblinks&task=weblink.edit&id='.(int) $item->id); ?>"> 132 <?php echo $this->escape($item->title); ?></a> 156 <?php $disabled = $saveOrder ? '' : 'disabled="disabled"'; ?> 157 <input type="text" name="order[]" value="<?php echo $item->ordering;?>" <?php echo $disabled ?> class="text-area-order" title="<?php echo $item->title; ?> order" /> 158 <?php else : ?>Oauth2.php https://gitlab.com/karlen/ayo_wp | PHP | 409 lines
1<?php 2/* 26 * For more information about this service, see the API 27 * <a href="https://developers.google.com/accounts/docs/OAuth2" target="_blank">Documentation</a> 28 * </p>google_checkout.php https://bitbucket.org/sandeepbhaskar/inspiredliving.git | PHP | 205 lines
1<?php 2class ControllerPaymentGoogleCheckout extends Controller { 130 &order-summary.buyer-shipping-address.structured-name.last-name=Test%20Last%20Name 131 &order-summary.buyer-shipping-address.country-code=US 132 &order-summary.buyer-shipping-address.postal-code=10001 155 &buyer-shipping-address.postal-code=94141 156 &buyer-shipping-address.country-code=US 157 &buyer-shipping-address.phone=5555551234 165 &buyer-billing-address.postal-code=94043 166 &buyer-billing-address.country-code=US 167 &buyer-billing-address.phone=5555557890%%BE^BE7^BE767151%%completed.tpl.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 115 lines
2 compiled from reviewer/completed.tpl */ ?> 3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); 4smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'reviewer/completed.tpl', 15, false),array('function', 'url', 'reviewer/completed.tpl', 31, false),array('function', 'page_info', 'reviewer/completed.tpl', 91, false),array('function', 'page_links', 'reviewer/completed.tpl', 92, false),array('block', 'iterate', 'reviewer/completed.tpl', 23, false),array('modifier', 'date_format', 'reviewer/completed.tpl', 29, false),array('modifier', 'escape', 'reviewer/completed.tpl', 30, false),array('modifier', 'strip_unsafe_html', 'reviewer/completed.tpl', 31, false),array('modifier', 'truncate', 'reviewer/completed.tpl', 31, false),)), $this); ?> 22 <tr><td colspan="6" class="headseparator"> </td></tr> 23<?php $this->_tag_stack[] = array('iterate', array('from' => 'submissions','item' => 'submission')); $_block_repeat=true;$this->_plugins['block']['iterate'][0][0]->smartyIterate($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?> 24 <?php $this->assign('articleId', $this->_tpl_vars['submission']->getArticleId()); ?> 70 <?php $this->assign('decisions', $this->_tpl_vars['submission']->getDecisions($this->_tpl_vars['round'])); ?> 71 <?php $_from = $this->_tpl_vars['decisions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['lastDecisionFinder'] = array('total' => count($_from), 'iteration' => 0); 72if ($this->_foreach['lastDecisionFinder']['total'] > 0): 96 <tr> 97 <td colspan="6" class="<?php if ($this->_tpl_vars['submissions']->eof()): ?>end<?php endif; ?>separator"> </td> 98 </tr> 98 </tr> 99<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo $this->_plugins['block']['iterate'][0][0]->smartyIterate($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); if ($this->_tpl_vars['submissions']->wasEmpty()): ?> 100 <tr>AboutHandler.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 264 lines
1<?php 2 3/** 4 * AboutHandler.inc.php 5 * 12 * 13 * $Id: AboutHandler.inc.php,v 1.19 2005/07/29 20:45:19 alec Exp $ 14 */ 182 $journalSettings = &$journalDao->getJournalSettings($journal->getJournalId()); 183 if (isset($journalSettings['submissionChecklist']) && count($journalSettings['submissionChecklist']) > 0) { 184 ksort($journalSettings['submissionChecklist']);ClassCommentSniff.php https://github.com/amumu/modev.git | PHP | 233 lines
47 * @version Release: 1.2.2 48 * @link http://pear.php.net/package/PHP_CodeSniffer 49 */ 169 170 $newlineCount = (substr_count($short, $phpcsFile->eolChar) + 1); 171 178 $error = "There must be exactly one blank line between descriptions in $type comments"; 179 $phpcsFile->addError($error, ($commentStart + $newlineCount + 1)); 180 } 191 if ($long !== '') { 192 $newlineCount += (substr_count($long, $phpcsFile->eolChar) - $newlineSpan + 1); 193 } 194 195 $phpcsFile->addError($error, ($commentStart + $newlineCount)); 196 $short = rtrim($short, $phpcsFile->eolChar.' ');ClassCommentSniff.php https://github.com/amumu/modev.git | PHP | 233 lines
47 * @version Release: 1.2.0a1 48 * @link http://pear.php.net/package/PHP_CodeSniffer 49 */ 169 170 $newlineCount = (substr_count($short, $phpcsFile->eolChar) + 1); 171 178 $error = "There must be exactly one blank line between descriptions in $type comments"; 179 $phpcsFile->addError($error, ($commentStart + $newlineCount + 1)); 180 } 191 if ($long !== '') { 192 $newlineCount += (substr_count($long, $phpcsFile->eolChar) - $newlineSpan + 1); 193 } 194 195 $phpcsFile->addError($error, ($commentStart + $newlineCount)); 196 $short = rtrim($short, $phpcsFile->eolChar.' ');paypal_admin_notification.php https://github.com/ZenMagick/zc-base.git | PHP | 202 lines
1<?php 2/** 9 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 10 * @version $Id: paypal_admin_notification.php 15560 2010-02-22 07:50:28Z drbyte $ 11 */ 62 $output .= '<tr><td class="main">'."\n"; 63 $output .= MODULE_PAYMENT_PAYPAL_ENTRY_ADDRESS_COUNTRY."\n"; 64 $output .= '</td><td class="main">'."\n"; 64 $output .= '</td><td class="main">'."\n"; 65 $output .= $ipn->fields['address_country']."\n"; 66 $output .= '</td></tr>'."\n";LineItem.php https://github.com/michaelmcandrew/lbc.git | PHP | 311 lines
1<?php 2/* 33 */ 34require_once 'CRM/Core/DAO.php'; 35require_once 'CRM/Utils/Type.php'; 131 /** 132 * Participant count for field 133 * 135 */ 136 public $participant_count; 137 /** 228 ) , 229 'participant_count' => array( 230 'name' => 'participant_count', 231 'type' => CRM_Utils_Type::T_INT, 232 'title' => ts('Participant Count') , 233 'default' => 'UL',Topic.class.php https://bitbucket.org/devall/gamerpress.git | PHP | 235 lines
1<?php 2/*------------------------------------------------------- 85 case 'discussed': 86 $aFilter['order']=array('t.topic_count_comment desc','t.topic_id desc'); 87 break; 102 */ 103 public function GetCountTopicsByGameNew($oGame) { 104 $sDate=date("Y-m-d H:00:00",time()-Config::Get('module.topic.new_time')); 110 ); 111 return $this->GetCountTopicsByFilter($aFilter); 112 } 219 if (isset($aTopicsRead[$oTopic->getId()])) { 220 $oTopic->setCountCommentNew($oTopic->getCountComment()-$aTopicsRead[$oTopic->getId()]->getCommentCountLast()); 221 $oTopic->setDateRead($aTopicsRead[$oTopic->getId()]->getDateRead()); 222 } else { 223 $oTopic->setCountCommentNew(0); 224 $oTopic->setDateRead(date("Y-m-d H:i:s"));