100+ results results for 'php current repo:facebook/hiphop-php' (895 ms)
1<?php 2/** 146 * @param string|array Field name(s) of DataTable to select so we can get the sum 147 * @param array (current_column_name => new_column_name) for columns that must change names when summed (eg. unique visitors go from nb_uniq_visitors to sum_daily_nb_uniq_visitors) 148 * @param int Max row count of parent datatable to archivefckeditor.css https://gitlab.com/ptisky/API_prestashop | CSS | 536 lines
176 177#currentFolderInfo dl{ 178 list-style:none; 185} 186#currentFolderInfo dt{ 187 font-size:12px; 193} 194#currentFolderInfo dd{ 195display:inline; 289span.fileExcel{background-image:url(../images/small_icon/fileExcel.png);} 290span.filePhp{background-image:url(../images/small_icon/filePhp.png);} 291span.fileMusic{background-image:url(../images/small_icon/fileMusic.png);} 328dt.fileExcel{background-image:url(../images/big_icon/fileExcel.png);} 329dt.filePhp{background-image:url(../images/big_icon/filePhp.png);} 330dt.fileMusic{background-image:url(../images/big_icon/fileMusic.png);}main2.php https://github.com/MyITCRM/myitcrm1.git | PHP | 373 lines
1<?php 2require('include.php'); 2require('include.php'); 3if(!xml2php("schedule")) { 4 $smarty->assign('error_msg',"Error in language file"); 10if(isset($wo_id)) { 11 $q = "SELECT WORK_ORDER_CURRENT_STATUS FROM ".PRFX."TABLE_WORK_ORDER WHERE WORK_ORDER_ID=".$db->qstr($wo_id); 12 if(!$rs = $db->execute($q)) { 15 } else { 16 $status = $rs->fields['WORK_ORDER_CURRENT_STATUS']; 17 } 124 $calendar .= "<td class=\"menutd2\" align=\"center\" onClick=\"window.location='?page=schedule:view&sch_id=".$sch[$i]['SCHEDULE_ID']."&y=".$y."&m=".$m."&d=".$d."'\">"; 125 $calendar .= "Work Order ". $sch[$i]['WORK_ORDER_ID']." - Currently scheduled for ".date("h:i a",$sch[$i]['SCHEDULE_START'])." until ".date("h:i a",$sch[$i]['SCHEDULE_END'])." ".$sch[$i]['SCHEDULE_NOTES']."\n"; 126 $calendar . "</b></td>\n"; 322 $verticalblocks = renderVerticalEventBlocks($_events, $hrdateline, ($hrdateline+3599), true, $_schedule); 323 $data .= '<td width="'. $splitwidth .'%" class="'. $tdclass .'"'. iif(empty($verticalblocks), ' style="CURSOR: pointer;" onMouseOver="javascript:this.className=\'calhrbg\';" onMouseOut="javascript:this.className=\''. $tdclass .'\';" onClick="javascript:window.location.href=\'index.php?_m=teamwork&_a=insertevent&startdateline='. $hrdateline .'\';" title="'. $_SWIFT["language"]["insertevent"] .'"') .'>'; 324 // $data .= "Event: ".date("d m Y h:i:s A", $_events[8]["startdateline"])."<BR />";CheckOut.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 319 lines
1<?php 2/** 2/** 3 * Created by PhpStorm. 4 * User: THANH 56 'birthday' => '', 57 'regdate'=>CURRENT_TIME, 58 'gender' => '1', 213 $invoice['invoice_status']= 1; 214 $invoice['add_time']=CURRENT_TIME; 215 $invoice['edit_time']=CURRENT_TIME; 282 $invoice['payment'] = Input::Post('payment',1); 283 $invoice['edit_time']= CURRENT_TIME; 284 $update = DB::Query('invoice')->Where('invoice_id','=',$id)->Update($invoice);Ods.php https://gitlab.com/rsilveira1987/Expresso | PHP | 400 lines
1<?php 2/** 126 127 // build export table (use current table if using template) 128 Tinebase_Core::getLogger()->info(__METHOD__ . '::' . __LINE__ . ' Creating export for ' . $this->_modelName . ' . ' . $this->_getDataTableName());class.php https://gitlab.com/alexprowars/bitrix | PHP | 524 lines
1<?php 2 173 { 174 if ((float)$this->arResult['INNER_PAYMENT_INFO']["CURRENT_BUDGET"] > 0) 175 { 324 325 $budget = $this->arResult['INNER_PAYMENT_INFO']['CURRENT_BUDGET']; 326 if ($budget <= 0) 406 false, 407 array("ID", "CURRENT_BUDGET", "CURRENCY", "TIMESTAMP_X") 408 );fa.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 313 lines
1<?php 2$translations = array( 16 'No extension' => 'پسوند نامعتبر', 17 'None of the supported PHP extensions (%s) are available.' => ' پسوند پی اچ پی در دسترس نیست (%s) تعداد', 18 'Session support must be enabled.' => 'پشتيباني از نشست بايستي فعال گردد', 19 'Session expired, please login again.' => 'نشست پايان يافته، لطفا دوباره وارد شويد', 20 '%s version: %s through PHP extension %s' => 'نسخه %s : %s توسعه پی اچ پی %s', 21 'Refresh' => 'بازيابي', 89 90 // link to current database schema layout 91 'Permanent link' => 'ارتباط دائم',XmlFileLoader.php https://github.com/thewiredman/symfony.git | PHP | 402 lines
1<?php 2 73 74 $this->container->getParameterBag()->add($xml->parameters->getArgumentsAsPhp('parameter')); 75 } 83 foreach ($xml->imports->import as $import) { 84 $this->currentDir = dirname($file); 85 $this->import((string) $import['resource'], (Boolean) $import->getAttributeAsPhp('ignore-errors')); 112 $method = 'set'.str_replace('-', '', $key); 113 $definition->$method((string) $service->getAttributeAsPhp($key)); 114 } 120 121 $definition->setArguments($service->getArgumentsAsPhp('argument')); 122 137 foreach ($service->call as $call) { 138 $definition->addMethodCall((string) $call['method'], $call->getArgumentsAsPhp('argument')); 139 }Client.php https://bitbucket.org/cryofrost/portal.git | PHP | 489 lines
226 227 return $this->request($form->getMethod(), $form->getUri(), $form->getPhpValues(), $form->getPhpFiles()); 228 } 252 } 253 $server['HTTP_HOST'] = parse_url($uri, PHP_URL_HOST); 254 $server['HTTPS'] = 'https' == parse_url($uri, PHP_URL_SCHEME); 294 // We set the TMPDIR (for Macs) and TEMP (for Windows), because on these platforms the temp directory changes based on the user. 295 $process = new PhpProcess($this->getScript($request), null, array('TMPDIR' => sys_get_temp_dir(), 'TEMP' => sys_get_temp_dir())); 296 $process->run(); 450 if (!$this->history->isEmpty()) { 451 $currentUri = $this->history->current()->getUri(); 452 } else { 464 if ('/' !== $uri[0]) { 465 $path = parse_url($currentUri, PHP_URL_PATH); 466resource.inc.php https://github.com/enigmatic-user/revolution.git | PHP | 160 lines
1<?php 2/** 138$_lang['site_schedule'] = 'Schedule'; 139$_lang['site_schedule_desc'] = 'This shows the current resources that are scheduled to publish or unpublished on specified dates. You may toggle the current view by clicking on the toolbar button.'; 140$_lang['source'] = 'Sursă';CurrentEmployer.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 394 lines
1<?php 2/* 32 */ 33class CRM_Report_Form_Contact_CurrentEmployer extends CRM_Report_Form { 34 361 // Handle ID to label conversion for contact fields 362 $entryFound = $this->alterDisplayContactFields($row, $rows, $rowNum, 'contact/currentEmployer', 'View Contact Detail') ? TRUE : $entryFound; 363 $entryFound = $this->alterDisplayAddressFields($row, $rows, $rowNum, NULL, NULL) ? TRUE : $entryFound;AlbumController.php https://github.com/grandison/budo16.git | PHP | 454 lines
1<?php 2/** 8 * @license http://www.socialengine.net/license/ 9 * @version $Id: AlbumController.php 8381 2011-02-02 05:03:02Z john $ 10 * @author John Boehr <j@webligo.com> 170 $paginator->setItemCountPerPage($settings->getSetting('album_page', 25)); 171 $paginator->setCurrentPageNumber($page); 172 252 $this->view->paginator = $paginator = $album->getCollectiblesPaginator(); 253 $paginator->setCurrentPageNumber($this->_getParam('page')); 254 $paginator->setItemCountPerPage(10); 332 $photoTable = Engine_Api::_()->getItemTable('album_photo'); 333 $currentOrder = $photoTable->select() 334 ->from($photoTable, 'photo_id') 343 $end = null; 344 for( $i = 0, $l = count($currentOrder); $i < $l; $i++ ) { 345 if( in_array($currentOrder[$i], $order) ) {Config.php https://github.com/mrbanzai/zf2.git | PHP | 536 lines
1<?php 2/** 211 /** 212 * Support isset() overloading on PHP 5.1 213 * 222 /** 223 * Support unset() overloading on PHP 5.1 224 * 255 */ 256 public function current() 257 { 258 $this->_skipNextIteration = false; 259 return current($this->_data); 260 } 476 } 477 $extendedSectionCurrent = $this->_extends[$extendedSectionCurrent]; 478 }class.evstat.html https://bitbucket.org/stillzhl/manuals.git | HTML | 359 lines
11 <div class="up"><a href="book.ev.html">Ev</a></div> 12 <div class="home"><a href="index.html">PHP Manual</a></div> 13</div><hr /><div id="class.evstat" class="reference"> 56 <em class="emphasis">libev</em> 57 will also impose a minimum interval which is currently around 58 <strong><code>0.1</code></strong> 357 <div class="up"><a href="book.ev.html">Ev</a></div> 358 <div class="home"><a href="index.html">PHP Manual</a></div> 359</div></body></html>Part.php https://bitbucket.org/baruffaldi/cms-php-bfcms.git | PHP | 486 lines
72 /** 73 * current position of iterator 74 * @var int 110 */ 111 require_once 'Zend/Mail/Exception.php'; 112 throw new Zend_Mail_Exception('handler is not a valid mail handler'); 342 */ 343 require_once 'Zend/Mail/Exception.php'; 344 throw new Zend_Mail_Exception("no Header with Name $name found"); 381 public function getHeaderField($name, $wantedPart = 0, $firstName = 0) { 382 return Zend_Mime_Decode::splitHeaderField(current($this->getHeader($name, 'array')), $wantedPart, $firstName); 383 } 419 $current = $this->current(); 420 return $current && $current instanceof Zend_Mail_Part && $current->isMultipart(); 421 }walkthrough_test.php https://github.com/pauln/moodle.git | PHP | 309 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 30global $CFG; 31require_once(dirname(__FILE__) . '/../../../engine/lib.php'); 32require_once(dirname(__FILE__) . '/../../../engine/tests/helpers.php'); 48 // Check the initial state. 49 $this->check_current_state(question_state::$todo); 50 $this->check_output_contains_lang_string('notyetanswered', 'question'); 50 $this->check_output_contains_lang_string('notyetanswered', 'question'); 51 $this->check_current_mark(null); 52 $this->check_current_output($this->get_contains_question_text_expectation($tf), 62 63 $this->check_current_state(question_state::$complete); 64 $this->check_output_contains_lang_string('answersaved', 'question'); 64 $this->check_output_contains_lang_string('answersaved', 'question'); 65 $this->check_current_mark(null); 66 $this->check_current_output($this->get_contains_tf_true_radio_expectation(true, true),CombinationChart.html https://bitbucket.org/royrutto/climatepal.git | HTML | 266 lines
11 <tr> 12 <td><h2 class="pageHeader">FusionCharts PHP Class API > Creating Combination Chart </h2></td> 13 </tr> 39 <td width="35%" class="borderBottom"> 40 <div align="right"><strong>Current Month </strong></div> 41 </td> 115 <tr> 116 <td valign="top" class="codeBlock"><p><?php</p> 117 <p> <span class="codeComment"> # Include FusionCharts PHP Class</span><br /> 117 <p> <span class="codeComment"> # Include FusionCharts PHP Class</span><br /> 118 include('../Class/FusionCharts_Gen.php');</p> 119 <p> <span class="codeComment"> # Create Column 3D + Line Dual Y-Axis Combination Chart </span><br /> 159 <head><br /> 160 <title>First Chart Using FusionCharts PHP Class</title><br /> 161 <script language='javascript' src='../FusionCharts/FusionCharts.js'></script><br />class-wp-media-list-table.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 396 lines
174?> 175 <tr id='post-<?php echo $id; ?>' class='<?php echo trim( $alt . ' author-' . $post_owner . ' status-' . $post->post_status ); ?>' valign="top"> 176<?php 270?> 271 <td <?php echo $attributes ?>><?php echo has_excerpt() ? $post->post_excerpt : ''; ?></td> 272<?php 291?> 292 <td <?php echo $attributes ?>><?php echo $h_time ?></td> 293<?php 302 <td <?php echo $attributes ?>><strong> 303 <?php if( current_user_can( 'edit_post', $post->post_parent ) ) { ?> 304 <a href="<?php echo get_edit_post_link( $post->post_parent ); ?>"> 313?> 314 <td <?php echo $attributes ?>><?php _e( '(Unattached)' ); ?><br /> 315 <?php if( $user_can_edit ) {?>Cost_Utils.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 481 lines
1<?php 2/** 16 */ 17 protected $_current_original_cost_separator; 18 215 // return the non-numeric cost so that value is preserved 216 if ( 1 === count( $costs ) && ! is_numeric( current( $costs ) ) ) { 217 return current( $costs ); 392 $matches ); 393 $this->_current_original_cost_separator = empty( $matches[1][0] ) ? '.' : $matches[1][0]; 394 $matches[0] = empty( $matches[0] ) ? $matches[0] : array_map( array( 461 private function restore_original_decimal_separator( $value ) { 462 return str_replace( '.', $this->_current_original_cost_separator, $value ); 463 }simpletest.php https://github.com/orchestra-io/sample-openx.git | PHP | 433 lines
5 * @subpackage UnitTester 6 * @version $Id: simpletest.php 7321 2007-06-05 09:08:01Z andrew.hill@openads.org $ 7 */ 12 if (version_compare(phpversion(), '5') >= 0) { 13 require_once(dirname(__FILE__) . '/reflection_php5.php'); 14 } else { 14 } else { 15 require_once(dirname(__FILE__) . '/reflection_php4.php'); 16 } 205 * test run. Makes things like error queues 206 * available to PHP event handlers, and also 207 * gets around some nasty reference issues in 236 /** 237 * Accessor for currently running test case. 238 * @return SimpleTestCase Current test.admin.php https://bitbucket.org/viktorfabry/banditos.git | PHP | 503 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2/** 10 /** 11 * The current active section 12 *RedirectHttpConnection.java https://github.com/Enough-Software/glaze.git | Java | 555 lines
5 * Licensed under: 6 * 1. MIT: http://www.opensource.org/licenses/mit-license.php 7 * 2. Apache 2.0: http://opensource.org/licenses/apache2.0 53 private InputStream inputStream; 54 private HttpConnection currentHttpConnection; 55 private boolean limitContentLengthParams; 91 } 92 this.currentHttpConnection = (HttpConnection) Connector.open(url, 93 Connector.READ_WRITE, true); 107 108 HttpConnection tmpHttpConnection = this.currentHttpConnection; 109 InputStream tmpIn = null; 185 this.httpConnection = tmpHttpConnection; 186 this.currentHttpConnection = tmpHttpConnection; 187 this.inputStream = tmpIn;Conneg.java https://bitbucket.org/haris_peco/debrief.git | Java | 429 lines
12 * You can obtain a copy of the LGPL 2.1 license at 13 * http://www.opensource.org/licenses/lgpl-2.1.php 14 * 15 * You can obtain a copy of the CDDL 1.0 license at 16 * http://www.opensource.org/licenses/cddl1.php 17 * 18 * You can obtain a copy of the EPL 1.0 license at 19 * http://www.opensource.org/licenses/eclipse-1.0.php 20 * 271 float bestScore = -1.0F; 272 float current; 273 275 for (Variant variant : variants) { 276 current = scoreVariant(variant); 277postgresql.php https://gitlab.com/ricardosanchez/prueba | PHP | 641 lines
1<?php 2/** 301 /** 302 * Gets the current date and time. 303 * 307 */ 308 public function currentTimestamp() 309 { 595 /** 596 * Add to the current date and time in Postgresql. 597 * Usage:theme-install.php https://gitlab.com/mostafame/team_website | PHP | 329 lines
1<?php 2/** 9/** WordPress Administration Bootstrap */ 10require_once( dirname( __FILE__ ) . '/admin.php' ); 11require( ABSPATH . 'wp-admin/includes/theme-install.php' ); 14 15if ( ! current_user_can('install_themes') ) 16 wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) ); 18if ( is_multisite() && ! is_network_admin() ) { 19 wp_redirect( network_admin_url( 'theme-install.php' ) ); 20 exit(); 23$title = __( 'Add Themes' ); 24$parent_file = 'themes.php'; 25 41 'canInstall' => current_user_can( 'install_themes' ), 42 'installURI' => current_user_can( 'install_themes' ) ? self_admin_url( 'theme-install.php' ) : null, 43 'adminUrl' => parse_url( self_admin_url(), PHP_URL_PATH )SYLK.php https://gitlab.com/ptisky/API_prestashop | PHP | 450 lines
22 * @package PHPExcel_Reader 23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 42 * @package PHPExcel_Reader 43 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) 44 */ 44 */ 45class PHPExcel_Reader_SYLK extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader 46{ 213 /** 214 * Loads PHPExcel from file into PHPExcel instance 215 *init.php https://bitbucket.org/seyar/kinda.local.git | PHP | 580 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 3 * The CURL library provides an object oriented interface 4 * to the procedural CURL PHP functions, the class only 5 * allows for a single CURL session per instance - as curl_init 7 * 8 * $Id: Curl.php 16 2009-05-26 17:37:46Z samsoir $ 9 * 28 echo Kohana::debug( (string)$xml->city->country->name ); 29 echo Kohana::debug( $xml->current ); 30 */ 364 /** 365 * Execute the current CURL session with 366 * the provided options. Retained for backward compatibility 499 /** 500 * Caches the current result set, or loads a saved cache if key is supplied 501 *sfPatternRouting.class.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 530 lines
18 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 19 * @version SVN: $Id: sfPatternRouting.class.php 32845 2011-07-28 11:50:48Z fabien $ 20 */ 131 { 132 return null === $this->currentRouteName ? null : $this->currentInternalUri[$withRouteName ? 0 : 1]; 133 } 197 /** 198 * Adds a new route at the beginning of the current list of routes. 199 * 222 /** 223 * Adds a new route before a given one in the current list of routes. 224 * 265 * 266 * @return array current routes 267 */jqplot.pyramidAxisRenderer.min.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 57 lines
7 * Copyright (c) 2009-2011 Chris Leonello 8 * jqPlot is currently available for use in all personal or commercial projects 9 * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL 14 * know of any substantial use of jqPlot. You can reach the author at: 15 * chris at jqplot dot com or see http://www.jqplot.com/info.php . 16 * 17 * If you are feeling kind and generous, consider supporting the project by 18 * making a donation at: http://www.jqplot.com/donate.php . 19 * 32 * 33 * jsDate is currently available for use in all personal or commercial projects 34 * under both the MIT and GPL version 2.0 licenses. This means that you canindex.html https://github.com/sethladd/alohaonrails-site.git | HTML | 213 lines
13<link rel="alternate" type="application/atom+xml" title="Aloha On Rails - Hawaii Ruby on Rails Conference - Waikiki - Oct 5-6 2009 Atom Feed" href="http://www.alohaonrails.com/feed/atom/" /> 14<link rel="pingback" href="http://www.alohaonrails.com/xmlrpc.php" /> 15<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.alohaonrails.com/xmlrpc.php?rsd" /> 44<li class="page_item page-item-107"><a href="http://www.alohaonrails.com/media/" title="Media">Media</a></li> 45<li class="page_item page-item-30 current_page_parent"><a href="http://www.alohaonrails.com/blog/" title="News">News</a></li> 46<li class="page_item page-item-5"><a href="http://www.alohaonrails.com/sponsorship/" title="Sponsors">Sponsors</a></li> 112 113<form action="http://www.alohaonrails.com/wp-comments-post.php" method="post" id="commentform"> 114 169 <ul class='xoxo blogroll'> 170<li><a href="http://www.facebook.com/home.php#/event.php?eid=83813944777" title="Facebook Event for Aloha on Rails">Facebook Event</a></li> 171<li><a href="http://events.linkedin.com/Aloha-Rails-Hawaii-Ruby-Rails-Conference/pub/65989" title="LinkedIn event page">LinkedIn Event</a></li> 180<div><script type="text/javascript">var addthis_pub="sethladd";</script> 181<a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script></div> 182<!-- AddThis Button END -->DomainKeySigner.php https://gitlab.com/fiesta-framework/Mail | PHP | 512 lines
1<?php 2 182 /** 183 * For any bytes that are currently buffered inside the stream, force them 184 * off the buffer. 213 * If $is is not bound, no errors will be raised. 214 * If the stream currently has any buffered data it will be written to $is 215 * before unbinding occurs.anomaly.h https://bitbucket.org/abdulhadif/android_kernel_samsung_espresso10.git | C Header | 282 lines
9 * Licensed under the ADI BSD license. 10 * https://docs.blackfin.uclinux.org/doku.php?id=adi_bsd 11 */ 104#define ANOMALY_05000389 (_ANOMALY_BF527(< 2)) 105/* pTempCurrent Not Present in ADI_BOOT_DATA Structure */ 106#define ANOMALY_05000392 (_ANOMALY_BF527(< 2)) 194#define ANOMALY_05000457 (1) 195/* USB DMA Mode 1 Failure When Multiple USB DMA Channels Are Concurrently Enabled */ 196#define ANOMALY_05000460 (1)Route.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 413 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Route.php 23485 2010-12-10 04:03:18Z mjh_ca $ 20 */ 24 */ 25require_once 'Zend/Controller/Router/Route/Interface.php'; 26 29 */ 30require_once 'Zend/Controller/Router/Route/Module.php'; 31 34 */ 35require_once 'Zend/Controller/Dispatcher/Interface.php'; 36 39 */ 40require_once 'Zend/Controller/Request/Abstract.php'; 41core.php https://bitbucket.org/beneberle/recipes.beneberle.com.git | PHP | 440 lines
42 if ( !empty($submenu[$item[2]]) ) 43 $class[] = 'wp-has-current-submenu current wp-menu-open'; 44 else 67 $admin_is_parent = true; 68 $href = "admin.php?page={$submenu[$item[2]][0][2]}"; 69 } else { 71 } 72 } else if ( current_user_can($item[1]) ) { 73 $menu_hook = get_plugin_page_hook($item[2], 'admin.php'); 117 if ( $submenu_file == $sub_item[2] ) 118 $class[] = 'current'; 119 // If plugin_page is set the parent must either match the current page or not physically exist. 129 if ( ( ('index.php' != $sub_item[2]) && file_exists(WP_PLUGIN_DIR . "/{$sub_item[2]}") ) || ! empty($menu_hook) ) { 130 // If admin.php is the current page or if the parent exists as a file in the plugins or admin dir 131 $parent_exists = (!$admin_is_parent && file_exists(WP_PLUGIN_DIR . "/{$item[2]}") && !is_dir(WP_PLUGIN_DIR . "/{$item[2]}") ) || file_exists($item[2]);cron.php https://github.com/muskmelon/Greemo.git | PHP | 407 lines
1<?php 2/** 203 /* 204 * multiple processes on multiple web servers can run this code concurrently 205 * try to make this as atomic as possible by setting doing_cron switch 211 212 // don't run if another process is currently running it or more than once every 60 sec. 213 if ( $flag + 60 > $local_time ) 238 239 WP_DEBUG ? include_once( ABSPATH . 'wp-cron.php' ) : @include_once( ABSPATH . 'wp-cron.php' ); 240 return; 244 245 $cron_url = get_option( 'siteurl' ) . '/wp-cron.php?doing_wp_cron'; 246 wp_remote_post( $cron_url, array('timeout' => 0.01, 'blocking' => false, 'sslverify' => apply_filters('https_local_ssl_verify', true)) ); 257 258 // Prevent infinite loops caused by lack of wp-cron.php 259 if ( strpos($_SERVER['REQUEST_URI'], '/wp-cron.php') !== false || ( defined('DISABLE_WP_CRON') && DISABLE_WP_CRON ) )Request.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 446 lines
1<?php 2/** 23 */ 24require_once 'Zend/XmlRpc/Value.php'; 25 28 */ 29require_once 'Zend/XmlRpc/Fault.php'; 30 123 /** 124 * Retrieve current request encoding 125 * 363 /** 364 * Does the current request contain errors and should it return a fault 365 * response?Font.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 640 lines
33 * @package PHPExcel_Style 34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 155 } else { 156 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor); 157 } 185 /** 186 * Get the shared style component for the currently active cell in currently active sheet. 187 * Only used for style supervisor 206 /** 207 * Get the currently active cell coordinate in currently active sheet. 208 * Only used for supervisor 217 /** 218 * Get the currently active cell coordinate in currently active sheet. 219 * Only used for supervisorschedules_custom.php https://github.com/freedenizen/mythweb.git | PHP | 240 lines
62<?php } ?> 63 <li><input type="radio" class="radio" name="record" value="<?php echo rectype_always ?>" id="record_always"<?php 64 if ($schedule->type == rectype_always) echo ' CHECKED' ?> /> 81 <ul> 82 <li><input type="radio" class="radio" name="searchtype" value="<?php echo searchtype_title ?>" id="searchtype_title"<?php 83 if (empty($schedule->search) || $schedule->search == searchtype_title) echo ' CHECKED' 85 <label for="searchtype_title"><?php echo t('Title Search') ?></label></li> 86 <li><input type="radio" class="radio" name="searchtype" value="<?php echo searchtype_keyword ?>" id="searchtype_keyword"<?php 87 if ($schedule->search == searchtype_keyword) echo ' CHECKED' 89 <label for="searchtype_keyword"><?php echo t('Keyword Search') ?></label></li> 90 <li><input type="radio" class="radio" name="searchtype" value="<?php echo searchtype_people ?>" id="searchtype_people"<?php 91 if ($schedule->search == searchtype_people) echo ' CHECKED' 93 <label for="searchtype_people"><?php echo t('People Search') ?></label></li> 94 <li><input type="radio" class="radio" name="searchtype" value="<?php echo searchtype_power ?>" id="searchtype_power"<?php 95 if ($schedule->search == searchtype_power) echo ' CHECKED'configure.php https://github.com/jmarc06/yacs.git | PHP | 313 lines
27 * 28 * The file [code]parameters/collections.include.php.bak[/code] can be used to restore 29 * the active configuration before the last change. 58if(!Surfer::is_logged()) 59 Safe::redirect($context['url_to_home'].$context['url_to_root'].'users/login.php?url='.urlencode('collections/configure.php')); 60 68 69 // load current parameters, if any 70 Safe::load('parameters/collections.include.php'); 247 Safe::unlink($context['path_to_root'].'parameters/collections.include.php.bak'); 248 Safe::rename($context['path_to_root'].'parameters/collections.include.php', $context['path_to_root'].'parameters/collections.include.php.bak'); 249 250 // build the new configuration file 251 $content = '<?php'."\n" 252 .'// This file has been created by the configuration script collections/configure.php'."\n"Profiler.php https://github.com/daevid/MWFork.git | PHP | 493 lines
1<?php 2/** 212 /** 213 * Recursive function the format the current profiling array into a tree 214 * 258 $space = str_repeat(' ', $level); 259 # The ugly double sprintf is to work around a PHP bug, 260 # which has been fixed in recent releases. 475 /** 476 * Get the function name of the current profiling section 477 */ 477 */ 478 function getCurrentSection() { 479 $elt = end( $this->mWorkStack );top-posts.php https://gitlab.com/Gashler/sg | PHP | 435 lines
76 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title:', 'jetpack' ); ?></label> 77 <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /> 78 </p> 81 <label for="<?php echo $this->get_field_id( 'count' ); ?>"><?php esc_html_e( 'Maximum number of posts to show (no more than 10):', 'jetpack' ); ?></label> 82 <input id="<?php echo $this->get_field_id( 'count' ); ?>" name="<?php echo $this->get_field_name( 'count' ); ?>" type="number" value="<?php echo (int) $count; ?>" min="1" max="10" /> 83 </p> 98 <li><label> 99 <input value="<?php echo esc_attr( $type ); ?>" name="<?php echo $this->get_field_name( 'types' ); ?>[]" id="<?php echo $this->get_field_id( 'types' ); ?>-<?php echo $type; ?>" type="checkbox" <?php echo $checked; ?>> 100 <?php echo esc_html( $label ); ?> 109 <ul> 110 <li><label><input id="<?php echo $this->get_field_id( 'display' ); ?>-text" name="<?php echo $this->get_field_name( 'display' ); ?>" type="radio" value="text" <?php checked( 'text', $display ); ?> /> <?php esc_html_e( 'Text List', 'jetpack' ); ?></label></li> 111 <li><label><input id="<?php echo $this->get_field_id( 'display' ); ?>-list" name="<?php echo $this->get_field_name( 'display' ); ?>" type="radio" value="list" <?php checked( 'list', $display ); ?> /> <?php esc_html_e( 'Image List', 'jetpack' ); ?></label></li> 111 <li><label><input id="<?php echo $this->get_field_id( 'display' ); ?>-list" name="<?php echo $this->get_field_name( 'display' ); ?>" type="radio" value="list" <?php checked( 'list', $display ); ?> /> <?php esc_html_e( 'Image List', 'jetpack' ); ?></label></li> 112 <li><label><input id="<?php echo $this->get_field_id( 'display' ); ?>-grid" name="<?php echo $this->get_field_name( 'display' ); ?>" type="radio" value="grid" <?php checked( 'grid', $display ); ?> /> <?php esc_html_e( 'Image Grid', 'jetpack' ); ?></label></li> 113 </ul>InfGuidObject.py https://gitlab.com/envieidoc/Clover | Python | 353 lines
9# distribution. The full text of the license may be found at 10# http://opensource.org/licenses/bsd-license.php 11# 187 # 188 # Add Current help string 189 # 250 CommentsList = Item[1] 251 CurrentLineOfItem = Item[2] 252 Item = Item[0] 261 ST.ERR_INF_PARSER_INVALID_CNAME%(Item[0]), 262 File=CurrentLineOfItem[2], 263 Line=CurrentLineOfItem[1], 263 Line=CurrentLineOfItem[1], 264 ExtraData=CurrentLineOfItem[0]) 265 if (Item[0] != ''):categories.php https://github.com/cpucci/oscommerce.git | PHP | 336 lines
1<?php 2/* 44 public static function getAll($id = null) { 45 global $osC_Database, $osC_Language, $current_category_id; 46 47 if ( !is_numeric($id) ) { 48 if ( isset($current_category_id) && is_numeric($current_category_id) ) { 49 $id = $current_category_id; 75 public static function find($search, $id = null) { 76 global $osC_Database, $osC_Language, $current_category_id; 77 78 if ( !is_numeric($id) ) { 79 if ( isset($current_category_id) && is_numeric($current_category_id) ) { 80 $id = $current_category_id;File.php https://gitlab.com/rsilveira1987/Expresso | PHP | 465 lines
25 */ 26require_once 'Zend/CodeGenerator/Php/Abstract.php'; 27 30 */ 31require_once 'Zend/CodeGenerator/Php/Class.php'; 32 38 */ 39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract 40{ 86 if ($fileName == '') { 87 require_once 'Zend/CodeGenerator/Php/Exception.php'; 88 throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.'); 113 if ( ($realpath = Zend_Reflection_file::findRealpathInIncludePath($filePath)) === false) { 114 require_once 'Zend/CodeGenerator/Php/Exception.php'; 115 throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');array-init.h https://github.com/tstarling/hiphop-php.git | C Header | 448 lines
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 | 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 +----------------------------------------------------------------------+ 15*/ 16#ifndef incl_HPHP_ARRAY_INIT_H_ 17#define incl_HPHP_ARRAY_INIT_H_ 20#include "hphp/runtime/base/complex-types.h" 21#include "hphp/runtime/base/hphp-array.h" 22 22 23namespace HPHP { 24index.php https://gitlab.com/alexprowars/bitrix | PHP | 400 lines
20 21 include(__DIR__.'/version.php'); 22 57 { 58 // last installation date have to be current 59 $DATE_INSTALL_TABLES = date("d.m.Y H:i:s",time()); 151 // ip-to-country 152 require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/ip_tools.php"); 153 i2c_load_countries(); 234 { 235 include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/install/events/set_events.php"); 236 } 285 $APPLICATION->ThrowException(implode("<br>", $this->errors)); 286 $APPLICATION->IncludeAdminFile(GetMessage("STAT_INSTALL_TITLE"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/install/step2.php"); 287 }Route.php https://github.com/ayhanbaris/Zend-Framework-Skeleton.git | PHP | 413 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Route.php 23486 2010-12-10 04:05:30Z mjh_ca $ 20 */ 24 */ 25require_once 'Zend/Controller/Router/Route/Interface.php'; 26 29 */ 30require_once 'Zend/Controller/Router/Route/Module.php'; 31 34 */ 35require_once 'Zend/Controller/Dispatcher/Interface.php'; 36 39 */ 40require_once 'Zend/Controller/Request/Abstract.php'; 41parser.c https://github.com/CorCornelisse/libredis.git | C | 406 lines
4* This module is part of Libredis (http://github.com/toymachine/libredis) and is released under 5* the New BSD License: http://www.opensource.org/licenses/bsd-license.php 6* 24 int cs; //state 25 int bulk_count; //number of chars to read for current binary safe bulk-value 26 int multibulk_count; //the number of bulk replies to read for the current multibulk replyUploadWizard.config.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 398 lines
1<?php 2/** 3 * Upload Wizard Configuration 4 * Do not modify this file, instead use localsettings.php and set: 5 * $wgUploadWizardConfig[ 'name'] = 'value'; 14 15 // The default api url is for the current wiki ( can override at run time ) 16 'apiUrl' => $wgServer . $wgScriptPath . '/api.php', 335 // XXX this is horribly confusing -- some file restrictions are client side, others are server side 336 // the filename prefix blacklist is at least server side -- all this should be replaced with PHP regex config 337 // or actually, in an ideal world, we'd have some way to reliably detect gibberish, rather than trying to 386 // TranslateWiki page for help with translations 387 'translateHelp' => 'http://translatewiki.net/w/i.php?title=Special:Translate&group=ext-uploadwizard', 388SMW_DV_WikiPage.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 381 lines
1<?php 2/** 157 /** 158 * @note The getLong... functions of this class always hide the fragment. Fragments are currently 159 * not stored, and hence should not be shown in the Factbox (where the getLongWikiText method is used).Store.php https://gitlab.com/ealexis.t/trends | PHP | 707 lines
1<?php 2 470 /** 471 * Reflash a subset of the current flash data. 472 *Url.php https://gitlab.com/x33n/respond | PHP | 548 lines
1<?php 2 313 /** 314 * Add a relative path to the currently set path 315 *Pager.php https://github.com/cawago/ci_campusync_auth.git | PHP | 576 lines
1<?php 2/* 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @subpackage Pager 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @version $Revision$ 29 * @version $Revision$ 30 * @link www.phpdoctrine.org 31 * @since 0.9 60 /** 61 * @var integer $page Current page 62 */ 81 * (which does the Doctrine_Query class creation). 82 * @param int $page Current page 83 * @param int $maxPerPage Maximum itens per pageRelationship.php https://github.com/ksecor/civicrm.git | PHP | 285 lines
1<?php 2 35 36require_once 'CRM/Contact/Page/View.php'; 37 61 { 62 require_once 'CRM/Core/DAO.php'; 63 $viewRelationship = CRM_Contact_BAO_Relationship::getRelationship( $this->_contactId, null, null, null, $this->_id ); 102 103 $currentRelationships = CRM_Contact_BAO_Relationship::getRelationship($this->_contactId, 104 CRM_Contact_BAO_Relationship::CURRENT , 112 113 $this->assign( 'currentRelationships', $currentRelationships ); 114 // to show the 'Current Relationships' title and links only when viewed 146 //create an activity for case role removal.CRM-4480 147 require_once "CRM/Case/BAO/Case.php"; 148 CRM_Case_BAO_Case::createCaseRoleActivity( $this->_caseId, $this->_id );walkthrough_test.php https://github.com/andyjdavis/moodle.git | PHP | 309 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 30global $CFG; 31require_once(__DIR__ . '/../../../engine/lib.php'); 32require_once(__DIR__ . '/../../../engine/tests/helpers.php'); 48 // Check the initial state. 49 $this->check_current_state(question_state::$todo); 50 $this->check_output_contains_lang_string('notyetanswered', 'question'); 50 $this->check_output_contains_lang_string('notyetanswered', 'question'); 51 $this->check_current_mark(null); 52 $this->check_current_output($this->get_contains_question_text_expectation($tf), 62 63 $this->check_current_state(question_state::$complete); 64 $this->check_output_contains_lang_string('answersaved', 'question'); 64 $this->check_output_contains_lang_string('answersaved', 'question'); 65 $this->check_current_mark(null); 66 $this->check_current_output($this->get_contains_tf_true_radio_expectation(true, true),VarCloner.php https://gitlab.com/Sigpot/AirSpot | PHP | 324 lines
1<?php 2 27 $useExt = $this->useExt; 28 $i = 0; // Current iteration position in $queue 29 $len = 1; // Length of $queue 44 // or null if the original value is used directly 45 $zval = array( // Main properties of the current value 46 'type' => null, 60 for ($i = 0; $i < $len; ++$i) { 61 $indexed = true; // Whether the currently iterated array is numerically indexed or not 62 $j = -1; // Position in the currently iterated array 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 }Command.php https://github.com/nicnocquee/PPION-Website.git | PHP | 512 lines
1<?php 2 74 /** 75 * Configures the current command. 76 */ 81 /** 82 * Executes the current command. 83 * 158 * 159 * @return Command The current instance 160 */ 191 * 192 * @return Command The current instance 193 */ 224 * 225 * @return Command The current instance 226 */Publisher.php https://github.com/grjones/qframe.git | PHP | 417 lines
1<?php 2/** 23 */ 24require_once 'Zend/Feed/Pubsubhubbub.php'; 25 91 } elseif (!is_array($config)) { 92 require_once 'Zend/Feed/Pubsubhubbub/Exception.php'; 93 throw new Zend_Feed_Pubsubhubbub_Exception('Array or Zend_Config object' 116 if (empty($url) || !is_string($url) || !Zend_Uri::check($url)) { 117 require_once 'Zend/Feed/Pubsubhubbub/Exception.php'; 118 throw new Zend_Feed_Pubsubhubbub_Exception('Invalid parameter "url"' 156 /** 157 * Return an array of unique Hub Server URLs currently available 158 * 175 if (empty($url) || !is_string($url) || !Zend_Uri::check($url)) { 176 require_once 'Zend/Feed/Pubsubhubbub/Exception.php'; 177 throw new Zend_Feed_Pubsubhubbub_Exception('Invalid parameter "url"'abstract-wc-payment-gateway.php https://gitlab.com/campus-academy/krowkaramel | PHP | 562 lines
1<?php 2/** 161 if ( is_user_logged_in() && $this->supports( 'tokenization' ) ) { 162 $this->tokens = WC_Payment_Tokens::get_customer_tokens( get_current_user_id(), $this->id ); 163 } 190 echo '<h2>' . esc_html( $this->get_method_title() ); 191 wc_back_link( __( 'Return to payments', 'woocommerce' ), admin_url( 'admin.php?page=wc-settings&tab=checkout' ) ); 192 echo '</h2>'; 341 /** 342 * Set as current gateway. 343 * 343 * 344 * Set this as the current gateway. 345 */ 345 */ 346 public function set_current() { 347 $this->chosen = true;gma.c https://gitlab.com/envieidoc/Clover | C | 371 lines
2 Original patch by Nawcom 3 http://forum.voodooprojects.org/index.php/topic,1029.0.html 4*/ 39 { 0x00, 0x00, 0x00, 0x00 }, //12 "AAPL01,Inverter" 40 { 0x08, 0x52, 0x00, 0x00 }, //13 "AAPL01,InverterCurrent" 41 { 0x00, 0x00, 0x00, 0x00 }, //14 "AAPL01,LinkFormat" 346 devprop_add_value(device, "AAPL01,Inverter", GMAX3100_vals[12], 4); 347 devprop_add_value(device, "AAPL01,InverterCurrent", GMAX3100_vals[13], 4); 348 // devprop_add_value(device, "AAPL01,InverterCurrency", GMAX3100_vals[15], 4);index.php https://github.com/chadisel/Janrain-Sample-Code.git | PHP | 467 lines
13} 14if (file_exists('../library/engage.lib.php')) { 15 require_once('../library/engage.lib.php'); 333 <label for="app_domain_input">Application Domain</label> 334 <input id="app_domain_input" type="text" name="app_dom" value="<?php echo htmlentities($actions['auth_info']['app_dom']); ?>" /> 335 <input id="app_domain_submit" type="submit" name="phpapi" value="submit" /> 347 Click <a class="rpxnow" onclick="return false;" 348 href="<?php echo htmlentities($actions['auth_info']['app_dom']); ?>openid/v2/signin?token_url=<?php echo urlencode($token_url); ?>"> Sign In </a><br /> 349 This will fill in the token.<br /> 366 This is the point where your code would begin.<br /> 367 <a href="<?php echo htmlentities($current_url); ?>">Start over</a> 368 </div> 437 <div id="the_parse_results" class="results"><pre> 438<?php echo htmlentities($the_parse_result); ?> 439Dispatcher.cpp https://github.com/simplecoin/simplecoin.git | C++ | 419 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 47 reinterpret_cast<LPOVERLAPPED>(remoteSpawnOverlapped)->hEvent = NULL; 48 threadId = GetCurrentThreadId(); 49 49 50 mainContext.fiber = GetCurrentFiber(); 51 mainContext.interrupted = false; 58 contextGroup.lastWaiter = nullptr; 59 currentContext = &mainContext; 60 firstResumingContext = nullptr; 78Dispatcher::~Dispatcher() { 79 assert(GetCurrentThreadId() == threadId); 80 for (NativeContext* context = contextGroup.firstContext; context != nullptr; context = context->groupNext) {Filesystem.php https://gitlab.com/mdabutaleb/bitm-laravel-1 | PHP | 543 lines
1<?php 2 466 foreach ($items as $item) { 467 // As we spin through items, we will check to see if the current file is actually 468 // a directory or a file. When it is actually a directory we will need to call 479 480 // If the current items is just a regular file, we will just copy this to the new 481 // location and keep looping. If for some reason the copy fails we'll bail outwp-seo-main.php https://gitlab.com/ngochuynh1991/cuacuon | PHP | 471 lines
1<?php 2/** 44 $classes = array( 45 'wp_list_table' => ABSPATH . 'wp-admin/includes/class-wp-list-table.php', 46 'walker_category' => ABSPATH . 'wp-includes/category-template.php', 46 'walker_category' => ABSPATH . 'wp-includes/category-template.php', 47 'pclzip' => ABSPATH . 'wp-admin/includes/class-pclzip.php', 48 ); 57 58if ( file_exists( WPSEO_PATH . '/vendor/autoload_52.php' ) ) { 59 require WPSEO_PATH . '/vendor/autoload_52.php'; 124 125 restore_current_blog(); 126 } 133function _wpseo_activate() { 134 require_once( WPSEO_PATH . 'inc/wpseo-functions.php' ); 135CCEventDispatcher.h https://gitlab.com/gasabr/flappy-test | C Header | 350 lines
72 */ 73 void addEventListenerWithSceneGraphPriority(EventListener* listener, Node* node); 74 221 inline std::vector<EventListener*>* getFixedPriorityListeners() const { return _fixedListeners; }; 222 inline std::vector<EventListener*>* getSceneGraphPriorityListeners() const { return _sceneGraphListeners; }; 223 inline ssize_t getGt0Index() const { return _gt0Index; }; 231 /** Adds an event listener with item 232 * @note if it is dispatching event, the added operation will be delayed to the end of current dispatch 233 * @see forceAddEventListener 255 /** Sorts the listeners of specified type by scene graph priority */ 256 void sortEventListenersOfSceneGraphPriority(const EventListener::ListenerID& listenerID, Node* rootNode); 257 284 * to 3D world space is different by different camera. 285 * When listener process touch event, can get current camera by Camera::getVisitingCamera(). 286 */config.php https://gitlab.com/RikaPM/manik | PHP | 364 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 25| 26| Typically this will be your index.php file, unless you've renamed it to 27| something else. If you are using mod_rewrite to remove the page set this 30*/ 31$config['index_page'] = 'index.php'; 32 151| invoke your controllers and its functions: 152| example.com/index.php?c=controller&m=function 153| 162$config['function_trigger'] = 'm'; 163$config['directory_trigger'] = 'd'; // experimental not currently in use 164 175| 0 = Disables logging, Error logging TURNED OFF 176| 1 = Error Messages (including PHP errors) 177| 2 = Debug Messagesheader.tmpl.php https://github.com/harriswong/ATutor.git | PHP | 237 lines
87 <?php if (get_num_new_messages()): ?> 88 <strong><a href="<?php echo $this->base_path; ?>inbox/index.php"><?php echo _AT('inbox'); ?> - <?php echo get_num_new_messages(); ?></a></strong> | 89 <?php else: ?> 102 <a href="<?php echo $this->base_path; ?>browse.php"><?php echo _AT('browse_courses'); ?></a> | 103 <a href="<?php echo $this->base_path; ?>login.php?course=<?php echo $_SESSION['course_id']; ?>"><?php echo _AT('login'); ?></a> | 104 <a href="<?php echo $this->base_path; ?>search.php"><?php echo _AT('search'); ?></a> | 160 <?php else: ?> 161 <li><a href="<?php echo $page['url']; ?>" <?php echo $accesskey_text; ?> title="<?php echo $page['title'] . $accesskey_title; ?>"><?php echo $page['title']; ?></a></li> 162 <?php endif; ?> 222 if ($this->sequence_links['previous']): ?> 223 <a href="<?php echo $this->sequence_links['previous']['url']; ?>" title="<?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?> Alt+," accesskey=","><img src="<?php echo $this->img; ?>previous.gif" border="0" alt="<?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?> Alt+," class="img-size-ascdesc" /></a> 224 <?php endif; 225 if ($this->sequence_links['next']): ?> 226 <a href="<?php echo $this->sequence_links['next']['url']; ?>" title="<?php echo _AT('next_topic').': '.$this->sequence_links['next']['title']; ?> Alt+." accesskey="."><img src="<?php echo $this->img; ?>next.gif" border="0" alt="<?php echo _AT('next_topic').': '.$this->sequence_links['next']['title']; ?> Alt+." class="img-size-ascdesc" /></a> 227 <?php endif; ?>sfException.class.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 446 lines
1<?php 2 20 * @author Sean Kerr <sean@code-box.org> 21 * @version SVN: $Id: sfException.class.php 32641 2011-06-11 13:39:35Z fabien $ 22 */ 90 { 91 // log all exceptions in php log 92 error_log($exception->getMessage()); 93 94 // clean current output buffer 95 while (ob_get_level()) 196 // when using CLI, we force the format to be TXT 197 if (0 == strncasecmp(PHP_SAPI, 'cli', 3)) 198 { 261 262 $template = sprintf('%s.%s.php', $debug ? 'exception' : 'error', $format); 263 foreach ($templatePaths as $path)form.js https://gitlab.com/jslee1/PrestaShop | JavaScript | 505 lines
33 'ajax-tab.php', 34 {controller:'AdminCartRules',token:currentToken,newProductRuleGroup:1,product_rule_group_id:product_rule_groups_counter}, 35 function(content) { 51 $.get( 52 'ajax-tab.php', 53 {controller:'AdminCartRules',token:currentToken,newProductRule:1,product_rule_type:$('#product_rule_type_' + product_rule_group_id).val(),product_rule_group_id:product_rule_group_id,product_rule_id:product_rule_counters[product_rule_group_id]}, 319 .autocomplete( 320 'ajax-tab.php', { 321 minChars: 2, 337 controller: 'AdminCartRules', 338 token: currentToken, 339 customerFilter: 1 384 // Define a custom regional settings in order to use PrestaShop translation tools 385 currentText: currentText, 386 closeText:closeText,SYLK.php https://gitlab.com/marchelo8622/pluslawip | PHP | 450 lines
22 * @package PHPExcel_Reader 23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 42 * @package PHPExcel_Reader 43 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 44 */ 44 */ 45class PHPExcel_Reader_SYLK extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader 46{ 213 /** 214 * Loads PHPExcel from file into PHPExcel instance 215 *Classes.php https://github.com/ckdimka/core.git | PHP | 547 lines
1<?php 2// vim: set ts=4 sw=4 sts=4 et: 11 * It is also available through the world-wide-web at this URL: 12 * http://opensource.org/licenses/osl-3.0.php 13 * If you did not receive a copy of the license and are unable to 21 * @copyright Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved 22 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 23 * @link http://www.litecommerce.com/ 333 $this->getReflection()->docComment = $this->isLowLevelNode() 334 ? '/**' . PHP_EOL . ' * MOVED' . PHP_EOL . ' */' 335 : null; 357 { 358 return '<?php' . PHP_EOL . PHP_EOL 359 . (($namespace = $this->getActualNamespace()) ? ('namespace ' . $namespace . ';' . PHP_EOL . PHP_EOL) : '') 365 . (($interfaces = $this->getInterfaces()) ? (' implements \\' . implode(', \\', $interfaces)) : '') 366 . PHP_EOL . '{' . PHP_EOL . '}'; 367 }lib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 422 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 24 25require_once($CFG->libdir.'/gradelib.php'); 26 85 /** 86 * Current page (for paging). 87 * @var int $page 99 /** 100 * The current group being displayed. 101 * @var int $currentgroup 102 */ 103 public $currentgroup; 104 105 /** 106 * Current course group mode 107 * @var int $groupmodeAction.php https://github.com/Riges/KawaiViewModel.git | PHP | 404 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Action.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 24/** Internally used classes */ 25require_once 'Zend/Pdf/Element.php'; 26require_once 'Zend/Pdf/Element/Array.php'; 29/** Zend_Pdf_Target */ 30require_once 'Zend/Pdf/Target.php'; 31 73 { 74 require_once 'Zend/Pdf/Element.php'; 75 if ($dictionary->getType() != Zend_Pdf_Element::TYPE_DICTIONARY) { 75 if ($dictionary->getType() != Zend_Pdf_Element::TYPE_DICTIONARY) { 76 require_once 'Zend/Pdf/Exception.php'; 77 throw new Zend_Pdf_Exception('$dictionary mast be a direct or an indirect dictionary object.');Abstract.php https://bitbucket.org/murtuza88/carolina-home-stone.git | PHP | 456 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Abstract.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25require_once 'Zend/Validate/Interface.php'; 26 151 if (!isset($this->_messageTemplates[$messageKey])) { 152 require_once 'Zend/Validate/Exception.php'; 153 throw new Zend_Validate_Exception("No message template exists for key '$messageKey'"); 193 */ 194 require_once 'Zend/Validate/Exception.php'; 195 throw new Zend_Validate_Exception("No property exists by the name '$property'"); 261 $keys = array_keys($this->_messageTemplates); 262 $messageKey = current($keys); 263 }service.py https://github.com/darknao/script.xbmc.subtitles.git | Python | 251 lines
24 25TV_SEARCH_RESULTS_PATTERN = "<td valign=\"top\"><a href=\"viewseries.php\?id=(\d+)" 26SEARCH_RESULTS_PATTERN = "<td valign=\"top\"><a href=\"view.php\?id=(\d+)" 26SEARCH_RESULTS_PATTERN = "<td valign=\"top\"><a href=\"view.php\?id=(\d+)" 27SUBTITLE_LIST_PATTERN = "downloadsubtitle\.php\?id=(?P<fid>\d*).*?subt_lang.*?title=\"(?P<language>.*?)\".*?subtitle_title.*?title=\"(?P<title>.*?)\"" 28TV_SEASON_PATTERN = "seasonlink_(?P<slink>\d+).*?>(?P<snum>\d+)</a>" 61# The function receives a subtitles page id number, a list of user selected 62# languages and the current subtitles list and adds all found subtitles matching 63# the language selection to the subtitles list. 65 # Retrieve the subtitles page (html) 66 subtitlePage = getURL(BASE_URL + "view.php?id=" + subtitlePageID + "&m=subtitles#") 67 82 # Retrieve the subtitles page (html) 83 subtitlePage = getURL(BASE_URL + "viewseries.php?id=" + subtitlePageID + "&m=subtitles#") 84 # Retrieve the requested seasonMessageChecks.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 413 lines
1<?php 2/** 55 $file = dirname( __FILE__ ) . '/check-blacklist.php'; 56 $list = PHPVariableLoader::loadVariableFromPHPFile( $file, 'checkBlacklist' ); 57 $keys = array( 'group', 'check', 'subcheck', 'code', 'message' ); 158 /** 159 * Filters warnings defined in check-blacklist.php. 160 * @param $warningsArray \array List of warnings produces by checkMessage(). 204 /** 205 * Converts the special params to something nice. Currently useless, but 206 * useful if in the future blacklist can work with parameter level too.pipeline.html https://github.com/backr3ap/Rhynn.git | HTML | 380 lines
7 <title>DataTables example</title> 8 <style type="text/css" title="currentStyle"> 9 @import "../../media/css/demo_page.css"; 121 "bServerSide": true, 122 "sAjaxSource": "../examples_support/server_processing.php", 123 "fnServerData": fnDataTablesPipeline 276 "bServerSide": true, 277 "sAjaxSource": "../examples_support/server_processing.php", 278 "fnServerData": fnDataTablesPipelineHTML.php https://gitlab.com/dmsapiens/physicians | PHP | 478 lines
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 44 */ 45class PHPExcel_Reader_HTML extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader 46{ 409 /** 410 * Loads PHPExcel from file into PHPExcel instance 411 * 412 * @param string $pFilename 413 * @param PHPExcel $objPHPExcel 414 * @return PHPExcel 416 */ 417 public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) 418 {form.tpl https://bitbucket.org/enurkov/prestashop.git | Smarty Template | 418 lines
8* It is also available through the world-wide-web at this URL: 9* http://opensource.org/licenses/afl-3.0.php 10* If you did not receive a copy of the license and are unable to 21* @copyright 2007-2012 PrestaShop SA 22* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 23* International Registered Trademark & Property of PrestaShop SA 179 <li class="tab-row"> 180 <a class="nav-profile {if $profile.id_profile == $current_profile}selected{/if}" id="profile-{$profile.id_profile}" href="{$current}&token={$token}&id_profile={$profile.id_profile}">{$profile.name}</a> 181 </li> 185 186<form id="{$table}_form" class="defaultForm" action="{$current}&{$submit_action}=1&token={$token}" method="post" enctype="multipart/form-data"> 187 {if $form_id} 199 200 <div class="profile-{$profile.id_profile} tab-profile" style="display:{if $profile.id_profile == $current_profile}block{else}none{/if}"> 201Collection.php https://bitbucket.org/acidel/buykoala.git | PHP | 461 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 */ 34 35require_once('Varien/Data/Collection.php'); 36require_once('Varien/Directory/Factory.php'); 36require_once('Varien/Directory/Factory.php'); 37require_once('Varien/Directory/IFactory.php'); 38 181 if (!$iter->isDot() && $curr[0]!='.'){ 182 $this->addItem(Varien_Directory_Factory::getFactory($iter->current(),$this->getRecursion(),$this->getRecursionLevel())); 183 }File.php https://gitlab.com/rsilveira1987/Expresso | PHP | 473 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: File.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 21 */ 32 /** 33 * Reads $length number of bytes at the current position in the 34 * file and advances the file pointer. 47 * SEEK_SET - Set position equal to offset bytes. 48 * SEEK_CUR - Set position to current location plus offset. 49 * SEEK_END - Set position to end-of-file plus offset. (To move to 100 /** 101 * Reads a byte from the current position in the file 102 * and advances the file pointer. 121 /** 122 * Read num bytes from the current position in the file 123 * and advances the file pointer.eventapi.html.md https://gitlab.com/ggsaavedra/PredictionIO | Markdown | 412 lines
11data store of Event Server) through [PredictionIO's Storage 12API](http://docs.prediction.io/api/current/index.html#io.prediction.data.storage.package). 13 109 </div> 110 <div data-tab="PHP SDK" data-lang="php"> 111```php 111```php 112<?php 113 require_once("vendor/autoload.php"); 204 </div> 205 <div data-tab="PHP SDK" data-lang="php"> 206```php 206```php 207<?php 208 require_once("vendor/autoload.php");WizardController.php https://github.com/rgranadino/magento-mirror.git | PHP | 464 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 */ 157 /** 158 * Change current locale 159 */Url.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 445 lines
1<?php 2/** 11 * 12 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 13 */ 18 * 19 * @bug Currently, this constant is slightly misleading: it says "form key", but in fact it is used by URLs, too 20 */ 99 * 100 * @SuppressWarnings(PHPMD.ExcessiveParameterList) 101 */HeaderFooter.php https://gitlab.com/ilyales/vigma | PHP | 494 lines
2/** 3 * PHPExcel_Worksheet_HeaderFooter 4 * 22 * @package PHPExcel_Worksheet 23 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 305 * @param string $pValue 306 * @return PHPExcel_Worksheet_HeaderFooter 307 */ 327 * @param boolean $pValue 328 * @return PHPExcel_Worksheet_HeaderFooter 329 */ 480 /** 481 * Implement PHP __clone to create a deep clone, not just a shallow copy. 482 */arr.php https://gitlab.com/ken3/bluSky | PHP | 602 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 212 213 // Set current $array to inner-most array path 214 while (count($keys) > 1) 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. 403 * Merges one or more arrays recursively and preserves all keys. 404 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)! 405 *catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
1<?php 2/** 91 // first, try to find in cookies 92 $recommendationCookie = Context::getCurrent()->getRequest()->getCookie(static::getCookieLogName()); 93 147 'bx_user_id' => static::getBxUserId(), 148 'domain' => Context::getCurrent()->getServer()->getHttpHost(), 149 'recommendation' => $recommendationId, 229 $data['paid'] = '0'; 230 $data['domain'] = Context::getCurrent()->getServer()->getHttpHost(); 231 $data['date'] = date(DATE_ISO8601); 299 $data['paid'] = '1'; 300 $data['domain'] = Context::getCurrent()->getServer()->getHttpHost(); 301 $data['date'] = date(DATE_ISO8601);MaildirFolderTest.php https://github.com/mfairchild365/zf2.git | PHP | 444 lines
1<?php 2/** 36 */ 37class MaildirFolderTest extends \PHPUnit_Framework_TestCase 38{ 184 185 $this->assertEquals($mail->getCurrentFolder(), 'subfolder.test'); 186 } 203 try { 204 // explicit call of __toString() needed for PHP < 5.2 205 $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder'); 235 236 // explicit call of __toString() needed for PHP < 5.2 237 $found_folders[$folder->__toString()] = $localName; 257 258 // explicit call of __toString() needed for PHP < 5.2 259 $found_folders[$folder->__toString()] = $localName;provider.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 286 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 167 168 // Reference to the course seen in the last iteration of the loop. By comparing this with the current record, and 169 // because we know the results are ordered, we know when we've moved to the PayPal transactions for a new courseedit_form.php https://github.com/pauln/moodle.git | PHP | 294 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 17/** 18 * Defines the base class form used by blocks/edit.php to edit block instance configuration. 19 * 31 32require_once($CFG->libdir . '/formslib.php'); 33require_once($CFG->libdir . '/blocklib.php'); 35/** 36 * The base class form used by blocks/edit.php to edit block instance configuration. 37 * 68 69 // If the current weight of the block is out-of-range, add that option in. 70 $blockweight = $this->block->instance->weight; 140 } else if ($parentcontext->contextlevel == CONTEXT_COURSE) { 141 // 0 means display on current context only, not child contexts 142 // but if course managers select mod-* as pagetype patterns, block system will overwrite this optionfile.kvdriver.php https://github.com/foxmask/Booster.git | PHP | 472 lines
1<?php 2/** 196 * @param string $key the key of the value to modify 197 * @param string $value the value to append to the current key value 198 * @return boolean false if failure 213 * @param string $key the key of the value to modify 214 * @param string $value the value to prepend to the current key value 215 * @return boolean false if failure 315 return false; 316 if (version_compare(PHP_VERSION, '5.3.0') >= 0) 317 clearstatcache(false, $filePath); 452 } else { 453 if (version_compare(PHP_VERSION, '5.3.0') >= 0) 454 clearstatcache(false, $f);Abstract.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 456 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Abstract.php 22473 2010-06-20 08:30:04Z thomas $ 20 */ 24 */ 25require_once 'Zend/Validate/Interface.php'; 26 151 if (!isset($this->_messageTemplates[$messageKey])) { 152 require_once 'Zend/Validate/Exception.php'; 153 throw new Zend_Validate_Exception("No message template exists for key '$messageKey'"); 193 */ 194 require_once 'Zend/Validate/Exception.php'; 195 throw new Zend_Validate_Exception("No property exists by the name '$property'"); 261 $keys = array_keys($this->_messageTemplates); 262 $messageKey = current($keys); 263 }uiwizard.class.inc.php https://github.com/adiakin/itop.git | PHP | 330 lines
1<?php 2// Copyright (C) 2010 Combodo SARL 55 { 56 $this->m_oPage->add("<form method=\"post\" enctype=\"multipart/form-data\" action=\"".utils::GetAbsoluteUrlAppRoot()."pages/UI.php\">\n"); 57 } 85 $sFieldFlag = (($iOptions & (OPT_ATT_MANDATORY | OPT_ATT_MUSTCHANGE)) || (!$oAttDef->IsNullAllowed()) )? ' <span class="hilite">*</span>' : ''; 86 $oDefaultValuesSet = $oAttDef->GetDefaultValue(/* $oObject->ToArgs() */); // @@@ TO DO: get the object's current value if the object exists 87 $sHTMLValue = cmdbAbstractObject::GetFormElementForField($this->m_oPage, $this->m_sClass, $sAttCode, $oAttDef, $oDefaultValuesSet, '', "att_$iMaxInputId", '', $iOptions, $aArgs); 143 { 144 $sScript .= "\toWizardHelper.UpdateCurrentValue('$sAttCode');\n"; 145 } 159 * Compute the order of the fields & pages in the wizard 160 * @param $oPage iTopWebPage The current page (used to display error messages) 161 * @param $sClass string Name of the class 252 { 253 // position the current field after the ones it depends on 254 $iMaxPos = max($iMaxPos, 1+$aOrder[$sDependentAttCode]);SharedTempStoreTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 440 lines
387 $current_user = $this->createMock(AccountProxyInterface::class); 388 $container->set('current_user', $current_user); 389 \Drupal::setContainer($container); 394 $current_user_property->setAccessible(TRUE); 395 $this->assertSame($current_user, $current_user_property->getValue($store)); 396 410 $current_user = $this->createMock(AccountProxyInterface::class); 411 $container->set('current_user', $current_user); 412 \Drupal::setContainer($container); 416 417 $current_user_property = $reflection_class->getProperty('currentUser'); 418 $current_user_property->setAccessible(TRUE); 418 $current_user_property->setAccessible(TRUE); 419 $this->assertSame($current_user, $current_user_property->getValue($store)); 420class-admin.php https://gitlab.com/bhargavi_dcw/dflocal | PHP | 513 lines
1<?php 2 49 // update opt-in 50 $this->update_optin = new MC4WP_Update_Optin( '4.0.0', $this->plugin_file, MC4WP_PLUGIN_DIR . 'includes/views/parts/update-4.x-notice.php' ); 51 } 61 62 add_action( 'current_screen', array( $this, 'customize_admin_texts' ) ); 63 add_action( 'wp_dashboard_setup', array( $this, 'register_dashboard_widgets' ) ); 215 216 $current = mc4wp_get_options(); 217 217 218 // merge with current settings to allow passing partial arrays to this method 219 $settings = array_merge( $current, $settings ); 221 // toggle usage tracking 222 if( $settings['allow_usage_tracking'] !== $current['allow_usage_tracking'] ) { 223 MC4WP_Usage_Tracking::instance()->toggle( $settings['allow_usage_tracking'] );Range.php https://gitlab.com/Ltaimao/wecenter | PHP | 377 lines
24/** Zend_Search_Lucene_Search_Query */ 25//require_once 'Zend/Search/Lucene/Search/Query.php'; 26 161 162 //require_once 'Zend/Search/Lucene.php'; 163 $maxTerms = Zend_Search_Lucene::getTermsPerQueryLimit(); 166 167 //require_once 'Zend/Search/Lucene/Index/Term.php'; 168 if ($this->_lowerTerm !== null) { 199 200 if ($this->_inclusive && $index->currentTerm() == $upperTerm) { 201 // Include upper term into result 205 // Walk up to the end of field data 206 while ($index->currentTerm() !== null && $index->currentTerm()->field == $field) { 207 $this->_matches[] = $index->currentTerm();Range.php https://github.com/grjones/qframe.git | PHP | 377 lines
19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Range.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 90 if ($lowerTerm === null && $upperTerm === null) { 91 require_once 'Zend/Search/Lucene/Exception.php'; 92 throw new Zend_Search_Lucene_Exception('At least one term must be non-null'); 161 162 require_once 'Zend/Search/Lucene.php'; 163 $maxTerms = Zend_Search_Lucene::getTermsPerQueryLimit(); 192 if ($maxTerms != 0 && count($this->_matches) > $maxTerms) { 193 require_once 'Zend/Search/Lucene/Exception.php'; 194 throw new Zend_Search_Lucene_Exception('Terms per query limit is reached.'); 205 // Walk up to the end of field data 206 while ($index->currentTerm() !== null && $index->currentTerm()->field == $field) { 207 $this->_matches[] = $index->currentTerm();bcm_umi_nand.c https://bitbucket.org/abdulhadif/android_kernel_samsung_espresso10.git | C | 579 lines
6* under the terms of the GNU General Public License version 2, available at 7* http://www.broadcom.com/licenses/GPLv2.php (the "GPL"). 8* 78/* 79 * The current NAND data space goes from 0x80001900 to 0x80001FFF, 80 * which is only 0x700 = 1792 bytes long. This is too small for 2K, 4K pageContributionPage.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 96 { 97 // current contribution page id 98 $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', 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,XmlFileLoader.php https://bitbucket.org/AdriVanHoudt/school.git | PHP | 418 lines
1<?php 2 87 88 $this->container->getParameterBag()->add($xml->parameters->getArgumentsAsPhp('parameter')); 89 } 103 foreach ($imports as $import) { 104 $this->setCurrentDir(dirname($file)); 105 $this->import((string) $import['resource'], null, (Boolean) $import->getAttributeAsPhp('ignore-errors'), $file); 137 if (isset($service['public'])) { 138 $public = $service->getAttributeAsPhp('public'); 139 } 153 $method = 'set'.str_replace('-', '', $key); 154 $definition->$method((string) $service->getAttributeAsPhp($key)); 155 } 161 162 $definition->setArguments($service->getArgumentsAsPhp('argument')); 163 $definition->setProperties($service->getArgumentsAsPhp('property'));IncidentTable.php https://bitbucket.org/openfisma-ondemand/openfisma.git | PHP | 396 lines
1<?php 2/** 35 /** 36 * Returns a query which matches all of the current user's viewable incidents 37 * 199 ), 200 'currentWorkflowName' => array( 201 'initiallyVisible' => false, 339 { 340 if (CurrentUser::getInstance()->acl()->hasPrivilegeForClass('read', 'Incident')) { 341 // If the user has the privilege to view all incidents, then no ACL is required. 369 { 370 $currentUser = CurrentUser::getInstance(); 371 374 ->from('IrIncidentUser INDEXBY incidentId') 375 ->where('userId = ?', $currentUser->id) 376 ->setHydrationMode(Doctrine::HYDRATE_ARRAY);class-wcs-query.php https://gitlab.com/remyvianne/krowkaramel | PHP | 389 lines
1<?php 2/** 169 * 170 * @param int $current_page 171 */ 171 */ 172 public function endpoint_content( $current_page = 1 ) { 173 173 174 $current_page = empty( $current_page ) ? 1 : absint( $current_page ); 175 175 176 wc_get_template( 'myaccount/subscriptions.php', array( 'current_page' => $current_page ), '', WC_Subscriptions_Core_Plugin::instance()->get_subscriptions_core_directory( 'templates/' ) ); 177 } 179 /** 180 * Check if the current query is for a type we want to override. 181 *feed.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 546 lines
1<?php 2/** 104/** 105 * Retrieve the current post title for the feed. 106 * 111 * 112 * @return string Current post title. 113 */ 125 * @since 0.71 126 * @uses get_the_title_rss() Used to retrieve current post title. 127 */ 192/** 193 * Outputs the link to the comments for the current post in an xml safe way 194 * 202/** 203 * Display the feed GUID for the current comment. 204 *ir-builder.h https://gitlab.com/iranjith4/hhvm | C Header | 375 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 16 17#ifndef incl_HPHP_VM_IRBUILDER_H_ 18#define incl_HPHP_VM_IRBUILDER_H_class-wp-customize-panel.php https://gitlab.com/Gashler/sg | PHP | 482 lines
1<?php 2/** 135 * whether the section is active (such as it relates to the URL 136 * currently being previewed). 137 */ 170 /** 171 * Check whether panel is active to current Customizer preview. 172 * 175 * 176 * @return bool Whether the panel is active to the current preview. 177 */ 234 final public function check_capabilities() { 235 if ( $this->capability && ! call_user_func_array( 'current_user_can', (array) $this->capability ) ) { 236 return false; 238 239 if ( $this->theme_supports && ! call_user_func_array( 'current_theme_supports', (array) $this->theme_supports ) ) { 240 return false;user-deletions.inc.php https://gitlab.com/Gashler/sg | PHP | 223 lines
1<?php 2/** 45 static $processed = array(); // No duplicate processing. 46 global $pagenow; // Need this to detect the current admin page. 47 51 52 if($user_id && is_multisite() && empty($processed[$user_id]) && ($s2says || (is_blog_admin() && $pagenow === 'users.php'))) 53 {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 25 26 $this->data["self_project"] = is_self_project( $this->dataproj[0]["user_id"], $this->data['current_user_id'] ); 27 41 42 if( !is_in_admin_review( $this->dataproj[0]["user_id"], $admin_review_ids, $this->data['current_user_id']) ) { 43 show_404();Escaper.php https://gitlab.com/yousafsyed/easternglamor | PHP | 386 lines
1<?php 2/** 34 /** 35 * Current encoding for escaping. If not UTF-8, we convert strings from this encoding 36 * pre-escaping and back to this encoding post-escaping. 43 * Holds the value of the special flags passed as second parameter to 44 * htmlspecialchars(). We modify these for PHP 5.4 to take advantage 45 * of the new ENT_SUBSTITUTE flag for correctly dealing with invalid 91 * Constructor: Single parameter allows setting of global encoding for use by 92 * the current object. If PHP 5.4 is detected, additional ENT_SUBSTITUTE flag 93 * is set for htmlspecialchars() calls. 195 * an entire URI - only a subcomponent being inserted. The function is a simple proxy 196 * to rawurlencode() which now implements RFC 3986 since PHP 5.3 completely. 197 * 246 /** 247 * Check if the current character to escape has a name entity we should 248 * replace it with while grabbing the integer value of the character.WizardController.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 464 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 */ 157 /** 158 * Change current locale 159 */after-the-deadline.php https://gitlab.com/thisishayat/itv-2016 | PHP | 334 lines
81function AtD_addbuttons() { 82 /* Don't bother doing this stuff if the current user lacks permissions */ 83 if ( ! AtD_is_allowed() ) 189 /* this is not an AtD/jQuery setting but I'm putting it in AtD to make it easy for the non-viz plugin to find it */ 190 $admin_ajax_url = admin_url( 'admin-ajax.php?action=atd_ignore&_wpnonce=' . wp_create_nonce( 'atd_ignore' ) . '&phrase=' ); 191 echo "AtD.rpc_ignore = " . json_encode( esc_url_raw( $admin_ajax_url ) ) . ";\n"; 267 268 if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) 269 return; 287 288 $pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php', 'admin.php', 'profile.php' ); 289 290 if ( in_array( $pagenow, $pages ) ) { 291 if ( isset( $current_screen->post_type ) && $current_screen->post_type ) { 292 return post_type_supports( $current_screen->post_type, 'editor' );Curl.php https://bitbucket.org/blackriver/openx.git | PHP | 334 lines
1<?php 2//echo "<pre>"; 27 28require_once 'Zend/Uri/Http.php'; 29require_once 'Zend/Http/Client/Adapter/Interface.php'; 29require_once 'Zend/Http/Client/Adapter/Interface.php'; 30require_once 'Zend/Http/Client/Adapter/Exception.php'; 31 33 * An adapter class for Zend_Http_Client based on the curl extension. 34 * Curl requires libcurl. See for full requirements the PHP manual: http://php.net/curl 35 * 72 /** 73 * Adapter constructor, currently empty. Config is set using setConfig() 74 * @throws Zend_Http_Client_Adapter_Exception 248 * Make sure POSTFIELDS is set after $curlMethod is set: 249 * @link http://de2.php.net/manual/en/function.curl-setopt.php#81161 250 */class-wp-terms-list-table.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 454 lines
1<?php 2/** 41 function ajax_user_can() { 42 return current_user_can( get_taxonomy( $this->screen->taxonomy )->cap->manage_terms ); 43 } 111 112 function current_action() { 113 if ( isset( $_REQUEST['action'] ) && isset( $_REQUEST['delete_tags'] ) && ( 'delete' == $_REQUEST['action'] || 'delete' == $_REQUEST['action2'] ) ) 115 116 return parent::current_action(); 117 } 257 258 if ( current_user_can( get_taxonomy( $this->screen->taxonomy )->cap->delete_terms ) && $tag->term_id != $default_term ) 259 return '<label class="screen-reader-text" for="cb-select-' . $tag->term_id . '">' . sprintf( __( 'Select %s' ), $tag->name ) . '</label>' 276 * The default output may include padding due to the term's 277 * current level in the term hierarchy. 278 *component.php https://gitlab.com/alexprowars/bitrix | PHP | 391 lines
85 86 $arResult["TITLE"] = GetMessage("IBL_NEWS_CAL_M_".date("n", mktime(0, 0, 0, $currentMonth, 1, $currentYear)))." ".$currentYear; 87 110 ">=".$arParams["DATE_FIELD"] => date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,$currentMonth,1,$currentYear)), 111 "<".$arParams["DATE_FIELD"] => date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,$currentMonth+1,1,$currentYear)), 112 "IBLOCK_ID" => $arParams["IBLOCK_ID"] 145 "ACTIVE" => "Y", 146 "<".$arParams["DATE_FIELD"] => date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,$currentMonth,1,$currentYear)), 147 "IBLOCK_ID" => $arParams["IBLOCK_ID"], 169 "ACTIVE" => "Y", 170 ">=".$arParams["DATE_FIELD"] => date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,1,1,$currentYear+1)), 171 "IBLOCK_ID" => $arParams["IBLOCK_ID"], 184 "ACTIVE" => "Y", 185 ">=".$arParams["DATE_FIELD"] => date($DB->DateFormatToPHP(CLang::GetDateFormat("SHORT")), mktime(0,0,0,$currentMonth+1,1,$currentYear)), 186 "IBLOCK_ID" => $arParams["IBLOCK_ID"]Thumbnail.php https://gitlab.com/manuvelasco/agostoliquida | PHP | 333 lines
1<?php 2/* 60 61 if (!$this->_currentFolder->checkAcl(CKFINDER_CONNECTOR_ACL_FILE_VIEW)) { 62 $this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_UNAUTHORIZED); 69 $fileName = CKFinder_Connector_Utils_FileSystem::convertToFilesystemEncoding($_GET["FileName"]); 70 $_resourceTypeInfo = $this->_currentFolder->getResourceTypeConfig(); 71 75 76 $sourceFilePath = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_currentFolder->getServerPath(), $fileName); 77 81 82 $thumbFilePath = CKFinder_Connector_Utils_FileSystem::combinePaths($this->_currentFolder->getThumbsServerPath(), $fileName); 83 243 { 244 $bg = imagecolorallocatealpha($oThumbImage, 255, 255, 255, 127); // (PHP 4 >= 4.3.2, PHP 5) 245 imagefill($oThumbImage, 0, 0 , $bg);CommandTest.php https://gitlab.com/ealexis.t/trends | PHP | 350 lines
1<?php 2 25 26class CommandTest extends \PHPUnit_Framework_TestCase 27{ 226 227 $this->assertEquals('interact called'.PHP_EOL.'execute called'.PHP_EOL, $tester->getDisplay(), '->run() calls the interact() method if the input is interactive'); 228 } 298 $tester->execute(array()); 299 $this->assertEquals('interact called'.PHP_EOL.'from the code...'.PHP_EOL, $tester->getDisplay()); 300 } 323 $tester->execute(array()); 324 $this->assertEquals('interact called'.PHP_EOL.$expected.PHP_EOL, $tester->getDisplay()); 325 } 333 $tester->execute(array()); 334 $this->assertEquals('interact called'.PHP_EOL.'from the code...'.PHP_EOL, $tester->getDisplay()); 335 }_customized_data.tpl https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | Smarty Template | 238 lines
8* It is also available through the world-wide-web at this URL: 9* http://opensource.org/licenses/afl-3.0.php 10* If you did not receive a copy of the license and are unable to 21* @copyright 2007-2016 PrestaShop SA 22* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 23* International Registered Trademark & Property of PrestaShop SA 77 {if ($order->hasBeenDelivered() || $order->hasProductReturned())}<td class="productQuantity text-center">{$product['customizationQuantityReturned']}</td>{/if} 78 {if $stock_management}<td class="text-center">{$product['current_stock']}</td>{/if} 79 <td class="total_product"> 85 </td> 86 <td class="cancelQuantity standard_refund_fields current-edit" style="display:none" colspan="2"> 87 89 <td class="edit_product_fields" colspan="2" style="display:none"> </td> 90 <td class="partial_refund_fields current-edit" style="text-align:left;display:none;"></td> 91 {if ($can_edit && !$order->hasBeenDelivered())}admin.php https://bitbucket.org/seyar/kinda.local.git | PHP | 438 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2 10 public $admin_controller = 'main'; 11 public $lang = 1; // Current Language 12 public $interface_lang = 1; // admin interface Language 363 * 364 * @param bool $return_current [optional] 365 * @return mixed 366 */ 367 public function acl_actions($return_current = FALSE) 368 { 368 { 369 if ($return_current) 370 {user_import.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 438 lines
195 default : 196 $current_tag = $data; 197 } 206 global $users; 207 global $current_value; 208 switch ($data) { 218 default : 219 $user[$data] = $current_value; 220 break; 411<b>LastName</b>;<b>FirstName</b>;<b>Email</b>;UserName;Password;AuthSource;OfficialCode;PhoneNumber;Status;<font style="color:red;"><?php if (count($list) > 0) echo implode(';', $list).';'; ?></font>Courses; 412<b>xxx</b>;<b>xxx</b>;<b>xxx</b>;xxx;xxx;<?php echo implode('/', $defined_auth_sources); ?>;xxx;xxx;user/teacher/drh;<font style="color:red;"><?php if (count($list_reponse) > 0) echo implode(';', $list_reponse).';'; ?></font>xxx1|xxx2|xxx3;<br /> 413</pre> 426 <Password>xxx</Password> 427 <AuthSource><?php echo implode('/', $defined_auth_sources); ?></AuthSource> 428 <b><Email>xxx</Email></b>ezclusterfilehandlerinterface.php https://github.com/Yannix/ezpublish.git | PHP | 401 lines
1<?php 2/** 137 * disable this check. 138 * @param int $curtime The current time to check against. 139 * @param int $ttl Number of seconds the data can live, set to null to 145 /** 146 * Calculates if the current file data is expired or not. 147 * 148 * @param int $expiry Time when file is to be expired, a value of -1 will disable this check. 149 * @param int $curtime The current time to check against. 150 * @param int $ttl Number of seconds the data can live, set to null to disable TTL. 326 * 327 * Used in bin/php/clusterize.php. 328 * 368 * If the handler does require clusterizing, it will be required/possible to 369 * use bin/php/clusterize.php to get data in/out of the cluster when setting 370 * it up or disabling it.Profiler.php https://github.com/kervin/kyzstudio.git | PHP | 471 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Profiler.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 143 /** 144 * Get the current state of enable. If True is returned, 145 * the profiler is enabled. 280 */ 281 #require_once 'Zend/Db/Profiler/Query.php'; 282 $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType); 308 */ 309 #require_once 'Zend/Db/Profiler/Exception.php'; 310 throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'."); 319 */ 320 #require_once 'Zend/Db/Profiler/Exception.php'; 321 throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended.");File.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 473 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 32 /** 33 * Reads $length number of bytes at the current position in the 34 * file and advances the file pointer. 47 * SEEK_SET - Set position equal to offset bytes. 48 * SEEK_CUR - Set position to current location plus offset. 49 * SEEK_END - Set position to end-of-file plus offset. (To move to 100 /** 101 * Reads a byte from the current position in the file 102 * and advances the file pointer. 121 /** 122 * Read num bytes from the current position in the file 123 * and advances the file pointer.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 338 /** 339 * ClearRules() clears the rules currently in the inflector 340 * 463 if ($this->_throwTargetExceptionsOn && (preg_match('#(?='.$pregQuotedTargetReplacementIdentifier.'[A-Za-z]{1})#', $inflectedTarget) == true)) { 464 // require_once 'Zend/Filter/Exception.php'; 465 throw new Zend_Filter_Exception('A replacement identifier ' . $this->_targetReplacementIdentifier . ' was found inside the inflected target, perhaps a rule was not satisfied with a target source? Unsatisfied inflected target: ' . $inflectedTarget);