PageRenderTime 363ms queryTime 160ms sortTime 16ms getByIdsTime 41ms findMatchingLines 33ms

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

Not the results you expected?
ckfinder_php5.php git://github.com/forkcms/forkcms.git | PHP | 232 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	}
                    
                
admin_access.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 230 lines
                    
1<?php
                    
2
                    
19    global $global_config, $client_info;
                    
20    if ( $global_config['block_admin_ip'] and file_exists( NV_ROOTDIR . "/" . NV_DATADIR . "/admin_config.php" ) )
                    
21    {
                    
21    {
                    
22        include ( NV_ROOTDIR . "/" . NV_DATADIR . "/admin_config.php" );
                    
23        if ( empty( $array_adminip ) )
                    
52    $auth_user = $auth_pw = "";
                    
53    if ( nv_getenv( 'PHP_AUTH_USER' ) )
                    
54    {
                    
54    {
                    
55        $auth_user = nv_getenv( 'PHP_AUTH_USER' );
                    
56    }
                    
73    
                    
74    if ( nv_getenv( 'PHP_AUTH_PW' ) )
                    
75    {
                    
                
functions.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2
                    
28    {
                    
29        $name = "<a href=\"" . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=" . $list[$id]['alias'] . "\">" . $list[$id]['title'] . "</a> &raquo; " . $name;
                    
30    }
                    
76                    {
                    
77                        $list2[$row['id']]['name'] = "<a href=\"" . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=" . $list2[$row['id']]['alias'] . "\">" . $list2[$row['id']]['name'] . "</a>";
                    
78                    }
                    
88                    {
                    
89                        $list2[$row['id']]['name'] = "<a href=\"" . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name . "\">" . $module_info['custom_title'] . "</a> &raquo; " . $list2[$row['id']]['name'];
                    
90                    }
                    
169            {
                    
170                $catid = intval( $c['id'] );
                    
171                break;
                    
181	            'title' => $module_info['custom_title'], //
                    
182	            'src' => NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=rss"  //
                    
183	        );
                    
                
RoleController.php https://bitbucket.org/zurmo/zurmo/ | PHP | 185 lines
                    
1<?php
                    
2    /*********************************************************************************
                    
92        {
                    
93            $role            = Role::getById(intval($id));
                    
94            $title           = Zurmo::t('Core', 'Edit');
                    
108         * get the effective changes until the cache is cleared across the application.
                    
109         * (non-PHPdoc)
                    
110         * @see ZurmoBaseController::actionAfterSuccessfulModelSave()
                    
151        {
                    
152            $role = Role::GetById(intval($id));
                    
153            $role->delete();
                    
                
RoleInstance.php git://github.com/WindowsAzure/azure-sdk-for-php.git | PHP | 329 lines
                    
1<?php
                    
2
                    
14 *
                    
15 * PHP version 5
                    
16 *
                    
18 *
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright 2012 Microsoft Corporation
                    
22 *
                    
23 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
24 */
                    
35 *
                    
36 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
37 * @copyright 2012 Microsoft Corporation
                    
41 *
                    
42 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
43 */
                    
                
api_b2b_2_0_region.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 182 lines
                    
1<?php
                    
2include_once(CORE_DIR.'/api/shop_api_object.php');
                    
152        FROM sdb_dly_type t INNER JOIN sdb_dly_h_area a ON t.dt_id = a.dt_id 
                    
153        WHERE t.disabled = \'false\' AND t.dt_status = 1 AND a.areaid_group like \'%,'.intval($areaid).',%\' '.$where.' ORDER BY t.ordernum ASC , a.dha_id ASC'); 
                    
154        foreach( $rs1 as $val1) {
                    
                
MBPartnerLocation.java https://adempiere.svn.codeplex.com/svn | Java | 255 lines
                    
30 *     		<li>FR [ 2788465 ] MBPartnerLocation.getForBPartner method  add trxName
                    
31 *				https://sourceforge.net/tracker/index.php?func=detail&aid=2788465&group_id=176962&atid=879335
                    
32 */
                    
160		m_uniqueName = getName();
                    
161		m_unique = MSysConfig.getIntValue("START_VALUE_BPLOCATION_NAME", 0, getAD_Client_ID(), getAD_Org_ID());
                    
162		if (m_unique < 0 || m_unique > 4)
                    
                
of-taxonomy-walker.php https://bitbucket.org/purenetgit/search-filter.git | PHP | 319 lines
                    
1<?php
                    
2
                    
90			if ( !empty($show_count) )
                    
91				$link .= ' (' . intval($category->count) . ')';
                    
92
                    
139			if ( !empty($show_count) )
                    
140				$link .= ' (' . intval($category->count) . ')';
                    
141				
                    
213			if ( !empty($show_count) )
                    
214				$link .= '&nbsp;&nbsp;(' . intval($category->count) . ')';
                    
215				
                    
                
space_poll.php https://zport.svn.codeplex.com/svn | PHP | 257 lines
                    
1<?php
                    
2/*
                    
3	[UCenter Home] (C) 2007-2008 Comsenz Inc.
                    
4	$Id: space_poll.php 13206 2009-08-20 02:31:30Z liguode $
                    
5*/
                    
10
                    
11$page = empty($_GET['page'])?1:intval($_GET['page']);
                    
12if($page<1) $page=1;
                    
12if($page<1) $page=1;
                    
13$pid = empty($_GET['pid'])?0:intval($_GET['pid']);
                    
14
                    
45		if(empty($poll['summary']) && !$poll['notify']) {
                    
46			@include_once(S_ROOT.'./source/function_cp.php');
                    
47			$note = cplang('note_poll_finish', array("space.php?uid=$poll[uid]&do=poll&pid=$poll[pid]", $poll['subject']));
                    
64	while($value = $_SGLOBAL['db']->fetch_array($query)) {
                    
65		$allvote += intval($value['votenum']);
                    
66		$option[] = $value;
                    
                
NamespaceFileCacheEngine.php git://github.com/infinitas/infinitas.git | PHP | 362 lines
                    
1<?php
                    
2	/**
                    
13	 * The settings for this cache should be
                    
14	 * defined at the bottom of /config/bootstrap.php like the following:
                    
15	 *
                    
191			$time = time();
                    
192			$cachetime = intval($readable->read(11));
                    
193
                    
                
locallib.php https://github.com/nadavkav/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>
                    
                
ListHandler.php https://code.google.com/p/molinos-cms/ | PHP | 239 lines
                    
1<?php
                    
2/**
                    
79			$options['limit'] = $filter['#limit'];
                    
80		if (isset($filter['#limit']) and $tmp = intval($this->arg('skip')))
                    
81			$filter['#offset'] = $tmp;
                    
                
mapfile.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 375 lines
                    
1<?php
                    
2define('DF_BEGIN',0);
                    
27            $slen = strlen($data);
                    
28            $bs = intval(ceil($slen/$this->bs));
                    
29
                    
308        if(!$this->hs){
                    
309            $this->hs = intval($this->maxsize/10);
                    
310        }
                    
                
Renderer.php https://bitbucket.org/ikerzaphoz/mosquiteras.flexol.es.git | 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);
                    
                
ctl.messenger.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 333 lines
                    
1<?php
                    
2define('MANUAL_SEND','MANUAL_SEND');
                    
43        
                    
44        $this->begin('index.php?ctl=member/messenger&act=outbox&p[0]='.$sender);
                    
45        $mdl = $this->system->loadModel('resources/message');
                    
55        if($ret){
                    
56            $this->splash('success','index.php?ctl=member/messenger&act=index');
                    
57        }else{
                    
57        }else{
                    
58            $this->splash('failed','index.php?ctl=member/messenger&act=index');
                    
59        }
                    
64        if ($messenger->saveActions($_POST['actdo'])) {
                    
65            $this->splash('success', 'index.php?ctl=member/messenger&act=index');
                    
66        }else{
                    
66        }else{
                    
67            $this->splash('failed','index.php?ctl=member/messenger&act=index');
                    
68        }
                    
                
setup.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 233 lines
                    
31            }
                    
32            $admin_file = ( file_exists( NV_ROOTDIR . "/modules/" . $module_file . "/admin.functions.php" ) and file_exists( NV_ROOTDIR . "/modules/" . $module_file . "/admin/main.php" ) ) ? 1 : 0;
                    
33            $custom_title = preg_replace( '/(\W+)/i', ' ', $setmodule );
                    
33            $custom_title = preg_replace( '/(\W+)/i', ' ', $setmodule );
                    
34            $in_menu = ( file_exists( NV_ROOTDIR . "/modules/" . $module_file . "/funcs/main.php" ) ) ? 1 : 0;
                    
35            $db->sql_query( "INSERT INTO `" . NV_MODULES_TABLE . "` (`title`, `module_file`, `module_data`, `custom_title`, `set_time`, `admin_file`, `theme`, `keywords`, `groups_view`, `in_menu`, `weight`, `submenu`, `act`, `admins`, `rss`) VALUES (" . $db->dbescape( $setmodule ) . ", " . $db->dbescape( $module_file ) . ", " . $db->dbescape( $module_data ) . ", " . $db->dbescape( $custom_title ) . ", " . $db->dbescape( NV_CURRENTTIME ) . ", " . $db->dbescape( $admin_file ) . ", '', '', '0', $in_menu, " . $weight . ", 1, 1, '',1)" );
                    
42                nv_insert_logs( NV_LANG_DATA, $module_name, $lang_module['modules'] . ' ' . $setmodule . '"', '', $admin_info['userid'] );
                    
43                Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=edit&mod=" . $setmodule );
                    
44                die();
                    
124{
                    
125    $check_file_main = NV_ROOTDIR . "/modules/" . $module_name_i . "/funcs/main.php";
                    
126    $check_file_functions = NV_ROOTDIR . "/modules/" . $module_name_i . "/functions.php";
                    
127	
                    
128    $check_admin_main = NV_ROOTDIR . "/modules/" . $module_name_i . "/admin/main.php";
                    
129    $check_admin_functions = NV_ROOTDIR . "/modules/" . $module_name_i . "/admin.functions.php";
                    
                
FormValidator.php git://github.com/symfony/symfony.git | PHP | 251 lines
                    
1<?php
                    
2
                    
18use Symfony\Component\Validator\Constraints\Valid;
                    
19use Symfony\Component\Validator\ConstraintValidator;
                    
20use Symfony\Component\Validator\Exception\UnexpectedTypeException;
                    
24 */
                    
25class FormValidator extends ConstraintValidator
                    
26{
                    
                
lazyest-thumbs.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 255 lines
                    
1<?php
                    
2
                    
24		if($thumbs_page != 0 && isset($_GET['offset']) && is_numeric($_GET['offset'])){
                    
25			$offset = floor(abs(intval($_GET['offset']))/$thumbs_page)*$thumbs_page;
                    
26		}
                    
40				if (imagesx($resource) > get_option('lg_thumbwidth'))
                    
41					echo '<img src="'.get_option('siteurl').'/wp-content/plugins/lazyest-gallery/lazyest-img.php?file='.$currentdir.$category.'.png'.'&amp;thumb=1" alt="" class="icon" />&raquo; '.$folder_caption."\n";
                    
42				else
                    
47				if (imagesx($resource) > get_option('lg_thumbwidth'))
                    
48					echo '<img src="'.get_option('siteurl').'/wp-content/plugins/lazyest-gallery/lazyest-img.php?file='.$currentdir.$category.'.jpg'.'&amp;thumb=1" alt="" class="icon" />&raquo; '.$folder_caption."\n";
                    
49				else
                    
54				if (imagesx($resource) > get_option('lg_thumbwidth'))
                    
55					echo '<img src="'.get_option('siteurl').'/wp-content/plugins/lazyest-gallery/lazyest-img.php?file='.$currentdir.$category.'.jpeg'.'&amp;thumb=1" alt="" class="icon" />&raquo; '.$folder_caption."\n";
                    
56				else
                    
61				if (imagesx($resource) > get_option('lg_thumbwidth'))
                    
62					echo '<img src="'.get_option('siteurl').'/wp-content/plugins/lazyest-gallery/lazyest-img.php?file='.$currentdir.$category.'.gif'.'&amp;thumb=1" alt="" class="icon" />&raquo; '.$folder_caption."\n";
                    
63				else
                    
                
api_b2b_2_0_advance.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 251 lines
                    
1<?php
                    
2include_once(CORE_DIR.'/api/shop_api_object.php');
                    
34        $member_advance = $data['advance'];
                    
35        $rs = $this->db->exec('SELECT * FROM sdb_members WHERE member_id='.intval($member_id));
                    
36        $sql = $this->db->getUpdateSQL($rs,$data);
                    
58        $error_msg = '';
                    
59        if($rs = $this->db->exec('SELECT advance,member_id FROM sdb_members WHERE member_id='.intval($member_id))){
                    
60            $rows = $this->db->getRows($rs,1);
                    
192        $member_advance = $data['advance'];
                    
193        $rs = $this->db->exec('SELECT * FROM sdb_members WHERE member_id='.intval($member_id));
                    
194        $sql = $this->db->getUpdateSQL($rs,$data);
                    
                
FeedbackForm.class.php http://energine.googlecode.com/svn/trunk/ | PHP | 260 lines
                    
1<?php
                    
2/**
                    
160                    if (isset($data['feed_type']) &&
                    
161                            intval($data['feed_type'])) {
                    
162                        $recipientID = $data['feed_type'];
                    
216    protected function checkCaptcha() {
                    
217        require_once('core/kernel/recaptchalib.php');
                    
218        $privatekey = $this->getConfigValue('recaptcha.private');
                    
                
ArenaCommand.php https://gitlab.com/ProjectInfinity/LeetGamePvP.git | PHP | 222 lines
                    
1<?php
                    
2
                    
204
                    
205                        $this->plugin->getArenaManager()->deleteSpawn($arena, intval($args[3])) ? $sender->sendMessage(TextFormat::GREEN.'Successfully deleted spawn point.') : $sender->sendMessage(TextFormat::RED.'Failed to delete spawn point.');
                    
206
                    
                
class-wc-rest-order-notes-controller.php https://bitbucket.org/spirulineteam/spiruline.git | 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 ) );
                    
                
sofortLib_confirm_sr.inc.php https://bitbucket.org/programmerlab/ourteam.co.in.git | PHP | 312 lines
                    
1<?php
                    
2defined('_JEXEC') or die('Restricted access');
                    
15 * $Date: 2012-11-23 17:15:47 +0100 (Fri, 23 Nov 2012) $
                    
16 * @version SofortLib 1.5.4  $Id: sofortLib_confirm_sr.inc.php 5773 2012-11-23 16:15:47Z dehn $
                    
17 * @author SOFORT AG http://www.sofort.com (integration@sofort.com)
                    
132		$tax = number_format($tax, 2, '.', '');
                    
133		$quantity = intval($quantity);
                    
134		$this->_parameters['items']['item'][] = array(
                    
260	 * Parse the XML (override)
                    
261	 * (non-PHPdoc)
                    
262	 * @see SofortLib_Abstract::_parseXml()
                    
268	 * Handle errors if occurred
                    
269	 * (non-PHPdoc)
                    
270	 * @see SofortLib::_handleErrors()
                    
                
AdminShopGroupController.php https://bitbucket.org/Yanachkov/updatepanda18.git | PHP | 371 lines
                    
1<?php
                    
2/*
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/osl-3.0.php
                    
11* If you did not receive a copy of the license and are unable to
                    
22*  @copyright  2007-2017 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',
                    
                
AdTag.php https://github.com/liftiuminc/liftium.git | PHP | 307 lines
                    
1<?php
                    
2
                    
177
                    
178		if (intval(@$criteria['limit']) > 0 ){
                    
179			$sql .= " LIMIT ?";
                    
181		}
                    
182		if (intval(@$criteria['offset']) > 0 ){
                    
183			$sql .= " OFFSET ?";
                    
294                while($row = $sth->fetch(PDO::FETCH_ASSOC)){
                    
295                        if (intval($row['attempts']) <= intval($limit)){
                    
296                                return true;
                    
                
rebuildImages.php https://code.google.com/p/alfresco-php-sdk/ | PHP | 276 lines
                    
1<?php
                    
2/*
                    
4 *
                    
5 * Usage: php rebuildImages.php [--missing] [--dry-run]
                    
6 * Options:
                    
73		printf( "%s: %6.2f%% done on %s; ETA %s [%d/%d] %.2f/sec <%.2f%% updated>\n",
                    
74			wfTimestamp( TS_DB, intval( $now ) ),
                    
75			$portion * 100.0,
                    
76			$this->table,
                    
77			wfTimestamp( TS_DB, intval( $eta ) ),
                    
78			$completed,
                    
                
attach.php https://bitbucket.org/alex_poluektov/itech_test.git | PHP | 330 lines
                    
1<?php
                    
2/**
                    
149		}
                    
150		else if (($id = intval($id)) && $id > 0)
                    
151			$filter["ID"] = $id;
                    
                
admin.php https://bitbucket.org/re_al_/real.test.spip.git | PHP | 299 lines
                    
1<?php
                    
2
                    
76 * Cette meta contient le nom du script et, à un hachage près, du demandeur.
                    
77 * Le code de ecrire/index.php dévie toute demande d'exécution d'un script
                    
78 * vers le script d'administration indiqué par cette meta si elle est là.
                    
108			if (!preg_match('/^(.*)_(\d+)_/', $GLOBALS['meta']['admin'], $l)
                    
109				or intval($l[2]) != $GLOBALS['visiteur_session']['id_auteur']
                    
110			) {
                    
                
AdminGroups.php https://github.com/sealence/local.git | PHP | 181 lines
                    
46		$obj = $this->loadObject(true);
                    
47		$defaultLanguage = intval(Configuration::get('PS_LANG_DEFAULT'));
                    
48		$languages = Language::getLanguages();
                    
86		
                    
87		$currentIndex = 'index.php?tab=AdminGroups';
                    
88		$obj = $this->loadObject(true);
                    
137					<td class="center" width="60px">
                    
138						<a href="index.php?tab=AdminCustomers&id_customer='.$customer['id_customer'].'&viewcustomer&token='.Tools::getAdminToken('AdminCustomers'.intval(Tab::getIdFromClassName('AdminCustomers')).intval($cookie->id_employee)).'">
                    
139						<img src="../img/admin/details.gif" alt="'.$this->l('View orders').'" /></a>
                    
139						<img src="../img/admin/details.gif" alt="'.$this->l('View orders').'" /></a>
                    
140						<a href="index.php?tab=AdminCustomers&id_customer='.$customer['id_customer'].'&addcustomer&token='.Tools::getAdminToken('AdminCustomers'.intval(Tab::getIdFromClassName('AdminCustomers')).intval($cookie->id_employee)).'">
                    
141						<img src="../img/admin/edit.gif" alt="'.$this->l('Modify this customer').'" /></a>
                    
141						<img src="../img/admin/edit.gif" alt="'.$this->l('Modify this customer').'" /></a>
                    
142						<a href="index.php?tab=AdminCustomers&id_customer='.$customer['id_customer'].'&deletecustomer&token='.Tools::getAdminToken('AdminCustomers'.intval(Tab::getIdFromClassName('AdminCustomers')).intval($cookie->id_employee)).'" onclick="return confirm(\''.$this->l('Are you sure?', __CLASS__, true, false).'\');">
                    
143						<img src="../img/admin/delete.gif" alt="'.$this->l('Delete this customer').'" /></a>
                    
                
BCGBarcode.php https://bitbucket.org/dpxlogistic/digitalefs.git | PHP | 436 lines
                    
1<?php
                    
2/**
                    
8 * Copyright (C) Jean-Sebastien Goupil
                    
9 * http://www.barcodephp.com
                    
10 */
                    
10 */
                    
11include_once('BCGColor.php');
                    
12include_once('BCGLabel.php');
                    
12include_once('BCGLabel.php');
                    
13include_once('BCGArgumentException.php');
                    
14include_once('BCGDrawException.php');
                    
121    public function setScale($scale) {
                    
122        $scale = intval($scale);
                    
123        if ($scale <= 0) {
                    
223    public function setOffsetX($offsetX) {
                    
224        $offsetX = intval($offsetX);
                    
225        if ($offsetX < 0) {
                    
                
functions_thumbs.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 387 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
120
                    
121	if (intval($config['allow_ftp_upload']))
                    
122	{
                    
185
                    
186	if (intval($config['allow_ftp_upload']))
                    
187	{
                    
281
                    
282	if (intval($config['allow_ftp_upload']))
                    
283	{
                    
308
                    
309	if (!intval($config['allow_ftp_upload']))
                    
310	{
                    
                
BacklinkCache.php https://gitlab.com/qiusct/mediawiki-i.git | PHP | 493 lines
                    
1<?php
                    
2/**
                    
193			if ( $startId ) {
                    
194				$conds[] = "$fromField >= " . intval( $startId );
                    
195			}
                    
196			if ( $endId ) {
                    
197				$conds[] = "$fromField <= " . intval( $endId );
                    
198			}
                    
                
db6605f8562b0e3bd4aa4db1009b1027554017e8.file.notification_bt.tpl.php https://bitbucket.org/tippycracker/autokraitis.git | PHP | 178 lines
                    
78		<span id="gamification_notif_number_wrapper" class="notifs_badge">
                    
79			<span id="gamification_notif_value"><?php echo intval($_smarty_tpl->tpl_vars['notification']->value);?>
                    
80</span>
                    
128							<li class="<?php if ($_smarty_tpl->tpl_vars['badge']->value->validated) {?> unlocked <?php } else { ?> locked <?php }?>" style="float:left;">
                    
129								<span class="<?php if ($_smarty_tpl->tpl_vars['badge']->value->validated) {?> unlocked_img <?php } else { ?> locked_img <?php }?>" <?php if ($_smarty_tpl->tpl_vars['badge']->value->validated) {?>style="left: 12px;"<?php }?>></span>
                    
130								<div class="gamification_badges_title"><span><?php if ($_smarty_tpl->tpl_vars['badge']->value->validated) {?> <?php echo smartyTranslate(array('s'=>'Last badge :','mod'=>'gamification'),$_smarty_tpl);?>
                    
132 <?php }?></span></div>
                    
133								<div class="gamification_badges_img" data-placement="<?php if ($_smarty_tpl->tpl_vars['i']->value<=1) {?>bottom<?php } else { ?>top<?php }?>" data-original-title="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['escape'][0][0]->smartyEscape($_smarty_tpl->tpl_vars['badge']->value->description,'html','UTF-8');?>
                    
134"><img src="<?php echo $_smarty_tpl->tpl_vars['badge']->value->getBadgeImgUrl();?>
                    
153							<li class="<?php if ($_smarty_tpl->tpl_vars['badge']->value->validated) {?> unlocked <?php } else { ?> locked <?php }?>" style="float:left;">
                    
154								<span class="<?php if ($_smarty_tpl->tpl_vars['badge']->value->validated) {?> unlocked_img <?php } else { ?> locked_img <?php }?>" <?php if ($_smarty_tpl->tpl_vars['badge']->value->validated) {?>style="left: 12px;"<?php }?>></span>
                    
155								<div class="gamification_badges_title"><span><?php if ($_smarty_tpl->tpl_vars['badge']->value->validated) {?> <?php echo smartyTranslate(array('s'=>'Last badge :','mod'=>'gamification'),$_smarty_tpl);?>
                    
157 <?php }?></span></div>
                    
158								<div class="gamification_badges_img" data-placement="<?php if ($_smarty_tpl->tpl_vars['i']->value<=1) {?>bottom<?php } else { ?>top<?php }?>"data-toggle="tooltip" data-original-title="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['escape'][0][0]->smartyEscape($_smarty_tpl->tpl_vars['badge']->value->description,'html','UTF-8');?>
                    
159"><img src="<?php echo $_smarty_tpl->tpl_vars['badge']->value->getBadgeImgUrl();?>
                    
                
sets.php https://bitbucket.org/saltwaterdev/agilyx.com.git | PHP | 207 lines
                    
1<?php
                    
2namespace Concrete\Controller\SinglePage\Dashboard\System\Attributes;
                    
36	</script>');
                    
37        if (!intval($categoryID)) {
                    
38            $this->redirect('/dashboard/system/attributes/sets');
                    
                
class-avada-gravity-forms-tags-merger.php https://bitbucket.org/senadir/innovate.git | PHP | 355 lines
                    
1<?php
                    
2/**
                    
322			return null;
                    
323		} elseif ( ! $do_encrypt && is_numeric( $entry_id ) && intval( $entry_id ) > 0 ) {
                    
324			return $entry_id;
                    
326			$entry_id = is_callable( array( 'GFCommon', 'decrypt' ) ) ? GFCommon::decrypt( $entry_id ) : $entry_id;
                    
327			return intval( $entry_id );
                    
328		}
                    
354}
                    
355/* Omit closing PHP tag to avoid "Headers already sent" issues. */
                    
356
                    
                
ApiFeedWatchlist.php https://gitlab.com/qiusct/mediawiki-i.git | PHP | 280 lines
                    
1<?php
                    
2/**
                    
66			// limit to the number of hours going from now back
                    
67			$endTime = wfTimestamp( TS_MW, time() - intval( $params['hours'] * 60 * 60 ) );
                    
68
                    
271		return array(
                    
272			'api.php?action=feedwatchlist',
                    
273			'api.php?action=feedwatchlist&allrev=&hours=6'
                    
                
class-statistics.php https://bitbucket.org/minhnguyen19942/batdongsan.git | PHP | 255 lines
                    
1<?php
                    
2
                    
177            $check_cron         = get_option('tpio_cron_status');
                    
178            $total_cron         = intval(get_option('tpio_cron_total'));
                    
179            $total_processed_cron     = intval(get_option('tpio_cron_run'));
                    
214                'success_detail' => json_decode($success_detail),
                    
215                'total_error'    => intval($total_error),
                    
216                'force'          => $force,
                    
                
softenDbs.class.php https://github.com/legendar/soften.git | PHP | 328 lines
                    
1<?php
                    
2
                    
10    function __construct() {
                    
11        require_once('DB.php');
                    
12        $this->emptyData();
                    
42        $this->dsn = array(
                    
43            'phptype'  => $conf['type'],
                    
44            //'dbsyntax' => false,
                    
265        $args = func_get_args();
                    
266        $ver = intval(str_replace(".","",$this->db->apiVersion()));
                    
267        if($ver < 178) return $this->db->raiseError(DB_ERROR_UNSUPPORTED);
                    
                
class-sitemaps.php https://bitbucket.org/callum-harrod/thestudentroom.git | PHP | 556 lines
                    
1<?php
                    
2/**
                    
132		if ( ! empty( $rewrite ) ) {
                    
133			add_rewrite_rule( $rewrite, 'index.php?sitemap=' . $name, 'top' );
                    
134		}
                    
148		if ( ! empty( $rewrite ) ) {
                    
149			add_rewrite_rule( $rewrite, 'index.php?xsl=' . $name, 'top' );
                    
150		}
                    
159	public function set_n( $current_page ) {
                    
160		if ( is_scalar( $current_page ) && intval( $current_page ) > 0 ) {
                    
161			$this->current_page = intval( $current_page );
                    
                
block_stat.php https://github.com/bluelovers/Discuz.git | PHP | 200 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: block_blank.php 6757 2010-03-25 09:01:29Z cnteacher $
                    
8 */
                    
132			$class = ($index-- == 0) ? ' class="bbn"' : '';
                    
133			$html .= "<th$class><p>".intval($forum['posts']).'</p>'.(!empty($parameter['posts_title']) ? $parameter['posts_title'] : lang('block/stat', 'stat_posts')).'</th>';
                    
134		}
                    
136			$class = ($index-- == 0) ? ' class="bbn"' : '';
                    
137		    $html .= "<th$class><p>".intval($_G['cache']['groupindex']['groupnum']).'</p>'.(!empty($parameter['groups_title']) ? $parameter['groups_title'] : lang('block/stat', 'stat_groups')).'</th>';
                    
138		}
                    
141			$class = ($index-- == 0) ? ' class="bbn"' : '';
                    
142			$html .= "<th$class><p>".intval($_G['cache']['userstats']['totalmembers']).'</p>'.(!empty($parameter['members_title']) ? $parameter['members_title'] : lang('block/stat', 'stat_members')).'</th>';
                    
143		}
                    
145			$class = ($index-- == 0) ? ' class="bbn"' : '';
                    
146			$html .= "<th$class><p>".intval($_G['cache']['groupindex']['todayposts']).'</p>'.(!empty($parameter['groupnewposts_title']) ? $parameter['groupnewposts_title'] : lang('block/stat', 'stat_groupnewposts')).'</th>';
                    
147		}
                    
                
goods_auto.php https://gitlab.com/BGCX261/zishashop-svn-to-git.git | PHP | 217 lines
                    
1<?php
                    
2
                    
12 * $Author: testyang $
                    
13 * $Id: goods_auto.php 15013 2008-10-23 09:31:42Z testyang $
                    
14 */
                    
16define('IN_ECS', true);
                    
17require(dirname(__FILE__) . '/includes/init.php');
                    
18admin_priv('goods_auto');
                    
18admin_priv('goods_auto');
                    
19$smarty->assign('thisfile', 'goods_auto.php');
                    
20if ($_REQUEST['act'] == 'list')
                    
53    $db->query($sql);
                    
54    $links[] = array('text' => $_LANG['goods_auto'], 'href' => 'goods_auto.php?act=list');
                    
55    sys_msg($_LANG['edit_ok'], 0 ,$links);
                    
65
                    
66    $id    = intval($_POST['id']);
                    
67    $time = local_strtotime(trim($_POST['val']));
                    
                
ValidatorBuilder.php https://github.com/damienf/songs.git | PHP | 296 lines
                    
1<?php
                    
2
                    
67    /**
                    
68     * @var ConstraintValidatorFactoryInterface
                    
69     */
                    
243     */
                    
244    public function setConstraintValidatorFactory(ConstraintValidatorFactoryInterface $validatorFactory)
                    
245    {
                    
291
                    
292        $validatorFactory = $this->validatorFactory ?: new ConstraintValidatorFactory();
                    
293
                    
                
epay.php https://bitbucket.org/rubbystar/carimod.git | PHP | 196 lines
                    
1<?php
                    
2/**
                    
9defined('_JEXEC') or die('Restricted access');
                    
10?><?php
                    
11class plgHikashoppaymentEpay extends hikashopPaymentPlugin
                    
14		'AUD','CAD','EUR','GBP','JPY','USD','NZD','CHF','HKD','SGD',
                    
15		'SEK','DKK','PLN','NOK','HUF','CZK','MXN','BRL','MYR','PHP',
                    
16		'TWD','THB','ILS','TRY'
                    
39	function getVars($order) {
                    
40		$callback_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=epay&tmpl=component&lang='.$this->locale.$this->url_itemid;
                    
41		$accept_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=after_end&order_id='.$order->order_id.$this->url_itemid;
                    
41		$accept_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=after_end&order_id='.$order->order_id.$this->url_itemid;
                    
42		$decline_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=order&task=cancel_order&order_id='.$order->order_id.$this->url_itemid;
                    
43
                    
46			"orderid" => $order->order_id,
                    
47			"amount" => intval($order->order_full_price*100), //minor units
                    
48			"currency" => $this->get_iso_code($this->currency->currency_code),
                    
                
content-product.php https://bitbucket.org/hcdesenvolvimentos/adegamalbec_loja.git | PHP | 292 lines
                    
60			<!-- DESCONTO PORCENTAGEM -->
                    
61			<?php
                    
62
                    
79
                    
80			<span class="desconto-porcetagem"><?php echo intval($desconto); ?>%</span>
                    
81			<?php }; ?>
                    
125	<div class="descricao-produto">
                    
126		<?php
                    
127			/**
                    
137	<!-- PREÇO -->
                    
138	<p class="preco">R$ <?php echo number_format((float)$product->get_price(),2, ',', '.'); ?></p>
                    
139	<?php
                    
270</div>
                    
271<?php
                    
272	/**
                    
                
ijpost.php https://gitlab.com/sim6/friendica-addons.git | PHP | 232 lines
                    
1<?php
                    
2
                    
12function ijpost_install() {
                    
13    register_hook('post_local',           'addon/ijpost/ijpost.php', 'ijpost_post_local');
                    
14    register_hook('notifier_normal',      'addon/ijpost/ijpost.php', 'ijpost_send');
                    
14    register_hook('notifier_normal',      'addon/ijpost/ijpost.php', 'ijpost_send');
                    
15    register_hook('jot_networks',         'addon/ijpost/ijpost.php', 'ijpost_jot_nets');
                    
16    register_hook('connector_settings',      'addon/ijpost/ijpost.php', 'ijpost_settings');
                    
16    register_hook('connector_settings',      'addon/ijpost/ijpost.php', 'ijpost_settings');
                    
17    register_hook('connector_settings_post', 'addon/ijpost/ijpost.php', 'ijpost_settings_post');
                    
18
                    
20function ijpost_uninstall() {
                    
21    unregister_hook('post_local',       'addon/ijpost/ijpost.php', 'ijpost_post_local');
                    
22    unregister_hook('notifier_normal',  'addon/ijpost/ijpost.php', 'ijpost_send');
                    
22    unregister_hook('notifier_normal',  'addon/ijpost/ijpost.php', 'ijpost_send');
                    
23    unregister_hook('jot_networks',     'addon/ijpost/ijpost.php', 'ijpost_jot_nets');
                    
24    unregister_hook('connector_settings',      'addon/ijpost/ijpost.php', 'ijpost_settings');
                    
                
action.php http://textmotion.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2
                    
18 * @lastmodified    $Date: 2008-11-07 02:50:31 +1100 (Fri, 07 Nov 2008) $
                    
19 * @license         http://www.opensource.org/licenses/mit-license.php The MIT License
                    
20 *
                    
174
                    
175    $param->set('article.status', intval($param->get('article.status')));
                    
176    $param->set('article.sticky', intval($param->get('article.sticky')));
                    
                
account_edit.php https://bitbucket.org/ayerspro/uchef.git | PHP | 310 lines
                    
3
                    
4require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
5require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/sale/prolog.php");
                    
18
                    
19$ID = IntVal($ID);
                    
20
                    
27
                    
28		$USER_ID = IntVal($USER_ID);
                    
29		if ($USER_ID <= 0)
                    
47				);
                    
48			if (IntVal($num) > 0)
                    
49				$errorMessage .= str_replace("#USER#", $USER_ID, str_replace("#CURRENCY#", $CURRENCY, GetMessage("SAE_ALREADY_EXISTS"))).".<br>";
                    
125	{
                    
126		$ID = IntVal($arUserAccount["ID"]);
                    
127
                    
                
latest-posts.php https://bitbucket.org/tulsagraphics/themes.git | PHP | 330 lines
                    
1<?php
                    
2
                    
321			$excerpt .= '<p itemprop="description" class="excerpt">';
                    
322			$excerpt .= $text_length > 0 ? mb_substr(get_the_excerpt(), 0, intval($text_length)) : get_the_excerpt($id);
                    
323			$excerpt .= '...</p>';
                    
                
link_menu.php https://github.com/e107/e107.git | PHP | 181 lines
                    
1<?php
                    
2if (!defined('e107_INIT')) { exit; }
                    
6{
                    
7	header('location:'.e_BASE.'index.php');
                    
8	exit;
                    
11unset($text);
                    
12require_once(e_PLUGIN.'links_page/link_class.php');
                    
13$lc = new linkclass();
                    
13$lc = new linkclass();
                    
14require_once(e_HANDLER."form_handler.php");
                    
15$rs = new form;
                    
17
                    
18include_lan(e_PLUGIN."links_page/languages/".e_LANGUAGE.".php");
                    
19
                    
35$text = "";
                    
36$baseurl = e_PLUGIN_ABS."links_page/links.php";
                    
37if(isset($linkspage_pref['link_menu_navigator_frontpage']) && $linkspage_pref['link_menu_navigator_frontpage']){
                    
                
CallbackValidatorTest.php git://github.com/symfony/symfony.git | PHP | 252 lines
                    
1<?php
                    
2
                    
17use Symfony\Component\Validator\Context\ExecutionContextInterface;
                    
18use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
                    
19
                    
46
                    
47class CallbackValidatorTest extends ConstraintValidatorTestCase
                    
48{
                    
                
functions.php https://github.com/gabordemooij/redbean.git | PHP | 520 lines
                    
1<?php
                    
2
                    
5 * If you added the proper Writer class, the facade should be able
                    
6 * to automatically load it, i.e. \RedBeanPHP\QueryWriter\MyWriter
                    
7 *
                    
127 */
                    
128function set1toNAssoc( $a, \RedBeanPHP\OODBBean $bean1, \RedBeanPHP\OODBBean $bean2 )
                    
129{
                    
137	} else {
                    
138		throw new \RedBeanPHP\RedException\SQL( "Failed to enforce 1-N Relation for $type " );
                    
139	}
                    
171	foreach ( $array as $key => $bean ) {
                    
172		asrt( intval( $key ), intval( $bean->getID() ) );
                    
173	}
                    
377
                    
378	if ( ( $writer instanceof \RedBeanPHP\QueryWriter\MySQL ) || ( $writer instanceof \RedBeanPHP\QueryWriter\CUBRID ) ) {
                    
379		$indexes = array();
                    
                
sitemapfile.php https://bitbucket.org/bohdan1217/norka.git | PHP | 442 lines
                    
1<?php
                    
2/**
                    
276
                    
277				fseek($fd, intval($p));
                    
278				fwrite($fd, str_repeat(" ", strlen(sprintf(
                    
                
stats-options.php https://bitbucket.org/krishana-choudhary/htdocs.git | PHP | 117 lines
                    
65                    <p><strong><?php _e('General Stats', 'wp-stats'); ?></strong></p>
                    
66                    <input type="checkbox" name="stats_display[]" id="wpstats_total_stats" value="total_stats"<?php checked(1, $stats_display['total_stats']); ?> />&nbsp;&nbsp;<label for="wpstats_total_stats"><?php _e('Total', 'wp-stats'); ?></label><br />
                    
67
                    
91                    <p><strong><?php _e('Authors Stats', 'wp-stats'); ?></strong></p>
                    
92                    <input type="checkbox" name="stats_display[]" id="wpstats_authors" value="authors"<?php checked(1, $stats_display['authors']); ?> />&nbsp;&nbsp;<label for="wpstats_authors"><?php _e('Authors', 'wp-stats'); ?></label><br />
                    
93
                    
97                    <p><strong><?php _e('Comments\' Members Stats', 'wp-stats'); ?></strong></p>
                    
98                    <input type="checkbox" name="stats_display[]" id="wpstats_comment_members" value="comment_members"<?php checked(1, $stats_display['comment_members']); ?> />&nbsp;&nbsp;<label for="wpstats_comment_members"><?php _e('Comment Members', 'wp-stats'); ?></label><br />
                    
99
                    
103                    <p><strong><?php _e('Misc Stats', 'wp-stats'); ?></strong></p>
                    
104                    <input type="checkbox" name="stats_display[]" id="wpstats_post_cats" value="post_cats"<?php checked(1, $stats_display['post_cats']); ?> />&nbsp;&nbsp;<label for="wpstats_post_cats"><?php _e('Post Categories', 'wp-stats'); ?></label><br />
                    
105                    <input type="checkbox" name="stats_display[]" id="wpstats_link_cats" value="link_cats"<?php checked(1, $stats_display['link_cats']); ?> />&nbsp;&nbsp;<label for="wpstats_link_cats"><?php _e('Link Categories', 'wp-stats'); ?></label><br />
                    
105                    <input type="checkbox" name="stats_display[]" id="wpstats_link_cats" value="link_cats"<?php checked(1, $stats_display['link_cats']); ?> />&nbsp;&nbsp;<label for="wpstats_link_cats"><?php _e('Link Categories', 'wp-stats'); ?></label><br />
                    
106                    <input type="checkbox" name="stats_display[]" id="wpstats_tags_list" value="tags_list"<?php checked(1, $stats_display['tags_list']); ?> />&nbsp;&nbsp;<label for="wpstats_tags_list"><?php _e('Tags List', 'wp-stats'); ?></label><br />
                    
107
                    
                
site-info.php https://bitbucket.org/SanchitSahu03/hyslifecare.git | 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/>
                    
                
mdl.adminroles.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 224 lines
                    
1<?php
                    
2require_once('shopObject.php');
                    
55        if($role){
                    
56            $rows = $this->db->select('select * from sdb_lnk_acts where role_id='.intval($role_id));
                    
57            foreach($rows as $r){
                    
97            }
                    
98            $this->db->exec("delete from sdb_lnk_acts where role_id=".intval($role_id[0]));
                    
99            if(count($new_data)>0){
                    
153    function add_new_list($list){
                    
154        include_once('adminSctl.php');
                    
155        //error_log(print_r($list,true),3,"d:/2.txt");exit;
                    
                
install_check.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 338 lines
                    
1<?php
                    
2
                    
22{
                    
23	require_once NV_ROOTDIR . '/includes/class/pclzip.class.php';
                    
24
                    
64	
                    
65		if( $sys_info['ftp_support'] and intval( $global_config['ftp_check_login'] ) == 1 )
                    
66		{
                    
67			$ftp_server = nv_unhtmlspecialchars( $global_config['ftp_server'] );
                    
68			$ftp_port = intval( $global_config['ftp_port'] );
                    
69			$ftp_user_name = nv_unhtmlspecialchars( $global_config['ftp_user_name'] );
                    
265		{
                    
266			$xtpl->assign( 'URL_GO', NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=setup" );
                    
267			$xtpl->parse( 'complete.ok' );
                    
272
                    
273		include ( NV_ROOTDIR . "/includes/header.php" );
                    
274		echo ( $contents );
                    
                
comfun.php https://xianshihai.svn.codeplex.com/svn | PHP | 332 lines
                    
1<?php
                    
2//????????
                    
97	{
                    
98		printerror("??????????","RepIp.php");
                    
99	}
                    
194	????????,??????......(ID:<font color=red><b><?=$newstart?></b></font>)
                    
195	<form name="RepDownLevelForm" method="post" action="comphome.php">
                    
196		<input type=hidden name="phome" value="RepIp">
                    
253	{
                    
254		$add.="plid='".intval($plid[$i])."' or ";
                    
255	}
                    
280	{
                    
281		printerror("??????","AddGg.php?phome=AddGg");
                    
282	}
                    
302	{
                    
303		printerror("??????","ListGg.php");
                    
304	}
                    
                
Subversion.php https://github.com/brion/mediawiki-svn.git | PHP | 363 lines
                    
1<?php
                    
2if ( !defined( 'MEDIAWIKI' ) ) die();
                    
49		} else {
                    
50			return intval( $rev );
                    
51		}
                    
138			"svn diff -r%d:%d %s %s",
                    
139			intval( $rev1 ),
                    
140			intval( $rev2 ),
                    
266				case 'size':
                    
267					$item['size'] = intval( $child->textContent );
                    
268					break;
                    
269				case 'commit':
                    
270					$item['created_rev'] = intval( $child->getAttribute( 'revision' ) );
                    
271					foreach ( $child->childNodes as $commitEntry ) {
                    
                
FunctionNode.php git://github.com/eryx/php-framework-benchmark.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        }
                    
                
update.zep.c git://github.com/phalcon/cphalcon.git | C | 541 lines
                    
5
                    
6#include <php.h>
                    
7#include "../../../php_ext.h"
                    
30 *
                    
31 * Implementation of this file has been influenced by AtlasPHP
                    
32 *
                    
32 *
                    
33 * @link    https://github.com/atlasphp/Atlas.Query
                    
34 * @license https://github.com/atlasphp/Atlas.Qyert/blob/1.x/LICENSE.md
                    
51 */
                    
52PHP_METHOD(Phalcon_DataMapper_Query_Update, __construct)
                    
53{
                    
65	ZVAL_UNDEF(&_4);
                    
66#if PHP_VERSION_ID >= 80000
                    
67	bool is_null_true = 1;
                    
                
groups.php git://github.com/concrete5/concrete5.git | PHP | 281 lines
                    
63
                    
64                    <?php
                    
65                        $af = Loader::helper('concrete/asset_library');
                    
77                <label for="gBadgeCommunityPointValue"><?=t('Community Points')?></label>
                    
78                <?=$form->text('gBadgeCommunityPointValue', h($group->getGroupBadgeCommunityPointValue()), array('class' => 'form-control'))?>
                    
79            </div>
                    
162                        <tr>
                    
163                            <?php
                    
164                                $days = $group->getGroupExpirationIntervalDays();
                    
205
                    
206            <?php if ($u->isSuperUser()) {
                    
207    ?>
                    
269	<div class="ccm-dashboard-header-buttons">
                    
270		<a href="<?php echo View::url('/dashboard/users/add_group')?>" class="btn btn-primary"><?php echo t("Add Group")?></a>
                    
271	</div>
                    
                
class_paginate.php https://bitbucket.org/ideagital-united/monex-insights.git | PHP | 202 lines
                    
1<?php
                    
2  /**
                    
7   * @copyright 2014
                    
8   * @version $Id: class_paginate.php, v1.00 2012-03-05 10:12:05 gewa Exp $
                    
9   */
                    
9   */
                    
10  if (!defined("_VALID_PHP"))
                    
11      die('Direct access to this location is not allowed.');
                    
62      {	
                    
63		  $this->items_per_page = (isset($_GET['ipp']) and !empty($_GET['ipp'])) ? intval($_GET['ipp']) : $this->default_ipp;
                    
64          $this->num_pages = ceil($this->items_total / $this->items_per_page);
                    
65          
                    
66          $this->current_page = intval(sanitize(get('pg')));
                    
67          if ($this->current_page < 1 or !is_numeric($this->current_page))
                    
94                  } else {
                    
95                      $this->retdata = "<a class=\"item\" href=\"" . phpself() . "?pg=$prev_page&amp;ipp=$this->items_per_page$this->querystring\"><i class=\"icon left arrow\"></i></a>";
                    
96                  }
                    
                
simple-tags.importer.php https://github.com/saatchidgs/ourhouse.git | PHP | 243 lines
                    
1<?php
                    
2/*
                    
108
                    
109				<form action="admin.php" method="get">
                    
110					<input type="hidden" name="import" value="simple-tags.importer" />
                    
113
                    
114					<p><label for="start"><?php _e('Start marker', 'simpletags'); ?></label><br />
                    
115						<input type="text" value="[tags]" name="start" id="start" size="10" /></p>
                    
124					<p class="submit">
                    
125						<input type="submit" name="submit" value="<?php _e('Start import &raquo;', 'simpletags'); ?>" /></p>
                    
126				</form>
                    
166				?>
                    
167				<p><?php _e("If your browser doesn't start loading the next page automatically click this link:", 'simpletags'); ?> <a href="admin.php?import=simple-tags.importer&amp;step=1&amp;action=import_embedded_tag&amp;typep=<?php echo $typep; ?>&amp;start=<?php echo $start; ?>&amp;end=<?php echo $end; ?>&amp;clean=<?php echo $clean; ?>&amp;n=<?php echo ($n + 20) ?>"><?php _e('Next content', 'simpletags'); ?></a></p>
                    
168				<script type="text/javascript">
                    
170					function nextPage() {
                    
171						location.href = '<?php get_option('siteurl'); ?>/wp-admin/admin.php?import=simple-tags.importer&step=1&action=import_embedded_tag&typep=<?php echo $typep; ?>&start=<?php echo $start; ?>&end=<?php echo $end; ?>&clean=<?php echo $clean; ?>&n=<?php echo ($n + 20) ?>';
                    
172					}
                    
                
popular-posts.php https://bitbucket.org/nreek/debikeaotrabalho.git | PHP | 196 lines
                    
158			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_attr_e( 'Title:', NECTAR_THEME_NAME ); ?></label>
                    
159			<input type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" class="widefat" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" />
                    
160		</p>
                    
163			<label for="<?php echo $this->get_field_id( 'number_of_posts' ); ?>"><?php esc_attr_e( 'Number Of Posts:', NECTAR_THEME_NAME ); ?></label>
                    
164			<input type="text" style="width: 33px;" id="<?php echo $this->get_field_id( 'number_of_posts' ); ?>" name="<?php echo $this->get_field_name( 'number_of_posts' ); ?>" value="<?php echo $instance['number_of_posts']; ?>" />
                    
165		</p>
                    
170				<option <?php if ( esc_attr__( 'Hover Featured Image Gradient And Counter', NECTAR_THEME_NAME ) == $instance['style'] ) { echo 'selected="selected"'; } ?>><?php esc_attr_e( 'Hover Featured Image Gradient And Counter', NECTAR_THEME_NAME ); ?></option>
                    
171				<option <?php if ( esc_attr__( 'Minimal Counter', NECTAR_THEME_NAME ) == $instance['style'] ) { echo 'selected="selected"'; } ?>><?php esc_attr_e( 'Minimal Counter', NECTAR_THEME_NAME ); ?></option>
                    
172				<option <?php if ( esc_attr__( 'Featured Image Left', NECTAR_THEME_NAME ) == $instance['style'] ) { echo 'selected="selected"'; } ?>><?php esc_attr_e( 'Featured Image Left', NECTAR_THEME_NAME ); ?></option>
                    
176			<label for="<?php echo $this->get_field_id( 'timeline' ); ?>"><?php esc_attr_e( 'Timeline:', NECTAR_THEME_NAME ); ?></label>
                    
177			<select id="<?php echo $this->get_field_id( 'timeline' ); ?>" name="<?php echo $this->get_field_name( 'timeline' ); ?>" class="widefat" style="width:100%;">	
                    
178				<option <?php if ( esc_attr__( 'All Time', NECTAR_THEME_NAME ) == $instance['timeline'] ) { echo 'selected="selected"'; } ?>><?php esc_attr_e( 'All Time', NECTAR_THEME_NAME ); ?></option>
                    
187				<option <?php if ( esc_attr__( 'Highest Views', NECTAR_THEME_NAME ) == $instance['orderby'] ) { echo 'selected="selected"'; } ?>><?php esc_attr_e( 'Highest Views', NECTAR_THEME_NAME ); ?></option>
                    
188				<option <?php if ( esc_attr__( 'Highest Comments', NECTAR_THEME_NAME ) == $instance['orderby'] ) { echo 'selected="selected"'; } ?>><?php esc_attr_e( 'Highest Comments', NECTAR_THEME_NAME ); ?></option>
                    
189			</select>
                    
                
class.ProcessManager.php http://scalr.googlecode.com/svn/ | PHP | 322 lines
                    
2	/**
                    
3     * This file is a part of LibWebta, PHP class library.
                    
4     *
                    
25     * @author Igor Savchenko <http://webta.net/company.html>
                    
26     * @example tests.php
                    
27     * @see tests.php
                    
201	        	           $res = posix_kill($pid, 0);
                    
202	        	           $this->Logger->debug("MPWL: Sending 0 signal to {$pid} = ".intval($res));
                    
203	        	           
                    
                
trash.php https://gitlab.com/bilovus-andriy/voda_site.git | PHP | 345 lines
                    
1<?php
                    
2/**
                    
195		if ($this->getState('list.limit') && $total < $this->getState('list.start'))
                    
196			$this->setState('list.start', intval($total / $this->getState('list.limit')) * $this->getState('list.limit'));
                    
197
                    
286		if ($this->getState('list.limit') && $total < $this->getState('list.start'))
                    
287			$this->setState('list.start', intval($total / $this->getState('list.limit')) * $this->getState('list.limit'));
                    
288
                    
                
headers.php https://bitbucket.org/trackiexa/trackiex.git | PHP | 276 lines
                    
1<?php
                    
2
                    
63			if (isset($args['_uncode_header_min_height'][0]) && $args['_uncode_header_min_height'][0] !== '') {
                    
64				$min_height = intval(preg_replace('/[^0-9]+/', '', $args['_uncode_header_min_height'][0]), 10);
                    
65				$height_style .= 'min-height: ' . $min_height . 'px;';
                    
                
industry_partners.php https://bitbucket.org/freshershist/ppm_system_repo.git | PHP | 181 lines
                    
24                        <?php } ?>
                    
25                        <p><a href="<?php echo base_url(); ?>partners/listlinks/<?php echo $value['id']; ?>"><?php echo $value['name']; ?></a></p>
                    
26                    </div>
                    
83                    <?php if(!empty($filePath)) { ?>
                    
84                        <a href="<?php echo base_url(); ?>assets/uploads/files/<?php echo $filePath; ?>">Download file <?php echo $filePath; ?></a><br>
                    
85                    <?php } ?>
                    
112                        <?php if(!empty($imgPath1)) { ?>
                    
113                        <img src="<?php echo base_url(); ?>assets/uploads/files/<?php echo $imgPath1; ?>" class="img-responsive" />
                    
114                        <?php } ?>
                    
115                        <?php if(!empty($imgPath2)) { ?>
                    
116                        <img src="<?php echo base_url(); ?>assets/uploads/files/<?php echo $imgPath2; ?>" class="img-responsive" />
                    
117                        <?php } ?>
                    
157                    ?>
                    
158                    <span class="body"><a href="<?php echo base_url(); ?>partners/show/<?php echo $value['id']; ?>/<?php echo $subcatid; ?>/<?php echo $categoryid; ?>"><?php echo $value['name']; ?></a><br>
                    
159
                    
                
class_upfront_post_data_frontend_view.php https://bitbucket.org/matthewselby/wpdev.git | PHP | 232 lines
                    
1<?php
                    
2
                    
207			$right_indent = $this->_part_view->get_property('right_indent');
                    
208			$max_col = $col - intval($left_indent) - intval($right_indent);
                    
209			$variants = Upfront_ChildTheme::getPostImageVariants();
                    
210			if (is_array($variants)) foreach ( $variants as $variant ) {
                    
211				$left = intval($variant->group->left);
                    
212				$margin_left = intval($variant->group->margin_left);
                    
212				$margin_left = intval($variant->group->margin_left);
                    
213				$margin_right = intval($variant->group->margin_right);
                    
214				$variant_max_col = $max_col - $margin_left - $margin_right;
                    
                
fp-employees.php https://bitbucket.org/Tasfeq/web-admin.git | PHP | 197 lines
                    
23	<label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title', 'sydney'); ?></label>
                    
24	<input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" />
                    
25	</p>
                    
26	<p><label for="<?php echo $this->get_field_id( 'number' ); ?>"><?php _e( 'Number of employees to show (-1 shows all of them):', 'sydney' ); ?></label>
                    
27	<input id="<?php echo $this->get_field_id( 'number' ); ?>" name="<?php echo $this->get_field_name( 'number' ); ?>" type="text" value="<?php echo $number; ?>" size="3" /></p>
                    
28    <p><label for="<?php echo $this->get_field_id('see_all'); ?>"><?php _e('Enter an URL here if you want to section to link somewhere.', 'sydney'); ?></label>
                    
28    <p><label for="<?php echo $this->get_field_id('see_all'); ?>"><?php _e('Enter an URL here if you want to section to link somewhere.', 'sydney'); ?></label>
                    
29	<input class="widefat custom_media_url" id="<?php echo $this->get_field_id( 'see_all' ); ?>" name="<?php echo $this->get_field_name( 'see_all' ); ?>" type="text" value="<?php echo $see_all; ?>" size="3" /></p>	
                    
30    <p><label for="<?php echo $this->get_field_id('see_all_text'); ?>"><?php _e('The text for the button [Defaults to <em>See all our employees</em> if left empty]', 'sydney'); ?></label>
                    
30    <p><label for="<?php echo $this->get_field_id('see_all_text'); ?>"><?php _e('The text for the button [Defaults to <em>See all our employees</em> if left empty]', 'sydney'); ?></label>
                    
31	<input class="widefat custom_media_url" id="<?php echo $this->get_field_id( 'see_all_text' ); ?>" name="<?php echo $this->get_field_name( 'see_all_text' ); ?>" type="text" value="<?php echo $see_all_text; ?>" size="3" /></p>			
                    
32	<p><label for="<?php echo $this->get_field_id( 'category' ); ?>"><?php _e( 'Enter the slug for your category or leave empty to show all employees.', 'sydney' ); ?></label>
                    
33	<input class="widefat" id="<?php echo $this->get_field_id( 'category' ); ?>" name="<?php echo $this->get_field_name( 'category' ); ?>" type="text" value="<?php echo $category; ?>" size="3" /></p>
                    
34	<p><input class="checkbox" type="checkbox" <?php checked( $center_content ); ?> id="<?php echo $this->get_field_id( 'center_content' ); ?>" name="<?php echo $this->get_field_name( 'center_content' ); ?>" />
                    
35	<label for="<?php echo $this->get_field_id( 'center_content' ); ?>"><?php _e( 'Center the employees? (use only if you have 1 or 2 employees)', 'sydney' ); ?></label></p>
                    
                
messages.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 407 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 * LICENSE: This source file is subject to LGPL license
                    
80		{
                    
81			$filter .= ' AND '.$table_prefix.'message.reporter_id=\''.intval($_GET['rid']).'\'';
                    
82		}
                    
                
ChatMessage.php https://bitbucket.org/lasalut/dating.git | PHP | 245 lines
                    
1<?php
                    
2
                    
127                $diff = $birthday->diff($now);
                    
128                return intval($diff->y);
                    
129            },
                    
145                $diff = $birthday->diff($now);
                    
146                return intval($diff->y);
                    
147            },
                    
184                    $diff = $birthday->diff($now);
                    
185                    $age = intval($diff->y);
                    
186                    $with = [
                    
199                    $diff = $birthday->diff($now);
                    
200                    $age = intval($diff->y);
                    
201                    $with = [
                    
242
                    
243        return intval($count);
                    
244    }
                    
                
inc.stats.php http://dj-r-old-admin.googlecode.com/svn/trunk/ | PHP | 190 lines
                    
1<?php  
                    
2 //error_reporting(E_ALL);
                    
26	
                    
27// meilleure solution : tout en php !
                    
28function datediff($a,$b)
                    
29	{
                    
30	$date1 = intval(substr($a,0,4))*12+intval(substr($a,4,2));
                    
31	$date2 = intval(substr($b,0,4))*12+intval(substr($b,4,2));
                    
                
CountdownTimer.php https://bitbucket.org/eoscreativeteam/divi.git | PHP | 249 lines
                    
1<?php
                    
2
                    
142				'option_category' => 'basic_option',
                    
143				'description'     => et_get_safe_localization( sprintf( __( 'This is the date the countdown timer is counting down to. Your countdown timer is based on your timezone settings in your <a href="%1$s" target="_blank" title="WordPress General Settings">WordPress General Settings</a>', 'et_builder' ), esc_url( admin_url( 'options-general.php' ) ) ) ),
                    
144				'toggle_slug'     => 'main_content',
                    
161		$gmt_divider                     = '-' === substr( $gmt_offset, 0, 1 ) ? '-' : '+';
                    
162		$gmt_offset_hour                 = str_pad( abs( intval( $gmt_offset ) ), 2, "0", STR_PAD_LEFT );
                    
163		$gmt_offset_minute               = str_pad( ( ( abs( $gmt_offset ) * 100 ) % 100 ) * ( 60 / 100 ), 2, "0", STR_PAD_LEFT );
                    
                
PostMetabox.php https://bitbucket.org/ag_codeduck/site-erb-facis.git | PHP | 346 lines
                    
1<?php
                    
2/**
                    
63
                    
64		add_action( 'load-post.php', array( $this, 'pre_register' ) );
                    
65		add_action( 'load-post-new.php', array( $this, 'pre_register' ) );
                    
82		if ( isset( $_GET['post'] ) ) {
                    
83			$this->post_data = $this->get_meta( intval( $_GET['post'] ) );
                    
84		}
                    
                
fileinfo.php http://phpwcms.googlecode.com/svn/trunk/ | PHP | 212 lines
                    
26require_once ('include/inc_lib/default.inc.php');
                    
27require_once (PHPWCMS_ROOT.'/include/inc_lib/dbcon.inc.php');
                    
28
                    
129      <tr>
                    
130        <td width="422" class="v10"><?php echo $BL['CREATED'] ?>: <strong><?php echo date($BL['DATE_FORMAT'], intval($row["f_created"])) ?></strong>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $BL['SIZE'] ?>: <strong><?php echo fsizelong($row["f_size"]) ?></strong></td>
                    
131        <td width="96" align="right"><?php 
                    
132		if(!$row["f_trash"]) {
                    
133		?><a href="include/inc_act/act_download.php?dl=<?php 
                    
134		
                    
138		
                    
139		?>" target="_blank" title="<?php echo $BL['DOWNLOAD_FILE'].": ".$filename ?>"><img src="img/button/download_disc_large.gif" alt="" width="61" height="13" border="0" /></a><?php 
                    
140		} else {
                    
142		}
                    
143		?><img src="img/leer.gif" alt="" width="9" height="1" /><img src="img/button/aktiv_12x13_<?php echo $row["f_aktiv"] ?>.gif" alt="" width="12" height="13" /><img src="img/button/public_12x13_<?php echo $row["f_public"] ?>.gif" alt="" width="12" height="13" /></td>
                    
144      </tr>
                    
                
attachments.inc.php https://gitlab.com/BGCX262/zyyhong-svn-to-git.git | PHP | 218 lines
                    
16if(!submitcheck('deletesubmit') && !submitcheck('searchsubmit')) {
                    
17	require_once DISCUZ_ROOT.'./include/forum.func.php';
                    
18	shownav('menu_maint_attaches');
                    
20?>
                    
21<form method="post" action="admincp.php?action=attachments">
                    
22<input type="hidden" name="formhash" value="<?=FORMHASH?>">
                    
64
                    
65	require_once DISCUZ_ROOT.'./include/attachment.func.php';
                    
66
                    
127				"<td class=\"altbg2\" align=\"center\"><b>$attachment[filename]</b><br />$attachment[description]</td>\n".
                    
128				"<td class=\"altbg1\" align=\"center\"><b>".($matched ? $matched : "<a href=\"attachment.php?aid=$attachment[aid]\" target=\"_blank\">[$lang[attachments_download]]</a>")."</b><br /><a href=\"$attachment[url]/$attachment[attachment]\" class=\"smalltxt\" target=\"_blank\">".cutstr($attachment['attachment'], 30)."</a></td>\n".
                    
129				"<td class=\"altbg2\" align=\"center\">$attachment[author]</td>\n".
                    
129				"<td class=\"altbg2\" align=\"center\">$attachment[author]</td>\n".
                    
130				"<td class=\"altbg1\" valign=\"middle\"><a href=\"viewthread.php?tid=$attachment[tid]\" target=\"_blank\"><b>".cutstr($attachment['subject'], 20)."</b></a><br />$lang[forum]:<a href=\"forumdisplay.php?fid=$attachment[fid]\" target=\"_blank\">$attachment[fname]</a></td>\n".
                    
131				"<td class=\"altbg2\" valign=\"middle\" align=\"center\">$attachsize</td>\n".
                    
                
editer_document.php https://github.com/imagesdesmaths/idm.git | PHP | 287 lines
                    
1<?php
                    
2
                    
29	// Envoi depuis le formulaire de creation d'un document
                    
30	if (!$id_document = intval($arg)) {
                    
31		$id_document = document_inserer();
                    
104	// Si le document est publie, invalider les caches et demander sa reindexation
                    
105	$t = sql_getfetsel("statut", "spip_documents", 'id_document='.intval($id_document));
                    
106	if ($t == 'publie') {
                    
113	if (isset($champs['fichier'])){
                    
114		$ancien_fichier = sql_getfetsel('fichier','spip_documents','id_document='.intval($id_document));
                    
115	}
                    
174		$trouver_table = charger_fonction('trouver_table','base');
                    
175		$res = sql_select('id_objet,objet','spip_documents_liens',"objet!='document' AND id_document=".intval($id_document));
                    
176		// dans 10 ans, ca nous fera un bug a corriger vers 2018
                    
191			elseif ($row['objet']=='article'
                    
192			  AND $row2 = sql_fetsel('date','spip_articles','id_article='.intval($row['id_objet'])." AND statut='publie'")){
                    
193				$statut = 'publie';
                    
                
order-address.tpl https://bitbucket.org/marketing_alfatec/colette.git | Smarty Template | 266 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
                    
26{if $opc}
                    
27	{assign var="back_order_page" value="order-opc.php"}
                    
28{else}
                    
28{else}
                    
29	{assign var="back_order_page" value="order.php"}
                    
30{/if}
                    
71	var currencyRate = '{$currencyRate|floatval}';
                    
72	var currencyFormat = '{$currencyFormat|intval}';
                    
73	var currencyBlank = '{$currencyBlank|intval}';
                    
                
AjaxController.php https://bitbucket.org/awylie199/s5t.git | PHP | 209 lines
                    
1<?php
                    
2
                    
142                    $p = $this->getDi()->productTable->load($product_id);
                    
143                    if ($plan_id > 0) $p->setBillingPlan(intval($plan_id));
                    
144                    $qty = (int)$qty;
                    
                
class-sitemaps-cache-validator.php https://bitbucket.org/reareaf/wp-re.git | PHP | 304 lines
                    
1<?php
                    
2/**
                    
251		$seconds      = ( $seconds % DAY_IN_SECONDS );
                    
252		$milliseconds = intval( substr( $milliseconds, 2, 3 ), 10 );
                    
253
                    
254		// Combine seconds and milliseconds and convert to integer.
                    
255		$validator = intval( $seconds . '' . $milliseconds, 10 );
                    
256
                    
                
bookmark.php https://bitbucket.org/reareaf/wp-re.git | PHP | 316 lines
                    
1<?php
                    
2/**
                    
254
                    
255	$link_categories = array_map( 'intval', $link_categories );
                    
256	$link_categories = array_unique( $link_categories );
                    
302	global $pagenow;
                    
303	if ( 'link-manager.php' != $pagenow && 'link-add.php' != $pagenow && 'link.php' != $pagenow )
                    
304		return;
                    
310	if ( $really_can_manage_links && current_user_can( 'install_plugins' ) ) {
                    
311		$link = network_admin_url( 'plugin-install.php?tab=search&amp;s=Link+Manager' );
                    
312		wp_die( sprintf( __( 'If you are looking to use the link manager, please install the <a href="%s">Link Manager</a> plugin.' ), $link ) );
                    
                
medias_autoriser.php https://github.com/imagesdesmaths/idm.git | PHP | 279 lines
                    
1<?php
                    
2
                    
37
                    
38	if (!$id_document=intval($id))
                    
39		return false;
                    
43	if (!isset($options['document']) OR !$document = $options['document'])
                    
44		$document = sql_fetsel('*','spip_documents','id_document='.intval($id_document));
                    
45	
                    
119	
                    
120	$s = sql_getfetsel("statut", "spip_documents", "id_document=".intval($id));
                    
121	// les admins ont le droit de modifier tous les documents existants
                    
134
                    
135		$s = sql_select("id_objet,objet", "spip_documents_liens", "id_document=".intval($id));
                    
136		while ($t = sql_fetch($s)) {
                    
161function autoriser_document_supprimer_dist($faire, $type, $id, $qui, $opt){
                    
162	if (!intval($id)
                    
163		OR !$qui['id_auteur']
                    
                
lib.php https://bitbucket.org/systime/screening2.git | PHP | 231 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;
                    
                
multi.ctrl.php https://gitlab.com/llqbaimao/o2o.git | PHP | 186 lines
                    
1<?php
                    
2/**
                    
10$setting = uni_setting($_W['uniacid'], 'default_site');
                    
11$default_site = intval($setting['default_site']);
                    
12
                    
13if($do == 'quickmenu') {
                    
14	$id = intval($_GPC['mtid']);
                    
15	$multi = pdo_fetch('SELECT id,quickmenu FROM ' . tablename('site_multi') . ' WHERE uniacid = :uniacid AND id = :id', array(':uniacid' => $_W['uniacid'], ':id' => $id));
                    
82if($do == 'post') {
                    
83	$id = intval($_GPC['multiid']);
                    
84	if(!empty($id)) {
                    
95			$pdata['title'] = trim($_GPC['title']) ? trim($_GPC['title']) : message('请填写站点标识', referer(), 'error');
                    
96			$pdata['styleid'] = intval($_GPC['styleid']);
                    
97			$pdata['status'] = intval($_GPC['status']);
                    
125if($do == 'del') {
                    
126	$id = intval($_GPC['id']);
                    
127	if($default_site == $id) {
                    
                
ForumThread.java git://github.com/Gwindow/WhatAPI.git | Java | 255 lines
                    
213	public String getUrl() {
                    
214		return "forums.php?action=viewthread&threadid=" + topicId;
                    
215	}
                    
222	public String getLastReadUrl() {
                    
223		return "forums.php?action=viewthread&threadid=" + topicId + "&page=" + lastReadPage;
                    
224	}
                    
231	public boolean subscribe(){
                    
232		return MySoup.pressLink("userhistory.php?action=thread_subscribe&topicid="
                    
233			+ getTopicId().intValue() + "&auth=" + MySoup.getAuthKey());
                    
241	public boolean unsubscribe(){
                    
242		return MySoup.pressLink("userhistory.php?action=thread_subscribe&topicid="
                    
243			+ getTopicId().intValue() + "&auth=" + MySoup.getAuthKey());
                    
                
co_do.php http://jqbird.googlecode.com/svn/trunk/ | PHP | 291 lines
                    
1<?php
                    
2require_once(dirname(__FILE__)."/config.php");
                    
2require_once(dirname(__FILE__)."/config.php");
                    
3require_once(DEDEINC."/oxwindow.class.php");
                    
4if(!isset($nid))
                    
7}
                    
8$ENV_GOBACK_URL = empty($_COOKIE["ENV_GOBACK_URL"]) ? "co_url.php" : $_COOKIE["ENV_GOBACK_URL"];
                    
9
                    
17	CheckPurview('co_Del');
                    
18	$nid = intval($nid);
                    
19	$dsql->ExecuteNoneQuery("Delete From `#@__co_htmls` where nid='$nid'");
                    
21	$dsql->ExecuteNoneQuery("Delete From `#@__co_urls` where nid='$nid'");
                    
22	ShowMsg("????????!","co_main.php");
                    
23	exit();
                    
41		{
                    
42			$nid = intval($nid);
                    
43			$dsql->ExecuteNoneQuery("Delete From `#@__co_htmls` where nid='$nid'");
                    
                
class-itsec-privilege.php https://bitbucket.org/ilayabharathishenll/smartphonecare.git | PHP | 306 lines
                    
1<?php
                    
2
                    
38
                    
39			wp_redirect( admin_url( 'user-edit.php' ) . '?user_id=' . absint( $_GET['itsec-clear-privilege'] ), '302' );
                    
40			exit();
                    
89
                    
90			$temp_role         = intval( get_user_meta( $user->ID, 'itsec_privilege_role', true ) );
                    
91			$temp_role_expires = trim( get_user_meta( $user->ID, 'itsec_privilege_expires', true ) );
                    
126					date( 'l F jS, Y \a\t g:i a', $temp_role_expires ),
                    
127					admin_url( 'user-edit.php' ),
                    
128					$user->ID,
                    
189			$role = isset( $_POST['itsec_privilege_profile']['role'] ) && $_POST['itsec_privilege_profile']['role'] != 0 ? intval( $_POST['itsec_privilege_profile']['role'] ) : false;
                    
190			$exp  = isset( $_POST['itsec_privilege_profile']['expires'] ) && intval( $_POST['itsec_privilege_profile']['expires'] ) > 0 ? $itsec_globals['current_time'] + ( intval( $_POST['itsec_privilege_profile']['expires'] ) * 60 * 60 * 24 ) : false;
                    
191
                    
256
                    
257		$temp_role         = intval( get_user_meta( $current_user->ID, 'itsec_privilege_role', true ) );
                    
258		$temp_role_expires = intval( get_user_meta( $current_user->ID, 'itsec_privilege_expires', true ) );
                    
                
note.php https://zport.svn.codeplex.com/svn | PHP | 239 lines
                    
1<?php
                    
2
                    
6
                    
7	$Id: note.php 916 2009-01-19 05:56:07Z monkey $
                    
8*/
                    
35		 * 1. 操作的名称,如:删除用户,测试连通,删除好友,取TAG数据,更新客户端缓存
                    
36		 * 2. 调用的应用的接口参数,拼接规则为 APP_URL/api/uc.php?action=test&ids=1,2,3
                    
37		 * 3. 回调的模块名称
                    
100			$appid = $app['appid'];
                    
101			if($appid == intval($appid)) {
                    
102				if($appids && !in_array($appid, $appids)) {
                    
150	function sendone($appid, $noteid = 0, $note = '') {
                    
151		require_once UC_ROOT.'./lib/xml.class.php';
                    
152		$return = FALSE;
                    
157		$this->base->load('misc');
                    
158		$apifilename = isset($app['apifilename']) && $app['apifilename'] ? $app['apifilename'] : 'uc.php';
                    
159		if($app['extra']['apppath'] && @include $app['extra']['apppath'].'./api/'.$apifilename) {
                    
                
type.c https://github.com/php/php-src.git | C | 454 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | Copyright (c) The PHP Group                                          |
                    
4   +----------------------------------------------------------------------+
                    
10   | obtain it through the world-wide-web, please send a note to          |
                    
11   | license@php.net so we can mail you a copy immediately.               |
                    
12   +----------------------------------------------------------------------+
                    
142/* {{{ Get the integer value of a variable using the optional base for the conversion */
                    
143PHP_FUNCTION(intval)
                    
144{
                    
265{
                    
266	php_is_type(INTERNAL_FUNCTION_PARAM_PASSTHRU, IS_NULL);
                    
267}
                    
271   Warning: This function is special-cased by zend_compile.c and so is usually bypassed */
                    
272PHP_FUNCTION(is_resource)
                    
273{
                    
                
authentication.php https://github.com/pal/prestashop.git | PHP | 233 lines
                    
5
                    
6include(dirname(__FILE__).'/config/config.inc.php');
                    
7include(dirname(__FILE__).'/init.php');
                    
79
                    
80		$customer->birthday = (empty($_POST['years']) ? '' : intval($_POST['years']).'-'.intval($_POST['months']).'-'.intval($_POST['days']));
                    
81
                    
96				die(Tools::displayError());
                    
97			if (intval($country->contains_states) AND !intval($address->id_state))
                    
98				$errors[] = Tools::displayError('this country require a state selection');
                    
110					{
                    
111						if (!Mail::Send(intval($cookie->id_lang), 'account', 'Welcome!', 
                    
112						array('{firstname}' => $customer->firstname, '{lastname}' => $customer->lastname, '{email}' => $customer->email, '{passwd}' => Tools::getValue('passwd')), $customer->email, $customer->firstname.' '.$customer->lastname))
                    
164			if (Configuration::get('PS_CART_FOLLOWING') AND (empty($cookie->id_cart) OR Cart::getNbProducts($cookie->id_cart) == 0))
                    
165				$cookie->id_cart = intval(Cart::lastNoneOrderedCart(intval($customer->id)));
                    
166			$id_address = intval(Address::getFirstCustomerAddressId(intval($customer->id)));
                    
                
editer_objet.php https://bitbucket.org/re_al_/real.test.spip.git | PHP | 494 lines
                    
1<?php
                    
2
                    
51	// mais on verifie qu'on a toutes les donnees qu'il faut.
                    
52	if (!$id = intval($id)) {
                    
53		// on ne sait pas si un parent existe mais on essaye
                    
57
                    
58	if (!($id = intval($id)) > 0) {
                    
59		return array($id, _L('echec enregistrement en base'));
                    
179		// dans la premiere rubrique racine
                    
180		if (!$id_rubrique = intval($id_parent)) {
                    
181			$row = sql_fetsel("id_rubrique, id_secteur, lang", "spip_rubriques", "id_parent=0", '', '0+titre,titre', "1");
                    
183		} else {
                    
184			$row = sql_fetsel("lang, id_secteur", "spip_rubriques", "id_rubrique=" . intval($id_rubrique));
                    
185		}
                    
321
                    
322	$row = sql_fetsel($sel, $table_sql, id_table_objet($objet) . '=' . intval($id));
                    
323
                    
                
allproduct.tpl https://bitbucket.org/eljosze94/automasterstore.git | Smarty Template | 142 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-2017 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
                    
82					<h5 itemprop="name">
                    
83						{if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if}
                    
84						<a class="product-name" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}" itemprop="url" >
                    
123								{capture}add=1&amp;id_product={$product.id_product|intval|escape:'htmlall':'UTF-8'}{if isset($static_token)}&amp;token={$static_token|escape:'htmlall':'UTF-8'}{/if}{/capture}
                    
124								<a class="button ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart', true, NULL, $smarty.capture.default, false)|escape:'htmlall':'UTF-8'}" rel="nofollow" title="{l s='Add to cart' mod='hotdeals'}" data-id-product="{$product.id_product|intval|escape:'htmlall':'UTF-8'}" data-minimal_quantity="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity >= 1}{$product.product_attribute_minimal_quantity|intval|escape:'htmlall':'UTF-8'}{else}{$product.minimal_quantity|intval|escape:'htmlall':'UTF-8'}{/if}">
                    
125									<span>{l s='Add to cart' mod='hotdeals'}</span>
                    
                
bc53e06c98d44bbfe0c8b41787be5c205da148b6.file.blockwishlist.tpl.php https://bitbucket.org/eljosze94/automasterstore.git | PHP | 137 lines
                    
59?>
                    
60						<dt class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['i']['first']) {?>first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['i']['last']) {?>last_item<?php } else { ?>item<?php }?>">
                    
61							<span class="quantity-formated">
                    
61							<span class="quantity-formated">
                    
62								<span class="quantity"><?php echo intval($_smarty_tpl->tpl_vars['product']->value['quantity']);?>
                    
63</span>x
                    
73', <?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
                    
74, '0', '<?php if (isset($_smarty_tpl->tpl_vars['token']->value)) {?><?php echo $_smarty_tpl->tpl_vars['token']->value;?>
                    
75<?php }?>');">
                    
79						<?php if (isset($_smarty_tpl->tpl_vars['product']->value['attributes_small'])) {?>
                    
80							<dd class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['i']['first']) {?>first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['i']['last']) {?>last_item<?php } else { ?>item<?php }?>">
                    
81								<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value['id_product'],$_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['category_rewrite']), ENT_QUOTES, 'UTF-8', true);?>
                    
118								<option value="<?php echo $_smarty_tpl->tpl_vars['wishlist']->value['id_wishlist'];?>
                    
119"<?php if ($_smarty_tpl->tpl_vars['id_wishlist']->value==$_smarty_tpl->tpl_vars['wishlist']->value['id_wishlist']||($_smarty_tpl->tpl_vars['id_wishlist']->value==false&&$_smarty_tpl->getVariable('smarty')->value['foreach']['i']['first'])) {?> selected="selected"<?php }?>>
                    
120									<?php echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['wishlist']->value['name'],22,'...'), ENT_QUOTES, 'UTF-8', true);?>
                    
                
PAPE.php https://github.com/duaiwe/php-openid.git | PHP | 308 lines
                    
1<?php
                    
2
                    
13
                    
14require_once Auth_OpenID_BaseDir.'/OpenID/Extension.php';
                    
15
                    
129        if ($max_auth_age_str) {
                    
130            $this->max_auth_age = Auth_OpenID::intval($max_auth_age_str);
                    
131        } else {
                    
253        if ($nist_level_str !== null) {
                    
254            $nist_level = Auth_OpenID::intval($nist_level_str);
                    
255
                    
                
admin_functions.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 472 lines
                    
1<?php
                    
2
                    
46				'groups_view' => $row['groups_view'],
                    
47				'in_menu' => intval( $row['in_menu'] ),
                    
48				'submenu' => intval( $row['submenu'] ),
                    
48				'submenu' => intval( $row['submenu'] ),
                    
49				'act' => intval( $row['act'] ),
                    
50				'admins' => $row['admins'],
                    
79
                    
80	$content_config = "<?php\n\n";
                    
81	$content_config .= NV_FILEHEAD . "\n\n";
                    
93		{
                    
94			$content_config .= "\$global_config['" . $c_config_name . "'] = " . intval( $c_config_value ) . ";\n";
                    
95		}
                    
99
                    
100	$return = file_put_contents( NV_ROOTDIR . "/" . NV_DATADIR . "/config_global.php", $content_config, LOCK_EX );
                    
101	nv_delete_all_cache();
                    
                
Movement.php https://bitbucket.org/bo_hmb/bo_hmb.git | PHP | 377 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2
                    
71            $iTotalRecords = $this->M_movement->count_all($where);
                    
72            $iDisplayLength = intval($_REQUEST['length']);
                    
73            $iDisplayLength = $iDisplayLength < 0 ? $iTotalRecords : $iDisplayLength; 
                    
73            $iDisplayLength = $iDisplayLength < 0 ? $iTotalRecords : $iDisplayLength; 
                    
74            $iDisplayStart = intval($_REQUEST['start']);
                    
75            $sEcho = intval($_REQUEST['draw']);
                    
                
WiserFileSystem.java http://webscheme.googlecode.com/svn/trunk/ | Java | 365 lines
                    
26		// Create XML RPC Client object, bind it to Wiser endpoint
                    
27		URL rpcUrl = new URL(codeBase, "/fm/xmlrpc.php");
                    
28		System.out.println("rpcUrl= " + rpcUrl);
                    
61		try {
                    
62			replyCRC = ((Integer) result).intValue();
                    
63		} catch (Exception ex) {
                    
66
                    
67		// PHP's CRC function returns a signed integer
                    
68		// so we need to convert Java's long to compare
                    
104		try {
                    
105			replyCRC = ((Integer) result).intValue();
                    
106		} catch (Exception ex) {
                    
109
                    
110		// PHP's CRC function returns a signed integer
                    
111		// so we need to convert Java's long to compare
                    
                
get_activity.php http://gdata-samples.googlecode.com/svn/trunk/ | PHP | 407 lines
                    
1<?php
                    
2/* Copyright (c) 2009 Google Inc.
                    
18 
                    
19require_once 'config.inc.php';
                    
20require_once 'Zend/Loader.php';
                    
44    if ($memcache !== null) {
                    
45      $expirationTime = $GLOBALS['ueber-activity-viewer-php_config']['feed_expiry_time'] ;
                    
46      $key = 'the-ueber-feed_page-'. $page;
                    
57function getMemcache() {
                    
58  if($GLOBALS['ueber-activity-viewer-php_config']['enable_memcache']) {
                    
59    $memcache = new Memcache;
                    
59    $memcache = new Memcache;
                    
60    $server = $GLOBALS['ueber-activity-viewer-php_config']['memcache_server'];
                    
61    $port = $GLOBALS['ueber-activity-viewer-php_config']['memcache_port'];
                    
75  $mysqli = new mysqli(
                    
76    $GLOBALS['ueber-activity-viewer-php_config']['mysql_hostname'],
                    
77    $GLOBALS['ueber-activity-viewer-php_config']['mysql_username'],
                    
                
get_one_click_product.php https://bitbucket.org/veloprobeg/veloprobeg.ru.git | PHP | 223 lines
                    
5
                    
6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
                    
7//require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
                    
8
                    
9$elementId = isset($_REQUEST['ELEMENT_ID']) ? intval($_REQUEST['ELEMENT_ID']) : 0;
                    
10$offerId = isset($_REQUEST['OFFER_ID']) ? intval($_REQUEST['OFFER_ID']) : 0;
                    
10$offerId = isset($_REQUEST['OFFER_ID']) ? intval($_REQUEST['OFFER_ID']) : 0;
                    
11$sectionId = isset($_REQUEST['SECTION_ID']) ? intval($_REQUEST['SECTION_ID']) : 0;
                    
12$isAjax = isset($_REQUEST['AJAX']) ? ($_REQUEST['AJAX'] == 'Y') : false;
                    
15//$file = $_SERVER["DOCUMENT_ROOT"].'/click.txt';
                    
16//$string = "<?php\n return ".var_export($_REQUEST, true).';';
                    
17//file_put_contents($file, $string);
                    
21
                    
22<? if (intval($_REQUEST['ELEMENT_ID']) > 0 && !$isAjax) { ?>
                    
23  <? $APPLICATION->IncludeComponent(
                    
                
subs_menu.php https://github.com/e107/e107.git | PHP | 250 lines
                    
1<?php
                    
2/*
                    
11|
                    
12|     $URL: https://e107.svn.sourceforge.net/svnroot/e107/trunk/e107_0.7/e107_plugins/calendar_menu/subs_menu.php $
                    
13|     $Revision: 11678 $
                    
13|     $Revision: 11678 $
                    
14|     $Id: subs_menu.php 11678 2010-08-22 00:43:45Z e107coders $
                    
15|     $Author: e107coders $
                    
76$cal_args = "select * from #event left join #event_cat on event_category=event_cat_id where (event_cat_subs>0 OR event_cat_force_class != '') and 
                    
77event_cat_last < " . intval($cal_starttime) . " and 
                    
78event_cat_ahead > 0 and 
                    
78event_cat_ahead > 0 and 
                    
79event_start >= (" . intval($cal_starttime) . "+(86400*(event_cat_ahead))) and
                    
80event_start <  (" . intval($cal_starttime) . "+(86400*(event_cat_ahead+1))) and
                    
89$cal_args = "select * from #event left join #event_cat on event_category=event_cat_id where (event_cat_subs>0 OR event_cat_force_class != '') and 
                    
90event_cat_today < " . intval($cal_starttime) . " and 
                    
91event_start >= (" . intval($cal_starttime) . ") and
                    
                
_reservationForm.php https://bitbucket.org/evipstudio_team/wroclawski-adres.pl.git | PHP | 212 lines
                    
1<div class="form resrv">
                    
2  <?php $form = $this->beginWidget('CActiveForm', array('action' => $action, 'id' => 'reservationForm', 'htmlOptions' => array('enctype' => 'multipart/form-data'))); ?>
                    
3  <?= $form->errorSummary($model); ?>
                    
39            'showPeriodLabels'=>false,
                    
40            'hours'=> array('starts'=>intval(array_shift(explode(':', Yii::app()->params['AvailabilityFrom']))), 'ends'=>intval(array_shift(explode(':', Yii::app()->params['AvailabilityTo'])))),
                    
41            'minutes'=> array('starts'=>0, 'ends'=>30, 'interval'=>30)
                    
72            'showPeriodLabels'=>false,
                    
73            'hours'=> array('starts'=>intval(array_shift(explode(':', Yii::app()->params['AvailabilityFrom']))), 'ends'=>intval(array_shift(explode(':', Yii::app()->params['AvailabilityTo'])))),
                    
74            'minutes'=> array('starts'=>0, 'ends'=>30, 'interval'=>30)
                    
90  *pola wymagane
                    
91<?php $this->endWidget(); ?>
                    
92</div>
                    
                
Exiftool.php https://bitbucket.org/nick_zou/dialsmart-grav.git | PHP | 210 lines
                    
6 * @copyright   Copyright (c) 2015 Tom Van Herreweghe <tom@theanalogguy.be>
                    
7 * @license     http://github.com/miljar/PHPExif/blob/master/LICENSE MIT License
                    
8 * @category    PHPExif
                    
11
                    
12namespace PHPExif\Mapper;
                    
13
                    
13
                    
14use PHPExif\Exif;
                    
15use DateTime;
                    
19 *
                    
20 * Maps Exiftool raw data to valid data for the \PHPExif\Exif class
                    
21 *
                    
206
                    
207            return intval($matches[1]) + (intval($matches[2]) / 60) + (floatval($matches[3]) / 3600);
                    
208        }
                    
                
column.php https://bitbucket.org/alex_poluektov/itech_test.git | PHP | 325 lines
                    
241				&& (
                    
242					intval($this->length) < intval($target->length)
                    
243					|| (
                    
243					|| (
                    
244						intval($target->length) < intval($this->length)
                    
245						&& strtoupper($this->type) === "CHAR"
                    
270				&& $this->default === $target->default
                    
271				&& intval($this->length) === intval($target->length)
                    
272				&& $this->nullable !== $target->nullable
                    
285				&& (
                    
286					intval($this->length) < intval($target->length)
                    
287					|| (
                    
287					|| (
                    
288						intval($target->length) < intval($this->length)
                    
289						&& strtoupper($this->type) === "CHAR"
                    
                
template-tags.php https://bitbucket.org/afitri_151/elipse-kids.git | PHP | 335 lines
                    
36			echo '<h2 class="section-title">' . esc_attr( $args['title'] ) . '</h2>';
                    
37			echo do_shortcode( '[product_categories number="' . intval( $args['limit'] ) . '" columns="' . intval( $args['columns'] ) . '" orderby="' . esc_attr( $args['orderby'] ) . '" parent="' . esc_attr( $args['child_categories'] ) . '"]' );
                    
38
                    
71			echo '<h2 class="section-title">' . esc_attr( $args['title'] ) . '</h2>';
                    
72			echo do_shortcode( '[recent_products per_page="' . intval( $args['limit'] ) . '" columns="' . intval( $args['columns'] ) . '"]' );
                    
73
                    
108			echo '<h2 class="section-title">' . esc_attr( $args['title'] ) . '</h2>';
                    
109			echo do_shortcode( '[featured_products per_page="' . intval( $args['limit'] ) . '" columns="' . intval( $args['columns'] ) . '" orderby="' . esc_attr( $args['orderby'] ) . '" order="' . esc_attr( $args['order'] ) . '"]' );
                    
110
                    
143			echo '<h2 class="section-title">' . esc_attr( $args['title'] ) . '</h2>';
                    
144			echo do_shortcode( '[top_rated_products per_page="' . intval( $args['limit'] ) . '" columns="' . intval( $args['columns'] ) . '"]' );
                    
145
                    
178			echo '<h2 class="section-title">' . esc_attr( $args['title'] ) . '</h2>';
                    
179			echo do_shortcode( '[sale_products per_page="' . intval( $args['limit'] ) . '" columns="' . intval( $args['columns'] ) . '"]' );
                    
180
                    
                
abstract-wp-background-process.php https://bitbucket.org/FlintstoneChurchill/onoi.git | PHP | 502 lines
                    
1<?php
                    
2namespace WPM\Includes\Libraries;
                    
366
                    
367		if ( ! $memory_limit || -1 === intval( $memory_limit ) ) {
                    
368			// Unlimited, set to 32GB.
                    
371
                    
372		return intval( $memory_limit ) * 1024 * 1024;
                    
373	}
                    
                
blockcart.tpl https://bitbucket.org/Yanachkov/updatepanda18.git | 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)}
                    
                
29adbfc13bf0a7a5396ec32fba6c3df24754b481.file.view.tpl.php https://bitbucket.org/Yanachkov/updatepanda18.git | PHP | 192 lines
                    
87						<!--
                    
88						<button type="submit" name="submitDateRealTime" class="hide btn btn-default submitDateRealTime <?php if ($_smarty_tpl->tpl_vars['dashboard_use_push']->value) {?>active<?php }?>" value="<?php echo !intval($_smarty_tpl->tpl_vars['dashboard_use_push']->value);?>
                    
89">
                    
155						<dt><a href="http://doc.prestashop.com/display/PS16?utm_source=back-office&amp;utm_medium=dashboard&amp;utm_campaign=back-office-<?php echo mb_strtoupper($_smarty_tpl->tpl_vars['lang_iso']->value, 'UTF-8');?>
                    
156&amp;utm_content=<?php if ($_smarty_tpl->tpl_vars['host_mode']->value) {?>cloud<?php } else { ?>download<?php }?>" class="_blank"><?php echo smartyTranslate(array('s'=>"Official Documentation"),$_smarty_tpl);?>
                    
157</a></dt>
                    
162						<dt><a href="http://www.prestashop.com/forums?utm_source=back-office&amp;utm_medium=dashboard&amp;utm_campaign=back-office-<?php echo mb_strtoupper($_smarty_tpl->tpl_vars['lang_iso']->value, 'UTF-8');?>
                    
163&amp;utm_content=<?php if ($_smarty_tpl->tpl_vars['host_mode']->value) {?>cloud<?php } else { ?>download<?php }?>" class="_blank"><?php echo smartyTranslate(array('s'=>"PrestaShop Forum"),$_smarty_tpl);?>
                    
164</a></dt>
                    
169						<dt><a href="http://addons.prestashop.com?utm_source=back-office&amp;utm_medium=dashboard&amp;utm_campaign=back-office-<?php echo mb_strtoupper($_smarty_tpl->tpl_vars['lang_iso']->value, 'UTF-8');?>
                    
170&amp;utm_content=<?php if ($_smarty_tpl->tpl_vars['host_mode']->value) {?>cloud<?php } else { ?>download<?php }?>" class="_blank"><?php echo smartyTranslate(array('s'=>"PrestaShop Addons"),$_smarty_tpl);?>
                    
171</a></dt>
                    
176						<dt><a href="http://forge.prestashop.com?utm_source=back-office&amp;utm_medium=dashboard&amp;utm_campaign=back-office-<?php echo mb_strtoupper($_smarty_tpl->tpl_vars['lang_iso']->value, 'UTF-8');?>
                    
177&amp;utm_content=<?php if ($_smarty_tpl->tpl_vars['host_mode']->value) {?>cloud<?php } else { ?>download<?php }?>" class="_blank"><?php echo smartyTranslate(array('s'=>"The Forge"),$_smarty_tpl);?>
                    
178</a></dt>
                    
                
agent.php https://bitbucket.org/bohdan1217/norka.git | 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;
                    
                
task.func.php https://github.com/gcao/bbs.git | PHP | 169 lines
                    
1<?php
                    
2
                    
6
                    
7	$Id: task.func.php 21053 2009-11-09 10:29:02Z wangjinbo $
                    
8*/
                    
17	if(!isset($task['newbie'])) {
                    
18		require_once DISCUZ_ROOT.'./include/tasks/'.$task['scriptname'].'.inc.php';
                    
19		task_condition();
                    
111
                    
112	require_once DISCUZ_ROOT.'./include/tasks/newbie_'.$newbietasks[$newbietaskid]['scriptname'].'.inc.php';
                    
113
                    
133
                    
134		$nextnewbietaskid = intval($db->result_first("SELECT t.taskid FROM {$tablepre}tasks t LEFT JOIN {$tablepre}mytasks mt ON mt.taskid=t.taskid AND mt.uid='$discuz_uid' WHERE mt.taskid IS NULL AND t.available='2' AND t.newbietask='1' ORDER BY t.newbietask DESC LIMIT 1"));
                    
135
                    
148		}
                    
149		write_statlog('', 'action=newbie&from='.$taskmsg, '', '', 'task.php');
                    
150	}
                    
                
MediaTransformOutput.php https://github.com/wiki-data/wiki-data.git | PHP | 269 lines
                    
1<?php
                    
2/**
                    
230		$this->textMsg = wfMessage( $msg )->rawParams( $htmlArgs )->text();
                    
231		$this->width = intval( $width );
                    
232		$this->height = intval( $height );
                    
                
user.php https://bitbucket.org/alex_poluektov/itech_test.git | PHP | 482 lines
                    
1<?php
                    
2/**
                    
244	{
                    
245		$seconds = intval(ini_get("session.gc_maxlifetime"));
                    
246
                    
255
                    
256		return intval($seconds);
                    
257	}
                    
358	{
                    
359		$id = intval($id);
                    
360		if($id == 0)
                    
                
import_functions.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 329 lines
                    
35		$db =& Database::getInstance() ;
                    
36		$import_mid = intval( $import_mid ) ;
                    
37
                    
82		$irs = $db->query( "INSERT INTO `$to_table` (uid,cid,title,url,create_time,blogtype,diary) SELECT uid,'0',title,url,create_time,blogtype,diary FROM `$from_table`" ) ;
                    
83		if( ! $irs ) redirect_header( XOOPS_URL."/modules/$mydirname/admin/index.php?page=import" , 3 , $from_table._MD_IMPORTERROR ) ;
                    
84
                    
130				FROM `$from_table`" ) ;
                    
131		if( ! $irs ) redirect_header( XOOPS_URL."/modules/$mydirname/admin/index.php?page=import" , 3 , $from_table._MD_IMPORTERROR ) ;
                    
132
                    
224		$table = $db->prefix( 'xoopscomments' ) ;
                    
225	    	$sql = "UPDATE ".$table." SET com_modid=".intval($to_mid)." WHERE com_modid=".intval($from_mid);
                    
226		$irs = $db->query( $sql ) ;
                    
237		$table = $db->prefix( 'xoopsnotifications' ) ;
                    
238	    	$sql = "UPDATE ".$table." SET not_modid=".intval($to_mid)." WHERE not_modid=".intval($from_mid);
                    
239		$irs = $db->query( $sql ) ;
                    
                
Svg.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 279 lines
                    
1<?php
                    
2/**
                    
7
                    
8namespace PhpMyAdmin\Plugins\Schema\Svg;
                    
9
                    
9
                    
10use PhpMyAdmin\Core;
                    
11use PhpMyAdmin\ResponseRenderer;
                    
13
                    
14use function intval;
                    
15use function is_int;
                    
22 *
                    
23 * @see     https://www.php.net/manual/en/book.xmlwriter.php
                    
24 *
                    
32    /** @var string */
                    
33    public $author = 'phpMyAdmin';
                    
34
                    
                
field.input.php git://github.com/symphonycms/symphony-2.git | PHP | 447 lines
                    
1<?php
                    
2
                    
57        return Symphony::Database()
                    
58            ->create('tbl_entries_data_' . General::intval($this->get('id')))
                    
59            ->ifNotExists()
                    
                
cat_discount_format.php https://bitbucket.org/webrise-corp/bullofarmbitrix.git | PHP | 230 lines
                    
1<?
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/catalog/prolog.php");
                    
14
                    
15	require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_js.php");
                    
16
                    
17	$max_execution_time = 10;
                    
18	if (isset($_REQUEST['max_execution_time']) && 0 < intval($_REQUEST['max_execution_time']))
                    
19	{
                    
19	{
                    
20		$max_execution_time = intval($_REQUEST['max_execution_time']);
                    
21	}
                    
23
                    
24	$converted = isset($_REQUEST['converted'])? intval($_REQUEST['converted']): 0;
                    
25	$last_id = isset($_REQUEST['last_id'])? intval($_REQUEST['last_id']): 0;
                    
                
order-follow.tpl http://marocmall.googlecode.com/svn/trunk/ | Smarty Template | 54 lines
                    
5</script>
                    
6{capture name=path}<a href="{$link->getPageLink('my-account.php', true)}">{l s='My account'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Return Merchandise Authorization (RMA)'}{/capture}
                    
7{include file="$tpl_dir./breadcrumb.tpl"}
                    
29			<tr class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if} {if $smarty.foreach.myLoop.index % 2}alternate_item{/if}">
                    
30				<td class="bold"><a class="color-myaccount" href="javascript:showOrder(0, {$return.id_order_return|intval}, '{$link->getPageLink('order-return.php')}');">{l s='#'}{$return.id_order_return|string_format:"%06d"}</a></td>
                    
31				<td class="history_method"><a class="color-myaccount" href="javascript:showOrder(1, {$return.id_order|intval}, '{$link->getPageLink('order-detail.php')}');">{l s='#'}{$return.id_order|string_format:"%06d"}</a></td>
                    
35				{if $return.state == 2}
                    
36					<a href="{$link->getPageLink('pdf-order-return.php', true)}?id_order_return={$return.id_order_return|intval}" title="{l s='Order return'} {l s='#'}{$return.id_order_return|string_format:"%06d"}"><img src="{$img_dir}icon/pdf.png" alt="{l s='Order return'} {l s='#'}{$return.id_order_return|string_format:"%06d"}" class="icon" /></a>
                    
37					<a href="{$link->getPageLink('pdf-order-return.php', true)}?id_order_return={$return.id_order_return|intval}" title="{l s='Order return'} {l s='#'}{$return.id_order_return|string_format:"%06d"}">{l s='Print out'}</a>
                    
51<ul class="footer_links">
                    
52	<li><a href="{$link->getPageLink('my-account.php', true)}"><img src="{$img_dir}icon/my-account.png" alt="" class="icon" /></a><a href="{$link->getPageLink('my-account.php', true)}">{l s='Back to Your Account'}</a></li>
                    
53	<li><a href="{$base_dir}"><img src="{$img_dir}icon/home.png" alt="" class="icon" /></a><a href="{$base_dir}">{l s='Home'}</a></li>
                    
                
class.graph.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 376 lines
                    
1<?php
                    
2/*
                    
22/*
                    
23class.graph.php
                    
24Foowd graph class
                    
154				} else {
                    
155					$x1 = intval(($start_coords['x'] - $offset_x) * $scale_x);
                    
156					$y1 = $height - 1 - intval(($start_coords['y'] - $offset_y) * $scale_y);
                    
156					$y1 = $height - 1 - intval(($start_coords['y'] - $offset_y) * $scale_y);
                    
157					$x2 = intval(($end_coords['x'] - $offset_x) * $scale_x);
                    
158					$y2 = $height - 1 - intval(($end_coords['y'] - $offset_y) * $scale_y);
                    
                
member_model_edit.php http://jqbird.googlecode.com/svn/trunk/ | PHP | 227 lines
                    
1<?php
                    
2require_once(dirname(__FILE__)."/config.php");
                    
3CheckPurview('c_Edit');
                    
4require_once(DEDEINC."/dedetag.class.php");
                    
5require_once(DEDEINC."/oxwindow.class.php");
                    
9}
                    
10$id = (empty($id) ? 0 : intval($id));
                    
11
                    
23	UpDateMemberModCache();
                    
24	ShowMsg("???????????","member_model_main.php");
                    
25	exit();
                    
40	UpDateMemberModCache();
                    
41	ShowMsg("??{$statestr}???????","member_model_main.php");
                    
42	exit();
                    
72		$wintitle = "??????-??????";
                    
73		$wecome_info = "<a href='member_model_main.php'>??????</a>::??????";
                    
74		$win = new OxWindow();
                    
                
front-testimonials.php https://bitbucket.org/EduardoEMD/exclusive.git | PHP | 165 lines
                    
30	<label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title', 'astrid'); ?></label>
                    
31	<input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" />
                    
32	</p>
                    
35	<p><label for="<?php echo $this->get_field_id( 'offset' ); ?>"><?php _e( 'Offset (number of testimonials needs to be different than -1 for this option to work):', 'astrid' ); ?></label>
                    
36	<input id="<?php echo $this->get_field_id( 'offset' ); ?>" name="<?php echo $this->get_field_name( 'offset' ); ?>" type="text" value="<?php echo $offset; ?>" size="3" /></p>
                    
37	<p><label for="<?php echo $this->get_field_id( 'pageids' ); ?>"><?php _e( 'Page IDs to display in this widget (separated by commas, example: 14,810,220). Note: you can find the page ID in the URL bar while editing your page.', 'astrid' ); ?></label>
                    
37	<p><label for="<?php echo $this->get_field_id( 'pageids' ); ?>"><?php _e( 'Page IDs to display in this widget (separated by commas, example: 14,810,220). Note: you can find the page ID in the URL bar while editing your page.', 'astrid' ); ?></label>
                    
38	<input id="<?php echo $this->get_field_id( 'pageids' ); ?>" name="<?php echo $this->get_field_name( 'pageids' ); ?>" type="text" value="<?php echo $pageids; ?>" size="3" /></p>	
                    
39    <p><label for="<?php echo $this->get_field_id('see_all'); ?>"><?php _e('The URL for your button [In case you want a button below your testimonials block]', 'astrid'); ?></label>
                    
39    <p><label for="<?php echo $this->get_field_id('see_all'); ?>"><?php _e('The URL for your button [In case you want a button below your testimonials block]', 'astrid'); ?></label>
                    
40	<input class="widefat" id="<?php echo $this->get_field_id( 'see_all' ); ?>" name="<?php echo $this->get_field_name( 'see_all' ); ?>" type="text" value="<?php echo $see_all; ?>" size="3" /></p>	
                    
41    <p><label for="<?php echo $this->get_field_id('see_all_text'); ?>"><?php _e('The text for the button [Defaults to <em>See all our testimonials</em> if left empty]', 'astrid'); ?></label>
                    
41    <p><label for="<?php echo $this->get_field_id('see_all_text'); ?>"><?php _e('The text for the button [Defaults to <em>See all our testimonials</em> if left empty]', 'astrid'); ?></label>
                    
42	<input class="widefat" id="<?php echo $this->get_field_id( 'see_all_text' ); ?>" name="<?php echo $this->get_field_name( 'see_all_text' ); ?>" type="text" value="<?php echo $see_all_text; ?>" size="3" /></p>	
                    
43	<?php
                    
                
info.php https://github.com/flyingoctopus/net.flyingoctopus.git | PHP | 452 lines
                    
1<?php
                    
2// Prevent users from directly loading this file
                    
39
                    
40	$per_page = intval(get_query_var('posts_per_page'));
                    
41	$num_pages = $query->max_num_pages;
                    
272	// Paged classes; for 'page X' classes of index, single, etc.
                    
273	$page = intval( $wp_query->get('paged') );
                    
274	if ( is_paged() && $page > 1 ) {
                    
389/*
                    
390	Adapted from PHP CSS Browser Selector v0.0.1
                    
391	Bastian Allgeier (http://bastian-allgeier.de)
                    
393	License: http://creativecommons.org/licenses/by/2.5/
                    
394	Credits: This is a php port from Rafael Lima's original Javascript CSS Browser Selector: http://rafael.adm.br/css_browser_selector
                    
395*/
                    
                
class.skype.php https://bitbucket.org/Salmendrote/wordpress-clean.git | PHP | 276 lines
                    
1<?php
                    
2
                    
6 */
                    
7require_once 'class.textfield.php';
                    
8
                    
108		$wpcf_wpml_condition = defined( 'WPML_TM_VERSION' ) &&
                    
109			intval( $wpml_action ) === 1 &&
                    
110			function_exists( 'wpcf_wpml_post_is_original' ) &&
                    
                
form_list.php https://bitbucket.org/alex_poluektov/itech_test.git | PHP | 341 lines
                    
200		$f_QUESTIONS+=$f_C_FIELDS;
                    
201		$txt="<a title=\"".GetMessage("FORM_QUESTIONS_ALT")."\" href=\"form_field_list.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">$f_QUESTIONS</a>&nbsp;[<a title=\"".GetMessage("FORM_ADD_QUESTION")."\" href=\"form_field_edit_simple.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">+</a>]";
                    
202	}
                    
203	else
                    
204		$txt="<a title=\"".GetMessage("FORM_QUESTIONS_ALT")."\" href=\"form_field_list.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">$f_QUESTIONS</a>&nbsp;[<a title=\"".GetMessage("FORM_ADD_QUESTION")."\" href=\"form_field_edit.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">+</a>]";
                    
205	$row->AddViewField("QUESTIONS",$txt);
                    
206
                    
207	$txt="<a title=\"".GetMessage("FORM_FIELDS_ALT")."\" href=\"form_field_list.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID&additional=Y\">$f_C_FIELDS</a>&nbsp;[<a title=\"".GetMessage("FORM_ADD_FIELD")."\" href=\"form_field_edit.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID&additional=Y\">+</a>]";
                    
208	$row->AddViewField("C_FIELDS",$txt);
                    
209
                    
210	$txt="<a title=\"".GetMessage("FORM_STATUSES_ALT")."\" href=\"form_status_list.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">$f_STATUSES</a>&nbsp;[<a title=\"".GetMessage("FORM_ADD_STATUS")."\" href=\"form_status_edit.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">+</a>]";
                    
211	$row->AddViewField("STATUSES",$txt);
                    
212
                    
213	$txt="<a title=\"".str_replace("\"#NAME#\"", "", GetMessage("FORM_RESULTS_ALT"))."\" href=\"form_result_list.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">".(CFormResult::GetCount($f_ID))."</a>&nbsp;[<a title=\"".GetMessage("FORM_ADD_RESULT")."\" href=\"form_result_edit.php?lang=".LANGUAGE_ID."&WEB_FORM_ID=$f_ID\">+</a>]";
                    
214	$row->AddViewField("RESULTS",$txt);
                    
                
 

Source

Language