PageRenderTime 1090ms queryTime 89ms sortTime 370ms getByIdsTime 237ms findMatchingLines 116ms

100+ results results for 'php idate repo:lux/sitellite' (1090 ms)

Not the results you expected?
Url.php https://bitbucket.org/alessandro-aglietti/itis-leonardo-da-vinci.git | PHP | 548 lines
                    
1<?php
                    
2
                    
8/**
                    
9 * Parses and generates URLs based on URL parts. In favor of performance, URL parts are not validated.
                    
10 */
                    
                
arr.php https://bitbucket.org/i1598/caiyun_stat.git | PHP | 602 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
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	 *
                    
514	 * Creates a callable function and parameter list from a string representation.
                    
515	 * Note that this function does not validate the callback string.
                    
516	 *
                    
                
Store.php https://gitlab.com/FSalazarH/WaitlessWeb | PHP | 707 lines
                    
1<?php
                    
2
                    
218     */
                    
219    public function invalidate($lifetime = null)
                    
220    {
                    
                
SqlBase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 415 lines
                    
1<?php
                    
2
                    
225
                    
226  public function validateOptionsForm(&$form, FormStateInterface $form_state) {
                    
227    // Only accept integer values.
                    
383
                    
384  public function exposedFormValidate(&$form, FormStateInterface $form_state) {
                    
385    if (!$form_state->isValueEmpty('offset') && trim($form_state->getValue('offset'))) {
                    
                
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
                    
73        'fields' => array(
                    
74            'id_zone' =>                    array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
                    
75            'id_currency' =>                array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'),
                    
75            'id_currency' =>                array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'),
                    
76            'call_prefix' =>                array('type' => self::TYPE_INT, 'validate' => 'isInt'),
                    
77            'iso_code' =>                    array('type' => self::TYPE_STRING, 'validate' => 'isLanguageIsoCode', 'required' => true, 'size' => 3),
                    
77            'iso_code' =>                    array('type' => self::TYPE_STRING, 'validate' => 'isLanguageIsoCode', 'required' => true, 'size' => 3),
                    
78            'active' =>                    array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
                    
79            'contains_states' =>            array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'required' => true),
                    
                
web.php https://github.com/XioNoX/Benevolus.git | PHP | 509 lines
                    
1<?php
                    
2
                    
3/**
                    
4	Web pack for the PHP Fat-Free Framework
                    
5
                    
110				if ($ptr>0) {
                    
111					// Backtrack and validate
                    
112					$ofs=$ptr;
                    
205		if ($echo) {
                    
206			if (PHP_SAPI!='cli' && !headers_sent())
                    
207				header(self::HTTP_Content.': '.$mime[$ext[1]].'; '.
                    
295				self::HTTP_Agent.': Mozilla/5.0 '.
                    
296					'(compatible;'.PHP_OS.')'.self::EOL.
                    
297				($reqhdrs?
                    
330					self::$vars['HEADERS'][]=$hdr;
                    
331					if (PHP_SAPI!='cli' && $forward)
                    
332						// Forward HTTP header
                    
                
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/
                    
290    {
                    
291        $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
                    
292    }
                    
376
                    
377        $file = $this->findFileWithExtension($class, '.php');
                    
378
                    
                
Command.php https://github.com/nguyennamtien/TaskBoxx.git | PHP | 512 lines
                    
1<?php
                    
2
                    
106    /**
                    
107     * Initializes the command just after the input has been validated.
                    
108     *
                    
144
                    
145        $input->validate();
                    
146
                    
378            $name,
                    
379            $_SERVER['PHP_SELF'].' '.$name
                    
380        );
                    
                
StorageServiceSettings.php https://bitbucket.org/skudatech/azure-sdk-for-php.git | PHP | 485 lines
                    
14 * 
                    
15 * PHP version 5
                    
16 *
                    
18 * @package   WindowsAzure\Common\Internal
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright 2012 Microsoft Corporation
                    
21 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
22 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
23 */
                    
35 * @package   WindowsAzure\Common\Internal
                    
36 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
37 * @copyright 2012 Microsoft Corporation
                    
166            Resources::DEVELOPMENT_STORAGE_PROXY_URI_NAME,
                    
167            Validate::getIsValidUri()
                    
168        );
                    
                
ps_perm.php https://github.com/Shigaru/shigaru.git | PHP | 461 lines
                    
1<?php
                    
2if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
                    
4*
                    
5* @version $Id: ps_perm.php 1818 2009-06-23 19:07:21Z soeren_nb $
                    
6* @package VirtueMart
                    
8* @copyright Copyright (C) 2004-2009 soeren - All rights reserved.
                    
9* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
                    
10* VirtueMart is free software. This version may have been modified pursuant
                    
13* other free or open source software licenses.
                    
14* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
                    
15*
                    
168	/**
                    
169	 * Validates the permission to do something.
                    
170	 *
                    
240		if( $size==1 ) {
                    
241			$values[0] = $VM_LANG->_('PHPSHOP_SELECT');
                    
242		}
                    
                
ee374469f3039f2afc01916b1c6255a7d0864358.file.view-registration.tpl.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 260 lines
                    
120                <option value="<?php echo $_smarty_tpl->getVariable('db_country')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['vCountryCode'];?>
                    
121" <?php if ($_smarty_tpl->getVariable('db_country')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['vCountryCode']==$_smarty_tpl->getVariable('vCountry')->value){?> selected <?php }?>><?php echo $_smarty_tpl->getVariable('db_country')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['vCountry'];?>
                    
122</option>
                    
150</option>
                    
151              <option value="FI" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='FI'){?> selected <?php }?>><?php echo @LBL_FINISH;?>
                    
152</option>
                    
152</option>
                    
153              <option value="FN" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='FN'){?> selected <?php }?>><?php echo @LBL_FRENCH;?>
                    
154</option>
                    
154</option>
                    
155              <option value="LV" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='LV'){?> selected <?php }?>><?php echo @LBL_LATVIN;?>
                    
156</option>
                    
166</option>
                    
167              <option value="RS" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='RS'){?> selected <?php }?>><?php echo @LBL_RUSSIAN;?>
                    
168</option>
                    
                
Configuration.php https://github.com/sellingsource/symfony.git | PHP | 362 lines
                    
1<?php
                    
2
                    
214                                    ->defaultValue(array('FrameworkBundle:Form'))
                    
215                                    ->validate()
                    
216                                        ->ifTrue(function($v) {return !in_array('FrameworkBundle:Form', $v); })
                    
                
admin.php https://github.com/Brucee/pyrocms.git | PHP | 562 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2/**
                    
223	{
                    
224		// Validate the page
                    
225		if ($this->form_validation->run())
                    
543			
                    
544					<li id="page_<?php echo $page['id']; ?>">
                    
545						<div>
                    
545						<div>
                    
546							<a href="#" rel="<?php echo $page['id'] . '">' . $page['title']; ?></a>
                    
547						</div>
                    
548					
                    
549				<?php if(isset($page['children'])): ?>
                    
550						<ol>
                    
550						<ol>
                    
551								<?php $this->tree_builder($page); ?>
                    
552						</ol>
                    
                
Index.php https://gitlab.com/tonycodes/october | PHP | 458 lines
                    
1<?php namespace Cms\Controllers;
                    
2
                    
113    {
                    
114        $this->validateRequestTheme();
                    
115
                    
139    {
                    
140        $this->validateRequestTheme();
                    
141        $type = Request::input('templateType');
                    
227    {
                    
228        $this->validateRequestTheme();
                    
229
                    
261    {
                    
262        $this->validateRequestTheme();
                    
263
                    
276    {
                    
277        $this->validateRequestTheme();
                    
278
                    
                
zone.php https://bitbucket.org/sandeepbhaskar/inspiredliving.git | PHP | 441 lines
                    
1<?php 
                    
2class ControllerLocalisationZone extends Controller {
                    
21		
                    
22		if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm()) {
                    
23			$this->model_localisation_zone->addZone($this->request->post);
                    
53		
                    
54		if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm()) {
                    
55			$this->model_localisation_zone->editZone($this->request->get['zone_id'], $this->request->post);			
                    
85		
                    
86		if (isset($this->request->post['selected']) && $this->validateDelete()) {
                    
87			foreach ($this->request->post['selected'] as $zone_id) {
                    
377
                    
378	private function validateForm() {
                    
379		if (!$this->user->hasPermission('modify', 'localisation/zone')) {
                    
393
                    
394	private function validateDelete() {
                    
395		if (!$this->user->hasPermission('modify', 'localisation/zone')) {
                    
                
UploadHandler.php https://github.com/zikula-modules/Reviews.git | PHP | 404 lines
                    
1<?php
                    
2/**
                    
45        $this->imageFileTypes = array('gif', 'jpeg', 'jpg', 'png', 'swf');
                    
46        $this->forbiddenFileTypes = array('cgi', 'pl', 'asp', 'phtml', 'php', 'php3', 'php4', 'php5', 'exe', 'com', 'bat', 'jsp', 'cfm', 'shtml');
                    
47        $this->allowedFileSizes = array('review' => array('coverUpload' => 102400));
                    
71        // perform validation
                    
72        if (!$this->validateFileUpload($objectType, $fileData[$fieldName], $fieldName)) {
                    
73            // skip this upload field
                    
115     */
                    
116    protected function validateFileUpload($objectType, $file, $fieldName)
                    
117    {
                    
135    
                    
136        // validate extension
                    
137        $isValidExtension = $this->isAllowedFileExtension($objectType, $fieldName, $extension);
                    
141    
                    
142        // validate file size
                    
143        $maxSize = $this->allowedFileSizes[$objectType][$fieldName];
                    
                
BaseFcvalinmold.php https://github.com/cidesa/roraima-comunal.git | PHP | 714 lines
                    
1<?php
                    
2
                    
434	
                    
435	public function validate($columns = null)
                    
436	{
                    
436	{
                    
437		$res = $this->doValidate($columns);
                    
438		if ($res === true) {
                    
447	
                    
448	protected function doValidate($columns = null)
                    
449	{
                    
456
                    
457			if (($retval = FcvalinmoldPeer::doValidate($this, $columns)) !== true) {
                    
458				$failureMap = array_merge($failureMap, $retval);
                    
469	
                    
470	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
                    
471	{
                    
                
display-debug.page.php https://github.com/evadne/wp-e-commerce.git | PHP | 365 lines
                    
1<?php
                    
2/**
                    
13	global $wpdb;
                    
14	$fixpage = get_option('siteurl').'/wp-admin/admin.php?page=wpsc-sales-logs&amp;subpage=upgrade-purchase-logs';
                    
15	?>
                    
49			<li>
                    
50				<a href='?page=wpsc-debug&amp;wpsc_debug_action=phpinfo'>Display phpinfo</a>
                    
51			</li>
                    
52			<li>
                    
53				<a href='<?php echo $fixpage; ?>'>Fix Purchaselogs</a>
                    
54			</li>
                    
55		</ul>
                    
56		<?php
                    
57		if (defined('WPSC_ADD_DEBUG_PAGE') && (constant('WPSC_ADD_DEBUG_PAGE') == true)) {
                    
79			</ul>
                    
80			<?php
                    
81		}
                    
                
plugin.php https://github.com/colchambers/moodle.git | PHP | 352 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
55        global $CFG;
                    
56        require_once($CFG->libdir . '/filelib.php');
                    
57
                    
201        global $CFG;
                    
202        require_once($CFG->libdir . '/filelib.php');
                    
203        if ($this->extensions === null) {
                    
265        $langfiles = get_directory_list($basedir);
                    
266        $candidates = [];
                    
267        foreach ($langfiles as $langfile) {
                    
278                // Not an exact match but similar, for example "pt_br" is similar to "pt".
                    
279                $candidates[$lang] = $langfile;
                    
280            }
                    
281        }
                    
282        if (empty($js) && $candidates) {
                    
283            // Exact match was not found, take the first candidate.
                    
                
session.php https://github.com/mathieu/fusionforge.git | PHP | 552 lines
                    
1<?php
                    
2/**
                    
26
                    
27require_once $gfcommon.'include/account.php';
                    
28require_once $gfcommon.'include/escapingUtils.php';
                    
201			} else {
                    
202				// Invalidate (MD5) user_pw, refuse authentication
                    
203				$res = db_query ("UPDATE users
                    
214
                    
215		// if allowpending (for verify.php) then allow
                    
216		$userstatus=$usr['status'];
                    
490
                    
491//TODO - this should be generalized and used for pre.php, squal_pre.php, 
                    
492//SOAP, forum_gateway.php, tracker_gateway.php, etc to 
                    
547// Local Variables:
                    
548// mode: php
                    
549// c-file-style: "bsd"
                    
                
AdminLeoblogCategories.php https://gitlab.com/ptisky/API_prestashop | PHP | 459 lines
                    
1<?php
                    
2/**
                    
12
                    
13include_once(_PS_MODULE_DIR_.'leoblog/loader.php');
                    
14
                    
76		if (Configuration::get('PS_REWRITING_SETTINGS'))
                    
77			$url = str_replace('index.php', '', $url);
                    
78		return $url;
                    
102				{
                    
103					# validate module
                    
104					$parent_id = $root;
                    
133			{
                    
134				# validate module
                    
135				$megamenu = new leoblogcat((int)$id_leoblogcat);
                    
144			$megamenu->id_shop = $this->context->shop->id;
                    
145			if ($megamenu->validateFields(false) && $megamenu->validateFieldsLang(false))
                    
146			{
                    
                
api.php https://github.com/yamamoto123/Ushahidi_Web.git | PHP | 354 lines
                    
1<?php defined('SYSPATH') or die('No direct script access allowed.');
                    
2
                    
5 *
                    
6 * PHP version 5
                    
7 * LICENSE: This source file is subject to LGPL license
                    
67            // Test to see if rule checks have beens satisfied
                    
68            if ($post->validate() AND $post->action == 's')
                    
69            {
                    
179            
                    
180            // Validate the submitted data against the validation rules
                    
181            if ($post->validate())
                    
297            
                    
298            // Validate the submitted data against the validatieon rules
                    
299            if ($post->validate())
                    
                
address.tpl https://gitlab.com/elasa/shop2.elasa.ir | Smarty Template | 236 lines
                    
61							<label for="vat-number">{l s='VAT number'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
                    
62							<input type="text" class="form-control validate" data-validate="{$address_validation.$field_name.validate}" id="vat-number" name="vat_number" value="{if isset($smarty.post.vat_number)}{$smarty.post.vat_number}{else}{if isset($address->vat_number)}{$address->vat_number|escape:'html':'UTF-8'}{/if}{/if}" />
                    
63						</div>
                    
95					<label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
                    
96					<input class="validate form-control" data-validate="{$address_validation.$field_name.validate}" type="text" id="address2" name="address2" value="{if isset($smarty.post.address2)}{$smarty.post.address2}{else}{if isset($address->address2)}{$address->address2|escape:'html':'UTF-8'}{/if}{/if}" />
                    
97				</div>
                    
102					<label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label>
                    
103					<input class="is_required validate form-control" data-validate="{$address_validation.$field_name.validate}" type="text" id="postcode" name="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{else}{if isset($address->postcode)}{$address->postcode|escape:'html':'UTF-8'}{/if}{/if}" />
                    
104				</div>
                    
143					<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
                    
144					<input class="validate form-control" data-validate="{$address_validation.phone_mobile.validate}" type="tel" id="phone_mobile" name="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile}{else}{if isset($address->phone_mobile)}{$address->phone_mobile|escape:'html':'UTF-8'}{/if}{/if}" />
                    
145				</div>
                    
190			<label for="alias">{l s='Please assign an address title for future reference.'} <sup>*</sup></label>
                    
191			<input type="text" id="alias" class="is_required validate form-control" data-validate="{$address_validation.alias.validate}" name="alias" value="{if isset($smarty.post.alias)}{$smarty.post.alias}{else if isset($address->alias)}{$address->alias|escape:'html':'UTF-8'}{elseif !$select_address}{l s='My address'}{/if}" />
                    
192		</div>
                    
                
ConfigDependencyManager.php https://gitlab.com/reasonat/test8 | PHP | 351 lines
                    
1<?php
                    
2
                    
81 * provides the configuration entity class being installed. This is important
                    
82 * for configuration synchronization, which needs to be able to validate
                    
83 * configuration in the sync directory before the synchronization has occurred.
                    
                
ipayment_pp.php https://github.com/chrish123/oscommerce2.git | PHP | 258 lines
                    
1<?php
                    
2/*
                    
111                               tep_draw_hidden_field('silent_error_url', tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'payment_error=' . $this->code, 'SSL', true)) .
                    
112                               tep_draw_hidden_field('hidden_trigger_url', tep_href_link('ext/modules/payment/ipayment/callback_pp.php', '', 'SSL', false)) .
                    
113                               tep_draw_hidden_field('client_name', 'oscommerce') .
                    
179      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Transaction Method', 'MODULE_PAYMENT_IPAYMENT_PP_TRANSACTION_METHOD', 'Authorization', 'The processing method to use for each transaction.', '6', '0', 'tep_cfg_select_option(array(\'Authorization\', \'Capture\'), ', now())");
                    
180      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Secret Hash Password', 'MODULE_PAYMENT_IPAYMENT_PP_SECRET_HASH_PASSWORD', '', 'The secret hash password to validate transactions with', '6', '4', now())");
                    
181      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Transaction Notification (E-Mail)', 'MODULE_PAYMENT_IPAYMENT_PP_DEBUG_EMAIL', '', 'An e-mail address to send transaction notifications to.', '6', '0', now())");
                    
                
FileUploadForm.php https://gitlab.com/mohamed_hussein/prodt | PHP | 392 lines
                    
1<?php
                    
2
                    
169      // @todo Move validation in https://www.drupal.org/node/2988215
                    
170      '#process' => array_merge(['::validateUploadElement'], $process, ['::processUploadElement']),
                    
171      '#upload_validators' => $item->getUploadValidators(),
                    
193  /**
                    
194   * Validates the upload element.
                    
195   *
                    
203   */
                    
204  public function validateUploadElement(array $element, FormStateInterface $form_state) {
                    
205    if ($form_state::hasAnyErrors()) {
                    
                
Generic.php https://github.com/brion/mediawiki-svn.git | PHP | 490 lines
                    
1<?php
                    
2/**
                    
47	/*
                    
48	 * Validate a thumbnail parameter at parse time.
                    
49	 * Return true to accept the parameter, and false to reject it.
                    
51	 */
                    
52	abstract function validateParam( $name, $value );
                    
53
                    
120	 * @param $dstUrl String: Destination URL to use in output HTML
                    
121	 * @param $params Array: Arbitrary set of parameters validated by $this->validateParam()
                    
122	 */
                    
133	 * @param $dstUrl String: destination URL to use in output HTML
                    
134	 * @param $params Array: arbitrary set of parameters validated by $this->validateParam()
                    
135	 * @param $flags Integer: a bitfield, may contain self::TRANSFORM_LATER
                    
330
                    
331	function validateParam( $name, $value ) {
                    
332		if ( in_array( $name, array( 'width', 'height' ) ) ) {
                    
                
SecurityComponent.php https://gitlab.com/alexandresgv/siteentec | PHP | 405 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         0.10.8
                    
12 * @since         0.10.8
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
33 *
                    
34 * @link http://book.cakephp.org/3.0/en/controllers/components/security.html
                    
35 */
                    
55     *   Other checks like requireAuth(), requireSecure() etc. will still be applied.
                    
56     * - `validatePost` -  Whether to validate POST data. Set to false to disable
                    
57     *   for data coming from 3rd party services, etc.
                    
                
wp-cache-phase1.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 369 lines
                    
1<?php
                    
2// Pre-2.6 compatibility
                    
5
                    
6if( !include( WP_CONTENT_DIR . '/wp-cache-config.php' ) )
                    
7	return true;
                    
10
                    
11include( WPCACHEHOME . 'wp-cache-base.php');
                    
12
                    
26
                    
27require_once( WPCACHEHOME . 'wp-cache-phase2.php');
                    
28
                    
28
                    
29$plugins = glob( $wp_cache_plugins_dir . '/*.php' );
                    
30if( is_array( $plugins ) ) {
                    
48function gzip_accepted(){
                    
49	if( ini_get( 'zlib.output_compression' ) ) // don't compress WP-Cache data files when PHP is already doing it
                    
50		return false;
                    
                
local.php https://gitlab.com/Svyrydov/test-project | PHP | 903 lines
                    
1<?php 
                    
2
                    
34		
                    
35		// validate
                    
36		if( !acf_have_local_field_groups() ) {
                    
139		
                    
140		// validate
                    
141		$field_group = acf_get_valid_field_group($field_group);
                    
154			
                    
155			$field_group['local'] = 'php';
                    
156			
                    
224		// clear cache
                    
225		// - delete cache was origional added to ensure changes to JSON / PHP would appear in WP when using memcache
                    
226		// - the downside is that wp_cache_delet is taxing on the system so has been commented out
                    
425	
                    
426	// validate
                    
427	if( !acf_get_setting('local') ) {
                    
                
agent.php https://bitbucket.org/sriedel/iccrm-wip.git | PHP | 529 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2012 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
17 *
                    
18 * This class uses PHP's get_browser() to get details from the browsers user agent
                    
19 * string. If not available, it can use a coded alternative using the php_browscap.ini
                    
98			'enabled' => true,
                    
99			'url' => 'http://browsers.garykeith.com/stream.asp?Lite_PHP_BrowsCapINI',
                    
100			'method' => 'wrapper',
                    
437				curl_setopt($curl, CURLOPT_HEADER, 0);
                    
438				curl_setopt($curl, CURLOPT_USERAGENT, 'Fuel PHP framework - Agent class (http://fuelphp.com)');
                    
439				curl_setopt($curl, CURLOPT_URL, static::$config['browscap']['url']);
                    
444			case 'wrapper':
                    
445				ini_set('user_agent', 'Fuel PHP framework - Agent class (http://fuelphp.com)');
                    
446				$data = file_get_contents(static::$config['browscap']['url']);
                    
                
customer_group.php https://gitlab.com/hazelnuts23/unitedfoodstuff | PHP | 406 lines
                    
1<?php
                    
2class ControllerSaleCustomerGroup extends Controller {
                    
21
                    
22		if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm()) {
                    
23			$this->model_sale_customer_group->addCustomerGroup($this->request->post);
                    
53
                    
54		if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm()) {
                    
55			$this->model_sale_customer_group->editCustomerGroup($this->request->get['customer_group_id'], $this->request->post);
                    
85
                    
86		if (isset($this->request->post['selected']) && $this->validateDelete()) {
                    
87			foreach ($this->request->post['selected'] as $customer_group_id) {
                    
363
                    
364	protected function validateForm() {
                    
365		if (!$this->user->hasPermission('modify', 'sale/customer_group')) {
                    
377
                    
378	protected function validateDelete() {
                    
379		if (!$this->user->hasPermission('modify', 'sale/customer_group')) {
                    
                
Mvc.php https://bitbucket.org/zbahij/eprojets_app.git | PHP | 528 lines
                    
1<?php
                    
2/**
                    
64     * called more than once during the lifetime of a request. If a property
                    
65     * is updated, the cache is invalidated.
                    
66     *
                    
                
AdvancedServerDatabaseConfig.cs https://openHistorian.svn.codeplex.com/svn | C# | 388 lines
                    
10//
                    
11//      http://www.opensource.org/licenses/eclipse-1.0.php
                    
12//
                    
293
                    
294            ValidateExtension(IntermediateFileExtension, out intermediateFilePendingExtension, out intermediateFileFinalExtension);
                    
295            ValidateExtension(FinalFileExtension, out finalFilePendingExtension, out finalFileFinalExtension);
                    
358
                    
359            ValidateExtension(IntermediateFileExtension, out intermediateFilePendingExtension, out intermediateFileFinalExtension);
                    
360            ValidateExtension(FinalFileExtension, out finalFilePendingExtension, out finalFileFinalExtension);
                    
371
                    
372        private static void ValidateExtension(string extension, out string pending, out string final)
                    
373        {
                    
                
Abstract.php https://github.com/ticean/magento-mirror.git | PHP | 517 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) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
123     */
                    
124    public function useValidateRemoteAddr()
                    
125    {
                    
127        if (is_null($use)) {
                    
128            return parent::useValidateRemoteAddr();
                    
129        }
                    
137     */
                    
138    public function useValidateHttpVia()
                    
139    {
                    
                
Ftp.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 509 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 */
                    
115    /**
                    
116     * Validate connection string
                    
117     *
                    
121     */
                    
122    public function validateConnectionString($string)
                    
123    {
                    
143    {
                    
144        $params = $this->validateConnectionString($string);
                    
145        $port = isset($params['port']) ? intval($params['port']) : 21;
                    
                
class.Validator.php https://github.com/kennethjiang/Wolke.git | PHP | 528 lines
                    
2	/**
                    
3     * This file is a part of LibWebta, PHP class library.
                    
4     *
                    
481		/**
                    
482		 * Validate all data in array
                    
483		 *
                    
486		 */
                    
487		public function ValidateAll($array)
                    
488		{
                    
                
group__internalBasic.html https://github.com/blahblahblah5038/EECS341.git | HTML | 273 lines
                    
66
                    
67<p>Definition at line <a class="el" href="Client_8php_source.html#l01418">1418</a> of file <a class="el" href="Client_8php_source.html">Client.php</a>.</p>
                    
68
                    
68
                    
69<p>Referenced by <a class="el" href="Client_8php_source.html#l01052">CAS_Client::isAuthenticated()</a>, and <a class="el" href="Client_8php_source.html#l01489">CAS_Client::validateST()</a>.</p>
                    
70
                    
201<div class="memdoc">
                    
202<p>This method is used to validate a ST; halt on failure, and sets $validate_url, $text_reponse and $tree_response on success. These parameters are used later by CAS_Client::validatePGT() for CAS proxies. Used for all CAS 1.0 validations </p>
                    
203<dl><dt><b>Parameters:</b></dt><dd>
                    
214
                    
215<p>References <a class="el" href="Client_8php_source.html#l03009">CAS_Client::authError()</a>, <a class="el" href="Client_8php_source.html#l01912">CAS_Client::getCallbackURL()</a>, <a class="el" href="Client_8php_source.html#l00418">CAS_Client::getServerServiceValidateURL()</a>, <a class="el" href="Client_8php_source.html#l01418">CAS_Client::getST()</a>, <a class="el" href="Client_8php_source.html#l01809">CAS_Client::isProxy()</a>, <a class="el" href="Client_8php_source.html#l02690">CAS_Client::readExtraAttributesCas20()</a>, <a class="el" href="Client_8php_source.html#l02264">CAS_Client::readURL()</a>, <a class="el" href="Client_8php_source.html#l00876">CAS_Client::setUser()</a>, <a class="el" href="CAS_8php_source.html#l00538">phpCAS::trace()</a>, and <a class="el" href="CAS_8php_source.html#l00546">phpCAS::traceBegin()</a>.</p>
                    
216
                    
263
                    
264<p>Definition at line <a class="el" href="Client_8php_source.html#l01412">1412</a> of file <a class="el" href="Client_8php_source.html">Client.php</a>.</p>
                    
265
                    
                
sfValidatorDateTest.php https://github.com/bheneka/gitta.git | PHP | 246 lines
                    
1<?php
                    
2
                    
10
                    
11require_once(dirname(__FILE__).'/../../bootstrap/unit.php');
                    
12
                    
22
                    
23// validate strtotime formats
                    
24$t->diag('validate strtotime formats');
                    
39
                    
40// validate timestamp
                    
41$t->diag('validate timestamp');
                    
43
                    
44// validate date array
                    
45$t->diag('validate date array');
                    
86
                    
87// validate regex
                    
88$t->diag('validate regex');
                    
                
index.php http://pixie-cms.googlecode.com/svn/trunk/ | PHP | 548 lines
                    
43/* Check for config */
                    
44if ((!file_exists('admin/config.php')) or (filesize('admin/config.php') < 10)) {
                    
45	/* redirect to installer */
                    
88	}
                    
89	/* New! Built in php function. Tell php what the server timezone is so that we can use php 5's rewritten time and date functions with the correct time and without error messages */
                    
90	date_default_timezone_set("$server_timezone");
                    
95/* Import the validate library */
                    
96include_once 'admin/lib/lib_validate.php';
                    
97/* Import the date library */
                    
110if (strnatcmp(phpversion(), '5.0.0') >= 0) {
                    
111	/* Load the php5 version of simplepie if you are running php5 */
                    
112	include_once 'admin/lib/lib_simplepie_php5.php';
                    
159	if (file_exists("admin/themes/{$site_theme}/theme.php")) {
                    
160		/* New! Your custom theme file must be named theme.php instead of index.php */
                    
161		include_once("admin/themes/{$site_theme}/theme.php");
                    
                
election.php https://bitbucket.org/sahkoinenaanestys/sahkoinenaanestys.git | PHP | 422 lines
                    
1<?php
                    
2/**
                    
85			"calcMethod, totalWwwVotes, totalPaperVotes, \n". 
                    
86			"(SELECT SUM(votes + paperVotes) FROM candidate WHERE candidateNum=? AND candidate.election=election.electionId) ".
                    
87			"AS emptyVotes\n". //,
                    
149			//insert empty vote
                    
150			$candidateModel = new Candidate_Model;
                    
151			if($candidateModel->fetchByCompositeId(Candidate_Model::EMPTY_VOTE, $id) == false){
                    
152			    
                    
153			    $params = array('candidateNum'=>Candidate_Model::EMPTY_VOTE, 'firstName'=>EMPTY_VOTE_TEXT, 'election'=>$id);
                    
154			    $query = "candidateNum, firstName, election";
                    
155			    
                    
156			    if($candidateModel->insertInto($query, $params) == false){
                    
157				    $this->rollBack();
                    
177		    
                    
178			$candidateModel = new Candidate_Model;
                    
179			if($candidateModel->countByFieldValues(array('election'=>$electionId)) > 0){
                    
                
List.cs https://github.com/tforsberg/z.git | C# | 354 lines
                    
102                                FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender), 
                    
103                        new ValidateValueCallback(IsValidMarkerStyle));
                    
104
                    
125                                FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender),
                    
126                                new ValidateValueCallback(IsValidMarkerOffset));
                    
127
                    
149                                FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender), 
                    
150                        new ValidateValueCallback(IsValidStartIndex));
                    
151
                    
293
                    
294                TextRangeEdit.SetParagraphProperty(this.ElementStart, this.ElementEnd,
                    
295                    Paragraph.FlowDirectionProperty, firstBlock.GetValue(Paragraph.FlowDirectionProperty));
                    
                
SensorRunner.php https://gitlab.com/Drulenium-bot/monitoring | PHP | 351 lines
                    
1<?php
                    
2/**
                    
339      // No sensor names provided, clear all caches.
                    
340      Cache::invalidateTags(array('monitoring_sensor_result'));
                    
341    }
                    
                
Cloud.php https://gitlab.com/yousafsyed/easternglamor | PHP | 410 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26#require_once 'Zend/Tag/Item.php';
                    
27
                    
143    {
                    
144        // Validate and cleanup the tags
                    
145        $itemList = $this->getItemList();
                    
152            } else {
                    
153                #require_once 'Zend/Tag/Cloud/Exception.php';
                    
154                throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
                    
174        } else {
                    
175            #require_once 'Zend/Tag/Cloud/Exception.php';
                    
176            throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
                    
203        if (null === $this->_tags) {
                    
204            #require_once 'Zend/Tag/ItemList.php';
                    
205            $this->setItemList(new Zend_Tag_ItemList());
                    
                
CAutoComplete.php https://gitlab.com/zenfork/vektor | PHP | 294 lines
                    
1<?php
                    
2/**
                    
31	/**
                    
32	 * @var array data that would be saved as client-side data to provide candidate selections.
                    
33	 * Each array element can be string or an associative array.
                    
38	/**
                    
39	 * @var string|array the URL that can return the candidate selections.
                    
40	 * A 'q' GET parameter will be sent with the URL which contains what the user has entered so far.
                    
                
QueryPluginBase.php https://gitlab.com/reasonat/test8 | PHP | 353 lines
                    
1<?php
                    
2
                    
107
                    
108  public function validateOptionsForm(&$form, FormStateInterface $form_state) { }
                    
109
                    
                
EPhotoValidator.php https://github.com/LosYear/FluentCMS.git | PHP | 284 lines
                    
1<?php
                    
2Yii::import('application.modules.user.UserModule');
                    
157	
                    
158	protected function validateAttribute($object, $attribute)
                    
159	{
                    
159	{
                    
160		parent::validateAttribute($object, $attribute);
                    
161	}
                    
162	/**
                    
163	 * Internally validates a file object.
                    
164	 * @param CModel the object being validated
                    
164	 * @param CModel the object being validated
                    
165	 * @param string the attribute being validated
                    
166	 * @param CUploadedFile uploaded file passed to check against a set of rules
                    
167	 */
                    
168	public function validateFile($object, $attribute, $file) {
                    
169		// do parent validation
                    
                
jquery.validate.min.js http://flumpshop.googlecode.com/svn/trunk/ | JavaScript | 15 lines
                    
8 *
                    
9 * $Id: jquery.validate.js 6403 2009-06-17 14:27:16Z joern.zaefferer $
                    
10 *
                    
11 * Dual licensed under the MIT and GPL licenses:
                    
12 *   http://www.opensource.org/licenses/mit-license.php
                    
13 *   http://www.gnu.org/licenses/gpl.html
                    
14 */
                    
15eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(7($){$.H($.2L,{17:7(d){l(!6.F){d&&d.2q&&2T.1z&&1z.52("3y 3p, 4L\'t 17, 64 3y");8}p c=$.19(6[0],\'v\');l(c){8 c}c=2w $.v(d,6[0]);$.19(6[0],\'v\',c);l(c.q.3x){6.3s("1w, 3i").1o(".4E").3e(7(){c.3b=w});l(c.q.35){6.3s("1w, 3i").1o(":2s").3e(7(){c.1Z=6})}6.2s(7(b){l(c.q.2q)b.5J();7 1T(){l(c.q.35){l(c.1Z){p a=$("<1w 1V=\'5r\'/>").1s("u",c.1Z.u).33(c.1Z.Z).51(c.U)}c.q.35.V(c,c.U);l(c.1Z){a.3D()}8 N}8 w}l(c.3b){c.3b=N;8 1T()}l(c.L()){l(c.1b){c.1l=w;8 N}8 1T()}12{c.2l();8 N}})}8 c},J:7(){l($(6[0]).2W(\'L\')){8 6.17().L()}12{p b=w;p a=$(6[0].L).17();6.P(7(){b&=a.I(6)});8 b}},4D:7(c){p d={},$I=6;$.P(c.1I(/\\s/),7(a,b){d[b]=$I.1s(b);$I.6d(b)});8 d},1i:7(h,k){p f=6[0];l(h){p i=$.19(f.L,\'v\').q;p d=i.1i;p c=$.v.36(f);23(h){1e"1d":$.H(c,$.v.1X(k));d[f.u]=c;l(k.G)i.G[f.u]=$.H(i.G[f.u],k.G);31;1e"3D":l(!k){T d[f.u];8 c}p e={};$.P(k.1I(/\\s/),7(a,b){e[b]=c[b];T c[b]});8 e}}p g=$.v.41($.H({},$.v.3Y(f),$.v.3V(f),$.v.3T(f),$.v.36(f)),f);l(g.15){p j=g.15;T g.15;g=$.H({15:j},g)}8 g}});$.H($.5p[":"],{5n:7(a){8!$.1p(""+a.Z)},5g:7(a){8!!$.1p(""+a.Z)},5f:7(a){8!a.4h}});$.v=7(b,a){6.q=$.H(w,{},$.v.3d,b);6.U=a;6.3I()};$.v.W=7(c,b){l(R.F==1)8 7(){p a=$.3F(R);a.4V(c);8 $.v.W.1Q(6,a)};l(R.F>2&&b.2c!=3B){b=$.3F(R).4Q(1)}l(b.2c!=3B){b=[b]}$.P(b,7(i,n){c=c.1u(2w 3t("\\\\{"+i+"\\\\}","g"),n)});8 c};$.H($.v,{3d:{G:{},2a:{},1i:{},1c:"3r",28:"J",2F:"4P",2l:w,3o:$([]),2D:$([]),3x:w,3l:[],3k:N,4O:7(a){6.3U=a;l(6.q.4K&&!6.4J){6.q.1K&&6.q.1K.V(6,a,6.q.1c,6.q.28);6.1M(a).2A()}},4C:7(a){l(!6.1E(a)&&(a.u 11 6.1a||!6.K(a))){6.I(a)}},6c:7(a){l(a.u 11 6.1a||a==6.4A){6.I(a)}},68:7(a){l(a.u 11 6.1a)6.I(a);12 l(a.4x.u 11 6.1a)6.I(a.4x)},39:7(a,c,b){$(a).22(c).2v(b)},1K:7(a,c,b){$(a).2v(c).22(b)}},63:7(a){$.H($.v.3d,a)},G:{15:"61 4r 2W 15.",1q:"M 2O 6 4r.",1J:"M O a J 1J 5X.",1B:"M O a J 5W.",1A:"M O a J 1A.",2j:"M O a J 1A (5Q).",1G:"M O a J 1G.",1P:"M O 5O 1P.",2f:"M O a J 5L 5I 1G.",2o:"M O 47 5F Z 5B.",43:"M O a Z 5z a J 5x.",18:$.v.W("M O 3K 5v 2X {0} 2V."),1y:$.v.W("M O 5t 5s {0} 2V."),2i:$.v.W("M O a Z 3W {0} 3O {1} 2V 5o."),2r:$.v.W("M O a Z 3W {0} 3O {1}."),1C:$.v.W("M O a Z 5j 2X 46 3M 3L {0}."),1t:$.v.W("M O a Z 5d 2X 46 3M 3L {0}.")},3J:N,5a:{3I:7(){6.24=$(6.q.2D);6.4t=6.24.F&&6.24||$(6.U);6.2x=$(6.q.3o).1d(6.q.2D);6.1a={};6.54={};6.1b=0;6.1h={};6.1f={};6.21();p f=(6.2a={});$.P(6.q.2a,7(d,c){$.P(c.1I(/\\s/),7(a,b){f[b]=d})});p e=6.q.1i;$.P(e,7(b,a){e[b]=$.v.1X(a)});7 2N(a){p b=$.19(6[0].L,"v"),3c="4W"+a.1V.1u(/^17/,"");b.q[3c]&&b.q[3c].V(b,6[0])}$(6.U).2K(":3E, :4U, :4T, 2e, 4S","2d 2J 4R",2N).2K(":3C, :3A, 2e, 3z","3e",2N);l(6.q.3w)$(6.U).2I("1f-L.17",6.q.3w)},L:7(){6.3v();$.H(6.1a,6.1v);6.1f=$.H({},6.1v);l(!6.J())$(6.U).3u("1f-L",[6]);6.1m();8 6.J()},3v:7(){6.2H();Q(p i=0,14=(6.2b=6.14());14[i];i++){6.29(14[i])}8 6.J()},I:7(a){a=6.2G(a);6.4A=a;6.2P(a);6.2b=$(a);p b=6.29(a);l(b){T 6.1f[a.u]}12{6.1f[a.u]=w}l(!6.3q()){6.13=6.13.1d(6.2x)}6.1m();8 b},1m:7(b){l(b){$.H(6.1v,b);6.S=[];Q(p c 11 b){6.S.27({1j:b[c],I:6.26(c)[0]})}6.1n=$.3n(6.1n,7(a){8!(a.u 11 b)})}6.q.1m?6.q.1m.V(6,6.1v,6.S):6.3m()},2S:7(){l($.2L.2S)$(6.U).2S();6.1a={};6.2H();6.2Q();6.14().2v(6.q.1c)},3q:7(){8 6.2k(6.1f)},2k:7(a){p b=0;Q(p i 11 a)b++;8 b},2Q:7(){6.2C(6.13).2A()},J:7(){8 6.3j()==0},3j:7(){8 6.S.F},2l:7(){l(6.q.2l){3Q{$(6.3h()||6.S.F&&6.S[0].I||[]).1o(":4N").3g().4M("2d")}3f(e){}}},3h:7(){p a=6.3U;8 a&&$.3n(6.S,7(n){8 n.I.u==a.u}).F==1&&a},14:7(){p a=6,2B={};8 $([]).1d(6.U.14).1o(":1w").1L(":2s, :21, :4I, [4H]").1L(6.q.3l).1o(7(){!6.u&&a.q.2q&&2T.1z&&1z.3r("%o 4G 3K u 4F",6);l(6.u 11 2B||!a.2k($(6).1i()))8 N;2B[6.u]=w;8 w})},2G:7(a){8 $(a)[0]},2z:7(){8 $(6.q.2F+"."+6.q.1c,6.4t)},21:7(){6.1n=[];6.S=[];6.1v={};6.1k=$([]);6.13=$([]);6.2b=$([])},2H:7(){6.21();6.13=6.2z().1d(6.2x)},2P:7(a){6.21();6.13=6.1M(a)},29:7(d){d=6.2G(d);l(6.1E(d)){d=6.26(d.u)[0]}p a=$(d).1i();p c=N;Q(Y 11 a){p b={Y:Y,2n:a[Y]};3Q{p f=$.v.1N[Y].V(6,d.Z.1u(/\\r/g,""),d,b.2n);l(f=="1S-1Y"){c=w;6g}c=N;l(f=="1h"){6.13=6.13.1L(6.1M(d));8}l(!f){6.4B(d,b);8 N}}3f(e){6.q.2q&&2T.1z&&1z.6f("6e 6b 6a 69 I "+d.4z+", 29 47 \'"+b.Y+"\' Y",e);67 e;}}l(c)8;l(6.2k(a))6.1n.27(d);8 w},4y:7(a,b){l(!$.1H)8;p c=6.q.3a?$(a).1H()[6.q.3a]:$(a).1H();8 c&&c.G&&c.G[b]},4w:7(a,b){p m=6.q.G[a];8 m&&(m.2c==4v?m:m[b])},4u:7(){Q(p i=0;i<R.F;i++){l(R[i]!==20)8 R[i]}8 20},2u:7(a,b){8 6.4u(6.4w(a.u,b),6.4y(a,b),!6.q.3k&&a.62||20,$.v.G[b],"<4s>60: 5Z 1j 5Y Q "+a.u+"</4s>")},4B:7(b,a){p c=6.2u(b,a.Y),37=/\\$?\\{(\\d+)\\}/g;l(1g c=="7"){c=c.V(6,a.2n,b)}12 l(37.16(c)){c=1F.W(c.1u(37,\'{$1}\'),a.2n)}6.S.27({1j:c,I:b});6.1v[b.u]=c;6.1a[b.u]=c},2C:7(a){l(6.q.2t)a=a.1d(a.4q(6.q.2t));8 a},3m:7(){Q(p i=0;6.S[i];i++){p a=6.S[i];6.q.39&&6.q.39.V(6,a.I,6.q.1c,6.q.28);6.2E(a.I,a.1j)}l(6.S.F){6.1k=6.1k.1d(6.2x)}l(6.q.1x){Q(p i=0;6.1n[i];i++){6.2E(6.1n[i])}}l(6.q.1K){Q(p i=0,14=6.4p();14[i];i++){6.q.1K.V(6,14[i],6.q.1c,6.q.28)}}6.13=6.13.1L(6.1k);6.2Q();6.2C(6.1k).4o()},4p:7(){8 6.2b.1L(6.4n())},4n:7(){8 $(6.S).4m(7(){8 6.I})},2E:7(a,c){p b=6.1M(a);l(b.F){b.2v().22(6.q.1c);b.1s("4l")&&b.4k(c)}12{b=$("<"+6.q.2F+"/>").1s({"Q":6.34(a),4l:w}).22(6.q.1c).4k(c||"");l(6.q.2t){b=b.2A().4o().5V("<"+6.q.2t+"/>").4q()}l(!6.24.5S(b).F)6.q.4j?6.q.4j(b,$(a)):b.5R(a)}l(!c&&6.q.1x){b.3E("");1g 6.q.1x=="1D"?b.22(6.q.1x):6.q.1x(b)}6.1k=6.1k.1d(b)},1M:7(a){p b=6.34(a);8 6.2z().1o(7(){8 $(6).1s(\'Q\')==b})},34:7(a){8 6.2a[a.u]||(6.1E(a)?a.u:a.4z||a.u)},1E:7(a){8/3C|3A/i.16(a.1V)},26:7(d){p c=6.U;8 $(4i.5P(d)).4m(7(a,b){8 b.L==c&&b.u==d&&b||4g})},1O:7(a,b){23(b.4f.4e()){1e\'2e\':8 $("3z:3p",b).F;1e\'1w\':l(6.1E(b))8 6.26(b.u).1o(\':4h\').F}8 a.F},4d:7(b,a){8 6.32[1g b]?6.32[1g b](b,a):w},32:{"5N":7(b,a){8 b},"1D":7(b,a){8!!$(b,a.L).F},"7":7(b,a){8 b(a)}},K:7(a){8!$.v.1N.15.V(6,$.1p(a.Z),a)&&"1S-1Y"},4c:7(a){l(!6.1h[a.u]){6.1b++;6.1h[a.u]=w}},4b:7(a,b){6.1b--;l(6.1b<0)6.1b=0;T 6.1h[a.u];l(b&&6.1b==0&&6.1l&&6.L()){$(6.U).2s();6.1l=N}12 l(!b&&6.1b==0&&6.1l){$(6.U).3u("1f-L",[6]);6.1l=N}},2h:7(a){8 $.19(a,"2h")||$.19(a,"2h",{2M:4g,J:w,1j:6.2u(a,"1q")})}},1R:{15:{15:w},1J:{1J:w},1B:{1B:w},1A:{1A:w},2j:{2j:w},4a:{4a:w},1G:{1G:w},49:{49:w},1P:{1P:w},2f:{2f:w}},48:7(a,b){a.2c==4v?6.1R[a]=b:$.H(6.1R,a)},3V:7(b){p a={};p c=$(b).1s(\'5H\');c&&$.P(c.1I(\' \'),7(){l(6 11 $.v.1R){$.H(a,$.v.1R[6])}});8 a},3T:7(c){p a={};p d=$(c);Q(Y 11 $.v.1N){p b=d.1s(Y);l(b){a[Y]=b}}l(a.18&&/-1|5G|5C/.16(a.18)){T a.18}8 a},3Y:7(a){l(!$.1H)8{};p b=$.19(a.L,\'v\').q.3a;8 b?$(a).1H()[b]:$(a).1H()},36:7(b){p a={};p c=$.19(b.L,\'v\');l(c.q.1i){a=$.v.1X(c.q.1i[b.u])||{}}8 a},41:7(d,e){$.P(d,7(c,b){l(b===N){T d[c];8}l(b.2R||b.2p){p a=w;23(1g b.2p){1e"1D":a=!!$(b.2p,e.L).F;31;1e"7":a=b.2p.V(e,e);31}l(a){d[c]=b.2R!==20?b.2R:w}12{T d[c]}}});$.P(d,7(a,b){d[a]=$.44(b)?b(e):b});$.P([\'1y\',\'18\',\'1t\',\'1C\'],7(){l(d[6]){d[6]=2Z(d[6])}});$.P([\'2i\',\'2r\'],7(){l(d[6]){d[6]=[2Z(d[6][0]),2Z(d[6][1])]}});l($.v.3J){l(d.1t&&d.1C){d.2r=[d.1t,d.1C];T d.1t;T d.1C}l(d.1y&&d.18){d.2i=[d.1y,d.18];T d.1y;T d.18}}l(d.G){T d.G}8 d},1X:7(a){l(1g a=="1D"){p b={};$.P(a.1I(/\\s/),7(){b[6]=w});a=b}8 a},5A:7(c,a,b){$.v.1N[c]=a;$.v.G[c]=b!=20?b:$.v.G[c];l(a.F<3){$.v.48(c,$.v.1X(c))}},1N:{15:7(c,d,a){l(!6.4d(a,d))8"1S-1Y";23(d.4f.4e()){1e\'2e\':p b=$(d).33();8 b&&b.F>0;1e\'1w\':l(6.1E(d))8 6.1O(c,d)>0;5y:8 $.1p(c).F>0}},1q:7(f,h,j){l(6.K(h))8"1S-1Y";p g=6.2h(h);l(!6.q.G[h.u])6.q.G[h.u]={};g.40=6.q.G[h.u].1q;6.q.G[h.u].1q=g.1j;j=1g j=="1D"&&{1B:j}||j;l(g.2M!==f){g.2M=f;p k=6;6.4c(h);p i={};i[h.u]=f;$.2U($.H(w,{1B:j,3Z:"2Y",3X:"17"+h.u,5w:"5u",19:i,1x:7(d){k.q.G[h.u].1q=g.40;p b=d===w;l(b){p e=k.1l;k.2P(h);k.1l=e;k.1n.27(h);k.1m()}12{p a={};p c=(g.1j=d||k.2u(h,"1q"));a[h.u]=$.44(c)?c(f):c;k.1m(a)}g.J=b;k.4b(h,b)}},j));8"1h"}12 l(6.1h[h.u]){8"1h"}8 g.J},1y:7(b,c,a){8 6.K(c)||6.1O($.1p(b),c)>=a},18:7(b,c,a){8 6.K(c)||6.1O($.1p(b),c)<=a},2i:7(b,d,a){p c=6.1O($.1p(b),d);8 6.K(d)||(c>=a[0]&&c<=a[1])},1t:7(b,c,a){8 6.K(c)||b>=a},1C:7(b,c,a){8 6.K(c)||b<=a},2r:7(b,c,a){8 6.K(c)||(b>=a[0]&&b<=a[1])},1J:7(a,b){8 6.K(b)||/^((([a-z]|\\d|[!#\\$%&\'\\*\\+\\-\\/=\\?\\^X`{\\|}~]|[\\E-\\B\\C-\\x\\A-\\y])+(\\.([a-z]|\\d|[!#\\$%&\'\\*\\+\\-\\/=\\?\\^X`{\\|}~]|[\\E-\\B\\C-\\x\\A-\\y])+)*)|((\\3S)((((\\2m|\\1W)*(\\30\\3R))?(\\2m|\\1W)+)?(([\\3P-\\5q\\45\\42\\5D-\\5E\\3N]|\\5m|[\\5l-\\5k]|[\\5i-\\5K]|[\\E-\\B\\C-\\x\\A-\\y])|(\\\\([\\3P-\\1W\\45\\42\\30-\\3N]|[\\E-\\B\\C-\\x\\A-\\y]))))*(((\\2m|\\1W)*(\\30\\3R))?(\\2m|\\1W)+)?(\\3S)))@((([a-z]|\\d|[\\E-\\B\\C-\\x\\A-\\y])|(([a-z]|\\d|[\\E-\\B\\C-\\x\\A-\\y])([a-z]|\\d|-|\\.|X|~|[\\E-\\B\\C-\\x\\A-\\y])*([a-z]|\\d|[\\E-\\B\\C-\\x\\A-\\y])))\\.)+(([a-z]|[\\E-\\B\\C-\\x\\A-\\y])|(([a-z]|[\\E-\\B\\C-\\x\\A-\\y])([a-z]|\\d|-|\\.|X|~|[\\E-\\B\\C-\\x\\A-\\y])*([a-z]|[\\E-\\B\\C-\\x\\A-\\y])))\\.?$/i.16(a)},1B:7(a,b){8 6.K(b)||/^(5h?|5M):\\/\\/(((([a-z]|\\d|-|\\.|X|~|[\\E-\\B\\C-\\x\\A-\\y])|(%[\\1U-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:)*@)?(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5]))|((([a-z]|\\d|[\\E-\\B\\C-\\x\\A-\\y])|(([a-z]|\\d|[\\E-\\B\\C-\\x\\A-\\y])([a-z]|\\d|-|\\.|X|~|[\\E-\\B\\C-\\x\\A-\\y])*([a-z]|\\d|[\\E-\\B\\C-\\x\\A-\\y])))\\.)+(([a-z]|[\\E-\\B\\C-\\x\\A-\\y])|(([a-z]|[\\E-\\B\\C-\\x\\A-\\y])([a-z]|\\d|-|\\.|X|~|[\\E-\\B\\C-\\x\\A-\\y])*([a-z]|[\\E-\\B\\C-\\x\\A-\\y])))\\.?)(:\\d*)?)(\\/((([a-z]|\\d|-|\\.|X|~|[\\E-\\B\\C-\\x\\A-\\y])|(%[\\1U-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)+(\\/(([a-z]|\\d|-|\\.|X|~|[\\E-\\B\\C-\\x\\A-\\y])|(%[\\1U-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)*)*)?)?(\\?((([a-z]|\\d|-|\\.|X|~|[\\E-\\B\\C-\\x\\A-\\y])|(%[\\1U-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)|[\\5e-\\5T]|\\/|\\?)*)?(\\#((([a-z]|\\d|-|\\.|X|~|[\\E-\\B\\C-\\x\\A-\\y])|(%[\\1U-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)|\\/|\\?)*)?$/i.16(a)},1A:7(a,b){8 6.K(b)||!/5U|5c/.16(2w 5b(a))},2j:7(a,b){8 6.K(b)||/^\\d{4}[\\/-]\\d{1,2}[\\/-]\\d{1,2}$/.16(a)},1G:7(a,b){8 6.K(b)||/^-?(?:\\d+|\\d{1,3}(?:,\\d{3})+)(?:\\.\\d+)?$/.16(a)},1P:7(a,b){8 6.K(b)||/^\\d+$/.16(a)},2f:7(b,e){l(6.K(e))8"1S-1Y";l(/[^0-9-]+/.16(b))8 N;p a=0,d=0,2g=N;b=b.1u(/\\D/g,"");Q(p n=b.F-1;n>=0;n--){p c=b.59(n);p d=58(c,10);l(2g){l((d*=2)>9)d-=9}a+=d;2g=!2g}8(a%10)==0},43:7(b,c,a){a=1g a=="1D"?a.1u(/,/g,\'|\'):"57|56?g|55";8 6.K(c)||b.65(2w 3t(".("+a+")$","i"))},2o:7(c,d,a){p b=$(a).66(".17-2o").2I("3H.17-2o",7(){$(d).J()});8 c==b.33()}}});$.W=$.v.W})(1F);(7($){p c=$.2U;p d={};$.2U=7(a){a=$.H(a,$.H({},$.53,a));p b=a.3X;l(a.3Z=="2Y"){l(d[b]){d[b].2Y()}8(d[b]=c.1Q(6,R))}8 c.1Q(6,R)}})(1F);(7($){l(!1F.1r.38.2d&&!1F.1r.38.2J&&4i.3G){$.P({3g:\'2d\',3H:\'2J\'},7(b,a){$.1r.38[a]={50:7(){6.3G(b,2y,w)},4Z:7(){6.4Y(b,2y,w)},2y:7(e){R[0]=$.1r.2O(e);R[0].1V=a;8 $.1r.1T.1Q(6,R)}};7 2y(e){e=$.1r.2O(e);e.1V=a;8 $.1r.1T.V(6,e)}})};$.H($.2L,{2K:7(d,e,c){8 6.2I(e,7(a){p b=$(a.4X);l(b.2W(d)){8 c.1Q(b,R)}})}})})(1F);',62,389,'||||||this|function|return|||||||||||||if||||var|settings||||name|validator|true|uFDCF|uFFEF||uFDF0|uD7FF|uF900||u00A0|length|messages|extend|element|valid|optional|form|Please|false|enter|each|for|arguments|errorList|delete|currentForm|call|format|_|method|value||in|else|toHide|elements|required|test|validate|maxlength|data|submitted|pendingRequest|errorClass|add|case|invalid|typeof|pending|rules|message|toShow|formSubmitted|showErrors|successList|filter|trim|remote|event|attr|min|replace|errorMap|input|success|minlength|console|date|url|max|string|checkable|jQuery|number|metadata|split|email|unhighlight|not|errorsFor|methods|getLength|digits|apply|classRuleSettings|dependency|handle|da|type|x09|normalizeRule|mismatch|submitButton|undefined|reset|addClass|switch|labelContainer||findByName|push|validClass|check|groups|currentElements|constructor|focusin|select|creditcard|bEven|previousValue|rangelength|dateISO|objectLength|focusInvalid|x20|parameters|equalTo|depends|debug|range|submit|wrapper|defaultMessage|removeClass|new|containers|handler|errors|hide|rulesCache|addWrapper|errorLabelContainer|showLabel|errorElement|clean|prepareForm|bind|focusout|validateDelegate|fn|old|delegate|fix|prepareElement|hideErrors|param|resetForm|window|ajax|characters|is|than|abort|Number|x0d|break|dependTypes|val|idOrName|submitHandler|staticRules|theregex|special|highlight|meta|cancelSubmit|eventType|defaults|click|catch|focus|findLastActive|button|size|ignoreTitle|ignore|defaultShowErrors|grep|errorContainer|selected|numberOfInvalids|error|find|RegExp|triggerHandler|checkForm|invalidHandler|onsubmit|nothing|option|checkbox|Array|radio|remove|text|makeArray|addEventListener|blur|init|autoCreateRanges|no|to|equal|x7f|and|x01|try|x0a|x22|attributeRules|lastActive|classRules|between|port|metadataRules|mode|originalMessage|normalizeRules|x0c|accept|isFunction|x0b|or|the|addClassRules|numberDE|dateDE|stopRequest|startRequest|depend|toLowerCase|nodeName|null|checked|document|errorPlacement|html|generated|map|invalidElements|show|validElements|parent|field|strong|errorContext|findDefined|String|customMessage|parentNode|customMetaMessage|id|lastElement|formatAndAdd|onfocusout|removeAttrs|cancel|assigned|has|disabled|image|blockFocusCleanup|focusCleanup|can|trigger|visible|onfocusin|label|slice|keyup|textarea|file|password|unshift|on|target|removeEventListener|teardown|setup|appendTo|warn|ajaxSettings|valueCache|gif|jpe|png|parseInt|charAt|prototype|Date|NaN|greater|uE000|unchecked|filled|https|x5d|less|x5b|x23|x21|blank|long|expr|x08|hidden|least|at|json|more|dataType|extension|default|with|addMethod|again|524288|x0e|x1f|same|2147483647|class|card|preventDefault|x7e|credit|ftp|boolean|only|getElementsByName|ISO|insertAfter|append|uF8FF|Invalid|wrap|URL|address|defined|No|Warning|This|title|setDefaults|returning|match|unbind|throw|onclick|checking|when|occured|onkeyup|removeAttr|exception|log|continue'.split('|'),0,{}))
                    
                
actions.class.php https://github.com/dada888/phpcollab3.git | PHP | 291 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * This file is part of the phpCollab3 package.
                    
4 * (c) 2009 Ideato s.r.l. <phpcollab@ideato.it>
                    
10 *
                    
11 * @package    phpCollab3
                    
12 * @subpackage idProjectManagementPlugin Modules
                    
17 *
                    
18 * @package    phpCollab3
                    
19 * @subpackage idProjectManagementPlugin Modules
                    
23{
                    
24  private function validateStaffForm(sfWebRequest $request)
                    
25  {
                    
179  {
                    
180    $this->form = $this->validateStaffForm($request);
                    
181    $this->setTemplate('staffList');
                    
                
CreditCard.php https://github.com/michaelmcandrew/vaw.git | PHP | 297 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
16 * @category  Validate
                    
17 * @package   Validate_Finance_CreditCard
                    
18 * @author    Stefan Neufeind <pear.neufeind@speedpartner.de>
                    
22 * @version   CVS: $Id: CreditCard.php,v 1.13 2007/09/16 16:42:34 kguest Exp $
                    
23 * @link      http://pear.php.net/package/Validate_Finance_CreditCard
                    
24 */
                    
42 * @copyright 1997-2005  Stefan Neufeind
                    
43 * @license   http://www.opensource.org/licenses/bsd-license.php  New BSD License
                    
44 * @version   Release: @package_version@
                    
44 * @version   Release: @package_version@
                    
45 * @link      http://pear.php.net/package/Validate_Finance_CreditCard
                    
46 */
                    
233     * This method only checks for the format. It doesn't
                    
234     * validate that the value is the one on the card.
                    
235     *
                    
                
YamlFileLoader.php https://bitbucket.org/cryofrost/portal.git | PHP | 339 lines
                    
1<?php
                    
2
                    
241    {
                    
242        return $this->validate(Yaml::parse($file), $file);
                    
243    }
                    
245    /**
                    
246     * Validates a YAML file.
                    
247     *
                    
254     */
                    
255    private function validate($content, $file)
                    
256    {
                    
                
facebook.php https://github.com/hpgihan/cronus.git | PHP | 348 lines
                    
1<?php
                    
2// Copyright 2004-2008 Facebook. All Rights Reserved.
                    
4// +---------------------------------------------------------------------------+
                    
5// | Facebook Platform PHP5 client                                             |
                    
6// +---------------------------------------------------------------------------+
                    
34
                    
35include_once 'facebookapi_php5_restlib.php';
                    
36
                    
54
                    
55    $this->validate_fb_params();
                    
56    if (isset($this->fb_params['friends'])) {
                    
63
                    
64  public function validate_fb_params($resolve_auth_token=true) {
                    
65    $this->fb_params = $this->get_valid_fb_params($_POST, 48*3600, 'fb_sig');
                    
124
                    
125  // Invalidate the session currently being used, and clear any state associated with it
                    
126  public function expire_session() {
                    
                
ScrollBar.js https://github.com/stephaneerard/qooxdoo.git | JavaScript | 429 lines
                    
11     LGPL: http://www.gnu.org/licenses/lgpl.html
                    
12     EPL: http://www.eclipse.org/org/documents/epl-v10.php
                    
13     See the LICENSE file in the project's left-level directory for details.
                    
132     *
                    
133     * Strictly validates according to {@link #maximum}.
                    
134     * Does not apply any correction to the incoming value. If you depend
                    
                
ReporteEgresoView.php https://bitbucket.org/raboit/sisfac.git | PHP | 286 lines
                    
1<?php
                    
2
                    
19                        $default_border = array(
                    
20                            'style' => PHPExcel_Style_Border::BORDER_THIN,
                    
21                            'color' => array('rgb'=>'000000')
                    
31                                                    'fill' => array(
                    
32                                'type' => PHPExcel_Style_Fill::FILL_SOLID,
                    
33                                'color' => array('rgb'=>'819FF7'),
                    
245				foreach($this->columns as $n=>$column)
                    
246					self::$objPHPExcel->getActiveSheet()->getColumnDimension($this->columnName($n+1))->setAutoSize(true);
                    
247			
                    
248			//create writer for saving
                    
249			$objWriter = PHPExcel_IOFactory::createWriter(self::$objPHPExcel, $this->exportType);
                    
250			if(!$this->stream)
                    
258                                }
                    
259				header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
                    
260				header('Pragma: public');
                    
                
topic.php https://github.com/mkfmn/cake-forum.git | PHP | 467 lines
                    
1<?php
                    
2/** 
                    
6 * @copyright	Copyright 2006-2010, Miles Johnson, Inc.
                    
7 * @license		http://opensource.org/licenses/mit-license.php - Licensed under The MIT License
                    
8 * @link		http://milesj.me/resources/script/forum-plugin
                    
93	 */
                    
94	public $validate = array(
                    
95		'title' => 'notEmpty',
                    
114	/**
                    
115	 * Validate and add a topic.
                    
116	 *
                    
123		
                    
124		if ($this->validates()) {
                    
125			$isAdmin = $this->Session->read('Forum.isAdmin');
                    
127			if (($secondsLeft = $this->checkFlooding($this->settings['topic_flood_interval'])) > 0 && !$isAdmin) {
                    
128				return $this->invalidate('title', 'You must wait %s more second(s) till you can post a topic', $secondsLeft);
                    
129				
                    
                
Entry.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 630 lines
                    
1<?php
                    
2
                    
14 * 
                    
15 * PHP version 5
                    
16 *
                    
18 * @package   WindowsAzure\Common\Internal\Atom
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright 2012 Microsoft Corporation
                    
21 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
22 * @link      https://github.com/WindowsAzure/azure-sdk-for-php
                    
23 */
                    
27use WindowsAzure\Common\Internal\Resources;
                    
28use WindowsAzure\Common\Internal\Validate;
                    
29
                    
34 * @package   WindowsAzure\Common\Internal\Atom
                    
35 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
36 * @copyright 2012 Microsoft Corporation
                    
                
file.php https://bitbucket.org/cisash/fananeen.git | PHP | 324 lines
                    
1<?php
                    
2
                    
12        'description' => __('File', 'wpcf'),
                    
13        'validate' => array('required'),
                    
14        'meta_box_js' => array(
                    
105                window.wpcf_formfield = '#'+jQuery(this).attr('id')+'-holder';
                    
106                tb_show('<?php
                    
107    _e('Upload file', 'wpcf');
                    
108
                    
109    ?>', 'media-upload.php?post_id=<?php echo $post->ID; ?>&type=file&wpcf-fields-media-insert=1&TB_iframe=true');
                    
110                return false;
                    
124    </script>
                    
125    <?php
                    
126}
                    
142    </style>
                    
143    <?php
                    
144}
                    
                
training_partner_game_update.php https://bitbucket.org/itoxable/chiron-gaming.git | PHP | 264 lines
                    
1<?php
                    
2/*******************************************************************************/
                    
6
                    
7include('general_include.php');
                    
8include"checklogin.php";
                    
35	$err_msgs .= $AdminManagerObjAjax->DuplicateCheck(TABLEPREFIX."_user_game","game_id",$game_id,"Game","user_game_id",$user_game_id,"user_id",$u_id,"user_type_id",3);
                    
36	/*$err_msgs .=$AdminManagerObjAjax->Validate(strip_tags($ladder_id),"Ladder","EMP",$type="");
                    
37	$err_msgs .=$AdminManagerObjAjax->Validate(strip_tags($race_id),"Race","EMP",$type="");
                    
37	$err_msgs .=$AdminManagerObjAjax->Validate(strip_tags($race_id),"Race","EMP",$type="");
                    
38	$err_msgs .=$AdminManagerObjAjax->Validate(strip_tags($server_id),"Server","EMP",$type="");*/
                    
39	/* Error Checking Ends */	
                    
112		}		
                    
113		echo "<script>window.location.href='training_partner_gamemanager.php?messg=".$msgreport."&u_id=".$u_id."&IsPreserved=Y'</script>";
                    
114		exit; 
                    
                
PathCheckoutCommandTest.java https://bitbucket.org/cofarrell/jgit.git | Java | 309 lines
                    
7 * accompanies this distribution, is reproduced below, and is
                    
8 * available at http://www.eclipse.org/org/documents/edl-v10.php
                    
9 *
                    
188
                    
189		validateIndex(git);
                    
190	}
                    
191
                    
192	public static void validateIndex(Git git) throws NoWorkTreeException,
                    
193			IOException {
                    
                
CollectionValidatorTest.php https://github.com/nattaphat/hgis.git | PHP | 412 lines
                    
1<?php
                    
2
                    
21
                    
22abstract class CollectionValidatorTest extends \PHPUnit_Framework_TestCase
                    
23{
                    
50
                    
51        $this->validator->validate(null, new Collection(array('fields' => array(
                    
52            'foo' => new Range(array('min' => 4)),
                    
62
                    
63        $this->validator->validate($data, new Collection(array(
                    
64            'foo' => new Range(array('min' => 4)),
                    
72    {
                    
73        $this->validator->validate('foobar', new Collection(array('fields' => array(
                    
74            'foo' => new Range(array('min' => 4)),
                    
89            $this->context->expects($this->at($i++))
                    
90                ->method('validateValue')
                    
91                ->with($value, $constraint, '['.$key.']', 'MyGroup');
                    
                
Abstract.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 456 lines
                    
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'");
                    
330        } else {
                    
331            require_once 'Zend/Validate/Exception.php';
                    
332            throw new Zend_Validate_Exception('Invalid translator specified');
                    
377        } else {
                    
378            require_once 'Zend/Validate/Exception.php';
                    
379            throw new Zend_Validate_Exception('Invalid translator specified');
                    
                
length_class.php https://bitbucket.org/elena_dyavolova/omf.git | PHP | 412 lines
                    
1<?php
                    
2class ControllerLocalisationLengthClass extends Controller {
                    
21		
                    
22		if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm()) {
                    
23			$this->model_localisation_length_class->addLengthClass($this->request->post);
                    
53		
                    
54		if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm()) {
                    
55			$this->model_localisation_length_class->editLengthClass($this->request->get['length_class_id'], $this->request->post);
                    
85		
                    
86		if (isset($this->request->post['selected']) && $this->validateDelete()) {
                    
87			foreach ($this->request->post['selected'] as $length_class_id) {
                    
363
                    
364	protected function validateForm() {
                    
365		if (!$this->user->hasPermission('modify', 'localisation/length_class')) {
                    
385
                    
386	protected function validateDelete() {
                    
387		if (!$this->user->hasPermission('modify', 'localisation/length_class')) {
                    
                
GameLiftClient.php https://github.com/ocStore/ocStore.git | PHP | 200 lines
                    
1<?php
                    
2namespace Aws\GameLift;
                    
196 * @method \GuzzleHttp\Promise\Promise updateScriptAsync(array $args = [])
                    
197 * @method \Aws\Result validateMatchmakingRuleSet(array $args = [])
                    
198 * @method \GuzzleHttp\Promise\Promise validateMatchmakingRuleSetAsync(array $args = [])
                    
                
CreditCard.php https://gitlab.com/devtoannh/cafe | PHP | 317 lines
                    
22/**
                    
23 * @see Zend_Validate_Abstract
                    
24 */
                    
24 */
                    
25require_once 'Zend/Validate/Abstract.php';
                    
26
                    
32 */
                    
33class Zend_Validate_CreditCard extends Zend_Validate_Abstract
                    
34{
                    
229        if (!is_callable($service)) {
                    
230            require_once 'Zend/Validate/Exception.php';
                    
231            throw new Zend_Validate_Exception('Invalid callback given');
                    
301            try {
                    
302                require_once 'Zend/Validate/Callback.php';
                    
303                $callback = new Zend_Validate_Callback($this->_service);
                    
                
ProtectedUserFieldConstraintValidatorTest.php https://gitlab.com/reasonat/test8 | PHP | 309 lines
                    
1<?php
                    
2
                    
40  /**
                    
41   * @covers ::validate
                    
42   *
                    
42   *
                    
43   * @dataProvider providerTestValidate
                    
44   */
                    
44   */
                    
45  public function testValidate($items, $expected_violation, $name = FALSE) {
                    
46    $constraint = new ProtectedUserFieldConstraint();
                    
63    $validator->initialize($context);
                    
64    $validator->validate($items, $constraint);
                    
65  }
                    
67  /**
                    
68   * Data provider for ::testValidate().
                    
69   */
                    
                
User.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 393 lines
                    
1<?php
                    
2
                    
59	function LoginValidate() {
                    
60		$validate1 = array(
                    
61				'email'=> array(
                    
71			);
                    
72		$this->validate=$validate1;
                    
73		return $this->validates();
                    
79	 */
                    
80	function RegisterValidate() {
                    
81		$validate1 = array(
                    
150					'mustMatch'=>array(
                    
151						'rule' => array('recaptchaValidate'),
                    
152						'message' => ''),
                    
154			);
                    
155		$this->validate=$validate1;
                    
156		return $this->validates();
                    
                
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    }
                    
84            $this->currentDir = dirname($file);
                    
85            $this->import((string) $import['resource'], (Boolean) $import->getAttributeAsPhp('ignore-errors'));
                    
86        }
                    
112                $method = 'set'.str_replace('-', '', $key);
                    
113                $definition->$method((string) $service->getAttributeAsPhp($key));
                    
114            }
                    
120
                    
121        $definition->setArguments($service->getArgumentsAsPhp('argument'));
                    
122
                    
137        foreach ($service->call as $call) {
                    
138            $definition->addMethodCall((string) $call['method'], $call->getArgumentsAsPhp('argument'));
                    
139        }
                    
                
jquery.combo.js https://bitbucket.org/chanthorn/easyace.git | JavaScript | 425 lines
                    
8 * http://www.gnu.org/licenses/gpl.txt
                    
9 * http://www.jeasyui.com/license_commercial.php
                    
10 *
                    
75var _1b=_1a.combo.find("input.combo-text");
                    
76_1b.validatebox("destroy");
                    
77_1a.panel.panel("destroy");
                    
194var _33=$.data(_30,"combo").combo.find("input.combo-text");
                    
195_33.validatebox($.extend({},_32,{deltaX:(_32.hasDownArrow?_32.deltaX:(_32.deltaX>0?1:-1))}));
                    
196if(_31){
                    
196if(_31){
                    
197_33.validatebox("validate");
                    
198}
                    
372});
                    
373},validate:function(jq){
                    
374return jq.each(function(){
                    
                
testlib.php https://github.com/kpike/moodle.git | PHP | 264 lines
                    
1<?php
                    
2
                    
29// Include the code to test
                    
30require_once($CFG->dirroot . '/mod/workshop/locallib.php');
                    
31require_once($CFG->dirroot . '/mod/workshop/form/numerrors/lib.php');
                    
96        $suggested = $this->strategy->calculate_peer_grade($grades);
                    
97        // validate
                    
98        $this->assertNull($suggested);
                    
113        $suggested = $this->strategy->calculate_peer_grade($grades);
                    
114        // validate
                    
115        $this->assertEqual($suggested, 100.00000);
                    
136        $suggested = $this->strategy->calculate_peer_grade($grades);
                    
137        // validate
                    
138        $this->assertEqual($suggested, 80.00000);
                    
160        $suggested = $this->strategy->calculate_peer_grade($grades);
                    
161        // validate
                    
162        $this->assertEqual($suggested, 10.00000);
                    
                
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 *
                    
                
CurrencysymbolTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 327 lines
                    
1<?php
                    
2/**
                    
13 *
                    
14 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
15 */
                    
15 */
                    
16class CurrencysymbolTest extends \PHPUnit_Framework_TestCase
                    
17{
                    
25    /**
                    
26     * @var \Magento\Framework\Locale\ResolverInterface|\PHPUnit_Framework_MockObject_MockObject
                    
27     */
                    
30    /**
                    
31     * @var \Magento\Framework\App\Config\ScopeConfigInterface|\PHPUnit_Framework_MockObject_MockObject
                    
32     */
                    
35    /**
                    
36     * @var \Magento\Store\Model\System\Store|\PHPUnit_Framework_MockObject_MockObject
                    
37     */
                    
                
template.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 394 lines
                    
95 * Works by first retrieving the current slug for example 'category-default.php' and then
                    
96 * trying category ID, for example 'category-1.php' and will finally fallback to category.php
                    
97 * template, if those files don't exist.
                    
185 *
                    
186 * Attempts to locate 'home.php' first before falling back to 'index.php'.
                    
187 *
                    
193function get_home_template() {
                    
194	$templates = array( 'home.php', 'index.php' );
                    
195
                    
218 * Will first look for the specifically assigned page template
                    
219 * The will search for 'page-{slug}.php' followed by 'page-id.php'
                    
220 * and finally 'page.php'
                    
296 *
                    
297 * Some examples for the 'text/plain' mime type are 'text.php', 'plain.php', and
                    
298 * finally 'text_plain.php'.
                    
                
Abstract.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 447 lines
                    
27 */
                    
28require_once 'Zend/Validate.php';
                    
29
                    
33 */
                    
34require_once 'Zend/Validate/Hostname.php';
                    
35
                    
137        $this->_validHost = new Zend_Validate();
                    
138        $this->_validHost->addValidator(new Zend_Validate_Hostname(Zend_Validate_Hostname::ALLOW_ALL));
                    
139
                    
275             */
                    
276            require_once 'Zend/Mail/Protocol/Exception.php';
                    
277            throw new Zend_Mail_Protocol_Exception($errorStr);
                    
375             */
                    
376            require_once 'Zend/Mail/Protocol/Exception.php';
                    
377            throw new Zend_Mail_Protocol_Exception($this->_host . ' has timed out');
                    
                
Account.php https://github.com/grandison/budo16.git | PHP | 317 lines
                    
1<?php
                    
2
                    
9 * @license    http://www.socialengine.net/license/
                    
10 * @version    $Id: Account.php 8913 2011-05-02 18:03:07Z shaun $
                    
11 * @author     John
                    
57    if( $settings->getSetting('user.signup.inviteonly') > 0 ) {
                    
58      $codeValidator = new Engine_Validate_Callback(array($this, 'checkInviteCode'), $this->email);
                    
59      $codeValidator->setMessage("This invite code is invalid or does not match the selected email address");
                    
99
                    
100      $specialValidator = new Engine_Validate_Callback(array($this, 'checkPasswordConfirm'), $this->password);
                    
101      $specialValidator->setMessage('Password did not match', 'invalid');
                    
                
timesheet.php https://github.com/joelbrock/is4c_nofc.git | PHP | 281 lines
                    
1<?php
                    
2
                    
8if (isset($_POST['submitted'])) { // If the form has been submitted.
                    
9        // Validate the data.
                    
10        $errors = array();
                    
122                                $page_title = 'Fannie - Administration Module';
                    
123                                include ('../src/header.php');
                    
124                                include ('./includes/header.html');
                    
127                                echo '<p>Query: ' . $query . '</p>';
                    
128                                include ('../src/footer.php');
                    
129                                exit();
                    
136                                $page_title = 'Fannie - Administration Module';
                    
137                               include ('../src/header.php');
                    
138                                include ('./includes/header.html');
                    
141                                echo '<p>Query: ' . $query . '</p>';
                    
142                                include ('../src/footer.php');
                    
143                                exit();
                    
                
SearchIndex.php https://gitlab.com/mohamed_hussein/prodt | PHP | 330 lines
                    
1<?php
                    
2
                    
97    $split = preg_split('/\s*<([^>]+?)>\s*/', $text, -1, PREG_SPLIT_DELIM_CAPTURE);
                    
98    // Note: PHP ensures the array consists of alternating delimiters and
                    
99    // literals and begins and ends with a literal (inserting $null as
                    
183
                    
184    // Remove the item $sid from the search index, and invalidate the relevant
                    
185    // cache tags.
                    
255    if ($type) {
                    
256      // Invalidate all render cache items that contain data from this index.
                    
257      $this->cacheTagsInvalidator->invalidateTags(['search_index:' . $type]);
                    
259    else {
                    
260      // Invalidate all render cache items that contain data from any index.
                    
261      $this->cacheTagsInvalidator->invalidateTags(['search_index']);
                    
                
class.moderationcontroller.php https://github.com/abhishekmica/Garden.git | PHP | 319 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
56      $TransientKey = GetValue('TransientKey', $_POST);
                    
57      if ($Session->IsValid() && $Session->ValidateTransientKey($TransientKey)) {
                    
58         // Form was posted, so accept changes to checked items.
                    
140      $TransientKey = GetValue('TransientKey', $_POST);
                    
141      if ($Session->IsValid() && $Session->ValidateTransientKey($TransientKey)) {
                    
142         // Form was posted, so accept changes to checked items.
                    
202      $Session = Gdn::Session();
                    
203      if ($Session->ValidateTransientKey($TransientKey)) {
                    
204         $CheckedComments = Gdn::UserModel()->GetAttribute($Session->User->UserID, 'CheckedComments', array());
                    
216      $Session = Gdn::Session();
                    
217      if ($Session->ValidateTransientKey($TransientKey))
                    
218         Gdn::UserModel()->SaveAttribute($Session->UserID, 'CheckedDiscussions', FALSE);
                    
                
Panel.html https://github.com/marekjs/Shacser.git | HTML | 318 lines
                    
43
                    
44With the default configuration, form fields are validated on-the-fly while the user edits their values.
                    
45This can be controlled on a per-field basis (or via the {@link #fieldDefaults} config) with the field
                    
45This can be controlled on a per-field basis (or via the {@link #fieldDefaults} config) with the field
                    
46config properties {@link Ext.form.field.Field#validateOnChange} and {@link Ext.form.field.Base#checkChangeEvents},
                    
47and the FormPanel's config properties {@link #pollForChanges} and {@link #pollInterval}.
                    
55
                    
56- {@link Ext.form.field.Field#validateOnChange}
                    
57- {@link #pollForChanges} and {@link #pollInterval}
                    
73        // The form will submit an AJAX request to this URL when submitted
                    
74        url: 'save-form.php',
                    
75        
                    
                
concept-behaviors.md https://gitlab.com/brucealdridge/yii2 | Markdown | 332 lines
                    
59
                    
60```php
                    
61namespace app\components;
                    
72        return [
                    
73            ActiveRecord::EVENT_BEFORE_VALIDATE => 'beforeValidate',
                    
74        ];
                    
84[[yii\base\Behavior::events()]] メソッドは、イベントとそれに対応するハンドラのリストを返します。
                    
85上の例では [[yii\db\ActiveRecord::EVENT_BEFORE_VALIDATE|EVENT_BEFORE_VALIDATE]] イベントがあること、
                    
86そのハンドラ定義である `beforeValidate()` を宣言しています。イベントハンドラを指定するときは、以下の表記方法が使えます:
                    
176
                    
177```php
                    
178[
                    
197
                    
198```php
                    
199// "prop1" はビヘイビアクラス内で定義されたプロパティ
                    
                
Http.php https://gitlab.com/rsilveira1987/Expresso | PHP | 453 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Http.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
20 */
                    
24 */
                    
25require_once 'Zend/File/Transfer/Adapter/Abstract.php';
                    
26
                    
47        if (ini_get('file_uploads') == false) {
                    
48            require_once 'Zend/File/Transfer/Exception.php';
                    
49            throw new Zend_File_Transfer_Exception('File uploads are not allowed in your php config!');
                    
110    {
                    
111        require_once 'Zend/File/Transfer/Exception.php';
                    
112        throw new Zend_File_Transfer_Exception('Method not implemented');
                    
122    {
                    
123        // Workaround for a PHP error returning empty $_FILES when form data exceeds php settings
                    
124        if (empty($this->_files) && ($_SERVER['CONTENT_LENGTH'] > 0)) {
                    
                
field-groups.php https://gitlab.com/sihabudinahmad/asppi | PHP | 671 lines
                    
544			<h3><?php _e("Changelog",'acf'); ?></h3>
                    
545			<p><?php _e("See what's new in",'acf'); ?> <a href="<?php echo admin_url('edit.php?post_type=acf-field-group&page=acf-settings-info&tab=changelog'); ?>"><?php _e("version",'acf'); ?> <?php echo acf_get_setting('version'); ?></a>
                    
546			
                    
555				<li><a href="<?php echo $www; ?>#how-to" target="_blank"><?php _e("'How to' guides",'acf'); ?></a></li>
                    
556				<li><a href="<?php echo $www; ?>#tutorials" target="_blank"><?php _e("Tutorials",'acf'); ?></a></li>
                    
557			</ul>
                    
595		var id		= $(this).closest('tr').attr('id').replace('post-', ''),
                    
596			$span	= $('<span class="acf-duplicate-field-group"><a title="<?php _e('Duplicate this item', 'acf'); ?>" href="<?php echo admin_url($this->url . '&acfduplicate='); ?>' + id + '&_wpnonce=<?php echo wp_create_nonce('bulk-posts'); ?>"><?php _e('Duplicate', 'acf'); ?></a> | </span>');
                    
597		
                    
632<?php foreach( $this->sync as $group ): $i++; ?>
                    
633	<tr <?php if($i%2 == 0): ?>class="alternate"<?php endif; ?>>
                    
634		<th class="check-column" scope="row">
                    
640			<div class="row-actions">
                    
641				<span class="import"><a title="<?php echo esc_attr( __('Synchronise field group', 'acf') ); ?>" href="<?php echo admin_url($this->url . '&post_status=sync&acfsync=' . $group['key'] . '&_wpnonce=' . wp_create_nonce('bulk-posts')); ?>"><?php _e( 'Sync', 'acf' ); ?></a></span>
                    
642			</div>
                    
                
java.examples-basic.html https://bitbucket.org/thncr/manuals.git | HTML | 111 lines
                    
11 <div class="up"><a href="java.examples.html">范例</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="java.examples-basic" class="section">
                    
19<div class="phpcode"><code><span style="color: #000000">
                    
20<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">//&nbsp;get&nbsp;instance&nbsp;of&nbsp;Java&nbsp;class&nbsp;java.lang.System&nbsp;in&nbsp;PHP<br /></span><span style="color: #0000BB">$system&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Java</span><span style="color: #007700">(</span><span style="color: #DD0000">'java.lang.System'</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;demonstrate&nbsp;property&nbsp;access<br /></span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">'Java&nbsp;version='&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$system</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getProperty</span><span style="color: #007700">(</span><span style="color: #DD0000">'java.version'</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">'&lt;br&nbsp;/&gt;'</span><span style="color: #007700">;<br />echo&nbsp;</span><span style="color: #DD0000">'Java&nbsp;vendor='&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$system</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getProperty</span><span style="color: #007700">(</span><span style="color: #DD0000">'java.vendor'</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">'&lt;br&nbsp;/&gt;'</span><span style="color: #007700">;<br />echo&nbsp;</span><span style="color: #DD0000">'OS='&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$system</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getProperty</span><span style="color: #007700">(</span><span style="color: #DD0000">'os.name'</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">'&nbsp;'&nbsp;</span><span style="color: #007700">.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$system</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getProperty</span><span style="color: #007700">(</span><span style="color: #DD0000">'os.version'</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">'&nbsp;on&nbsp;'&nbsp;</span><span style="color: #007700">.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$system</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getProperty</span><span style="color: #007700">(</span><span style="color: #DD0000">'os.arch'</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">'&nbsp;&lt;br&nbsp;/&gt;'</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">//&nbsp;java.util.Date&nbsp;example<br /></span><span style="color: #0000BB">$formatter&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Java</span><span style="color: #007700">(</span><span style="color: #DD0000">'java.text.SimpleDateFormat'</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"EEEE,&nbsp;MMMM&nbsp;dd,&nbsp;yyyy&nbsp;'at'&nbsp;h:mm:ss&nbsp;a&nbsp;zzzz"</span><span style="color: #007700">);<br /><br />echo&nbsp;</span><span style="color: #0000BB">$formatter</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">format</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">Java</span><span style="color: #007700">(</span><span style="color: #DD0000">'java.util.Date'</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span>
                    
21</span>
                    
29<div class="phpcode"><code><span style="color: #000000">
                    
30<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">//&nbsp;This&nbsp;example&nbsp;is&nbsp;only&nbsp;intended&nbsp;to&nbsp;be&nbsp;run&nbsp;using&nbsp;the&nbsp;CLI.<br /><br /></span><span style="color: #0000BB">$frame&nbsp;&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Java</span><span style="color: #007700">(</span><span style="color: #DD0000">'java.awt.Frame'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'PHP'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$button&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Java</span><span style="color: #007700">(</span><span style="color: #DD0000">'java.awt.Button'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'Hello&nbsp;Java&nbsp;World!'</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$frame</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">add</span><span style="color: #007700">(</span><span style="color: #DD0000">'North'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$button</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$frame</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">validate</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$frame</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">pack</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$frame</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">visible&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">True</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$thread&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Java</span><span style="color: #007700">(</span><span style="color: #DD0000">'java.lang.Thread'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$thread</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">sleep</span><span style="color: #007700">(</span><span style="color: #0000BB">10000</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$frame</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">dispose</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span>
                    
31</span>
                    
66     <p class="para">
                    
67      Exceptions raised result in PHP warnings, and <strong><code>NULL</code></strong> results. The
                    
68      warnings may be eliminated by prefixing the method call with an
                    
79      Overload resolution is in general a hard problem given the
                    
80      differences in types between the two languages. The PHP Java
                    
81      extension employs a simple, but fairly effective, metric for
                    
                
Config.php https://bitbucket.org/webpolis/liiv.git | PHP | 514 lines
                    
1<?php
                    
2/*
                    
22 */
                    
23require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/AccessControlConfig.php";
                    
24/**
                    
26 */
                    
27require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ResourceTypeConfig.php";
                    
28/**
                    
30 */
                    
31require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ThumbnailsConfig.php";
                    
32/**
                    
34 */
                    
35require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ImagesConfig.php";
                    
36
                    
125    /**
                    
126     * If set to true, validate image size
                    
127     *
                    
                
CaBundle.php https://gitlab.com/imamul68e/137619_PHP31 | PHP | 291 lines
                    
195        // Vulnerable:
                    
196        // PHP 5.3.0 - PHP 5.3.27
                    
197        // PHP 5.4.0 - PHP 5.4.22
                    
199        if (
                    
200               (PHP_VERSION_ID < 50400 && PHP_VERSION_ID >= 50328)
                    
201            || (PHP_VERSION_ID < 50500 && PHP_VERSION_ID >= 50423)
                    
201            || (PHP_VERSION_ID < 50500 && PHP_VERSION_ID >= 50423)
                    
202            || (PHP_VERSION_ID < 50600 && PHP_VERSION_ID >= 50507)
                    
203        ) {
                    
244        // Based on testcase in https://github.com/php/php-src/commit/c1224573c773b6845e83505f717fbf820fc18415
                    
245        // changes in https://github.com/php/php-src/commit/76a7fd893b7d6101300cc656058704a73254d593
                    
246        $cert = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVwRENDQTR5Z0F3SUJBZ0lKQUp6dThyNnU2ZUJjTUEwR0NTcUdTSWIzRFFFQkJRVUFNSUhETVFzd0NRWUQKVlFRR0V3SkVSVEVjTUJvR0ExVUVDQXdUVG05eVpISm9aV2x1TFZkbGMzUm1ZV3hsYmpFUU1BNEdBMVVFQnd3SApTOE9Ed3Jac2JqRVVNQklHQTFVRUNnd0xVMlZyZEdsdmJrVnBibk14SHpBZEJnTlZCQXNNRmsxaGJHbGphVzkxCmN5QkRaWEowSUZObFkzUnBiMjR4SVRBZkJnTlZCQU1NR0cxaGJHbGphVzkxY3k1elpXdDBhVzl1WldsdWN5NWsKWlRFcU1DZ0dDU3FHU0liM0RRRUpBUlliYzNSbFptRnVMbVZ6YzJWeVFITmxhM1JwYjI1bGFXNXpMbVJsTUhVWQpaREU1TnpBd01UQXhNREF3TURBd1dnQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBCkFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUEKQUFBQUFBQVhEVEUwTVRFeU9ERXhNemt6TlZvd2djTXhDekFKQmdOVkJBWVRBa1JGTVJ3d0dnWURWUVFJREJOTwpiM0prY21obGFXNHRWMlZ6ZEdaaGJHVnVNUkF3RGdZRFZRUUhEQWRMdzRQQ3RteHVNUlF3RWdZRFZRUUtEQXRUClpXdDBhVzl1UldsdWN6RWZNQjBHQTFVRUN3d1dUV0ZzYVdOcGIzVnpJRU5sY25RZ1UyVmpkR2x2YmpFaE1COEcKQTFVRUF3d1liV0ZzYVdOcGIzVnpMbk5sYTNScGIyNWxhVzV6TG1SbE1Tb3dLQVlKS29aSWh2Y05BUWtCRmh0egpkR1ZtWVc0dVpYTnpaWEpBYzJWcmRHbHZibVZwYm5NdVpHVXdnZ0VpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElCCkR3QXdnZ0VLQW9JQkFRRERBZjNobDdKWTBYY0ZuaXlFSnBTU0RxbjBPcUJyNlFQNjV1c0pQUnQvOFBhRG9xQnUKd0VZVC9OYSs2ZnNnUGpDMHVLOURaZ1dnMnRIV1dvYW5TYmxBTW96NVBINlorUzRTSFJaN2UyZERJalBqZGhqaAowbUxnMlVNTzV5cDBWNzk3R2dzOWxOdDZKUmZIODFNTjJvYlhXczROdHp0TE11RDZlZ3FwcjhkRGJyMzRhT3M4CnBrZHVpNVVhd1Raa3N5NXBMUEhxNWNNaEZHbTA2djY1Q0xvMFYyUGQ5K0tBb2tQclBjTjVLTEtlYno3bUxwazYKU01lRVhPS1A0aWRFcXh5UTdPN2ZCdUhNZWRzUWh1K3ByWTNzaTNCVXlLZlF0UDVDWm5YMmJwMHdLSHhYMTJEWAoxbmZGSXQ5RGJHdkhUY3lPdU4rblpMUEJtM3ZXeG50eUlJdlZBZ01CQUFHalFqQkFNQWtHQTFVZEV3UUNNQUF3CkVRWUpZSVpJQVliNFFnRUJCQVFEQWdlQU1Bc0dBMVVkRHdRRUF3SUZvREFUQmdOVkhTVUVEREFLQmdnckJnRUYKQlFjREFqQU5CZ2txaGtpRzl3MEJBUVVGQUFPQ0FRRUFHMGZaWVlDVGJkajFYWWMrMVNub2FQUit2SThDOENhRAo4KzBVWWhkbnlVNGdnYTBCQWNEclk5ZTk0ZUVBdTZacXljRjZGakxxWFhkQWJvcHBXb2NyNlQ2R0QxeDMzQ2tsClZBcnpHL0t4UW9oR0QySmVxa2hJTWxEb214SE83a2EzOStPYThpMnZXTFZ5alU4QVp2V01BcnVIYTRFRU55RzcKbFcyQWFnYUZLRkNyOVRuWFRmcmR4R1ZFYnY3S1ZRNmJkaGc1cDVTanBXSDErTXEwM3VSM1pYUEJZZHlWODMxOQpvMGxWajFLRkkyRENML2xpV2lzSlJvb2YrMWNSMzVDdGQwd1lCY3BCNlRac2xNY09QbDc2ZHdLd0pnZUpvMlFnClpzZm1jMnZDMS9xT2xOdU5xLzBUenprVkd2OEVUVDNDZ2FVK1VYZTRYT1Z2a2NjZWJKbjJkZz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K';
                    
269            count($output) === 3
                    
270            && $output[0] === sprintf('string(%d) "%s"', strlen(PHP_VERSION), PHP_VERSION)
                    
271            && $output[1] === 'string(27) "stefan.esser@sektioneins.de"'
                    
                
Abstract.php https://bitbucket.org/jokusafet/magento2.git | PHP | 324 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 */
                    
205    /**
                    
206     * Validate particular attributes columns.
                    
207     *
                    
238    /**
                    
239     * Validate row attributes. Pass VALID row data ONLY as argument.
                    
240     *
                    
                
members.lang.php https://bitbucket.org/speedealing/speedealing.git | PHP | 224 lines
                    
1<?php
                    
2/* Copyright (C) 2012	Regis Houssin	<regis.houssin@capnetworks.com>
                    
33		'ListOfPublicMembers' => 'Lista de miembros públicos',
                    
34		'ListOfValidatedPublicMembers' => 'Lista de miembros públicos validados',
                    
35		'ErrorThisMemberIsNotPublic' => 'Este miembro no es público',
                    
49		'MembersListQualified' => 'Listado de los miembros cualificados',
                    
50		'MenuMembersToValidate' => 'Miembros borrador',
                    
51		'MenuMembersValidated' => 'Miembros validados',
                    
82		'MembersStatusToValidShort' => 'Miembros borrador',
                    
83		'MembersStatusValidated' => 'Miembros validados',
                    
84		'MembersStatusPaid' => 'Afiliaciones al día',
                    
124		'Filehtpasswd' => 'Archivo htpasswd',
                    
125		'ValidateMember' => 'Validar un miembro',
                    
126		'ConfirmValidateMember' => '¿Está seguro de querer validar a este miembro?',
                    
214		'Entreprises' => 'Empresas',
                    
215		'DOLIBARRFOUNDATION_PAYMENT_FORM' => 'Para realizar el pago de su cotización por transferencia bancaria, visite la página <a target="_blank" href="http://wiki.speedealing.org/index.php/Subscribirse#Para_una_adhesi.C3.B3n_por_transferencia">http://wiki.speedealing.org/index.php/Subscribirse</a>.<br>Para pagar con tarjeta de crédito o PayPal, haga clic en el botón en la parte inferior de esta página.<br><br>',
                    
216		'ErrorBadValueForDate' => 'Erreur : La date de fin d\'adhésion ne doit être ni égale ni inférieure à la date de début.',
                    
                
TaxonomyIndexTid.php https://gitlab.com/reasonat/test8 | PHP | 401 lines
                    
1<?php
                    
2
                    
24  // Stores the exposed input for this filter.
                    
25  public $validated_exposed_input = NULL;
                    
26
                    
261
                    
262  protected function valueValidate($form, FormStateInterface $form_state) {
                    
263    // We only validate if they've chosen the text field style.
                    
288    // If view is an attachment and is inheriting exposed filters, then assume
                    
289    // exposed input has already been validated
                    
290    if (!empty($this->view->is_attachment) && $this->view->display_handler->usesExposed()) {
                    
290    if (!empty($this->view->is_attachment) && $this->view->display_handler->usesExposed()) {
                    
291      $this->validated_exposed_input = (array) $this->view->exposed_raw_input[$this->options['expose']['identifier']];
                    
292    }
                    
300    // If it's non-required and there's no value don't bother filtering.
                    
301    if (!$this->options['expose']['required'] && empty($this->validated_exposed_input)) {
                    
302      return FALSE;
                    
                
routes.php https://gitlab.com/rodrigo.butta/bgh | PHP | 213 lines
                    
1<?php
                    
2
                    
38    Route::get('registration', ['as' => 'registration', 'uses' => 'Auth\RegistrationController@getIndex']);
                    
39    Route::get('registration/activate/{username}/{code}', 'Auth\RegistrationController@validateUser');
                    
40    Route::get('password/email', ['as' => 'password.reminder', 'uses' => 'Auth\PasswordController@getEmail']);
                    
                
xml2json.php https://github.com/mx504/Provisioner.git | PHP | 374 lines
                    
1<?php
                    
2define("PROVISIONER_PATH", "");
                    
9
                    
10header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
                    
11header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
                    
226        return($array);
                    
227    //This is so stupid?! PHP gets confused.
                    
228    } elseif($array == '0') {
                    
                
holiday.lang.php https://bitbucket.org/speedealing/speedealing.git | PHP | 148 lines
                    
1<?php
                    
2/* Copyright (C) 2012	Regis Houssin	<regis.houssin@capnetworks.com>
                    
23		'NotActiveModCP' => 'Трябва да се даде възможност на модула отпуски, за да видите тази страница.',
                    
24		'NotConfigModCP' => 'Трябва да конфигурирате модула празници, за да видите тази страница. За да направите това, <a href="./admin/holiday.php?leftmenu=setup&mainmenu=home" style="font-weight: normal; color: red; text-decoration: underline;">натиснете тук</a> </ a> <a href="./admin/holiday.php?leftmenu=setup&mainmenu=home" style="font-weight: normal; color: red; text-decoration: underline;">.</a>',
                    
25		'NoCPforUser' => 'Не е нужно търсене за почивка.',
                    
32		'DraftCP' => 'Проект',
                    
33		'ToValidateCP' => 'Очаква одобрение',
                    
34		'ValidateCP' => 'Утвърден',
                    
38		'ListeCP' => 'Списък на празници',
                    
39		'ValidateByCP' => 'Ще бъдат утвърдени от',
                    
40		'DescCP' => 'Описание',
                    
108		'ValueOptionCP' => 'Стойност',
                    
109		'GroupToValidateCP' => 'Група с възможност за валидиране на празниците',
                    
110		'ConfirmConfigCP' => 'Проверка на конфигурацията',
                    
113		'ErrorUpdateConfCP' => 'Възникна грешка по време на актуализацията, моля опитайте отново.',
                    
114		'AddCPforUsers' => 'Моля, добавете баланса на празниците на потребителите, като <a href="../define_holiday.php" style="font-weight: normal; color: red; text-decoration: underline;">кликнете тук</a> .',
                    
115		'DelayForSubmitCP' => 'Краен срок да кандидатстват за празниците',
                    
                
Extension.php https://bitbucket.org/acidel/buykoala.git | PHP | 397 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 */

                    
58#echo "<pre>".print_r($pfm,1)."</pre>";

                    
59        if (!$pfm->validate(PEAR_VALIDATE_NORMAL)) {

                    
60            //echo "<pre>".print_r($this->getData(),1)."</pre>";

                    
116        $exclude = $this->getData('depends_php_exclude')!=='' ? explode(',', $this->getData('depends_php_exclude')) : false;

                    
117        $pfm->setPhpDep($this->getData('depends_php_min'), $this->getData('depends_php_max'), $exclude);

                    
118        $pfm->setPearinstallerDep('1.6.2');

                    
355            #'pear.php.net' => 'PEAR',

                    
356            #'pear.phpunit.de' => 'PHPUnit',

                    
357        );

                    
                
directpost.js https://bitbucket.org/acidel/buykoala.git | JavaScript | 383 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
                    
22 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
23 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
24 */
                    
52
                    
53    validate : function() {
                    
54        this.isValid = true;
                    
56            if ($(this.code + '_' + elemIndex)) {
                    
57                if (!Validation.validate($(this.code + '_' + elemIndex))) {
                    
58                    this.isValid = false;
                    
231    submitAdminOrder : function() {
                    
232        if (editForm.validate()) {
                    
233            var paymentMethodEl = $(editForm.formId).getInputs('radio','payment[method]').find(function(radio) {
                    
                
CommandTest.php https://bitbucket.org/alessandro-aglietti/itis-leonardo-da-vinci.git | PHP | 420 lines
                    
1<?php
                    
2
                    
339        $v = $this->getMockBuilder('Guzzle\Service\Description\SchemaValidator')
                    
340            ->setMethods(array('validate'))
                    
341            ->getMock();
                    
341            ->getMock();
                    
342        $v->expects($this->never())->method('validate');
                    
343        $command->setValidator($v);
                    
369     */
                    
370    public function testValidatesCommandBeforeSending()
                    
371    {
                    
374        $v = $this->getMockBuilder('Guzzle\Service\Description\SchemaValidator')
                    
375            ->setMethods(array('validate', 'getErrors'))
                    
376            ->getMock();
                    
376            ->getMock();
                    
377        $v->expects($this->any())->method('validate')->will($this->returnValue(false));
                    
378        $v->expects($this->any())->method('getErrors')->will($this->returnValue(array('[Foo] Baz', '[Bar] Boo')));
                    
                
attribute.php https://bitbucket.org/elena_dyavolova/omf.git | PHP | 446 lines
                    
1<?php 
                    
2class ControllerCatalogAttribute extends Controller { 
                    
21			
                    
22		if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm()) {
                    
23      		$this->model_catalog_attribute->addAttribute($this->request->post);
                    
53		
                    
54    	if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm()) {
                    
55	  		$this->model_catalog_attribute->editAttribute($this->request->get['attribute_id'], $this->request->post);
                    
85		
                    
86    	if (isset($this->request->post['selected']) && $this->validateDelete()) {
                    
87			foreach ($this->request->post['selected'] as $attribute_id) {
                    
369  	
                    
370	protected function validateForm() {
                    
371    	if (!$this->user->hasPermission('modify', 'catalog/attribute')) {
                    
387
                    
388  	protected function validateDelete() {
                    
389		if (!$this->user->hasPermission('modify', 'catalog/attribute')) {
                    
                
ListCommand.php https://gitlab.com/ealexis.t/trends | PHP | 278 lines
                    
1<?php
                    
2
                    
112    {
                    
113        $this->validateInput($input);
                    
114        $this->initEnumerators();
                    
224    /**
                    
225     * Validate that input options make sense, provide defaults when called without options.
                    
226     *
                    
230     */
                    
231    private function validateInput(InputInterface $input)
                    
232    {
                    
                
ConfigurationController.php https://gitlab.com/nitm/yii2-module | PHP | 330 lines
                    
1<?php
                    
2
                    
131
                    
132                return \yii\widgets\ActiveForm::validate($this->model);
                    
133            }
                    
134
                    
135            if ($this->model->validate()) {
                    
136                switch ($this->model->getScenario()) {
                    
182        ];
                    
183        switch ($this->model->validate()) {
                    
184            case true:
                    
245
                    
246                return \yii\widgets\ActiveForm::validate($this->model);
                    
247            }
                    
248
                    
249            if ($this->model->validate()) {
                    
250                switch ($this->model->getScenario()) {
                    
                
event_profile_field_test.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 393 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
29
                    
30require_once($CFG->dirroot . '/user/profile/definelib.php');
                    
31
                    
69
                    
70        // Validate that the event was correctly triggered.
                    
71        $event = reset($events);
                    
104
                    
105        // Validate that the events were correctly triggered.
                    
106        $this->assertInstanceOf('\core\event\user_info_category_updated', $event1);
                    
140
                    
141        // Validate that the event was correctly triggered.
                    
142        $event = reset($events);
                    
185
                    
186        // Validate that the event was correctly triggered.
                    
187        $event = reset($events);
                    
                
Template.php https://github.com/rgranadino/magento-mirror.git | PHP | 395 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
82    /**
                    
83     * Validate Newsletter template
                    
84     *
                    
87     */
                    
88    public function validate()
                    
89    {
                    
97        foreach (array_keys($validators) as $validateField) {
                    
98            $data[$validateField] = $this->getDataUsingMethod($validateField);
                    
99        }
                    
                
RequestContactImport.php https://gitlab.com/i-have-a-green/digitemis-v3 | PHP | 541 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
243    /**
                    
244     * Validate all the properties in the model
                    
245     * return true if all passed
                    
                
external.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 338 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
26
                    
27require_once("$CFG->libdir/externallib.php");
                    
28require_once("$CFG->dirroot/webservice/externallib.php");
                    
73
                    
74        // Validate and normalize parameters.
                    
75        $tags = self::validate_parameters(self::update_tags_parameters(), array('tags' => $tags));
                    
192
                    
193        // Validate and normalize parameters.
                    
194        $tags = self::validate_parameters(self::get_tags_parameters(), array('tags' => $tags));
                    
196        $systemcontext = context_system::instance();
                    
197        self::validate_context($systemcontext);
                    
198
                    
291        global $PAGE;
                    
292        // Validate and normalize parameters.
                    
293        $tagindex = self::validate_parameters(
                    
                
views.py https://github.com/selwin/django-socialregistration.git | Python | 391 lines
                    
26
                    
27FB_ERROR = _('We couldn\'t validate your Facebook credentials')
                    
28
                    
178    should be done like described in the developer wiki on facebook.
                    
179    http://wiki.developers.facebook.com/index.php/Connect/Authorization_Websites#Logging_Out_Users
                    
180    """
                    
                
ParamFetcherTest.php https://gitlab.com/cuza/Clinic_Recods | PHP | 440 lines
                    
1<?php
                    
2
                    
28 */
                    
29class ParamFetcherTest extends \PHPUnit_Framework_TestCase
                    
30{
                    
203            ->expects($this->once())
                    
204            ->method('validate')
                    
205            ->with('value', array('constraint'))
                    
223            ->expects($this->once())
                    
224            ->method('validate')
                    
225            ->with('value', ['constraint'])
                    
247            ->expects($this->once())
                    
248            ->method('validate')
                    
249            ->with('value', array('constraint'))
                    
                
Triggers.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 360 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Triggers.php
                    
4 * @package    workflow.engine.classes.model
                    
26
                    
27require_once 'classes/model/Content.php';
                    
28require_once 'classes/model/om/BaseTriggers.php';
                    
167
                    
168            if ($this->validate()) {
                    
169                if (!isset ( $aData['TRI_TITLE'] )) {
                    
203            $this->fromArray($fields,BasePeer::TYPE_FIELDNAME);
                    
204            if ($this->validate()) {
                    
205                $contentResult=0;
                    
269    {
                    
270        require_once "classes/model/Event.php";
                    
271        require_once "classes/model/StepTrigger.php";
                    
                
File.php https://bitbucket.org/acidel/buykoala.git | PHP | 412 lines
                    
29 */
                    
30#require_once 'Zend/Reflection/Function.php';
                    
31
                    
94        if (!$fileRealpath || !in_array($fileRealpath, get_included_files())) {
                    
95            #require_once 'Zend/Reflection/Exception.php';
                    
96            throw new Zend_Reflection_Exception('File ' . $file . ' must be required before it can be reflected');
                    
187        if (!$instance instanceof Zend_Reflection_Docblock) {
                    
188            #require_once 'Zend/Reflection/Exception.php';
                    
189            throw new Zend_Reflection_Exception('Invalid reflection class specified; must extend Zend_Reflection_Docblock');
                    
225            if (!$instance instanceof Zend_Reflection_Function) {
                    
226                #require_once 'Zend/Reflection/Exception.php';
                    
227                throw new Zend_Reflection_Exception('Invalid reflection class provided; must extend Zend_Reflection_Function');
                    
319             * Token ID's are explained here:
                    
320             * http://www.php.net/manual/en/tokens.php.
                    
321             */
                    
                
CssModulesPlugin.js https://gitlab.com/nguyenthehiep3232/marius | JavaScript | 462 lines
                    
1/*
                    
2	MIT License http://www.opensource.org/licenses/mit-license.php
                    
3	Author Tobias Koppers @sokra
                    
44
                    
45const validateGeneratorOptions = createSchemaValidation(
                    
46	require("../../schemas/plugins/css/CssGeneratorOptions.check.js"),
                    
52);
                    
53const validateParserOptions = createSchemaValidation(
                    
54	require("../../schemas/plugins/css/CssParserOptions.check.js"),
                    
130					.tap(plugin, parserOptions => {
                    
131						validateParserOptions(parserOptions);
                    
132						return new CssParser();
                    
136					.tap(plugin, parserOptions => {
                    
137						validateParserOptions(parserOptions);
                    
138						return new CssParser({
                    
                
admin.php https://bitbucket.org/viktorfabry/banditos.git | PHP | 503 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2/**
                    
199
                    
200			// validate and insert
                    
201			if ($id = $this->page_m->create($input))
                    
329
                    
330			// validate and insert
                    
331			if ($this->page_m->edit($id, $input))
                    
                
Size.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 419 lines
                    
24 */
                    
25require_once 'Zend/Validate/Abstract.php';
                    
26
                    
109        } elseif (!is_array($options)) {
                    
110            require_once 'Zend/Validate/Exception.php';
                    
111            throw new Zend_Validate_Exception ( 'Invalid options to validator provided' );
                    
194        if (( $max !== null ) && ( $min > $max )) {
                    
195            require_once 'Zend/Validate/Exception.php';
                    
196            throw new Zend_Validate_Exception( "The minimum must be less than or equal to the maximum filesize, but $min >"
                    
232        if (!is_string($max) && !is_numeric($max)) {
                    
233            require_once 'Zend/Validate/Exception.php';
                    
234            throw new Zend_Validate_Exception ( 'Invalid options to validator provided' );
                    
239        if (( $min !== null ) && ( $max < $min )) {
                    
240            require_once 'Zend/Validate/Exception.php';
                    
241            throw new Zend_Validate_Exception( "The maximum must be greater than or equal to the minimum filesize, but "
                    
                
export_execute.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 252 lines
                    
1<?php
                    
2
                    
2
                    
3require_once('../config.php');
                    
4//require_once($CFG->dirroot.'/course/lib.php');
                    
4//require_once($CFG->dirroot.'/course/lib.php');
                    
5require_once($CFG->dirroot.'/calendar/lib.php');
                    
6require_once($CFG->libdir.'/bennu/bennu.inc.php');
                    
54
                    
55    $link = new moodle_url('/calendar/export.php', $params);
                    
56    redirect($link->out());
                    
178        // Parameters given but incorrect, redirect back to export page
                    
179        redirect($CFG->wwwroot.'/calendar/export.php');
                    
180        die();
                    
243header('Last-Modified: '. gmdate('D, d M Y H:i:s', time()) .' GMT');
                    
244header('Cache-Control: private, must-revalidate, pre-check=0, post-check=0, max-age=0');
                    
245header('Expires: '. gmdate('D, d M Y H:i:s', 0) .'GMT');
                    
                
ipayment_elv.php https://github.com/chrish123/oscommerce2.git | PHP | 269 lines
                    
1<?php
                    
2/*
                    
122                               tep_draw_hidden_field('silent_error_url', tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'payment_error=' . $this->code, 'SSL', true)) .
                    
123                               tep_draw_hidden_field('hidden_trigger_url', tep_href_link('ext/modules/payment/ipayment/callback_elv.php', '', 'SSL', false)) .
                    
124                               tep_draw_hidden_field('client_name', 'oscommerce') .
                    
190      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Transaction Method', 'MODULE_PAYMENT_IPAYMENT_ELV_TRANSACTION_METHOD', 'Authorization', 'The processing method to use for each transaction.', '6', '0', 'tep_cfg_select_option(array(\'Authorization\', \'Capture\'), ', now())");
                    
191      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Secret Hash Password', 'MODULE_PAYMENT_IPAYMENT_ELV_SECRET_HASH_PASSWORD', 'testtest', 'The secret hash password to validate transactions with', '6', '4', now())");
                    
192      tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Transaction Notification (E-Mail)', 'MODULE_PAYMENT_IPAYMENT_ELV_DEBUG_EMAIL', '', 'An e-mail address to send transaction notifications to.', '6', '0', now())");
                    
                
Template.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 395 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
82    /**
                    
83     * Validate Newsletter template
                    
84     *
                    
87     */
                    
88    public function validate()
                    
89    {
                    
97        foreach (array_keys($validators) as $validateField) {
                    
98            $data[$validateField] = $this->getDataUsingMethod($validateField);
                    
99        }
                    
                
wc-cart-functions.php https://gitlab.com/rubengrb/ws.vidrialum | PHP | 374 lines
                    
1<?php
                    
2/**
                    
60/**
                    
61 * Retrieves unvalidated referer from '_wp_http_referer' or HTTP referer.
                    
62 *
                    
111	if ( 'yes' === get_option( 'woocommerce_cart_redirect_after_add' ) ) {
                    
112		$return_to = apply_filters( 'woocommerce_continue_shopping_redirect', wc_get_raw_referer() ? wp_validate_redirect( wc_get_raw_referer(), false ) : wc_get_page_permalink( 'shop' ) );
                    
113		$message   = sprintf( '<a href="%s" class="button wc-forward">%s</a> %s', esc_url( $return_to ), esc_html__( 'Continue Shopping', 'woocommerce' ), esc_html( $added_text ) );
                    
204
                    
205		wc_get_template( 'cart/cart-shipping.php', array(
                    
206			'package'              => $package,
                    
353function wc_cart_round_discount( $value, $precision ) {
                    
354	if ( version_compare( PHP_VERSION, '5.3.0', '>=' ) ) {
                    
355		return round( $value, $precision, WC_DISCOUNT_ROUNDING_MODE );
                    
                
 

Source

Language