100+ results results for 'php isset' (922 ms)
1<?php 2 63 64 if (isset($parts['scheme'])) { 65 $scheme = $parts['scheme']; 68 69 if (isset($parts['host'])) { 70 $url .= '//'; 70 $url .= '//'; 71 if (isset($parts['user'])) { 72 $url .= $parts['user']; 72 $url .= $parts['user']; 73 if (isset($parts['pass'])) { 74 $url .= ':' . $parts['pass']; 81 // Only include the port if it is not the default port of the scheme 82 if (isset($parts['port']) 83 && !(($scheme == 'http' && $parts['port'] == 80) || ($scheme == 'https' && $parts['port'] == 443))rewrite.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 425 lines
91 // If the album is not set before get it from the wp_query ($_GET) 92 if ( !isset ($args['album'] ) ) 93 $album = get_query_var('album'); 120 // 2. Album, pid or tags 121 if (isset ($args['album']) && ($args['gallery'] == false) ) 122 $url .= '/' . $args['album']; 122 $url .= '/' . $args['album']; 123 elseif (isset ($args['album']) && isset ($args['gallery']) ) 124 $url .= '/' . $args['album'] . '/' . $args['gallery']; 125 126 if (isset ($args['gallerytag'])) 127 $url .= '/tags/' . $args['gallerytag']; 132 // 3. Navigation 133 if (isset ($args['nggpage']) && ($args['nggpage']) ) 134 $url .= '/page-' . $args['nggpage'];ez_sql_core.php https://github.com/LamCiuLoeng/BookShare.git | PHP | 552 lines
1<?php 2 131 // If there is a value return it else return null 132 return (isset($values[$x]) && $values[$x]!=='')?$values[$x]:null; 133 }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 ) { 82 83 if ( isset( $instance['title'] ) ) { 84 /** This filter is documented in core/src/wp-includes/default-widgets.php */ 111 112 $type = ( isset( $instance['type'] ) ? $instance['type'] : '' ); 113 $widget_id = ( isset( $instance['widget-id'] ) ? $instance['widget-id'] : '' ); 145 146 /** This action is documented in modules/widgets/social-media-icons.php */ 147 do_action( 'jetpack_bump_stats_extras', 'widget', 'twitter_timeline' );catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
1<?php 2/** 97 98 if (is_array($recommendations) && isset($recommendations[$realProductId])) 99 { 455 { 456 if (!isset($iblockGroup[$item['IBLOCK_ID']])) 457 $iblockGroup[$item['IBLOCK_ID']] = array(); 515 $bestList[$offer['ID']]['PARENT_IBLOCK'] = $iblockSku[$iblockId]['PRODUCT_IBLOCK_ID']; 516 if (!isset($offerLink[$productId])) 517 $offerLink[$productId] = array(); 547 { 548 if (!isset($dublicate[$id])) 549 $finalIds[] = $id; 553 { 554 if (!isset($dublicate[$id])) 555 $finalIds[] = $info['PARENT_ID'];VarCloner.php https://gitlab.com/nzqadri/bejeep | PHP | 324 lines
1<?php 2 86 unset($stub); // independent from the original structure 87 if (isset($hardRefs[$zval['zval_hash']])) { 88 $vals[$k] = $useExt ? ($v = $hardRefs[$zval['zval_hash']]) : ($refs[$k] = $v); 99 case 'string': 100 if (isset($v[0]) && !preg_match('//u', $v)) { 101 $stub = new Stub(); 109 } 110 } elseif (0 <= $maxString && isset($v[1 + ($maxString >> 2)]) && 0 < $cut = mb_strlen($v, 'UTF-8') - $maxString) { 111 $stub = new Stub(); 133 // Happens with copies of $GLOBALS 134 if (isset($v[$gid])) { 135 unset($v[$gid]); 309 foreach (debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS) as $frame) { 310 if (isset($frame['function'][0]) && !isset($frame['class']) && 'o' === $frame['function'][0] && in_array($frame['function'], $obFuncs)) { 311 $frame['line'] = 0;MaildirFolderTest.php https://github.com/mfairchild365/zf2.git | PHP | 444 lines
1<?php 2/** 36 */ 37class MaildirFolderTest extends \PHPUnit_Framework_TestCase 38{ 203 try { 204 // explicit call of __toString() needed for PHP < 5.2 205 $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder'); 231 foreach ($iterator as $localName => $folder) { 232 if (!isset($search_folders[$folder->getGlobalName()])) { 233 continue; 235 236 // explicit call of __toString() needed for PHP < 5.2 237 $found_folders[$folder->__toString()] = $localName; 253 foreach ($iterator as $localName => $folder) { 254 if (!isset($search_folders[$folder->getGlobalName()])) { 255 continue;arr.php https://bitbucket.org/i1598/caiyun_stat.git | PHP | 602 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 135 136 if (isset($array[$key])) 137 { 223 224 if ( ! isset($array[$key])) 225 { 276 { 277 return isset($array[$key]) ? $array[$key] : $default; 278 } 296 { 297 $found[$key] = isset($array[$key]) ? $array[$key] : $default; 298 } 320 { 321 if (isset($row[$key])) 322 {Store.php https://gitlab.com/ntphuc/BackendFeedy | PHP | 707 lines
1<?php 2 287 288 if (isset($this->bagData[$key])) { 289 $this->put($key, $this->bagData[$key]);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 ); 130 $this->_values = array( ); 131 if ( isset( $this->_id ) && $this->_id ) { 132 $params = array('id' => $this->_id ); 212 $this->_values = array( ); 213 if ( isset( $this->_id ) && $this->_id ) { 214 $params = array('id' => $this->_id );Descarte.php https://gitlab.com/SFMSP/Hagape | PHP | 346 lines
1<?php 2 195 foreach ($data['id-produto'] as $key => $item) { 196 if (!isset($itensDesc[$item])) { 197 $itemDescarte['qtd'] = $data['qtd-produto'][$key];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 159 160 if( isset($this->data["admin_reviews"]) ){ 161 foreach($this->data["admin_reviews"] as $k => $v) { 171 172 if( isset($this->data["project_parent"][0]["project_id"]) && $this->data["project_parent"][0]["project_id"]){ 173 $projid = $this->data["project_parent"][0]["project_id"]; 403 404 if( isset($insert_version) && $insert_version ) { 405 $att = array( 414 // insert data ke table rb_attachment_versions, data : attachment_id, version_id 415 if( isset($insert_attachment) && $insert_attachment ){ 416 $attachvers = array(class-wp-terms-list-table.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 454 lines
112 function current_action() { 113 if ( isset( $_REQUEST['action'] ) && isset( $_REQUEST['delete_tags'] ) && ( 'delete' == $_REQUEST['action'] || 'delete' == $_REQUEST['action2'] ) ) 114 return 'bulk-delete'; 165 166 if ( is_taxonomy_hierarchical( $taxonomy ) && !isset( $orderby ) ) { 167 // We'll need the full set of terms then. 407 <form method="get" action=""><table style="display: none"><tbody id="inlineedit"> 408 <tr id="inline-edit" class="inline-edit-row" style="display: none"><td colspan="<?php echo $this->get_column_count(); ?>" class="colspanchange"> 409 413 <label> 414 <span class="title"><?php _ex( 'Name', 'term name' ); ?></span> 415 <span class="input-text-wrap"><input type="text" name="name" class="ptitle" value="" /></span> 416 </label> 417 <?php if ( !global_terms_enabled() ) { ?> 418 <label>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 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 */ 140 $countries[$row['id_country']]['states'][] = $row; 175 176 if (isset($result['id_country'])) { 177 return (int)$result['id_country']; 187 188 if (isset(self::$_idZones[$id_country])) { 189 return (int)self::$_idZones[$id_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 310 $spec = $this->_normalizeSpec($spec); 311 if (isset($this->_rules[$spec])) { 312 return $this->_rules[$spec]; 329 $spec = $this->_normalizeSpec($spec); 330 if (isset($this->_rules[$spec]) && is_array($this->_rules[$spec])) { 331 if (isset($this->_rules[$spec][$index])) {File.php https://github.com/Riges/KawaiViewModel.git | PHP | 468 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.');Batch.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 514 lines
1<?php 2 162 public static function getReferenceColumns() { 163 if (!isset(Civi::$statics[__CLASS__]['links'])) { 164 Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__); 178 public static function &fields() { 179 if (!isset(Civi::$statics[__CLASS__]['fields'])) { 180 Civi::$statics[__CLASS__]['fields'] = [ 443 public static function &fieldKeys() { 444 if (!isset(Civi::$statics[__CLASS__]['fieldKeys'])) { 445 Civi::$statics[__CLASS__]['fieldKeys'] = array_flip(CRM_Utils_Array::collect('name', self::fields()));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 310 $spec = $this->_normalizeSpec($spec); 311 if (isset($this->_rules[$spec])) { 312 return $this->_rules[$spec]; 329 $spec = $this->_normalizeSpec($spec); 330 if (isset($this->_rules[$spec]) && is_array($this->_rules[$spec])) { 331 if (isset($this->_rules[$spec][$index])) {CakeRoute.php https://bitbucket.org/luobailiang/cake.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) 256 if (!empty($this->options['named'])) { 257 $greedy = isset($this->options['greedyNamed']) && $this->options['greedyNamed'] === true; 258 foreach ((array)$this->options['named'] as $key => $val) { 272 $separatorIsPresent = strpos($param, $namedConfig['separator']) !== false; 273 if ((!isset($this->options['named']) || !empty($this->options['named'])) && $separatorIsPresent) { 274 list($key, $val) = explode($namedConfig['separator'], $param, 2);pearcmd.php https://github.com/ianbogda/FileZ.git | PHP | 445 lines
58// remove this next part when we stop supporting that crap-ass PHP 4.2 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'; 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().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);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/ 136 $first = $prefix[0]; 137 if (!isset($this->prefixesPsr0[$first][$prefix])) { 138 $this->prefixesPsr0[$first][$prefix] = (array) $paths; 179 } 180 } elseif (!isset($this->prefixDirsPsr4[$prefix])) { 181 // Register directories for a new namespace. 363 // class map lookup 364 if (isset($this->classMap[$class])) { 365 return $this->classMap[$class]; 366 } 367 if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { 368 return false;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 137 $path = $cookie->getPath(); 138 if (!isset( $this->cookies[$domain] )) $this->cookies[$domain] = array(); 139 if (!isset( $this->cookies[$domain][$path] )) $this->cookies[$domain][$path] = array();edit.php https://github.com/thisduck/wordpress.git | PHP | 294 lines
25// Handle bulk actions 26if ( isset($_REQUEST['doaction']) || isset($_REQUEST['doaction2']) || isset($_REQUEST['delete_all']) || isset($_REQUEST['delete_all2']) || isset($_REQUEST['bulk_edit']) ) { 27 check_admin_referer('bulk-posts'); 36 $doaction = 'delete'; 37 } elseif ( ( $_REQUEST['action'] != -1 || $_REQUEST['action2'] != -1 ) && ( isset($_REQUEST['post']) || isset($_REQUEST['ids']) ) ) { 38 $post_ids = isset($_REQUEST['post']) ? array_map( 'intval', (array) $_REQUEST['post'] ) : explode(',', $_REQUEST['ids']); 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']); 174 175<?php if ( isset($_REQUEST['locked']) || isset($_REQUEST['skipped']) || isset($_REQUEST['updated']) || isset($_REQUEST['deleted']) || isset($_REQUEST['trashed']) || isset($_REQUEST['untrashed']) ) { ?> 176<div id="message" class="updated"><p>editor.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 321 lines
1<?php 2 53 public static function getInstance($config = array()) { 54 if (!isset(self::$instance)) { 55 self::$instance = new WFEditor($config); 74 public function getProfile($plugin = null) { 75 if (!isset(self::$profile)) { 76 $mainframe = JFactory::getApplication(); 99 $component = WFExtensionHelper::getComponent($component_id); 100 $option = isset($component->element) ? $component->element : $component->option; 101 } 107 // load mobile detect class 108 require_once(dirname(__FILE__) . '/mobile.php'); 109 } 151 // set device default as 'desktop,tablet,mobile' 152 if (!isset($item->device) || empty($item->device)) { 153 $item->device = 'desktop,tablet,phone';view.html.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 496 lines
1<?php 2/** 330 331 if (!isset($contactUser->jcfields)) 332 { 360 } 361 elseif (isset($active->query['layout'])) 362 {File.php https://gitlab.com/devtoannh/cafe | PHP | 468 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.');index.php https://gitlab.com/Nilufarjahan/LabExam8 | PHP | 455 lines
29 30if(isset($_REQUEST['ItemsPerPage'])) $itemsPerPage = $_REQUEST['ItemsPerPage']; 31else if(isset($_SESSION['ItemsPerPage'])) $itemsPerPage = $_SESSION['ItemsPerPage']; 225 <li> 226 <a href="../Hobbies/create.php"> 227 <span class="title">Add New</span> 328 <td><?php echo $oneData->birthday?></td> 329 <?php echo "<td> <a href=\"edits.php?id=$oneData->id\"class=\"btn btn-info\" role=\"button\">Edit</a> ";?> 330 <?php echo " <a href=\"delete.php?id=$oneData->id\"class=\"btn btn-danger\" role=\"button\">Delete</a> ";?> 331 332 <?php echo " <a href=\"trash.php?id=$oneData->id\"class=\"btn btn-danger\" role=\"button\">Trash</a> </td> ";?> 333 </tr> 365 366 <?php 367class-wp-filesystem-base.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 321 lines
1<?php 2/** 151 152 if ( isset($this->cache[ $folder ] ) ) 153 return $this->cache[ $folder ]; 196 // If it reaches the end, and still cant find it, it'll return false for the entire function. 197 if ( isset($files[ $key ]) ){ 198 //Lets try that folder: 207 //Only check this as a last resort, to prevent locating the incorrect install. All above proceeedures will fail quickly if this is the right branch to take. 208 if (isset( $files[ $last_path ] ) ) { 209 if ( $this->verbose ) 222 * 223 * From the PHP documentation page for fileperms() 224 * 279 * 280 * @link http://docs.php.net/manual/en/function.chmod.php#49614 281 * @since 2.5class-wp-image-editor.php https://gitlab.com/Gashler/dp | PHP | 403 lines
1<?php 2/** 264 265 if( isset( $info['extension'] ) ) 266 $ext = $info['extension'];EditView.php https://github.com/lukio/sugarcrm_dev.git | PHP | 349 lines
1<?php 2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 45 46require_once('modules/Campaigns/utils.php'); 47 50$inboundEmail=true; 51if (!isset($_REQUEST['campaign_id']) || empty($_REQUEST['campaign_id'])) { 52 $has_campaign=false; 53} 54if (!isset($_REQUEST['inboundEmail']) || empty($_REQUEST['inboundEmail'])) { 55 $inboundEmail=false; 58 59if(isset($_REQUEST['record'])) { 60 $focus->retrieve($_REQUEST['record']); 63$old_id = ''; 64if(isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { 65 $old_id = $focus->id; // for attachments down below17_3.tpl https://github.com/TravianWar/Travianx.git | Smarty Template | 256 lines
161</script> 162<script language="JavaScript">var summe=<?php echo floor($village->awood+$village->acrop+$village->airon+$village->aclay); ?>;var max123=<?php echo $village->maxstore; ?>;var max4=<?php echo $village->maxcrop; ?>;</script> 163 <form method="post" name="snd" action="build.php"> 201 <td class="sel"> 202 <input class="text" onkeyup="calculateRest();" name="m2[]" size="5" maxlength="7" <?php if(isset($_GET['r1'])) { echo "value=\"".$_GET['r1']."\""; } ?>/> 203 <input type="hidden" name="m1[]" value="<?php echo floor($village->awood); ?>" /> 220 221 <td class="sum">Sum: <span id="newsum"><?php if(isset($_GET['r1']) && isset($_GET['r2']) && isset($_GET['r3']) && isset($_GET['r4'])) { echo $_GET['r1']+$_GET['r2']+$_GET['r3']+$_GET['r4']; } else { echo 0; } ?></span></td> 222 </tr> 241 <td class="sum">Rest: <span id="remain"> 242 <?php if(isset($_GET['r1']) && isset($_GET['r2']) && isset($_GET['r3']) && isset($_GET['r4'])) { 243 echo floor($village->awood+$village->acrop+$village->airon+$village->aclay)-($_GET['r1']+$_GET['r2']+$_GET['r3']+$_GET['r4']); 248 <p id="submitButton"> 249 <?php if($session->userinfo['gold'] > 3) { ?><a href="javascript:document.snd.submit();">Trade resources at (step 2 of 2)</a> <span class="none">(Costs: <img src="img/x.gif" class="gold_g" alt="Gold" title="Gold" /><b>3</b>)</span><?php } else { echo"<span class='none'>Trade resources at (step 2 of 2)</span> (Costs: <img src='img/x.gif' class='gold' alt='Gold' title='Gold' /><b>3</b>)"; }?> </p> 250 <p id="submitText"></p>shell.test.php https://github.com/cgajardo/repositorium.git | PHP | 501 lines
8 * 9 * CakePHP : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2006-2010, Cake Software Foundation, Inc. 15 * @copyright Copyright 2006-2010, Cake Software Foundation, Inc. 16 * @link http://cakephp.org CakePHP Project 17 * @package cake 18 * @subpackage cake.tests.cases.console.libs 19 * @since CakePHP v 1.2.0.7726 20 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 338 // $this->assertFalse($this->Shell->loadTasks()); 339 // $this->assertFalse(isset($this->Shell->TestIDontExist)); 340 370 371 $path = $expected = DS . 'tmp' . DS . 'ab' . DS . 'index.php'; 372 $this->assertEqual($this->Shell->shortPath($path), $expected);json.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 275 lines
1<?php 2/** 2/** 3* REST Application Programming Interface PHP class for the WordPress plugin NextGEN Gallery 4* Should emulate some kind of Flickr JSON callback : ?callback=json&format=json&api_key=1234567890&method=search&term=myterm 8* 9* @require PHP 5.2.0 or higher 10* 57 if ( !function_exists('json_encode') ) 58 wp_die('Json_encode not available. You need to use PHP 5.2'); 59 60 // Read the parameter on init 61 $this->format = isset($_GET['format']) ? strtolower( $_GET['format'] ) : false; 62 $this->api_key = isset($_GET['api_key'])? $_GET['api_key'] : false; 62 $this->api_key = isset($_GET['api_key'])? $_GET['api_key'] : false; 63 $this->method = isset($_GET['method']) ? strtolower( $_GET['method'] ) : false; 64 $this->term = isset($_GET['term']) ? urldecode( $_GET['term'] ) : false;Api_channel_categories.php https://bitbucket.org/mbaily/tremain.git | PHP | 404 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2/** 133 { 134 $sel = (isset($catarray[$key])) ? TRUE : FALSE; 135 $depth = 1; 178 { 179 $sel = (isset($catarray[$key])) ? TRUE : FALSE; 180 $this->categories[$key] = array($key, $val['1'], (int) $val['2'], $val['3'], $sel, $depth, (int) $val[0], $val[4], $val[5]); 402 403/* End of file Api_channel_categories.php */ 404/* Location: ./system/expressionengine/libraries/api/Api_channel_categories.php */ProxyMagicMethodsTest.php https://github.com/nattaphat/hgis.git | PHP | 285 lines
1<?php 2/* 24use Doctrine\Common\Proxy\Exception\UnexpectedValueException; 25use PHPUnit_Framework_TestCase; 26use ReflectionClass; 32 */ 33class ProxyMagicMethodsTest extends PHPUnit_Framework_TestCase 34{ 50 /** 51 * @var \PHPUnit_Framework_MockObject_MockObject|Callable 52 */ 163 164 public function testInheritedMagicIsset() 165 { 165 { 166 $proxyClassName = $this->generateProxyClass(__NAMESPACE__ . '\\MagicIssetClass'); 167 $proxy = new $proxyClassName(function (Proxy $proxy, $method, $params) use (&$counter) {TextArea.php https://gitlab.com/ElvisAns/tiki | PHP | 377 lines
1<?php 2 124 $c = 0; 125 if (isset($requestData[$ins_id])) { 126 $value = (array) $data['value']; 137 if ($newvalue !== $val) { 138 if (isset($data['lingualvalue'][$c])) { 139 $data['lingualvalue'][$c]['value'] = $newvalue; 275 return function ($value, $extra) use ($lang) { 276 if (isset($extra['text'])) { 277 $value = $extra['text']; 277 $value = $extra['text']; 278 } elseif ($lang && isset($value[$lang])) { 279 $value = $lang;Resource.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);class-cp-user-relationships.php https://gitlab.com/clusterpress/clusterpress | PHP | 543 lines
1<?php 2/** 106 107 if ( isset( $this->types[ $type['name'] ] ) ) { 108 return false; 154 155 if ( ! isset( $this->types[ $name ] ) ) { 156 return false; 191 192 if ( ! isset( $this->types[ $r['name'] ] ) ) { 193 return false; 247 248 if ( empty( $w['name'] ) || ! isset( $this->types[ $w['name'] ] ) ) { 249 return false; 521 522 if ( empty( $r['name'] ) || ! isset( $this->types[ $r['name'] ] ) ) { 523 return false;DB_result.php https://gitlab.com/ricoru21/py_incidencia | PHP | 410 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 178 179 // array_key_exists() instead of isset() to allow for MySQL NULL values 180 if (array_key_exists($n, $this->row_data)) 241 242 if ($n != $this->current_row AND isset($result[$n])) 243 { 264 265 if ($n != $this->current_row AND isset($result[$n])) 266 { 289 290 if ($n != $this->current_row AND isset($result[$n])) 291 {translated-object.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 272 lines
1<?php 2 94 95 if ( ( $lang = $this->get_language( $id ) ) && isset( $translations ) && is_array( $translations ) ) { 96 // sanitize the translations array 207 208 return isset( $translations[ $lang->slug ] ) ? $translations[ $lang->slug ] : false; 209 }facebook.php https://github.com/copongcopong/CakePHP-Facebook-Plugin.git | PHP | 425 lines
1<?php 2/** 20 */ 21 var $__fbShareScript = 'http://static.ak.fbcdn.net/connect.php/js/FB.Share'; 22 94 ); 95 if(isset($options['redirect']) || $options['custom']){ 96 if(isset($options['redirect']) && $options['redirect']){ 102 $onclick = "FB.logout(function(response){".$response."});"; 103 if(isset($options['confirm'])){ 104 $onclick = 'if(confirm("'.$options['confirm'].'")){'.$onclick.'}'; 129 ); 130 if(isset($options['redirect']) && $options['redirect']){ 131 $options['redirect'] = Router::url($options['redirect']); 136 $onclick = "FB.api({ method: 'Auth.revokeAuthorization' }, function(response) {".$response."});"; 137 if(isset($options['confirm'])){ 138 $onclick = 'if(confirm("'.$options['confirm'].'")){'.$onclick.'}';QueryBuilder.php https://gitlab.com/brucealdridge/yii2 | PHP | 260 lines
1<?php 2/** 187 $placeholders[] = $phName; 188 $params[$phName] = !is_array($value) && isset($columnSchemas[$name]) ? $columnSchemas[$name]->dbTypecast($value) : $value; 189 } 235 foreach ($row as $i => $value) { 236 if (isset($columns[$i], $columnSchemas[$columns[$i]]) && !is_array($value)) { 237 $value = $columnSchemas[$columns[$i]]->dbTypecast($value);listCommand.php https://gitlab.com/florianocomercial/centreon | PHP | 232 lines
1<?php 2/* 35 36if (!isset($centreon)) { 37 exit(); 39 40include_once("./class/centreonUtils.class.php"); 41 41 42include_once "./include/common/autoNumLimit.php"; 43 50$search = ''; 51if (isset($_POST['searchC'])){ 52 $search = $_POST['searchC']; 58} else { 59 if (isset($oreon->command_search)) { 60 $search = $oreon->command_search;Event.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 340 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 */ 260 if ($useNamespace && $this->_dataNamespace) { 261 return isset($data[$this->_dataNamespace]) ? $data[$this->_dataNamespace] : array(); 262 } 292 if ($this->_dataNamespace) { 293 if (!isset($newData[$this->_dataNamespace])) { 294 $newData[$this->_dataNamespace] = array();String.php https://github.com/rgranadino/magento-mirror.git | PHP | 302 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 */ 225 // remove first element, if empty 226 if (isset($result[0]) && $result[0] === '') { 227 array_shift($result);index.php https://github.com/tlezotte/HCR.git | PHP | 342 lines
19 */ 20include_once('../../include/Timer.php'); 21$starttime = StartLoadTimer(); 84 <tr> 85 <td valign="top"><a href="../../index.php"><img name="company" src="/Common/images/company.gif" width="300" height="50" border="0" alt="<?= $language['label']['title1']; ?> Home"></a></td> 86 <td align="right" valign="top"> 177 ?> 178 <div align="right" class="FieldNumberDisabled"><strong><?= $language['label']['welcome']; ?> <a href="../../Administration/user_information.php" class="FieldNumberDisabled" <?php help('', 'Edit your user information', 'default'); ?>><?= ucwords(strtolower($_SESSION['fullname'])); ?></a></strong> <a href="../../logout.php" class="FieldNumberDisabled" <?php help('', 'Selecting [logout] will Log you out of the '.$default[title1].' and stop automatic cookie login', 'default'); ?>>[logout]</a> </div> 179 <?php 310 <tr> 311 <td width="50%" nowrap><!-- InstanceBeginEditable name="copyright" --><?php include('../include/copyright.php'); ?><!-- InstanceBeginEditable --></td> 312 <td width="50%"><div id="noPrint" align="right"><!-- InstanceBeginEditable name="version" --><!-- InstanceEndEditable --></div></td> 327 </div> 328 <?php } ?> 329 <br>panels_layouts_ui.class.php https://gitlab.com/manuvelasco/agostoliquida | PHP | 245 lines
1<?php 2 43 // If the plugin is not set, then it should be provided as an argument: 44 if (!isset($form_state['item']->plugin)) { 45 $form_state['item']->plugin = $form_state['function args'][2];CommentFieldsTest.php https://gitlab.com/reasonat/test8 | PHP | 235 lines
1<?php 2 53 $field = FieldConfig::loadByName('comment', 'comment', 'comment_body'); 54 $this->assertTrue(isset($field), format_string('The comment_body field is present for comments on type @type', array('@type' => $type_name))); 55CakeTestFixture.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 328 lines
2/** 3 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests 12 * @package Cake.TestSuite.Fixture 153 ClassRegistry::flush(); 154 } elseif (isset($import['table'])) { 155 $model = new Model(null, $import['table'], $import['connection']); 170 171 if (isset($import['records']) && $import['records'] !== false && isset($model) && isset($db)) { 172 $this->records = array(); 193 194 if (!isset($this->primaryKey) && isset($this->fields['id'])) { 195 $this->primaryKey = 'id';MysqliStatement.php https://gitlab.com/techniconline/kmc | PHP | 370 lines
1<?php 2/* 94 // Index 0 is types 95 // Need to init the string else php think we are trying to access it as a array. 96 $bindedValues = array(0 => str_repeat('s', $paramCount)); 112 } else { 113 if (isset(self::$_paramTypeMap[$type])) { 114 $type = self::$_paramTypeMap[$type]; 133 } else { 134 if (isset(self::$_paramTypeMap[$type])) { 135 $type = self::$_paramTypeMap[$type];tbl_replace.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 414 lines
54 */ 55require_once './libraries/common.inc.php'; 56 77 $url_params['after_insert'] = $_REQUEST['after_insert']; 78 //$GLOBALS['goto'] = 'tbl_change.php'; 79 $goto_include = 'tbl_change.php'; 178 $me_fields_prev = 179 isset($_REQUEST['fields_prev']['multi_edit'][$rowcount]) 180 ? $_REQUEST['fields_prev']['multi_edit'][$rowcount] 182 $me_funcs = 183 isset($_REQUEST['funcs']['multi_edit'][$rowcount]) 184 ? $_REQUEST['funcs']['multi_edit'][$rowcount] 226 // checks if an existing blob repository reference should be removed 227 if (isset($remove_blob_repo) && !isset($upload_blob_repo)) 228 {admin.php https://github.com/Brucee/pyrocms.git | PHP | 562 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2/** 247 248 $input['restricted_to'] = isset($input['restricted_to']) ? implode(',', $input['restricted_to']) : ''; 249 363 364 $input['restricted_to'] = isset($input['restricted_to']) ? implode(',', $input['restricted_to']) : ''; 365 539 { 540 if(isset($page['children'])): 541 543 544 <li id="page_<?php echo $page['id']; ?>"> 545 <div> 548 549 <?php if(isset($page['children'])): ?> 550 <ol>Period.php https://github.com/quarkness/piwik.git | PHP | 418 lines
1<?php 2/** 78 { 79 if(!isset($results[$name])) 80 { 406 407 if(!isset($this->archives)) 408 {trackback.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 372 lines
5 * <code><?php 6 * include('trackback_cls.php'); 7 * $trackback = new Trackback('BLOGish', 'Ran Aroussi', 'UTF-8'); 11 * 12 * @version $Id: trackback_cls.php,v 1.2 2004/12/11 18:54:32 Ran Exp $ 13 * @copyright Copyright (c) 2004 Ran Aroussi (http://www.blogish.org) 56 57 if ((isset($target["query"])) && ($target["query"] != "")) 58 { 65 66 if ((isset($target["port"]) && !is_numeric($target["port"])) || (!isset($target["port"]))) 67 { 70 71 if( !isset( $target["host"] ) ) 72 return false;restore_qtype_match_plugin.class.php https://github.com/kpike/moodle.git | PHP | 241 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 75 // from backups made in older versions of Moodle. 76 if (!isset($data->correctfeedback)) { 77 $data->correctfeedback = ''; 79 } 80 if (!isset($data->partiallycorrectfeedback)) { 81 $data->partiallycorrectfeedback = ''; 83 } 84 if (!isset($data->incorrectfeedback)) { 85 $data->incorrectfeedback = ''; 87 } 88 if (!isset($data->shownumcorrect)) { 89 $data->shownumcorrect = 0;admin.php https://bitbucket.org/seyar/kinda.local.git | PHP | 438 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2 51 // Fix to restore session for "ajax" session via Flash. Require $_POST['user'] and $_POST['session_id'] 52 if (isset($_POST['session_id']) AND isset($_POST['user'])) 53 { 103 104 i18n::$lang = (isset($this->user->language)) ? $this->user->language : ''; //Kohana::config('admin.lang'); 105 // content languagesshell.test.php https://github.com/hack521/contenidopago.git | PHP | 501 lines
8 * 9 * CakePHP : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2005-2011, Cake Software Foundation, Inc. 15 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. 16 * @link http://cakephp.org CakePHP Project 17 * @package cake 18 * @subpackage cake.tests.cases.console.libs 19 * @since CakePHP v 1.2.0.7726 20 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 338 // $this->assertFalse($this->Shell->loadTasks()); 339 // $this->assertFalse(isset($this->Shell->TestIDontExist)); 340 370 371 $path = $expected = DS . 'tmp' . DS . 'ab' . DS . 'index.php'; 372 $this->assertEqual($this->Shell->shortPath($path), $expected);Abstract.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 456 lines
1<?php 2/** 24 */ 25require_once 'Zend/Validate/Interface.php'; 26 150 151 if (!isset($this->_messageTemplates[$messageKey])) { 152 require_once 'Zend/Validate/Exception.php'; 193 */ 194 require_once 'Zend/Validate/Exception.php'; 195 throw new Zend_Validate_Exception("No property exists by the name '$property'"); 211 { 212 if (!isset($this->_messageTemplates[$messageKey])) { 213 return null; 330 } else { 331 require_once 'Zend/Validate/Exception.php'; 332 throw new Zend_Validate_Exception('Invalid translator specified');index.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 336 lines
1<?php 2 15 16require_once('../../../config.php'); 17require_once($CFG->libdir.'/adminlib.php'); 46if (!empty($del) && confirm_sesskey() && ($id != $USER->id)) { 47 if (isset($SESSION->users_result[$id])) { 48 $user = $SESSION->users_result[$id]; 96 97<form method="post" action="index.php"> 98 <div> 98 <div> 99 <label class="accesshide" for="keyword_el"><?php print_string('spamkeyword', 'tool_spamcleaner') ?></label> 100 <input type="text" name="keyword" id="keyword_el" value="<?php p($keyword) ?>" /> 100 <input type="text" name="keyword" id="keyword_el" value="<?php p($keyword) ?>" /> 101 <input type="hidden" name="sesskey" value="<?php echo sesskey();?>" /> 102 <input type="submit" value="<?php echo get_string('spamsearch', 'tool_spamcleaner')?>" />PropelPager.php https://github.com/1989gaurav/Propel.git | PHP | 597 lines
1<?php 2 15 * 16 * require_once 'propel/util/PropelPager.php'; 17 * require_once 'PEACH/Propel/Poem/poemPeer.php'; 124 { 125 if (!isset($c)) { 126 $c = new Criteria(); 264 { 265 if (!isset($this->rs)) { 266 $this->doRs(); 339 public function getTotalPages() { 340 if (!isset($this->pages)) { 341 $recordCount = $this->getTotalRecordCount(); 494 495 if (!isset($this->rs)) { 496 $this->doRs();zone.php https://bitbucket.org/sandeepbhaskar/inspiredliving.git | PHP | 441 lines
1<?php 2class ControllerLocalisationZone extends Controller { 28 29 if (isset($this->request->get['sort'])) { 30 $url .= '&sort=' . $this->request->get['sort']; 32 33 if (isset($this->request->get['order'])) { 34 $url .= '&order=' . $this->request->get['order']; 36 37 if (isset($this->request->get['page'])) { 38 $url .= '&page=' . $this->request->get['page']; 60 61 if (isset($this->request->get['sort'])) { 62 $url .= '&sort=' . $this->request->get['sort']; 64 65 if (isset($this->request->get['order'])) { 66 $url .= '&order=' . $this->request->get['order'];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 */ 280 */ 281 #require_once 'Zend/Db/Profiler/Query.php'; 282 $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType); 304 // Check for a valid query handle. 305 if (!isset($this->_queryProfiles[$queryId])) { 306 /** 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.");Preview.php https://github.com/michaelmcandrew/vaw.git | PHP | 235 lines
1<?php 2 36 37require_once 'CRM/Core/Form.php'; 38require_once 'CRM/Member/Import/Parser/Membership.php'; 189 $header = array(); 190 if ( isset($mapFields[$mapper[$key][0]]) ) { 191 $header[] = $mapFields[$mapper[$key][0]];Annotation.php https://bitbucket.org/cryofrost/portal.git | PHP | 267 lines
1<?php 2 18 * @link http://www.gediminasm.org 19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 20 */ 103 { 104 if (isset($config['strategy'])) { 105 if (is_array($meta->identifier) && count($meta->identifier) > 1) { 137 $meta->isInheritedField($property->name) || 138 isset($meta->associationMappings[$property->name]['inherited']) 139 ) { 220 $missingFields = array(); 221 if (!isset($config['parent'])) { 222 $missingFields[] = 'ancestor'; 223 } 224 if (!isset($config['left'])) { 225 $missingFields[] = 'left';config.php https://github.com/olberger/fusionforge.git | PHP | 396 lines
4 * NOTE: The settings here should probably not need to be changed. 5 * The user-configurable settings have been moved to IniConfig.php 6 * The run-time code has been moved to lib/IniConfig.php:fix_configs() 16define ('_DEBUG_PARSER', 4); // verbose parsing steps 17define ('_DEBUG_TRACE', 8); // test php memory usage, prints php debug backtraces 18define ('_DEBUG_INFO', 16); 27 return (substr(php_sapi_name(),0,3) == 'cgi' and 28 isset($GLOBALS['HTTP_ENV_VARS']['GATEWAY_INTERFACE']) and 29 @preg_match('/CGI/',$GLOBALS['HTTP_ENV_VARS']['GATEWAY_INTERFACE'])); 242 // do reinit to purge PHP's static cache [43ms] 243 if ( ($lcfile = FindLocalizedFile("LC_MESSAGES/phpwiki.php", 'missing_ok', 'reinit')) ) { 244 include($lcfile); 375 } 376 return defined('PHPWIKI_DIR') 377 ? PHPWIKI_DIR . "/uploads/"UndeployedMetaDataImplementation.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 211 lines
1<?php 2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 38 39require_once 'modules/ModuleBuilder/MB/ModuleBuilder.php' ; 40require_once 'modules/ModuleBuilder/parsers/views/AbstractMetaDataImplementation.php' ; 40require_once 'modules/ModuleBuilder/parsers/views/AbstractMetaDataImplementation.php' ; 41require_once 'modules/ModuleBuilder/parsers/views/MetaDataImplementationInterface.php' ; 42require_once 'modules/ModuleBuilder/parsers/views/ListLayoutMetaDataParser.php' ; 42require_once 'modules/ModuleBuilder/parsers/views/ListLayoutMetaDataParser.php' ; 43require_once 'modules/ModuleBuilder/parsers/views/GridLayoutMetaDataParser.php' ; 44require_once 'modules/ModuleBuilder/parsers/constants.php' ; 61 // BEGIN ASSERTIONS 62 if (! isset ( $this->_fileVariables [ $view ] )) 63 { 82 $selected_lang = 'en_us'; 83 if(isset($GLOBALS['current_language']) &&!empty($GLOBALS['current_language'])) { 84 $selected_lang = $GLOBALS['current_language'];Proxy.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 284 lines
1<?php 2 26 */ 27require_once 'Zend/Uri/Http.php'; 28/** 30 */ 31require_once 'Zend/Http/Client.php'; 32/** 34 */ 35require_once 'Zend/Http/Client/Adapter/Socket.php'; 36 125 if (! $this->socket) { 126 require_once 'Zend/Http/Client/Adapter/Exception.php'; 127 throw new Zend_Http_Client_Adapter_Exception("Trying to write but we are not connected"); 133 if ($this->connected_to[0] != "tcp://$host" || $this->connected_to[1] != $port) { 134 require_once 'Zend/Http/Client/Adapter/Exception.php'; 135 throw new Zend_Http_Client_Adapter_Exception("Trying to write but we are connected to the wrong proxy server");ClassRegistry.php https://github.com/gustavor/lore.git | PHP | 341 lines
8 * 9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @link http://cakephp.org CakePHP(tm) Project 17 * @package Cake.Utility 17 * @package Cake.Utility 18 * @since CakePHP(tm) v 0.9.2 19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 140 } 141 if (!isset(${$class})) { 142 if ($strict) { 197 $key = Inflector::underscore($key); 198 if (isset($_this->_objects[$key])) { 199 unset($_this->_objects[$key]);class-wc-report-taxes-by-date.php https://gitlab.com/campus-academy/krowkaramel | PHP | 264 lines
34 href="#" 35 download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time( 'timestamp' ) ); ?>.csv" 36 class="export_csv" 212 <th class="total_row"><?php _e( 'Number of orders', 'woocommerce' ); ?></th> 213 <th class="total_row"><?php _e( 'Total sales', 'woocommerce' ); ?> <?php echo wc_help_tip( __( "This is the sum of the 'Order total' field within your orders.", 'woocommerce' ) ); ?></th> 214 <th class="total_row"><?php _e( 'Total shipping', 'woocommerce' ); ?> <?php echo wc_help_tip( __( "This is the sum of the 'Shipping total' field within your orders.", 'woocommerce' ) ); ?></th> 215 <th class="total_row"><?php _e( 'Total tax', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'This is the total tax for the rate (shipping tax + product tax).', 'woocommerce' ) ); ?></th> 216 <th class="total_row"><?php _e( 'Net profit', 'woocommerce' ); ?> <?php echo wc_help_tip( __( 'Total sales minus shipping and tax.', 'woocommerce' ) ); ?></th> 217 </tr> 229 </th> 230 <td class="total_row"><?php echo $tax_row->total_orders; ?></td> 231 <td class="total_row"><?php echo wc_price( $gross ); ?></td> 231 <td class="total_row"><?php echo wc_price( $gross ); ?></td> 232 <td class="total_row"><?php echo wc_price( $tax_row->total_shipping ); ?></td> 233 <td class="total_row"><?php echo wc_price( $total_tax ); ?></td>date.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>. 332 333 if (isset($output['years'])) 334 { 337 338 if (isset($output['months'])) 339 { 548 * 549 * @see http://php.net/manual/en/datetime.construct.php 550 * @param string datetime_str datetime stringlexer.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 205 function addPattern($pattern, $mode = "accept") { 206 if (!isset($this->_regexes[$mode])) { 207 $this->_regexes[$mode] = new ParallelRegex($this->_case); 225 function addEntryPattern($pattern, $mode, $new_mode) { 226 if (!isset($this->_regexes[$mode])) { 227 $this->_regexes[$mode] = new ParallelRegex($this->_case); 240 function addExitPattern($pattern, $mode) { 241 if (!isset($this->_regexes[$mode])) { 242 $this->_regexes[$mode] = new ParallelRegex($this->_case);filterlib.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 118 if (!$linkobject->work_calculated) { 119 if (!isset($linkobject->hreftagbegin) or !isset($linkobject->hreftagend)) { 120 $linkobject->work_hreftagbegin = '<span class="highlight"';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 48 $this->factura = FALSE; 49 if( isset($_REQUEST['id']) ) 50 {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 118 public static function exists( $tag ) { 119 return (boolean) isset( self::$sc[ $tag ] ); 120 } 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. 206 'vc_column_inner' 207 ) ) || ! isset( $settings[ self::$user_role ]['shortcodes'] ) 208 || ( isset( $settings[ self::$user_role ]['shortcodes'][ $name ] ) && (int) $settings[ self::$user_role ]['shortcodes'][ $name ] == 1 )update.php https://bitbucket.org/MashedUpMedia/mashedupmedia.git | PHP | 420 lines
27 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version 28 $php_version = phpversion(); 29 61 'version' => $wp_version, 62 'php' => $php_version, 63 'locale' => $locale, 146 // Check for updated every 60 minutes if hitting update pages; else, check every 12 hours. 147 $timeout = in_array( current_filter(), array( 'load-plugins.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200; 148 $time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked ); 211function wp_update_themes() { 212 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version 213 225 // Check for updated every 60 minutes if hitting update pages; else, check every 12 hours. 226 $timeout = in_array( current_filter(), array( 'load-themes.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200; 227 $time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time( ) - $last_update->last_checked );template.php https://bitbucket.org/frazras/higgler.git | PHP | 384 lines
1<?php 2 165 166 if (isset($vars[$region]['#theme_wrappers']) && array_search('region', $vars[$region]['#theme_wrappers']) !== FALSE) { 167 $vars[$region] = array('alpha_debug_' . $region => array( 231 if ($item['enabled'] && ($item['force'] || !empty($temporary[$item['section']][$zone]))) { 232 if (isset($item['primary']) && isset($temporary[$item['section']][$zone][$item['primary']])) { 233 alpha_calculate_primary($temporary[$item['section']][$zone], $item['primary'], $item['columns']); 248 foreach ($theme->sections as $section => $item) { 249 if (isset($temporary[$section])) { 250 $temporary[$section]['#theme_wrappers'] = array('section');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); 73 } 74 if (isset($params[$from])) { 75 $params[$to] = $params[$from]; 217 218 if (isset($CFG->logguests) and !$CFG->logguests) { 219 if (!$userid or isguestuser($userid)) { 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) {compiler.php https://bitbucket.org/jokusafet/magento2.git | PHP | 301 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 34 */ 35require_once BP . '/app/code/core/Mage/Core/functions.php'; 36require_once BP . '/app/Mage.php'; 37 38require __DIR__ . '/../../../app/autoload.php'; 39Magento_Autoload_IncludePath::addIncludePath(array( 231 232 if (isset($definition['supertypes']) && isset($definition['parameters']['__construct'])) { 233 foreach ($definition['supertypes'] as $type) {route.php https://github.com/ymtn/core.git | PHP | 589 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 103 { 104 if ( ! isset(Route::$_routes[$name])) 105 { 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 447 { 448 if ( ! isset($params[$key]) OR $params[$key] === '') 449 { 523 524 if (isset($params[$param])) 525 { 528 } 529 elseif(isset($this->_uri_defaults[$param])) 530 {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$ 291 { 292 if (isset($this->_maskReplacements[$oldMask])) { 293 $this->_maskReplacements[$oldMask] = null; 360 // Check if at least basic options are defined 361 if ( !isset($options['page_number'])) { 362 throw new Doctrine_Pager_Exception( 371 // Assign "page" options index if not defined yet 372 if ( !isset($this->_maskReplacements['page']) && !isset($options['page'])) { 373 $options['page'] = $options['page_number'];Profiler.php https://github.com/grjones/qframe.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 */ 280 */ 281 require_once 'Zend/Db/Profiler/Query.php'; 282 $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType); 304 // Check for a valid query handle. 305 if (!isset($this->_queryProfiles[$queryId])) { 306 /** 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.");jlparameter.php https://gitlab.com/julienv/joomleague | PHP | 552 lines
1<?php 2/** 3 * @copyright Copyright (C) 2005-2014 joomleague.at. All rights reserved. 4 * @license GNU/GPL, see LICENSE.php 5 * Joomla! is free software. This version may have been modified pursuant 8 * other free or open source software licenses. 9 * See COPYRIGHT.php for copyright notices and details. 10 */ 268 269 if (!isset($this->_xml[$group])) 270 { 301 302 return implode(PHP_EOL, $html); 303 } 470 471 if ((isset($this->_elements[$signature]) && !($this->_elements[$signature] instanceof __PHP_Incomplete_Class)) && $new === false) 472 {checkbase.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 231 lines
1<?php 2// main global to hold our checks 13 // should return true for good/okay/acceptable, false for bad/not-okay/unacceptable 14 public function check( $php_files, $css_files, $other_files ); 15 21$dir = 'checks'; 22foreach (glob(dirname(__FILE__). "/{$dir}/*.php") as $file) { 23 include $file; 25 26function run_themechecks($php, $css, $other) { 27 global $themechecks; 30 if ($check instanceof themecheck) { 31 $pass = $pass & $check->check($php, $css, $other); 32 } 54 if ( defined( 'TC_TRAC' ) ) { 55 $results .= ( isset( $_POST['s_info'] ) && preg_match( '/INFO/', $e ) ) ? '' : '* ' . tc_trac( $e ) . "\r\n"; 56 } else {user-moderation-admin.php https://gitlab.com/Gashler/sg | PHP | 432 lines
180 ?> 181 <input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_none" value="none"<?php checked( $this->get_option( 'type' ), 'none' ); ?> /> 182 <label for="<?php echo $this->options_key; ?>_type_none"><?php _e( 'None', 'theme-my-login' ); ?></label> 184 185 <input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_email" value="email" <?php checked( $this->get_option( 'type' ), 'email' ); ?> /> 186 <label for="<?php echo $this->options_key; ?>_type_email"><?php _e( 'E-mail Confirmation', 'theme-my-login' ); ?></label> 188 189 <input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_admin" value="admin" <?php checked( $this->get_option( 'type' ), 'admin' ); ?> /> 190 <label for="<?php echo $this->options_key; ?>_type_admin"><?php _e( 'Admin Approval', 'theme-my-login' ); ?></label> 191 <p class="description"><?php _e( 'Check this option to require new users to be approved by an administrator before they may log in.', 'theme-my-login' ); ?></p> 192 <?php 193 } 234 // Where did we come from? 235 $redirect_to = isset( $_REQUEST['wp_http_referer'] ) ? remove_query_arg( array( 'wp_http_referer', 'updated', 'delete_count' ), stripslashes( $_REQUEST['wp_http_referer'] ) ) : 'users.php'; 236transformation.php https://github.com/Yannix/zetacomponents.git | PHP | 417 lines
1<?php 2/** 164 } 165 if ( isset( $before ) && isset( $this->filters[$before] ) ) 166 { 185 { 186 if ( !isset( $mimeIn ) ) 187 { 262 // Avoid reopening in same handler 263 if ( isset( $this->lastHandler ) ) 264 { 283 // When no filters are performed by a transformation, we might have no last handler here 284 if ( !isset( $this->lastHandler ) ) 285 {loan_list.php https://github.com/awriel/s3st15_matoa.git | PHP | 205 lines
1<?php 2/** 29// main system configuration 30require '../../../sysconfig.inc.php'; 31// IP based access limitation 31// IP based access limitation 32require LIB_DIR.'ip_based_access.inc.php'; 33do_checkIP('smc'); 35// start the session 36require SENAYAN_BASE_DIR.'admin/default/session.inc.php'; 37require SENAYAN_BASE_DIR.'admin/default/session_check.inc.php'; 38 39if (!isset($_SESSION['memberID'])) { die(); } 40 40 41require SIMBIO_BASE_DIR.'simbio_GUI/form_maker/simbio_form_table_AJAX.inc.php'; 42require SIMBIO_BASE_DIR.'simbio_GUI/table/simbio_table.inc.php';Loader.php https://gitlab.com/buitenzorg812/garapic.cms | PHP | 481 lines
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed'); 2 12 * 13 * Install this file as application/third_party/MX/Loader.php 14 * 99 if ($return === FALSE && $query_builder === NULL && 100 isset(CI::$APP->db) && is_object(CI::$APP->db) && ! empty(CI::$APP->db->conn_id)) 101 { 118 119 if (isset($this->_ci_helpers[$helper])) return; 120 156 157 if (isset($this->_ci_classes[$class]) && $_alias = $this->_ci_classes[$class]) 158 return $this; 266 267 if (isset($this->_ci_plugins[$plugin])) 268 return $this;DefaultTableMapping.php https://gitlab.com/reasonat/test8 | PHP | 396 lines
1<?php 2 102 public function getAllColumns($table_name) { 103 if (!isset($this->allColumns[$table_name])) { 104 $this->allColumns[$table_name] = array(); 111 // $field_name can only refer to it. 112 if (isset($field_name) && $this->requiresDedicatedTableStorage($this->fieldStorageDefinitions[$field_name])) { 113 // Unlike in shared storage tables, in dedicated ones field columns are 127 public function getFieldNames($table_name) { 128 if (isset($this->fieldNames[$table_name])) { 129 return $this->fieldNames[$table_name]; 139 140 if (isset($this->fieldStorageDefinitions[$field_name])) { 141 // Since a field may be stored in more than one table, we inspect tables 174 175 if (!isset($result)) { 176 throw new SqlContentEntityStorageException("Table information not available for the '$field_name' field.");fpdi_pdf_parser.php https://github.com/pauln/moodle.git | PHP | 347 lines
1<?php 2/** 11if (!class_exists('pdf_parser')) { 12 require_once('pdf_parser.php'); 13} 126 // parent object. 127 if (isset($obj[1][1]['/Resources'])) { 128 $res = $this->resolveObject($obj[1][1]['/Resources']); 133 134 if (!isset($obj[1][1]['/Parent'])) { 135 return false; 154 155 if (isset($this->_pages[$this->pageNo][1][1]['/Contents'])) { 156 $contents = $this->_getPageContent($this->_pages[$this->pageNo][1][1]['/Contents']); 205 $box = null; 206 if (isset($page[1][1][$boxIndex])) { 207 $box = $page[1][1][$boxIndex];field_link_color.php https://gitlab.com/eita/agencia-consumo-responsavel | PHP | 207 lines
1<?php 2 68 // In case user passes no default values. 69 if ( isset( $this->field['default'] ) ) { 70 $this->field['default'] = wp_parse_args( $this->field['default'], $defaults );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"); 9/* check if work order closed we don't want to reschedule a work order if it's closed */ 10if(isset($wo_id)) { 11 $q = "SELECT WORK_ORDER_CURRENT_STATUS FROM ".PRFX."TABLE_WORK_ORDER WHERE WORK_ORDER_ID=".$db->qstr($wo_id); 61/* get the curent login */ 62if(!isset($VAR['tech'])) { 63 $tech = $_SESSION['login_id']; 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 />";ExtensionServiceTest.php https://github.com/TYPO3/TYPO3.CMS.git | PHP | 367 lines
1<?php 2 20use Prophecy\Argument; 21use Prophecy\PhpUnit\ProphecyTrait; 22use Prophecy\Prophecy\ObjectProphecy; 330 */ 331 public function getTargetPageTypeByFormatReturnsZeroIfNoMappingIsSet(): void 332 {MineBlock.php https://gitlab.com/Skull3x/MineBlock | PHP | 275 lines
81 case "타임": 82 if(!isset($sub[1])){ 83 $r = ($this->isKorean() ? $rm . "딜레이 <시간>": $rm . "Delay(D) <Num>"; 85 if($sub[1] < 0 || !is_numeric($sub[1])) $sub[1] = 0; 86 if(isset($sub[2]) && $sub[2] > $sub[1] && is_numeric($sub[2]) !== false) $sub[1] = $sub[1] . "~" . $sub[2]; 87 $set["Time"] = $sub[1]; 117 case "추가": 118 if(!isset($sub[2]) || !isset($sub[3])){ 119 $r = ($this->isKorean() ? $rm . "드롭템 추가 <아이템ID> <확률> <갯수1> <갯수2>": $rm . "Fishs(F) Add(A) <ItemID> <Petsent> <Count1> <Count2>"; 123 if(!isset($sub[4]) < 0 || !is_numeric($sub[4])) $sub[4] = 0; 124 if(isset($sub[5]) && $sub[5] > $sub[4] && is_numeric($sub[5])) $sub[4] = $sub[4] . "~" . $sub[5]; 125 $drop[] = [$sub[3], $i->getID() . ":" . $i->getDamage(), $sub[4] ]; 242 $a = explode("~", $str); 243 return isset($a[1]) ? rand($a[0], $a[1]) : $a[0]; 244 }Old.php https://gitlab.com/Skull3x/Small-ZC-Plugins | PHP | 308 lines
1<?php 2 41 $time *= 1000; 42 echo " Done! ($time ms)" . PHP_EOL; 43 } 45 public function eventSetLength($data){ 46 if(!isset($data["cid"]) or !isset($data["length"])){ 47 return false; 53 public function eventSetEnabled($data){ 54 if(!isset($data["cid"]) or !isset($data["bool"])){ 55 return false; 180 public function getLength($cid){ 181 if(isset($this->database[$cid])){ 182 return $this->database[$cid][1]; 191 public function isEnabled($cid){ 192 if(isset($this->database[$cid])){ 193 return $this->database[$cid][0];addons_modules.php https://bitbucket.org/mbaily/tremain.git | PHP | 468 lines
136 137 if (isset($this->installed_modules[$module]) AND $this->installed_modules[$module]['has_cp_backend'] == 'y') 138 { 156 // Module Version 157 $version = ( ! isset($this->installed_modules[$module])) ? '--' : $this->installed_modules[$module]['module_version']; 158 $data[$modcount][] = $version; 160 // Module Status 161 $status = ( ! isset($this->installed_modules[$module]) ) ? 'not_installed' : 'installed'; 162 $in_status = str_replace(" ", " ", lang($status)); 188 { 189 require $this->installed_modules[$module]['path'].'upd.'.$module.'.php'; 190 276 // Do they have access to this module? 277 if ( ! isset($installed[$module]) OR ! isset($this->session->userdata['assigned_modules'][$installed[$module]['module_id']]) OR $this->session->userdata['assigned_modules'][$installed[$module]['module_id']] !== TRUE) 278 {url_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 593 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 205 { 206 $atts[$key] = ( ! isset($attributes[$key])) ? $val : $attributes[$key]; 207 unset($attributes[$key]); 341 var l=new Array(); 342 <?php 343 $i = 0; 343 $i = 0; 344 foreach ($x as $val){ ?>l[<?php echo $i++; ?>]='<?php echo $val; ?>';<?php } ?> 345 348 else document.write(unescape(l[i]));} 349 </script><?php 350MY_url_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 542 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 28 $url = $CI->config->slash_item('base_url'); 29 if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') 30 { 296 $original_route = explode('/', $RTR->uri->_parse_request_uri()); 297 $actual_lang = ( ! isset($original_route[1]) ) ? false : $original_route[1]; 298 540 541/* End of file MY_url_helper.php */ 542/* Location: ./application/helpers/MY_url_helper.php */EditView.php https://bitbucket.org/jhunsinfotech/blue-blues.git | PHP | 238 lines
33 34if(isset($_REQUEST['record']) && $_REQUEST['record'] !='') 35{ 43{ 44 if(isset($_REQUEST['parent_id']) && isset($_REQUEST['return_module'])) 45 { 96} 97if (isset($_REQUEST['parent_type'])) { 98 $focus->parent_type = $_REQUEST['parent_type']; 173$smarty->assign("IMAGE_PATH", $image_path); 174$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']); 175$smarty->assign("ID", $focus->id); 188 189if (isset($focus->parent_type) && $focus->parent_type != "") { 190 $change_parent_button = "<input title='".$app_strings['LBL_CHANGE_BUTTON_TITLE']."' accessKey='".$app_strings['LBL_CHANGE_BUTTON_KEY']."' vtiger_tabindex='3' type='button' class='button' value='".$app_strings['LBL_CHANGE_BUTTON_LABEL']."' name='button' LANGUAGE=javascript onclick='return window.open(\"index.php?module=\"+ document.EditView.parent_type.value + \"&action=Popup&html=Popup_picker&form=TasksEditView\",\"test\",\"width=600,height=400,resizable=1,scrollbars=1\");'>";HashMap.class.php https://bitbucket.org/stk2k/charcoalphp2.1.git | PHP | 386 lines
1<?php 2/** 6* 7* PHP version 5 8* 9* @package class.base 10* @author CharcoalPHP Development Team 11* @copyright 2008 stk2k, sazysoft 122 } 123 return isset($this->values[ $offset ]) ? $this->values[ $offset ] : NULL; 124 } 148 { 149 return isset($this->values[$offset]); 150 }RssHelper.php https://bitbucket.org/ManiAdil/jardinorient.git | PHP | 354 lines
6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package Cake.View.Helper 142 $data = array(); 143 } elseif (isset($data['attrib']) && is_array($data['attrib'])) { 144 $attributes = $data['attrib']; 188 * @return string An RSS `<item />` element 189 * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/rss.html#RssHelper::item 190 */ 193 194 if (isset($elements['link']) && !isset($elements['guid'])) { 195 $elements['guid'] = $elements['link'];content.php https://github.com/dabio/php_cms.git | PHP | 415 lines
1<?php 2 92 { 93 if (isset($v) and $v != '') 94 { 119 // kenne? 120 if (!isset($_['id'])) 121 { 202 { 203 if (!isset($_)) 204 { 261 // Ein Titel ist natürlich Pflicht. 262 if (!isset($_['title'])) 263 { 267 // Wo soll ich das einordnen, wenn ich kein Elternelement habe? 268 if (!isset($_['parent'])) 269 {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'; 96 try{ 97 require_once LIB_PATH . 'phpmailer/class.phpmailer.php' ; 98 $mail = new PHPMailer(true) ; 183function location_by_country() { 184 if(!isset($_POST['country'])) 185 return false; 188 189 $countries_json = osc_file_get_contents('http://geo.osclass.org/geo.download.php?action=country&term='. urlencode(implode(',', $country)) . '&install=true&version='.osc_version() ); 190 $countries = json_decode($countries_json); 409 return location_by_city(); 410 else if( isset($_POST['region']) ) 411 return location_by_region();overview_table.php https://github.com/kpike/moodle.git | PHP | 349 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 109 foreach ($this->questions as $question) { 110 if (isset($gradeaverages[$question->slot]) && $question->maxmark > 0) { 111 $record = $gradeaverages[$question->slot]; 200 201 if (isset($this->regradedqs[$attempt->usageid])) { 202 $newsumgrade = 0; 204 foreach ($this->questions as $question) { 205 if (isset($this->regradedqs[$attempt->usageid][$question->slot])) { 206 $newsumgrade += $this->regradedqs[$attempt->usageid] 221 } 222 return html_writer::link(new moodle_url('/mod/quiz/review.php', 223 array('attempt' => $attempt->attempt)), $grade, 229 * @param object $attempt the row of data - see the SQL in display() in 230 * mod/quiz/report/overview/report.php to see what fields are present, 231 * and what they are called.IndexController.php https://gitlab.com/wuhang2003/phpwind | PHP | 251 lines
1<?php 2Wind::import('APPS:.profile.controller.BaseProfileController'); 11 * @author xiaoxia.xu <xiaoxia.xuxx@aliyun-inc.com> 12 * @copyright ©2003-2103 phpwind.com 13 * @license http://www.phpwind.com 13 * @license http://www.phpwind.com 14 * @version $Id: IndexController.php 28946 2013-05-31 04:59:50Z jieyin $ 15 * @package src.products.u.controller.profile 18 19 /* (non-PHPdoc) 20 * @see BaseProfileController::beforeAction() 26 27 /* (non-PHPdoc) 28 * @see WindController::run() 95 $areas = $srv->fetchAreaInfo(array($hometown, $location)); 96 $userDm->setHometown($hometown, isset($areas[$hometown]) ? $areas[$hometown] : ''); 97 $userDm->setLocation($location, isset($areas[$location]) ? $areas[$location] : '');SmtpTransport.php https://gitlab.com/grlopez90/servipro | PHP | 375 lines
1<?php 2/** 4 * 5 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @link http://cakephp.org CakePHP(tm) Project 14 * @package Cake.Network.Email 14 * @package Cake.Network.Email 15 * @since CakePHP(tm) v 2.0.0 16 * @license http://www.opensource.org/licenses/mit-license.php MIT License 130 'code' => $match[1], 131 'message' => isset($match[2]) ? $match[2] : null 132 ); 184 protected function _auth() { 185 if (isset($this->_config['username']) && isset($this->_config['password'])) { 186 $replyCode = $this->_smtpSend('AUTH LOGIN', '334|500|502|504');QueryBuilder.php https://gitlab.com/makkooz/nikestreetbeat | PHP | 260 lines
1<?php 2/** 187 $placeholders[] = $phName; 188 $params[$phName] = !is_array($value) && isset($columnSchemas[$name]) ? $columnSchemas[$name]->dbTypecast($value) : $value; 189 } 207 * 208 * ```php 209 * $sql = $queryBuilder->batchInsert('user', ['name', 'age'], [ 235 foreach ($row as $i => $value) { 236 if (isset($columns[$i], $columnSchemas[$columns[$i]]) && !is_array($value)) { 237 $value = $columnSchemas[$columns[$i]]->dbTypecast($value);GeneralItemCollection.php https://gitlab.com/laher01/factu40 | PHP | 201 lines
1<?php 2 136 { 137 if (isset($row->item->lots)) { 138 $class = get_class($row);Console.php https://bitbucket.org/haichau59/manga.git | PHP | 312 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Console.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 25 */ 26//require_once 'Zend/Tool/Framework/Client/Abstract.php'; 27 30 */ 31//require_once 'Zend/Tool/Framework/Client/Interactive/InputInterface.php'; 32 35 */ 36//require_once 'Zend/Tool/Framework/Client/Interactive/OutputInterface.php'; 37 165 // add classes to the basic loader from the config file basicloader.classes.1 .. 166 if (isset($config->basicloader) && isset($config->basicloader->classes)) { 167 foreach ($config->basicloader->classes as $classKey => $className) {AbstractClassMetadataFactory.php https://github.com/nattaphat/hgis.git | PHP | 389 lines
1<?php 2/* 178 { 179 if (isset($this->loadedMetadata[$className])) { 180 return $this->loadedMetadata[$className]; 192 193 if (isset($this->loadedMetadata[$realClassName])) { 194 // We do not have the alias name in the map, include it 230 { 231 return isset($this->loadedMetadata[$className]); 232 } 270 * Scenarios in a code-generation setup might have access to XML/YAML 271 * Mapping files without the actual PHP code existing here. That is why the 272 * {@see Doctrine\Common\Persistence\Mapping\ReflectionService} interface 295 foreach ($parentClasses as $className) { 296 if (isset($this->loadedMetadata[$className])) { 297 $parent = $this->loadedMetadata[$className];PMA_relation_cleanup_test.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 511 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 3/** 4 * tests for relation_cleanup.lib.php 5 * 5 * 6 * @package PhpMyAdmin-test 7 */ 13 14require_once 'libraries/database_interface.inc.php'; 15 15 16require_once 'libraries/relation.lib.php'; 17require_once 'libraries/relation_cleanup.lib.php'; 23 * 24 * this class is for testing relation_cleanup.lib.php functions 25 *ContratoController.php https://gitlab.com/SFMSP/Hagape | PHP | 315 lines
1<?php 2 57 58 $arEmpenhos = isset($dados['empenho']) ? $dados['empenho'] : []; 59 109 $form->get('fornecedor')->setValueOptions($fornecedores); 110 if (isset($dados['fornecedor'][0])) { 111 $form->get('fornecedor')->setValue($dados['fornecedor'][0]); 240 241 if (isset($request['order'][0]['column'])) { 242 switch ($request['order'][0]['column']) {about.php https://gitlab.com/relacilia/cakra | PHP | 243 lines
45 <h2 class="nav-tab-wrapper"> 46 <a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What’s New' ); ?></a> 47 <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a> 47 <a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a> 48 <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a> 49 </h2> 114 <div class="col"> 115 <h3><?php _e( 'Embed your WordPress content' ); ?></h3> 116 <p><?php _e( 'Now you can embed your posts on other sites, even other WordPress sites. Simply drop a post URL into the editor and see an instant embed preview, complete with the title, excerpt, and featured image if you’ve set one. We’ll even include your site icon and links for comments and sharing.' ); ?></p> 199 <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?> 200 <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>"> 201 <?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard → Updates' ); ?> 203 <?php endif; ?> 204 <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard → Home' ) : _e( 'Go to Dashboard' ); ?></a> 205 </div>Profiler.php https://github.com/StefanRHRO/SCRM.git | PHP | 471 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Profiler.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 280 */ 281 require_once 'Zend/Db/Profiler/Query.php'; 282 $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType); 304 // Check for a valid query handle. 305 if (!isset($this->_queryProfiles[$queryId])) { 306 /** 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.");CollectionPersister.php https://bitbucket.org/paulscott56/c4-framework.git | PHP | 247 lines
1<?php 2/* 36 * 37 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 38 * @link www.doctrine-project.com 160 foreach ($coll as $key => $document) { 161 if (isset($mapping['reference'])) { 162 $setData[$key] = $this->pb->prepareReferencedDocumentValue($mapping, $document); 169 } else { 170 $strategy = isset($mapping['strategy']) ? $mapping['strategy'] : 'pushAll'; 171 $insertDiff = $coll->getInsertDiff(); 174 foreach ($insertDiff as $document) { 175 if (isset($mapping['reference'])) { 176 $query[$this->cmd.$strategy][$propertyPath][] = $this->pb->prepareReferencedDocumentValue($mapping, $document); 217 list($m, $owner, $field) = $association; 218 if (isset($m['reference'])) { 219 break;admin_add.php https://bitbucket.org/droidzone/i-mscp.git | PHP | 293 lines
1<?php 2/** 38// Include core library 39require 'imscp-lib.php'; 40 79 exit; 80 } elseif (isset($_POST['uaction']) && $_POST['uaction'] === 'add_user') { 81 158 159 redirectTo('manage_users.php'); 160 } else { // check user dataComparator.php https://bitbucket.org/cryofrost/portal.git | PHP | 378 lines
1<?php 2/* 26 * @license http://ez.no/licenses/new_bsd New BSD License 27 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 28 * @link www.doctrine-project.org 83 $foreignTable = strtolower($foreignKey->getForeignTableName()); 84 if (!isset($foreignKeysToTable[$foreignTable])) { 85 $foreignKeysToTable[$foreignTable] = array(); 91 foreach ($diff->removedTables AS $tableName => $table) { 92 if (isset($foreignKeysToTable[$tableName])) { 93 $diff->orphanedForeignKeys = array_merge($diff->orphanedForeignKeys, $foreignKeysToTable[$tableName]);