PageRenderTime 637ms queryTime 192ms sortTime 22ms getByIdsTime 78ms findMatchingLines 90ms

100+ results results for 'php is_numeric repo:SantiHarry/XG-Proyect-v2.10.x' (637 ms)

Not the results you expected?
numerical.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 325 lines
                    
1<?php
                    
2
                    
51        global $USER, $CFG, $PAGE;
                    
52        $mform = new lesson_display_answer_form_shortanswer($CFG->wwwroot.'/mod/lesson/continue.php', array('contents'=>$this->get_contents(), 'lessonid'=>$this->lesson->id));
                    
53        $data = new stdClass;
                    
77
                    
78        $mform = new lesson_display_answer_form_shortanswer($CFG->wwwroot.'/mod/lesson/continue.php', array('contents'=>$this->get_contents()));
                    
79        $data = $mform->get_data();
                    
89
                    
90        if (!isset($data->answer) || !is_numeric($data->answer)) {
                    
91            $result->noanswer = true;
                    
                
users.inc.php https://gitlab.com/billyprice1/osTicket | PHP | 316 lines
                    
154            <th nowrap width="4%">&nbsp;</th>
                    
155            <th><a <?php echo $name_sort; ?> href="users.php?<?php
                    
156                echo $qstr; ?>&sort=name"><?php echo __('Name'); ?></a></th>
                    
156                echo $qstr; ?>&sort=name"><?php echo __('Name'); ?></a></th>
                    
157            <th width="22%"><a  <?php echo $status_sort; ?> href="users.php?<?php
                    
158                echo $qstr; ?>&sort=status"><?php echo __('Status'); ?></a></th>
                    
158                echo $qstr; ?>&sort=status"><?php echo __('Status'); ?></a></th>
                    
159            <th width="20%"><a <?php echo $create_sort; ?> href="users.php?<?php
                    
160                echo $qstr; ?>&sort=create"><?php echo __('Created'); ?></a></th>
                    
160                echo $qstr; ?>&sort=create"><?php echo __('Created'); ?></a></th>
                    
161            <th width="20%"><a <?php echo $update_sort; ?> href="users.php?<?php
                    
162                echo $qstr; ?>&sort=update"><?php echo __('Updated'); ?></a></th>
                    
191                        href="users.php?id=<?php echo $U['id']; ?>"
                    
192                        data-preview="#users/<?php echo $U['id']; ?>/preview"><?php
                    
193                        echo Format::htmlchars($name); ?></a>
                    
                
runeditchief.php https://bitbucket.org/jorgenio/boca.git | PHP | 320 lines
                    
1<?php
                    
2////////////////////////////////////////////////////////////////////////////////
                    
18// Last modified 05/aug/2012 by cassio@ime.usp.br
                    
19require 'header.php';
                    
20
                    
21if (isset($_POST["cancel"]) && $_POST["cancel"]=="Cancel editing")
                    
22        ForceLoad($runphp);
                    
23
                    
24if (isset($_POST["giveup"]) && $_POST["giveup"]=="Renew" &&
                    
25    isset($_POST["sitenumber"]) && isset($_POST["number"]) && is_numeric($_POST["number"]) &&
                    
26    is_numeric($_POST["sitenumber"])) {
                    
82if (!isset($_GET["runnumber"]) || !isset($_GET["runsitenumber"]) || 
                    
83    !is_numeric($_GET["runnumber"]) || !is_numeric($_GET["runsitenumber"])) {
                    
84	IntrusionNotify("tried to open the admin/runedit.php with wrong parameters.");
                    
101</b></center>
                    
102<form name="form1" method="post" action="<?php echo $runeditphp; ?>">
                    
103  <input type=hidden name="confirmation" value="noconfirm" />
                    
                
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		{
                    
                
Svg.php https://bitbucket.org/kdms/sh-magento.git | PHP | 382 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Image.php 20366 2010-01-18 03:56:52Z ralph $
                    
21 */
                    
23/** @see Zend_Barcode_Renderer_RendererAbstract*/
                    
24#require_once 'Zend/Barcode/Renderer/RendererAbstract.php';
                    
25
                    
68    {
                    
69        if (!is_numeric($value) || intval($value) < 0) {
                    
70            #require_once 'Zend/Barcode/Renderer/Exception.php';
                    
96    {
                    
97        if (!is_numeric($value) || intval($value) < 0) {
                    
98            #require_once 'Zend/Barcode/Renderer/Exception.php';
                    
126        if (!$svg instanceof DOMDocument) {
                    
127            #require_once 'Zend/Barcode/Renderer/Exception.php';
                    
128            throw new Zend_Barcode_Renderer_Exception(
                    
                
admin.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 303 lines
                    
1<?php
                    
2!function_exists('adminmsg') && exit('Forbidden');
                    
3
                    
4require_once(R_P.'require/credit.php');
                    
5
                    
42			foreach ($tools as $key => $value) {
                    
43				is_numeric($key) && $toolids[] = $key;
                    
44			}
                    
49			if($rt['vieworder'] == $vieworder[$rt['id']]) continue;
                    
50			is_numeric($vieworder[$rt['id']]) && $db->update("UPDATE pw_tools SET vieworder=".
                    
51															S::sqlEscape($vieworder[$rt['id']]).
                    
209		S::gp(array('uid','id'));
                    
210		(!is_numeric($uid) || !is_numeric($id)) && adminmsg('numerics_checkfailed');
                    
211
                    
230		S::gp(array('uid','id'));
                    
231		(!is_numeric($uid) || !is_numeric($id)) && adminmsg('numerics_checkfailed');
                    
232		$db->update("DELETE FROM pw_usertool WHERE uid=" . S::sqlEscape($uid) . "AND toolid=".S::sqlEscape($id));
                    
                
Cost_Utils.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 481 lines
                    
1<?php
                    
2/**
                    
189		// be sure to account for european formats in decimals, and thousands separators
                    
190		if ( is_numeric( str_replace( $this->get_separators(), '', $cost ) ) ) {
                    
191			$cost = tribe_format_currency( $cost );
                    
215		// return the non-numeric cost so that value is preserved
                    
216		if ( 1 === count( $costs ) && ! is_numeric( current( $costs ) ) ) {
                    
217			return current( $costs );
                    
220		// make sure we are only trying to get numeric min/max values
                    
221		$costs = array_filter( $costs, 'is_numeric' );
                    
222
                    
344
                    
345			if ( is_numeric( $numeric_cost ) ) {
                    
346				// Creates a Well Balanced Index that will perform good on a Key Sorting method
                    
386		$_merging_cost              = array_map( array( $this, 'numerize_numbers' ), $_merging_cost );
                    
387		$numeric_merging_cost_costs = array_filter( $_merging_cost, 'is_numeric' );
                    
388
                    
                
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
                    
                
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) {
                    
                
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;

                    
                
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
                    
                
categories.php https://github.com/Bushmaster/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');
                    
                
Date.php https://gitlab.com/crazybutterfly815/magento2 | 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     */
                    
                
ImageMagick.php https://gitlab.com/yousafsyed/easternglamor | PHP | 480 lines
                    
1<?php
                    
2/**
                    
46            $pixel = new \ImagickPixel();
                    
47            if (is_numeric($color)) {
                    
48                $pixel->setColorValue($color, 1);
                    
237     * @throws \Exception
                    
238     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
239     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
332        if (!class_exists('\Imagick', false)) {
                    
333            throw new \Exception("Required PHP extension 'Imagick' was not loaded.");
                    
334        }
                    
                
catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
                    
1<?php
                    
2/**
                    
107			//if(\COption::GetOptionString("sale", "encode_fuser_id", "N") == "Y")
                    
108			if (!is_numeric($basketItem->getFUserId()))
                    
109			{
                    
                
Currency.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 357 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
256    {
                    
257        if (!is_numeric($price)) {
                    
258            $price = Mage::app()->getLocale()->getNumber($price);
                    
                
class-thelib-core.php https://gitlab.com/najomie/fit-hippie | PHP | 221 lines
                    
1<?php
                    
2/**
                    
131			return true;
                    
132		} elseif ( is_numeric( $value ) ) {
                    
133			$value = intval( $value );
                    
                
SqlBase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 415 lines
                    
1<?php
                    
2
                    
235      foreach ($options as $option) {
                    
236        if (!is_numeric($option) || intval($option) == 0) {
                    
237          $error = TRUE;
                    
385    if (!$form_state->isValueEmpty('offset') && trim($form_state->getValue('offset'))) {
                    
386      if (!is_numeric($form_state->getValue('offset')) || $form_state->getValue('offset') < 0) {
                    
387        $form_state->setErrorByName('offset', $this->t('Offset must be a number greater than or equal to 0.'));
                    
                
Profiles.php https://gitlab.com/gregtyka/opensis | PHP | 258 lines
                    
1<?php
                    
2#**************************************************************************
                    
71	{
                    
72		$file = 'Users/User.php&category_id='.$category['ID'];
                    
73		$tmp_menu['Users'][$xprofile][$file] = ' &nbsp; &nbsp; &rsaquo; '.$category['TITLE'];
                    
80		{
                    
81			if(!is_numeric($modname))
                    
82			{
                    
128PopTable('header','Permissions');
                    
129	echo "<FORM name=pref_form id=pref_form action=Modules.php?modname=$_REQUEST[modname]&modfunc=update&profile_id=$_REQUEST[profile_id] method=POST>";
                    
130	DrawHeaderHome('Select the programs that users of this profile can use and which programs those users can use to save information.');
                    
143		if($_REQUEST['profile_id']!='' && $id==$_REQUEST['profile_id'])
                    
144			echo '<TR id=selected_tr onmouseover="" onmouseout="" bgcolor="'.Preferences('HIGHLIGHT').'"; this.style.color="white";\'><TD width=20 align=right'.$style.'>'.(AllowEdit()&&$id>3?button('remove','',"Modules.php?modname=$_REQUEST[modname]&modfunc=delete&profile_id=$id",20):'').'</TD><TD '.$style.' onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&profile_id='.$id.'\';">';
                    
145		else
                    
145		else
                    
146			echo '<TR onmouseover=\'this.style.backgroundColor="'.Preferences('HIGHLIGHT').'"; this.style.color="white";\' onmouseout=\'this.style.cssText="background-color:transparent; color:black;";\'><TD width=20 align=right'.$style.'>'.(AllowEdit()&&$id>3?button('remove','',"Modules.php?modname=$_REQUEST[modname]&modfunc=delete&profile_id=$id",15):'').'</TD><TD'.$style.' onclick="document.location.href=\'Modules.php?modname='.$_REQUEST['modname'].'&profile_id='.$id.'\';">';
                    
147		echo '<b><a style="cursor: pointer; cursor:hand; text-decoration:none;">'.($id>3?'':'<b>').$profile[1]['TITLE'].($id>3?'':'</b>').'</a></b> &nbsp;';
                    
                
SqlBase.php https://gitlab.com/guillaumev/alkarama | PHP | 393 lines
                    
1<?php
                    
2
                    
181      foreach ($options as $option) {
                    
182        if (!is_numeric($option) || intval($option) == 0) {
                    
183          $error = TRUE;
                    
363    if (!$form_state->isValueEmpty('offset') && trim($form_state->getValue('offset'))) {
                    
364      if (!is_numeric($form_state->getValue('offset')) || $form_state->getValue('offset') < 0) {
                    
365        $form_state->setErrorByName('offset', $this->t('Offset must be an number greater or equal than 0.'));
                    
                
article.php https://bitbucket.org/eternaware/joomus.git | PHP | 323 lines
                    
1<?php
                    
2/**
                    
142
                    
143				if (is_numeric($published)) {
                    
144					$query->where('(a.state = ' . (int) $published . ' OR a.state =' . (int) $archived . ')');
                    
155				// Check for published state if filter set.
                    
156				if (((is_numeric($published)) || (is_numeric($archived))) && (($data->state != $published) && ($data->state != $archived))) {
                    
157					return JError::raiseError(404, JText::_('COM_CONTENT_ERROR_ARTICLE_NOT_FOUND'));
                    
                
linea_albaran_cliente.php https://gitlab.com/cosouth.battle/sartinofi | PHP | 509 lines
                    
1<?php
                    
2/*
                    
6
                    
7require_model('articulo.php');
                    
8require_model('albaran_cliente.php');
                    
233   {
                    
234      return 'index.php?page=ventas_albaran&id='.$this->idalbaran;
                    
235   }
                    
240      {
                    
241         return "index.php?page=ventas_articulos";
                    
242      }
                    
243      else
                    
244         return "index.php?page=ventas_articulo&ref=".urlencode($this->referencia);
                    
245   }
                    
379      $sql = "SELECT * FROM ".$this->table_name." WHERE ";
                    
380      if( is_numeric($query) )
                    
381      {
                    
                
AdminTest.php https://gitlab.com/e0/X2CRM | PHP | 309 lines
                    
1<?php
                    
2
                    
191                $this->assertTrue (isset ($licenseKey['maxUsers']));
                    
192                $this->assertTrue (is_numeric ($licenseKey['dateExpires']));
                    
193                $this->assertTrue (is_numeric ($licenseKey['maxUsers']));
                    
200                $this->assertTrue (isset ($licenseKey['maxUsers']));
                    
201                $this->assertTrue (is_numeric ($licenseKey['dateExpires']));
                    
202                $this->assertTrue (is_numeric ($licenseKey['maxUsers']));
                    
258        $this->assertTrue (isset ($licenseKey['maxUsers']));
                    
259        $this->assertTrue (is_numeric ($licenseKey['dateExpires']));
                    
260        $this->assertTrue (is_numeric ($licenseKey['maxUsers']));
                    
267        $this->assertTrue (isset ($licenseKey['maxUsers']));
                    
268        $this->assertTrue (is_numeric ($licenseKey['dateExpires']));
                    
269        $this->assertTrue (is_numeric ($licenseKey['maxUsers']));
                    
                
Numeric.php https://gitlab.com/oytunistrator/92five | PHP | 112 lines
                    
1<?php
                    
2/**
                    
36 *
                    
37 * @package    PHPUnit
                    
38 * @subpackage Framework
                    
39 * @author     Bernhard Schussek <bschussek@2bepublished.at>
                    
40 * @copyright  2001-2014 Sebastian Bergmann <sebastian@phpunit.de>
                    
41 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
41 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
42 * @link       http://www.phpunit.de/
                    
43 * @since      File available since Release 3.6.0
                    
57 */
                    
58class PHPUnit_Framework_Comparator_Numeric extends PHPUnit_Framework_Comparator_Scalar
                    
59{
                    
69        // all numerical values, but not if one of them is a double
                    
70        return is_numeric($expected) && is_numeric($actual) && !(is_double($expected) || is_double($actual));
                    
71    }
                    
                
Collection.php https://github.com/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;
                    
                
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';
                    
                
update.php https://gitlab.com/diva-lab/hilton | 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>
                    
                
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            }
                    
                
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>
                    
                
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'); ?>
                    
                
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);
                    
                
Posix.php https://gitlab.com/yousafsyed/easternglamor | PHP | 407 lines
                    
1<?php
                    
2/**
                    
109        $this->write($text, $color, $bgColor);
                    
110        $this->write(PHP_EOL);
                    
111    }
                    
135        $result = exec('tput cols', $output, $return);
                    
136        if (!$return && is_numeric($result)) {
                    
137            return $width = (int) $result;
                    
161        $result = exec('tput lines', $output, $return);
                    
162        if (!$return && is_numeric($result)) {
                    
163            return $height = (int) $result;
                    
323
                    
324        $stream = fopen('php://stdin', 'rb');
                    
325        do {
                    
                
BasicPermission.php git://github.com/thorsten/phpMyFAQ.git | PHP | 469 lines
                    
1<?php
                    
2
                    
9 *
                    
10 * @package   phpMyFAQ
                    
11 * @author    Lars Tiedemann <php@larstiedemann.de>
                    
11 * @author    Lars Tiedemann <php@larstiedemann.de>
                    
12 * @copyright 2005-2021 phpMyFAQ Team
                    
13 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
13 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
14 * @link      https://www.phpmyfaq.de
                    
15 * @since     2005-09-17
                    
17
                    
18namespace phpMyFAQ\Permission;
                    
19
                    
19
                    
20use phpMyFAQ\Configuration;
                    
21use phpMyFAQ\Database;
                    
                
blocklayered.tpl https://bitbucket.org/enurkov/prestashop.git | Smarty Template | 257 lines
                    
8* It is also available through the world-wide-web at this URL:
                    
9* http://opensource.org/licenses/afl-3.0.php
                    
10* If you did not receive a copy of the license and are unable to
                    
21*  @copyright  2007-2012 PrestaShop SA
                    
22*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23*  International Registred Trademark & Property of PrestaShop SA
                    
64										{foreach from=$filter.values key=id_value item=value}
                    
65											{if $id_value == $filter_key && !is_numeric($filter_value) && ($filter.type eq 'id_attribute_group' || $filter.type eq 'id_feature') || $id_value == $filter_value && $filter.type neq 'id_attribute_group' && $filter.type neq 'id_feature'}
                    
66												<li>
                    
                
categories.php https://github.com/tomtom127/oscommerce.git | PHP | 247 lines
                    
1<?php
                    
2/*
                    
47
                    
48      if ( is_numeric($id) ) {
                    
49        $Qcat = $osC_Database->query('update :table_categories set sort_order = :sort_order, last_modified = now() where categories_id = :categories_id');
                    
61      if ( !$osC_Database->isError() ) {
                    
62        $category_id = (is_numeric($id)) ? $id : $osC_Database->nextID();
                    
63
                    
64        foreach ($osC_Language->getAll() as $l) {
                    
65          if ( is_numeric($id) ) {
                    
66            $Qcd = $osC_Database->query('update :table_categories_description set categories_name = :categories_name where categories_id = :categories_id and language_id = :language_id');
                    
119
                    
120      if ( is_numeric($id) ) {
                    
121        $osC_CategoryTree->setBreadcrumbUsage(false);
                    
                
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;
                    
                
wp-diff.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 477 lines
                    
1<?php
                    
2/**
                    
12	/** Text_Diff class */
                    
13	require( dirname(__FILE__).'/Text/Diff.php' );
                    
14	/** Text_Diff_Renderer class */
                    
14	/** Text_Diff_Renderer class */
                    
15	require( dirname(__FILE__).'/Text/Diff/Renderer.php' );
                    
16	/** Text_Diff_Renderer_inline class */
                    
16	/** Text_Diff_Renderer_inline class */
                    
17	require( dirname(__FILE__).'/Text/Diff/Renderer/inline.php' );
                    
18}
                    
219		foreach ( $orig_matches as $o => $f ) {
                    
220			if ( is_numeric($o) && is_numeric($f) ) {
                    
221				$text_diff = new Text_Diff( 'auto', array( array($orig[$o]), array($final[$f]) ) );
                    
                
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
                    
                
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');
                    
                
class-wp-ms-sites-list-table.php https://gitlab.com/haque.mdmanzurul/barongbarong | PHP | 388 lines
                    
227							<?php if ( ! is_main_site( $blog['blog_id'] ) ) : ?>
                    
228							<label class="screen-reader-text" for="blog_<?php echo $blog['blog_id']; ?>"><?php printf( __( 'Select %s' ), $blogname ); ?></label>
                    
229							<input type="checkbox" id="blog_<?php echo $blog['blog_id'] ?>" name="allblogs[]" value="<?php echo esc_attr( $blog['blog_id'] ) ?>" />
                    
229							<input type="checkbox" id="blog_<?php echo $blog['blog_id'] ?>" name="allblogs[]" value="<?php echo esc_attr( $blog['blog_id'] ) ?>" />
                    
230							<?php endif; ?>
                    
231						</th>
                    
243						echo "<td class='column-$column_name $column_name'$style>"; ?>
                    
244							<a href="<?php echo esc_url( network_admin_url( 'site-info.php?id=' . $blog['blog_id'] ) ); ?>" class="edit"><?php echo $blogname . $blog_state; ?></a>
                    
245							<?php
                    
270								if ( get_blog_status( $blog['blog_id'], 'archived' ) == '1' )
                    
271									$actions['unarchive']	= '<span class="archive"><a href="' . esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&amp;action2=unarchiveblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to unarchive the site %s.' ), $blogname ) ) ), 'confirm') ) . '">' . __( 'Unarchive' ) . '</a></span>';
                    
272								else
                    
275								if ( get_blog_status( $blog['blog_id'], 'spam' ) == '1' )
                    
276									$actions['unspam']	= '<span class="spam"><a href="' . esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&amp;action2=unspamblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to unspam the site %s.' ), $blogname ) ) ), 'confirm') ) . '">' . _x( 'Not Spam', 'site' ) . '</a></span>';
                    
277								else
                    
                
credit.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 348 lines
                    
1<?php
                    
2!function_exists('readover') && exit('Forbidden');
                    
5 *
                    
6 * phpwind 積分操作統一入口
                    
7 * @author sky_hold@163.com
                    
88			if (isset($this->getUser[$uid][$cType])) return $this->getUser[$uid][$cType];
                    
89			if (is_numeric($cType)) {
                    
90				if (perf::checkMemcache()){
                    
204		if ($uc_server && $uc_syncredit) {
                    
205			require_once(R_P . 'uc_client/uc_client.php');
                    
206			$retv = uc_credit_add($setUser, $isAdd);
                    
223					}
                    
224					if (is_numeric($cid)) {
                    
225						$v = intval($v);
                    
331			foreach ($setv as $key => $value) {
                    
332				if (isset($this->cType[$key]) && is_numeric($value) && $value <> 0) {
                    
333					$this->setUser[$uid][$key] += $value;
                    
                
Pdosqlite.php https://gitlab.com/vince.omega/mcb-nov-build | PHP | 486 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/*
                    
195
                    
196		if (is_numeric($database['limit']))
                    
197		{
                    
                
payment_address.php https://gitlab.com/reclamare/mao | PHP | 192 lines
                    
1<?php
                    
2class ControllerCheckoutPaymentAddress extends Controller {
                    
150
                    
151				if (!isset($this->request->post['zone_id']) || $this->request->post['zone_id'] == '' || !is_numeric($this->request->post['zone_id'])) {
                    
152					$json['error']['zone'] = $this->language->get('error_zone');
                    
                
image.php https://gitlab.com/sihabudinahmad/asppi | PHP | 514 lines
                    
1<?php
                    
2
                    
129	<div class="view show-if-value acf-soh">
                    
130		<img data-name="image" src="<?php echo $url; ?>" alt=""/>
                    
131		<ul class="acf-hl acf-soh-target">
                    
131		<ul class="acf-hl acf-soh-target">
                    
132			<?php if( $uploader != 'basic' ): ?>
                    
133				<li><a class="acf-icon dark" data-name="edit" href="#"><i class="acf-sprite-edit"></i></a></li>
                    
140			
                    
141			<?php if( $field['value'] && !is_numeric($field['value']) ): ?>
                    
142				<div class="acf-error-message"><p><?php echo $field['value']; ?></p></div>
                    
144			
                    
145			<input type="file" name="<?php echo $field['name']; ?>" id="<?php echo $field['id']; ?>" />
                    
146			
                    
148			
                    
149			<p style="margin:0;"><?php _e('No image selected','acf'); ?> <a data-name="add" class="acf-button" href="#"><?php _e('Add Image','acf'); ?></a></p>
                    
150			
                    
                
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])){
                    
                
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 */
                    
                
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
                    
                
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 
                    
                
columns.php https://gitlab.com/VTTE/sitios-vtte | PHP | 448 lines
                    
1<?php
                    
2// exit if accessed directly
                    
173
                    
174			<?php wp_nonce_field( 'post_views_count', 'pvc_nonce' ); ?>
                    
175
                    
176			<span id="post-views-display">
                    
177				<?php echo __( 'Post Views', 'post-views-counter' ) . ': <b>' . number_format_i18n( $count ) . '</b>'; ?>
                    
178			</span>
                    
179
                    
180			<?php
                    
181			// restrict editing
                    
185				?>
                    
186				<a href="#post-views" class="edit-post-views hide-if-no-js"><?php _e( 'Edit', 'post-views-counter' ); ?></a>
                    
187
                    
189
                    
190					<p><?php _e( 'Adjust the views count for this post.', 'post-views-counter' ); ?></p>
                    
191					<input type="hidden" name="current_post_views" id="post-views-current" value="<?php echo $count; ?>" />
                    
                
clients.php https://gitlab.com/mlnkv/fusioninvoice | PHP | 163 lines
                    
1<?php
                    
2
                    
35    {
                    
36        if (is_numeric(array_search($status, array('active', 'inactive'))))
                    
37        {
                    
                
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	}
                    
                
DB_result.php https://gitlab.com/estratega.pe/quote | PHP | 666 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
322	{
                    
323		if ( ! is_numeric($n))
                    
324		{
                    
                
Data.php https://bitbucket.org/kdms/sh-magento.git | PHP | 563 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Data.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 */
                    
116        if ($this->hasItem($item['id'])) {
                    
117            #require_once 'Zend/Dojo/Exception.php';
                    
118            throw new Zend_Dojo_Exception('Overwriting items using addItem() is not allowed');
                    
134        if (!is_array($items) && (!is_object($items) || !($items instanceof Traversable))) {
                    
135            #require_once 'Zend/Dojo/Exception.php';
                    
136            throw new Zend_Dojo_Exception('Only arrays and Traversable objects may be added to ' . __CLASS__);
                    
224            $this->_identifier = $identifier;
                    
225        } elseif (is_numeric($identifier)) {
                    
226            $this->_identifier = (int) $identifier;
                    
227        } else {
                    
228            #require_once 'Zend/Dojo/Exception.php';
                    
229            throw new Zend_Dojo_Exception('Invalid identifier; please use a string or integer');
                    
                
date.php https://bitbucket.org/codeyash/bootstrap.git | PHP | 404 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2013 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
23 * @category    Core
                    
24 * @link        http://docs.fuelphp.com/classes/date.html
                    
25 *
                    
28 * - create_time() uses strptime and has currently a very bad hack to use strtotime for windows servers
                    
29 * - Uses strftime formatting for dates www.php.net/manual/en/function.strftime.php
                    
30 */
                    
103
                    
104			// This really is some fugly code, but someone at PHP HQ decided strptime should
                    
105			// output this awful array instead of a timestamp LIKE EVERYONE ELSE DOES!!!
                    
112	 * @param   int     UNIX timestamp from current server
                    
113	 * @param   string  valid PHP timezone from www.php.net/timezones
                    
114	 * @return  Date
                    
                
ShashinDataObjectDisplayer.php https://bitbucket.org/zachisit/zachis.it-m.git | PHP | 330 lines
                    
1<?php
                    
2
                    
138
                    
139        if (!is_numeric($this->displayThumbnailSize)) {
                    
140            throw New Exception(__('invalid size requested', 'shashin'));
                    
312        if ($this->caption) {
                    
313            $this->combinedTags .= $this->caption . PHP_EOL;
                    
314        }
                    
                
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 );
                    
                
Parser.php https://bitbucket.org/dbaltas/zend-framework-1.x-on-git.git | PHP | 407 lines
                    
1<?php
                    
2
                    
2
                    
3require_once('Scope.php');
                    
4require_once('Symbol.php');
                    
4require_once('Symbol.php');
                    
5require_once('Destructable.php');
                    
6
                    
293  protected function symbol($id, $bp = 0) {
                    
294    if (($s = $this->symbol_table[$id]) && is_numeric($s->lbp)) {
                    
295      $s->lbp = max($bp, $s->lbp);
                    
                
Logical.php https://gitlab.com/devtoannh/cafe | PHP | 288 lines
                    
22 * @package		PHPExcel_Calculation
                    
23 * @copyright	Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
28
                    
29/** PHPExcel root directory */
                    
30if (!defined('PHPEXCEL_ROOT')) {
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
43 * @package		PHPExcel_Calculation
                    
44 * @copyright	Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
45 */
                    
119					$arg = TRUE;
                    
120				} elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {
                    
121					$arg = FALSE;
                    
                
RemoveFromTag.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 147 lines
                    
1<?php
                    
2/*
                    
104        if ($val) {
                    
105          if (is_numeric($val)) {
                    
106            $tagList[$val] = 1;
                    
                
index.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 426 lines
                    
1<?php
                    
2/**
                    
191		// Check for state filter.
                    
192		if (is_numeric($this->getState('filter.state')))
                    
193		{
                    
                
contact.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | 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));
                    
                
Save.php https://gitlab.com/yousafsyed/easternglamor | PHP | 298 lines
                    
1<?php
                    
2/**
                    
12/**
                    
13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
14 */
                    
127
                    
128            if (is_numeric($addressId)) {
                    
129                $addressData['id'] = $addressId;
                    
174     * @return \Magento\Backend\Model\View\Result\Redirect
                    
175     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
176     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
176     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
177     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
178     */
                    
                
RendererAbstract.php https://bitbucket.org/openfisma-ondemand/openfisma.git | PHP | 540 lines
                    
1<?php
                    
2/**
                    
175    {
                    
176        if (!is_numeric($value) || intval($value) < 0) {
                    
177            // require_once 'Zend/Barcode/Renderer/Exception.php';
                    
202    {
                    
203        if (!is_numeric($value) || intval($value) < 0) {
                    
204            // require_once 'Zend/Barcode/Renderer/Exception.php';
                    
240        if (!in_array($value, array('left' , 'center' , 'right'))) {
                    
241            // require_once 'Zend/Barcode/Renderer/Exception.php';
                    
242            throw new Zend_Barcode_Renderer_Exception(
                    
267        if (!in_array($value, array('top' , 'middle' , 'bottom'))) {
                    
268            // require_once 'Zend/Barcode/Renderer/Exception.php';
                    
269            throw new Zend_Barcode_Renderer_Exception(
                    
293    {
                    
294        if (!is_numeric($value) || floatval($value) <= 0) {
                    
295            // require_once 'Zend/Barcode/Renderer/Exception.php';
                    
                
WpBordersMgr.php https://gitlab.com/Skull3x/pocketmine-plugins | PHP | 142 lines
                    
1<?php
                    
2//= cmd:border,Sub_Commands
                    
90			list($x1,$z1,$x2,$z2) = $args;
                    
91			if (!is_numeric($x1) || !is_numeric($z1)
                    
92				 || !is_numeric($x2) || !is_numeric($z2)) {
                    
                
router.php https://bitbucket.org/eternaware/joomus.git | PHP | 200 lines
                    
1<?php
                    
2/**
                    
169
                    
170	if (!is_numeric($userId)) {
                    
171		$vars['view'] = 'profile';
                    
174
                    
175	if (is_numeric($userId)) {
                    
176		// Get the package id from the packages table by alias.
                    
                
gravityforms-update-post.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 461 lines
                    
1<?php
                    
2/*
                    
64
                    
65    if (isset($_REQUEST[$this->options['request_id']]) && is_numeric($_REQUEST[$this->options['request_id']]))
                    
66    {
                    
94      <label for="field_unique_custom_meta_value" class="inline">
                    
95        <?php _e('Unique Custom Field?'); ?>
                    
96        <?php gform_tooltip('form_field_unique_custom_meta_value') ?>
                    
100    
                    
101<?php
                    
102    endif;
                    
124    </script>
                    
125<?php
                    
126  }
                    
                
Stopwatch.php https://gitlab.com/andecode/theme-spark | PHP | 609 lines
                    
1<?php
                    
2
                    
187    public function __construct($origin = NULL) {
                    
188      $this->origin = is_numeric($origin) ? $origin : NULL;
                    
189    }
                    
535    private function formatTime($time) {
                    
536      if (!is_numeric($time)) {
                    
537        throw new \InvalidArgumentException('The time must be a numerical value');
                    
                
svg_driver.php https://gitlab.com/OnBlox/OnBlox-Template | PHP | 288 lines
                    
1<?php
                    
2/**
                    
29 * <code>
                    
30 *   $graph = new ezcGraphPieChart();
                    
31 *   $graph->background->color = '#FFFFFFFF';
                    
137            case 'assumedNumericCharacterWidth':
                    
138                if ( !is_numeric( $propertyValue ) ||
                    
139                     ( $propertyValue < 0 ) )
                    
146            case 'assumedTextCharacterWidth':
                    
147                if ( !is_numeric( $propertyValue ) ||
                    
148                     ( $propertyValue < 0 ) )
                    
                
csv.php https://github.com/jobzesage/Adres.git | PHP | 334 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CSV helper for cakePHP. Compatible with version 1.1.x.x and higher.
                    
4 *
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
9 * @copyright		Adam Royle
                    
10 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
                    
11 */
                    
289/**
                    
290 * A PHP4 implementation of the equivalent PHP5 function
                    
291 *
                    
291 *
                    
292 * See (http://www.php.net/manual/en/function.fputcsv.php) for details
                    
293 */
                    
                
Orderby.php https://github.com/bigcalm/urlcatcher.git | PHP | 179 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Orderby.php 5975 2009-07-01 03:50:26Z guilhermeblanco $
                    
4 *
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
26 * @subpackage  Query
                    
27 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
28 * @link        www.phpdoctrine.org
                    
58                    if (strpos($term[0], '.') !== false) {
                    
59                        if ( ! is_numeric($term[0])) {
                    
60                            $e = explode('.', $term[0]);
                    
112                        if ( ! empty($term[0]) &&
                    
113                             ! is_numeric($term[0]) &&
                    
114                            $term[0] !== '?' && substr($term[0], 0, 1) !== ':') {
                    
                
theme.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 323 lines
                    
1<?php
                    
2class CommentListTheme extends Themelet {
                    
30
                    
31		// aaaaaaargh php
                    
32		assert(is_array($images));
                    
32		assert(is_array($images));
                    
33		assert(is_numeric($page_number));
                    
34		assert(is_numeric($total_pages));
                    
192		
                    
193		assert(is_numeric($page_number));
                    
194		assert(is_numeric($total_pages));
                    
                
Message.php https://bitbucket.org/acidel/buykoala.git | PHP | 314 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 */

                    
139        } elseif ($type == 'address_item') {

                    
140            $storeId = is_numeric($store) ? $store : Mage::app()->getStore($store)->getId();

                    
141

                    
                
documents.php https://github.com/bradymiller/openemr.git | PHP | 381 lines
                    
1<?php
                    
2
                    
16 * You should have received a copy of the GNU General Public License
                    
17 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
                    
18 *
                    
23
                    
24require_once($GLOBALS['fileroot'] . "/controllers/C_Document.class.php");
                    
25
                    
62    $_POST['path_depth'] = $path_depth;
                    
63    $_POST['patient_id'] = (is_numeric($patient_id_or_simple_directory) && $patient_id_or_simple_directory > 0) ? $patient_id_or_simple_directory : "00";
                    
64    $_POST['category_id'] = $category_id;
                    
                
wsus_sync.php https://gitlab.com/Maskerade/patchdashboard | PHP | 245 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * PHP version 5
                    
5 *
                    
46    }
                    
47    if (!is_numeric($string)) {
                    
48        $string = mysql_real_escape_string($string);
                    
                
backuplib.php https://github.com/cwaclawik/moodle.git | PHP | 337 lines
                    
1<?PHP //$Id$
                    
2    //This php script contains all the stuff to backup/restore
                    
240        // $excluded_tags : fields which will NOT be backed up from the records
                    
241        // $more_backup   : optional PHP code to be eval(uated) for each record
                    
242        // If any of the "fwrite" statements fail,
                    
268                foreach ($tags as $tag=>$value) {
                    
269                    if (!is_numeric($tag) && !in_array($tag, $excluded_tags)) {
                    
270                        $status = $status && fwrite($bf, full_tag($tag, $level, false, $value));
                    
                
module.audio.dts.php https://gitlab.com/VTTE/sitios-vtte | PHP | 334 lines
                    
1<?php
                    
2
                    
10//                                                             //
                    
11// module.audio.dts.php                                        //
                    
12// module for analyzing DTS Audio files                        //
                    
18/**
                    
19* @tutorial http://wiki.multimedia.cx/index.php?title=DTS
                    
20*/
                    
137		$info['audio']['bitrate']             = $info['dts']['bitrate'];
                    
138		if (isset($info['avdataend']) && !empty($info['dts']['bitrate']) && is_numeric($info['dts']['bitrate'])) {
                    
139			$info['playtime_seconds']         = ($info['avdataend'] - $info['avdataoffset']) / ($info['dts']['bitrate'] / 8);
                    
                
centAcl-Func.php https://gitlab.com/florianocomercial/centreon | PHP | 418 lines
                    
1<?php
                    
2
                    
240
                    
241    if (!is_numeric($res_id)) {
                    
242        return false;
                    
265
                    
266    if (!is_numeric($res_id)) {
                    
267        return false;
                    
290
                    
291    if (!is_numeric($res_id)) {
                    
292        return false;
                    
                
ViewLookupWizardField.php https://gitlab.com/Lidbary/PHPRunner | PHP | 363 lines
                    
1<?php
                    
2class ViewLookupWizardField extends ViewControl
                    
113			{
                    
114				if( strlen($val) && !is_numeric($val) )
                    
115				{
                    
                
Logical.php https://gitlab.com/ptisky/API_prestashop | PHP | 288 lines
                    
22 * @package		PHPExcel_Calculation
                    
23 * @copyright	Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
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 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
45 */
                    
119					$arg = TRUE;
                    
120				} elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {
                    
121					$arg = FALSE;
                    
                
MY_Image_lib.php https://gitlab.com/fcupen/PHP | PHP | 177 lines
                    
1<?php
                    
2/**
                    
139        // axis settings
                    
140        if (!is_numeric($this->user_x_axis)) {
                    
141            $this->x_axis = floor(($this->width - $this->user_width) / 2);
                    
145
                    
146        if (!is_numeric($this->user_y_axis)) {
                    
147            $this->y_axis = floor(($this->height - $this->user_height) / 2);
                    
                
Column.php https://gitlab.com/techniconline/kmc | PHP | 494 lines
                    
1<?php
                    
2/*
                    
163    {
                    
164        if (!is_numeric($precision)) {
                    
165            $precision = 10; // defaults to 10 when no valid precision is given.
                    
179    {
                    
180        if (!is_numeric($scale)) {
                    
181            $scale = 0;
                    
                
Collection.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 260 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 */
                    
64
                    
65        if (is_numeric($entity)) {
                    
66            $this->addFilter('entity',
                    
                
ckfinder_php5.php https://gitlab.com/endomorphosis/falkenstein | PHP | 231 lines
                    
1<?php
                    
2/*
                    
32
                    
33	// PHP 5 Constructor
                    
34	function __construct( $basePath = CKFINDER_DEFAULT_BASEPATH, $width = '100%', $height = 400, $selectFunction = null )
                    
181		$dir = substr( $url, 0, strrpos( $url, "/" ) + 1 ) ;
                    
182		$editorObj->Config['LinkUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=Files' ) ;
                    
183		$editorObj->Config['ImageUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $imageType ) ? 'Images' : $imageType ) ;
                    
183		$editorObj->Config['ImageUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $imageType ) ? 'Images' : $imageType ) ;
                    
184		$editorObj->Config['FlashUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $flashType ) ? 'Flash' : $flashType ) ;
                    
185	}
                    
226		$dir = substr( $url, 0, strrpos( $url, "/" ) + 1 ) ;
                    
227		$editorObj->config['filebrowserUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=Files' ;
                    
228		$editorObj->config['filebrowserImageUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $imageType ) ? 'Images' : $imageType ) ;
                    
228		$editorObj->config['filebrowserImageUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $imageType ) ? 'Images' : $imageType ) ;
                    
229		$editorObj->config['filebrowserFlashUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $flashType ) ? 'Flash' : $flashType ) ;
                    
230	}
                    
                
locallib.php https://github.com/andreev-artem/moodle.git | PHP | 422 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
25
                    
26require_once($CFG->dirroot.'/tag/lib.php');
                    
27require_once($CFG->libdir.'/filelib.php');
                    
75
                    
76        $link = $CFG->wwwroot .'/tag/index.php?tag='. rawurlencode($tag->name);
                    
77        $output .= '<li><a href="'. $link .'" class="'. $tag->class .'" '.
                    
90/**
                    
91 * This function is used by print_tag_cloud, to usort() the tags in the cloud. See php.net/usort for the parameters documentation.
                    
92 * This was originally in blocks/blog_tags/block_blog_tags.php, named blog_tags_sort().
                    
108
                    
109    if (is_numeric($a->$tagsort)) {
                    
110        return ($a->$tagsort == $b->$tagsort) ? 0 : ($a->$tagsort > $b->$tagsort) ? 1 : -1;
                    
148        $options->overflowdiv = true;
                    
149        $tag_object->description = file_rewrite_pluginfile_urls($tag_object->description, 'pluginfile.php', get_context_instance(CONTEXT_SYSTEM)->id, 'tag', 'description', $tag_object->id);
                    
150        $output .= format_text($tag_object->description, $tag_object->descriptionformat, $options);
                    
                
em-events.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 190 lines
                    
102			<label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title', 'dbem'); ?>: </label>
                    
103			<input type="text" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" value="<?php echo esc_attr($instance['title']); ?>" />
                    
104		</p>
                    
106			<label for="<?php echo $this->get_field_id('limit'); ?>"><?php _e('Number of events','dbem'); ?>: </label>
                    
107			<input type="text" id="<?php echo $this->get_field_id('limit'); ?>" name="<?php echo $this->get_field_name('limit'); ?>" size="3" value="<?php echo esc_attr($instance['limit']); ?>" />
                    
108		</p>
                    
150            <label for="<?php echo $this->get_field_id('category'); ?>"><?php _e('Category IDs','dbem'); ?>: </label>
                    
151            <input type="text" id="<?php echo $this->get_field_id('category'); ?>" name="<?php echo $this->get_field_name('category'); ?>" size="3" value="<?php echo esc_attr($instance['category']); ?>" /><br />
                    
152            <em><?php _e('1,2,3 or 2 (0 = all)','dbem'); ?> </em>
                    
155			<label for="<?php echo $this->get_field_id('format'); ?>"><?php _e('List item format','dbem'); ?>: </label>
                    
156			<textarea rows="5" cols="24" id="<?php echo $this->get_field_id('format'); ?>" name="<?php echo $this->get_field_name('format'); ?>"><?php echo $instance['format']; ?></textarea>
                    
157		</p>
                    
167			<label for="<?php echo $this->get_field_id('no_events_text'); ?>"><?php _e('No events text','dbem'); ?>: </label>
                    
168			<input type="text" id="<?php echo $this->get_field_id('no_events_text'); ?>" name="<?php echo $this->get_field_name('no_events_text'); ?>" value="<?php echo (!empty($instance['no_events_text'])) ? $instance['no_events_text']:__('No events', 'dbem'); ?>" >
                    
169		</p>
                    
                
mssql_forge.php https://github.com/bwghughes/houghandco.git | PHP | 219 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
93			// Numeric field names aren't allowed in databases, so if the key is
                    
94			// numeric, we know it was assigned by PHP and the developer manually
                    
95			// entered the field information, so we'll simply add it to the list
                    
95			// entered the field information, so we'll simply add it to the list
                    
96			if (is_numeric($field))
                    
97			{
                    
                
transportmail.php https://gitlab.com/alexprowars/bitrix | PHP | 500 lines
                    
1<?php
                    
2/**
                    
173		{
                    
174			if (is_numeric($file) && $file > 0)
                    
175			{
                    
219				'MESSAGE' => str_replace('#CONSENT_LINK#', $preparedConsentLink, $message->getConfiguration()->get('BODY')),
                    
220				'MESSAGE_PHP' => $message->getConfiguration()->get('BODY_PHP'),
                    
221				'FILE' => $messageAttachment
                    
444				'MESSAGE' => $body,
                    
445				'MESSAGE_PHP' => $message->getConfiguration()->get('BODY_PHP'),
                    
446			),
                    
479	{
                    
480		return (string)\Bitrix\Main\UserConsent\AgreementLink::getUri($agreementId, [], '/pub/agreement.php');
                    
481	}
                    
                
threads.inc.php https://github.com/AlexChien/EY_BBS.git | PHP | 399 lines
                    
1<?php
                    
2
                    
6
                    
7$Id: threads.inc.php 16886 2008-11-26 05:08:30Z cnteacher $
                    
8*/
                    
25		foreach (array('threadoption', 'viewsless', 'viewsmore', 'repliesless', 'repliesmore', 'noreplydays') as $key) {
                    
26			$$key = isset($$key) && is_numeric($$key) ? intval($$key) : '';
                    
27			$result[$key] = $$key;
                    
133		if($query) {
                    
134			require_once DISCUZ_ROOT.'./include/misc.func.php';
                    
135			while ($thread = $db->fetch_array($query)) {
                    
199		if($pidsdelete) {
                    
200			require_once DISCUZ_ROOT.'./include/post.func.php';
                    
201
                    
                
ipayment_elv.php https://github.com/vakondweb/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'];
                    
                
image.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 412 lines
                    
1<?php
                    
2/**
                    
26	$src_file = $src;
                    
27	if ( is_numeric( $src ) ) { // Handle int as attachment ID
                    
28		$src_file = get_attached_file( $src );
                    
                
Svg.php https://gitlab.com/devtoannh/cafe | 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*/
                    
24require_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(
                    
                
Inline.php https://bitbucket.org/alessandro-aglietti/itis-leonardo-da-vinci.git | PHP | 424 lines
                    
1<?php
                    
2
                    
25    /**
                    
26     * Converts a YAML string to a PHP array.
                    
27     *
                    
29     *
                    
30     * @return array A PHP array representing the YAML string
                    
31     */
                    
69    /**
                    
70     * Dumps a given PHP variable to a YAML string.
                    
71     *
                    
71     *
                    
72     * @param mixed $value The PHP variable to convert
                    
73     *
                    
73     *
                    
74     * @return string The YAML string representing the PHP array
                    
75     *
                    
                
reader.php https://bitbucket.org/crevillo/enetcall.git | PHP | 279 lines
                    
1<?php
                    
2/**
                    
11/**
                    
12 * Handler for files containing PHP arrays that represent DB schema.
                    
13 *
                    
172            $typeLength = $matches[3];
                    
173            if ( is_numeric( $typeLength ) )
                    
174            {
                    
                
autoload.function.php https://gitlab.com/OnBlox/OnBlox-Template | PHP | 385 lines
                    
1<?php
                    
2/*
                    
41
                    
42include_once (GLPI_ROOT."/config/based_config.php");
                    
43include_once (GLPI_ROOT."/config/define.php");
                    
266   // empty classname or non concerted plugin or classname containing dot (leaving GLPI main treee)
                    
267   if (empty($classname) || is_numeric($classname) || (strpos($classname, '.') !== false)) {
                    
268      die("Security die. trying to load an forbidden class name");
                    
301
                    
302      // Do not try to load phpcas using GLPI autoload
                    
303      if (preg_match('/^CAS_.*/', $classname)) {
                    
317
                    
318   if (file_exists("$dir$item.class.php")) {
                    
319      include_once("$dir$item.class.php");
                    
326      // trigger an error to get a backtrace, but only once (use prefix 'x' to handle empty case)
                    
327//          trigger_error("GLPI autoload : file $dir$item.class.php not founded trying to load class '$classname'");
                    
328      $notfound["x$classname"] = true;
                    
                
Properties.php https://bitbucket.org/moodle/moodle.git | PHP | 537 lines
                    
1<?php
                    
2
                    
2
                    
3namespace PhpOffice\PhpSpreadsheet\Document;
                    
4
                    
5use DateTime;
                    
6use PhpOffice\PhpSpreadsheet\Shared\IntOrFloat;
                    
7
                    
170        } elseif (is_string($timestamp)) {
                    
171            if (is_numeric($timestamp)) {
                    
172                $timestamp = (float) $timestamp;
                    
                
Currency.php https://github.com/cosmocommerce/magento-mirror.git | 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) 2014 Magento Inc. (http://www.magentocommerce.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);
                    
                
Serializer.php https://bitbucket.org/simukti/zf1.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Serializer.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
23/** Zend_Amf_Constants */
                    
24require_once 'Zend/Amf/Constants.php';
                    
25
                    
26/** @see Zend_Amf_Parse_Serializer */
                    
27require_once 'Zend/Amf/Parse/Serializer.php';
                    
28
                    
29/**
                    
30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker.
                    
31 *
                    
65    {
                    
66        // Workaround for PHP5 with E_STRICT enabled complaining about "Only
                    
67        // variables should be passed by reference"
                    
                
class-itsec-logger.php https://gitlab.com/gabdark/aceit | PHP | 556 lines
                    
1<?php
                    
2
                    
321
                    
322					if ( ! is_numeric( $key ) ) {
                    
323						$items .= '<h3>' . $key . '</h3>';
                    
325
                    
326					$items .= $this->print_array( $item, true ) . PHP_EOL;
                    
327
                    
332					if ( strlen( trim( $item ) ) > 0 ) {
                    
333						$items .= '<li><h3>' . $key . ' = ' . $item . '</h3></li>' . PHP_EOL;
                    
334					}
                    
400	 *
                    
401	 * Adapted from http://www.phpclasses.org/browse/file/49471.html
                    
402	 *
                    
551		
                    
552		@error_log( $details . PHP_EOL, 3, $log_file );
                    
553		
                    
                
class-wc-connect-service-schemas-store.php https://gitlab.com/remyvianne/krowkaramel | PHP | 266 lines
                    
1<?php
                    
2
                    
222
                    
223			if ( is_numeric( $id_or_instance_id ) ) {
                    
224				return $this->get_service_schema_by_instance_id( $id_or_instance_id );
                    
                
Mail.php https://github.com/basdog22/Qool.git | PHP | 430 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Mail.php 24594 2012-01-05 21:27:01Z 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 24594 2012-01-05 21:27:01Z matthew $
                    
45 */
                    
                
Util.php https://gitlab.com/CORP-RESELLER/shopping-cart-lite | PHP | 303 lines
                    
1<?php
                    
2/**
                    
3 * Braintree Utility methods
                    
4 * PHP version 5
                    
5 *
                    
135    {
                    
136        // php doesn't garbage collect functions created by create_function()
                    
137        // so use a static variable to avoid adding a new function to memory
                    
168    {
                    
169        // php doesn't garbage collect functions created by create_function()
                    
170        // so use a static variable to avoid adding a new function to memory
                    
265           $fullKey = empty($namespace) ? $key : $namespace;
                    
266           if (!is_numeric($key) && $namespace != null) {
                    
267              $fullKey .= '[' . $key . ']';
                    
268           }
                    
269           if (is_numeric($key) && is_string($value)) {
                    
270              $fullKey .= '[' . $value . ']';
                    
                
QueryCompiler.php https://gitlab.com/ViniciusP/project-games | PHP | 337 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 */
                    
163        foreach ($parts as $k => $p) {
                    
164            if (!is_numeric($k)) {
                    
165                $p = $p . ' AS ' . $driver->quoteIdentifier($k);
                    
201        foreach ($parts as $k => $p) {
                    
202            if (!is_numeric($k)) {
                    
203                $p = $p . ' ' . $k;
                    
                
Time.php https://gitlab.com/ViniciusP/project-games | PHP | 353 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 */
                    
36     * The format should be either the formatting constants from IntlDateFormatter as
                    
37     * described in (http://www.php.net/manual/en/class.intldateformatter.php) or a pattern
                    
38     * as specified in (http://www.icu-project.org/apiref/icu4c/classSimpleDateFormat.html#details)
                    
52     * The format should be either the formatting constants from IntlDateFormatter as
                    
53     * described in (http://www.php.net/manual/en/class.intldateformatter.php) or a pattern
                    
54     * as specified in (http://www.icu-project.org/apiref/icu4c/classSimpleDateFormat.html#details)
                    
                
Unit_test.php https://gitlab.com/ricoru21/py_incidencia | PHP | 383 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 *
                    
92
                    
93		if (in_array($expected, array('is_object', 'is_string', 'is_bool', 'is_true', 'is_false', 'is_int', 'is_numeric', 'is_float', 'is_double', 'is_array', 'is_null'), TRUE))
                    
94		{
                    
381
                    
382/* End of file Unit_test.php */
                    
383/* Location: ./system/libraries/Unit_test.php */
                    
                
 

Source

Language