PageRenderTime 584ms queryTime 83ms sortTime 30ms getByIdsTime 98ms findMatchingLines 110ms

100+ results results for 'php is_numeric repo:jcplat/console-seolan' (584 ms)

Not the results you expected?
numerical.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 325 lines
                    
1<?php
                    
2
                    
51        global $USER, $CFG, $PAGE;
                    
52        $mform = new lesson_display_answer_form_shortanswer($CFG->wwwroot.'/mod/lesson/continue.php', array('contents'=>$this->get_contents(), 'lessonid'=>$this->lesson->id));
                    
53        $data = new stdClass;
                    
77
                    
78        $mform = new lesson_display_answer_form_shortanswer($CFG->wwwroot.'/mod/lesson/continue.php', array('contents'=>$this->get_contents()));
                    
79        $data = $mform->get_data();
                    
89
                    
90        if (!isset($data->answer) || !is_numeric($data->answer)) {
                    
91            $result->noanswer = true;
                    
                
users.inc.php https://gitlab.com/billyprice1/osTicket | PHP | 316 lines
                    
154            <th nowrap width="4%">&nbsp;</th>
                    
155            <th><a <?php echo $name_sort; ?> href="users.php?<?php
                    
156                echo $qstr; ?>&sort=name"><?php echo __('Name'); ?></a></th>
                    
156                echo $qstr; ?>&sort=name"><?php echo __('Name'); ?></a></th>
                    
157            <th width="22%"><a  <?php echo $status_sort; ?> href="users.php?<?php
                    
158                echo $qstr; ?>&sort=status"><?php echo __('Status'); ?></a></th>
                    
158                echo $qstr; ?>&sort=status"><?php echo __('Status'); ?></a></th>
                    
159            <th width="20%"><a <?php echo $create_sort; ?> href="users.php?<?php
                    
160                echo $qstr; ?>&sort=create"><?php echo __('Created'); ?></a></th>
                    
160                echo $qstr; ?>&sort=create"><?php echo __('Created'); ?></a></th>
                    
161            <th width="20%"><a <?php echo $update_sort; ?> href="users.php?<?php
                    
162                echo $qstr; ?>&sort=update"><?php echo __('Updated'); ?></a></th>
                    
191                        href="users.php?id=<?php echo $U['id']; ?>"
                    
192                        data-preview="#users/<?php echo $U['id']; ?>/preview"><?php
                    
193                        echo Format::htmlchars($name); ?></a>
                    
                
runeditchief.php https://bitbucket.org/jorgenio/boca.git | PHP | 320 lines
                    
1<?php
                    
2////////////////////////////////////////////////////////////////////////////////
                    
18// Last modified 05/aug/2012 by cassio@ime.usp.br
                    
19require 'header.php';
                    
20
                    
21if (isset($_POST["cancel"]) && $_POST["cancel"]=="Cancel editing")
                    
22        ForceLoad($runphp);
                    
23
                    
24if (isset($_POST["giveup"]) && $_POST["giveup"]=="Renew" &&
                    
25    isset($_POST["sitenumber"]) && isset($_POST["number"]) && is_numeric($_POST["number"]) &&
                    
26    is_numeric($_POST["sitenumber"])) {
                    
82if (!isset($_GET["runnumber"]) || !isset($_GET["runsitenumber"]) || 
                    
83    !is_numeric($_GET["runnumber"]) || !is_numeric($_GET["runsitenumber"])) {
                    
84	IntrusionNotify("tried to open the admin/runedit.php with wrong parameters.");
                    
101</b></center>
                    
102<form name="form1" method="post" action="<?php echo $runeditphp; ?>">
                    
103  <input type=hidden name="confirmation" value="noconfirm" />
                    
                
Svg.php https://bitbucket.org/kdms/sh-magento.git | PHP | 382 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Image.php 20366 2010-01-18 03:56:52Z ralph $
                    
21 */
                    
23/** @see Zend_Barcode_Renderer_RendererAbstract*/
                    
24#require_once 'Zend/Barcode/Renderer/RendererAbstract.php';
                    
25
                    
68    {
                    
69        if (!is_numeric($value) || intval($value) < 0) {
                    
70            #require_once 'Zend/Barcode/Renderer/Exception.php';
                    
96    {
                    
97        if (!is_numeric($value) || intval($value) < 0) {
                    
98            #require_once 'Zend/Barcode/Renderer/Exception.php';
                    
126        if (!$svg instanceof DOMDocument) {
                    
127            #require_once 'Zend/Barcode/Renderer/Exception.php';
                    
128            throw new Zend_Barcode_Renderer_Exception(
                    
                
admin.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 303 lines
                    
1<?php
                    
2!function_exists('adminmsg') && exit('Forbidden');
                    
3
                    
4require_once(R_P.'require/credit.php');
                    
5
                    
42			foreach ($tools as $key => $value) {
                    
43				is_numeric($key) && $toolids[] = $key;
                    
44			}
                    
49			if($rt['vieworder'] == $vieworder[$rt['id']]) continue;
                    
50			is_numeric($vieworder[$rt['id']]) && $db->update("UPDATE pw_tools SET vieworder=".
                    
51															S::sqlEscape($vieworder[$rt['id']]).
                    
209		S::gp(array('uid','id'));
                    
210		(!is_numeric($uid) || !is_numeric($id)) && adminmsg('numerics_checkfailed');
                    
211
                    
230		S::gp(array('uid','id'));
                    
231		(!is_numeric($uid) || !is_numeric($id)) && adminmsg('numerics_checkfailed');
                    
232		$db->update("DELETE FROM pw_usertool WHERE uid=" . S::sqlEscape($uid) . "AND toolid=".S::sqlEscape($id));
                    
                
Cost_Utils.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 481 lines
                    
1<?php
                    
2/**
                    
189		// be sure to account for european formats in decimals, and thousands separators
                    
190		if ( is_numeric( str_replace( $this->get_separators(), '', $cost ) ) ) {
                    
191			$cost = tribe_format_currency( $cost );
                    
215		// return the non-numeric cost so that value is preserved
                    
216		if ( 1 === count( $costs ) && ! is_numeric( current( $costs ) ) ) {
                    
217			return current( $costs );
                    
220		// make sure we are only trying to get numeric min/max values
                    
221		$costs = array_filter( $costs, 'is_numeric' );
                    
222
                    
344
                    
345			if ( is_numeric( $numeric_cost ) ) {
                    
346				// Creates a Well Balanced Index that will perform good on a Key Sorting method
                    
386		$_merging_cost              = array_map( array( $this, 'numerize_numbers' ), $_merging_cost );
                    
387		$numeric_merging_cost_costs = array_filter( $_merging_cost, 'is_numeric' );
                    
388
                    
                
Product.php https://github.com/arush/fancydress.git | PHP | 441 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 */
                    
59        }
                    
60        elseif (is_numeric($product)) {
                    
61            return Mage::getModel('catalog/product')->load($product)->getProductUrl();
                    
432
                    
433        if ($identifierType == 'id' && is_numeric($productId)) {
                    
434            $productId = !is_float($productId) ? (int) $productId : 0;
                    
                
Size.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 365 lines
                    
1<?php
                    
2/**
                    
76    {
                    
77        if (is_string($options) || is_numeric($options)) {
                    
78            $options = array('max' => $options);
                    
143    {
                    
144        if (!is_string($min) and !is_numeric($min)) {
                    
145            throw new Exception\InvalidArgumentException('Invalid options to validator provided');
                    
188    {
                    
189        if (!is_string($max) && !is_numeric($max)) {
                    
190            throw new Exception\InvalidArgumentException('Invalid options to validator provided');
                    
320    {
                    
321        if (is_numeric($size)) {
                    
322            return (integer) $size;
                    
327        $value = substr($size, 0, -1);
                    
328        if (!is_numeric($value)) {
                    
329            $value = substr($value, 0, -1);
                    
                
klarnapclass.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 546 lines
                    
1<?php
                    
2defined('_JEXEC') or die('Restricted access');
                    
101     *
                    
102     * @ignore Do not show in PHPDoc.
                    
103     * @var string
                    
109     *
                    
110     * @ignore Do not show in PHPDoc.
                    
111     * @var int
                    
117     *
                    
118     * @ignore Do not show in PHPDoc.
                    
119     * @var float
                    
125     *
                    
126     * @ignore Do not show in PHPDoc.
                    
127     * @var float
                    
133     *
                    
134     * @ignore Do not show in PHPDoc.
                    
135     * @var float
                    
                
actions.class.php https://github.com/adrianMorelos/SurveysAdmin.git | PHP | 356 lines
                    
1<?php
                    
2
                    
8 * @author     Your name here
                    
9 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
                    
10 */
                    
200        
                    
201        if( (!is_numeric($q) && $q >= 0) && (!is_numeric($g) && $g>=0) ){return sfView::NONE;}
                    
202        if(!$k == "null" && !is_numeric($k) ){return sfView::NONE;}
                    
                
categories.php https://github.com/LisaX/oscommerce.git | PHP | 336 lines
                    
1<?php
                    
2/*
                    
46
                    
47      if ( !is_numeric($id) ) {
                    
48        if ( isset($current_category_id) && is_numeric($current_category_id) ) {
                    
77
                    
78      if ( !is_numeric($id) ) {
                    
79        if ( isset($current_category_id) && is_numeric($current_category_id) ) {
                    
136
                    
137      if ( is_numeric($id) ) {
                    
138        $Qcat = $osC_Database->query('update :table_categories set sort_order = :sort_order, last_modified = now() where categories_id = :categories_id');
                    
150      if ( !$osC_Database->isError() ) {
                    
151        $category_id = (is_numeric($id)) ? $id : $osC_Database->nextID();
                    
152
                    
153        foreach ( $osC_Language->getAll() as $l ) {
                    
154          if ( is_numeric($id) ) {
                    
155            $Qcd = $osC_Database->query('update :table_categories_description set categories_name = :categories_name where categories_id = :categories_id and language_id = :language_id');
                    
                
WorldManager.php https://gitlab.com/Skull3x/MineBlock | PHP | 431 lines
                    
1<?php
                    
2namespace MineBlock\WorldManager;
                    
76						$page = 1;
                    
77						if(isset($sub[0]) && is_numeric($sub[0])) $page = max(floor($sub[0]), 1);
                    
78						$list = array_chunk($this->getServer()->getLevels(), 5, true);
                    
149						$page = 1;
                    
150						if(isset($sub[0]) && is_numeric($sub[0])) $page = max(floor($sub[0]), 1);
                    
151						$list = array_chunk($wp, 5, true);
                    
217						$page = 1;
                    
218						if(isset($sub[0]) && is_numeric($sub[0])) $page = max(floor($sub[0]), 1);
                    
219						$list = array_chunk($wpvp, 5, true);
                    
285						$page = 1;
                    
286						if(isset($sub[0]) && is_numeric($sub[0])) $page = max(floor($sub[0]), 1);
                    
287						$list = array_chunk($winv, 5, true);
                    
                
Definition.php https://gitlab.com/ElvisAns/tiki | PHP | 396 lines
                    
1<?php
                    
2
                    
119    {
                    
120        if (is_numeric($id)) {
                    
121            foreach ($this->getFields() as $f) {
                    
                
awards.php https://github.com/Smokki/PsychoStats-extended.git | PHP | 299 lines
                    
1<?php
                    
2/**
                    
20 *
                    
21 *	Version $Id: awards.php 495 2008-06-18 18:41:37Z lifo $
                    
22 */
                    
23define("PSYCHOSTATS_PAGE", true);
                    
24include(dirname(__FILE__) . "/includes/common.php");
                    
25include(PS_ROOTDIR . "/includes/class_calendar.php");
                    
47
                    
48if (!is_numeric($p)) $p = '';
                    
49$_p = $ps->db->escape($p, true);
                    
178$cms->theme->assign(array(
                    
179	'page'		=> basename(__FILE__,'.php'),
                    
180	'view_str' 	=> $views[$v],
                    
192// display the output
                    
193$basename = basename(__FILE__, '.php');
                    
194$cms->theme->add_css('css/2column.css');	// this page has a left column
                    
                
date_helper.php https://gitlab.com/ricoru21/py_test | PHP | 611 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
68 *
                    
69 * This function is identical to PHPs date() function,
                    
70 * except that it allows date codes to be formatted using
                    
154
                    
155		if ( ! is_numeric($seconds))
                    
156		{
                    
159
                    
160		if ( ! is_numeric($time))
                    
161		{
                    
273
                    
274		if ( ! is_numeric($year) OR strlen($year) != 4)
                    
275		{
                    
                
Result.php https://bitbucket.org/acidel/buykoala.git | PHP | 160 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 */

                    
126        foreach ($this->getAllRates() as $rate) {

                    
127            if (is_numeric($rate->getPrice()) && $rate->getPrice()<$minPrice) {

                    
128                $cheapest = $rate;

                    
                
tcCompareVersions.php https://github.com/viglesiasce/testlink.git | PHP | 138 lines
                    
1<?php
                    
2/** 
                    
8 * @copyright 	2005-2009, TestLink community 
                    
9 * @version    	CVS: $Id: tcCompareVersions.php,v 1.4 2010/04/23 14:02:42 asimon83 Exp $
                    
10 * @link 		http://www.teamst.org/index.php
                    
16
                    
17require_once("../../config.inc.php");
                    
18require_once("common.php");
                    
18require_once("common.php");
                    
19require('../../third_party/diff/diff.php');
                    
20
                    
130	} else {
                    
131		$args->context = (isset($_REQUEST['context']) && is_numeric($_REQUEST['context'])) ? 
                    
132											$_REQUEST['context'] : $diffEngineCfg->context;	
                    
                
restore_structure_parser_processor.class.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 122 lines
                    
1<?php
                    
2
                    
24
                    
25require_once($CFG->dirroot.'/backup/util/xml/parser/processors/grouped_parser_processor.class.php');
                    
26
                    
31 * to corresponding methods and basic decoding of contents
                    
32 * (NULLs and legacy file.php uses)
                    
33 *
                    
33 *
                    
34 * TODO: Complete phpdocs
                    
35 */
                    
47    /**
                    
48     * Provide NULL and legacy file.php uses decoding
                    
49     */
                    
58        } else if (strlen($cdata) < 32) { // Impossible to have one link in 32cc
                    
59            return $cdata;                // (http://10.0.0.1/file.php/1/1.jpg, http://10.0.0.1/mod/url/view.php?id=)
                    
60        } else if (strpos($cdata, '$@FILEPHP@$') === false) { // No $@FILEPHP@$, nothing to convert
                    
                
Date.php https://gitlab.com/yousafsyed/easternglamor | PHP | 384 lines
                    
1<?php
                    
2/**
                    
46     * @throws \Magento\Framework\Exception\LocalizedException
                    
47     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
48     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
77                $value['minute']
                    
78            ) && is_numeric(
                    
79                $value['hour']
                    
79                $value['hour']
                    
80            ) && is_numeric(
                    
81                $value['minute']
                    
126     * @throws \Magento\Framework\Exception\LocalizedException
                    
127     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
128     * @SuppressWarnings(PHPMD.UnusedLocalVariable)
                    
183     * @return string
                    
184     * @SuppressWarnings(PHPMD.UnusedLocalVariable)
                    
185     */
                    
                
tracking.cnr.php https://github.com/TeamRocketScience/Claroline-TRS-Edition.git | PHP | 272 lines
                    
1<?php // $Id$
                    
2if ( count( get_included_files() ) == 1 ) die( '---' );
                    
64                    $html .= '<tr>'."\n"
                    
65                    .   '<td><a href="../exercise/track_exercises.php?exId='.$result['exo_id'].'">'.$result['title'].'</a></td>'."\n"
                    
66                    .   '<td align="right">'.$result['nbr_distinct_user_attempts'].'</td>'."\n"
                    
123    {
                    
124        if( isset($_REQUEST['exId']) && is_numeric($_REQUEST['exId']) )   $exId = (int) $_REQUEST['exId'];
                    
125        else                                                              $exId = null;
                    
196                        .    '<td><small>' . "\n"
                    
197                        .        '<a href="'.get_module_url('CLQWZ') . '/track_exercise_details.php?trackedExId='.$details['id'].'">'
                    
198                        .           claro_html_localised_date( 
                    
                
jpgraph_text.inc.php https://github.com/nephie/AZL-website.git | PHP | 302 lines
                    
1<?php
                    
2//=======================================================================
                    
2//=======================================================================
                    
3// File:        JPGRAPH_TEXT.INC.PHP
                    
4// Description: Class to handle text as object in the graph.
                    
6// Created:     2001-01-08 (Refactored to separate file 2008-08-01)
                    
7// Ver:         $Id: jpgraph_text.inc.php 1844 2009-09-26 17:05:31Z ljp $
                    
8//
                    
146        $this->halign = "center";
                    
147        if( is_numeric($aYAbsPos) )
                    
148            $this->y = $aYAbsPos;
                    
161    function SetOrientation($aDirection=0) {
                    
162        if( is_numeric($aDirection) )
                    
163            $this->dir=$aDirection;
                    
                
ImageMagick.php https://gitlab.com/yousafsyed/easternglamor | PHP | 480 lines
                    
1<?php
                    
2/**
                    
46            $pixel = new \ImagickPixel();
                    
47            if (is_numeric($color)) {
                    
48                $pixel->setColorValue($color, 1);
                    
237     * @throws \Exception
                    
238     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
239     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
332        if (!class_exists('\Imagick', false)) {
                    
333            throw new \Exception("Required PHP extension 'Imagick' was not loaded.");
                    
334        }
                    
                
catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
                    
1<?php
                    
2/**
                    
107			//if(\COption::GetOptionString("sale", "encode_fuser_id", "N") == "Y")
                    
108			if (!is_numeric($basketItem->getFUserId()))
                    
109			{
                    
                
Currency.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 357 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
256    {
                    
257        if (!is_numeric($price)) {
                    
258            $price = Mage::app()->getLocale()->getNumber($price);
                    
                
class-thelib-core.php https://gitlab.com/najomie/fit-hippie | PHP | 221 lines
                    
1<?php
                    
2/**
                    
131			return true;
                    
132		} elseif ( is_numeric( $value ) ) {
                    
133			$value = intval( $value );
                    
                
SqlBase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 415 lines
                    
1<?php
                    
2
                    
235      foreach ($options as $option) {
                    
236        if (!is_numeric($option) || intval($option) == 0) {
                    
237          $error = TRUE;
                    
385    if (!$form_state->isValueEmpty('offset') && trim($form_state->getValue('offset'))) {
                    
386      if (!is_numeric($form_state->getValue('offset')) || $form_state->getValue('offset') < 0) {
                    
387        $form_state->setErrorByName('offset', $this->t('Offset must be a number greater than or equal to 0.'));
                    
                
Tag.php https://github.com/michaelmcandrew/vaw.git | PHP | 215 lines
                    
1<?php
                    
2
                    
107                    $tagset[$tagsetItem]['entityId'] = $entityId;
                    
108                    require_once 'CRM/Core/BAO/EntityTag.php';
                    
109                    $entityTags = CRM_Core_BAO_EntityTag::getChildEntityTags( $parentId, $entityId, $entityTable );                    
                    
118                            foreach( $tagIds as $tagId ) {
                    
119                                if ( is_numeric( $tagId ) ) {
                    
120                                    $tagName = $allTags[$tagId];
                    
135                           foreach( $tagIds as $tagId ) {
                    
136                               if ( is_numeric( $tagId ) ) {
                    
137                                   $tagName = $allTags[$tagId];
                    
148                        if ( !empty($form->_formValues['contact_tags']) ) {
                    
149                            require_once 'CRM/Core/BAO/Tag.php';
                    
150                            $contactTags = CRM_Core_BAO_Tag::getTagsUsedFor( 'civicrm_contact', true, false, $parentId );
                    
154                                    $tagName = $tagId;
                    
155                                    if ( is_numeric($tagId) ) $tagName = $contactTags[$tagId];
                    
156
                    
                
pdf.php https://github.com/lserwatka/ezpublish.git | PHP | 344 lines
                    
1<?php
                    
2//
                    
58
                    
59if ( !is_numeric( $Offset ) )
                    
60    $Offset = 0;
                    
                
Profiles.php https://gitlab.com/gregtyka/opensis | PHP | 258 lines
                    
1<?php
                    
2#**************************************************************************
                    
71	{
                    
72		$file = 'Users/User.php&category_id='.$category['ID'];
                    
73		$tmp_menu['Users'][$xprofile][$file] = ' &nbsp; &nbsp; &rsaquo; '.$category['TITLE'];
                    
80		{
                    
81			if(!is_numeric($modname))
                    
82			{
                    
128PopTable('header','Permissions');
                    
129	echo "<FORM name=pref_form id=pref_form action=Modules.php?modname=$_REQUEST[modname]&modfunc=update&profile_id=$_REQUEST[profile_id] method=POST>";
                    
130	DrawHeaderHome('Select the programs that users of this profile can use and which programs those users can use to save information.');
                    
143		if($_REQUEST['profile_id']!='' && $id==$_REQUEST['profile_id'])
                    
144			echo '<TR id=selected_tr onmouseover="" onmouseout="" bgcolor="'.Preferences('HIGHLIGHT').'"; this.style.color="white";\'><TD width=20 align=right'.$style.'>'.(AllowEdit()&&$id>3?button('remove','',"Modules.php?modname=$_REQUEST[modname]&modfunc=delete&profile_id=$id",20):'').'</TD><TD '.$style.' onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&profile_id='.$id.'\';">';
                    
145		else
                    
145		else
                    
146			echo '<TR onmouseover=\'this.style.backgroundColor="'.Preferences('HIGHLIGHT').'"; this.style.color="white";\' onmouseout=\'this.style.cssText="background-color:transparent; color:black;";\'><TD width=20 align=right'.$style.'>'.(AllowEdit()&&$id>3?button('remove','',"Modules.php?modname=$_REQUEST[modname]&modfunc=delete&profile_id=$id",15):'').'</TD><TD'.$style.' onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&profile_id='.$id.'\';">';
                    
147		echo '<b><a style="cursor: pointer; cursor:hand; text-decoration:none;">'.($id>3?'':'<b>').$profile[1]['TITLE'].($id>3?'':'</b>').'</a></b> &nbsp;';
                    
                
SqlBase.php https://gitlab.com/guillaumev/alkarama | PHP | 393 lines
                    
1<?php
                    
2
                    
181      foreach ($options as $option) {
                    
182        if (!is_numeric($option) || intval($option) == 0) {
                    
183          $error = TRUE;
                    
363    if (!$form_state->isValueEmpty('offset') && trim($form_state->getValue('offset'))) {
                    
364      if (!is_numeric($form_state->getValue('offset')) || $form_state->getValue('offset') < 0) {
                    
365        $form_state->setErrorByName('offset', $this->t('Offset must be an number greater or equal than 0.'));
                    
                
update.php https://gitlab.com/diva-lab/essam-labs | PHP | 266 lines
                    
1<?php 
                    
2require_once("../layout/initialize.php"); 
                    
3//check id access 
                    
4if(isset($_GET['id']) && is_numeric($_GET['id'])){ 
                    
5	$record_id = $_GET['id']; 
                    
11	if(empty($record_info->id)){ 
                    
12		redirect_to("view.php");	 
                    
13	}else{ 
                    
37<!--sidebar start--> 
                    
38<?php require_once("../layout/navigation.php");?> 
                    
39<!--sidebar end-->  
                    
171                <button type="button" class="btn btn-info"  
                    
172                    onClick="window.location.href = 'view.php?group_id='+<?php echo $group_data->id?>" >View Links </button> 
                    
173                <div id="loading_data"></div> 
                    
264<!--footer start--> 
                    
265<?php require_once("../layout/footer.php");?> 
                    
266<script src="../../js-crud/load_nodes.js"></script>
                    
                
article.php https://bitbucket.org/eternaware/joomus.git | PHP | 323 lines
                    
1<?php
                    
2/**
                    
142
                    
143				if (is_numeric($published)) {
                    
144					$query->where('(a.state = ' . (int) $published . ' OR a.state =' . (int) $archived . ')');
                    
155				// Check for published state if filter set.
                    
156				if (((is_numeric($published)) || (is_numeric($archived))) && (($data->state != $published) && ($data->state != $archived))) {
                    
157					return JError::raiseError(404, JText::_('COM_CONTENT_ERROR_ARTICLE_NOT_FOUND'));
                    
                
linea_albaran_cliente.php https://gitlab.com/cosouth.battle/sartinofi | PHP | 509 lines
                    
1<?php
                    
2/*
                    
6
                    
7require_model('articulo.php');
                    
8require_model('albaran_cliente.php');
                    
233   {
                    
234      return 'index.php?page=ventas_albaran&id='.$this->idalbaran;
                    
235   }
                    
240      {
                    
241         return "index.php?page=ventas_articulos";
                    
242      }
                    
243      else
                    
244         return "index.php?page=ventas_articulo&ref=".urlencode($this->referencia);
                    
245   }
                    
379      $sql = "SELECT * FROM ".$this->table_name." WHERE ";
                    
380      if( is_numeric($query) )
                    
381      {
                    
                
AdminTest.php https://gitlab.com/e0/X2CRM | PHP | 309 lines
                    
1<?php
                    
2
                    
191                $this->assertTrue (isset ($licenseKey['maxUsers']));
                    
192                $this->assertTrue (is_numeric ($licenseKey['dateExpires']));
                    
193                $this->assertTrue (is_numeric ($licenseKey['maxUsers']));
                    
200                $this->assertTrue (isset ($licenseKey['maxUsers']));
                    
201                $this->assertTrue (is_numeric ($licenseKey['dateExpires']));
                    
202                $this->assertTrue (is_numeric ($licenseKey['maxUsers']));
                    
258        $this->assertTrue (isset ($licenseKey['maxUsers']));
                    
259        $this->assertTrue (is_numeric ($licenseKey['dateExpires']));
                    
260        $this->assertTrue (is_numeric ($licenseKey['maxUsers']));
                    
267        $this->assertTrue (isset ($licenseKey['maxUsers']));
                    
268        $this->assertTrue (is_numeric ($licenseKey['dateExpires']));
                    
269        $this->assertTrue (is_numeric ($licenseKey['maxUsers']));
                    
                
Numeric.php https://gitlab.com/oytunistrator/92five | PHP | 112 lines
                    
1<?php
                    
2/**
                    
36 *
                    
37 * @package    PHPUnit
                    
38 * @subpackage Framework
                    
39 * @author     Bernhard Schussek <bschussek@2bepublished.at>
                    
40 * @copyright  2001-2014 Sebastian Bergmann <sebastian@phpunit.de>
                    
41 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
41 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
42 * @link       http://www.phpunit.de/
                    
43 * @since      File available since Release 3.6.0
                    
57 */
                    
58class PHPUnit_Framework_Comparator_Numeric extends PHPUnit_Framework_Comparator_Scalar
                    
59{
                    
69        // all numerical values, but not if one of them is a double
                    
70        return is_numeric($expected) && is_numeric($actual) && !(is_double($expected) || is_double($actual));
                    
71    }
                    
                
Collection.php https://github.com/MrRio/magento.git | PHP | 346 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) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
92            }
                    
93        } elseif (is_numeric($categoryIds)) {
                    
94            $condition = $categoryIds;
                    
                
Migration.php https://github.com/reoring/sabel.git | PHP | 144 lines
                    
1<?php
                    
2
                    
9 * @copyright  2004-2008 Mori Reo <mori.reo@sabel.jp>
                    
10 * @license    http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
11 */
                    
131    if (($column->isBool() && !is_bool($default)) ||
                    
132        ($column->isNumeric() && !is_numeric($default))) {
                    
133      throw new Sabel_Db_Exception("invalid default value.");
                    
                
Element.php https://github.com/Zefiryn/graduationprojects.git | PHP | 176 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Element.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
73	 * @todo It's nevessry to check if SplObjectStorage class works faster
                    
74	 * (Needs PHP 5.3.x to attach object _with_ additional data to storage)
                    
75	 *
                    
129	/**
                    
130	 * Convert PDF element to PHP type.
                    
131	 *
                    
133	 */
                    
134	public function toPhp()
                    
135	{
                    
139	/**
                    
140	 * Convert PHP value into PDF element.
                    
141	 *
                    
                
tbl_replace.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 414 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * usally called as form action from tbl_change.php to insert or update table rows
                    
7 *
                    
7 *
                    
8 * @version $Id: tbl_replace.php 12245 2009-02-23 08:36:34Z lem9 $
                    
9 *
                    
54 */
                    
55require_once './libraries/common.inc.php';
                    
56
                    
66
                    
67if (isset($_REQUEST['insert_rows']) && is_numeric($_REQUEST['insert_rows']) && $_REQUEST['insert_rows'] != $cfg['InsertRows']) {
                    
68    $cfg['InsertRows'] = $_REQUEST['insert_rows'];
                    
69    $GLOBALS['js_include'][] = 'tbl_change.js';
                    
70    require_once './libraries/header.inc.php';
                    
71    require './tbl_change.php';
                    
                
account_history_info.php https://github.com/cybotech/oscommerce2.git | PHP | 231 lines
                    
1<?php
                    
2/*
                    
12
                    
13  require('includes/application_top.php');
                    
14
                    
19
                    
20  if (!isset($HTTP_GET_VARS['order_id']) || (isset($HTTP_GET_VARS['order_id']) && !is_numeric($HTTP_GET_VARS['order_id']))) {
                    
21    tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
                    
35
                    
36  require(DIR_WS_CLASSES . 'order.php');
                    
37  $order = new order($HTTP_GET_VARS['order_id']);
                    
38
                    
39  require(DIR_WS_INCLUDES . 'template_top.php');
                    
40?>
                    
45          <tr>
                    
46            <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
                    
47            <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_history.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
                    
                
class-gf-field-checkbox.php https://gitlab.com/level-level/gravityforms | PHP | 380 lines
                    
1<?php
                    
2
                    
97			foreach ( $lead_field_keys as $input_id ) {
                    
98				if ( is_numeric( $input_id ) && absint( $input_id ) == $field_id ) {
                    
99					$items[] = GFCommon::selection_display( rgar( $entry, $input_id ), null, $entry['currency'], false );
                    
322			//mark as a tick if input label (from form meta) is equal to submitted value (from lead)
                    
323			if ( is_numeric( $input_id ) && absint( $input_id ) == absint( $field_id ) ) {
                    
324				$sanitized_value = wp_kses( $entry[ $input_id ], $allowed_tags );
                    
                
helpers.php https://bitbucket.org/bayrock/gw2spidy.git | PHP | 326 lines
                    
1<?php
                    
2
                    
58
                    
59    if (($rarityFilter = $request->get('rarity_filter', null)) !== null && is_numeric($rarityFilter) && in_array($rarityFilter, array(0,1,2,3,4,5,6))) {
                    
60        $q->filterByRarity($rarityFilter);
                    
                
Think.class.php https://gitlab.com/fangfangchen/xianpipa | PHP | 344 lines
                    
13/**
                    
14 * ThinkPHP 引导类
                    
15 */
                    
39
                    
40      $runtimefile  = RUNTIME_PATH.APP_MODE.'~runtime.php';
                    
41      if(!APP_DEBUG && Storage::has($runtimefile)){
                    
47          // 读取应用模式
                    
48          $mode   =   include is_file(CONF_PATH.'core.php')?CONF_PATH.'core.php':MODE_PATH.APP_MODE.'.php';
                    
49          // 加载核心文件
                    
58          foreach ($mode['config'] as $key=>$file){
                    
59              is_numeric($key)?C(load_config($file)):C($key,load_config($file));
                    
60          }
                    
299            if(IS_CLI){
                    
300                exit(iconv('UTF-8','gbk',$e['message']).PHP_EOL.'FILE: '.$e['file'].'('.$e['line'].')'.PHP_EOL.$e['trace']);
                    
301            }
                    
                
recipe_list.php https://github.com/laposa/onxshop.git | PHP | 142 lines
                    
1<?php
                    
2/**
                    
7
                    
8require_once('controllers/list.php');
                    
9require_once('models/ecommerce/ecommerce_recipe.php');
                    
29            foreach ($taxonomy_ids as $taxonomy_id) 
                    
30                if (!is_numeric($taxonomy_id)) return false;
                    
31        }
                    
33        // is there a limit?
                    
34        if  (is_numeric($this->GET['limit_from'])) $limit_from = $this->GET['limit_from'];
                    
35        else $limit_from = 0;
                    
35        else $limit_from = 0;
                    
36        if (is_numeric($this->GET['limit_per_page'])) $limit_per_page = $this->GET['limit_per_page'];
                    
37        else $limit_per_page = 25;
                    
49        // disjunctive (0 for OR, 1 for AND)
                    
50        if (is_numeric($this->GET['conjunction']) && $this->GET['conjunction'] == 0) $conjunction = false;
                    
51        else $conjunction = true;
                    
                
gen_pack.php https://github.com/wmorganjr/epictome.git | PHP | 131 lines
                    
1<?php
                    
2
                    
2
                    
3include_once('util.php');
                    
4
                    
32
                    
33  if (is_numeric($pack_set)) {
                    
34    $pack_num = (int) $pack_set;
                    
                
blocklayered.tpl https://gitlab.com/ptisky/API_prestashop | Smarty Template | 257 lines
                    
8* It is also available through the world-wide-web at this URL:
                    
9* http://opensource.org/licenses/afl-3.0.php
                    
10* If you did not receive a copy of the license and are unable to
                    
21*  @copyright  2007-2013 PrestaShop SA
                    
22*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23*  International Registred Trademark & Property of PrestaShop SA
                    
64										{foreach from=$filter.values key=id_value item=value}
                    
65											{if $id_value == $filter_key && !is_numeric($filter_value) && ($filter.type eq 'id_attribute_group' || $filter.type eq 'id_feature') || $id_value == $filter_value && $filter.type neq 'id_attribute_group' && $filter.type neq 'id_feature'}
                    
66												<li>
                    
                
actions.class.php https://github.com/sebardo/social-sandbox.git | PHP | 323 lines
                    
1<?php
                    
2
                    
8 * @author     Your name here
                    
9 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
                    
10 */
                    
18            } else {
                    
19                if (!is_numeric($request->getParameter('user'))) {
                    
20                    $this->datos = Doctrine::getTable('sfGuardUser')->findOneBy('username', $request->getParameter('user'), Doctrine::HYDRATE_RECORD);
                    
234            } else {
                    
235                if (!is_numeric($request->getParameter('user'))) {
                    
236                    $this->datos = Doctrine::getTable('sfGuardUser')->findOneBy('username', $request->getParameter('user'), Doctrine::HYDRATE_RECORD);
                    
311            } else {
                    
312                if (!is_numeric($request->getParameter('user'))) {
                    
313                    $this->datos = Doctrine::getTable('sfGuardUser')->findOneBy('username', $request->getParameter('user'), Doctrine::HYDRATE_RECORD);
                    
                
calendar.php https://github.com/devbeans/VisionPOS.git | PHP | 124 lines
                    
1<?php
                    
2
                    
3/**
                    
4 *  File: calendar.php | (c) dynarch.com 2004
                    
5 *  Distributed as part of "The Coolest DHTML Calendar"
                    
7 *  -----------------------------------------------------------------
                    
8 *  This file implements a simple PHP wrapper for the calendar.  It
                    
9 *  allows you to easily include all the calendar files and setup the
                    
9 *  allows you to easily include all the calendar files and setup the
                    
10 *  calendar by instantiating and calling a PHP object.
                    
11 */
                    
105                $val = $val ? 'true' : 'false';
                    
106            else if (!is_numeric($val))
                    
107                $val = '"'.$val.'"';
                    
                
SearchHandler.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 269 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * SearchHandler.inc.php
                    
5 *
                    
12 *
                    
13 * $Id: SearchHandler.inc.php,v 1.28 2005/08/01 23:03:54 kevin Exp $
                    
14 */
                    
170		$searchType = Request::getUserVar('searchField');
                    
171		if (!is_numeric($searchType)) $searchType = null;
                    
172
                    
                
scheduled_task.php https://github.com/ankitagarwal/moodle.git | PHP | 466 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
282                $inrange = true;
                    
283            } else if (is_numeric($match)) {
                    
284                if ($instep) {
                    
314                }
                    
315            } else if (is_numeric($r)) {
                    
316                if ($r >= $min && $r <= $max) {
                    
358
                    
359        // We need to change to the server timezone before using php date() functions.
                    
360        \core_date::set_default_server_timezone();
                    
                
Usermanagement.php https://gitlab.com/dmsapiens/physicians | PHP | 277 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
113
                    
114        if (is_numeric($this->uri->segment(3))) {
                    
115            $this->data['userlist'] = $this->users->get_user($id);
                    
128        
                    
129        if (is_numeric($this->uri->segment(3))) {
                    
130            $this->data['userlist'] = $this->users->get_userview($id);
                    
                
font_container.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 298 lines
                    
1<?php
                    
2
                    
256			foreach ( $attr as $key => $val ) {
                    
257				if ( is_numeric( $key ) ) {
                    
258					$fields[ $val ] = "";
                    
                
ClientesController.php https://gitlab.com/fabiorf/fsipedidos | PHP | 320 lines
                    
1<?php
                    
2 
                    
2 
                    
3// namespace de localizacao clientesController.php
                    
4namespace Cliente\Controller;
                    
264
                    
265        if($id != "" && is_numeric($id)){
                    
266            // se id = 0 ou não informado redirecione para clientes
                    
                
Logger.php https://gitlab.com/nitm/yii2-module | PHP | 395 lines
                    
1<?php
                    
2
                    
38		parent::init();
                    
39		$this->currentUser = (\Yii::$app->hasProperty('user') && \Yii::$app->user->getId()) ? \Yii::$app->user->getIdentity() : new \nitm\models\User(['username' => (php_sapi_name() == 'cli' ? 'console' : 'web')]);
                    
40
                    
193	public function getLevel($level) {
                    
194		if(is_numeric($level)) {
                    
195			return $level >= 0 && $level < count($this->levels) ? $level : 0;
                    
                
depfile_com.php https://gitlab.com/billyprice1/rapidleech | PHP | 251 lines
                    
1<?php
                    
2
                    
21
                    
22			if (is_numeric($this->fid)) is_present($this->page, 'File was not found in the DepFile database.', 'File Not Found or Link Invalid.');
                    
23			else is_present($this->page, "\nLocation: /premium", 'File Not Found.');
                    
50			is_present($this->page, 'File is available only for Premium users', 'This File Is Only Available For Premium Users.');
                    
51			if (!preg_match('@/includes/vvc\.php\?vvcid=(\d+)@i', $this->page, $vvc)) html_error('CAPTCHA not Found.');
                    
52			$data = $this->DefaultParamArr($this->link, $this->cookie, 1, 1);
                    
81
                    
82		return $this->RedirectDownload($DL[0], urldecode(parse_url($DL[0], PHP_URL_PATH)));
                    
83	}
                    
89		if (!preg_match($this->DLRegexp, $page, $DL)) html_error('Download Link not Found.');
                    
90		return $this->RedirectDownload($DL[0], urldecode(parse_url($DL[0], PHP_URL_PATH)));
                    
91	}
                    
93	private function chkPremCaptcha(&$page) {
                    
94		if (!preg_match('@/includes/vvc\.php\?vvcid=(\d+)@i', $page, $vvc)) return false;
                    
95
                    
                
mail.php https://bitbucket.org/flth/xtcm.git | PHP | 276 lines
                    
24
                    
25  require_once(DIR_FS_CATALOG.DIR_WS_CLASSES.'class.phpmailer.php');
                    
26  require_once(DIR_FS_INC . 'xtc_php_mail.inc.php');
                    
104<!-- header //-->
                    
105<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
                    
106<!-- header_eof //-->
                    
174              <tr>
                    
175                <td class="smallText"><b><?php echo TEXT_MESSAGE; ?></b><br /><?php echo nl2br(htmlspecialchars(stripslashes($_POST['message']))); ?></td>
                    
176              </tr>
                    
191                  <tr>
                    
192                    <td><input type="submit" class="button" onclick="return confirm('<?php echo SAVE_ENTRY; ?>')" value="<?php echo BUTTON_BACK; ?>" name="back"></td>
                    
193                    <td align="right"><?php echo '<a class="button" href="' . xtc_href_link(FILENAME_MAIL) . '">' . BUTTON_CANCEL . '</a> <input type="submit" class="button" value="'.BUTTON_SEND_EMAIL.'">' ?></td>
                    
270<!-- footer //-->
                    
271<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
                    
272<!-- footer_eof //-->
                    
275</html>
                    
276<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
                    
                
Mail.php https://github.com/Riges/KawaiViewModel.git | PHP | 430 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Mail.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
23/** Zend_Log_Writer_Abstract */
                    
24require_once 'Zend/Log/Writer/Abstract.php';
                    
25
                    
26/** Zend_Log_Exception */
                    
27require_once 'Zend/Log/Exception.php';
                    
28
                    
29/** Zend_Log_Formatter_Simple*/
                    
30require_once 'Zend/Log/Formatter/Simple.php';
                    
31
                    
43 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
44 * @version    $Id: Mail.php 24593 2012-01-05 20:35:02Z matthew $
                    
45 */
                    
                
backuplib.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 294 lines
                    
1<?php //$Id$
                    
2    //This php script contains all the stuff to backup/restore
                    
51
                    
52        if (is_numeric($assignment)) {
                    
53            $assignment = get_record('assignment','id',$assignment);
                    
88        $class = 'assignment_' . $assignment->assignmenttype;
                    
89        require_once($CFG->dirroot . '/mod/assignment/lib.php');
                    
90        require_once($CFG->dirroot . '/mod/assignment/type/' . $assignment->assignmenttype . '/assignment.class.php');
                    
138                $class = 'assignment_' . $assignment->assignmenttype;
                    
139                require_once($CFG->dirroot . '/mod/assignment/lib.php');
                    
140                require_once($CFG->dirroot . '/mod/assignment/type/' . $assignment->assignmenttype . '/assignment.class.php');
                    
250        //Link to the list of assignments
                    
251        $buscar="/(".$base."\/mod\/assignment\/index.php\?id\=)([0-9]+)/";
                    
252        $result= preg_replace($buscar,'$@ASSIGNMENTINDEX*$2@$',$content);
                    
254        //Link to assignment view by moduleid
                    
255        $buscar="/(".$base."\/mod\/assignment\/view.php\?id\=)([0-9]+)/";
                    
256        $result= preg_replace($buscar,'$@ASSIGNMENTVIEWBYID*$2@$',$result);
                    
                
Set.php https://gitlab.com/yousafsyed/easternglamor | PHP | 236 lines
                    
1<?php
                    
2/**
                    
229        $bind = [];
                    
230        if (is_numeric($setId)) {
                    
231            $bind[':attribute_set_id'] = $setId;
                    
                
Posix.php https://gitlab.com/yousafsyed/easternglamor | PHP | 407 lines
                    
1<?php
                    
2/**
                    
109        $this->write($text, $color, $bgColor);
                    
110        $this->write(PHP_EOL);
                    
111    }
                    
135        $result = exec('tput cols', $output, $return);
                    
136        if (!$return && is_numeric($result)) {
                    
137            return $width = (int) $result;
                    
161        $result = exec('tput lines', $output, $return);
                    
162        if (!$return && is_numeric($result)) {
                    
163            return $height = (int) $result;
                    
323
                    
324        $stream = fopen('php://stdin', 'rb');
                    
325        do {
                    
                
BasicPermission.php git://github.com/thorsten/phpMyFAQ.git | PHP | 469 lines
                    
1<?php
                    
2
                    
9 *
                    
10 * @package   phpMyFAQ
                    
11 * @author    Lars Tiedemann <php@larstiedemann.de>
                    
11 * @author    Lars Tiedemann <php@larstiedemann.de>
                    
12 * @copyright 2005-2021 phpMyFAQ Team
                    
13 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
13 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
14 * @link      https://www.phpmyfaq.de
                    
15 * @since     2005-09-17
                    
17
                    
18namespace phpMyFAQ\Permission;
                    
19
                    
19
                    
20use phpMyFAQ\Configuration;
                    
21use phpMyFAQ\Database;
                    
                
blocklayered.tpl https://bitbucket.org/enurkov/prestashop.git | Smarty Template | 257 lines
                    
8* It is also available through the world-wide-web at this URL:
                    
9* http://opensource.org/licenses/afl-3.0.php
                    
10* If you did not receive a copy of the license and are unable to
                    
21*  @copyright  2007-2012 PrestaShop SA
                    
22*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23*  International Registred Trademark & Property of PrestaShop SA
                    
64										{foreach from=$filter.values key=id_value item=value}
                    
65											{if $id_value == $filter_key && !is_numeric($filter_value) && ($filter.type eq 'id_attribute_group' || $filter.type eq 'id_feature') || $id_value == $filter_value && $filter.type neq 'id_attribute_group' && $filter.type neq 'id_feature'}
                    
66												<li>
                    
                
categories.php https://github.com/tomtom127/oscommerce.git | PHP | 247 lines
                    
1<?php
                    
2/*
                    
47
                    
48      if ( is_numeric($id) ) {
                    
49        $Qcat = $osC_Database->query('update :table_categories set sort_order = :sort_order, last_modified = now() where categories_id = :categories_id');
                    
61      if ( !$osC_Database->isError() ) {
                    
62        $category_id = (is_numeric($id)) ? $id : $osC_Database->nextID();
                    
63
                    
64        foreach ($osC_Language->getAll() as $l) {
                    
65          if ( is_numeric($id) ) {
                    
66            $Qcd = $osC_Database->query('update :table_categories_description set categories_name = :categories_name where categories_id = :categories_id and language_id = :language_id');
                    
119
                    
120      if ( is_numeric($id) ) {
                    
121        $osC_CategoryTree->setBreadcrumbUsage(false);
                    
                
wp-diff.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 477 lines
                    
1<?php
                    
2/**
                    
12	/** Text_Diff class */
                    
13	require( dirname(__FILE__).'/Text/Diff.php' );
                    
14	/** Text_Diff_Renderer class */
                    
14	/** Text_Diff_Renderer class */
                    
15	require( dirname(__FILE__).'/Text/Diff/Renderer.php' );
                    
16	/** Text_Diff_Renderer_inline class */
                    
16	/** Text_Diff_Renderer_inline class */
                    
17	require( dirname(__FILE__).'/Text/Diff/Renderer/inline.php' );
                    
18}
                    
219		foreach ( $orig_matches as $o => $f ) {
                    
220			if ( is_numeric($o) && is_numeric($f) ) {
                    
221				$text_diff = new Text_Diff( 'auto', array( array($orig[$o]), array($final[$f]) ) );
                    
                
ht_google_analytics.php https://github.com/chrish123/oscommerce2.git | PHP | 130 lines
                    
1<?php
                    
2/*
                    
30    function execute() {
                    
31      global $PHP_SELF, $oscTemplate, $customer_id;
                    
32
                    
38
                    
39        if ( (MODULE_HEADER_TAGS_GOOGLE_ANALYTICS_EC_TRACKING == 'True') && (basename($PHP_SELF) == FILENAME_CHECKOUT_SUCCESS) && tep_session_is_registered('customer_id') ) {
                    
40          $order_query = tep_db_query("select orders_id, billing_city, billing_state, billing_country from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "' order by date_purchased desc limit 1");
                    
99
                    
100      if (empty($currency_value) || !is_numeric($currency_value)) {
                    
101        $currency_value = $currencies->currencies[$currency_code]['value'];
                    
                
DeleteComment.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 355 lines
                    
1<?php
                    
2
                    
5 */
                    
6require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
                    
7
                    
71		$_POST['_page']       = 1;
                    
72		$_POST['_url']        = admin_url( 'edit-comments.php' );
                    
73
                    
128		$_POST['_page']       = 1;
                    
129		$_POST['_url']        = admin_url( 'edit-comments.php' );
                    
130
                    
158		$_POST['_page']       = 1;
                    
159		$_POST['_url']        = admin_url( 'edit-comments.php' );
                    
160
                    
187		$_POST['_page']       = 1;
                    
188		$_POST['_url']        = admin_url( 'edit-comments.php' );
                    
189
                    
                
cvhtml.php https://github.com/YouWoTMA/brweb.git | PHP | 166 lines
                    
75        <div class="column right">
                    
76<?php }
                    
77
                    
92    </div>
                    
93<?php }
                    
94
                    
148        <div id="nav">
                    
149            <a href="../../<?php t("en"); ?>/cv/"><?php t("English"); ?></a>
                    
150            <a href=".."><?php t("Página principal") ?></a>
                    
150            <a href=".."><?php t("Página principal") ?></a>
                    
151            <a href="/david-bengoa-cv-<?php t("es"); ?>.pdf" class="last"><?php t("Descarga mi CV en PDF"); ?></a>
                    
152        </div>
                    
159    ?>
                    
160        <link href="<?php statico("css/cv.css"); ?>" rel="stylesheet" />
                    
161<?php
                    
                
Collection.php https://gitlab.com/yousafsyed/easternglamor | PHP | 393 lines
                    
1<?php
                    
2/**
                    
182        $reviewEntityTable = $this->getReviewEntityTable();
                    
183        if (is_numeric($entity)) {
                    
184            $this->addFilter('entity', $this->getConnection()->quoteInto('main_table.entity_id=?', $entity), 'string');
                    
219        }
                    
220        if (is_numeric($status)) {
                    
221            $this->addFilter('status', $this->getConnection()->quoteInto('main_table.status_id=?', $status), 'string');
                    
                
main.php https://github.com/jgen/shimmie2.git | PHP | 135 lines
                    
1<?php
                    
2/*
                    
15
                    
16		if(!is_numeric($config->get_string("db_version"))) {
                    
17			$config->set_int("db_version", 2);
                    
                
class-wp-ms-sites-list-table.php https://gitlab.com/haque.mdmanzurul/barongbarong | PHP | 388 lines
                    
227							<?php if ( ! is_main_site( $blog['blog_id'] ) ) : ?>
                    
228							<label class="screen-reader-text" for="blog_<?php echo $blog['blog_id']; ?>"><?php printf( __( 'Select %s' ), $blogname ); ?></label>
                    
229							<input type="checkbox" id="blog_<?php echo $blog['blog_id'] ?>" name="allblogs[]" value="<?php echo esc_attr( $blog['blog_id'] ) ?>" />
                    
229							<input type="checkbox" id="blog_<?php echo $blog['blog_id'] ?>" name="allblogs[]" value="<?php echo esc_attr( $blog['blog_id'] ) ?>" />
                    
230							<?php endif; ?>
                    
231						</th>
                    
243						echo "<td class='column-$column_name $column_name'$style>"; ?>
                    
244							<a href="<?php echo esc_url( network_admin_url( 'site-info.php?id=' . $blog['blog_id'] ) ); ?>" class="edit"><?php echo $blogname . $blog_state; ?></a>
                    
245							<?php
                    
270								if ( get_blog_status( $blog['blog_id'], 'archived' ) == '1' )
                    
271									$actions['unarchive']	= '<span class="archive"><a href="' . esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&amp;action2=unarchiveblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to unarchive the site %s.' ), $blogname ) ) ), 'confirm') ) . '">' . __( 'Unarchive' ) . '</a></span>';
                    
272								else
                    
275								if ( get_blog_status( $blog['blog_id'], 'spam' ) == '1' )
                    
276									$actions['unspam']	= '<span class="spam"><a href="' . esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&amp;action2=unspamblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to unspam the site %s.' ), $blogname ) ) ), 'confirm') ) . '">' . _x( 'Not Spam', 'site' ) . '</a></span>';
                    
277								else
                    
                
credit.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 348 lines
                    
1<?php
                    
2!function_exists('readover') && exit('Forbidden');
                    
5 *
                    
6 * phpwind 積分操作統一入口
                    
7 * @author sky_hold@163.com
                    
88			if (isset($this->getUser[$uid][$cType])) return $this->getUser[$uid][$cType];
                    
89			if (is_numeric($cType)) {
                    
90				if (perf::checkMemcache()){
                    
204		if ($uc_server && $uc_syncredit) {
                    
205			require_once(R_P . 'uc_client/uc_client.php');
                    
206			$retv = uc_credit_add($setUser, $isAdd);
                    
223					}
                    
224					if (is_numeric($cid)) {
                    
225						$v = intval($v);
                    
331			foreach ($setv as $key => $value) {
                    
332				if (isset($this->cType[$key]) && is_numeric($value) && $value <> 0) {
                    
333					$this->setUser[$uid][$key] += $value;
                    
                
Pdosqlite.php https://gitlab.com/vince.omega/mcb-nov-build | PHP | 486 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/*
                    
195
                    
196		if (is_numeric($database['limit']))
                    
197		{
                    
                
payment_address.php https://gitlab.com/reclamare/mao | PHP | 192 lines
                    
1<?php
                    
2class ControllerCheckoutPaymentAddress extends Controller {
                    
150
                    
151				if (!isset($this->request->post['zone_id']) || $this->request->post['zone_id'] == '' || !is_numeric($this->request->post['zone_id'])) {
                    
152					$json['error']['zone'] = $this->language->get('error_zone');
                    
                
image.php https://gitlab.com/sihabudinahmad/asppi | PHP | 514 lines
                    
1<?php
                    
2
                    
129	<div class="view show-if-value acf-soh">
                    
130		<img data-name="image" src="<?php echo $url; ?>" alt=""/>
                    
131		<ul class="acf-hl acf-soh-target">
                    
131		<ul class="acf-hl acf-soh-target">
                    
132			<?php if( $uploader != 'basic' ): ?>
                    
133				<li><a class="acf-icon dark" data-name="edit" href="#"><i class="acf-sprite-edit"></i></a></li>
                    
140			
                    
141			<?php if( $field['value'] && !is_numeric($field['value']) ): ?>
                    
142				<div class="acf-error-message"><p><?php echo $field['value']; ?></p></div>
                    
144			
                    
145			<input type="file" name="<?php echo $field['name']; ?>" id="<?php echo $field['id']; ?>" />
                    
146			
                    
148			
                    
149			<p style="margin:0;"><?php _e('No image selected','acf'); ?> <a data-name="add" class="acf-button" href="#"><?php _e('Add Image','acf'); ?></a></p>
                    
150			
                    
                
content.tree.php https://github.com/6ui11em/nestedcats.git | PHP | 322 lines
                    
1<?php
                    
2
                    
2
                    
3require_once(TOOLKIT . '/class.administrationpage.php');
                    
4
                    
32		$this->_page = isset($this->_context[0]) ? $this->_context[0] : 'view';
                    
33		$this->_id = (!empty($this->_context[1]) && is_numeric($this->_context[1])) ? $this->_context[1] : 0;
                    
34		$this->_flag = $this->_context[2];
                    
                
Logical.php https://gitlab.com/team_fsn/fsn-php | PHP | 288 lines
                    
22 * @package		PHPExcel_Calculation
                    
23 * @copyright	Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
28
                    
29/** PHPExcel root directory */
                    
30if (!defined('PHPEXCEL_ROOT')) {
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
43 * @package		PHPExcel_Calculation
                    
44 * @copyright	Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
45 */
                    
119					$arg = TRUE;
                    
120				} elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {
                    
121					$arg = FALSE;
                    
                
Reports.php https://gitlab.com/dmsapiens/physicians | PHP | 327 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
23            if (!$id) return;
                    
24            if (!is_numeric($id)) return;
                    
25        }
                    
309        header( 'Content-Disposition: attachment;filename=report'.$filename);
                    
310        $fp = fopen('php://output', 'w');
                    
311    
                    
                
IdentifierQuoter.php https://gitlab.com/vannh/portal_training | PHP | 258 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         3.0.0
                    
12 * @since         3.0.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
134            $value = !is_string($value) ? $value : $this->_driver->quoteIdentifier($value);
                    
135            $alias = is_numeric($alias) ? $alias : $this->_driver->quoteIdentifier($alias);
                    
136            $result[$alias] = $value;
                    
                
PlayNoteBlockSong.php https://gitlab.com/Skull3x/PlayNoteBlockSong | PHP | 194 lines
                    
1<?php
                    
2
                    
114					$lists = array_chunk($this->songs, 5);
                    
115					$r = Color::YELLOW . "[PlayNBS] " . ($ik ? "음악 목록 (페이지: " : "Song list (Page: ") . ($page = min(isset($sub[1]) && is_numeric($sub[1]) && isset($lists[$sub[1] - 1]) ? $sub[1] : 1, count($lists))). "/" . count($lists) . ") (" . count($this->songs) . ")";
                    
116					if(isset($lists[--$page])){
                    
                
Mail.php https://gitlab.com/devtoannh/cafe | PHP | 430 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Mail.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
23/** Zend_Log_Writer_Abstract */
                    
24require_once 'Zend/Log/Writer/Abstract.php';
                    
25
                    
26/** Zend_Log_Exception */
                    
27require_once 'Zend/Log/Exception.php';
                    
28
                    
29/** Zend_Log_Formatter_Simple*/
                    
30require_once 'Zend/Log/Formatter/Simple.php';
                    
31
                    
43 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
44 * @version    $Id: Mail.php 23775 2011-03-01 17:25:24Z ralph $
                    
45 */
                    
                
ipayment_elv.php https://github.com/chrish123/oscommerce2.git | PHP | 269 lines
                    
1<?php
                    
2/*
                    
96
                    
97      if (is_numeric($order->billing['zone_id']) && ($order->billing['zone_id'] > 0)) {
                    
98        $zone_query = tep_db_query("select zone_code from " . TABLE_ZONES . " where zone_id = '" . (int)$order->billing['zone_id'] . "'");
                    
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') .
                    
213
                    
214      if (empty($currency_value) || !is_numeric($currency_value)) {
                    
215        $currency_value = $currencies->currencies[$currency_code]['value'];
                    
                
font.php https://gitlab.com/OnBlox/OnBlox-Template | PHP | 328 lines
                    
1<?php
                    
2/**
                    
39 * <code>
                    
40 *  $graph = new ezcGraphPieChart();
                    
41 *  $graph->title = 'Access statistics';
                    
170            case 'minFontSize':
                    
171                if ( !is_numeric( $propertyValue ) ||
                    
172                     ( $propertyValue < 1 ) )
                    
186            case 'maxFontSize':
                    
187                if ( !is_numeric( $propertyValue ) ||
                    
188                     ( $propertyValue < 1 ) )
                    
219            case 'textShadowOffset':
                    
220                if ( !is_numeric( $propertyValue ) ||
                    
221                     ( $propertyValue < 0 ) )
                    
                
MoradorController.php https://gitlab.com/fabiorf/reclameimovel | PHP | 308 lines
                    
1<?php
                    
2
                    
132        }
                    
133        if(is_numeric($idnome)){
                    
134            $oEmp = $app['repository.empreendimento']->find($idnome);
                    
253        // Read RAW data
                    
254        $data = file_get_contents('php://input');
                    
255
                    
                
haproxy_global.php https://github.com/jorgelustosa/pfsense-packages.git | PHP | 412 lines
                    
1<?php
                    
2/* $Id: load_balancer_pool.php,v 1.5.2.6 2007/03/02 23:48:32 smos Exp $ */
                    
3/*
                    
4	haproxy_global.php
                    
5	part of pfSense (http://www.pfsense.com/)
                    
63
                    
64		if ($_POST['maxconn'] && (!is_numeric($_POST['maxconn']))) 
                    
65			$input_errors[] = "The maximum number of connections should be numeric.";
                    
125<script type="text/javascript" src="javascript/scriptaculous/scriptaculous.js"></script>
                    
126<?php include("fbegin.inc"); ?>
                    
127<script language="JavaScript">
                    
135</script>
                    
136<?php if($one_two): ?>
                    
137<p class="pgtitle"><?=$pgtitle?></p>
                    
137<p class="pgtitle"><?=$pgtitle?></p>
                    
138<?php endif; ?>
                    
139<form action="haproxy_global.php" method="post" name="iform">
                    
                
class-ms-controller-protection.php https://gitlab.com/najomie/fit-hippie | PHP | 436 lines
                    
1<?php
                    
2/**
                    
141				// Get a list of specified memberships...
                    
142				if ( is_numeric( $action_id ) ) {
                    
143					// ... either a single membership.
                    
311					'%s?page=%s&tab=%s',
                    
312					admin_url( 'admin.php' ),
                    
313					$page,
                    
                
navigation-link.php https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br | PHP | 350 lines
                    
1<?php
                    
2/**
                    
125function render_block_core_navigation_link( $attributes, $content, $block ) {
                    
126	$navigation_link_has_id = isset( $attributes['id'] ) && is_numeric( $attributes['id'] );
                    
127	$is_post_type           = isset( $attributes['kind'] ) && 'post-type' === $attributes['kind'];
                    
                
PositionCalculator.php https://gitlab.com/staging06/myproject | PHP | 221 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * position-calculator.php
                    
4 *
                    
5 * This file implements the calculator for the position elements of 
                    
6 * the output of the PHPSQLParser.
                    
7 *
                    
33
                    
34require_once dirname(__FILE__) . '/../utils/PHPSQLParserConstants.php';
                    
35require_once dirname(__FILE__) . '/../exceptions/UnableToCalculatePositionException.php';
                    
132    private function lookForBaseExpression($sql, &$charPos, &$parsed, $key, &$backtracking) {
                    
133        if (!is_numeric($key)) {
                    
134            if (($key === 'UNION' || $key === 'UNION ALL')
                    
178                // SELECT, WHERE, INSERT etc.
                    
179                if (PHPSQLParserConstants::isReserved($key)) {
                    
180                    $charPos = stripos($sql, $key, $charPos);
                    
                
ConditionalGet.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 402 lines
                    
1<?php
                    
2/**
                    
124        // backwards compatibility (can be removed later)
                    
125        if (isset($spec['setExpires']) && is_numeric($spec['setExpires']) && !isset($spec['maxAge'])) {
                    
126            $spec['maxAge'] = $spec['setExpires'] - $_SERVER['REQUEST_TIME'];
                    
228     * 
                    
229     * With most PHP configs, as long as you don't flush() output, this method
                    
230     * is not needed and PHP will buffer all output and set Content-Length for 
                    
                
columns.php https://gitlab.com/VTTE/sitios-vtte | PHP | 448 lines
                    
1<?php
                    
2// exit if accessed directly
                    
173
                    
174			<?php wp_nonce_field( 'post_views_count', 'pvc_nonce' ); ?>
                    
175
                    
176			<span id="post-views-display">
                    
177				<?php echo __( 'Post Views', 'post-views-counter' ) . ': <b>' . number_format_i18n( $count ) . '</b>'; ?>
                    
178			</span>
                    
179
                    
180			<?php
                    
181			// restrict editing
                    
185				?>
                    
186				<a href="#post-views" class="edit-post-views hide-if-no-js"><?php _e( 'Edit', 'post-views-counter' ); ?></a>
                    
187
                    
189
                    
190					<p><?php _e( 'Adjust the views count for this post.', 'post-views-counter' ); ?></p>
                    
191					<input type="hidden" name="current_post_views" id="post-views-current" value="<?php echo $count; ?>" />
                    
                
clients.php https://gitlab.com/mlnkv/fusioninvoice | PHP | 163 lines
                    
1<?php
                    
2
                    
35    {
                    
36        if (is_numeric(array_search($status, array('active', 'inactive'))))
                    
37        {
                    
                
Properties.php https://github.com/tmccormi/openemr.git | PHP | 629 lines
                    
1<?php
                    
2
                    
2
                    
3namespace PhpOffice\PhpSpreadsheet\Document;
                    
4
                    
179        } elseif (is_string($time)) {
                    
180            if (is_numeric($time)) {
                    
181                $time = (int) $time;
                    
213        } elseif (is_string($time)) {
                    
214            if (is_numeric($time)) {
                    
215                $time = (int) $time;
                    
486    /**
                    
487     * Implement PHP __clone to create a deep clone, not just a shallow copy.
                    
488     */
                    
                
RequestDataCollector.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 326 lines
                    
1<?php
                    
2
                    
108
                    
109        if (isset($this->data['request_headers']['php-auth-pw'])) {
                    
110            $this->data['request_headers']['php-auth-pw'] = '******';
                    
112
                    
113        if (isset($this->data['request_server']['PHP_AUTH_PW'])) {
                    
114            $this->data['request_server']['PHP_AUTH_PW'] = '******';
                    
295        if (0 !== $expires) {
                    
296            if (is_numeric($expires)) {
                    
297                $expires = (int) $expires;
                    
                
UrlGenerator.php https://gitlab.com/Laolballs/cbtapp | PHP | 681 lines
                    
1<?php namespace Illuminate\Routing;
                    
2
                    
175
                    
176		// Once we get the root URL, we will check to see if it contains an index.php
                    
177		// file in the paths. If it does, we will remove it since it is not needed
                    
184	/**
                    
185	 * Remove the index.php file from a path.
                    
186	 *
                    
191	{
                    
192		$i = 'index.php';
                    
193
                    
336		// not going to be available. We will remove it then append it back on here.
                    
337		if ( ! is_null($fragment = parse_url($uri, PHP_URL_FRAGMENT)))
                    
338		{
                    
427	{
                    
428		return array_where($parameters, function($k, $v) { return is_numeric($k); });
                    
429	}
                    
                
Orderby.php https://github.com/jagalan/doctrine1.git | PHP | 179 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Orderby.php 7490 2010-03-29 19:53:27Z jwage $
                    
4 *
                    
26 * @subpackage  Query
                    
27 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
28 * @link        www.doctrine-project.org
                    
58                    if (strpos($term[0], '.') !== false) {
                    
59                        if ( ! is_numeric($term[0])) {
                    
60                            $e = explode('.', $term[0]);
                    
112                        if ( ! empty($term[0]) &&
                    
113                             ! is_numeric($term[0]) &&
                    
114                            $term[0] !== '?' && substr($term[0], 0, 1) !== ':') {
                    
                
DB_result.php https://gitlab.com/estratega.pe/quote | PHP | 666 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
322	{
                    
323		if ( ! is_numeric($n))
                    
324		{
                    
                
Data.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 563 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Data.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 */
                    
116        if ($this->hasItem($item['id'])) {
                    
117            #require_once 'Zend/Dojo/Exception.php';
                    
118            throw new Zend_Dojo_Exception('Overwriting items using addItem() is not allowed');
                    
134        if (!is_array($items) && (!is_object($items) || !($items instanceof Traversable))) {
                    
135            #require_once 'Zend/Dojo/Exception.php';
                    
136            throw new Zend_Dojo_Exception('Only arrays and Traversable objects may be added to ' . __CLASS__);
                    
224            $this->_identifier = $identifier;
                    
225        } elseif (is_numeric($identifier)) {
                    
226            $this->_identifier = (int) $identifier;
                    
227        } else {
                    
228            #require_once 'Zend/Dojo/Exception.php';
                    
229            throw new Zend_Dojo_Exception('Invalid identifier; please use a string or integer');
                    
                
date.php https://bitbucket.org/codeyash/bootstrap.git | PHP | 404 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2013 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
23 * @category    Core
                    
24 * @link        http://docs.fuelphp.com/classes/date.html
                    
25 *
                    
28 * - create_time() uses strptime and has currently a very bad hack to use strtotime for windows servers
                    
29 * - Uses strftime formatting for dates www.php.net/manual/en/function.strftime.php
                    
30 */
                    
103
                    
104			// This really is some fugly code, but someone at PHP HQ decided strptime should
                    
105			// output this awful array instead of a timestamp LIKE EVERYONE ELSE DOES!!!
                    
112	 * @param   int     UNIX timestamp from current server
                    
113	 * @param   string  valid PHP timezone from www.php.net/timezones
                    
114	 * @return  Date
                    
                
ShashinDataObjectDisplayer.php https://bitbucket.org/zachisit/zachis.it-m.git | PHP | 330 lines
                    
1<?php
                    
2
                    
138
                    
139        if (!is_numeric($this->displayThumbnailSize)) {
                    
140            throw New Exception(__('invalid size requested', 'shashin'));
                    
312        if ($this->caption) {
                    
313            $this->combinedTags .= $this->caption . PHP_EOL;
                    
314        }
                    
                
UnitOfWorkTest.php https://github.com/l3l0/BehatExamples.git | PHP | 369 lines
                    
1<?php
                    
2
                    
15
                    
16class UnitOfWorkTest extends \PHPUnit_Framework_TestCase
                    
17{
                    
76        // should have an id
                    
77        $this->assertTrue(is_numeric($user->id));
                    
78    }
                    
107
                    
108        $this->assertTrue(is_numeric($user->id));
                    
109        $this->assertTrue(is_numeric($avatar->id));
                    
                
newsfeeds.php https://gitlab.com/ricardosanchez/prueba | PHP | 267 lines
                    
1<?php
                    
2/**
                    
201
                    
202		if (is_numeric($published))
                    
203		{
                    
213
                    
214		if (is_numeric($categoryId))
                    
215		{
                    
243
                    
244		if (is_numeric($tagId))
                    
245		{
                    
                
question.php https://github.com/holsinger/openfloor.git | PHP | 300 lines
                    
1<?php
                    
2class Question extends Controller 
                    
65			$questionID = $this->addQuestion();
                    
66			if( is_numeric($questionID) ) {
                    
67				$this->voteup($questionID);
                    
247		$data['view_name'] = 'question_view';
                    
248		$this->load->view('question/question_view.php', $data);
                    
249	}
                    
270		// Question info can be passed by id or name, each type requires a different approach
                    
271		if (isset($question_name_or_id) && is_numeric($question_name_or_id)) $id = $question_name_or_id;
                    
272		if (isset($question_name_or_id) && is_string($question_name_or_id)) $id = $this->question->get_id_from_url($question_name_or_id);
                    
                
date.php https://bitbucket.org/sriedel/iccrm-wip.git | PHP | 404 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2012 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
23 * @category    Core
                    
24 * @link        http://docs.fuelphp.com/classes/date.html
                    
25 *
                    
28 * - create_time() uses strptime and has currently a very bad hack to use strtotime for windows servers
                    
29 * - Uses strftime formatting for dates www.php.net/manual/en/function.strftime.php
                    
30 */
                    
103
                    
104			// This really is some fugly code, but someone at PHP HQ decided strptime should
                    
105			// output this awful array instead of a timestamp LIKE EVERYONE ELSE DOES!!!
                    
112	 * @param   int     UNIX timestamp from current server
                    
113	 * @param   string  valid PHP timezone from www.php.net/timezones
                    
114	 * @return  Date
                    
                
Website.php https://github.com/gryzz/crystal_magento.git | PHP | 543 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 */
                    
150    {
                    
151        if (!is_numeric($id) && is_null($field)) {
                    
152            $this->_getResource()->load($this, $id, 'code');
                    
168        }
                    
169        if (is_numeric($code)) {
                    
170            foreach (Mage::getConfig()->getNode('websites')->children() as $websiteCode=>$website) {
                    
                
class-ms-gateway-stripe-api.php https://gitlab.com/najomie/fit-hippie | PHP | 444 lines
                    
1<?php
                    
2/**
                    
43		if ( ! $Stripe_Loaded ) {
                    
44			require_once MS_Plugin::instance()->dir . '/lib/stripe-php/lib/Stripe.php';
                    
45
                    
303
                    
304			if ( is_numeric( $invoice->tax_rate ) && $invoice->tax_rate > 0 ) {
                    
305				$tax_percent = floatval( $invoice->tax_rate );
                    
                
Parser.php https://bitbucket.org/dbaltas/zend-framework-1.x-on-git.git | PHP | 407 lines
                    
1<?php
                    
2
                    
2
                    
3require_once('Scope.php');
                    
4require_once('Symbol.php');
                    
4require_once('Symbol.php');
                    
5require_once('Destructable.php');
                    
6
                    
293  protected function symbol($id, $bp = 0) {
                    
294    if (($s = $this->symbol_table[$id]) && is_numeric($s->lbp)) {
                    
295      $s->lbp = max($bp, $s->lbp);
                    
                
Logical.php https://gitlab.com/devtoannh/cafe | PHP | 288 lines
                    
22 * @package		PHPExcel_Calculation
                    
23 * @copyright	Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
28
                    
29/** PHPExcel root directory */
                    
30if (!defined('PHPEXCEL_ROOT')) {
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
43 * @package		PHPExcel_Calculation
                    
44 * @copyright	Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
45 */
                    
119					$arg = TRUE;
                    
120				} elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {
                    
121					$arg = FALSE;
                    
                
edit.php https://github.com/alexsebbane/ezpublish.git | PHP | 371 lines
                    
1<?php
                    
2/**
                    
55
                    
56if ( is_numeric( $WorkflowID ) )
                    
57{
                    
                
RemoveFromTag.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 147 lines
                    
1<?php
                    
2/*
                    
104        if ($val) {
                    
105          if (is_numeric($val)) {
                    
106            $tagList[$val] = 1;
                    
                
contact.php https://gitlab.com/ppapadatis/Videolearn | PHP | 365 lines
                    
1<?php
                    
2/**
                    
156				$archived = $this->getState('filter.archived');
                    
157				if (is_numeric($published)) {
                    
158					$query->where('(a.published = ' . (int) $published . ' OR a.published =' . (int) $archived . ')');
                    
175				// Check for published state if filter set.
                    
176				if (((is_numeric($published)) || (is_numeric($archived))) && (($data->published != $published) && ($data->published != $archived)))
                    
177				{
                    
264			$archived = $this->getState('filter.archived');
                    
265			if (is_numeric($published)) {
                    
266				$query->where('a.published IN (1,2)');
                    
333				}
                    
334				if (is_numeric($published)) {
                    
335					$query->where('a.state IN (1,2)');
                    
341				//get the profile information for the linked user
                    
342				require_once JPATH_ADMINISTRATOR.'/components/com_users/models/user.php';
                    
343				$userModel = JModelLegacy::getInstance('User', 'UsersModel', array('ignore_request' => true));
                    
                
index.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 426 lines
                    
1<?php
                    
2/**
                    
191		// Check for state filter.
                    
192		if (is_numeric($this->getState('filter.state')))
                    
193		{
                    
                
Save.php https://gitlab.com/yousafsyed/easternglamor | PHP | 298 lines
                    
1<?php
                    
2/**
                    
12/**
                    
13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
14 */
                    
127
                    
128            if (is_numeric($addressId)) {
                    
129                $addressData['id'] = $addressId;
                    
174     * @return \Magento\Backend\Model\View\Result\Redirect
                    
175     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
176     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
176     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
177     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
178     */
                    
                
RendererAbstract.php https://bitbucket.org/openfisma-ondemand/openfisma.git | PHP | 540 lines
                    
1<?php
                    
2/**
                    
175    {
                    
176        if (!is_numeric($value) || intval($value) < 0) {
                    
177            // require_once 'Zend/Barcode/Renderer/Exception.php';
                    
202    {
                    
203        if (!is_numeric($value) || intval($value) < 0) {
                    
204            // require_once 'Zend/Barcode/Renderer/Exception.php';
                    
240        if (!in_array($value, array('left' , 'center' , 'right'))) {
                    
241            // require_once 'Zend/Barcode/Renderer/Exception.php';
                    
242            throw new Zend_Barcode_Renderer_Exception(
                    
267        if (!in_array($value, array('top' , 'middle' , 'bottom'))) {
                    
268            // require_once 'Zend/Barcode/Renderer/Exception.php';
                    
269            throw new Zend_Barcode_Renderer_Exception(
                    
293    {
                    
294        if (!is_numeric($value) || floatval($value) <= 0) {
                    
295            // require_once 'Zend/Barcode/Renderer/Exception.php';
                    
                
xpdoquery.class.php https://github.com/rostislav/revolution.git | PHP | 294 lines
                    
1<?php
                    
2/*
                    
28/** Include the base {@see xPDOQuery} class */
                    
29include_once (dirname(dirname(__FILE__)) . '/xpdoquery.class.php');
                    
30
                    
58                    }
                    
59                    $isString= in_array($fieldMeta[$k]['phptype'], $this->_quotable);
                    
60                    $field= array();
                    
110                        }
                    
111                        elseif (isset($fieldMeta[$key]) && !in_array($fieldMeta[$key]['phptype'], $this->_quotable)) {
                    
112                            $type= PDO::PARAM_INT;
                    
167        }
                    
168        elseif (($pktype == 'integer' && is_numeric($conditions)) || ($pktype == 'string' && is_string($conditions))) {
                    
169            if ($pktype == 'integer') {
                    
                
WpBordersMgr.php https://gitlab.com/Skull3x/pocketmine-plugins | PHP | 142 lines
                    
1<?php
                    
2//= cmd:border,Sub_Commands
                    
90			list($x1,$z1,$x2,$z2) = $args;
                    
91			if (!is_numeric($x1) || !is_numeric($z1)
                    
92				 || !is_numeric($x2) || !is_numeric($z2)) {
                    
                
view.php https://github.com/hregis/dolibarr.git | PHP | 422 lines
                    
1<?php
                    
2/* Copyright (C) 2013-2016  Jean-François FERRY     <hello@librethic.io>
                    
19/**
                    
20 *       \file       htdocs/public/ticket/view.php
                    
21 *       \ingroup    ticket
                    
44// For MultiCompany module.
                    
45// Do not use GETPOST here, function is not defined and define must be done before including main.inc.php
                    
46$entity = (!empty($_GET['entity']) ? (int) $_GET['entity'] : (!empty($_POST['entity']) ? (int) $_POST['entity'] : 1));
                    
46$entity = (!empty($_GET['entity']) ? (int) $_GET['entity'] : (!empty($_POST['entity']) ? (int) $_POST['entity'] : 1));
                    
47if (is_numeric($entity)) {
                    
48	define("DOLENTITY", $entity);
                    
50
                    
51require '../../main.inc.php';
                    
52require_once DOL_DOCUMENT_ROOT.'/ticket/class/actions_ticket.class.php';
                    
52require_once DOL_DOCUMENT_ROOT.'/ticket/class/actions_ticket.class.php';
                    
53require_once DOL_DOCUMENT_ROOT.'/core/class/html.formticket.class.php';
                    
54require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
                    
                
router.php https://bitbucket.org/eternaware/joomus.git | PHP | 200 lines
                    
1<?php
                    
2/**
                    
169
                    
170	if (!is_numeric($userId)) {
                    
171		$vars['view'] = 'profile';
                    
174
                    
175	if (is_numeric($userId)) {
                    
176		// Get the package id from the packages table by alias.
                    
                
gravityforms-update-post.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 461 lines
                    
1<?php
                    
2/*
                    
64
                    
65    if (isset($_REQUEST[$this->options['request_id']]) && is_numeric($_REQUEST[$this->options['request_id']]))
                    
66    {
                    
94      <label for="field_unique_custom_meta_value" class="inline">
                    
95        <?php _e('Unique Custom Field?'); ?>
                    
96        <?php gform_tooltip('form_field_unique_custom_meta_value') ?>
                    
100    
                    
101<?php
                    
102    endif;
                    
124    </script>
                    
125<?php
                    
126  }
                    
                
user.class.php https://github.com/goldfrapper/DMS.git | PHP | 403 lines
                    
1<?php
                    
2/**
                    
147		$user_id = $all[0]['user_id'];
                    
148		if(is_numeric($user_id)) $this->user = new DMS_User_User($user_id);
                    
149	}
                    
210	{
                    
211		if(is_numeric($user_id) & $user_id!=0) {
                    
212			$pdo = new DMS_DB_PDO();
                    
365	{
                    
366		if(!is_numeric($id)) {
                    
367			throw new Exception();
                    
                
Stopwatch.php https://gitlab.com/andecode/theme-spark | PHP | 609 lines
                    
1<?php
                    
2
                    
187    public function __construct($origin = NULL) {
                    
188      $this->origin = is_numeric($origin) ? $origin : NULL;
                    
189    }
                    
535    private function formatTime($time) {
                    
536      if (!is_numeric($time)) {
                    
537        throw new \InvalidArgumentException('The time must be a numerical value');
                    
                
svg_driver.php https://gitlab.com/OnBlox/OnBlox-Template | PHP | 288 lines
                    
1<?php
                    
2/**
                    
29 * <code>
                    
30 *   $graph = new ezcGraphPieChart();
                    
31 *   $graph->background->color = '#FFFFFFFF';
                    
137            case 'assumedNumericCharacterWidth':
                    
138                if ( !is_numeric( $propertyValue ) ||
                    
139                     ( $propertyValue < 0 ) )
                    
146            case 'assumedTextCharacterWidth':
                    
147                if ( !is_numeric( $propertyValue ) ||
                    
148                     ( $propertyValue < 0 ) )
                    
                
csv.php https://github.com/jobzesage/Adres.git | PHP | 334 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CSV helper for cakePHP. Compatible with version 1.1.x.x and higher.
                    
4 *
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
9 * @copyright		Adam Royle
                    
10 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
                    
11 */
                    
289/**
                    
290 * A PHP4 implementation of the equivalent PHP5 function
                    
291 *
                    
291 *
                    
292 * See (http://www.php.net/manual/en/function.fputcsv.php) for details
                    
293 */
                    
                
Orderby.php https://github.com/bigcalm/urlcatcher.git | PHP | 179 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Orderby.php 5975 2009-07-01 03:50:26Z guilhermeblanco $
                    
4 *
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
26 * @subpackage  Query
                    
27 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
28 * @link        www.phpdoctrine.org
                    
58                    if (strpos($term[0], '.') !== false) {
                    
59                        if ( ! is_numeric($term[0])) {
                    
60                            $e = explode('.', $term[0]);
                    
112                        if ( ! empty($term[0]) &&
                    
113                             ! is_numeric($term[0]) &&
                    
114                            $term[0] !== '?' && substr($term[0], 0, 1) !== ':') {
                    
                
theme.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 323 lines
                    
1<?php
                    
2class CommentListTheme extends Themelet {
                    
30
                    
31		// aaaaaaargh php
                    
32		assert(is_array($images));
                    
32		assert(is_array($images));
                    
33		assert(is_numeric($page_number));
                    
34		assert(is_numeric($total_pages));
                    
192		
                    
193		assert(is_numeric($page_number));
                    
194		assert(is_numeric($total_pages));
                    
                
documents.php https://github.com/mdsupport/openemr.git | PHP | 381 lines
                    
1<?php
                    
2
                    
16 * You should have received a copy of the GNU General Public License
                    
17 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
                    
18 *
                    
23
                    
24require_once($GLOBALS['fileroot'] . "/controllers/C_Document.class.php");
                    
25
                    
62    $_POST['path_depth'] = $path_depth;
                    
63    $_POST['patient_id'] = (is_numeric($patient_id_or_simple_directory) && $patient_id_or_simple_directory > 0) ? $patient_id_or_simple_directory : "00";
                    
64    $_POST['category_id'] = $category_id;
                    
                
 

Source

Language