100+ results results for 'php each repo:xyu/jquery-tmpl-php' (48 ms)
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Style 34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_Style_Font implements PHPExcel_IComparable 37{ 153 $this->_strikethrough = NULL; 154 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional); 155 } else { 155 } else { 156 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor); 157 }DiffPanel.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 365 lines
17 * License. When distributing the software, include this License Header 18 * Notice in each file and include the License file at 19 * nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this 41 */ 42package org.netbeans.modules.php.project.connections.sync.diff; 43 61import org.netbeans.api.diff.StreamSource; 62import org.netbeans.modules.php.api.util.StringUtils; 63import org.netbeans.modules.php.project.connections.RemoteClient; 63import org.netbeans.modules.php.project.connections.RemoteClient; 64import org.netbeans.modules.php.project.connections.RemoteException; 65import org.netbeans.modules.php.project.connections.TmpLocalFile; 65import org.netbeans.modules.php.project.connections.TmpLocalFile; 66import org.netbeans.modules.php.project.connections.sync.SyncItem; 67import org.netbeans.modules.php.project.connections.transfer.TransferFile;Store.php https://gitlab.com/ealexis.t/trends | PHP | 707 lines
1<?php 2 109 110 foreach (array_merge($this->bags, [$this->metaBag]) as $bag) { 111 $this->initializeLocalBag($bag); 284 { 285 foreach (array_merge($this->bags, [$this->metaBag]) as $bag) { 286 $key = $bag->getStorageKey(); 314 315 foreach ($keys as $value) { 316 if (is_null($this->get($value))) { 394 395 foreach ($key as $arrayKey => $arrayValue) { 396 $this->set($arrayKey, $arrayValue); 550 551 foreach ($this->bags as $bag) { 552 $bag->clear();VarCloner.php https://gitlab.com/Sigpot/AirSpot | PHP | 324 lines
1<?php 2 65 $refs = $vals = $fromObjCast ? array_values($queue[$i]) : $queue[$i]; 66 foreach ($queue[$i] as $k => $v) { 67 // $k is the original key 136 $a = array(); 137 foreach ($v as $gk => &$gv) { 138 $a[$gk] = &$gv; 148 case 'object': 149 if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) { 150 $stub = new Stub(); 164 } else { 165 $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE)); 166 } 267 $j = -1; 268 foreach ($queue[$i] as $k => $v) { 269 foreach (array($k => $v) as $a => $v) {twitter-timeline.php https://gitlab.com/hunt9310/ras | 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' ) ), 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']; 101 ); 102 foreach ( $data_attribs as $att ) { 103 if ( ! empty( $instance[ $att ] ) && ! is_array( $instance[ $att ] ) ) { 145 146 /** This action is documented in modules/widgets/social-media-icons.php */ 147 do_action( 'jetpack_bump_stats_extras', 'widget', 'twitter_timeline' );Advertiser.php https://bitbucket.org/blackriver/openx.git | PHP | 371 lines
1<?php 2 35// Required classes 36require_once MAX_PATH . '/lib/OA/Dal/Statistics.php'; 37 52 * 53 * @return array Each row containing: 54 * <ul>arr.php https://gitlab.com/ken3/bluSky | PHP | 602 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 161 $values = array(); 162 foreach ($array as $arr) 163 { 294 $found = array(); 295 foreach ($keys as $key) 296 { 318 319 foreach ($array as $row) 320 { 351 /** 352 * Recursive version of [array_map](http://php.net/array_map), applies one or more 353 * callbacks to all elements in an array, including sub-arrays. 376 { 377 foreach ($array as $key => $val) 378 {MaildirFolderTest.php https://github.com/MarcelloDuarte/zf2.git | PHP | 444 lines
1<?php 2/** 36 */ 37class MaildirFolderTest extends \PHPUnit_Framework_TestCase 38{ 77 78 foreach ($this->_subdirs as $dir) { 79 if ($dir != '.') { 81 } 82 foreach (array('cur', 'new') as $subdir) { 83 if (!file_exists($this->_originalDir . $dir . '/' . $subdir)) { 101 { 102 foreach (array_reverse($this->_subdirs) as $dir) { 103 foreach (array('cur', 'new') as $subdir) { 203 try { 204 // explicit call of __toString() needed for PHP < 5.2 205 $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder');Url.php https://bitbucket.org/alessandro-aglietti/itis-leonardo-da-vinci.git | PHP | 548 lines
1<?php 2 293 $segments = $this->getPathSegments(); 294 foreach ($segments as $segment) { 295 if ($segment == '..') {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, 234 'initial_reminder_day', 'additional_reminder_day' ); 235 foreach ( $pledgeBlock as $key ) { 236 $defaults[$key] = CRM_Utils_Array::value( $key, $pledgeBlockDefaults );Descarte.php https://gitlab.com/SFMSP/Hagape | PHP | 346 lines
1<?php 2 157 158 foreach ($itensExcluidos as $itemExcluido) { 159 $deleteItem = $this->itemDescarteService->delete($itemExcluido->getId()); 187 if ($itensDescarte) { 188 foreach ($itensDescarte as $itemDesc) { 189 $itensDesc[$itemDesc->getProduto()->getId()] = $itemDesc->getId(); 194 195 foreach ($data['id-produto'] as $key => $item) { 196 if (!isset($itensDesc[$item])) { 262 263 foreach ($solicitacao->getItensDescarte() as $item) { 264 if (!$this->estoqueProdutoService->adicionarEstoque($item->getProduto()->getId(), $solicitacao->getEstoqueOrigem()->getId(), $item->getQtd(), '+', false)) { 302 //Percorre oas solicitações e verifica se eles podem ser excluídos 303 foreach ($solicitacoesDescarte as $solicitacao) { 304 if ($solicitacao->getSituacaoDescarte()->getId() == SolicitacaoDescarteEntity::STATUS_CADASTRADO) {Command.php https://bitbucket.org/maatao/estrutura-b-sica-doctrine.git | PHP | 512 lines
1<?php 2 378 $name, 379 $_SERVER['PHP_SELF'].' '.$name 380 ); 500 $commandXML->appendChild($aliasesXML = $dom->createElement('aliases')); 501 foreach ($this->getAliases() as $alias) { 502 $aliasesXML->appendChild($aliasXML = $dom->createElement('alias'));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 35 $admin_review_ids = array(); 36 foreach( $admins as $k => $v ) { 37 array_push($admin_review_ids, $v["user_id"]); 160 if( isset($this->data["admin_reviews"]) ){ 161 foreach($this->data["admin_reviews"] as $k => $v) { 162 $par2 = array( 222 if( !empty($this->data["project_chapters"]) ) { 223 foreach( $this->data["project_chapters"] as $k => $v ) { 224 $ver = array( 233 if( !empty($this->data["versionsmax"]) ){ 234 foreach($this->data["versionsmax"] as $k => $v) { 235CakeRoute.php https://github.com/gustavor/lore.git | PHP | 506 lines
10 * 11 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 12 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 17 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 18 * @link http://cakephp.org CakePHP(tm) Project 19 * @package Cake.Routing.Route 19 * @package Cake.Routing.Route 20 * @since CakePHP(tm) v 1.3 21 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 210 // Assign defaults, set passed args to pass 211 foreach ($this->defaults as $key => $value) { 212 if (isset($route[$key])) { 257 $greedy = isset($this->options['greedyNamed']) && $this->options['greedyNamed'] === true; 258 foreach ((array)$this->options['named'] as $key => $val) { 259 if (is_numeric($key)) {SqlBase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 415 lines
1<?php 2 234 if (!$error && is_array($options)) { 235 foreach ($options as $option) { 236 if (!is_numeric($option) || intval($option) == 0) { 357 if (is_array($options)) { 358 foreach ($options as $option) { 359 $sanitized_options[intval($option)] = intval($option);class-wp-terms-list-table.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 454 lines
1<?php 2/** 189 $terms = get_terms( $taxonomy, $args ); 190 foreach ( $terms as $term ) 191 $this->single_row( $term ); 199 200 foreach ( $terms as $key => $term ) { 201 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 ) 303 /** 304 * Filter the action links displayed for each term in the Tags list table. 305 * 315 /** 316 * Filter the action links displayed for each term in the terms list table. 317 *Resource.php https://github.com/rico/flextrine.git | PHP | 467 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23568 2010-12-20 08:13:20Z mjh_ca $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 90 } 91 require_once 'Zend/Loader/Autoloader.php'; 92 Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);Country.php https://gitlab.com/jslee1/PrestaShop | PHP | 417 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 22 * @copyright 2007-2015 PrestaShop SA 23 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24 * International Registered Trademark & Property of PrestaShop SA 131 ORDER BY cl.name ASC'); 132 foreach ($result as $row) { 133 $countries[$row['id_country']] = $row; 137 $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS('SELECT * FROM `'._DB_PREFIX_.'state` ORDER BY `name` ASC'); 138 foreach ($result as $row) { 139 if (isset($countries[$row['id_country']]) && $row['active'] == 1) { /* Does not keep the state if its country has been disabled and not selected */ 395 $sql = false; 396 foreach ($shops as $id_shop) { 397 foreach ($countries as $country) {Inflector.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 506 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Inflector.php 20096 2010-01-06 02:05:09Z bkarwin $ 20 */ 25 */ 26// require_once 'Zend/Filter.php'; 27 30 */ 31// require_once 'Zend/Loader/PluginLoader.php'; 32 130 { 131 foreach ($config as $key => $value) { 132 switch ($key) { 140 $paths = $value->toArray(); 141 foreach ($paths as $prefix => $path) { 142 $this->addFilterPrefixPath($prefix, $path);File.php https://github.com/Riges/KawaiViewModel.git | PHP | 468 lines
25 */ 26require_once 'Zend/CodeGenerator/Php/Abstract.php'; 27 86 if ($fileName == '') { 87 require_once 'Zend/CodeGenerator/Php/Exception.php'; 88 throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.'); 209 require_once 'Zend/CodeGenerator/Php/Exception.php'; 210 throw new Zend_CodeGenerator_Php_Exception('setDocblock() is expecting either a string, array or an instance of Zend_CodeGenerator_Php_Docblock'); 211 } 293 require_once 'Zend/CodeGenerator/Php/Exception.php'; 294 throw new Zend_CodeGenerator_Php_Exception('Expecting either an array or an instance of Zend_CodeGenerator_Php_Class'); 295 } 460 if ($this->_filename == '' || !is_writable(dirname($this->_filename))) { 461 require_once 'Zend/CodeGenerator/Php/Exception.php'; 462 throw new Zend_CodeGenerator_Php_Exception('This code generator object is not writable.');Inflector.php https://github.com/grandison/budo16.git | PHP | 506 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Inflector.php 17705 2009-08-21 07:50:57Z thomas $ 20 */ 25 */ 26// require_once 'Zend/Filter.php'; 27 30 */ 31// require_once 'Zend/Loader/PluginLoader.php'; 32 130 { 131 foreach ($config as $key => $value) { 132 switch ($key) { 140 $paths = $value->toArray(); 141 foreach ($paths as $prefix => $path) { 142 $this->addFilterPrefixPath($prefix, $path);Profiles.php https://gitlab.com/gregtyka/opensis | PHP | 258 lines
138 echo '<TR><TD colspan=3 style="border:1px; border-style: none none solid none;"><b>Profiles</b></TD></TR>'; 139 foreach(array('admin','teacher','parent','student') as $profiles) 140 { 140 { 141 foreach($profiles_RET[$profiles] as $id=>$profile) 142 { 143 if($_REQUEST['profile_id']!='' && $id==$_REQUEST['profile_id']) 144 echo '<TR id=selected_tr onmouseover="" onmouseout="" bgcolor="'.Preferences('HIGHLIGHT').'"; this.style.color="white";\'><TD width=20 align=right'.$style.'>'.(AllowEdit()&&$id>3?button('remove','',"Modules.php?modname=$_REQUEST[modname]&modfunc=delete&profile_id=$id",20):'').'</TD><TD '.$style.' onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&profile_id='.$id.'\';">'; 145 else 145 else 146 echo '<TR onmouseover=\'this.style.backgroundColor="'.Preferences('HIGHLIGHT').'"; this.style.color="white";\' onmouseout=\'this.style.cssText="background-color:transparent; color:black;";\'><TD width=20 align=right'.$style.'>'.(AllowEdit()&&$id>3?button('remove','',"Modules.php?modname=$_REQUEST[modname]&modfunc=delete&profile_id=$id",15):'').'</TD><TD'.$style.' onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&profile_id='.$id.'\';">'; 147 echo '<b><a style="cursor: pointer; cursor:hand; text-decoration:none;">'.($id>3?'':'<b>').$profile[1]['TITLE'].($id>3?'':'</b>').'</a></b> '; 254 echo '<DIV id=new_id_content style="position:absolute;visibility:hidden;"><fieldset><legend>Add a User Profile</legend><table><tr><td width=30>Title </td><td><INPUT type=text name=new_profile_title></td></tr>'; 255 echo '<tr><td width=30>Type </td><td><SELECT name=new_profile_type><OPTION value=admin>Administrator<OPTION value=teacher>Teacher<OPTION value=parent>Parent</SELECT> 256 <br></td></tr><tr><td colspan=2 align=center><input type=submit value=save class=btn_medium></td></tr></table></fieldset></DIV>';mkdist.php https://bitbucket.org/luobailiang/php-src.git | PHP | 548 lines
15 16$dist_dir = $build_dir . "/php-" . phpversion(); 17$test_dir = $build_dir . "/php-test-pack-" . phpversion(); 210/* the core dll */ 211copy("$build_dir/php.exe", "$dist_dir/php.exe"); 212copy("$build_dir/$phpdll", "$dist_dir/$phpdll"); 240 "win32/install.txt" => "install.txt", 241 "win32/pws-php5cgi.reg" => "pws-php5cgi.reg", 242 "win32/pws-php5isapi.reg" => "pws-php5isapi.reg", 461} 462copy('run-tests.php', $test_dir . '/run-test.php'); 463 495 496 /* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar) 497 * broken out of the tarballs */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 61 $path=self::fixslashes($base); 62 foreach ($files as $file) 63 if (!is_file($path.$file)) { 67 $src=''; 68 foreach ($files as $file) { 69 $stats=&self::ref('STATS'); 84 while ($i<count($rewrite)) 85 // Analyze each URL segment 86 if ($i>0 && 205 if ($echo) { 206 if (PHP_SAPI!='cli' && !headers_sent()) 207 header(self::HTTP_Content.': '.$mime[$ext[1]].'; '.core.php https://bitbucket.org/daveschwan/ronin-group.git | PHP | 385 lines
6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @link http://cakephp.org CakePHP(tm) Project 16 * @package app.Config 89 * To configure CakePHP *not* to use mod_rewrite and to 90 * use CakePHP pretty URLs, remove these .htaccess 91 * files: 205 * 206 * - 'php' - Uses settings defined in your php.ini. 207 * - 'cake' - Saves session files in CakePHP's /tmp directory. 207 * - 'cake' - Saves session files in CakePHP's /tmp directory. 208 * - 'database' - Uses CakePHP's database sessions. 209 * - 'cache' - Use the Cache class to save sessions.Resource.php https://github.com/ianbogda/FileZ.git | PHP | 467 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23775 2011-03-01 17:25:24Z ralph $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 90 } 91 require_once 'Zend/Loader/Autoloader.php'; 92 Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);pearcmd.php https://github.com/ianbogda/FileZ.git | PHP | 445 lines
59if (!isset($_SERVER['argv']) && !isset($argv) && !isset($HTTP_SERVER_VARS['argv'])) { 60 echo 'ERROR: either use the CLI php executable, or set register_argc_argv=On in php.ini'; 61 exit(1); 65// fix CGI sapi oddity - the -- in pear.bat/pear is not removed 66if (php_sapi_name() != 'cli' && isset($argv[1]) && $argv[1] == '--') { 67 unset($argv[1]); 132// this is used in the error handler to retrieve a relative path 133$_PEAR_PHPDIR = $config->get('php_dir'); 134$ui->setConfig($config); 166 ); 167 $config->set('php_dir', $pearbase . DIRECTORY_SEPARATOR . 'php'); 168 $config->set('data_dir', $pearbase . DIRECTORY_SEPARATOR . 'data'); 377 return "PEAR Version: ".$GLOBALS['pear_package_version']. 378 "\nPHP Version: ".phpversion(). 379 "\nZend Engine Version: ".zend_version().ClassLoader.php https://gitlab.com/wendy-du-973/club-invest-gr2 | PHP | 481 lines
1<?php 2 39 * @author Jordi Boggiano <j.boggiano@seld.be> 40 * @see https://www.php-fig.org/psr/psr-0/ 41 * @see https://www.php-fig.org/psr/psr-4/ 376 377 $file = $this->findFileWithExtension($class, '.php'); 378 418 $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); 419 foreach ($this->prefixDirsPsr4[$search] as $dir) { 420 if (file_exists($file = $dir . $pathEnd)) { 428 // PSR-4 fallback dirs 429 foreach ($this->fallbackDirsPsr4 as $dir) { 430 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { 445 if (isset($this->prefixesPsr0[$first])) { 446 foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { 447 if (0 === strpos($class, $prefix)) {CookieJar.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 441 lines
1<?php 2/** 17 * @subpackage CookieJar 18 * @version $Id: CookieJar.php 24856 2012-06-01 01:10:47Z adamlundrigan $ 19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) 25 */ 26require_once "Zend/Uri.php"; 27/** 29 */ 30require_once "Zend/Http/Cookie.php"; 31/** 33 */ 34require_once "Zend/Http/Response.php"; 35 81 * Return all cookies as one long string (strict mode) 82 * - Single space after the semi-colon separating each cookie 83 * - Remove trailing semi-colon, if anyps_perm.php https://github.com/Shigaru/shigaru.git | PHP | 461 lines
1<?php 2if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); 4* 5* @version $Id: ps_perm.php 1818 2009-06-23 19:07:21Z soeren_nb $ 6* @package VirtueMart 8* @copyright Copyright (C) 2004-2009 soeren - All rights reserved. 9* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php 10* VirtueMart is free software. This version may have been modified pursuant 13* other free or open source software licenses. 14* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details. 15* 187 $p2 = explode(",", $perms); 188 while (list($key1, $value1) = each($p1)) { 189 while (list($key2, $value2) = each($p2)) { 240 if( $size==1 ) { 241 $values[0] = $VM_LANG->_('PHPSHOP_SELECT'); 242 }edit.php https://github.com/thisduck/wordpress.git | PHP | 294 lines
29 30 if ( strpos($sendback, 'post.php') !== false ) 31 $sendback = admin_url($post_new_file); 113 $parent_file = "edit.php?post_type=$post_type"; 114 $submenu_file = "edit.php?post_type=$post_type"; 115 $post_new_file = "post-new.php?post_type=$post_type"; 163<?php screen_icon(); ?> 164<h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="button add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php 165if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) 170if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?> 171<div id="message" class="updated"><p><strong><?php _e('This has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_REQUEST['posted'] ); ?>"><?php _e('View Post'); ?></a> | <a href="<?php echo get_edit_post_link( $_REQUEST['posted'] ); ?>"><?php _e('Edit Post'); ?></a></p></div> 172<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']); 279 280<input type="hidden" name="post_status" class="post_status_page" value="<?php echo !empty($_REQUEST['post_status']) ? esc_attr($_REQUEST['post_status']) : 'all'; ?>" /> 281<input type="hidden" name="post_type" class="post_type_page" value="<?php echo $post_type; ?>" />IndexController.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 390 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 */ 45 $block = $this->getLayout()->createBlock('adminhtml/template')->setTemplate("$tplName.phtml"); 46 foreach ($data as $index => $value) { 47 $block->assign($index, $value); 127 $query = $this->getRequest()->getParam('query', ''); 128 foreach ($searchModules->children() as $searchConfig) { 129 238 if ($collection->getSize() > 0) { 239 foreach ($collection as $item) { 240 $user = Mage::getModel('admin/user')->load($item->getId());XmlDumper.php https://github.com/Exercise/symfony.git | PHP | 301 lines
1<?php 2 91 { 92 foreach ($methodcalls as $methodcall) { 93 $call = $this->document->createElement('call'); 130 131 foreach ($definition->getTags() as $name => $tags) { 132 foreach ($tags as $attributes) { 134 $tag->setAttribute('name', $name); 135 foreach ($attributes as $key => $value) { 136 $tag->setAttribute($key, $value); 202 $services = $this->document->createElement('services'); 203 foreach ($definitions as $id => $definition) { 204 $this->addService($definition, $id, $services); 206 207 foreach ($this->container->getAliases() as $alias => $id) { 208 $this->addServiceAlias($alias, $id, $services);Controller.php https://github.com/quarkness/piwik.git | PHP | 321 lines
1<?php 2/** 46 $usersLogin = Piwik_UsersManager_API::getInstance()->getUsersLogin(); 47 foreach($usersLogin as $login) 48 { 57 // $usersAccessByWebsite is not supposed to contain unexistant logins, but it does when upgrading from some old Piwik version 58 foreach($usersAccessByWebsite as $login => $access) 59 { 73 $users = Piwik_UsersManager_API::getInstance()->getUsers(); 74 foreach($users as $user) 75 { 185 $anonymousSites = array(); 186 foreach($anonymousSitesAccess as $info) 187 {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, 30 * - Define default option values 31 * - Define options in layers that correspond to your class hierarchy. Each 32 * layer may depend on the default value set in the higher layers. 192 /** 193 * A list of accepted values for each option. 194 * @var array 217 { 218 foreach ($options as $option => $value) { 219 $this->options[$option] = $value; 261 // Override options set by the user 262 foreach ($userOptions as $option => $value) { 263 $options[$option] = $value;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));instances.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 244 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 25 26require('../config.php'); 27 44 45$PAGE->set_url('/enrol/instances.php', array('id'=>$course->id)); 46$PAGE->set_pagelayout('admin'); 65 // now update db sortorder 66 foreach ($resorted as $sortorder=>$instance) { 67 if ($instance->sortorder != $sortorder) { 85 // now update db sortorder 86 foreach ($resorted as $sortorder=>$instance) { 87 if ($instance->sortorder != $sortorder) { 104 echo $OUTPUT->header(); 105 $yesurl = new moodle_url('/enrol/instances.php', array('id'=>$course->id, 'action'=>'delete', 'instance'=>$instance->id, 'confirm'=>1,'sesskey'=>sesskey())); 106 $displayname = $plugin->get_instance_name($instance);shortcodes.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 334 lines
1<?php 2/** 47 * 48 * There can only be one hook for each shortcode. Which means that if another 49 * plugin has a similar shortcode, it will override yours or yours will override 258 if ( preg_match_all($pattern, $text, $match, PREG_SET_ORDER) ) { 259 foreach ($match as $m) { 260 if (!empty($m[1])) 295 $out = array(); 296 foreach($pairs as $name => $default) { 297 if ( array_key_exists($name, $atts) )wp-settings.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 323 lines
1<?php 2/** 5 * 6 * Allows for some configuration in wp-config.php (see default-constants.php) 7 * 7 * 8 * @internal This file must be parsable by PHP4. 9 * 20// Include files required for initialization. 21require( ABSPATH . WPINC . '/load.php' ); 22require( ABSPATH . WPINC . '/default-constants.php' ); 61if ( WP_CACHE ) 62 WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' ); 63 315 * 316 * AJAX requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for 317 * users not logged in.behat_config_manager.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 279 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 27 28require_once(__DIR__ . '/../lib.php'); 29require_once(__DIR__ . '/behat_command.php'); 29require_once(__DIR__ . '/behat_command.php'); 30require_once(__DIR__ . '/../../testing/classes/tests_finder.php'); 31 64 } else { 65 // Alternative for steps definitions filtering, one for each user. 66 $configfilepath = self::get_steps_list_config_filepath(); 72 if ($components) { 73 foreach ($components as $componentname => $path) { 74 $path = self::clean_path($path) . self::get_behat_tests_path(); 88 if ($steps) { 89 foreach ($steps as $key => $filepath) { 90 if ($component == '' || $component === $key) {sitemailer_.php https://gitlab.com/nvtdn2006/azora | PHP | 384 lines
1<?php 2class SiteMailer 52 $this->headers .= "MIME-Version: 1.0\r\n"; 53 //$this->headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-" . $this->randomHash . "\"\r\n"; 54 $this->headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; 68 $line = ""; 69 foreach ($mails as $mail) { 70 $line .= $mail. ", "; 90 { 91 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--"; 92 $this->msgBody .= $this->attachment; 92 $this->msgBody .= $this->attachment; 93 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--"; 94 }*/ 156 private function sendActivationToCustomer($property) { 157 /*$htmlCT = "--PHP-alt-" . $this->randomHash . "\r\n"; 158 $htmlCT .= 'Content-Type: text/html; charset="iso-8859-1"' . "\r\n";index.php https://github.com/shamilcm/wireus.git | PHP | 291 lines
4 5<?php 6 8 if($_SESSION['authuser']!=1) 9 header("Location:../index.php"); 10 ?> 44 45<?php 46 include('../lib/header.php'); 54 <div id="pageleft"> 55 <?php 56 include('../lib/connectionfile.php'); 68 <tr class=\"gridrow\">"; 69 foreach($result_friends as $row1=>$val) 70 {sbhnddma.h https://github.com/netarchy/infuse4g-sources.git | C Header | 343 lines
9 * under the terms of the GNU General Public License version 2 (the "GPL"), 10 * available at http://www.broadcom.com/licenses/GPLv2.php, with the 11 * following added to such license: 15 * distribute the resulting executable under terms of your choice, provided that 16 * you also meet, for each linked independent module, the terms and conditions of 17 * the license of that module. An independent module is a module which is not 69/* 70 * Each descriptor ring must be 4096byte aligned, and fit within a single 4096byte page. 71 */ 208/* 209 * Each descriptor ring must be 8kB aligned, and fit within a contiguous 8kB physical addresss. 210 */jquery.mask.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 281 lines
9 * 10 * The MIT License (http://www.opensource.org/licenses/mit-license.php) 11 * 56 57 el.each(function() { 58 if (options.maxlength !== false) { 247 $.fn.mask = function(mask, options) { 248 return this.each(function() { 249 $(this).data('mask', new Mask(this, mask, options)); 253 $.fn.unmask = function() { 254 return this.each(function() { 255 try { 265 // looking for inputs with data-mask attribute 266 $('input[data-mask]').each(function() { 267 var input = $(this),TextArea.php https://gitlab.com/ElvisAns/tiki | PHP | 377 lines
1<?php 2 127 128 foreach ($value as $key => $val) { 129 $newvalue = TikiLib::lib('parser')->process_save_plugins( 216 $data = [$baseKey => $typeFactory->$fieldType($value)]; 217 foreach ($decoded as $lang => $content) { 218 $data["{$baseKey}_{$lang}"] = $typeFactory->$fieldType($content); 240 if ($this->getConfiguration('isMultilingual') == 'y') { 241 foreach ($prefs['available_languages'] as $lang) { 242 $data[] = "{$baseKey}_{$lang}"; 257 if ($this->getConfiguration('isMultilingual') == 'y') { 258 foreach ($prefs['available_languages'] as $lang) { 259 $data[$baseKey . '_' . $lang] = true; 335 336 foreach ($prefs['available_languages'] as $lang) { 337 $schema->addNew($permName, $lang)Files.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 311 lines
1<?php 2/* 54 * in Google Drive. Only 200 revisions for the file can be kept forever. If the 55 * limit is reached, try deleting pinned revisions. 56 * @opt_param string ocrLanguage A language hint for OCR processing during image 86 * in Google Drive. Only 200 revisions for the file can be kept forever. If the 87 * limit is reached, try deleting pinned revisions. 88 * @opt_param string ocrLanguage A language hint for OCR processing during image 221 * 'name_natural', 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', 222 * and 'viewedByMeTime'. Each key sorts ascending by default, but may be 223 * reversed with the 'desc' modifier. Example usage: 228 * Partial or empty result pages are possible even before the end of the files 229 * list has been reached. 230 * @opt_param string pageToken The token for continuing a previous list request 266 * in Google Drive. Only 200 revisions for the file can be kept forever. If the 267 * limit is reached, try deleting pinned revisions. 268 * @opt_param string ocrLanguage A language hint for OCR processing during imageResource.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 467 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23567 2010-12-20 08:12:16Z mjh_ca $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 90 } 91 require_once 'Zend/Loader/Autoloader.php'; 92 Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);Editor.php https://github.com/adaykin/zf2.git | PHP | 601 lines
1<?php 2/** 73 { 74 foreach ($events as $event) { 75 $this->addCaptureEvent($event); 172 { 173 foreach ($events as $event) { 174 $this->addEvent($event); 270 { 271 foreach ($plugins as $plugin) { 272 $this->addPlugin($plugin); 503 { 504 foreach ($styleSheets as $styleSheet) { 505 $this->addStyleSheet($styleSheet);runner.js https://gitlab.com/x33n/todomvc | JavaScript | 319 lines
6 * Licensed under the MIT License at: 7 * http://www.opensource.org/licenses/mit-license.php 8 * 47 * 48 * There can be several testing functions. Each one should be passed 49 * individually to the run function. 63 * 64 * Each of the testing functions is run in isolation from the others 65 * (and in isolation from any other testing functions created by other 67 * sequenced temporally so they don't execute at the same time. In 68 * addition, at the end of each function's execution, it will restore 69 * curl.js's cache back to the state it was before execution, so eachclass-wp-ms-users-list-table.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 301 lines
158 ?> 159 <tr class="<?php echo $alt; ?>"> 160 <?php 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 ) ) 191 <br/> 192 <?php 193 $actions = array(); 200 /** 201 * Filter the action links displayed under each user 202 * in the Network Admin Users list table.readme.md https://gitlab.com/buitenzorg812/garapic.cms | Markdown | 217 lines
53 54You must use PHP5 style constructors in your controllers. ie: 55 69 70Each module may contain a config/routes.php file where routing and a default controller can be defined for that module using: 71 103 104The PHP5 spl_autoload feature allows you to freely extend your controllers, models and libraries from 105application/core or application/libraries base classes without the need to specifically include or require 1597. Create module directory structure application/modules/welcome/controllers 1608. Move controller application/controllers/welcome.php to application/modules/welcome/controllers/welcome.php 1619. Access the URL /index.php/welcome => shows Welcome to CodeIgniter 16210. Create directory application/modules/welcome/views 16311. Move view application/views/welcome_message.php to application/modules/welcome/views/welcome_message.php 16412. Access the URL /index.php/welcome => shows Welcome to CodeIgniterTest.php https://bitbucket.org/Nemcio/kloxo-mr.git | PHP | 275 lines
1<?php 2/** 14 * @package PEAR 15 * @author Stig Bakken <ssb@php.net> 16 * @author Martin Jansen <mj@php.net> 18 * @copyright 1997-2006 The PHP Group 19 * @license http://www.php.net/license/3_0.txt PHP License 3.0 20 * @version CVS: $Id: Test.php,v 1.1.1.1 2009/05/08 18:30:19 root Exp $ 38 * @copyright 1997-2006 The PHP Group 39 * @license http://www.php.net/license/3_0.txt PHP License 3.0 40 * @version Release: 1.4.9 81 'shortopt' => 'u', 82 'doc' => 'Search parameters for AllTests.php, and use that to run phpunit-based tests', 83 ), 85 'doc' => '[testfile|dir ...] 86Run regression tests with PHP\'s regression testing script (run-tests.php).', 87 ),class-cp-user-relationships.php https://gitlab.com/clusterpress/clusterpress | PHP | 543 lines
1<?php 2/** 69 70 foreach ( (array) $types as $type ) { 71 if ( ! $this->register_type( $cluster, $type ) ) { 413 414 foreach ( $r as $field_name => $in ) { 415 $sql['where'][] = $this->set_clause( $field_name, $in ); 470 471 foreach ( $r as $field_name => $in ) { 472 $sql['where'][] = $this->set_clause( $field_name, $in ); 534 535 foreach ( $r as $field_name => $in ) { 536 $sql['where'][] = $this->set_clause( $field_name, $in );Configuration.php https://github.com/sellingsource/symfony.git | PHP | 362 lines
1<?php 2 186 187 foreach ($urls as $i => $url) { 188 if (is_integer($i)) {phpBB.php https://bitbucket.org/adatux_/uakami.git | PHP | 538 lines
1<?php 2 3/** 4 * Implementation of phpBB converter. 5 */ 5 */ 6class phpBB extends BBP_Converter_Base { 7 function __construct() { 357 'to_fieldname' => '_bbp_class', 358 'default' => 'phpBB' 359 ); 411 /** 412 * This method allows us to indicates what is or is not converted for each 413 * converter. 472 * We're kind of forced to use MD5 here since it's the only 473 * cryptographic primitive available in all versions of PHP 474 * currently in use. To implement our own low-level cryptotest.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 185$del_aco_ids = $gacl_api->get_aco($aco_section_id); 186foreach ($del_aco_ids as $del_aco_id) { 187 $gacl_api->del_aco($del_aco_id); 192$del_aro_ids = $gacl_api->get_aro($aro_section_id); 193foreach ($del_aro_ids as $del_aro_id) { 194 $gacl_api->del_aro($del_aro_id);SimpleHeaderSet.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 387 lines
1<?php 2 195 $headers = array(); 196 foreach ($this->_headers as $collection) { 197 $headers = array_merge($headers, $collection); 306 } 307 foreach ($headers as $collection) { 308 foreach ($collection as $header) { 380 { 381 foreach ($this->_headers as $headerGroup) { 382 foreach ($headerGroup as $header) {filing_costs.php https://bitbucket.org/amitholkar/zenfile-18-05.git | PHP | 198 lines
39 ?> 40 <div class="finance_country <?php echo $status ?> custom_accordion" ref="filing_cost_country_<?php echo $invoice->id ?>"><?php echo $invoice->country ?></div> 41 45 <div> 46 <h2><?php echo $invoice->country ?> - <?php echo $invoice->fa_invoice_status ?></h2> 47 </div> 56 57 <?php echo $currency_sign ?><input readonly="true" value="<?php echo $invoice->fa_invoice_professional_fee ?>" type="text"/> 58 </div> 96 <input type="hidden" name="additional_fee_id[]" value="<?php echo $additional_fee->additional_fee_id ?>"> 97 <?php echo $currency_sign ?><input title="<?php echo $additional_fee->additional_fee_description_by_fa ?>" name="additional_fee_corrected_by_pm[]" value="<?php echo $additional_fee_value ?>" type="text"/> 98 </div> 116 <?php foreach($invoice->invoices as $file) { ?> 117 <a href="<?php echo base_url() ?>cases/download_file/<?php echo $file->file_id ?>"><?php echo $file->filename ?></a> 118 <?php } ?>tbl_replace.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 414 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 5 * 6 * usally called as form action from tbl_change.php to insert or update table rows 7 * 7 * 8 * @version $Id: tbl_replace.php 12245 2009-02-23 08:36:34Z lem9 $ 9 * 54 */ 55require_once './libraries/common.inc.php'; 56 69 $GLOBALS['js_include'][] = 'tbl_change.js'; 70 require_once './libraries/header.inc.php'; 71 require './tbl_change.php'; 77 $url_params['after_insert'] = $_REQUEST['after_insert']; 78 //$GLOBALS['goto'] = 'tbl_change.php'; 79 $goto_include = 'tbl_change.php';admin.php https://github.com/Brucee/pyrocms.git | PHP | 562 lines
283 // Loop through each rule 284 foreach ($this->validation_rules as $rule) 285 { 384 385 // Loop through each validation rule 386 foreach ($this->validation_rules as $rule) 452 // Go through the array of slugs to delete 453 foreach ($ids as $id) 454 { 541 542 foreach($page['children'] as $page): ?> 543 557 558 <?php endforeach; ?> 559Graph.php https://github.com/studioskylab/Docblox.git | PHP | 259 lines
1<?php 2/** 4 * 5 * PHP Version 5 6 * 11 * @copyright 2010-2011 Mike van Riel / Naenius (http://www.naenius.com) 12 * @license http://www.opensource.org/licenses/mit-license.php MIT 13 * @link http://docblox-project.org 24 * @author Mike van Riel <mike.vanriel@naenius.com> 25 * @license http://www.opensource.org/licenses/mit-license.php MIT 26 * @link http://docblox-project.org 63 /** @var DOMElement $element */ 64 foreach ($qry as $element) { 65 $path = $element->getAttribute('generated-path'); 65 $path = $element->getAttribute('generated-path'); 66 foreach ($element->getElementsByTagName('class') as $class) { 67 $class_paths[$class->getElementsByTagName('full_name')->item(0)->nodeValue] = $path;WCCitation.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 326 lines
1<?php 2/** 30 * Associated WCReference object, representing the unique reference source. 31 * For each WCReference instance, there may be many WCCitation instances. 32 * @var WCReference 119 */ 120 foreach( $argumentReader->parameters as $var => $value ) { 121 291 public function inferLocator( WCPropertyEnum &$locatorType ) { 292 foreach( $locatorType as $testLocatorTypeKey ) { 293 if ( isset( $this->locators[ $testLocatorTypeKey ] ) ) {ValidationStatistics_body.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 307 lines
1<?php 2 36 $headerRows = $dataRows = ''; 37 foreach ( $pData as $percentile => $perValue ) { 38 $headerRows .= "<th>P<sub>" . intval( $percentile ) . "</sub></th>"; 79 $msgs = array( 'ns', 'total', 'stable', 'latest', 'synced', 'old' ); // our headings 80 foreach ( $msgs as $msg ) { 81 $wgOut->addHTML( '<th>' . 85 $namespaces = FlaggedRevs::getReviewNamespaces(); 86 foreach ( $namespaces as $namespace ) { 87 $total = $this->getTotalPages( $namespace ); 162 '</th><th>' . wfMsgHtml( 'validationstatistics-reviews' ) . '</th></tr>'; 163 foreach ( $data as $userId => $reviews ) { 164 $reviewChart .= '<tr><td>' . htmlspecialchars( User::whois( $userId ) ) . 187 global $wgPhpCli; 188 $ext = !empty( $wgPhpCli ) ? $wgPhpCli : 'php'; 189 $path = wfEscapeShellArg( dirname( __FILE__ ) . '/../maintenance/updateStats.php' );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 ------------------------------------------------------------------------- 176 177 foreach ($zones as $zone) { 178 foreach ($events as $event) { 229 $first = true; 230 foreach ($parameters as $key => $val) { 231 if ($first) { 290 291 foreach ($data["moreparams"] as $key => $val) { 292 $paramsupdate[$key] = $val;Index.php https://gitlab.com/tonycodes/october | PHP | 458 lines
1<?php namespace Cms\Controllers; 2 102 $aceModes = ['markdown', 'plain_text', 'html', 'less', 'css', 'scss', 'sass', 'javascript']; 103 foreach ($aceModes as $mode) { 104 $this->addJs('/modules/backend/formwidgets/codeeditor/assets/vendor/ace/mode-'.$mode.'.js', 'core'); 153 $fields = ['markup', 'code', 'fileName', 'content']; 154 foreach ($fields as $field) { 155 if (array_key_exists($field, $_POST)) { 235 try { 236 foreach ($templates as $path => $selected) { 237 if ($selected) {zone.php https://bitbucket.org/sandeepbhaskar/inspiredliving.git | PHP | 441 lines
1<?php 2class ControllerLocalisationZone extends Controller { 86 if (isset($this->request->post['selected']) && $this->validateDelete()) { 87 foreach ($this->request->post['selected'] as $zone_id) { 88 $this->model_localisation_zone->deleteZone($zone_id); 175 176 foreach ($results as $result) { 177 $action = array(); 403 404 foreach ($this->request->post['selected'] as $zone_id) { 405 if ($this->config->get('config_zone_id') == $zone_id) {Tab.php https://github.com/ksecor/civicrm.git | PHP | 344 lines
1<?php 2 35 36require_once 'CRM/Contact/Page/View.php'; 37 50 * This method returns the links that are given for honor search row. 51 * currently the links added for each row are 52 * 94 { 95 require_once 'CRM/Contribute/BAO/Contribution.php'; 96 120 if ( ! empty($params) ) { 121 foreach( $params as $ids => $honorId ) { 122 $params[$ids]['action'] = CRM_Core_Action::formLink(self::honorLinks( ), $action,ThreeZero.php https://github.com/ksecor/civicrm.git | PHP | 271 lines
1<?php 2 35 36require_once 'CRM/Upgrade/Form.php'; 37require_once 'CRM/Core/OptionGroup.php'; 37require_once 'CRM/Core/OptionGroup.php'; 38require_once 'CRM/Core/OptionValue.php'; 39 94 if (!CRM_Core_DAO::checkFieldExists('civicrm_report_instance', 'description')) { 95 require_once 'CRM/Core/DAO/Domain.php'; 96 $domain = new CRM_Core_DAO_Domain; 103 CRM_Core_DAO::executeQuery("DROP TRIGGER civicrm_report_instance_before_insert"); 104 foreach ($locales as $locale) { 105 CRM_Core_DAO::executeQuery("DROP VIEW civicrm_report_instance_$locale"); 109 110 //We execute some part of php after sql and then again sql 111 //So using conditions for skipping some part of sql CRM-4575date.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>. 81 * 82 * @param integer amount to increment each step by, 1 to 30 83 * @param integer start value 108 * @uses Date::seconds 109 * @param integer amount to increment each step by, 1 to 30 110 * @return array A mirrored (foo => foo) array from 1-60. 548 * 549 * @see http://php.net/manual/en/datetime.construct.php 550 * @param string datetime_str datetime stringfilterlib.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 365 lines
1<?php // $Id: filterlib.php,v 1.24.10.4 2009/02/18 11:02:11 stronk7 Exp $ 2 // Contains special functions that are particularly useful to filters 85 if ( is_array($ignoretagsopen) ) { 86 foreach ($ignoretagsopen as $open) $filterignoretagsopen[] = $open; 87 foreach ($ignoretagsclose as $close) $filterignoretagsclose[] = $close; 99 100/// Time to cycle through each phrase to be linked 101 $size = sizeof($link_array); 183 if ($list_of_notfullmatches) { 184 foreach (array_unique($list_of_notfullmatches[0]) as $key=>$value) { 185 $notfullmatches['<*'.$key.'*>'] = $value; 259 260 foreach ($linkarray as $key=>$filterobject) { 261 if ($filterobject->casesensitive) { 290/// Remove everything enclosed by the ignore tags from $text 291 foreach ($filterignoretagsopen as $ikey=>$opentag) { 292 $closetag = $filterignoretagsclose[$ikey];lexer.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 393 lines
1<?php // $Id: lexer.php,v 1.1 2005/01/31 07:39:03 moodler Exp $ 2 2 3/* PHP lexer code snarfed from the CVS tree for the lamplib project at 4 * http://sourceforge.net/projects/lamplib 165 * Some optimisation to make the sure the 166 * content is only scanned by the PHP regex 167 * parser once. Lexer modes must not start 277 * if the handlers report an error or if no 278 * content is consumed. If successful then each 279 * unparsed and parsed token invokes a call to theyii.php https://gitlab.com/brucealdridge/yii2 | PHP | 114 lines
1<?php 2/** 8 * 9 * Each array element represents the translation (value) of a message (key). 10 * If the value is empty, the message is considered as not translated.yii.php https://gitlab.com/brucealdridge/yii2 | PHP | 114 lines
1<?php 2/** 8* 9* Each array element represents the translation (value) of a message (key). 10* If the value is empty, the message is considered as not translated.paypal-return-in-web-accept-sp.inc.php https://gitlab.com/Gashler/sg | PHP | 148 lines
1<?php 2/** 50 { 51 foreach(array_keys(get_defined_vars()) as $__v) $__refs[$__v] =& $$__v; 52 do_action('ws_plugin__s2member_during_paypal_return_before_sp_access', get_defined_vars()); 92 } 93 foreach(array_keys(get_defined_vars()) as $__v) $__refs[$__v] =& $$__v; 94 do_action('ws_plugin__s2member_during_paypal_return_during_sp_access', get_defined_vars()); 138 } 139 foreach(array_keys(get_defined_vars()) as $__v) $__refs[$__v] =& $$__v; 140 do_action('ws_plugin__s2member_during_paypal_return_after_sp_access', get_defined_vars());class-wpb-map.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 563 lines
1<?php 2/** 12 * This class maps shortcodes settings to VC editors. You can manage add new shortcodes or manage default shortcodes 13 * mapped in config/map.php. For developers it is possible to use API functions to add update settings attributes. 14 * 14 * 15 * @see config/map.php 16 * @see include/helpers/helpers_api.php 126 * You need to shortcode's tag and settings to map correctly. 127 * Default shortcodes are mapped in config/map.php file. 128 * The best way is to call this method with "init" action callback function of WP. 168 if ( ! empty( $attributes['params'] ) ) { 169 foreach ( $attributes['params'] as $attribute ) { 170 $attribute = apply_filters( 'vc_mapper_attribute', $attribute, $tag ); 200 self::$user_sc = self::$user_categories = self::$user_sorted_sc = array(); 201 foreach ( self::$sc as $name => $values ) { 202 if ( in_array( $name, array(editar_factura_prov.php https://gitlab.com/cosouth.battle/sartinofi | PHP | 434 lines
1<?php 2 2 3require_model('asiento.php'); 4require_model('asiento_factura.php'); 4require_model('asiento_factura.php'); 5require_model('divisa.php'); 6require_model('fabricante.php'); 6require_model('fabricante.php'); 7require_model('forma_pago.php'); 8require_model('proveedor.php'); 8require_model('proveedor.php'); 9require_model('recibo_proveedor.php'); 10 133 /// paso 2, eliminar las líneas de IVA 134 foreach($this->factura->get_lineas_iva() as $liva) 135 {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 */ 296 } 297 foreach (Mage::app()->getStores() as $store) { 298 $code = $store->getBaseCurrencyCode();FormErrorsTest.php https://github.com/sidealice/zf2.git | PHP | 295 lines
1<?php 2/** 26 Zend\Form\SubForm, 27 Zend\View\PhpRenderer as View; 28 38 */ 39class FormErrorsTest extends \PHPUnit_Framework_TestCase 40{ 121 $this->assertContains($content, $test); 122 foreach ($this->form->getMessages() as $name => $messages) { 123 foreach ($messages as $key => $message) { 126 } else { 127 foreach ($message as $m) { 128 $this->assertContains($m, $test, var_export($messages, 1)); 151 152 public function testRenderSeparatesContentAndErrorsWithPhpEolByDefault() 153 {NullTest.php https://github.com/sidealice/zf2.git | PHP | 329 lines
1<?php 2/** 33 */ 34class NullTest extends \PHPUnit_Framework_TestCase 35{ 43 /** 44 * Creates a new Zend_Filter_Null object for each test method 45 *Observer.php https://github.com/rgranadino/magento-mirror.git | PHP | 282 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 */ 57 if ($customOptions = $product->getProductOptions()) { 58 foreach (array_keys($customOptions) as $key) { 59 $customOptions[$key]['is_delete'] = 1; 130 131 foreach ($bundleCollection as $item) { 132 $collection->addItem($item); 202 $i = 0; 203 foreach ($optionCollection as $option) { 204 $optionRawData[$i] = array(Mail.php https://github.com/magikcypress/bbbweb.git | PHP | 270 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 40 * @copyright 1997-2010 Chuck Hagenbuch 41 * @license http://opensource.org/licenses/bsd-license.php New BSD License 42 * @version CVS: $Id: Mail.php 294747 2010-02-08 08:18:33Z clockwerx $ 42 * @version CVS: $Id: Mail.php 294747 2010-02-08 08:18:33Z clockwerx $ 43 * @link http://pear.php.net/package/Mail/ 44 */ 45 46require_once 'PEAR.php'; 47 76 $driver = strtolower($driver); 77 @include_once 'Mail/' . $driver . '.php'; 78 $class = 'Mail_' . $driver;utils.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 313 lines
1<?php 2 7 if (!is_dir($dir)) return unlink($dir); 8 foreach (scandir($dir) as $item) { 9 if ($item == '.' || $item == '..') continue; 44 if(image_check_memory_usage($imgfile,$newwidth,$newheight)){ 45 require_once('php_image_magician.php'); 46 $magicianObj = new imageLib($imgfile); 55 if(image_check_memory_usage($imgfile,$newwidth,$newheight)){ 56 require_once('php_image_magician.php'); 57 $magicianObj = new imageLib($imgfile); 80 81 foreach($files as $t) { 82 if ($t<>"." && $t<>"..") { 117 $files = scandir($path); 118 foreach($files as $file){ 119 check_files_extensions_on_path(trim($path,'/')."/".$file,$ext);service.php https://gitlab.com/alexprowars/bitrix | PHP | 416 lines
1<?php 2/** 36 const AUTHORIZE = "/register/"; 37 const REDIRECT_URI = "/bitrix/tools/seo_client.php"; 38 134 { 135 foreach ($data as $code => $client) 136 {Configuration.php https://gitlab.com/freebird/WebApp | PHP | 226 lines
1<?php 2 52 ->always(function ($value) { 53 foreach ($value['blocks'] as $name => &$block) { 54 if (count($block['contexts']) == 0) {BannerCommand.php https://gitlab.com/vectorci/clitools | PHP | 334 lines
1<?php 2 96 $lines = explode("\n", $logo); 97 foreach ($lines as &$line) { 98 $line = "\033[1;32m" . $line; 143 // Mount info list 144 foreach ($mountInfoList as $mount => $stats) { 145 $capacity = FormatUtility::bytes($stats['capacity']); 165 $netInterfaceList = UnixUtility::networkInterfaceList('/^((?!docker).)*$/i'); 166 foreach ($netInterfaceList as $netName => $netConf) { 167 $netName = str_pad($netName, $labelLength, ' ', STR_PAD_LEFT);LeadImportFieldType.php https://gitlab.com/mautic-master/mautic | PHP | 290 lines
1<?php 2/** 40 { 41 foreach ($options['lead_fields'] as $field => $label) { 42 $builder->add(CakeValidationSetTest.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 337 lines
1<?php 2/** 4 * 5 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 14 * @package Cake.Test.Case.Model.Validator 14 * @package Cake.Test.Case.Model.Validator 15 * @since CakePHP(tm) v 2.2.0 16 * @license http://www.opensource.org/licenses/mit-license.php MIT License 281 $i = 0; 282 foreach ($Set as $name => $rule) { 283 if ($i === 0) {Type.php https://bitbucket.org/rybadour/todo_list_site.git | PHP | 303 lines
36 * 37 * @package PHPUnit 38 * @subpackage Util 38 * @subpackage Util 39 * @author Sebastian Bergmann <sebastian@phpunit.de> 40 * @copyright 2001-2012 Sebastian Bergmann <sebastian@phpunit.de> 53 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 54 * @link http://www.phpunit.de/ 55 * @since Class available since Release 3.0.0 159 // There seems to be no other way to check arrays for recursion 160 // http://www.php.net/manual/en/language.types.array.php#73936 161 preg_match_all('/\n \[(\w+)\] => Array\s+\*RECURSION\*/', print_r($value, TRUE), $matches); 218 * @return string 219 * @see PHPUnit_Util_Type::export 220 */store.php https://github.com/totara/moodle.git | PHP | 362 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 63 $replace = "module = 'course' AND action = 'new' AND userid = :userid AND url = :url AND time > :since"; 64 $params += array('url' => "view.php?id={$params['courseid']}"); 65 return array($replace, $params, $sort); 68 // Replace db field names to make it compatible with legacy log. 69 foreach (self::$standardtolegacyfields as $from => $to) { 70 $selectwhere = str_replace($from, $to, $selectwhere); 105 106 foreach ($records as $data) { 107 $events[$data->id] = $this->get_log_event($data); 246 247 // If the 100 field size is changed, also need to alter print_log in course/lib.php. 248 if (!empty($url) && \core_text::strlen($url) > 100) { 296 unset($match[0]); // The first entry is the whole string. 297 foreach ($match as $m) { 298 // We hard code LIKE here because we are not worried about case sensitivity and want this to be fast.route.php https://github.com/ymtn/core.git | PHP | 589 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 7 * 8 * Each <key> will be translated to a regular expression using a default 9 * regular expression pattern. You can override the default pattern by providing 237 $search = $replace = array(); 238 foreach ($regex as $key => $value) 239 { 288 * The $uri parameter can either be a string for basic regex matching or it 289 * can be a valid callback or anonymous function (php 5.3+). If you use a 290 * callback or anonymous function, your method should return an array 426 $params = array(); 427 foreach ($matches as $key => $value) 428 { 445 446 foreach ($this->_defaults as $key => $value) 447 {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$ 56 /** 57 * @var string $_separatorTemplate Separator template, applied between each page 58 */ 61 /** 62 * @var string $_urlMask URL to be assigned for each page. Masks are used as: {%var_name} 63 */ 77 * @param Doctrine_Pager_Range $pagerRange Doctrine_Pager_Range object related to the pager layout 78 * @param string $urlMask URL to be assigned for each page 79 * @return void 159 * 160 * Returns the URL to be assigned for each page 161 *eclipse.php https://github.com/kpike/moodle.git | PHP | 307 lines
1<?php 2/** 10 */ 11include_once 'unit_tester.php'; 12include_once 'test_case.php'; 12include_once 'test_case.php'; 13include_once 'invoker.php'; 14include_once 'socket.php'; 14include_once 'socket.php'; 15include_once 'mock_objects.php'; 16/**#@-*/ 239 $thisdirlen = strlen($thisdir); 240 foreach ($arrfiles as $index=>$file){ 241 if (substr($index, 0, $thisdirlen)===$thisdir){ 245 $ccnt = 0; 246 foreach ($file as $line){ 247 if ($line == -2){Indicators.class.php https://github.com/bgerp/bgerp.git | PHP | 440 lines
1<?php 2 137 138 foreach ($idArr as $id) { 139 $rec = self::fetch($id); 188 189 foreach ($ap as $port => $pRec) { 190 if (!self::fetch(array("#controllerId = {$rec->controllerId} AND #port = '[#1#]'", $port)) || $port == $rec->port) { 367 if (is_array($data->rows)) { 368 foreach ($data->rows as $id => &$row) { 369 if (strlen($data->recs[$id]->value)) {recorded.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>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 80 std::string curarg; 81 foreach(char ch, strCommand) 82 {recaptchalib.php https://bitbucket.org/Mainboarder/s2firewall.git | PHP | 277 lines
1<?php 2/* 2/* 3 * This is a PHP library that handles calling reCAPTCHA. 4 * - Documentation and latest version 4 * - Documentation and latest version 5 * http://recaptcha.net/plugins/php/ 6 * - Get a reCAPTCHA API Key 48 $req = ""; 49 foreach ( $data as $key => $value ) 50 $req .= $key . '=' . urlencode( stripslashes($value) ) . '&'; 74 $http_request .= "Content-Length: " . strlen($req) . "\r\n"; 75 $http_request .= "User-Agent: reCAPTCHA/PHP\r\n"; 76 $http_request .= "\r\n"; 215 if (! function_exists ("mcrypt_encrypt")) { 216 die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); 217 }transformation.php https://github.com/xc/zetacomponents.git | PHP | 417 lines
1<?php 2/** 34 * to another transformation so that multiple transformations will be produced 35 * after each other. 36 * 259 // Apply the filters 260 foreach ( $this->filters as $filter ) 261 { 365 { 366 foreach ( $filters as $id => $filter ) 367 { 391 { 392 foreach ( $mime as $mimeType ) 393 {input-mask.js https://gitlab.com/ayemi/entitlement | JavaScript | 281 lines
9 * 10 * The MIT License (http://www.opensource.org/licenses/mit-license.php) 11 * 56 57 el.each(function() { 58 if (options.maxlength !== false) { 247 $.fn.mask = function(mask, options) { 248 return this.each(function() { 249 $(this).data('mask', new Mask(this, mask, options)); 253 $.fn.unmask = function() { 254 return this.each(function() { 255 try { 265 // looking for inputs with data-mask attribute 266 $('*[data-mask]').each(function() { 267 var input = $(this),WufooApiWrapper.php https://github.com/Fourshift/Wufoo-API-Wrappers.git | PHP | 270 lines
1<?php 2 2 3require_once('WufooApiWrapperBase.php'); 4require_once('WufooValueObjects.php'); 72 73 foreach ($fields->Fields as $field) { 74 $fieldHelper->Fields[$field->ID] = new WufooField($field); 76 if ($field->SubFields) { 77 foreach ($field->SubFields as $subfield) { 78 $fieldHelper->Hash[$subfield->ID] = $subfield; 227 $postParams = array(); 228 foreach ($wufooSubmitFields as $field) { 229 $postParams[$field->getId()] = $field->getValue();exec.inc.php https://github.com/viglesiasce/testlink.git | PHP | 298 lines
1<?php 2/** 11 * @copyright 2005-2009, TestLink community 12 * @version CVS: $Id: exec.inc.php,v 1.60 2010/06/24 17:25:53 asimon83 Exp $ 13 * @link http://www.teamst.org/index.php 34/** 35 * @uses common.php required basic environment (configuration and core libraries) 36 **/ 36 **/ 37require_once('common.php'); 38 56 // user can assign while executing test cases 57 foreach($resultsCfg['status_label_for_exec_ui'] as $verbose_status => $status_label) 58 { 95 $map_nodeid_array_cfnames=null; 96 foreach($exec_data as $input_name => $value) 97 {Source.php https://github.com/brtriver/sukonv.git | PHP | 280 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2010, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/bsd-license.php The BSD License 7 */ 157 * @return array Returns an associative array describing the given table's schema, where the 158 * array keys are the available fields, and the values are arrays describing each 159 * field, containing the following keys:twitter.js https://github.com/Val9/KitchenSink.git | JavaScript | 309 lines
2// Another attempt to create a simple Twitter client list. 3// This time using a vertical layout view within each row containing the avatar image and labels for the 4// date, the username and the tweet itself. 37 38 // Create a vertical layout view to hold all the info labels and images for each tweet 39 var post_view = Ti.UI.createView({ 115function strtotime (str, now) { 116 // Emlulates the PHP strtotime function in JavaScript 117 // obtained from http://phpjs.org/functions/strtotime:554 126 } else if (now) { 127 now = new Date(now*1000); // Accept PHP-style seconds 128 } else {Tag.php https://github.com/michaelmcandrew/vaw.git | PHP | 215 lines
1<?php 2 61 62 foreach( $parentNames as &$parentNameItem ) { 63 // get the parent id for tag list input for keyword 107 $tagset[$tagsetItem]['entityId'] = $entityId; 108 require_once 'CRM/Core/BAO/EntityTag.php'; 109 $entityTags = CRM_Core_BAO_EntityTag::getChildEntityTags( $parentId, $entityId, $entityTable ); 117 $tagIds = explode( ',', $form->_submitValues['activity_taglist'][$parentId] ); 118 foreach( $tagIds as $tagId ) { 119 if ( is_numeric( $tagId ) ) { 134 $tagIds = explode( ',', $form->_submitValues['case_taglist'][$parentId] ); 135 foreach( $tagIds as $tagId ) { 136 if ( is_numeric( $tagId ) ) { 148 if ( !empty($form->_formValues['contact_tags']) ) { 149 require_once 'CRM/Core/BAO/Tag.php'; 150 $contactTags = CRM_Core_BAO_Tag::getTagsUsedFor( 'civicrm_contact', true, false, $parentId );README.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: 133 134 - In `pymel.api.plugins` add a new `DependNode` sublcass for each missing type: 135 244 The `generate()` function uses the sphinx autosummary extension to generate 245 stub `.rst` source files for each module listed in `index.rst`. The stub 246 files contain `autosummary`, `autofunction`, and `autoclass` directivesProxyFactory.php https://github.com/weaverryan/mongodb-odm.git | PHP | 283 lines
107 $proxyDir = rtrim($proxyDir, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; 108 foreach ($classes as $class) { 109 $proxyClassName = str_replace('\\', '', $class->name) . 'Proxy'; 109 $proxyClassName = str_replace('\\', '', $class->name) . 'Proxy'; 110 $proxyFileName = $proxyDir . $proxyClassName . '.php'; 111 $this->generateProxyClass($class, $proxyClassName, $proxyFileName, self::$_proxyClassTemplate); 167 if ($method->isPublic() && ! $method->isFinal() && ! $method->isStatic()) { 168 $methods .= PHP_EOL . ' public function ' . $method->getName() . '('; 169 $firstParam = true; 199 $methods .= $parameterString . ')'; 200 $methods .= PHP_EOL . ' {' . PHP_EOL; 201 $methods .= ' $this->load();' . PHP_EOL; 202 $methods .= ' return parent::' . $method->getName() . '(' . $argumentString . ');'; 203 $methods .= PHP_EOL . ' }' . PHP_EOL; 204 }AbstractPaginator.php https://gitlab.com/zan_zan/laravel_sample | PHP | 487 lines
1<?php 2 187 { 188 foreach ($keys as $key => $value) { 189 $this->addQuery($key, $value);EntityOperations.php https://gitlab.com/Drulenium-bot/workbench_moderation | PHP | 267 lines
1<?php 2 92 // @todo make this more functional, less iterative. 93 foreach ($to_check as $entity) { 94 foreach ($entity->getTranslationLanguages() as $language) {PlatformJobQueueTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 329 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: PlatformJobQueueTest.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 23/** Zend_Queue */ 24require_once 'Zend/Queue.php'; 25 26/** Zend_Queue */ 27require_once 'Zend/Queue/Message.php'; 28 29/** Zend_Queue_Message_Test */ 30require_once 'MessageTestClass.php'; 31 32/** Base Adapter test class */ 33require_once dirname(__FILE__) . '/AdapterTest.php'; 34EntityTypeBundleInfoTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 314 lines
1<?php 2 116 $class = $this->getMockClass(EntityInterface::class); 117 foreach ($definitions as $key => $entity_type) { 118 // \Drupal\Core\Entity\EntityTypeInterface::getLinkTemplates() is calledmenu-header.php https://gitlab.com/campus-academy/krowkaramel | PHP | 306 lines
1<?php 2/** 13 */ 14$self = preg_replace( '|^.*/wp-admin/network/|i', '', $_SERVER['PHP_SELF'] ); 15$self = preg_replace( '|^.*/wp-admin/|i', '', $self ); 72 // 0 = menu_title, 1 = capability, 2 = menu_slug, 3 = page_title, 4 = classes, 5 = hookname, 6 = icon_url. 73 foreach ( $menu as $key => $item ) { 74 $admin_is_parent = false; 162 if ( ! empty( $menu_hook ) 163 || ( ( 'index.php' !== $submenu_items[0][2] ) 164 && file_exists( WP_PLUGIN_DIR . "/$menu_file" ) 167 $admin_is_parent = true; 168 echo "<a href='admin.php?page={$submenu_items[0][2]}'$class $aria_attributes>$arrow<div class='wp-menu-image$img_class'$img_style aria-hidden='true'>$img</div><div class='wp-menu-name'>$title</div></a>"; 169 } else { 172 } elseif ( ! empty( $item[2] ) && current_user_can( $item[1] ) ) { 173 $menu_hook = get_plugin_page_hook( $item[2], 'admin.php' ); 174 $menu_file = $item[2];UnitTestCase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 282 lines
1<?php 2 11use Drupal\Core\StringTranslation\PluralTranslatableMarkup; 12use Drupal\Tests\Traits\PhpUnitWarnings; 13use Drupal\TestTools\TestVarDumper; 13use Drupal\TestTools\TestVarDumper; 14use PHPUnit\Framework\TestCase; 15use Symfony\Component\VarDumper\VarDumper; 15use Symfony\Component\VarDumper\VarDumper; 16use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait; 17 27 28 use PhpUnitWarnings; 29 use PhpUnitCompatibilityTrait; 132 * 133 * @return \PHPUnit\Framework\MockObject\MockBuilder 134 * A MockBuilder object for the ConfigFactory with the desired returnyuga.js https://github.com/dounokouno/yuga.js-TT-Custom.git | JavaScript | 317 lines
5 * Licensed under the MIT License: 6 * http://www.opensource.org/licenses/mit-license.php 7 * 16 * Licensed under the MIT License: 17 * http://www.opensource.org/licenses/mit-license.php 18 * 45 if(this.query){ 46 $.each(self.query.split('&'), function(){ 47 var a = this.split('='); 74 var rolloverImgs = $(c.hoverSelector).filter(isNotCurrent); 75 rolloverImgs.each(function(){ 76 this.originalSrc = $(this).attr('src'); 91 $(c.groupSelector).hover(function(){ 92 $(this).find('img').filter(isRolloverImg).each(function(){ 93 $(this).attr('src',this.rolloverSrc);UpdateQueryBuilderTest.php https://github.com/csanquer/QueryBuilder.git | PHP | 326 lines
1<?php 2namespace SQL\Test; 38 39 foreach ($options as $option) { 40 $this->queryBuilder->addOption($option); 125 { 126 foreach ($sets as $set) { 127 $this->queryBuilder->set($set[0], $set[1], $set[2]); 267 268 foreach ($sets as $set) { 269 $this->queryBuilder->set($set[0], $set[1], $set[2]); 271 272 foreach ($wheres as $where) { 273 $nbWhere = count($where);install-location.php https://github.com/nsswaga/OSClass.git | PHP | 418 lines
10require_once LIB_PATH . 'osclass/db.php'; 11require_once LIB_PATH . 'osclass/classes/DAO.php'; 12require_once LIB_PATH . 'osclass/helpers/hDatabaseInfo.php'; 12require_once LIB_PATH . 'osclass/helpers/hDatabaseInfo.php'; 13require_once LIB_PATH . 'osclass/install-functions.php'; 14require_once LIB_PATH . 'osclass/formatting.php'; 96 try{ 97 require_once LIB_PATH . 'phpmailer/class.phpmailer.php' ; 98 $mail = new PHPMailer(true) ; 161 if(!isset($cities->error)) { 162 foreach($cities as $ci) { 163 $manager_city->insert(array( 361 if(!isset($cities->error)) { 362 foreach($cities as $ci) { 363 $regions_json = osc_file_get_contents('http://geo.osclass.org/geo.download.php?action=region&country=&id=' . $ci->region_id);search.tpl https://gitlab.com/reclamare/mao | Smarty Template | 207 lines
20 <div class="col-sm-4"> 21 <input type="text" name="search" value="<?php echo $search; ?>" placeholder="<?php echo $text_keyword; ?>" id="input-search" class="form-control" /> 22 </div> 87 <?php } else { ?> 88 <option value="<?php echo $sorts['href']; ?>"><?php echo $sorts['text']; ?></option> 89 <?php } ?> 97 <select id="input-limit" class="form-control" onchange="location = this.value;"> 98 <?php foreach ($limits as $limits) { ?> 99 <?php if ($limits['value'] == $limit) { ?> 112 <div class="product-thumb"> 113 <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-responsive" /></a></div> 114 <div class="caption"> 141 <div class="button-group"> 142 <button type="button" onclick="cart.add('<?php echo $product['product_id']; ?>', '<?php echo $product['minimum']; ?>');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $button_cart; ?></span></button> 143 <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button>shipping.php https://gitlab.com/reclamare/mao | PHP | 268 lines
1<?php 2class ControllerApiShipping extends Controller { 29 30 foreach ($keys as $key) { 31 if (!isset($this->request->post[$key])) { 72 73 foreach ($custom_fields as $custom_field) { 74 if (($custom_field['location'] == 'address') && $custom_field['required'] && empty($this->request->post['custom_field'][$custom_field['custom_field_id']])) { 169 170 foreach ($results as $result) { 171 if ($this->config->get($result['code'] . '_status')) { 188 189 foreach ($json['shipping_methods'] as $key => $value) { 190 $sort_order[$key] = $value['sort_order'];AbstractCollectionPersister.php https://gitlab.com/aleksbenmaza/PPE_NEW | PHP | 313 lines
1<?php 2 180 181 foreach ($entry->identifiers as $index => $entityKey) { 182 if ($targetRegion->contains($entityKey)) {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 <?phpPluginInfo.php https://gitlab.com/fabiorf/chat | PHP | 383 lines
1<?php 2/* 187 $dependent_plugins = array(); 188 foreach (Utils::discoverPlugins() as $plugin_name) { 189 $plugin = new PluginInfo($plugin_name); 251 252 foreach ($this->getSystemRequirements() as $lib => $required_version) { 253 // Check if the library exists 285 // appropriate versions 286 foreach ($this->getDependencies() as $plugin_name => $required_version) { 287 if (!Utils::pluginExists($plugin_name)) { 315 // Make sure that the plugin has no enabled dependent plugins. 316 foreach ($this->getDependentPlugins() as $plugin_name) { 317 $plugin = new PluginInfo($plugin_name); 338 // Make sure that the plugin has no installed dependent plugins. 339 foreach ($this->getDependentPlugins() as $plugin_name) { 340 $plugin = new PluginInfo($plugin_name);Array.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 355 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Array.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 25 */ 26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php'; 27 28/** 29 * Class for using a standard PHP array as a queue 30 * 148 */ 149 // require_once 'Zend/Queue/Exception.php'; 150 throw new Zend_Queue_Exception('Queue does not exist'); 174 if (!$this->isExists($queue->getName())) { 175 // require_once 'Zend/Queue/Exception.php'; 176 throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());errors.php https://github.com/libersoft/fengoffice-ls.git | PHP | 194 lines
1<?php 2 154 155 'maximum number of users reached error' => 'The maximum number of users has been reached', 156 'maximum number of users exceeded error' => 'The maximum number of users has been exceeded. The application will not work anymore until this issue is resolved.', 156 'maximum number of users exceeded error' => 'The maximum number of users has been exceeded. The application will not work anymore until this issue is resolved.', 157 'maximum disk space reached' => 'Your disk quota is full. Please delete some object before trying to add new ones, or contact support to enable more users.', 158 'name must be unique' => 'Sorry, but selected name is already taken',theme-support.php https://gitlab.com/ravenseyedesign/ravensegg | PHP | 367 lines
1<?php 2/** 288 289 foreach ( $my_sidebars as $sidebar ) { 290 $args = wp_parse_args( $sidebar, $defaults );Test.php https://bitbucket.org/shashwat_dinasource/bitscentral.git | PHP | 275 lines
1<?php 2/** 14 * @package PEAR 15 * @author Stig Bakken <ssb@php.net> 16 * @author Martin Jansen <mj@php.net> 18 * @copyright 1997-2006 The PHP Group 19 * @license http://www.php.net/license/3_0.txt PHP License 3.0 20 * @version CVS: $Id: Test.php,v 1.9 2006/02/03 22:28:08 cellog Exp $ 38 * @copyright 1997-2006 The PHP Group 39 * @license http://www.php.net/license/3_0.txt PHP License 3.0 40 * @version Release: 1.4.11 81 'shortopt' => 'u', 82 'doc' => 'Search parameters for AllTests.php, and use that to run phpunit-based tests', 83 ), 85 'doc' => '[testfile|dir ...] 86Run regression tests with PHP\'s regression testing script (run-tests.php).', 87 ),wp-cache-phase1.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 264 lines
1<?php 2// Pre-2.6 compatibility 5 6if( !include( WP_CONTENT_DIR . '/wp-cache-config.php' ) ) 7 return true; 10 11include( WPCACHEHOME . 'wp-cache-base.php'); 12 26 27require_once( WPCACHEHOME . 'wp-cache-phase2.php'); 28 28 29$plugins = glob( $wp_cache_plugins_dir . '/*.php' ); 30if( is_array( $plugins ) ) { 30if( is_array( $plugins ) ) { 31 foreach ( $plugins as $plugin ) { 32 if( is_file( $plugin ) )Array.php https://github.com/grandison/budo16.git | PHP | 354 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Array.php 18701 2009-10-26 13:03:47Z matthew $ 21 */ 25 */ 26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php'; 27 28/** 29 * Class for using a standard PHP array as a queue 30 * 148 */ 149 // require_once 'Zend/Queue/Exception.php'; 150 throw new Zend_Queue_Exception('Queue does not exist'); 174 if (!$this->isExists($queue->getName())) { 175 // require_once 'Zend/Queue/Exception.php'; 176 throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());ResultPrinter.php https://github.com/grandison/budo16.git | PHP | 337 lines
45 46require_once 'PHPUnit/Framework.php'; 47require_once 'PHPUnit/Util/Filter.php'; 47require_once 'PHPUnit/Util/Filter.php'; 48require_once 'PHPUnit/Util/TestDox/NamePrettifier.php'; 49require_once 'PHPUnit/Util/Printer.php'; 50 51PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT'); 52 64 */ 65abstract class PHPUnit_Util_TestDox_ResultPrinter extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener 66{ 149 */ 150 public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) 151 {