PageRenderTime 367ms queryTime 41ms sortTime 34ms getByIdsTime 151ms findMatchingLines 68ms

100+ results results for 'php intval' (367 ms)

Not the results you expected?
importDump.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 277 lines
                    
1<?php
                    
2/**
                    
24
                    
25require_once( dirname( __FILE__ ) . '/Maintenance.php' );
                    
26
                    
40		parent::__construct();
                    
41		$gz = in_array('compress.zlib', stream_get_wrappers()) ? 'ok' : '(disabled; requires PHP zlib module)';
                    
42		$bz2 = in_array('compress.bzip2', stream_get_wrappers()) ? 'ok' : '(disabled; requires PHP bzip2 module)';
                    
45This script reads pages from an XML file as produced from Special:Export or
                    
46dumpBackup.php, and saves them into the current wiki.
                    
47
                    
52
                    
53Note that for very large data sets, importDump.php may be slow; there are
                    
54alternate methods which can be much faster for full site restoration:
                    
56TEXT;
                    
57		$this->stderr = fopen( "php://stderr", "wt" );
                    
58		$this->addOption( 'report',
                    
                
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	}
                    
                
tablecontents.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 207 lines
                    
1<?php
                    
2/**
                    
7?>
                    
8<?php
                    
9defined('_JEXEC') or die('Restricted access');
                    
72    	<tr><td colspan="2"><?php echo JText::_('ACY_GENERATEANCHOR'); ?></td></tr>
                    
73    	<tr><td><?php echo JText::sprintf('ACY_LEVEL',1)?></td><td><?php echo JHTML::_('select.genericlist', $contenttype, 'contenttype' , 'size="1" onchange="updateTag();"', 'value', 'text'); ?><input style="display:none" onchange="updateTag();" name="classvalue" /></td></tr>
                    
74    	<tr><td><?php echo JText::sprintf('ACY_LEVEL',2)?></td><td><?php echo JHTML::_('select.genericlist', $contentsubtype, 'contentsubtype' , 'size="1" onchange="updateTag();"', 'value', 'text'); ?><input style="display:none" onchange="updateTag();" name="subclassvalue" /></td></tr>
                    
75    </table>
                    
76<?php
                    
77		$doc =& JFactory::getDocument();
                    
80	function acymailing_replaceusertags(&$email,&$user){
                    
81		if(isset($this->noResult[intval($email->mailid)])) return;
                    
82		$match = '#{tableofcontents(.*)}#Ui';
                    
90	    if(!$found){
                    
91	    	$this->noResult[intval($email->mailid)] = true;
                    
92	    	 return;
                    
                
ValidatorBuilder.php https://bitbucket.org/prauscher/att.git | PHP | 296 lines
                    
1<?php
                    
2
                    
67    /**
                    
68     * @var ConstraintValidatorFactoryInterface
                    
69     */
                    
243     */
                    
244    public function setConstraintValidatorFactory(ConstraintValidatorFactoryInterface $validatorFactory)
                    
245    {
                    
291
                    
292        $validatorFactory = $this->validatorFactory ?: new ConstraintValidatorFactory();
                    
293
                    
                
text.php https://github.com/rii-J/concrete5-de.git | PHP | 301 lines
                    
1<?php 
                    
2/**
                    
137	function shortText($textStr, $numChars=255, $tail='…') {
                    
138		if (intval($numChars)==0) $numChars=255;
                    
139		$textStr=strip_tags($textStr);
                    
158        function shortenTextWord($textStr, $numChars=255, $tail='…') {
                    
159		if (intval($numChars)==0) $numChars=255;
                    
160		$textStr=strip_tags($textStr);
                    
224	/** 
                    
225	 * A wrapper for PHP's fnmatch() function, which some installations don't have.
                    
226	 * @param string $pattern
                    
                
Pager.php https://github.com/cawago/ci_campusync_auth.git | PHP | 576 lines
                    
1<?php
                    
2/*
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
27 * @subpackage  Pager
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @version     $Revision$
                    
29 * @version     $Revision$
                    
30 * @link        www.phpdoctrine.org
                    
31 * @since       0.9
                    
388    {
                    
389        $page = intval($page);
                    
390        $this->_page = ($page <= 0) ? 1 : $page;
                    
                
class.jetpack-xmlrpc-server.php https://gitlab.com/Gashler/sg | PHP | 414 lines
                    
1<?php
                    
2
                    
272		list( $post_ids ) = $args;
                    
273		$post_ids = array_map( 'intval', (array) $post_ids );
                    
274		$jp = Jetpack::init();
                    
300		list( $comment_ids ) = $args;
                    
301		$comment_ids = array_map( 'intval', (array) $comment_ids );
                    
302		$jp = Jetpack::init();
                    
389		// needed?
                    
390		require_once ABSPATH . 'wp-admin/includes/admin.php';
                    
391
                    
391
                    
392		require_once JETPACK__PLUGIN_DIR . 'class.json-api.php';
                    
393		$api = WPCOM_JSON_API::init( $method, $url, $post_body );
                    
394		$api->token_details['user'] = $user_details;
                    
395		require_once JETPACK__PLUGIN_DIR . 'class.json-api-endpoints.php';
                    
396
                    
                
module.graphic.jpg.php https://gitlab.com/dsasmita/talita-shop | PHP | 338 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////
                    
9//                                                             //
                    
10// module.graphic.jpg.php                                      //
                    
11// module for analyzing JPEG Image files                       //
                    
11// module for analyzing JPEG Image files                       //
                    
12// dependencies: PHP compiled with --enable-exif (optional)    //
                    
13//               module.tag.xmp.php (optional)                 //
                    
37		if (isset($imageinfo['APP13'])) {
                    
38			// http://php.net/iptcparse
                    
39			// http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/IPTC.html
                    
43					list($iptc_record, $iptc_tagkey) = explode('#', $iptc_key_raw);
                    
44					$iptc_tagkey = intval(ltrim($iptc_tagkey, '0'));
                    
45					foreach ($iptc_values as $key => $value) {
                    
71					} else {
                    
72						$info['warning'][] = 'EXIF parsing only available when '.(GETID3_OS_ISWINDOWS ? 'php_exif.dll enabled' : 'compiled with --enable-exif');
                    
73					}
                    
                
rss.php https://github.com/nope/textpattern.git | PHP | 273 lines
                    
1<?php
                    
2
                    
66			$limit = ($limit) ? $limit : $rss_how_many;
                    
67			$limit = intval(min($limit,max(100,$rss_how_many)));
                    
68
                    
132			$limit = ($limit) ? $limit : $rss_how_many;
                    
133			$limit = intval(min($limit,max(100,$rss_how_many)));
                    
134
                    
260
                    
261		if (version_compare(phpversion(), "5.0.0", ">=")) {
                    
262			$str =  html_entity_decode($toUnicode, ENT_QUOTES, "UTF-8");
                    
                
Standard.php https://github.com/azdcgo/axiscommerce.git | PHP | 229 lines
                    
1<?php
                    
2/**
                    
104                        'item_number_' . $i => $product['sku'],
                    
105                        'quantity_' . $i    => intval($product['quantity']),
                    
106                        'amount_' . $i      => sprintf('%.2f', $product['final_price']),
                    
                
monitoring_result.php https://gitlab.com/Rad1calDreamer/honey | PHP | 394 lines
                    
1<?php
                    
2interface CBitrixCloudMonitoring_Access extends Iterator, ArrayAccess
                    
312	{
                    
313		$time = intval($time);
                    
314		CBitrixCloudOption::getOption("monitoring_expire_time")->setStringValue($time);
                    
                
moderation_forum.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 318 lines
                    
1<?php
                    
2
                    
42	foreach (array('id_article', 'id_breve', 'id_forum', 'id_rubrique', 'id_syndic') as $o) {
                    
43		$ids[$o] = ($x = intval($$o)) ? $x : '';
                    
44	}
                    
84	// l'ajout de documents est-il autorise ?
                    
85	// cf. verifier.php
                    
86	if ($formats = forum_documents_acceptes()) {
                    
87		include_spip('inc/securiser_action');
                    
88		$cle_ajouter_document = calculer_cle_action('ajouter-document-'.join('-',array_map('intval',$ids)));
                    
89	}
                    
125# astuce : mt_rand pour autoriser les hits simultanes
                    
126	while (($alea = time() + @mt_rand()) + intval($arg)
                    
127	       AND @file_exists($f = _DIR_TMP."forum_$alea.lck"))
                    
169		// verifier si on possede la cle (ie on est autorise a poster)
                    
170		// (sinon tant pis) ; cf. charger.php pour la definition de la cle
                    
171		if (_request('cle_ajouter_document') != calculer_cle_action($a = "ajouter-document-$id_article-$id_breve-$id_forum-$id_rubrique-$id_syndic")) {
                    
                
imap_set.php https://github.com/timstephenson/NatureBridge.git | PHP | 375 lines
                    
1<?php
                    
2/**
                    
338        $tagLetter = substr( $this->currentTag, 0, 1 );
                    
339        $tagNumber = intval( substr( $this->currentTag, 1 ) );
                    
340        $tagNumber++;
                    
                
OperationController.php https://bitbucket.org/kdms/sh-magento.git | PHP | 346 lines
                    
1<?php
                    
2/**
                    
135                if (isset($data['skip_attr']) && is_array($data['skip_attr'])) {
                    
136                    $data['entity_attributes']['skip_attr'] = array_filter($data['skip_attr'], 'intval');
                    
137                }
                    
207        if (is_array($ids)) {
                    
208            $ids = array_filter($ids, 'intval');
                    
209            try {
                    
239        if (is_array($ids)) {
                    
240            $ids = array_filter($ids, 'intval');
                    
241
                    
                
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;
                    
307  public function getPagerTotal() {
                    
308    if ($items_per_page = intval($this->getItemsPerPage())) {
                    
309      return ceil($this->total_items / $items_per_page);
                    
358        foreach ($options as $option) {
                    
359          $sanitized_options[intval($option)] = intval($option);
                    
360        }
                    
                
AdminShopGroupController.php https://gitlab.com/staging06/myproject | PHP | 371 lines
                    
1<?php
                    
2/*
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/osl-3.0.php
                    
11* If you did not receive a copy of the license and are unable to
                    
22*  @copyright  2007-2015 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
78                        'title' => $this->l('Default shop'),
                    
79                        'cast' => 'intval',
                    
80                        'type' => 'select',
                    
                
com_eventlist.php https://github.com/Ratmir15/Joomla---formula-of-success.git | PHP | 232 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * $Id: com_eventlist.php 52 2009-10-24 22:35:11Z guilleva $
                    
4 * $LastChangedDate: 2009-10-24 16:35:11 -0600 (Sat, 24 Oct 2009) $
                    
23                parse_str( html_entity_decode($link_query['query']), $link_vars);
                    
24                $id = intval(xmap_com_eventlist::getParam($link_vars,'id',0));
                    
25                $view = xmap_com_eventlist::getParam($link_vars,'view',0);
                    
58		if ( $view == 'categoryevents' ) {
                    
59	                $catid = intval(JArrayHelper::getValue($link_vars,'id',0));
                    
60		}elseif ( $view == 'venueevents' ) {
                    
60		}elseif ( $view == 'venueevents' ) {
                    
61			$venid = intval(JArrayHelper::getValue($link_vars,'id',0));
                    
62		}elseif ( $view != 'venues' && $view != 'categories' ) {  //Do not expand other kind of menu items
                    
107
                    
108			if ( intval($limit) )
                    
109				$params['limit'] = ' LIMIT '.$limit;
                    
                
Date.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 337 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
71                    'date' => isset($value['date']) ? $value['date'] : '',
                    
72                    'year' => isset($value['year']) ? intval($value['year']) : 0,
                    
73                    'month' => isset($value['month']) ? intval($value['month']) : 0,
                    
73                    'month' => isset($value['month']) ? intval($value['month']) : 0,
                    
74                    'day' => isset($value['day']) ? intval($value['day']) : 0,
                    
75                    'hour' => isset($value['hour']) ? intval($value['hour']) : 0,
                    
75                    'hour' => isset($value['hour']) ? intval($value['hour']) : 0,
                    
76                    'minute' => isset($value['minute']) ? intval($value['minute']) : 0,
                    
77                    'day_part' => isset($value['day_part']) ? $value['day_part'] : '',
                    
                
class-wc-rest-order-notes-v1-controller.php https://gitlab.com/campus-academy/krowkaramel | PHP | 439 lines
                    
1<?php
                    
2/**
                    
272
                    
273		if ( empty( $id ) || empty( $note ) || intval( $note->comment_post_ID ) !== intval( $order->get_id() ) ) {
                    
274			return new WP_Error( 'woocommerce_rest_invalid_id', __( 'Invalid resource ID.', 'woocommerce' ), array( 'status' => 404 ) );
                    
305
                    
306		if ( empty( $id ) || empty( $note ) || intval( $note->comment_post_ID ) !== intval( $order->get_id() ) ) {
                    
307			return new WP_Error( 'woocommerce_rest_invalid_id', __( 'Invalid resource ID.', 'woocommerce' ), array( 'status' => 404 ) );
                    
                
edit.php https://github.com/thisduck/wordpress.git | PHP | 294 lines
                    
18if ( $_redirect = intval( max( @$_REQUEST['p'], @$_REQUEST['attachment_id'], @$_REQUEST['page_id'] ) ) ) {
                    
19	wp_redirect( admin_url('edit-comments.php?p=' . $_redirect ) );
                    
20	exit;
                    
29
                    
30	if ( strpos($sendback, 'post.php') !== false )
                    
31		$sendback = admin_url($post_new_file);
                    
113	$parent_file = "edit.php?post_type=$post_type";
                    
114	$submenu_file = "edit.php?post_type=$post_type";
                    
115	$post_new_file = "post-new.php?post_type=$post_type";
                    
163<?php screen_icon(); ?>
                    
164<h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="button add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php
                    
165if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
                    
170if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?>
                    
171<div id="message" class="updated"><p><strong><?php _e('This has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_REQUEST['posted'] ); ?>"><?php _e('View Post'); ?></a> | <a href="<?php echo get_edit_post_link( $_REQUEST['posted'] ); ?>"><?php _e('Edit Post'); ?></a></p></div>
                    
172<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
                    
                
AdminShopGroupController.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 371 lines
                    
1<?php
                    
2/*
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/osl-3.0.php
                    
11* If you did not receive a copy of the license and are unable to
                    
22*  @copyright  2007-2016 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
78                        'title' => $this->l('Default shop'),
                    
79                        'cast' => 'intval',
                    
80                        'type' => 'select',
                    
                
CommentController.class.php https://gitlab.com/xuebutayan/yshop | PHP | 235 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
19
                    
20	     $listid=I('get.id',0,'intval');
                    
21	     $shoplist=M('shoplist');
                    
98		// 商品描述评价
                    
99		$goodscore = intval($comment['goodscore']);
                    
100		switch ($goodscore) {
                    
142		// 服务态度评价
                    
143		$servicescore = intval($comment['servicescore']);
                    
144		switch ($servicescore) {
                    
186		// 物流速度评价
                    
187		$deliveryscore = intval($comment['deliveryscore']);
                    
188		switch ($deliveryscore) {
                    
                
internal-link-aliases.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 374 lines
                    
1<?php
                    
2
                    
34		if (suwp::permalink_mode() != SUWP_PRETTY_PERMALINKS)
                    
35			$this->print_message('error', sprintf(__('Link Mask Generator won&#8217;t work with default or &#8220;pathinfo&#8221; permalinks. Please change your <a href="%s">permalink structure</a> to enable this module&#8217;s functionality.', 'seo-ultimate'), 'options-permalink.php'));
                    
36		
                    
75				
                    
76				$delete = isset($_POST["alias_{$i}_delete"]) ? (intval($_POST["alias_{$i}_delete"]) == 1) : false;
                    
77				
                    
                
edit.php https://github.com/openparallel/wordpress.git | PHP | 294 lines
                    
18if ( isset($_GET['p']) && isset($_GET['attachment_id']) && isset($_GET['page_id']) && $_redirect = intval( max( @$_REQUEST['p'], @$_REQUEST['attachment_id'], @$_REQUEST['page_id'] ) ) ) {
                    
19	wp_redirect( admin_url('edit-comments.php?p=' . $_redirect ) );
                    
20	exit;
                    
29
                    
30	if ( strpos($sendback, 'post.php') !== false )
                    
31		$sendback = admin_url($post_new_file);
                    
113	$parent_file = "edit.php?post_type=$post_type";
                    
114	$submenu_file = "edit.php?post_type=$post_type";
                    
115	$post_new_file = "post-new.php?post_type=$post_type";
                    
163<?php screen_icon(); ?>
                    
164<h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="button add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php
                    
165if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
                    
170if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?>
                    
171<div id="message" class="updated"><p><strong><?php _e('This has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_REQUEST['posted'] ); ?>"><?php _e('View Post'); ?></a> | <a href="<?php echo get_edit_post_link( $_REQUEST['posted'] ); ?>"><?php _e('Edit Post'); ?></a></p></div>
                    
172<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
                    
                
discount.php https://gitlab.com/alexprowars/bitrix | PHP | 233 lines
                    
2
                    
3require_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/sale/general/discount.php');
                    
4
                    
195		{
                    
196			$intTopCount = intval($arNavStartParams["nTopCount"]);
                    
197		}
                    
                
exercise_reminder.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 238 lines
                    
1<?php
                    
2/* For licensing terms, see /license.txt */
                    
11 */
                    
12require_once 'exercise.class.php';
                    
13require_once 'question.class.php';
                    
13require_once 'question.class.php';
                    
14require_once 'answer.class.php';
                    
15
                    
16$language_file = 'exercice';
                    
17require_once '../inc/global.inc.php';
                    
18require_once 'exercise.lib.php';
                    
20if ($_GET['origin']=='learnpath') {
                    
21	require_once '../newscorm/learnpath.class.php';
                    
22	require_once '../newscorm/learnpathItem.class.php';
                    
22	require_once '../newscorm/learnpathItem.class.php';
                    
23	require_once '../newscorm/scorm.class.php';
                    
24	require_once '../newscorm/scormItem.class.php';
                    
                
cheap_shop.php https://github.com/karlom/gameadmin.git | PHP | 379 lines
                    
3include_once SYSDIR_ADMIN_INCLUDE . '/global.php';
                    
4include_once SYSDIR_ADMIN_DICT . '/dict.php';
                    
5include_once SYSDIR_ADMIN_DICT . '/arrItemsAll.php';
                    
45		$cheapShopList[$i] = array(
                    
46								'itemID' => intval( $_GET['itemid'][$i]),
                    
47								'priceOld' => intval($_GET['old_price'][$i]),
                    
100}else if("set" == $action){//设置某个促销
                    
101    $id = intval($_GET['id']);
                    
102    $cheapShopShow['title'] = SS($_GET['title']);
                    
131			
                    
132		$cheapShopShow['start_open_day_time'] = Datatime::dayHourMinuteToTimestamp( intval(SS($_GET['start_open_day'])), intval(SS($_GET['start_open_hour'])), intval(SS($_GET['start_open_minute'])) );
                    
133		$cheapShopShow['end_open_day_time'] = Datatime::dayHourMinuteToTimestamp( intval(SS($_GET['end_open_day'])), intval(SS($_GET['end_open_hour'])), intval(SS($_GET['end_open_minute'])) );
                    
149			$itemArr['bind'] = intval($isbind[$key]);
                    
150			$itemArr['keepTime'] = intval($cheapShopShow['end_time']) - intval($cheapShopShow['start_time']);
                    
151			$itemArr['startTime'] = intval($cheapShopShow['start_time']);
                    
                
Renderer.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 295 lines
                    
1<?php
                    
2/**
                    
133                if ($node->nodeName === "script") {
                    
134                    if ($node->getAttribute("type") === "text/php" ||
                    
135                        $node->getAttribute("language") === "php"
                    
136                    ) {
                    
137                        // Evaluate embedded php scripts
                    
138                        $this->_render_frame("php", $frame);
                    
181            if ($child_z_index !== "auto") {
                    
182                $z_index = intval($child_z_index) + 1;
                    
183            } elseif ($child_style->float !== "none" || $child->is_positionned()) {
                    
281
                    
282                case "php":
                    
283                    $this->_renderers[$type] = new PhpEvaluator($this->_canvas);
                    
                
task.php https://gitlab.com/billyprice1/QuickBox | PHP | 295 lines
                    
1<?php
                    
2require_once( dirname(__FILE__)."/../../php/xmlrpc.php" );
                    
3
                    
168			if(is_null($flags))
                    
169				$flags = intval(file_get_contents($dir.'/flags'));
                    
170			$ret["pid"] = intval(trim(file_get_contents($dir.'/pid')));
                    
175				{
                    
176					$ret["status"] = intval($status);
                    
177					$ret["finish"] = filemtime($dir.'/status');
                    
207			if($req->success() && count($req->val))
                    
208				$ret = intval($req->val[0]);
                    
209		}
                    
222				if(strlen($status))
                    
223					$ret["status"] = intval($status);
                    
224			}
                    
                
memberlist.php https://gitlab.com/bulwye/reliquerunt | PHP | 361 lines
                    
35include($phpbb_root_path . 'extension.inc');
                    
36include($phpbb_root_path . 'common.'.$phpEx);
                    
37
                    
49{
                    
50  redirect(append_sid("login.$phpEx?redirect=memberlist.$phpEx", true));
                    
51}
                    
106$page_title = $lang['Memberlist'];
                    
107include($phpbb_root_path . 'includes/page_header.'.$phpEx);
                    
108
                    
275		$row_color = ( !($i % 2) ) ? $phpbb_theme['td_color1'] : $phpbb_theme['td_color2'];
                    
276		$row_class = ( !($i % 2) ) ? $phpbb_theme['td_class1'] : $phpbb_theme['td_class2'];
                    
277// End PNphpBB2 Module
                    
358
                    
359include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
                    
360
                    
                
CodedInputStream.php https://gitlab.com/remyvianne/krowkaramel | PHP | 382 lines
                    
1<?php
                    
2
                    
123
                    
124        if (PHP_INT_SIZE == 4) {
                    
125            $var = bcmod($var, 4294967296);
                    
131        if ($var > 0x7FFFFFFF) {
                    
132            if (PHP_INT_SIZE === 8) {
                    
133                $var = $var | (0xFFFFFFFF << 32);
                    
138
                    
139        $var = intval($var);
                    
140        return true;
                    
150
                    
151        if (PHP_INT_SIZE == 4) {
                    
152            $high = 0;
                    
253        $high = unpack('V', $data)[1];
                    
254        if (PHP_INT_SIZE == 4) {
                    
255            $var = GPBUtil::combineInt32ToInt64($high, $low);
                    
                
site-info.php https://gitlab.com/webkod3r/tripolis | PHP | 222 lines
                    
10/** Load WordPress Administration Bootstrap */
                    
11require_once( dirname( __FILE__ ) . '/admin.php' );
                    
12
                    
52
                    
53$parsed_scheme = parse_url( $details->siteurl, PHP_URL_SCHEME );
                    
54$is_main_site = is_main_site( $id );
                    
144<h1 id="edit-site"><?php echo $title; ?></h1>
                    
145<p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id, '/' ) ); ?>"><?php _e( 'Visit' ); ?></a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>"><?php _e( 'Dashboard' ); ?></a></p>
                    
146<h2 class="nav-tab-wrapper nav-tab-small wp-clearfix">
                    
168	<?php wp_nonce_field( 'edit-site' ); ?>
                    
169	<input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
                    
170	<table class="form-table">
                    
209			<?php foreach ( $attribute_fields as $field_key => $field_label ) : ?>
                    
210				<label><input type="checkbox" name="blog[<?php echo $field_key; ?>]" value="1" <?php checked( (bool) $details->$field_key, true ); disabled( ! in_array( $details->$field_key, array( 0, 1 ) ) ); ?> />
                    
211				<?php echo $field_label; ?></label><br/>
                    
                
filterlib.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 365 lines
                    
1<?php // $Id: filterlib.php,v 1.24.10.4 2009/02/18 11:02:11 stronk7 Exp $
                    
2      // Contains special functions that are particularly useful to filters
                    
111    /// Avoid integers < 1000 to be linked. See bug 1446.
                    
112        $intcurrent = intval($linkobject->phrase);
                    
113        if (!empty($intcurrent) && strval($intcurrent) == $linkobject->phrase && $intcurrent < 1000) {
                    
                
editar_factura_prov.php https://gitlab.com/cosouth.battle/sartinofi | PHP | 434 lines
                    
1<?php
                    
2
                    
2
                    
3require_model('asiento.php');
                    
4require_model('asiento_factura.php');
                    
4require_model('asiento_factura.php');
                    
5require_model('divisa.php');
                    
6require_model('fabricante.php');
                    
6require_model('fabricante.php');
                    
7require_model('forma_pago.php');
                    
8require_model('proveedor.php');
                    
8require_model('proveedor.php');
                    
9require_model('recibo_proveedor.php');
                    
10
                    
236      $serie = $this->serie->get($this->factura->codserie);
                    
237      $numlineas = intval($_POST['numlineas']);
                    
238      $lineas = $this->factura->get_lineas();
                    
                
MediaTransformOutput.php https://github.com/daevid/MWFork.git | PHP | 269 lines
                    
1<?php
                    
2/**
                    
230		$this->textMsg = wfMessage( $msg )->rawParams( $htmlArgs )->text();
                    
231		$this->width = intval( $width );
                    
232		$this->height = intval( $height );
                    
                
gadgets.class.php https://github.com/iconifyit/SkyBlue-1.1.git | PHP | 265 lines
                    
1<?php
                    
2
                    
257        {
                    
258            $Core->ExitEvent(intval(unlink($file)), $this->redirect);
                    
259        } else {
                    
                
component.php https://gitlab.com/Rad1calDreamer/honey | PHP | 319 lines
                    
2if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
                    
3$arParams["IBLOCK_ID"] = intval($arParams["IBLOCK_ID"]);
                    
4
                    
4
                    
5$arParams["INTERVAL"] = intval($arParams["INTERVAL"]);
                    
6
                    
6
                    
7$arParams["ELEMENTS_PER_STEP"] = intval($arParams["ELEMENTS_PER_STEP"]);
                    
8if($arParams["ELEMENTS_PER_STEP"] < 0)
                    
108		$start_time = time();
                    
109		if($fp = fopen("php://output", "ab"))
                    
110		{
                    
303{
                    
304	$this->IncludeComponentLang(".parameters.php");
                    
305	if(
                    
                
agent.php https://gitlab.com/Rad1calDreamer/honey | PHP | 327 lines
                    
1<?php
                    
2/**
                    
14	function AddAgent(
                    
15		$name, // PHP function name
                    
16		$module = "", // module
                    
115		global $DB;
                    
116		$id = intval($id);
                    
117
                    
141
                    
142		$ID = intval($ID);
                    
143
                    
166	{
                    
167		return CAgent::GetList(Array(), Array("ID"=>IntVal($ID)));
                    
168	}
                    
227				case "USER_ID":
                    
228					$arSqlSearch[] = "A.USER_ID ".(IntVal($val)<=0?"IS NULL":"=".IntVal($val));
                    
229					break;
                    
                
messages.php https://github.com/Kunena/Kunena-Forum.git | PHP | 253 lines
                    
29			<div class="card card-block bg-faded p-2">
                    
30				<form action="<?php echo KunenaRoute::_('administrator/index.php?option=com_kunena&view=trash') ?>"
                    
31					  method="post" id="adminForm"
                    
36					<input type="hidden" name="filter_order"
                    
37						   value="<?php echo intval($this->state->get('list.ordering')) ?>"/>
                    
38					<input type="hidden" name="filter_order_Dir"
                    
182											<label for="filter_time" class="element-invisible"><?php echo Text::_('COM_KUNENA_FIELD_LABEL_SEARCHIN'); ?></label>
                    
183											<input class="input-block-level input-filter form-control" type="text" name="filter_time" id="filter_time" placeholder="<?php echo Text::_('COM_KUNENA_SYS_BUTTON_FILTERSUBMIT') ?>" value="<?php echo $this->filterDate; ?>" title="<?php echo Text::_('COM_KUNENA_SYS_BUTTON_FILTERSUBMIT') ?>" />
                    
184											*/ ?>
                    
210										<td>
                    
211											<a href="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=topic&catid=' . $row->getTopic()->category_id . '&id=' . $row->getTopic()->id . '&mesid=' . $row->id . '&Itemid=' . $itemid . '#' . $row->id); ?>"
                    
212											   target="_blank"><?php echo $this->escape($row->subject); ?></a></td>
                    
213										<td>
                    
214											<a href="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=topic&catid=' . $row->getTopic()->category_id . '&id=' . $row->getTopic()->id . '&Itemid=' . $itemid); ?>"
                    
215											   target="_blank"><?php echo $this->escape($row->getTopic()->subject); ?></a>
                    
                
CMB2_Type_File_Base.php https://gitlab.com/ebrjose/comcebu | PHP | 221 lines
                    
1<?php
                    
2/**
                    
131		</script>
                    
132		<?php
                    
133	}
                    
155		if ( is_array( $img_size ) ) {
                    
156			$data['width']  = intval( $img_size[0] );
                    
157			$data['height'] = intval( $img_size[1] );
                    
178			// Get image dimensions from named sizes
                    
179			$data['width']  = intval( $image_sizes[ $img_size ]['width'] );
                    
180			$data['height'] = intval( $image_sizes[ $img_size ]['height'] );
                    
                
client.php https://github.com/jshaw86/core.git | PHP | 328 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
261		{
                    
262			$corrected_received_age = max($apparent_age, intval( (string) $age));
                    
263		}
                    
                
Manufacturer.php https://github.com/vincent/theinvertebrates.git | PHP | 327 lines
                    
1<?php
                    
2
                    
133		{
                    
134			$this->id = intval($id);
                    
135			$this->id_address = self::getManufacturerAddress();
                    
165		LEFT JOIN `'._DB_PREFIX_.'manufacturer_lang` ml ON (m.`id_manufacturer` = ml.`id_manufacturer` AND ml.`id_lang` = '.intval($id_lang).')';
                    
166		$sql.= ' ORDER BY m.`name` ASC'.($p ? ' LIMIT '.((intval($p) - 1) * intval($n)).','.intval($n) : '');
                    
167		$manufacturers = Db::getInstance()->ExecuteS($sql);
                    
226		if (isset($result['id_manufacturer']))
                    
227			return intval($result['id_manufacturer']);
                    
228		return false;
                    
281		ORDER BY '.(($orderBy == 'id_product') ? 'p.' : '').'`'.pSQL($orderBy).'` '.pSQL($orderWay).' 
                    
282		LIMIT '.((intval($p) - 1) * intval($n)).','.intval($n);
                    
283		$result = Db::getInstance()->ExecuteS($sql);
                    
321		LEFT JOIN `'._DB_PREFIX_.'state` AS s ON (s.`id_state` = a.`id_state`)
                    
322		WHERE `id_manufacturer` = '.intval($this->id).'
                    
323		AND a.`deleted` = 0');
                    
                
locallib.php https://github.com/galitush2005/RTL-BIDI-Hebrew-Moodle-Plugins.git | PHP | 261 lines
                    
73            if ($referencelevelkeys[$child->intvalue] == $child->id){
                    
74                $agree[$child->intvalue] = @$agree[$child->intvalue] + 1;
                    
75            }
                    
76            else{
                    
77                $disagree[$child->intvalue] = @$disagree[$child->intvalue] + 1;
                    
78            }
                    
162                $down = ($i < count($subs) - 1) ? "<a href=\"view.php?id={$cm->id}&amp;operator=hierarchize&amp;what=down&amp;item={$sub->odid}\"><img src=\"{$CFG->pixpath}/t/down.gif\"></a>" : '' ;
                    
163                $left = ($indent > 25) ? "<a href=\"view.php?id={$cm->id}&amp;operator=hierarchize&amp;what=left&amp;item={$sub->odid}\"><img src=\"{$CFG->pixpath}/t/left.gif\"></a>" : '' ;
                    
164                if ((isset($configdata->maxarity) && $configdata->maxarity && $subscount >= $configdata->maxarity) || (isset($configdata->maxlevels) && $configdata->maxlevels && $level >= $configdata->maxlevels)){
                    
174                                <td width="10">
                    
175                                    <?php echo $left ?>
                    
176                                 </td>
                    
192                    <td style="text-align : right; padding-right : <?php echo $indent - 23; ?>px" class="response">
                    
193                        <b><?php echo $levelprefix ?>.</b> <?php echo $sub->response; ?>
                    
194                    </td>
                    
                
reqTcAssign.php https://github.com/viglesiasce/testlink.git | PHP | 329 lines
                    
1<?php
                    
2/** 
                    
4 *  
                    
5 * @filesource $RCSfile: reqTcAssign.php,v $
                    
6 * @version $Revision: 1.21 $
                    
15**/
                    
16require_once("../../config.inc.php");
                    
17require_once("common.php");
                    
17require_once("common.php");
                    
18require_once('requirements.inc.php');
                    
19testlinkInitPage($db,false,false,"checkRights");
                    
135	}
                    
136	else if(isset($_SESSION['currentSrsId']) && intval($_SESSION['currentSrsId']) > 0)
                    
137	{
                    
137	{
                    
138		$args->idReqSpec = intval($_SESSION['currentSrsId']);
                    
139	}
                    
                
Orders.php https://gitlab.com/campus-academy/krowkaramel | PHP | 278 lines
                    
1<?php
                    
2/**
                    
61			$partial_number = trim( $request['number'] );
                    
62			$limit          = intval( $args['posts_per_page'] );
                    
63			$order_ids      = $wpdb->get_col(
                    
94			$wpdb->prepare(
                    
95				// phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared
                    
96				"SELECT
                    
112			GROUP BY product_id
                    
113			", // phpcs:enable WordPress.DB.PreparedSQL.InterpolatedNotPrepared
                    
114				$order_id
                    
134			$wpdb->prepare(
                    
135				// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
                    
136				"SELECT * FROM {$customer_lookup_table} WHERE customer_id = ( %d )",
                    
                
Requests.php https://gitlab.com/nicolerey/PPLI-payroll | PHP | 228 lines
                    
1<?php
                    
2
                    
192
                    
193        if(intval($duration) === 1 && in_array($this->input->post('halfday'), ['am', 'pm'])){
                    
194        	$duration = 0.5;
                    
                
security_antivirus.php https://gitlab.com/alexprowars/bitrix | PHP | 235 lines
                    
3
                    
4require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
5
                    
60
                    
61	$antivirus_timeout = intval($_POST["antivirus_timeout"]);
                    
62	if($antivirus_timeout <= 0)
                    
75	else
                    
76		LocalRedirect("/bitrix/admin/security_antivirus.php?lang=".LANGUAGE_ID.$returnUrl."&".$tabControl->ActiveTabParam());
                    
77}
                    
95{
                    
96	if(preg_match("/cgi/i", php_sapi_name()))
                    
97		$warningMessage = GetMessage("SEC_ANTIVIRUS_PREBODY_NOTFOUND_CGI", array("#PATH#" => $_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/security/tools/start.php"));
                    
98	else
                    
99		$warningMessage = GetMessage("SEC_ANTIVIRUS_PREBODY_NOTFOUND", array("#PATH#" => $_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/security/tools/start.php"));
                    
100}
                    
                
component.php https://gitlab.com/alexprowars/bitrix | PHP | 296 lines
                    
1<?php
                    
2
                    
230		{
                    
231			$strHaving = "HAVING COUNT(*) > ".intval($arFilter["COUNT"])."";
                    
232		}
                    
                
control_factory.php https://gitlab.com/slondon/fortissimo | PHP | 231 lines
                    
1<?php
                    
2///////////////////////////////////////////////////////////////////////////
                    
3
                    
4require_once 'lib/action_factory.php';
                    
5
                    
157                    GuiTextFieldDef::initial_value => strval($initial_value),
                    
158                    GuiTextFieldDef::numeric => intval($numeric),
                    
159                    GuiTextFieldDef::password => intval($password),
                    
159                    GuiTextFieldDef::password => intval($password),
                    
160                    GuiTextFieldDef::has_osk => intval($has_osk),
                    
161                    GuiTextFieldDef::always_active => intval($always_active),
                    
161                    GuiTextFieldDef::always_active => intval($always_active),
                    
162                    GuiTextFieldDef::width => intval($width),
                    
163                    GuiTextFieldDef::apply_action => $apply_action,
                    
                
default_ban.php https://github.com/draganz/Kunena-2.0.git | PHP | 161 lines
                    
20		<div class="user-default_ban-kbox kbox kbox-full kbox-color kbox-border kbox-border_radius kbox-border_radius-vchild kbox-shadow kbox-animate">
                    
21			<form action="<?php echo KunenaRoute::_('index.php?option=com_kunena') ?>" id="kform-ban" name="kformban" method="post">
                    
22				<input type="hidden" name="view" value="user" />
                    
23				<input type="hidden" name="task" value="ban" />
                    
24				<input type="hidden" name="userid" value="<?php echo intval($this->profile->userid); ?>" />
                    
25				<?php echo JHTML::_( 'form.token' ); ?>
                    
67						<div class="kform-field">
                    
68							<span class="hasTip" title="<?php echo JText::_('COM_KUNENA_BAN_EXPIRETIME') ?>::<?php echo JText::_('COM_KUNENA_BAN_STARTEXPIRETIME_DESC_LONG') ?>">
                    
69								<?php echo JHTML::_('calendar', $this->escape($this->baninfo->expiration), 'expiration', 'expiration', '%Y-%m-%d',array('onclick'=>'$(\'expiration\').setStyle(\'display\')')); ?>
                    
93						<div class="kform-field">
                    
94							<textarea id="reason_private" name="reason_private" class="ktxtarea required hasTip" title="<?php echo JText::_('COM_KUNENA_BAN_PRIVATEREASON') ?> :: <?php echo JText::_('COM_KUNENA_BAN_PRIVATEREASON_DESC') ?>"><?php echo $this->escape($this->baninfo->reason_public) ?></textarea>
                    
95
                    
106						<div class="kform-field">
                    
107							<textarea id="comment" name="comment" class="ktxtarea required hasTip" title="<?php echo JText::_('COM_KUNENA_BAN_ADDCOMMENT') ?> :: <?php echo JText::_('COM_KUNENA_BAN_ADDCOMMENT_DESC') ?>"><?php echo $this->escape($this->baninfo->reason_private) ?></textarea>
                    
108						</div>
                    
                
Serializer.php https://gitlab.com/yousafsyed/easternglamor | PHP | 362 lines
                    
1<?php
                    
2/**
                    
23/** Zend_Amf_Constants */
                    
24#require_once 'Zend/Amf/Constants.php';
                    
25
                    
26/** @see Zend_Amf_Parse_Serializer */
                    
27#require_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"
                    
114                    default:
                    
115                        #require_once 'Zend/Amf/Exception.php';
                    
116                        throw new Zend_Amf_Exception("Unknown Type Marker: " . $markerType);
                    
                
FileValidator.php https://gitlab.com/martinstti/silex-microframework-rest | PHP | 329 lines
                    
1<?php
                    
2
                    
17use Symfony\Component\Validator\Constraint;
                    
18use Symfony\Component\Validator\ConstraintValidator;
                    
19use Symfony\Component\Validator\Exception\UnexpectedTypeException;
                    
23 */
                    
24class FileValidator extends ConstraintValidator
                    
25{
                    
                
FunctionNode.php https://bitbucket.org/prauscher/att.git | PHP | 288 lines
                    
1<?php
                    
2
                    
265            // Just a b
                    
266            return array(0, intval((string) $s));
                    
267        }
                    
272        } elseif ('-' == $a || '+' == $a) {
                    
273            $a = intval($a.'1');
                    
274        } else {
                    
274        } else {
                    
275            $a = intval($a);
                    
276        }
                    
280        } elseif ('-' == $b || '+' == $b) {
                    
281            $b = intval($b.'1');
                    
282        } else {
                    
282        } else {
                    
283            $b = intval($b);
                    
284        }
                    
                
PaginatorComponent.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 428 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://cakephp.org CakePHP(tm) Project
                    
14 * @package       Cake.Controller.Component
                    
14 * @package       Cake.Controller.Component
                    
15 * @since         CakePHP(tm) v 2.0
                    
16 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
68 * @package       Cake.Controller.Component
                    
69 * @link http://book.cakephp.org/2.0/en/core-libraries/components/pagination.html
                    
70 */
                    
181
                    
182		if (intval($page) < 1) {
                    
183			$page = 1;
                    
                
lib.php https://github.com/nadavkav/MoodleTAO.git | PHP | 230 lines
                    
1<?php  // $Id: lib.php,v 1.7.2.4 2008/06/20 20:54:37 agrabs Exp $
                    
2defined('FEEDBACK_INCLUDE_TEST') OR die('not allowed');
                    
64
                    
65    function get_printval($item, $value) {
                    
66        if(!isset($value->value)) return '';
                    
146    ?>
                    
147        <td <?php echo $highlight;?> valign="top" align="<?php echo $align;?>">
                    
148            <?php 
                    
164        </td>
                    
165        <td valign="top" align="<?php echo $align;?>">
                    
166    <?php
                    
174    ?>
                    
175            <input type="text" name="<?php echo $item->typ.'_'.$item->id; ?>"
                    
176                                    size="10"
                    
205            default:
                    
206                if(intval($value) >= $range_from AND intval($value) <= $range_to) return true;
                    
207                break;
                    
                
images_lib.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 339 lines
                    
1<?php
                    
2/***************************************************************************\
                    
15function multiple_de_trois($val) {
                    
16	return intval(round($val / 3) * 3);
                    
17}
                    
293// returns a GD image resource
                    
294// script de php.net lourdement corrig'e
                    
295// (le bicubic deconnait completement,
                    
                
recherche_to_array.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 321 lines
                    
1<?php
                    
2
                    
113			$compteur = preg_match_all(',`.*`,U', $key, $ignore);
                    
114			$mult = intval(sqrt(1000/$compteur))/10;
                    
115
                    
220	AND (!isset($t['score']) OR $t['score']>0)) {
                    
221		$id = intval($t[$_id_table]);
                    
222
                    
                
FunctionNode.php https://bitbucket.org/rberthier/symplenetwork.git | PHP | 290 lines
                    
1<?php
                    
2
                    
267
                    
268            return array(0, intval((string) $s));
                    
269        }
                    
274        } elseif ('-' == $a || '+' == $a) {
                    
275            $a = intval($a.'1');
                    
276        } else {
                    
276        } else {
                    
277            $a = intval($a);
                    
278        }
                    
282        } elseif ('-' == $b || '+' == $b) {
                    
283            $b = intval($b.'1');
                    
284        } else {
                    
284        } else {
                    
285            $b = intval($b);
                    
286        }
                    
                
NoticeController.php https://gitlab.com/wuhang2003/phpwind | PHP | 260 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * @fileName: NoticeController.php
                    
7 * @author: yuliang<yuliang.lyl@alibaba-inc.com>
                    
7 * @author: yuliang<yuliang.lyl@alibaba-inc.com>
                    
8 * @license: http://www.phpwind.com
                    
9 * @version: $Id
                    
35         <pre>
                    
36         /index.php?m=native&c=notice&type=(reply|system)&page=1&_json=1
                    
37         type:10 未读通知;0 所有系统消息
                    
51                
                    
52		$page = intval($page);
                    
53		$page < 1 && $page = 1;
                    
144            $unreadCount = $this->_getNoticeDs()->getUnreadNoticeCount($this->uid);
                    
145            $perpage = intval($unreadCount) ? intval($unreadCount) : 20;
                    
146            $noticeList = $this->_getNoticeDs()->getNoticesOrderByRead($this->uid, $perpage);//message.PwMessageNotices;根据用户UID获取通知列表 按未读升序、更新时间倒序
                    
                
add_sessions_to_usergroup.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 387 lines
                    
1<?php
                    
2/* For licensing terms, see /license.txt */
                    
30$interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('PlatformAdmin'));
                    
31$interbreadcrumb[]=array('url' => 'usergroups.php','name' => get_lang('Classes'));
                    
32
                    
184?>
                    
185<form name="formulaire" method="post" action="<?php echo api_get_self(); ?>?id=<?php echo $id; if(!empty($_GET['add'])) echo '&add=true' ; ?>" style="margin:0px;" <?php if($ajax_search){echo ' onsubmit="valide();"';}?>>
                    
186<?php
                    
233<td align="center">
                    
234<?php echo get_lang('FirstLetterSessions'); ?> :
                    
235     <select name="firstLetterUser" onchange = "xajax_search_sessions(this.value,'multiple')" >
                    
355
                    
356    //xhr_object.open("GET", "loadUsersInSelect.ajax.php?id_session=<?php echo $id_session ?>&letter="+select.options[select.selectedIndex].text, false);
                    
357    xhr_object.open("POST", "loadUsersInSelect.ajax.php");
                    
385</script>
                    
386<?php
                    
387Display::display_footer();
                    
                
modconnectorresponse.class.php https://github.com/francisreboucas/revolution.git | PHP | 203 lines
                    
1<?php
                    
2/**
                    
6 */
                    
7require_once MODX_CORE_PATH . 'model/modx/modresponse.class.php';
                    
8/**
                    
104                'total' => (isset($this->body['total']) && $this->body['total'] > 0)
                    
105                        ? intval($this->body['total'])
                    
106                        : (isset($this->body['errors'])
                    
151    /**
                    
152     * Converts PHP to JSON with JavaScript literals left in-tact.
                    
153     *
                    
157     * @access public
                    
158     * @param mixed $data The PHP data to be converted.
                    
159     * @return string The extended JSON-encoded string.
                    
                
medias_autoriser.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 238 lines
                    
1<?php
                    
2
                    
37
                    
38	if (!$id_document=intval($id))
                    
39		return false;
                    
43	if (!isset($options['document']) OR !$document = $options['document'])
                    
44		$document = sql_fetsel('*','spip_documents','id_document='.intval($id_document));
                    
45	
                    
113	  return $m[$q][$id];
                    
114  $s = sql_getfetsel("statut", "spip_documents", "id_document=".intval($id));
                    
115	// les admins ont le droit de modifier tous les documents existants
                    
128
                    
129		$s = sql_select("id_objet,objet", "spip_documents_liens", "id_document=".intval($id));
                    
130		while ($t = sql_fetch($s)) {
                    
155function autoriser_document_supprimer($faire, $type, $id, $qui, $opt){
                    
156	if (!intval($id)
                    
157		OR !$qui['id_auteur']
                    
                
order-detail.tpl https://gitlab.com/ptisky/API_prestashop | Smarty Template | 297 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 Registered Trademark & Property of PrestaShop SA
                    
37		{/if}
                    
38		<a data-icon="refresh" data-role="button" data-theme="e" href="{$link->getPageLink({$type_order}, true, NULL, "submitReorder&id_order={$order->id|intval}")|escape:'html'}" title="{l s='Reorder'}" data-ajax="false">
                    
39		{l s='Reorder'}
                    
53		<img src="{$img_dir}icon/pdf.gif" alt="" class="icon" />
                    
54		<a href="{$link->getPageLink('pdf-invoice', true)}?id_order={$order->id|intval}{if $is_guest}&secure_key={$order->secure_key}{/if}" data-ajax="false">{l s='Download your invoice as a PDF file.'}</a>
                    
55	</li>
                    
226			<input type="submit" data-theme="a" value="{l s='Make an RMA slip'}" name="submitReturnMerchandise" class="button_large" />
                    
227			<input type="hidden" class="hidden" value="{$order->id|intval}" name="id_order" />
                    
228		</fieldset>
                    
                
menu.php https://github.com/chalosalvador/GDS.git | PHP | 299 lines
                    
1<?php
                    
2/**
                    
176				'ordering',
                    
177				array('list.attr' => 'class="inputbox" size="1"', 'list.select' => intval($row->ordering))
                    
178			);
                    
226		// Second pass - get an indent list of the items
                    
227		$list = JHtmlMenu::TreeRecurse(intval($mitems[0]->parent_id), '', array(), $children, 9999, 0, 0);
                    
228
                    
                
Serializer.php https://github.com/kervin/kyzstudio.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Serializer.php 21968 2010-04-22 03:53:34Z matthew $
                    
21 */
                    
23/** Zend_Amf_Constants */
                    
24#require_once 'Zend/Amf/Constants.php';
                    
25
                    
26/** @see Zend_Amf_Parse_Serializer */
                    
27#require_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" 
                    
                
user.php https://bitbucket.org/dgough/annamaria-daneswood-25102012.git | PHP | 285 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* @version $Id: user.php 5995 2006-12-13 02:52:43Z friesengeist $
                    
4* @package Joomla
                    
6* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
                    
7* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
                    
8* Joomla! is free software. This version may have been modified pursuant
                    
11* other free or open source software licenses.
                    
12* See COPYRIGHT.php for copyright notices and details.
                    
13*/
                    
32		if ( $_VERSION->RESTRICT == 1 ) {
                    
33			mosRedirect( 'index.php?mosmsg=Functionality Restricted' );
                    
34		} else {
                    
43	case 'cancel':
                    
44		mosRedirect( 'index.php' );
                    
45		break;
                    
                
ssp.class.php https://gitlab.com/ealexis.t/trends | PHP | 390 lines
                    
1<?php
                    
2
                    
19// REMOVE THIS BLOCK - used for DataTables test environment only!
                    
20$file = $_SERVER['DOCUMENT_ROOT'].'/datatables/mysql.php';
                    
21if ( is_file( $file ) ) {
                    
73		if ( isset($request['start']) && $request['length'] != -1 ) {
                    
74			$limit = "LIMIT ".intval($request['start']).", ".intval($request['length']);
                    
75		}
                    
99				// Convert the column index into the column data property
                    
100				$columnIdx = intval($request['order'][$i]['column']);
                    
101				$requestColumn = $request['columns'][$columnIdx];
                    
244		return array(
                    
245			"draw"            => intval( $request['draw'] ),
                    
246			"recordsTotal"    => intval( $recordsTotal ),
                    
246			"recordsTotal"    => intval( $recordsTotal ),
                    
247			"recordsFiltered" => intval( $recordsFiltered ),
                    
248			"data"            => self::data_output( $columns, $data )
                    
                
site-users.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 331 lines
                    
41
                    
42$id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
                    
43
                    
259
                    
260/** This filter is documented in wp-admin/network/site-users.php */
                    
261if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?>
                    
261if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?>
                    
262<h3 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h3>
                    
263<form action="site-users.php?action=adduser" id="adduser" method="post">
                    
297<h3 id="add-new-user"><?php _e( 'Add New User' ); ?></h3>
                    
298<form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post">
                    
299	<input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
                    
329</div>
                    
330<?php
                    
331require( ABSPATH . 'wp-admin/admin-footer.php' );
                    
                
admin.functions.php https://gitlab.com/hocviettut/to-giac-tp | PHP | 255 lines
                    
1<?php
                    
2
                    
38	{
                    
39		$id = intval( $row['id'] );
                    
40
                    
53			{
                    
54				$admins2 = array_map( 'intval', explode( '/', $a ) );
                    
55
                    
83		++$weight;
                    
84		$sql = 'UPDATE ' . NV_PREFIXLANG . '_' . $module_data . '_report_type SET weight=' . $weight . ' WHERE rid=' . intval( $row['rid'] );
                    
85		$db->query( $sql );
                    
99	// global $db, $module_data;
                    
100	// $rid = intval( $rid );
                    
101	// if( $rid > 0 )
                    
158				'numnews' => $numnews,
                    
159				'url_edit' => NV_BASE_ADMINURL . 'index.php?' . NV_LANG_VARIABLE . '=' . NV_LANG_DATA . '&amp;' . NV_NAME_VARIABLE . '=' . $module_name . '&amp;' . NV_OP_VARIABLE . '=' . $op . '&amp;rid=' . $row['rid'] . '#edit'
                    
160			) );
                    
                
Teams.php https://github.com/omegaup/omegaup.git | PHP | 268 lines
                    
1<?php
                    
2/** ************************************************************************ *
                    
44                null :
                    
45                intval($Teams->team_group_id)
                    
46            ),
                    
49                null :
                    
50                intval($Teams->identity_id)
                    
51            ),
                    
51            ),
                    
52            intval($Teams->team_id),
                    
53        ];
                    
204                ', ' .
                    
205                intval($filasPorPagina)
                    
206            );
                    
248                null :
                    
249                intval($Teams->team_group_id)
                    
250            ),
                    
                
posts.php https://gitlab.com/Ltaimao/wecenter | PHP | 514 lines
                    
1<?php
                    
2/*
                    
38				case 'article':
                    
39					$result = $this->fetch_row('article', 'id = ' . intval($post_id));
                    
40
                    
43				case 'project':
                    
44					$result = $this->fetch_row('project', 'id = ' . intval($post_id));
                    
45
                    
107
                    
108		if ($posts_index = $this->fetch_all('posts_index', "post_id = " . intval($post_id) . " AND post_type = '" . $this->quote($post_type) . "'"))
                    
109		{
                    
111
                    
112			$this->update('posts_index', $data, 'id = ' . intval($post_index['id']));
                    
113
                    
115			{
                    
116				$this->delete('posts_index', "post_id = " . intval($post_id) . " AND post_type = '" . $this->quote($post_type) . "' AND id != " . intval($post_index['id']));
                    
117			}
                    
                
component.php https://gitlab.com/alexprowars/bitrix | PHP | 304 lines
                    
54	$arParams["PAGE_NAVIGATION_TEMPLATE"] = trim($arParams["PAGE_NAVIGATION_TEMPLATE"]);
                    
55	$arParams["PAGE_NAVIGATION_WINDOW"] = intval(intVal($arParams["PAGE_NAVIGATION_WINDOW"]) > 0 ? $arParams["PAGE_NAVIGATION_WINDOW"] : 11);
                    
56	$arParams["DATE_FORMAT"] = trim(empty($arParams["DATE_FORMAT"]) ? $DB->DateFormatToPHP(CSite::GetDateFormat("SHORT")) : $arParams["DATE_FORMAT"]);
                    
56	$arParams["DATE_FORMAT"] = trim(empty($arParams["DATE_FORMAT"]) ? $DB->DateFormatToPHP(CSite::GetDateFormat("SHORT")) : $arParams["DATE_FORMAT"]);
                    
57	$arParams["TOPICS_PER_PAGE"] = intval(intVal($arParams["TOPICS_PER_PAGE"]) > 0 ? $arParams["TOPICS_PER_PAGE"] : COption::GetOptionString("forum", "TOPICS_PER_PAGE", "10"));
                    
58/***************** STANDART ****************************************/
                    
61	if ($arParams["CACHE_TYPE"] == "Y" || ($arParams["CACHE_TYPE"] == "A" && COption::GetOptionString("main", "component_cache_on", "Y") == "Y"))
                    
62		$arParams["CACHE_TIME"] = intval($arParams["CACHE_TIME"]);
                    
63	else
                    
76$arResult["FORUMS"] = array();
                    
77$arResult["GROUPS_FORUMS"] = array(); // declared in result_modifier.php
                    
78$arResult["GROUPS"] = CForumGroup::GetByLang(LANGUAGE_ID);
                    
80$aSort = array("RANK"=>"DESC", "DATE_CHANGE"=>"DESC");
                    
81$cache = new CPHPCache();
                    
82$cache_path_main = str_replace(array(":", "//"), "/", "/".SITE_ID."/".$componentName."/");
                    
                
user.php https://gitlab.com/sihabudinahmad/asppi | PHP | 556 lines
                    
1<?php
                    
2
                    
302			// convert values to int
                    
303			$field['value'] = array_map('intval', $field['value']);
                    
304			
                    
499		// convert values to int
                    
500		$value = array_map('intval', $value);
                    
501		
                    
                
Visitor.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 345 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 */
                    
143        $configValue = Mage::getStoreConfig('customer/online_customers/online_minutes_interval');
                    
144        return intval($configValue) > 0
                    
145            ? intval($configValue)
                    
309        $customerId = $data->getCustomerId();
                    
310        if( intval($customerId) <= 0 ) {
                    
311            return $this;
                    
325        $quoteId = $data->getQuoteId();
                    
326        if( intval($quoteId) <= 0 ) {
                    
327            return $this;
                    
                
Keranjang.php https://gitlab.com/alfiantaufani/koperasi-tugas-kuliah | PHP | 230 lines
                    
1<?php
                    
2header('Access-Control-Allow-Origin: *');
                    
89                        if ($create) {
                    
90                            require APPPATH . '/views/vendor/autoload.php';
                    
91
                    
141                        if ($create) {
                    
142                            require APPPATH . '/views/vendor/autoload.php';
                    
143
                    
185    {
                    
186        $draw = intval($this->input->get("draw"));
                    
187		$start = intval($this->input->get("start"));
                    
187		$start = intval($this->input->get("start"));
                    
188		$length = intval($this->input->get("length"));
                    
189
                    
                
Stocks.php https://gitlab.com/ilyales/vigma | PHP | 416 lines
                    
118		require_once Yii::app()->basePath . '/extensions/phpexcel/PHPExcel.php';
                    
119		require_once Yii::app()->basePath . '/extensions/phpexcel/PHPExcel/IOFactory.php';
                    
120		
                    
120		
                    
121		$startRow = intval($stockCityTemplate['startrownum']);
                    
122		$chodNameClm = intval($stockCityTemplate['chodnameclm']);
                    
122		$chodNameClm = intval($stockCityTemplate['chodnameclm']);
                    
123		$val1Clm = intval($stockCityTemplate['val1clm']);
                    
124		$val2Clm = intval($stockCityTemplate['val2clm']);
                    
124		$val2Clm = intval($stockCityTemplate['val2clm']);
                    
125		$val3Clm = intval($stockCityTemplate['val3clm']);
                    
126		$price1Clm = intval($stockCityTemplate['price1clm']);
                    
127		$price2Clm = intval($stockCityTemplate['price2clm']);
                    
128		$price3Clm = intval($stockCityTemplate['price3clm']);
                    
129
                    
                
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"
                    
                
post.php https://github.com/alx/pressmark.git | PHP | 263 lines
                    
35		if ( isset($_POST['saveasdraft']) )
                    
36			$location = 'sidebar.php?a=c';
                    
37		elseif ( isset($_POST['publish']) )
                    
80$sendback = wp_get_referer();
                    
81if ( strpos($sendback, 'post.php') !== false || strpos($sendback, 'post-new.php') !== false )
                    
82	$sendback = admin_url('edit.php');
                    
193case 'trash':
                    
194	$post_id = isset($_GET['post']) ? intval($_GET['post']) : intval($_POST['post_ID']);
                    
195	check_admin_referer('trash-post_' . $post_id);
                    
209case 'untrash':
                    
210	$post_id = isset($_GET['post']) ? intval($_GET['post']) : intval($_POST['post_ID']);
                    
211	check_admin_referer('untrash-post_' . $post_id);
                    
225case 'delete':
                    
226	$post_id = (isset($_GET['post']))  ? intval($_GET['post']) : intval($_POST['post_ID']);
                    
227	check_admin_referer('delete-post_' . $post_id);
                    
                
COLLADAMaxGeometryImporter.h https://github.com/AsherBond/MondocosmOS.git | C Header | 192 lines
                    
14for details please see LICENSE file or the website
                    
15http://www.opensource.org/licenses/mit-license.php
                    
16*/
                    
176
                    
177		void setPolygonMeshUVVerticesPerPrimitiveAndChannel( const COLLADAFW::MeshPrimitive* meshPrimitive, MNMap* meshMap, const COLLADAFW::UIntValuesArray& uvIndices, unsigned int initialIndex, size_t& currentFaceIndex);
                    
178
                    
180	
                    
181		void setTriangleMeshUVVerticesPerPrimitiveAndChannel( const COLLADAFW::MeshPrimitive* meshPrimitive, MeshMap& meshMap, const COLLADAFW::UIntValuesArray& uvIndices, unsigned int initialIndex, size_t& currentFaceIndex);
                    
182	
                    
186		by the number of faces of @a meshPrimitive.*/
                    
187		bool skipMeshData( const COLLADAFW::MeshPrimitive* meshPrimitive, const COLLADAFW::UIntValuesArray& dataIndices, size_t& faceIndex);
                    
188	};
                    
                
helper.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 909 lines
                    
1<?php
                    
2
                    
52
                    
53require_once (JPATH_SITE . DS . 'components' . DS . 'com_content' . DS . 'helpers' . DS . 'route.php');
                    
54
                    
127
                    
128			$count = intval ( $params->get ( 'count', 1 ) );
                    
129
                    
512
                    
513						script.setAttribute('href', '<?php
                    
514
                    
540
                    
541<?php
                    
542
                    
                
BCMath.php https://github.com/grandison/budo16.git | PHP | 482 lines
                    
19 * @copyright  2006 Alexander Valyalkin
                    
20 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
21 * @version    1.2.0b
                    
29 * This class is a wrapper for PHP BCMath extension.
                    
30 * See http://php.net/manual/en/ref.bc.php for details.
                    
31 *
                    
35 * @copyright  2005, 2006 Alexander Valyalkin
                    
36 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
37 * @link       http://pear.php.net/package/Crypt_RSA
                    
101        if (!extension_loaded('bcmath')) {
                    
102            if (!@dl('bcmath.' . PHP_SHLIB_SUFFIX) && !@dl('php_bcmath.' . PHP_SHLIB_SUFFIX)) {
                    
103                // cannot load BCMath extension. Set error string
                    
103                // cannot load BCMath extension. Set error string
                    
104                $this->errstr = 'Crypt_RSA package requires the BCMath extension. See http://php.net/manual/en/ref.bc.php for details';
                    
105                return;
                    
                
export.php https://github.com/wynerst/New-Knowhow.git | PHP | 183 lines
                    
1<?php
                    
2/**
                    
27// main system configuration
                    
28require '../../../sysconfig.inc.php';
                    
29// start the session
                    
29// start the session
                    
30require SENAYAN_BASE_DIR.'admin/default/session.inc.php';
                    
31require SIMBIO_BASE_DIR.'simbio_GUI/table/simbio_table.inc.php';
                    
31require SIMBIO_BASE_DIR.'simbio_GUI/table/simbio_table.inc.php';
                    
32require SIMBIO_BASE_DIR.'simbio_GUI/form_maker/simbio_form_table_AJAX.inc.php';
                    
33require SIMBIO_BASE_DIR.'simbio_DB/simbio_dbop.inc.php';
                    
48    } else {
                    
49        // set PHP time limit
                    
50        set_time_limit(0);
                    
71        $encloser = trim($_POST['fieldEnc']);
                    
72        $limit = intval($_POST['recordNum']);
                    
73        $offset = intval($_POST['recordOffset']);
                    
                
over_forums.php https://github.com/Bigjoos/U-232-V1.git | PHP | 281 lines
                    
29
                    
30require_once(INCL_DIR.'html_functions.php');
                    
31
                    
41$main_links = '<p><span style="font-weight: bold;">Over Forums</span> :: 
                    
42						<a class="altlink" href="staffpanel.php?tool=forum_manage&amp;action=forum_manage">Forum Manager</a> :: 
                    
43						<a class="altlink" href="staffpanel.php?tool=forum_config&amp;action=forum_config">Configure Forums</a><br /></p>';
                    
44
                    
45$id = (isset($_GET['id']) ? intval($_GET['id']) : (isset($_POST['id']) ? intval($_POST['id']) : 0));
                    
46$maxclass = $CURUSER['class'];
                    
71		sql_query ('DELETE FROM over_forums where id = '.$id);
                    
72		header('Location: staffpanel.php?tool=over_forums'); 
                    
73		die();
                    
92			sql_query('UPDATE over_forums SET sort = '.$sort.', name = '.sqlesc($name).', description = '.sqlesc($desc).', min_class_view = '.$min_class_view.' WHERE id = '.$id);
                    
93			header('Location: staffpanel.php?tool=over_forums'); 
                    
94			die();
                    
                
Serializer.php https://github.com/oveach/tuto-zf-doctrine2.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Serializer.php 24594 2012-01-05 21:27:01Z 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"
                    
                
Creditmemo.php https://github.com/guiohm/magento-french.git | PHP | 221 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) 2009 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 */
                    
195                        $text = array();
                    
196                        $_printValue = isset($option['print_value']) ? $option['print_value'] : strip_tags($option['value']);
                    
197                        $values = explode(', ', $_printValue);
                    
                
Creditmemo.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 221 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) 2009 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 */
                    
195                        $text = array();
                    
196                        $_printValue = isset($option['print_value']) ? $option['print_value'] : strip_tags($option['value']);
                    
197                        $values = explode(', ', $_printValue);
                    
                
forms_editer_donnee.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 327 lines
                    
1<?php
                    
2/*
                    
120		if (count($champs_mod))
                    
121			sql_delete("spip_forms_donnees_champs",sql_in("champ",$champs_mod)." AND id_donnee=".intval($id_donnee));
                    
122		if (count($inserts))
                    
149	$inserts = array();
                    
150	if (!$row = sql_fetsel("id_form","spip_forms_donnees","id_donnee=".intval($id_donnee))
                    
151	 OR !$id_form = $row['id_form']
                    
175	$rang = 1;
                    
176	if ($row = sql_fetsel("max(rang) AS rang_max","spip_forms_donnees","id_form=".intval($id_form)))
                    
177		$rang = $row['rang_max']+1;
                    
199
                    
200	if (!$row = sql_fetsel("*","spip_forms","id_form=".intval($id_form))) {
                    
201		$erreur['message_erreur'] = _T("forms:probleme_technique");
                    
215	if (!count($erreur)) {
                    
216		$id_auteur = isset($GLOBALS['visiteur_session']['id_auteur']) ? intval($GLOBALS['visiteur_session']['id_auteur']) : 0;
                    
217		$url = (_DIR_RESTREINT==_DIR_RESTREINT_ABS)?parametre_url(self(),'id_form',''):_DIR_RESTREINT_ABS;
                    
                
Product.php https://github.com/inhale/core.git | PHP | 261 lines
                    
1<?php
                    
2// vim: set ts=4 sw=4 sts=4 et:
                    
11 * It is also available through the world-wide-web at this URL:
                    
12 * http://opensource.org/licenses/osl-3.0.php
                    
13 * If you did not receive a copy of the license and are unable to
                    
21 * @copyright  Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved
                    
22 * @license    http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
                    
23 * @version    GIT: $Id: 576eff983e566544074b656fc9948314d1145c76 $
                    
129                $option = \XLite\Core\Database::getRepo('\XLite\Module\CDev\ProductOptions\Model\Option')
                    
130                    ->find(intval($data));
                    
131                if (
                    
140                    'option' => $option,
                    
141                    'value'  => intval($data),
                    
142                );
                    
                
AdminPreferencesController.php https://gitlab.com/staging06/myproject | PHP | 246 lines
                    
1<?php
                    
2/*
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/osl-3.0.php
                    
11* If you did not receive a copy of the license and are unable to
                    
22*  @copyright  2007-2015 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
100                    'validation' => 'isBool',
                    
101                    'cast' => 'intval',
                    
102                    'type' => 'bool',
                    
110                'validation' => 'isBool',
                    
111                'cast' => 'intval',
                    
112                'type' => 'bool',
                    
121                    'validation' => 'isBool',
                    
122                    'cast' => 'intval',
                    
123                    'type' => 'bool',
                    
                
menu.php https://github.com/FullService/joomla.git | PHP | 301 lines
                    
1<?php
                    
2/**
                    
178				'ordering',
                    
179				array('list.attr' => 'class="inputbox" size="1"', 'list.select' => intval($row->ordering))
                    
180			);
                    
228		// second pass - get an indent list of the items
                    
229		$list = JHtmlMenu::TreeRecurse(intval($mitems[0]->parent_id), '', array(), $children, 9999, 0, 0);
                    
230
                    
                
add.php https://github.com/jingcleovil/Flux-Mod-Full.git | PHP | 258 lines
                    
1<?php
                    
2if (!defined('FLUX_ROOT')) exit;
                    
3
                    
4require_once 'Flux/Config.php';
                    
5
                    
65	if (!is_null($refineable)) {
                    
66		$refineable = intval((bool)$refineable);
                    
67	}
                    
142		if (empty($errorMessage)) {
                    
143			require_once 'Flux/TemporaryTable.php';
                    
144
                    
                
Serializer.php https://github.com/luisbraschi/ursp.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Serializer.php 21969 2010-04-22 03:54:59Z matthew $
                    
21 */
                    
23/** Zend_Amf_Constants */
                    
24#require_once 'Zend/Amf/Constants.php';
                    
25
                    
26/** @see Zend_Amf_Parse_Serializer */
                    
27#require_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" 
                    
                
cat_msproduct_get.php https://gitlab.com/ptisky/API_prestashop | PHP | 311 lines
                    
1<?php

                    
2/**

                    
23	$idlist=Tools::getValue('idlist',0);

                    
24	$id_lang=intval(Tools::getValue('id_lang'));

                    
25	$cntProducts=count(explode(',',$idlist));

                    
227			case'price_inc_tax':

                    
228				$return .= "<cell>".number_format($prodrow['price']*($tax[intval($prodrow['id_tax_rules_group'])]/100+1)+( $prodrow['ecotax']*SCI::getEcotaxTaxRate() ), 2, '.', '')."</cell>";

                    
229				break;

                    
                
trackBlobs.php https://github.com/daevid/MWFork.git | PHP | 396 lines
                    
1<?php
                    
2/**
                    
28if ( count( $args ) < 1 ) {
                    
29	echo "Usage: php trackBlobs.php <cluster> [... <cluster>]\n";
                    
30	echo "Adds blobs from a given ES cluster to the blob_tracking table\n";
                    
82			echo "Integrity check failed: found HistoryBlobStub objects in your text table.\n" .
                    
83				"This script could destroy these objects if it continued. Run resolveStubs.php\n" .
                    
84				"to fix this.\n";
                    
97			echo "Integrity check failed: found external storage pointers in your archive table.\n" .
                    
98				"Run normaliseArchiveTable.php to fix this.\n";
                    
99			exit( 1 );
                    
102				"These objects are probably already broken, continuing would make them\n" .
                    
103				"unrecoverable. Run \"normaliseArchiveTable.php --fix-cgz-bug\" to fix this.\n";
                    
104			exit( 1 );
                    
138			'cluster' => $m[1],
                    
139			'id' => intval( $m[2] ),
                    
140			'hash' => isset( $m[3] ) ? $m[3] : null
                    
                
Product.php https://github.com/shryans/core.git | PHP | 261 lines
                    
1<?php
                    
2// vim: set ts=4 sw=4 sts=4 et:
                    
11 * It is also available through the world-wide-web at this URL:
                    
12 * http://opensource.org/licenses/osl-3.0.php
                    
13 * If you did not receive a copy of the license and are unable to
                    
21 * @copyright  Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved
                    
22 * @license    http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
                    
23 * @version    GIT: $Id: 30ef939a0a873c0301a9f7522de99d97733ad1f5 $
                    
129                $option = \XLite\Core\Database::getRepo('\XLite\Module\CDev\ProductOptions\Model\Option')
                    
130                    ->find(intval($data));
                    
131                if (
                    
140                    'option' => $option,
                    
141                    'value'  => intval($data),
                    
142                );
                    
                
legacy.php https://github.com/Shigaru/shigaru.git | PHP | 432 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* @version		$Id: legacy.php 14401 2010-01-26 14:10:00Z louis $
                    
4* @package		Joomla
                    
5* @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
                    
6* @license		GNU/GPL, see LICENSE.php
                    
7* Joomla! is free software. This version may have been modified pursuant
                    
10* other free or open source software licenses.
                    
11* See COPYRIGHT.php for copyright notices and details.
                    
12*/
                    
49		case 'url' :
                    
50			if (preg_match('#index.php\?#i', $mitem->link)) {
                    
51				if (!preg_match('#Itemid=#i', $mitem->link)) {
                    
57		default :
                    
58			$mitem->link = 'index.php?Itemid='.$mitem->id;
                    
59			break;
                    
                
ps_module.php https://github.com/Shigaru/shigaru.git | PHP | 387 lines
                    
1<?php
                    
2if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
                    
4*
                    
5* @version $Id: ps_module.php 1660 2009-02-22 17:05:02Z tkahl $
                    
6* @package VirtueMart
                    
8* @copyright Copyright (C) 2004-2007 soeren - All rights reserved.
                    
9* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
                    
10* VirtueMart is free software. This version may have been modified pursuant
                    
13* other free or open source software licenses.
                    
14* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
                    
15*
                    
181			
                    
182		$db->buildQuery( 'UPDATE',  '#__{vm}_module', $fields, ' WHERE module_id='.intval( $d[ 'module_id' ] ) );
                    
183
                    
312		global $mosConfig_absolute_path;
                    
313		$classes = vmReadDirectory( CLASSPATH, '\.php$', false, true );
                    
314		$array = array();
                    
                
Mysql4.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 371 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
236        if ($limitCount !== null) {
                    
237              $limitCount = intval($limitCount);
                    
238            if ($limitCount <= 0) {
                    
241
                    
242            $limitOffset = intval($limitOffset);
                    
243            if ($limitOffset < 0) {
                    
                
product.php https://gitlab.com/nvtdn2006/azora | PHP | 413 lines
                    
1<?php
                    
2class Product
                    
367	
                    
368	function updateAllProductPointValue($newrate, $rounding) {
                    
369		$result = false;
                    
                
polldaddy.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 401 lines
                    
1<?php
                    
2
                    
77
                    
78		if ( intval( $rating ) > 0 && !$no_script ) { //rating embed
                    
79
                    
91
                    
92			$rating    = intval( $rating );
                    
93			$unique_id = wp_strip_all_tags( $unique_id );
                    
137		}
                    
138		elseif ( intval( $poll ) > 0 ) { //poll embed
                    
139
                    
139
                    
140			$poll      = intval( $poll );
                    
141			$poll_url  = sprintf( 'http://polldaddy.com/poll/%d', $poll );
                    
155						'embed' => 'poll',
                    
156						'delay' => intval( $delay ),
                    
157						'visit' => $visit,
                    
                
translate_interface.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 237 lines
                    
1<?php
                    
2namespace Concrete\Controller\SinglePage\Dashboard\System\Multilingual;
                    
66            if (Core::make('token')->validate()) {
                    
67                // First, we look in all the site sources for PHP code with GetText
                    
68                $baseTranslations = $extractor->extractTranslatableSiteStrings();
                    
126            $translation = null;
                    
127            $mtID = @intval($this->post('id'));
                    
128            if ($mtID > 0) {
                    
192
                    
193        $mtSectionID = intval($mtSectionID);
                    
194        $section = Section::getByID(intval($mtSectionID));
                    
                
edit.php https://github.com/MikeLockz/lockwitz.git | PHP | 263 lines
                    
40	$submenu_file = "edit.php?post_type=$post_type";
                    
41	$post_new_file = "post-new.php?post_type=$post_type";
                    
42} else {
                    
42} else {
                    
43	$parent_file = 'edit.php';
                    
44	$submenu_file = 'edit.php';
                    
188<?php screen_icon(); ?>
                    
189<h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php
                    
190if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
                    
193
                    
194<?php
                    
195if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?>
                    
195if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?>
                    
196<div id="message" class="updated"><p><strong><?php _e('This has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_REQUEST['posted'] ); ?>"><?php _e('View Post'); ?></a> | <a href="<?php echo get_edit_post_link( $_REQUEST['posted'] ); ?>"><?php _e('Edit Post'); ?></a></p></div>
                    
197<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
                    
                
Serializer.php https://github.com/Enrise/Zend.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 */
                    
24// require_once 'Zend/Amf/Constants.php';
                    
25
                    
26/** @see Zend_Amf_Parse_Serializer */
                    
27// require_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"
                    
                
acf.php https://gitlab.com/gabdark/aceit | PHP | 547 lines
                    
1<?php
                    
2/*
                    
88		// include helpers
                    
89		include_once('api/api-helpers.php');
                    
90		
                    
92		// api
                    
93		acf_include('api/api-value.php');
                    
94		acf_include('api/api-field.php');
                    
94		acf_include('api/api-field.php');
                    
95		acf_include('api/api-field-group.php');
                    
96		acf_include('api/api-template.php');
                    
99		// core
                    
100		acf_include('core/ajax.php');
                    
101		acf_include('core/cache.php');
                    
101		acf_include('core/cache.php');
                    
102		acf_include('core/fields.php');
                    
103		acf_include('core/field.php');
                    
                
blockcart.tpl https://gitlab.com/ptisky/API_prestashop | Smarty Template | 176 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-2015 PrestaShop SA
                    
22*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23*  International Registered Trademark & Property of PrestaShop SA
                    
40var delete_txt = '{l s='Delete' mod='blockcart' js=1}';
                    
41var generated_date = {$smarty.now|intval};
                    
42</script>
                    
91			{if isset($product.attributes_small)}
                    
92			<dd id="cart_block_combination_of_{$product.id_product}{if $product.id_product_attribute}_{$product.id_product_attribute}{/if}_{$product.id_address_delivery|intval}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
                    
93				<a href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'html'}" title="{l s='Product detail' mod='blockcart'}">{$product.attributes_small}</a>
                    
101						<li name="customization">
                    
102							<div class="deleteCustomizableProduct" id="deleteCustomizableProduct_{$id_customization|intval}_{$product.id_product|intval}_{$product.id_product_attribute|intval}_{$product.id_address_delivery|intval}"><a class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart', true, NULL, "delete=1&amp;id_product={$product.id_product|intval}&amp;ipa={$product.id_product_attribute|intval}&amp;id_customization={$id_customization}&amp;token={$static_token}", true)|escape:'html'}" rel="nofollow"> </a></div>
                    
103							<span class="quantity-formated"><span class="quantity">{$customization.quantity}</span>x</span>{if isset($customization.datas.$CUSTOMIZE_TEXTFIELD.0)}
                    
                
Curl.php https://github.com/rogerwu99/punch_bantana.git | PHP | 388 lines
                    
24/** Zend_Uri_Http */
                    
25require_once 'Zend/Uri/Http.php';
                    
26
                    
31 * An adapter class for Zend_Http_Client based on the curl extension.
                    
32 * Curl requires libcurl. See for full requirements the PHP manual: http://php.net/curl
                    
33 *
                    
185
                    
186            require_once 'Zend/Http/Client/Adapter/Exception.php';
                    
187            throw new Zend_Http_Client_Adapter_Exception('Unable to Connect to ' .  $host . ':' . $port);
                    
218        if (!$this->_curl) {
                    
219            require_once 'Zend/Http/Client/Adapter/Exception.php';
                    
220            throw new Zend_Http_Client_Adapter_Exception("Trying to write but we are not connected");
                    
305         * Make sure POSTFIELDS is set after $curlMethod is set:
                    
306         * @link http://de2.php.net/manual/en/function.curl-setopt.php#81161
                    
307         */
                    
                
Serializer.php https://github.com/qmmr/iAlbums.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Serializer.php 23651 2011-01-21 21:51:00Z mikaelkael $
                    
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"
                    
                
helper.php https://github.com/bsc/BSC.git | PHP | 350 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* @version		$Id:helper.php 6961 2007-03-15 16:06:53Z tcp $
                    
4* @package		Joomla.Framework
                    
6* @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
                    
7* @license		GNU/GPL, see LICENSE.php
                    
8* Joomla! is free software. This version may have been modified pursuant
                    
11* other free or open source software licenses.
                    
12* See COPYRIGHT.php for copyright notices and details.
                    
13*/
                    
47		$db->setQuery( $query );
                    
48		$id = intval( $db->loadResult() );
                    
49
                    
297		$stat = @stat(__FILE__);
                    
298		if(empty($stat) || !is_array($stat)) $stat = array(php_uname());
                    
299
                    
                
google.php https://gitlab.com/Ltaimao/wecenter | PHP | 338 lines
                    
1<?php
                    
2/*
                    
143
                    
144        $this->expires_time = time() + intval($result['expires_in']);
                    
145
                    
245            'access_token' => htmlspecialchars($result['access_token']),
                    
246            'expires_time' => time() + intval($result['expires_in'])
                    
247        ), 'id = ' . $user_info['id']);
                    
260            'id' => htmlspecialchars($google_user['id']),
                    
261            'uid' => intval($uid),
                    
262            'name' => htmlspecialchars($google_user['name']),
                    
269            'refresh_token' => htmlspecialchars($google_user['refresh_token']),
                    
270            'expires_time' => intval($google_user['expires_time']),
                    
271            'add_time' => time()
                    
290            'refresh_token' => htmlspecialchars($google_user['refresh_token']),
                    
291            'expires_time' => intval($google_user['expires_time'])
                    
292        ), 'id = ' . $id);
                    
                
 

Source

Language