PageRenderTime 1161ms queryTime 100ms sortTime 42ms getByIdsTime 229ms findMatchingLines 547ms

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

Not the results you expected?
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;
                    
                
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
                    
                
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);
                    
                
module.graphic.jpg.php https://gitlab.com/dali99/shimmie2-Material-Theme | 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					}
                    
                
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;
                    
                
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		}
                    
                
edit.php https://github.com/eric-brechemier/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']);
                    
                
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/ruTorrent | 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();
                    
                
class-wc-rest-order-notes-v1-controller.php https://gitlab.com/remyvianne/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 ) );
                    
                
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;
                    
                
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,
                    
                
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{
                    
                
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;
                    
                
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获取通知列表 按未读升序、更新时间倒序
                    
                
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>
                    
                
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);
                    
                
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
                    
                
Serializer.php https://bitbucket.org/kdms/sh-magento.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" 
                    
                
Serializer.php https://bitbucket.org/hamidrezas/melobit.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/jpratt/cal.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);
                    
                
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
                    
                
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;

                    
                
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));
                    
                
blockcart.tpl https://gitlab.com/staging06/myproject | 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)}
                    
                
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');
                    
                
Serializer.php https://github.com/cinnamong/mag3nt0.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" 
                    
                
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);
                    
                
SpecificPriceRule.php https://gitlab.com/staging06/myproject | PHP | 315 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
                    
149        if ($products && count($products)) {
                    
150            $where .= ' AND id_product IN ('.implode(', ', array_map('intval', $products)).')';
                    
151        }
                    
258                if ($products && count($products)) {
                    
259                    $query->where('p.`id_product` IN ('.implode(', ', array_map('intval', $products)).')');
                    
260                }
                    
277                    ->where('ps.id_shop = '.(int)$current_shop_id);
                    
278                $query->where('p.`id_product` IN ('.implode(', ', array_map('intval', $products)).')');
                    
279                $result = Db::getInstance()->executeS($query);
                    
                
Planet.class.old.php https://github.com/Biggerskimo/WOT-Game.git | PHP | 444 lines
                    
1<?php
                    
2/*
                    
19// wcf
                    
20require_once(WCF_DIR.'lib/data/user/User.class.php');
                    
21require_once(WCF_DIR.'lib/data/DatabaseObject.class.php');
                    
22
                    
23require_once(LW_DIR.'lib/data/user/LWUser.class.php');
                    
24
                    
44	public static function getInstance($planetID = null, $row = null, $updateLastActivity = true) {
                    
45		if($planetID !== null) $planetID = intval($planetID);
                    
46
                    
53
                    
54			require_once(LW_DIR.'lib/data/planet/'.$className.'.class.php');
                    
55
                    
421		if($this->id_owner == WCF::getUser()->userID) {
                    
422			return '<a href="overview.php?cp='.$this->planetID.'" target="Mainframe">Planeten '.$this->name.'</a> <a href="galaxy.php?g='.$this->galaxy.'&amp;s='.$this->system.'" target="Mainframe">['.$this->galaxy.':'.$this->system.':'.$this->planet.']</a>';
                    
423		} else {
                    
                
component.php https://gitlab.com/alexprowars/bitrix | PHP | 255 lines
                    
1<?php
                    
2
                    
20
                    
21$arParams["USER_ID"] = intval($arParams["USER_ID"]);
                    
22
                    
51
                    
52$arParams["ITEMS_COUNT"] = intval($arParams["ITEMS_COUNT"]);
                    
53if ($arParams["ITEMS_COUNT"] <= 0)
                    
71	/***********************  ACTIONS  *******************************/
                    
72	if ($_REQUEST["action"] === "close" && check_bitrix_sessid() && intval($_REQUEST["eventID"]) > 0)
                    
73	{
                    
75
                    
76		if (!CSocNetMessages::MarkMessageRead($GLOBALS["USER"]->GetID(), intval($_REQUEST["eventID"])))
                    
77		{
                    
84	}
                    
85	if ($_REQUEST["action"] === "delete" && check_bitrix_sessid() && intval($_REQUEST["eventID"]) > 0)
                    
86	{
                    
                
upgrade-2.0.0.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 279 lines
                    
1<?php
                    
2function icl_upgrade_2_0_0_steps($step, $stepper){
                    
154								'translation_package'   => serialize($translation_package),
                    
155								'links_fixed'           => intval(isset($links_fixed)?$links_fixed:0)
                    
156							));
                    
166            if ($processing) {
                    
167                update_option('icl_temp_upgrade_data', array('step' => 2, 'offset' => intval($offset+100)));
                    
168                $stepper->setNextStep(2);
                    
194            if(get_option('_force_mp_post_http')){
                    
195                $iclsettings['troubleshooting_options']['http_communication'] = intval(get_option('_force_mp_post_http'));
                    
196                delete_option('_force_mp_post_http');
                    
219
                    
220// $iclsettings defined in upgrade.php
                    
221if(empty($iclsettings['migrated_2_0_0'])){
                    
230	$ajax_action_none = wp_create_nonce($ajax_action);
                    
231	$link = 'index.php?icl_ajx_action=' . $ajax_action . '&nonce=' . $ajax_action_none;
                    
232    $txt = get_option('icl_temp_upgrade_data', FALSE) ? __('Resume Upgrade Process', 'sitepress') : __('Run Upgrade Process', 'sitepress');
                    
                
AdminPreferencesController.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | 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-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
                    
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',
                    
                
default-constants.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 316 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Defines constants and global variables that can be overridden, generally in wp-config.php.
                    
4 *
                    
43		$current_limit = @ini_get( 'memory_limit' );
                    
44		$current_limit_int = intval( $current_limit );
                    
45		if ( false !== strpos( $current_limit, 'G' ) )
                    
46			$current_limit_int *= 1024;
                    
47		$wp_limit_int = intval( WP_MEMORY_LIMIT );
                    
48		if ( false !== strpos( WP_MEMORY_LIMIT, 'G' ) )
                    
57
                    
58	// Add define('WP_DEBUG', true); to wp-config.php to enable display of notices during development.
                    
59	if ( !defined('WP_DEBUG') )
                    
61
                    
62	// Add define('WP_DEBUG_DISPLAY', null); to wp-config.php use the globally configured setting for
                    
63	// display_errors and not force errors to be displayed. Use false to force display_errors off.
                    
                
Logger.php https://gitlab.com/hoanghung.dev/phunuvadoisong.com | PHP | 456 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Logger.php
                    
4 *
                    
174		// Fix log max size
                    
175		$logMaxSizeBytes = intval(preg_replace("/[^0-9]/", "", $size));
                    
176
                    
                
index.php https://github.com/damanlovett/SEAHO.git | PHP | 197 lines
                    
1<?php require_once('../../../Connections/CMS.php'); ?>
                    
2<?php
                    
31?>
                    
32<?php require_once('../../includefiles/initAssociates.php'); ?>
                    
33<?php
                    
129        <tr>
                    
130          <td class="tablerows"><a href="regdetails.php?recordID=<?php echo $row_rsRegistrations['registration_id']; ?>&amp;conferenceID=<?php echo $row_rsRegistrations['conference_id']; ?>"><?php echo $row_rsRegistrations['conference_name']; ?></a></td>
                    
131          <td class="tablerows">&nbsp;</td>
                    
131          <td class="tablerows">&nbsp;</td>
                    
132          <td class="tablerows"><?php echo basicDate($row_rsRegistrations['start_date']); ?> - <?php echo basicDate($row_rsRegistrations['end_date']); ?></td>
                    
133          <td class="tablerows">&nbsp;</td>
                    
134          <td class="tablerows"><?php echo $row_rsRegistrations['status']; ?></td>
                    
135          <td class="tablerows"><div align="center"><a href="reps.php?recordID=<?php echo $row_rsRegistrations['registration_id']; ?>"><img src="../../images/imgAdminView.gif" alt="View" width="14" height="14" /></a></div></td>
                    
136          <td class="tablerows"><?php echo DoFormatCurrency($row_rsRegistrations['trans_sum'], 2, '.', ',', '$'); ?></td>
                    
186  </tr>
                    
187  <?php require_once('../../../includefiles/footer.inc.php'); ?>
                    
188</table>
                    
                
groups.php https://bitbucket.org/selfeky/xclusivescardwebsite.git | PHP | 286 lines
                    
75</div>
                    
76<div class="ccm-pane-body <?php  if (!$gl->requiresPaging()) { ?> ccm-pane-body-footer <?php  } ?>">
                    
77
                    
83	<div class="ccm-group">
                    
84		<a class="ccm-group-inner" href="<?php echo $this->url('/dashboard/users/groups?task=edit&gID=' . $g['gID'])?>" style="background-image: url(<?php echo ASSETS_URL_IMAGES?>/icons/group.png)"><?php echo t($g['gName'])?></a>
                    
85		<?php  if ($g['gDescription']) { ?>
                    
126		<?php echo t('You must be logged in as %s to remove groups.', USER_SUPER)?>			
                    
127	<?php  }else{ ?>   
                    
128
                    
131			if (confirm('<?php echo $delConfirmJS?>')) { 
                    
132				location.href = "<?php echo $this->url('/dashboard/users/groups', 'delete', intval($_REQUEST['gID']), $valt->generate('delete_group_' . intval($_REQUEST['gID']) ))?>";				
                    
133			}
                    
220	</div>
                    
221	<input type="hidden" name="gID" value="<?php echo intval($_REQUEST['gID'])?>" />
                    
222	<input type="hidden" name="task" value="edit" />
                    
                
component.php https://gitlab.com/Rad1calDreamer/honey | PHP | 314 lines
                    
12$arParams["AJAX_CALL"] = $arParams["AJAX_CALL"] == "Y" ? "Y" : "N";
                    
13$arParams["COUNTRY"] = intval($arParams["COUNTRY"]);
                    
14$arParams["REGION"] = intval($arParams["REGION"]);
                    
14$arParams["REGION"] = intval($arParams["REGION"]);
                    
15$arParams["LOCATION_VALUE"] = intval($arParams["LOCATION_VALUE"]);
                    
16$arParams["ALLOW_EMPTY_CITY"] = $arParams["ALLOW_EMPTY_CITY"] == "N" ? "N" : "Y";
                    
16$arParams["ALLOW_EMPTY_CITY"] = $arParams["ALLOW_EMPTY_CITY"] == "N" ? "N" : "Y";
                    
17$arParams["ZIPCODE"] = IntVal($arParams["ZIPCODE"]);
                    
18$arParams["SHOW_QUICK_CHOOSE"] = $arParams["SHOW_QUICK_CHOOSE"] == "N" ? "N" : "Y";
                    
32	{
                    
33		$arParams["LOCATION_VALUE"] = IntVal($arZip["ID"]);
                    
34	}
                    
195	if ($arParams["COUNTRY"] > 0)
                    
196		$arRegionFilter["COUNTRY_ID"] = IntVal($arParams["COUNTRY"]);
                    
197
                    
                
helper.php https://github.com/FullService/joomla.git | PHP | 527 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id:helper.php 6961 2007-03-15 16:06:53Z tcp $
                    
4 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
                    
233		$db->setQuery($query);
                    
234		$id = intval($db->loadResult());
                    
235
                    
474		$stat = @stat(__FILE__);
                    
475		if (empty($stat) || !is_array($stat)) $stat = array(php_uname());
                    
476
                    
                
latest.php https://gitlab.com/VTTE/sitios-vtte | PHP | 257 lines
                    
1<?php
                    
2
                    
74
                    
75			if ( intval( $result, 10 ) !== 1 ) {
                    
76				$missing[] = $table;
                    
95			// These are known queries without user input
                    
96			// phpcs:ignore
                    
97			$row = $wpdb->get_row( 'SHOW CREATE TABLE ' . $table, ARRAY_N );
                    
152		// Default groups
                    
153		if ( intval( $existing_groups, 10 ) === 0 ) {
                    
154			$wpdb->insert( $wpdb->prefix . 'redirection_groups', $defaults[0] );
                    
                
CMB2_Utils.php https://gitlab.com/vitorhugoro1/grx-kanban | PHP | 415 lines
                    
154		return (string) (int) $timestamp === (string) $timestamp
                    
155			&& $timestamp <= PHP_INT_MAX
                    
156			&& $timestamp >= ~PHP_INT_MAX;
                    
235		// Let's test if We are in the plugins or mu-plugins dir.
                    
236		$test_dir = trailingslashit( $dir ) . 'unneeded.php';
                    
237		if (
                    
306	/**
                    
307	 * Takes a php date() format string and returns a string formatted to suit for the date/time pickers
                    
308	 * It will work with only with the following subset ot date() options:
                    
313	 *
                    
314	 * Other options are ignored, because they would either bring compatibility problems between PHP and JS, or
                    
315	 * bring even more translation troubles.
                    
356	/**
                    
357	 * Helper function for CMB_Utils->php_to_js_dateformat, because php 5.2 was retarded.
                    
358	 * @since  2.2.0
                    
                
FunctionNode.php https://github.com/damienf/songs.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        }
                    
                
aut.php https://gitlab.com/elasa/vb-elasa.ir | PHP | 196 lines
                    
1<?php
                    
2class LiveWall_ContentType_aut extends LiveWall_ContentType_Core
                    
48				:avatarQuery
                    
49			FROM (SELECT entryid FROM $dbtech_thanks_entry ' . ($lastId != -1 ? 'WHERE entryid > ' . intval($lastId) : '') . ' ORDER BY entryid DESC LIMIT ' . $this->registry->options['dbtech_livewall_maxentries'] . ') AS tmp
                    
50			LEFT JOIN $dbtech_thanks_entry AS entry ON(mention.entryid = tmp.entryid)
                    
170			':avatarJoin' 					=> ($this->registry->options['avatarenabled'] ? 'LEFT JOIN $avatar AS avatar ON (avatar.avatarid = user.avatarid) LEFT JOIN $customavatar AS customavatar ON (customavatar.userid = user.userid)' : ''),
                    
171			':currentUser' 					=> intval($this->registry->userinfo['userid']),
                    
172			':contentType' 					=> 'aut',
                    
175			':memberGroupIds' 				=> LIVEWALL::$db->queryList($excludedGroups),
                    
176			':onlyUser' 					=> ($onlyUser ? 'AND (user.userid = ' . intval($onlyUser) . ' OR mention.mentionedid = ' . intval($onlyUser) . ')' : ''),
                    
177			':fetchOne' 					=> ($fetchOne ? 'LIMIT 1' : ''),
                    
189		return construct_phrase($vbphrase['dbtech_usertag_x_mentioned_y_in_z'],
                    
190			'<a href="' . (LIVEWALL::$permissions['canviewuserwall'] ? 'livewall.php?' : 'member.php?') . $this->registry->session->vars['sessionurl'] . 'u=' . $info['userid'] . '" target="_blank">' . $info['username'] . '</a>',
                    
191			'<a href="member.php?' . $this->registry->session->vars['sessionurl'] . 'u=' . $info['recipientuserid'] . '" target="_blank">' . $info['recipientusername'] . '</a>',
                    
191			'<a href="member.php?' . $this->registry->session->vars['sessionurl'] . 'u=' . $info['recipientuserid'] . '" target="_blank">' . $info['recipientusername'] . '</a>',
                    
192			'<a href="showthread.php?' . $this->registry->session->vars['sessionurl'] . 'p=' . $info['postid'] . '#post' . $info['postid'] . '">' . $info['threadtitle'] . '</a>'			
                    
193		);
                    
                
auth.php https://gitlab.com/bulwye/reliquerunt | PHP | 334 lines
                    
1<?php
                    
2/***************************************************************************
                    
2/***************************************************************************
                    
3 *                                 auth.php
                    
4 *                            -------------------                         
                    
5 *   begin                : Saturday, Feb 13, 2001 
                    
6 *   copyright            : (C) 2001 The phpBB Group        
                    
7 *   email                : support@phpbb.com                           
                    
8 *                                                          
                    
9 *   $Id: auth.php,v 1.2 2006/04/28 17:49:44 adrianc602 Exp $     
                    
10 *                                                            
                    
111/* -- mod : File Attachment Mod v2 Version 2.4.3 ---------------------------------------------------- */
                    
112if (!intval($attach_config['disable_mod']))
                    
113{
                    
                
ProductController.php https://bitbucket.org/kdms/sh-magento.git | PHP | 233 lines
                    
1<?php
                    
2/**
                    
56        $action = $this->getRequest()->getParam('action', '');
                    
57        $current = intval($this->getRequest()->getParam('current', 0));
                    
58        if (!$action) return false;
                    
200        $sql = "UPDATE `".$tablePrefix."seosuite_report_product` AS srp,
                    
201                    (SELECT `prepared_name`, `store_id`, COUNT(*) AS dupl_count FROM `".$tablePrefix."seosuite_report_product` WHERE `store_id`=".intval($storeId)." AND `prepared_name`!='' GROUP BY `prepared_name`) AS srpr
                    
202                    SET srp.`name_dupl` = srpr.dupl_count
                    
202                    SET srp.`name_dupl` = srpr.dupl_count
                    
203                    WHERE srp.`prepared_name`=srpr.`prepared_name` AND srp.`store_id`=srpr.`store_id` AND srp.`prepared_name`!='' AND srp.`store_id`=".intval($storeId);        
                    
204        $connection->query($sql);
                    
206        $sql = "UPDATE `".$tablePrefix."seosuite_report_product` AS srp,
                    
207                    (SELECT `prepared_meta_title`, `store_id`, COUNT(*) AS dupl_count FROM `".$tablePrefix."seosuite_report_product` WHERE `store_id`=".intval($storeId)." AND `prepared_meta_title`!='' GROUP BY `prepared_meta_title`) AS srpr
                    
208                    SET srp.`meta_title_dupl` = srpr.dupl_count
                    
208                    SET srp.`meta_title_dupl` = srpr.dupl_count
                    
209                    WHERE srp.`prepared_meta_title`=srpr.`prepared_meta_title` AND srp.`store_id`=srpr.`store_id` AND srp.`prepared_meta_title`!='' AND srp.`store_id`=".intval($storeId);        
                    
210        $connection->query($sql);
                    
                
blockcart.tpl https://gitlab.com/A.Julien/sendstockbymail-module-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-2016 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)}
                    
                
configuration.tpl https://gitlab.com/elasa/shop2.elasa.ir | Smarty Template | 119 lines
                    
4	<div class="conf confirm" style="width: 710px; margin: 0 auto;">
                    
5		{l s='Your Sitemaps were successfully created. Please do not forget to setup the URL' mod='gsitemap'} <a href="{$gsitemap_store_url|escape:'htmlall':'UTF-8'}{$shop->id|intval}_index_sitemap.xml" target="_blank"><span style="text-decoration: underline;">{$gsitemap_store_url|escape:'htmlall':'UTF-8'}{$shop->id|intval}_index_sitemap.xml</a></span> {l s='in your Google Webmaster account.' mod='gsitemap'}
                    
6</div>
                    
16		<legend><img src="{$module_dir|escape:'htmlall':'UTF-8'}logo.gif" alt="" />{l s='Your Sitemaps' mod='gsitemap'}</legend>
                    
17		<p>{$gsitemap_number|intval} {l s='Sitemaps were already created.' mod='gsitemap'}<br/>
                    
18		</p>
                    
29			{l s='Please set up the following Sitemap URL in your Google Webmaster account:' mod='gsitemap'}<br/> 
                    
30			<a href="{$gsitemap_store_url|escape:'htmlall':'UTF-8'}{$shop->id|intval}_index_sitemap.xml" target="_blank"><span style="color: blue;">{$gsitemap_store_url|escape:'htmlall':'UTF-8'}{$shop->id|intval}_index_sitemap.xml</span></a><br/><br/>
                    
31			{l s='This URL is the master Sitemaps file. It refers to the following sub-sitemap files:' mod='gsitemap'}
                    
53			</ul>
                    
54			{l s='You can edit these limits in your php.ini file. For more details, please contact your hosting provider.' mod='gsitemap'}</p>
                    
55	</div>
                    
82				<li style="float: left; width: 200px; margin: 1px;">
                    
83					<input type="checkbox" class="gsitemap_metas" name="gsitemap_meta[]"{if in_array($store_meta.id_meta, $gsitemap_disable_metas)} checked="checked"{/if} value="{$store_meta.id_meta|intval}" /> {$store_meta.title|escape:'htmlall':'UTF-8'} [{$store_meta.page|escape:'htmlall':'UTF-8'}]
                    
84				</li>
                    
                
element.php https://gitlab.com/alexprowars/bitrix | PHP | 216 lines
                    
1<?php
                    
2
                    
115				$GLOBALS["PHOTOGALLERY_VARS"]["arGalleries"][$res["ID"]] = $res; 
                    
116				$iGalleryID = $GLOBALS["PHOTOGALLERY_VARS"]["arGalleriesID"][$arSection["ID"]] = intval($res["ID"]);
                    
117			}
                    
119		$arGallery = array(); 
                    
120		$iGalleryID = intval($iGalleryID);
                    
121		if ($iGalleryID > 0)
                    
                
class-wc-rest-order-notes-controller.php https://gitlab.com/0072016/woocommerce | PHP | 412 lines
                    
1<?php
                    
2/**
                    
245
                    
246		if ( empty( $id ) || empty( $note ) || intval( $note->comment_post_ID ) !== intval( $order->ID ) ) {
                    
247			return new WP_Error( 'woocommerce_rest_invalid_id', __( 'Invalid resource id.', 'woocommerce' ), array( 'status' => 404 ) );
                    
278
                    
279		if ( empty( $id ) || empty( $note ) || intval( $note->comment_post_ID ) !== intval( $order->ID ) ) {
                    
280			return new WP_Error( 'woocommerce_rest_invalid_id', __( 'Invalid resource id.', 'woocommerce' ), array( 'status' => 404 ) );
                    
                
contact-info.php https://gitlab.com/thisishayat/itv-2016 | PHP | 295 lines
                    
225
                    
226				<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /></p>
                    
227
                    
228				<p><label for="<?php echo esc_attr( $this->get_field_id( 'address' ) ); ?>"><?php esc_html_e( 'Address:', 'jetpack' ); ?></label>
                    
229				<textarea class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'address' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'address' ) ); ?>"><?php echo esc_textarea( $address ); ?></textarea>
                    
230	<?php
                    
238				<span class="error-message"><?php _e( 'Sorry. We can not plot this address. A map will not be displayed. Is the address formatted correctly?', 'jetpack' ); ?></span></p>
                    
239				<input id="<?php echo esc_attr( $this->get_field_id( 'showmap' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'showmap' ) ); ?>" value="<?php echo( intval( $instance['showmap'] ) ); ?>" type="hidden" />
                    
240	<?php
                    
244				<p><label for="<?php echo esc_attr( $this->get_field_id( 'phone' ) ); ?>"><?php esc_html_e( 'Phone:', 'jetpack' ); ?></label>
                    
245				<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'phone' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'phone' ) ); ?>" type="text" value="<?php echo esc_attr( $phone ); ?>" /></p>
                    
246
                    
248
                    
249				<textarea class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'hours' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'hours' ) ); ?>"><?php echo esc_textarea( $hours ); ?></textarea></p>
                    
250
                    
                
vote_channel_list.php https://gitlab.com/alexprowars/bitrix | PHP | 283 lines
                    
16if($VOTE_RIGHT=="D") $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
                    
17require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/vote/include.php");
                    
18
                    
60		$DB->StartTransaction();
                    
61		$ID = intval($ID);
                    
62		$arFieldsStore = Array(
                    
64			"ACTIVE"		=> "'".$DB->ForSql($arFields["ACTIVE"])."'",
                    
65			"C_SORT"		=> "'".intval($arFields["C_SORT"])."'",
                    
66			"TITLE"		=> "'".$DB->ForSql($arFields["TITLE"])."'",
                    
151		foreach($arrSITE as $sid)
                    
152			$str .= '<a title="'.GetMessage("VOTE_SITE_EDIT").'" href="/bitrix/admin/site_edit.php?LID='.$sid.'&lang='.LANGUAGE_ID.'">'.$sid.'</a>, ';
                    
153	};
                    
171
                    
172	$row->AddViewField("VOTES", '<a title="'.GetMessage("VOTE_OPEN_VOTES").'" href="vote_list.php?lang='.LANGUAGE_ID.'&find_channel='.$f_ID.'&set_filter=Y">'.$f_VOTES.'</a>&nbsp;[<a title="'.GetMessage("VOTE_ADD_VOTE").'" href="vote_edit.php?CHANNEL_ID='.$f_ID.'&lang='.LANGUAGE_ID.'">+</a>]');
                    
173
                    
                
Response.php https://gitlab.com/reasonat/test8 | PHP | 360 lines
                    
1<?php
                    
2
                    
37 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc.
                    
38 * @license    http://www.opensource.org/licenses/bsd-license.php
                    
39 */
                    
46 *             Copyright (c) 2005-2009 Zend Technologies USA Inc.
                    
47 * @license    http://www.opensource.org/licenses/bsd-license.php
                    
48 */
                    
97    ) {
                    
98        $this->status = intval($status);
                    
99        $this->body = $body;
                    
                
extra_items.php https://gitlab.com/luyxtran264/myproject | PHP | 233 lines
                    
1<?php
                    
2
                    
192		if (isset($author_id)) {
                    
193			$author_id = intval($author_id);
                    
194			if ($author_id > 0) {
                    
                
SpecificPriceRule.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 315 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
                    
149        if ($products && count($products)) {
                    
150            $where .= ' AND id_product IN ('.implode(', ', array_map('intval', $products)).')';
                    
151        }
                    
258                if ($products && count($products)) {
                    
259                    $query->where('p.`id_product` IN ('.implode(', ', array_map('intval', $products)).')');
                    
260                }
                    
277                    ->where('ps.id_shop = '.(int)$current_shop_id);
                    
278                $query->where('p.`id_product` IN ('.implode(', ', array_map('intval', $products)).')');
                    
279                $result = Db::getInstance()->executeS($query);
                    
                
Main.php https://gitlab.com/Skull3x/pocketmine-plugins | PHP | 247 lines
                    
1<?php
                    
2namespace aliuly\goldstd;
                    
127					if (is_numeric($args[0])) {
                    
128						$money = intval($args[0]);
                    
129						if ($this->getMoney($sender->getName()) < $money) {
                    
                
PwUserValidator.php https://gitlab.com/wuhang2003/phpwind | PHP | 261 lines
                    
1<?php
                    
2/**
                    
5 * @author xiaoxia.xu <xiaoxia.xuxx@aliyun-inc.com>
                    
6 * @copyright ©2003-2103 phpwind.com
                    
7 * @license http://www.phpwind.com
                    
7 * @license http://www.phpwind.com
                    
8 * @version $Id: PwUserValidator.php 24943 2013-02-27 03:52:21Z jieyin $
                    
9 * @package  src.service.user.validator
                    
117		if (!$info) return false;
                    
118		$exceptUid = intval($exceptUid);
                    
119		if ($exceptUid && $info['uid'] == $exceptUid) return false;*/
                    
                
actions.class.php https://github.com/SGirousse/Intranet-CCTB.git | PHP | 245 lines
                    
1<?php
                    
2
                    
8 * @author     Sébastien MARCELLIN, Simeon GIROUSSE
                    
9 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z  $
                    
10 */
                    
142		//$this->forward404unless($request->isXmlHttpRequest());
                    
143		$number = intval($request->getParameter("num"));
                    
144
                    
165		//on récupère le nombre de numéro de téléphones déjà présents (envoyés par la fonction javascript)
                    
166		$number = intval($request->getParameter('num'));
                    
167
                    
194		//on récupère le nombre de formulaire d'adresse déjà présents
                    
195		$number = intval($request->getParameter('num'));
                    
196
                    
222		//on récupère le nombre de formulaire d'adresse déjà présents
                    
223		$number = intval($request->getParameter('num'));
                    
224
                    
                
sites.php https://gitlab.com/Fullerton/PolitePressCore | PHP | 318 lines
                    
53if ( isset( $_GET['action'] ) ) {
                    
54	/** This action is documented in wp-admin/network/edit.php */
                    
55	do_action( 'wpmuadminedit' );
                    
96
                    
97		require_once( ABSPATH . 'wp-admin/admin-header.php' );
                    
98		?>
                    
100				<h1><?php _e( 'Confirm your action' ); ?></h1>
                    
101				<form action="sites.php?action=<?php echo esc_attr( $site_action ); ?>" method="post">
                    
102					<input type="hidden" name="action" value="<?php echo esc_attr( $site_action ); ?>" />
                    
292<?php if ( current_user_can( 'create_sites') ) : ?>
                    
293	<a href="<?php echo network_admin_url('site-new.php'); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'site' ); ?></a>
                    
294<?php endif; ?>
                    
312<form id="form-site-list" action="sites.php?action=allblogs" method="post">
                    
313	<?php $wp_list_table->display(); ?>
                    
314</form>
                    
                
storage.php https://gitlab.com/thiagotalma/stalag13 | PHP | 501 lines
                    
1<?php
                    
2
                    
299		if (isset($modifiers['limit'])) {
                    
300			$limit = intval($modifiers['limit']);
                    
301		}
                    
304		if (isset($modifiers['offset'])) {
                    
305			$offset = intval($modifiers['offset']);
                    
306		}
                    
327		foreach ($modifieds as $modified) {
                    
328			$curr = intval($modified);
                    
329			if ($lastMod === false || $curr > $lastMod) {
                    
                
translated-object.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 272 lines
                    
1<?php
                    
2
                    
96			// sanitize the translations array
                    
97			$translations = array_map( 'intval', $translations );
                    
98			$translations = array_merge( array( $lang->slug => $id ), $translations ); // make sure this object is in translations
                    
                
menu.php https://gitlab.com/mattswann/launch-housing | PHP | 483 lines
                    
1<?php

                    
2abstract class ameMenu {

                    
78			$menu['color_css'] = $arr['color_css'];

                    
79			$menu['color_css_modified'] = isset($arr['color_css_modified']) ? intval($arr['color_css_modified']) : 0;

                    
80		}

                    
                
OODB.php https://github.com/adammoore/Swiftriver.git | PHP | 326 lines
                    
1<?php 
                    
2/**
                    
227	public function load($type, $id) {
                    
228		$id = intval( $id );
                    
229		if ($id < 0) throw new RedBean_Exception_Security("Id less than zero not allowed");
                    
                
random.php https://gitlab.com/alamindev/videogallery | PHP | 215 lines
                    
3 * Random_* Compatibility Library
                    
4 * for using the new PHP 7 random_* API in PHP 5 projects
                    
5 *
                    
33    // This constant was introduced in PHP 5.2.7
                    
34    $RandomCompatversion = array_map('intval', explode('.', PHP_VERSION));
                    
35    define(
                    
76            if (PHP_VERSION_ID >= 50300 && is_callable('\\Sodium\\randombytes_buf')) {
                    
77                require_once $RandomCompatDIR.'/random_bytes_libsodium.php';
                    
78            } elseif (method_exists('Sodium', 'randombytes_buf')) {
                    
150            // Prevent this code from hanging indefinitely on non-Windows;
                    
151            // see https://bugs.php.net/bug.php?id=69833
                    
152            if (
                    
153                DIRECTORY_SEPARATOR !== '/' || 
                    
154                (PHP_VERSION_ID <= 50609 || PHP_VERSION_ID >= 50613)
                    
155            ) {
                    
                
 

Source

Language