PageRenderTime 307ms queryTime 50ms sortTime 23ms getByIdsTime 75ms findMatchingLines 83ms

100+ results results for 'php is_numeric' (307 ms)

Not the results you expected?
trackback.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 372 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHP Class to handle TrackBacks (send/ping, receive, retreive, detect, seed, etc...)
                    
4 * 
                    
4 * 
                    
5 * <code><?php
                    
6 * include('trackback_cls.php');
                    
11 * 
                    
12 * @version $Id: trackback_cls.php,v 1.2 2004/12/11 18:54:32 Ran Exp $
                    
13 * @copyright Copyright (c) 2004 Ran Aroussi (http://www.blogish.org)
                    
14 * @author Ran Aroussi <ran@blogish.org> 
                    
15 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
                    
16 * 
                    
65
                    
66        if ((isset($target["port"]) && !is_numeric($target["port"])) || (!isset($target["port"])))
                    
67		{
                    
                
Product.php https://github.com/rgranadino/magento-mirror.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) 2011 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;
                    
                
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" />
                    
                
date_helper.php https://gitlab.com/ricoru21/py_incidencia | 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		{
                    
                
software_install.php https://bitbucket.org/droidzone/i-mscp.git | PHP | 340 lines
                    
1<?php
                    
2/**
                    
41{
                    
42	if (!isset($_GET['id']) || $_GET['id'] == '' || !is_numeric($_GET['id'])) {
                    
43		showBadRequestErrorPage();
                    
62// Include core library
                    
63require_once 'imscp-lib.php';
                    
64
                    
147	$dmn_disk_usage = $domainProps['domain_disk_usage'];
                    
148	$dmn_php = $domainProps['domain_php'];
                    
149	$dmn_cgi = $domainProps['domain_cgi'];
                    
268		send_request();
                    
269		redirectTo('software.php');
                    
270	}
                    
                
Pgsql.php https://github.com/magum/socorro.git | PHP | 539 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
4 *
                    
5 * $Id: Pgsql.php 3160 2008-07-20 16:03:48Z Shadowhand $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
205
                    
206		if (is_numeric($database['limit']))
                    
207		{
                    
                
XmlEncoder.php https://bitbucket.org/thxer/5netproba.git | PHP | 429 lines
                    
1<?php
                    
2
                    
300                    $append = $this->selectNodeType($parentNode, $data);
                    
301                } elseif (is_array($data) && false === is_numeric($key)) {
                    
302                    /**
                    
316                    }
                    
317                } elseif (is_numeric($key) || !$this->isElementNameValid($key)) {
                    
318                    $append = $this->appendNode($parentNode, $data, "item", $key);
                    
402            return $this->buildXml($node, $this->serializer->normalize($val, $this->format));
                    
403        } elseif (is_numeric($val)) {
                    
404            return $this->appendText($node, (string) $val);
                    
                
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));
                    
                
Svg.php https://bitbucket.org/chung/buyforher.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(
                    
                
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/edbull/custard.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;
                    
                
ParticipantProcessor.php https://github.com/michaelmcandrew/th.git | PHP | 242 lines
                    
1<?php
                    
2/*
                    
30 * 
                    
31 * EventParticipantion.php prior to running this script.
                    
32 */
                    
32 */
                    
33require_once '../civicrm.config.php';
                    
34require_once 'CRM/Core/Config.php';
                    
42        //this does not return on failure
                    
43        require_once 'CRM/Utils/System.php';
                    
44        require_once 'CRM/Utils/Hook.php';
                    
48        //log the execution time of script
                    
49        CRM_Core_Error::debug_log_message( 'ParticipantProcessor.php' );
                    
50   }
                    
53    {
                    
54        require_once 'CRM/Event/PseudoConstant.php';
                    
55        $participantRole = CRM_Event_PseudoConstant::participantRole( );
                    
                
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/erickjth/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/cpucci/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
                    
                
class.headmodule.php https://github.com/SteveBomber/Garden.git | PHP | 391 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
128      public function AddScript($Src, $Type = 'text/javascript', $Options = array()) {
                    
129         if (is_numeric($Options)) {
                    
130            $Options = array('sort' => $Options);
                    
                
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			{
                    
                
groupaccess.php https://github.com/projectfork/Projectfork.git | PHP | 140 lines
                    
1<?php
                    
2/**
                    
94        {
                    
95            if (is_numeric($name)) continue;
                    
96
                    
                
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);
                    
                
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
                    
                
class-thelib-core.php https://gitlab.com/vanafroo/landingpage | PHP | 221 lines
                    
1<?php
                    
2/**
                    
131			return true;
                    
132		} elseif ( is_numeric( $value ) ) {
                    
133			$value = intval( $value );
                    
                
history.php https://github.com/eeggenberger/ezpublish.git | PHP | 376 lines
                    
1<?php
                    
2/**
                    
92
                    
93    if ( is_numeric( $oldVersion ) && is_numeric( $newVersion ) )
                    
94    {
                    
                
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/andecode/theme-spark | 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.'));
                    
                
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'));
                    
                
arrayhelper.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 461 lines
                    
1<?php
                    
2/**
                    
400
                    
401			if ((is_bool($va) or is_numeric($va)) and (is_bool($vb) or is_numeric($vb)))
                    
402			{
                    
436	 *
                    
437	 * @see     http://php.net/manual/en/function.array-unique.php
                    
438	 * @since   11.2
                    
                
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      {
                    
                
directories.php https://github.com/projectfork/Projectfork.git | PHP | 420 lines
                    
1<?php
                    
2/**
                    
124        // Filter by project
                    
125        if (is_numeric($filter_project) && $filter_project > 0) {
                    
126            $query->where('a.project_id = ' . (int) $filter_project);
                    
129        // Filter by author
                    
130        if (is_numeric($filter_author)) {
                    
131            $type = $this->getState('filter.author_id.include', true) ? '= ' : '<>';
                    
135        // Filter by parent directory
                    
136        if (is_numeric($filter_parent)) {
                    
137            if (!empty($filter_search)) {
                    
390        // Filter - Is set
                    
391        $this->setState('filter.isset', (!empty($search) || is_numeric($author_id) || count($labels)));
                    
392
                    
                
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']));
                    
                
Panel.php https://bitbucket.org/tomas_vahalik/framework.git | PHP | 184 lines
                    
1<?php
                    
2
                    
12 * @author Patrik Votoček <patrik@votocek.cz>
                    
13 * @author Vaclav Vrbka <gmvasek@php-info.cz>
                    
14 */
                    
42		if ($height !== NULL) {
                    
43			if (!is_numeric($height))
                    
44				throw new \InvalidArgumentException('Panel height has to be a numeric value.');
                    
127		if ($request->isPost() && $request->isAjax() && $request->getHeader(self::XHR_HEADER)) {
                    
128			$data = json_decode(file_get_contents('php://input'));
                    
129			$translator = $this->translator;
                    
                
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    }
                    
                
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.");
                    
                
Orderby.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 179 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Orderby.php 48519 2012-02-03 23:18:52Z btowles $
                    
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) !== ':') {
                    
                
Collection.php https://github.com/codecrumb/magento-mirror.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;
                    
                
class-wp-ms-sites-list-table.php https://bitbucket.org/akeda/bmw-id-hris.git | 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
                    
                
form.class.php https://bitbucket.org/anneivycat/ebcookhouse.git | PHP | 294 lines
                    
1<?php
                    
2
                    
2
                    
3require_once 'validate.class.php';
                    
4
                    
157        foreach( $atts['options'] as $kval => $kname ):
                    
158            $val = ( is_numeric( $kval ) ) ? $kval : trim( $kval );
                    
159            if( is_array( $value ) )$checked = ( in_array( $kval, $value ) ) ? ' checked="checked"' : '';
                    
178        foreach( $atts['options'] as $kval => $kname ):
                    
179            $val = ( is_numeric( $kval ) ) ? $kval : trim( $kval );
                    
180            $checked = ( $value == $val ) ? ' checked="checked"' : '';
                    
                
wp-diff.php https://github.com/GCheung55/mootools-website.git | 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]) ) );
                    
                
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	 *
                    
                
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);
                    
                
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>
                    
                
odbc_forge.php https://bitbucket.org/code_noodle/scratchpad.git | PHP | 160 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.2.4 or newer
                    
6 *
                    
63			// Numeric field names aren't allowed in databases, so if the key is
                    
64			// numeric, we know it was assigned by PHP and the developer manually
                    
65			// entered the field information, so we'll simply add it to the list
                    
65			// entered the field information, so we'll simply add it to the list
                    
66			if (is_numeric($field))
                    
67			{
                    
158
                    
159/* End of file odbc_forge.php */
                    
160/* Location: ./system/database/drivers/odbc/odbc_forge.php */
                    
                
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;
                    
                
Data.php https://github.com/mfairchild365/zf2.git | PHP | 520 lines
                    
1<?php
                    
2/**
                    
229            $this->_identifier = $identifier;
                    
230        } elseif (is_numeric($identifier)) {
                    
231            $this->_identifier = (int) $identifier;
                    
                
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);
                    
                
articles.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 372 lines
                    
1<?php
                    
2/**
                    
215		$published = $this->getState('filter.published');
                    
216		if (is_numeric($published))
                    
217		{
                    
227		$categoryId = $this->getState('filter.category_id');
                    
228		if (is_numeric($categoryId))
                    
229		{
                    
252		$authorId = $this->getState('filter.author_id');
                    
253		if (is_numeric($authorId))
                    
254		{
                    
286		$tagId = $this->getState('filter.tag');
                    
287		if (is_numeric($tagId))
                    
288		{
                    
                
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.'"';
                    
                
Orderby.php https://github.com/robertleeplummerjr/bluebox.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) !== ':') {
                    
                
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
                    
                
lxportmonitor.php https://github.com/lxcenter/hypervm.git | PHP | 526 lines
                    
1<?php 
                    
2
                    
243
                    
244	$ch = curl_init("http://$raddress:$port/htmllib/mibin/monitordata.php");
                    
245	curl_setopt($ch, CURLOPT_POST, true);
                    
297		$c++;
                    
298		if(is_numeric($in) && $in >= 0 && $in <= 255 ) {
                    
299			$d++;
                    
462
                    
463	$val = @ file_get_contents("commands.php");
                    
464	if ($val === "2") {
                    
                
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 */
                    
                
SMW_NMDBHelper.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 303 lines
                    
1<?php
                    
2/*
                    
153		}
                    
154		if ( ob_get_level() == 0 ) { // be sure to have some buffer, otherwise some PHPs complain
                    
155			ob_start();
                    
169		if ( $requestoptions !== NULL ) {
                    
170			if ( is_numeric( $requestoptions->limit ) && $requestoptions->limit >= 0 ) {
                    
171				$sql_options['LIMIT'] = $requestoptions->limit;
                    
172			}
                    
173			if ( is_numeric( $requestoptions->offset ) && $requestoptions->offset > 0 ) {
                    
174				$sql_options['OFFSET'] = $requestoptions->offset;
                    
188		$options = SNMDBHelper::getSQLOptions( $requestoptions, $valuecol );
                    
189		$limit = array_key_exists( 'LIMIT', $options ) && is_numeric( $options['LIMIT'] ) ? 'LIMIT ' . $options['LIMIT'] : '';
                    
190		$offset = array_key_exists( 'OFFSET', $options ) && is_numeric( $options['OFFSET'] ) ? 'OFFSET ' . $options['OFFSET'] : '';
                    
                
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);
                    
                
Trivial.php https://bitbucket.org/blackriver/openx.git | PHP | 260 lines
                    
1<?php
                    
2
                    
5/**
                    
6 * Image_Graph - PEAR PHP OO Graph Rendering Utility.
                    
7 *
                    
7 *
                    
8 * PHP versions 4 and 5
                    
9 *
                    
26 * @license    http://www.gnu.org/copyleft/lesser.html  LGPL License 2.1
                    
27 * @version    CVS: $Id: Trivial.php 47481 2009-12-15 20:29:37Z chris.nutting $
                    
28 * @link       http://pear.php.net/package/Image_Graph
                    
31/**
                    
32 * Include file Image/Graph/Dataset.php
                    
33 */
                    
33 */
                    
34require_once 'Image/Graph/Dataset.php';
                    
35
                    
                
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/mcmurdok/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);
                    
                
functions.bb-topics.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 460 lines
                    
1<?php
                    
2
                    
7
                    
8	if ( !is_numeric($id) ) {
                    
9		list($slug, $sql) = bb_get_sql_from_slug( 'topic', $id );
                    
13	// not else
                    
14	if ( is_numeric($id) ) {
                    
15		$id = (int) $id;
                    
24
                    
25	if ( ( $cache || !$where ) && is_numeric($id) && false !== $topic = wp_cache_get( $id, 'bb_topic' ) )
                    
26		return $topic;
                    
45		if ($parsed_uri = parse_url($uri)) {
                    
46			if (preg_match('@/topic\.php$@'  ,$parsed_uri['path'])) {
                    
47				$args = wp_parse_args($parsed_uri['query']);
                    
62	$defaults = array( 'forum' => false, 'page' => 1, 'exclude' => false, 'number' => false );
                    
63	if ( is_numeric( $args ) )
                    
64		$args = array( 'forum' => $args );
                    
                
Data.php https://github.com/kervin/kyzstudio.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');
                    
                
values.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 539 lines
                    
1<?php
                    
2
                    
211		foreach ( $media_ids as $media_id )
                    
212			if ( is_numeric($media_id) )
                    
213				$thumbs .= wp_get_attachment_url($media_id) ? "<span class='cpac-column-value-image'>".wp_get_attachment_image( $media_id, array(80,80), true )."</span>" : '';
                    
360			$ids = explode(',',$meta);
                    
361		elseif ( is_numeric($meta) )
                    
362			$ids[] = $meta;
                    
366			foreach ( $ids as $id ) {
                    
367				$title = is_numeric($id) ? get_the_title($id) : '';
                    
368				$link  = get_edit_post_link($id);
                    
392			$ids = explode(',',$meta);
                    
393		elseif ( is_numeric($meta) )
                    
394			$ids[] = $meta;
                    
515		// we need to replace this with an option to mark a date as unixtimestamp.
                    
516		if ( ! is_numeric($date) || ( is_numeric( $date ) && strlen( trim($date) ) == 8 && ( strpos( $date, '20' ) === 0 || strpos( $date, '19' ) === 0  ) ) )
                    
517			$date = strtotime($date);
                    
                
Set.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 236 lines
                    
1<?php
                    
2/**
                    
229        $bind = [];
                    
230        if (is_numeric($setId)) {
                    
231            $bind[':attribute_set_id'] = $setId;
                    
                
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');
                    
                
timesheet.php https://github.com/joelbrock/is4c_nofc.git | PHP | 281 lines
                    
1<?php
                    
2
                    
32        
                    
33        if (!is_numeric($_POST['emp_no'])) {
                    
34                $errors[] = 'You didn\'t select your name.';
                    
45        for ($i = 1; $i <= $max; $i++) {
                    
46                if ((isset($_POST['in' . $i])) && (isset($_POST['out' . $i])) && (is_numeric($_POST['area' . $i]))) {
                    
47                        $entrycount++;
                    
58                for ($i = 1; $i <= $max; $i++) {
                    
59                        if ((isset($_POST['in' . $i])) && (isset($_POST['out' . $i])) && (is_numeric($_POST['area' . $i]))) {
                    
60                                if (strlen($_POST['in' . $i]) == 2 && is_numeric($_POST['in' . $i])) {
                    
61                                        $_POST['in' . $i] = $_POST['in' . $i] . ':00';
                    
62                                } elseif (strlen($_POST['in' . $i]) == 4 && is_numeric($_POST['in' . $i])) {
                    
63                                        $_POST['in' . $i] = substr($_POST['in' . $i], 0, 2) . ':' . substr($_POST['in' . $i], 2, 2);
                    
63                                        $_POST['in' . $i] = substr($_POST['in' . $i], 0, 2) . ':' . substr($_POST['in' . $i], 2, 2);
                    
64                                } elseif (strlen($_POST['in' . $i]) == 3 && is_numeric($_POST['in' . $i])) {
                    
65                                        $_POST['in' . $i] = substr($_POST['in' . $i], 0, 1) . ':' . substr($_POST['in' . $i], 1, 2);
                    
                
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');
                    
                
Widgets.php https://github.com/marcoscoelho/pyrocms.git | PHP | 497 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2
                    
156	{
                    
157		return is_numeric($id) ? $this->widget_m->get_area_by('id', $id) : $this->widget_m->get_area_by('slug', $id);
                    
158	}
                    
161	{
                    
162		return is_numeric($id) ? $this->widget_m->get_widget_by('id', $id) : $this->widget_m->get_widget_by('slug', $id);
                    
163	}
                    
                
navigation_m.php https://github.com/marcoscoelho/pyrocms.git | PHP | 492 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2/**
                    
162		// the plugin passes the abbreviation
                    
163		if ( ! is_numeric($group))
                    
164		{
                    
                
ldap.php https://bitbucket.org/kbandlow/piler.git | PHP | 119 lines
                    
1<?php
                    
2
                    
7
                    
8      if(is_numeric($id) && $id >= 0) {
                    
9         $query = $this->db->query("SELECT * FROM " . TABLE_LDAP . " WHERE id=?", array($id));
                    
                
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;
                    
                
navigation-link.php https://gitlab.com/campus-academy/krowkaramel | 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'];
                    
                
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])){
                    
                
expenses_model.php https://github.com/KdeL/BambooInvoice.git | PHP | 249 lines
                    
1<?php
                    
2class expenses_model extends Model {
                    
150
                    
151		if (is_numeric($expense_id))
                    
152		{
                    
155
                    
156		if (is_numeric($vendor_id))
                    
157		{
                    
164		
                    
165    	if (is_numeric($client_id))
                    
166		{
                    
                
Orderby.php https://github.com/ThiloWitt/core.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) !== ':') {
                    
                
ContributionTrackingProcessorTest.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 429 lines
                    
1<?php
                    
2
                    
80			'note' => 'B Flat',
                    
81			'referrer' => 'phpunit_processor',
                    
82			'anonymous' => 'Raspberries'
                    
86			'note' => 'B Flat',
                    
87			'referrer' => 'phpunit_processor',
                    
88			'anonymous' => 1,
                    
107			'note' => 'Batman',
                    
108			'referrer' => 'phpunit_processor',
                    
109			'anonymous' => 'of course',
                    
141			'note' => 'Batman is pretty awesome.',
                    
142			'referrer' => 'phpunit_processor',
                    
143			'anonymous' => 'of course',
                    
156		$id = ContributionTrackingProcessor::saveNewContribution( $complete );
                    
157		$this->assertTrue( is_numeric( $id ), "Returned value is not an ID." );
                    
158
                    
                
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 */
                    
                
twitter-timeline.php https://github.com/chopsuei3/oscc.git | PHP | 223 lines
                    
170			<label for="<?php echo $this->get_field_id( 'height' ); ?>"><?php esc_html_e( 'Height (px):', 'jetpack' ); ?></label>
                    
171			<input class="widefat" id="<?php echo $this->get_field_id( 'height' ); ?>" name="<?php echo $this->get_field_name( 'height' ); ?>" type="text" value="<?php echo esc_attr( $instance['height'] ); ?>" />
                    
172		</p>
                    
191			<label for="<?php echo $this->get_field_id( 'widget-id' ); ?>"><?php esc_html_e( 'Widget ID:', 'jetpack' ); ?> <a href="http://support.wordpress.com/widgets/twitter-timeline-widget/#widget-id" target="_blank">( ? )</a></label>
                    
192			<input class="widefat" id="<?php echo $this->get_field_id( 'widget-id' ); ?>" name="<?php echo $this->get_field_name( 'widget-id' ); ?>" type="text" value="<?php echo esc_attr( $instance['widget-id'] ); ?>" />
                    
193		</p>
                    
196			<label for="<?php echo $this->get_field_id( 'chrome-noheader' ); ?>"><?php esc_html_e( 'Layout Options:', 'jetpack' ); ?></label><br />
                    
197			<input type="checkbox"<?php checked( in_array( 'noheader', $instance['chrome'] ) ); ?> id="<?php echo $this->get_field_id( 'chrome-noheader' ); ?>" name="<?php echo $this->get_field_name( 'chrome' ); ?>[]" value="noheader" /> <label for="<?php echo $this->get_field_id( 'chrome-noheader' ); ?>"><?php esc_html_e( 'No Header', 'jetpack' ); ?></label><br />
                    
198			<input type="checkbox"<?php checked( in_array( 'nofooter', $instance['chrome'] ) ); ?> id="<?php echo $this->get_field_id( 'chrome-nofooter' ); ?>" name="<?php echo $this->get_field_name( 'chrome' ); ?>[]" value="nofooter" /> <label for="<?php echo $this->get_field_id( 'chrome-nofooter' ); ?>"><?php esc_html_e( 'No Footer', 'jetpack' ); ?></label><br />
                    
198			<input type="checkbox"<?php checked( in_array( 'nofooter', $instance['chrome'] ) ); ?> id="<?php echo $this->get_field_id( 'chrome-nofooter' ); ?>" name="<?php echo $this->get_field_name( 'chrome' ); ?>[]" value="nofooter" /> <label for="<?php echo $this->get_field_id( 'chrome-nofooter' ); ?>"><?php esc_html_e( 'No Footer', 'jetpack' ); ?></label><br />
                    
199			<input type="checkbox"<?php checked( in_array( 'noborders', $instance['chrome'] ) ); ?> id="<?php echo $this->get_field_id( 'chrome-noborders' ); ?>" name="<?php echo $this->get_field_name( 'chrome' ); ?>[]" value="noborders" /> <label for="<?php echo $this->get_field_id( 'chrome-noborders' ); ?>"><?php esc_html_e( 'No Borders', 'jetpack' ); ?></label><br />
                    
200            <input type="checkbox"<?php checked( in_array( 'noscrollbar', $instance['chrome'] ) ); ?> id="<?php echo $this->get_field_id( 'chrome-noscrollbar' ); ?>" name="<?php echo $this->get_field_name( 'chrome' ); ?>[]" value="noscrollbar" /> <label for="<?php echo $this->get_field_id( 'chrome-noscrollbar' ); ?>"><?php esc_html_e( 'No Scrollbar', 'jetpack' ); ?></label><br />
                    
200            <input type="checkbox"<?php checked( in_array( 'noscrollbar', $instance['chrome'] ) ); ?> id="<?php echo $this->get_field_id( 'chrome-noscrollbar' ); ?>" name="<?php echo $this->get_field_name( 'chrome' ); ?>[]" value="noscrollbar" /> <label for="<?php echo $this->get_field_id( 'chrome-noscrollbar' ); ?>"><?php esc_html_e( 'No Scrollbar', 'jetpack' ); ?></label><br />
                    
201			<input type="checkbox"<?php checked( in_array( 'transparent', $instance['chrome'] ) ); ?> id="<?php echo $this->get_field_id( 'chrome-transparent' ); ?>" name="<?php echo $this->get_field_name( 'chrome' ); ?>[]" value="transparent" /> <label for="<?php echo $this->get_field_id( 'chrome-transparent' ); ?>"><?php esc_html_e( 'Transparent Background', 'jetpack' ); ?></label>
                    
202		</p>
                    
                
clients.php https://bitbucket.org/fusioninvoice_it/fusioninvoice.git | PHP | 163 lines
                    
1<?php
                    
2
                    
35    {
                    
36        if (is_numeric(array_search($status, array('active', 'inactive'))))
                    
37        {
                    
                
ver-ofertas-para-postular.php https://bitbucket.org/elulice/gestionar.git | PHP | 256 lines
                    
89    <td><select name="idprovincia" id="idprovincia" style="width: 200px;" onChange="cargarListas(this, 'idlocalidad')">
                    
90      <?php
                    
91					$sSQL = "SELECT idprovincia, nombre FROM provincias  ";
                    
117
                    
118<?php 
                    
119  if ($_GET["filtrar"])
                    
201                  <tr>
                    
202                    <td width="30"><a href="javascript:verPostulados(<?php print($aRegistro["idpropuesta"]); ?>, <?php print($sPosicion); ?>)"><img src="images/btn-ver-mas-<?php print($sPosicion); ?>.jpg" alt="Ver Postulados" width="24" height="23" border="0"></a></td>
                    
203
                    
204                    <td width="30"><a href="am-ofertas.php?idregistro=<?php print($aRegistro["idpropuesta"]); ?>&url=<?php print($m_sURL); ?>"><img src="images/btn-modificar-<?php print($sPosicion); ?>.jpg" alt="Modificar" width="24" height="23" border="0"></a></td>
                    
205                    <td><a href="abm.php?tabla=propuestas&columna=idpropuesta&idregistro=<?php print($aRegistro["idpropuesta"]); ?>&url=<?php print($m_sURL); ?>" onClick="return confirm('&iquest;Desea eliminar esta Ofertas?')"><img src="images/btn-eliminar-<?php print($sPosicion); ?>.jpg" alt="Eliminar" width="24" height="23" border="0"></a></td>
                    
206                  </tr>
                    
240      <tr>
                    
241        <td width="100"><a href="am-ofertas.php?idregistro=0&url=<?php print($m_sURL); ?>"><img src="images/listado-pie-inicio.jpg" alt="Agregar" width="100" height="40" border="0"></a></td>
                    
242        <td class="listado-pie-bg">&nbsp;</td>
                    
                
filerevisions.php https://github.com/projectfork/Projectfork.git | PHP | 257 lines
                    
1<?php
                    
2/**
                    
177        // Filter by author
                    
178        if (is_numeric($filter_author)) {
                    
179            $type = $this->getState('filter.author_id.include', true) ? '= ' : '<>';
                    
                
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.ShowFleetACSPage.php https://github.com/jstar88/LibreTitan.git | PHP | 379 lines
                    
1<?php
                    
2
                    
63
                    
64		if ( !is_numeric ( $fleetid ) or empty ( $fleetid ) )
                    
65		{
                    
65		{
                    
66			exit ( header ( "Location: game.php?page=fleet" ) );
                    
67		}
                    
97		{
                    
98			exit ( header ( "Location: game.php?page=fleet" ) );
                    
99		}
                    
106		{
                    
107			exit ( header ( "Location: game.php?page=fleet" ) );
                    
108		}
                    
173				{
                    
174					exit ( header ( "Location: game.php?page=fleet" ) );
                    
175				}
                    
                
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,
                    
                
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 
                    
                
Cookie.php https://github.com/ibnoe/Microweber.git | PHP | 396 lines
                    
1<?php
                    
2/**
                    
6 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
                    
7 * @version $Id: Cookie.php 4302 2011-04-04 00:24:06Z vipsoft $
                    
8 *
                    
83		if(is_null($expire)
                    
84			|| !is_numeric($expire)
                    
85			|| $expire < 0)
                    
118	 * setcookie() replacement -- we don't use the built-in function because
                    
119	 * it is buggy for some PHP versions.
                    
120	 *
                    
120	 *
                    
121	 * @link http://php.net/setcookie
                    
122	 *
                    
214	/**
                    
215	 * Load the cookie content into a php array.
                    
216	 * Parses the cookie string to extract the different variables.
                    
                
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; ?>" />
                    
                
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/evotting | 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	}
                    
                
tv.ajax.php https://github.com/gunf/novo-isaak.local.git | PHP | 285 lines
                    
1<?php
                    
2/**
                    
5
                    
6require_once '../../../manager/includes/protect.inc.php'; 
                    
7include_once ('../../../manager/includes/config.inc.php');
                    
182							var h = screen.height * 0.7;
                    
183							OpenServerBrowser('".$base_url."manager/media/browser/mcpuk/browser.html?Type=images&Connector=".$base_url."manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath=".$base_url."', w, h);
                    
184						}
                    
189							var h = screen.height * 0.7;
                    
190							OpenServerBrowser('".$base_url."manager/media/browser/mcpuk/browser.html?Type=files&Connector=".$base_url."manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath=".$base_url."', w, h);
                    
191						}
                    
237							var h = screen.height * 0.7;
                    
238							OpenServerBrowser('".$base_url."manager/media/browser/mcpuk/browser.html?Type=images&Connector=".$base_url."manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath=".$base_url."', w, h);
                    
239						}
                    
244							var h = screen.height * 0.7;
                    
245							OpenServerBrowser('".$base_url."manager/media/browser/mcpuk/browser.html?Type=files&Connector=".$base_url."manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath=".$base_url."', w, h);
                    
246						}
                    
                
contact.php https://github.com/CCI-Studios/Wee-Magazine.git | 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));
                    
                
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		{
                    
                
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        }
                    
                
functions.validation.php https://github.com/Emaratilicious/Garden.git | PHP | 350 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
11/**
                    
12 * All of these functions are used by ./class.validation.php to validate form
                    
13 * input strings. With the exception of ValidateRegex, each function receives
                    
48
                    
49      if (is_numeric($Value))
                    
50         return TRUE;
                    
103   function ValidateEmail($Value, $Field = '') {
                    
104      $Result = PHPMailer::ValidateAddress($Value);
                    
105      $Result = (bool)$Result;
                    
225       if (is_object($Field) && $Field->AllowNull && $Value === NULL) return TRUE;
                    
226       return is_numeric($Value);
                    
227   }
                    
                
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
                    
                
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 );
                    
                
Website.php https://github.com/weburnit/magento-lite.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) {
                    
                
CollectionWrapper.php https://github.com/mackensen/moodle.git | PHP | 388 lines
                    
1<?php
                    
2/*
                    
30use function count;
                    
31use function is_numeric;
                    
32use function sprintf;
                    
366             * some drivers using float values in the key specification. */
                    
367            if (! is_numeric($actualValue) || (int) $expectedValue !== (int) $actualValue) {
                    
368                return false;
                    
                
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);
                    
                
 

Source

Language