PageRenderTime 1563ms queryTime 382ms sortTime 217ms getByIdsTime 73ms findMatchingLines 102ms

100+ results results for 'php empty repo:Kudlaty/360kdw' (1563 ms)

Not the results you expected?
RakString.h https://gitlab.com/computerphilly/openblox | C Header | 354 lines
                    
131
                    
132	/// Returns if the string is empty. Also, C_String() would return ""
                    
133	bool IsEmpty(void) const;
                    
215
                    
216	/// URL Encode the string. See http://www.codeguru.com/cpp/cpp/cpp_mfc/article.php/c4029/
                    
217	RakNet::RakString& URLEncode(void);
                    
322	/// \internal
                    
323	static SharedString emptyString;
                    
324
                    
                
heartbeat.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 490 lines
                    
12 *
                    
13 * Available filters in ajax-actions.php:
                    
14 * - heartbeat_received
                    
124					case 'error':
                    
125					case 'empty':
                    
126					case 'unknown':
                    
152		function connect() {
                    
153			var send = {}, data, i, empty = true,
                    
154			nonce = typeof window.heartbeatSettings == 'object' ? window.heartbeatSettings.nonce : '';
                    
164				if ( data.hasOwnProperty( i ) ) {
                    
165					empty = false;
                    
166					break;
                    
171			// schedule the next tick and bail
                    
172			if ( empty && ! self.hasConnectionError() ) {
                    
173				connecting = false;
                    
                
class-wc-report-sales-by-category.php https://gitlab.com/webkod3r/tripolis | PHP | 438 lines
                    
220				</select>
                    
221				<a href="#" class="select_none"><?php _e( 'None', 'woocommerce' ); ?></a>
                    
222				<a href="#" class="select_all"><?php _e( 'All', 'woocommerce' ); ?></a>
                    
223				<input type="submit" class="submit button" value="<?php esc_attr_e( 'Show', 'woocommerce' ); ?>" />
                    
224				<input type="hidden" name="range" value="<?php if ( ! empty( $_GET['range'] ) ) echo esc_attr( $_GET['range'] ) ?>" />
                    
225				<input type="hidden" name="start_date" value="<?php if ( ! empty( $_GET['start_date'] ) ) echo esc_attr( $_GET['start_date'] ) ?>" />
                    
226				<input type="hidden" name="end_date" value="<?php if ( ! empty( $_GET['end_date'] ) ) echo esc_attr( $_GET['end_date'] ) ?>" />
                    
227				<input type="hidden" name="page" value="<?php if ( ! empty( $_GET['page'] ) ) echo esc_attr( $_GET['page'] ) ?>" />
                    
228				<input type="hidden" name="tab" value="<?php if ( ! empty( $_GET['tab'] ) ) echo esc_attr( $_GET['tab'] ) ?>" />
                    
228				<input type="hidden" name="tab" value="<?php if ( ! empty( $_GET['tab'] ) ) echo esc_attr( $_GET['tab'] ) ?>" />
                    
229				<input type="hidden" name="report" value="<?php if ( ! empty( $_GET['report'] ) ) echo esc_attr( $_GET['report'] ) ?>" />
                    
230			</div>
                    
259			href="#"
                    
260			download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time('timestamp') ); ?>.csv"
                    
261			class="export_csv"
                    
                
base_vat.py https://gitlab.com/thanhchatvn/cloud-odoo | Python | 330 lines
                    
67        Check the VAT number depending of the country.
                    
68        http://sima-pc.com/nif.php
                    
69        '''
                    
94            # with VIES if any of these arise, including the first one (it means invalid
                    
95            # country code or empty VAT number), so we fall back to the simple check.
                    
96            return self.simple_vat_check(cr, uid, country_code, vat_number, context=context)
                    
                
xbox-server.cpp https://gitlab.com/iranjith4/hhvm | C++ | 430 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#include "hphp/runtime/server/xbox-server.h"
                    
18#include "hphp/runtime/base/builtin-functions.h"
                    
                
AuthTest.php https://gitlab.com/axeltizon/magento-demopoweraccess | PHP | 341 lines
                    
1<?php
                    
2/**
                    
49     * @magentoAdminConfigFixture admin/emails/forgot_email_identity general
                    
50     * @magentoDataFixture Magento/User/_files/user_with_role.php
                    
51     */
                    
76     * @covers \Magento\User\Controller\Adminhtml\Auth\ResetPassword::_validateResetPasswordLinkToken
                    
77     * @magentoDataFixture Magento/User/_files/dummy_user.php
                    
78     */
                    
86        );
                    
87        $this->assertNotEmpty($user->getId(), 'Broken fixture');
                    
88        $resetPasswordToken = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
                    
121     * @covers \Magento\User\Controller\Adminhtml\Auth\ResetPasswordPost::_validateResetPasswordLinkToken
                    
122     * @magentoDataFixture Magento/User/_files/dummy_user.php
                    
123     */
                    
130        $user->loadByUsername('dummy_username');
                    
131        $this->assertNotEmpty($user->getId(), 'Broken fixture');
                    
132
                    
                
Front.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 389 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
212    {
                    
213        // empty route supplied - return base url
                    
214        if (empty($routeName)) {
                    
233    {
                    
234        // empty route supplied - return base url
                    
235        if (empty($frontName)) {
                    
268            $to = (string)$rewrite->to;
                    
269            if (empty($from) || empty($to)) {
                    
270                continue;
                    
                
Table.php https://gitlab.com/alejandrocepeda25/Qubit-PHP-Framework | PHP | 465 lines
                    
1<?php
                    
2/**
                    
171
                    
172            if (empty($this->_primary)) {
                    
173                throw new Qubit_Exception('No existe una clave primaria para esta tabla');
                    
                
automatic_profile.php https://gitlab.com/alexprowars/bitrix | PHP | 426 lines
                    
1<?php
                    
2
                    
67
                    
68		if(!empty($this->parentHandlerInitParams["PROFILES"][$this->profileId]["TRACKING_CLASS_NAME"]))
                    
69			$this->trackingClass = $this->parentHandlerInitParams["PROFILES"][$this->profileId]["TRACKING_CLASS_NAME"];
                    
82
                    
83		if(is_array($parentTP) && !empty($parentTP))
                    
84		{
                    
84		{
                    
85			if(empty($this->trackingParams) || !is_array($this->trackingParams))
                    
86			{
                    
91				foreach($this->trackingParams as $k => $v)
                    
92					if(empty($v) && !empty($parentTP[$k]))
                    
93						$this->trackingParams[$k] = $parentTP[$k];
                    
121				foreach($own["CONFIG"] as $k => $v)
                    
122					if(empty($v["GROUP"]) || $v["GROUP"] != $this->profileId)
                    
123						$profileOldConfig["CONFIG"][$k] = $parent["CONFIG"][$k];
                    
                
levenshtein.c https://gitlab.com/kush/jarulraj-postgresql-cpp | C | 401 lines
                    
15 * at http://www.merriampark.com/ld.htm.  Also looked at levenshtein.c in the
                    
16 * PHP 4.0.6 distribution for inspiration.  Configurable penalty costs
                    
17 * extension is introduced by Volkan YAZICI <volkan.yazici@gmail.com.
                    
112	/*
                    
113	 * We can transform an empty s into t with n insertions, or a non-empty t
                    
114	 * into an empty s with m deletions.
                    
                
GenericRevisionController.php https://gitlab.com/Drulenium-bot/diff | PHP | 365 lines
                    
1<?php
                    
2
                    
111        $field_label_row = '';
                    
112        if (!empty($field['#name'])) {
                    
113          $field_label_row = array(
                    
124        // Add the field label to the table only if there are changes to that field.
                    
125        if (!empty($field_diff_rows) && !empty($field_label_row)) {
                    
126          $diff_rows[] = array($field_label_row);
                    
152        '#rows' => $diff_rows,
                    
153        '#empty' => $this->t('No visible changes'),
                    
154        '#attributes' => array(
                    
292
                    
293    // If there are only 2 revision return an empty row.
                    
294    if ($revisions_count == 2) {
                    
                
wpsc-swfupload-handlers.js https://gitlab.com/endomorphosis/reservationtelco | JavaScript | 348 lines
                    
5function wpsc_fileDialogStart() {
                    
6	jQuery("#media-upload-error").empty();
                    
7}
                    
43	else {
                    
44		jQuery('#media-item-' + fileObj.id).load('async-upload.php', {attachment_id:serverData, fetch:f}, function(){prepareMediaItemInit(fileObj);updateMediaForm()});
                    
45	}
                    
61		// Tell the server to delete it. TODO: handle exceptions
                    
62		jQuery.ajax({url:'admin-ajax.php',type:'post',success:deleteSuccess,error:deleteError,id:fileObj.id,data:{
                    
63			id : this.id.replace(/[^0-9]/g,''),
                    
80	error.html('<div class="file-error"><button type="button" id="dismiss-'+id+'" class="button dismiss">'+swfuploadL10n.dismiss+'</button>'+html+'</div>');
                    
81	jQuery('#dismiss-'+id).click(function(){jQuery(this).parents('.file-error').slideUp(200, function(){jQuery(this).empty();})});
                    
82}
                    
100	// Vanish it.
                    
101	jQuery('#media-item-' + this.id + ' .filename:empty').remove();
                    
102	jQuery('#media-item-' + this.id + ' .filename').append(' <span class="file-error">'+swfuploadL10n.deleted+'</span>').siblings('a.toggle').remove();
                    
                
fckeditor.css https://gitlab.com/ptisky/API_prestashop | CSS | 536 lines
                    
263}

                    
264span.folderEmpty, span.folder, span.folderParent,

                    
265span.fileUnknown, span.fileText, span.fileWord,

                    
278span.addMore{background-image:url(../images/add.png);}

                    
279span.folderEmpty{background-image:url(../images/small_icon/folderEmpty.png);}

                    
280span.folder{background-image:url(../images/small_icon/folder.png);}

                    
289span.fileExcel{background-image:url(../images/small_icon/fileExcel.png);}

                    
290span.filePhp{background-image:url(../images/small_icon/filePhp.png);}

                    
291span.fileMusic{background-image:url(../images/small_icon/fileMusic.png);}

                    
316

                    
317dt.folderEmpty{background-image:url(../images/big_icon/folderEmpty.png);}

                    
318dt.folder{background-image:url(../images/big_icon/folder.png);

                    
328dt.fileExcel{background-image:url(../images/big_icon/fileExcel.png);}

                    
329dt.filePhp{background-image:url(../images/big_icon/filePhp.png);}

                    
330dt.fileMusic{background-image:url(../images/big_icon/fileMusic.png);}

                    
                
ProfilerController.php https://gitlab.com/Snizer/PI-DEV-TUNISIAMALL3A6-WEB | PHP | 383 lines
                    
1<?php
                    
2
                    
69
                    
70        return new RedirectResponse($this->generator->generate('_profiler_search_results', array('token' => 'empty', 'limit' => 10)), 302, array('Content-Type' => 'text/html'));
                    
71    }
                    
177
                    
178        if ('empty' === $token || null === $token) {
                    
179            return new Response('', 200, array('Content-Type' => 'text/html'));
                    
330
                    
331        if (!empty($token)) {
                    
332            return new RedirectResponse($this->generator->generate('_profiler', array('token' => $token)), 302, array('Content-Type' => 'text/html'));
                    
337        return new RedirectResponse($this->generator->generate('_profiler_search_results', array(
                    
338            'token' => $tokens ? $tokens[0]['token'] : 'empty',
                    
339            'ip' => $ip,
                    
348    /**
                    
349     * Displays the PHP info.
                    
350     *
                    
                
index_t.php https://gitlab.com/abbelal/home-practice | PHP | 257 lines
                    
1
                    
2<?php
                    
3include_once ("../vendor/autoload.php");
                    
210                                $serial = 1;
                    
211                                if (isset($Alldata) && !empty($Alldata)) {
                    
212
                    
216                                        <tr>
                    
217                                            <td><?php echo $serial++ ?></td>
                    
218                                            <td><?php echo $Singledata['full_name'] ?></td>
                    
223                                            <td><img src="<?php echo "images/" . $Singledata['image'] ?>" width="200" height="150"></td>
                    
224                                            <td><a href="show.php?id=<?php echo $Singledata['id'] ?>"><i class="icon-file-eye"></i>View</a></td>
                    
225                                            <td><a href="edit.php?id=<?php echo $Singledata['id'] ?>"><i class="icon-pencil7"></i>Edit</a></td>
                    
225                                            <td><a href="edit.php?id=<?php echo $Singledata['id'] ?>"><i class="icon-pencil7"></i>Edit</a></td>
                    
226                                            <td><a href="delete.php?id=<?php echo $Singledata['id'] ?>"><i class="icon-trash"></i>Remove</a></td>
                    
227
                    
                
CheckOut.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 319 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Created by PhpStorm.
                    
4 * User: THANH
                    
10        if(isset($_SESSION['cart'])){
                    
11            if(!empty($_SESSION['cart'])){
                    
12                if(USER_ID > 0 && !isset($_SESSION['ship'])){
                    
32        if(isset($_SESSION['cart'])){
                    
33            if(!empty($_SESSION['cart'])){
                    
34                $ship = 0;
                    
37                if(isset($_SESSION['cupon'])){
                    
38                    if(!empty($_SESSION['cupon'])){
                    
39                        $Cupon = $_SESSION['cupon'];
                    
101        if(isset($_SESSION['cupon'])){
                    
102            if(!empty($_SESSION['cupon'])){
                    
103                $Cupon = $_SESSION['cupon'];
                    
                
Curl.php https://gitlab.com/yousafsyed/easternglamor | PHP | 453 lines
                    
1<?php
                    
2/**
                    
156     *
                    
157     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
158     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
175     *
                    
176     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
177     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
196
                    
197        if (!empty($fields['category_ids'])) {
                    
198            $categoryIds = [];
                    
217
                    
218        if (!empty($fields['website_ids'])) {
                    
219            foreach ($fields['website_ids'] as &$value) {
                    
308     *
                    
309     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
310     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
                
Curl.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 576 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
252     *
                    
253     * @param string $uri uri relative to host, ex. "/index.php"
                    
254     */
                    
297    {
                    
298        if(empty($this->_responseHeaders['Set-Cookie'])) {
                    
299            return array();
                    
324    {
                    
325        if(empty($this->_responseHeaders['Set-Cookie'])) {
                    
326            return array();
                    
                
template.php https://gitlab.com/alexprowars/bitrix | PHP | 409 lines
                    
12Loc::loadMessages(__FILE__);
                    
13?><div class="container-fluid"><?php
                    
14if (!empty($arResult['ERRORS']['FATAL']))
                    
39{
                    
40	if (!empty($arResult['ERRORS']['NONFATAL']))
                    
41	{
                    
54				?>
                    
55				<div class="mt-3 alert alert-secondary"><?= Loc::getMessage('SPOL_TPL_EMPTY_CANCELED_ORDER')?></div>
                    
56				<?
                    
60				?>
                    
61				<div class="mt-3 alert alert-secondary"><?= Loc::getMessage('SPOL_TPL_EMPTY_HISTORY_ORDER_LIST')?></div>
                    
62				<?
                    
67			?>
                    
68			<div class="mt-3 alert alert-secondary"><?= Loc::getMessage('SPOL_TPL_EMPTY_ORDER_LIST')?></div>
                    
69			<?
                    
                
class.php https://gitlab.com/alexprowars/bitrix | PHP | 524 lines
                    
1<?php
                    
2
                    
45
                    
46		if (empty($params['NAME_CONFIRM_TEMPLATE']))
                    
47		{
                    
50
                    
51		if (empty($params['ACCOUNT_NUMBER']))
                    
52		{
                    
55
                    
56		if (empty($params['PAYMENT_NUMBER']))
                    
57		{
                    
69
                    
70		if (empty($params['ALLOW_INNER']))
                    
71		{
                    
74
                    
75		if (empty($params['ONLY_INNER_FULL']))
                    
76		{
                    
                
search.php https://gitlab.com/alexprowars/bitrix | PHP | 532 lines
                    
1<?php
                    
2/**
                    
154		{
                    
155			if (!empty($user['crmEntity']))
                    
156			{
                    
165		{
                    
166			if (!empty($user['crmEntity']))
                    
167			{
                    
215
                    
216				if (!empty($contact['PHOTO']) && intval($contact['PHOTO']) > 0)
                    
217				{
                    
265
                    
266				if (!empty($company['LOGO']) && intval($company['LOGO']) > 0)
                    
267				{
                    
372		$search = $requestFields['SEARCH'];
                    
373		$searchConverted = (!empty($requestFields['SEARCH_CONVERTED']) ? $requestFields['SEARCH_CONVERTED'] : false);
                    
374		$nameTemplate = Handler::getNameTemplate($requestFields);
                    
                
class-wp-media-list-table.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 396 lines
                    
174?>
                    
175	<tr id='post-<?php echo $id; ?>' class='<?php echo trim( $alt . ' author-' . $post_owner . ' status-' . $post->post_status ); ?>' valign="top">
                    
176<?php
                    
253?>
                    
254		<td <?php echo $attributes ?>><?php
                    
255		$tags = get_the_tags();
                    
270?>
                    
271		<td <?php echo $attributes ?>><?php echo has_excerpt() ? $post->post_excerpt : ''; ?></td>
                    
272<?php
                    
291?>
                    
292		<td <?php echo $attributes ?>><?php echo $h_time ?></td>
                    
293<?php
                    
313?>
                    
314			<td <?php echo $attributes ?>><?php _e( '(Unattached)' ); ?><br />
                    
315			<?php if( $user_can_edit ) {?>
                    
                
ImageMagick.php https://gitlab.com/yousafsyed/easternglamor | PHP | 480 lines
                    
1<?php
                    
2/**
                    
19
                    
20    const ERROR_WRONG_IMAGE = 'Image is not readable or file name is empty.';
                    
21
                    
237     * @throws \Exception
                    
238     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
239     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
242    {
                    
243        if (empty($imagePath) || !file_exists($imagePath)) {
                    
244            throw new \LogicException(self::ERROR_WATERMARK_IMAGE_ABSENT);
                    
332        if (!class_exists('\Imagick', false)) {
                    
333            throw new \Exception("Required PHP extension 'Imagick' was not loaded.");
                    
334        }
                    
421
                    
422        if (!empty($font)) {
                    
423            if (method_exists($image, 'setFont')) {
                    
                
catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
                    
214
                    
215		if (empty($data['bx_user_id']) && !empty($data['user_id']))
                    
216		{
                    
221
                    
222			if (!empty($orderUser) && !empty($orderUser['BX_USER_ID']))
                    
223			{
                    
284
                    
285		if (empty($data['bx_user_id']) && OrderTable::getEntity()->hasField('BX_USER_ID'))
                    
286		{
                    
291
                    
292			if (!empty($order) && !empty($order['BX_USER_ID']))
                    
293			{
                    
326		{
                    
327			if (empty($phone) && mb_stripos($row['CODE'], 'PHONE') !== false)
                    
328			{
                    
                
arr.php https://gitlab.com/ken3/bluSky | PHP | 602 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
333	 *
                    
334	 *     // Add an empty value to the start of a select list
                    
335	 *     Arr::unshift($array, 'none', 'Select a value');
                    
351	/**
                    
352	 * Recursive version of [array_map](http://php.net/array_map), applies one or more
                    
353	 * callbacks to all elements in an array, including sub-arrays.
                    
403	 * Merges one or more arrays recursively and preserves all keys.
                    
404	 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)!
                    
405	 *
                    
                
VarCloner.php https://gitlab.com/nzqadri/bejeep | PHP | 324 lines
                    
1<?php
                    
2
                    
148                    case 'object':
                    
149                        if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) {
                    
150                            $stub = new Stub();
                    
164                                } else {
                    
165                                    $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE));
                    
166                                }
                    
174                        }
                    
175                        if (empty($objRefs[$h])) {
                    
176                            $objRefs[$h] = $stub;
                    
185                    case 'unknown type':
                    
186                        if (empty($resRefs[$h = (int) $v])) {
                    
187                            $stub = new Stub();
                    
198                        }
                    
199                        if (empty($resRefs[$h])) {
                    
200                            $resRefs[$h] = $stub;
                    
                
general_vb.php https://gitlab.com/elasa/vb-elasa.ir | PHP | 359 lines
                    
1<?php
                    
2/*
                    
24	    {
                    
25		if (!empty($query) AND ($name !== 'pmpopup' OR !defined('NOPMPOPUP')))
                    
26		{
                    
121    // if there are some results to show, query the data
                    
122    if (!empty($threadids)) {
                    
123	// get last read info for each thread
                    
                
NetClient.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 629 lines
                    
1<?php
                    
2
                    
187	 */
                    
188	public function capturePhpErrorWithException($iErrNo, $sErrStr, $sErrFile, $iErrLine)
                    
189	{
                    
209	{
                    
210		if (!\MailSo\Base\Validator::NotEmptyString($sServerName, true) || !\MailSo\Base\Validator::PortInt($iPort))
                    
211		{
                    
270
                    
271		\set_error_handler(array(&$this, 'capturePhpErrorWithException'));
                    
272
                    
                
legacy.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 596 lines
                    
1<?php
                    
2/**
                    
99
                    
100		if (!empty($path))
                    
101		{
                    
156			case 'model':
                    
157				$filename = strtolower($parts['name']) . '.php';
                    
158				break;
                    
220		// Guess the option from the class name (Option)Model(View).
                    
221		if (empty($this->option))
                    
222		{
                    
233		// Set the view name
                    
234		if (empty($this->name))
                    
235		{
                    
280		// Set the internal state marker - used to ignore setting state from the request
                    
281		if (!empty($config['ignore_request']))
                    
282		{
                    
                
SqliteMetadata.php https://gitlab.com/jalon/doadoronline | PHP | 392 lines
                    
1<?php
                    
2/**
                    
125
                    
126        if (empty($primaryKey)) {
                    
127            $primaryKey = null;
                    
326        $data['event_manipulation'] = strtoupper($data['event_manipulation']);
                    
327        if (empty($data['action_condition'])) {
                    
328            $data['action_condition'] = null;
                    
329        }
                    
330        if (!empty($data['action_timing'])) {
                    
331            $data['action_timing'] = strtoupper($data['action_timing']);
                    
                
tbl_structure.php https://gitlab.com/ctheilman92/Aging-In-Place | PHP | 469 lines
                    
6 *
                    
7 * @package PhpMyAdmin
                    
8 */
                    
13require_once 'libraries/common.inc.php';
                    
14require_once 'libraries/mysql_charsets.lib.php';
                    
15
                    
19require_once 'libraries/structure.lib.php';
                    
20require_once 'libraries/index.lib.php';
                    
21
                    
111            $action = 'tbl_structure.php';
                    
112            include 'libraries/mult_submits.inc.php';
                    
113            /**
                    
137require_once 'libraries/tbl_common.inc.php';
                    
138$url_query .= '&amp;goto=tbl_structure.php&amp;back=tbl_structure.php';
                    
139$url_params['goto'] = 'tbl_structure.php';
                    
                
File.php https://gitlab.com/devtoannh/cafe | PHP | 468 lines
                    
25 */
                    
26require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
86        if ($fileName == '') {
                    
87            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
88            throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.');
                    
209            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
210            throw new Zend_CodeGenerator_Php_Exception('setDocblock() is expecting either a string, array or an instance of Zend_CodeGenerator_Php_Docblock');
                    
211        }
                    
293            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
294            throw new Zend_CodeGenerator_Php_Exception('Expecting either an array or an instance of Zend_CodeGenerator_Php_Class');
                    
295        }
                    
460        if ($this->_filename == '' || !is_writable(dirname($this->_filename))) {
                    
461            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
462            throw new Zend_CodeGenerator_Php_Exception('This code generator object is not writable.');
                    
                
twitter-timeline.php https://gitlab.com/memuller.web/wp_site | PHP | 470 lines
                    
1<?php
                    
2
                    
26			'twitter_timeline',
                    
27			/** This filter is documented in modules/widgets/facebook-likebox.php */
                    
28			apply_filters( 'jetpack_widget_name', esc_html__( 'Twitter Timeline', 'jetpack' ) ),
                    
63	public function admin_scripts( $hook ) {
                    
64		// This is still 'widgets.php' when managing widgets via the Customizer.
                    
65		if ( 'widgets.php' === $hook ) {
                    
83		if ( isset( $instance['title'] ) ) {
                    
84			/** This filter is documented in core/src/wp-includes/default-widgets.php */
                    
85			echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title'];
                    
102		foreach ( $data_attribs as $att ) {
                    
103			if ( ! empty( $instance[ $att ] ) && ! is_array( $instance[ $att ] ) ) {
                    
104				echo ' data-' . esc_attr( $att ) . '="' . esc_attr( $instance[ $att ] ) . '"';
                    
107
                    
108		if ( ! empty( $instance['chrome'] ) && is_array( $instance['chrome'] ) ) {
                    
109			echo ' data-chrome="' . esc_attr( join( ' ', $instance['chrome'] ) ) . '"';
                    
                
walkthrough_test.php https://gitlab.com/JrLucena/moodle | PHP | 309 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
30global $CFG;
                    
31require_once(dirname(__FILE__) . '/../../../engine/lib.php');
                    
32require_once(dirname(__FILE__) . '/../../../engine/tests/helpers.php');
                    
223
                    
224    public function test_deferredfeedback_resume_multichoice_single_emptyanswer_first() {
                    
225
                    
228
                    
229        // Attempt it and submit empty.
                    
230        $this->start_attempt_at_question($mc, 'deferredfeedback', 3);
                    
                
mssql_driver.php https://gitlab.com/Illprotectyew/xlt | PHP | 517 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
94
                    
95		if ( ! empty($this->port))
                    
96		{
                    
134		$query = $query->row_array();
                    
135		$this->_quoted_identifier = empty($query) ? FALSE : (bool) $query['qi'];
                    
136		$this->_escape_char = ($this->_quoted_identifier) ? '"' : array('[', ']');
                    
365		$message = mssql_get_last_message();
                    
366		if ( ! empty($message))
                    
367		{
                    
446		// however an ORDER BY clause is required for it to work
                    
447		if (version_compare($this->version(), '9', '>=') && $this->qb_offset && ! empty($this->qb_orderby))
                    
448		{
                    
                
options-permalink.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 285 lines
                    
199	<tr>
                    
200		<th><label><input name="selection" type="radio" value="" class="tog" <?php checked('', $permalink_structure); ?> /> <?php _e('Default'); ?></label></th>
                    
201		<td><code><?php echo get_option('home'); ?>/?p=123</code></td>
                    
203	<tr>
                    
204		<th><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[1]); ?>" class="tog" <?php checked($structures[1], $permalink_structure); ?> /> <?php _e('Day and name'); ?></label></th>
                    
205		<td><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/' . date('d') . '/sample-post/'; ?></code></td>
                    
207	<tr>
                    
208		<th><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[2]); ?>" class="tog" <?php checked($structures[2], $permalink_structure); ?> /> <?php _e('Month and name'); ?></label></th>
                    
209		<td><code><?php echo get_option('home') . $blog_prefix . $prefix . '/' . date('Y') . '/' . date('m') . '/sample-post/'; ?></code></td>
                    
211	<tr>
                    
212		<th><label><input name="selection" type="radio" value="<?php echo esc_attr($structures[3]); ?>" class="tog" <?php checked($structures[3], $permalink_structure); ?> /> <?php _e('Numeric'); ?></label></th>
                    
213		<td><code><?php echo get_option('home') . $blog_prefix . $prefix; ?>/archives/123</code></td>
                    
284
                    
285<?php require('./admin-footer.php'); ?>
                    
286
                    
                
Grammar.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 459 lines
                    
1<?php
                    
2
                    
255    /**
                    
256     * Create an empty Doctrine DBAL TableDiff from the Blueprint.
                    
257     *
                    
                
Index.php https://gitlab.com/tonycodes/october | PHP | 458 lines
                    
1<?php namespace Cms\Controllers;
                    
2
                    
159
                    
160        if (!empty($templateData['markup']) && Config::get('cms.convertLineEndings', false) === true) {
                    
161            $templateData['markup'] = $this->convertLineEndings($templateData['markup']);
                    
                
grid.locale-en.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 224 lines
                    
6 * Dual licensed under the MIT and GPL licenses:
                    
7 * http://www.opensource.org/licenses/mit-license.php
                    
8 * http://www.gnu.org/licenses/gpl.html
                    
20            recordtext: "View {0} - {1} of {2}",
                    
21            emptyrecords: "No records to view",
                    
22            loadtext: "Loading...",
                    
158                masks: {
                    
159                    // see http://php.net/manual/en/function.date.php for PHP format used in jqGrid
                    
160                    // and see http://docs.jquery.com/UI/Datepicker/formatDate
                    
163                    // information about date, time, numbers and currency formats used in different countries
                    
164                    // one should just convert the information in PHP format
                    
165                    // short date:
                    
                
class-wpb-map.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 563 lines
                    
1<?php
                    
2/**
                    
12 * This class maps shortcodes settings to VC editors. You can manage add new shortcodes or manage default shortcodes
                    
13 * mapped in config/map.php. For developers it is possible to use API functions to add update settings attributes.
                    
14 *
                    
14 *
                    
15 * @see config/map.php
                    
16 * @see include/helpers/helpers_api.php
                    
94				/** @var Vc_Settings $settings - get use group access rules */
                    
95				if ( ! empty( $current_user->roles ) ) {
                    
96					self::$user_role = $current_user->roles[0];
                    
126	 * You need to shortcode's tag and  settings to map correctly.
                    
127	 * Default shortcodes are mapped in config/map.php file.
                    
128	 * The best way is to call this method with "init" action callback function of WP.
                    
143		if ( ! self::$is_init ) {
                    
144			if ( empty( $attributes['name'] ) ) {
                    
145				trigger_error( sprintf( __( "Wrong name for shortcode:%s. Name required", "js_composer" ), $tag ) );
                    
                
ParameterTest.php https://gitlab.com/x33n/respond | PHP | 416 lines
                    
1<?php
                    
2
                    
193        $this->assertSame($command, $param->getParent());
                    
194        $this->assertNotEmpty($param->getProperties());
                    
195        $this->assertInstanceOf('Guzzle\Service\Description\Parameter', $param->getProperty('foo'));
                    
                
helpers.php https://gitlab.com/VTTE/sitios-vtte | PHP | 312 lines
                    
1<?php
                    
2use GutenPress\Forms;
                    
22		if (strstr($url,'vimeo')) {
                    
23			if (!empty($url)) {
                    
24				$id=array_pop(explode('/',$url));
                    
39                    echo '<h4 class="entry-title">'.$video->post_title.'</h4>';
                    
40                    if (!empty($video->post_content)) {
                    
41	                    echo '<div class="entry-description">';
                    
73			$thumb = '';
                    
74			if (!empty($url)) {
                    
75				if ( false === ( $thumb = get_transient( 'vimeo_'.$id ) ) ) {
                    
78				$request = new WP_Http;
                    
79				$result = $request->request( 'http://vimeo.com/api/v2/video/'.$id.'.php' , $args );
                    
80				//$iframe='<iframe src="http://player.vimeo.com/video/'.$id.'?title=0&amp;byline=0&amp;portrait=0" width="'.$width.'" height="'.$height.'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
                    
142	} elseif ( is_object($post) ) {
                    
143		if ( isset($post->post_excerpt) && !empty($post->post_excerpt) ) {
                    
144			if ( $params['strict'] && strlen($post->post_excerpt) > $params['length'] ) {
                    
                
cURL.php https://gitlab.com/x33n/ampache | PHP | 349 lines
                    
1<?php
                    
2/**
                    
25	 *
                    
26	 * @var array cURL information array, see {@see http://php.net/curl_getinfo}
                    
27	 */
                    
223		$headers = Requests::flatten($headers);
                    
224		if (in_array($options['type'], array(Requests::HEAD, Requests::GET, Requests::DELETE)) & !empty($data)) {
                    
225			$url = self::format_get($url, $data);
                    
226		}
                    
227		elseif (!empty($data) && !is_string($data)) {
                    
228			$data = http_build_query($data, null, '&');
                    
313	 * @param string $url
                    
314	 * @param array|object $data Data to build query using, see {@see http://php.net/http_build_query}
                    
315	 * @return string URL with data
                    
317	protected static function format_get($url, $data) {
                    
318		if (!empty($data)) {
                    
319			$url_parts = parse_url($url);
                    
                
SqlServerGrammar.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 344 lines
                    
1<?php
                    
2
                    
311
                    
312        if (! empty($joins)) {
                    
313            return trim("update {$alias} set {$columns} from {$table}{$joins} {$where}");
                    
                
functions.inc.php https://gitlab.com/boxnia/NFU_MOVIL | PHP | 346 lines
                    
1<?php
                    
2
                    
288
                    
289    if (empty($facilities)) {
                    
290        return $_error = "Seleccione al menos dos opciones";
                    
                
string.rst https://gitlab.com/albertkeba/docs | ReStructuredText | 300 lines
                    
30
                    
31.. php:staticmethod:: uuid()
                    
32
                    
50
                    
51        $data = "cakephp 'great framework' php";
                    
52        $result = String::tokenize($data, ' ', "'", "'");
                    
53        // result contains
                    
54        array('cakephp', "'great framework'", 'php');
                    
55
                    
55
                    
56.. php:staticmethod:: insert($string, $data, $options = array())
                    
57
                    
63
                    
64.. php:staticmethod:: cleanInsert($string, $options = array())
                    
65
                    
                
class.wpcom-json-api-sharing-buttons-endpoint.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 385 lines
                    
1<?php
                    
2
                    
33
                    
34		if ( ! empty( $button->genericon ) ) {
                    
35			// Only pre-defined sharing buttons include genericon
                    
75			( isset( $button['ID'] ) && 1 === preg_match( '/^custom-/', $button['ID'] ) ) ||
                    
76			! empty( $button['name'] ) || ! empty( $button['URL'] ) || ! empty( $button['icon'] );
                    
77	}
                    
79	protected function validate_button_input( $button, $is_new = false ) {
                    
80		if ( ! empty( $button['visibility'] ) && ! in_array( $button['visibility'], self::$all_visibilities ) ) {
                    
81			return new WP_Error( 'invalid_visibility', sprintf( 'The visibility field must be one of the following values: %s', implode( ', ', self::$all_visibilities ) ), 400 );
                    
81			return new WP_Error( 'invalid_visibility', sprintf( 'The visibility field must be one of the following values: %s', implode( ', ', self::$all_visibilities ) ), 400 );
                    
82		} else if ( $is_new && empty( $button['URL'] ) ) {
                    
83			return new WP_Error( 'invalid_request', 'The URL field is required', 400 );
                    
83			return new WP_Error( 'invalid_request', 'The URL field is required', 400 );
                    
84		} else if ( $is_new && empty( $button['icon'] ) ) {
                    
85			return new WP_Error( 'invalid_request', 'The icon field is required', 400 );
                    
                
Destination.php https://gitlab.com/Zinnurain/destination_finder_beta | PHP | 395 lines
                    
56        
                    
57        if (array_key_exists('search', $data) && !empty($data['search'])) {
                    
58            $this->search = $data['search'];
                    
153         
                    
154             //if (!empty($this->org_name) && !empty($this->org_add) && !empty($this->phone) && !empty($this->summary) ) {
                    
155            $query = "INSERT INTO `web_tech_pro`.`busstand_list` (`stand_name`,`distance_from`,`metere`) VALUES (:stand_name,:distance_from,:metere)";
                    
201//         die();
                    
202         if (!empty($this->user_name) && !empty($this->email) && !empty($this->password) ) {  
                    
203         $query = "UPDATE `web_tech_pro`.`admin_user` SET `email`=:email,`user_name` =:user_name,`password`=:password WHERE `admin_user`.`id` = :id";
                    
215         }
                    
216    elseif(empty($this->password) && !empty($this->user_name) && !empty($this->email)) {
                    
217     $query = "UPDATE `web_tech_pro`.`admin_user` SET `email`=:email,`user_name` =:user_name WHERE `admin_user`.`id` = :id";
                    
277         //$this->uniqid=$uid;
                    
278             //if (!empty($this->user_name) && !empty($this->email) && !empty($this->password) ) {
                    
279            $query = "INSERT INTO `owncms`.`profiles` (`firstname`,`lastname`,`gender`,`address`,`mobile_no`,`country`,`user_id`,`image`) VALUES (:firstname,:lastname,:gender,:address,:mobile_no,:country,:user_id,:image)";
                    
                
class-wp-ms-users-list-table.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 301 lines
                    
159			<tr class="<?php echo $alt; ?>">
                    
160			<?php
                    
161
                    
175						<th scope="row" class="check-column">
                    
176							<label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>"><?php echo sprintf( __( 'Select %s' ), $user->user_login ); ?></label>
                    
177							<input type="checkbox" id="blog_<?php echo $user->ID ?>" name="allusers[]" value="<?php echo esc_attr( $user->ID ) ?>" />
                    
178						</th>
                    
179					<?php
                    
180					break;
                    
186						echo "<td $attributes>"; ?>
                    
187							<?php echo $avatar; ?><strong><a href="<?php echo $edit_link; ?>" class="edit"><?php echo $user->user_login; ?></a><?php
                    
188							if ( in_array( $user->user_login, $super_admins ) )
                    
191							<br/>
                    
192							<?php
                    
193								$actions = array();
                    
                
action.php https://gitlab.com/Rad1calDreamer/honey | PHP | 364 lines
                    
29
                    
30		if (empty($strErrorMessage) && ($_SERVER['REQUEST_METHOD']=='GET'))
                    
31			LocalRedirect($APPLICATION->GetCurPageParam("", array("TOPIC_UNSUBSCRIBE", "FORUM_UNSUBSCRIBE", "TOPIC_SUBSCRIBE", "FORUM_SUBSCRIBE", "sessid")));
                    
42			$message = (!empty($_POST["MID_ARRAY"]) ? $_POST["MID_ARRAY"] : $_POST["MID"]);
                    
43			if ((empty($message) || $message == "s") && !empty($_POST["message_id"])):
                    
44				$message = $_POST["message_id"];
                    
47			$message = (!empty($_REQUEST["MID_ARRAY"]) ? $_REQUEST["MID_ARRAY"] : $_REQUEST["MID"]);
                    
48			if ((empty($message) || $message == "s") && !empty($_REQUEST["message_id"])):
                    
49				$message = $_REQUEST["message_id"];
                    
94					}
                    
95					if (!empty($_FILES))
                    
96					{
                    
98						foreach ($_FILES as $key => $val):
                    
99							if (substr($key, 0, strlen("FILE_NEW")) == "FILE_NEW" && !empty($val["name"])):
                    
100								$arFiles[] = $_FILES[$key];
                    
                
yii.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 114 lines
                    
1<?php
                    
2/**
                    
9 * Each array element represents the translation (value) of a message (key).
                    
10 * If the value is empty, the message is considered as not translated.
                    
11 * Messages that no longer need translation will have their translations
                    
                
Root.php https://gitlab.com/albert925/lading-ach | PHP | 453 lines
                    
7// +----------------------------------------------------------------------+
                    
8// | This source file is subject to version 2.02 of the PHP license,      |
                    
9// | that is bundled with this package in the file LICENSE, and is        |
                    
19//
                    
20// $Id: Root.php,v 1.9 2005/04/23 21:53:49 dufuz Exp $
                    
21
                    
29*/
                    
30class PHPExcel_Shared_OLE_PPS_Root extends PHPExcel_Shared_OLE_PPS
                    
31	{
                    
122		for ($i = 0; $i < count($raList); ++$i) {
                    
123			if ($raList[$i]->Type == PHPExcel_Shared_OLE::OLE_PPS_TYPE_FILE) {
                    
124				$raList[$i]->Size = $raList[$i]->_DataLen();
                    
124				$raList[$i]->Size = $raList[$i]->_DataLen();
                    
125				if ($raList[$i]->Size < PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL) {
                    
126					$iSBcnt += floor($raList[$i]->Size / $this->_SMALL_BLOCK_SIZE)
                    
                
DocBlock.php https://gitlab.com/techniconline/kmc | PHP | 470 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * phpDocumentor
                    
4 *
                    
4 *
                    
5 * PHP Version 5.3
                    
6 *
                    
8 * @copyright 2010-2011 Mike van Riel / Naenius (http://www.naenius.com)
                    
9 * @license   http://www.opensource.org/licenses/mit-license.php MIT
                    
10 * @link      http://phpdoc.org
                    
12
                    
13namespace phpDocumentor\Reflection;
                    
14
                    
14
                    
15use phpDocumentor\Reflection\DocBlock\Tag;
                    
16use phpDocumentor\Reflection\DocBlock\Context;
                    
                
module.tag.id3v1.php https://gitlab.com/code26/selah | PHP | 381 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////
                    
10//                                                             //
                    
11// module.tag.id3v1.php                                        //
                    
12// module for analyzing ID3v1 tags                             //
                    
24		if (!getid3_lib::intValueSupported($info['filesize'])) {
                    
25			$this->warning('Unable to check for ID3v1 because file is larger than '.round(PHP_INT_MAX / 1073741824).'GB');
                    
26			return false;
                    
52			$ParsedID3v1['genre'] = $this->LookupGenreName($ParsedID3v1['genreid']);
                    
53			if (!empty($ParsedID3v1['genre'])) {
                    
54				unset($ParsedID3v1['genreid']);
                    
55			}
                    
56			if (isset($ParsedID3v1['genre']) && (empty($ParsedID3v1['genre']) || ($ParsedID3v1['genre'] == 'Unknown'))) {
                    
57				unset($ParsedID3v1['genre']);
                    
91											$ParsedID3v1['comment'],
                    
92											(!empty($ParsedID3v1['track']) ? $ParsedID3v1['track'] : ''));
                    
93			$ParsedID3v1['padding_valid'] = true;
                    
                
field_control_action.php https://gitlab.com/Fraternal-Group/fraternal | PHP | 364 lines
                    
1<?php
                    
2
                    
32
                    
33		if( !is_array( $fields ) || empty( $fields ) ) {
                    
34			$am->ajax_finish( array( 'message' => __( 'No fields have been selected.', 'wpcf' ) ), false );
                    
67		$data = array( 'results' => $results );
                    
68		$is_success = empty( $errors );
                    
69
                    
                
civicrm.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 361 lines
                    
1<?php
                    
2/*
                    
42  global $crmPath;
                    
43  require_once $crmPath . '/CRM/Core/ClassLoader.php';
                    
44  CRM_Core_ClassLoader::singleton()->register();
                    
99  $parts = explode(':', $config['mysql']['server']);
                    
100  if (empty($parts[1])) {
                    
101    $parts[1] = 3306;
                    
107
                    
108  if (!empty($config['loadGenerated'])) {
                    
109    civicrm_source($dsn, $sqlPath . DIRECTORY_SEPARATOR . 'civicrm_generated.mysql', TRUE);
                    
127  if ($installType == 'drupal') {
                    
128    $configFile = $cmsPath . DIRECTORY_SEPARATOR . 'sites' . DIRECTORY_SEPARATOR . $siteDir . DIRECTORY_SEPARATOR . 'civicrm.settings.php';
                    
129  }
                    
130  elseif ($installType == 'backdrop') {
                    
131    $configFile = $cmsPath . DIRECTORY_SEPARATOR . 'civicrm.settings.php';
                    
132  }
                    
                
HeadLink.php https://gitlab.com/yousafsyed/easternglamor | PHP | 495 lines
                    
1<?php
                    
2/**
                    
61     *
                    
62     * Use PHP_EOL as separator
                    
63     */
                    
67
                    
68        $this->setSeparator(PHP_EOL);
                    
69    }
                    
199        $intersection = array_intersect($this->itemKeys, $keys);
                    
200        if (empty($intersection)) {
                    
201            return false;
                    
317        if (isset($attributes['conditionalStylesheet'])
                    
318            && !empty($attributes['conditionalStylesheet'])
                    
319            && is_string($attributes['conditionalStylesheet'])
                    
390            $conditionalStylesheet = array_shift($args);
                    
391            if (!empty($conditionalStylesheet) && is_string($conditionalStylesheet)) {
                    
392                $conditionalStylesheet = (string) $conditionalStylesheet;
                    
                
Headers.php https://gitlab.com/yousafsyed/easternglamor | PHP | 472 lines
                    
1<?php
                    
2/**
                    
55        $current   = array();
                    
56        $emptyLine = 0;
                    
57
                    
59        foreach (explode("\r\n", $string) as $line) {
                    
60            // CRLF*2 is end of headers; an empty line by itself or between header lines
                    
61            // is an attempt at CRLF injection.
                    
62            if (preg_match('/^\s*$/', $line)) {
                    
63                // empty line indicates end of headers
                    
64                $emptyLine += 1;
                    
64                $emptyLine += 1;
                    
65                if ($emptyLine > 2) {
                    
66                    throw new Exception\RuntimeException('Malformed header detected');
                    
70
                    
71            if ($emptyLine) {
                    
72                throw new Exception\RuntimeException('Malformed header detected');
                    
                
XsdTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 302 lines
                    
1<?php
                    
2/**
                    
9
                    
10class XsdTest extends \PHPUnit_Framework_TestCase
                    
11{
                    
69        $actualResult = $dom->validate($schema, $actualErrors);
                    
70        $this->assertEquals(empty($expectedErrors), $actualResult);
                    
71        $this->assertEquals($expectedErrors, $actualErrors);
                    
122     * @return array
                    
123     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
124     */
                    
127        return [
                    
128            'valid empty' => ['<config/>', []],
                    
129            'valid empty renderers' => ['<config><renderers/></config>', []],
                    
129            'valid empty renderers' => ['<config><renderers/></config>', []],
                    
130            'valid empty totals' => ['<config><totals/></config>', []],
                    
131            'valid empty renderers and totals' => ['<config><renderers/><totals/></config>', []],
                    
                
update.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 476 lines
                    
1<?php
                    
2/**
                    
5 *  @license GNU General Public License version 3, or later
                    
6 *  @version $Id: update.php 82 2010-10-23 19:13:50Z nikosdion $
                    
7 */
                    
32		jimport('joomla.filesystem.file');
                    
33		$this->isPro = JFile::exists(JPATH_COMPONENT_ADMINISTRATOR.DS.'tables'.DS.'redirs.php');
                    
34
                    
107		// Make sure we ask the server at most every 24 hrs (unless $force is true)
                    
108		if( ($difference < 24) && (!empty($inidata)) && (!$force) )
                    
109		{
                    
163				$password = $params->get('update_password', '');
                    
164				if( !empty($username) && !empty($password) )
                    
165				{
                    
409			} else {
                    
410				// PHP 4 way (actually, it's just a fallback as we can't run Admin Tools in PHP4)
                    
411				ini_set('user_agent', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)');
                    
                
static-string-table.cpp https://gitlab.com/iranjith4/hhvm | C++ | 338 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
15*/
                    
16#include "hphp/runtime/base/static-string-table.h"
                    
17#include "hphp/runtime/base/rds.h"
                    
                
Indexer.php https://gitlab.com/yousafsyed/easternglamor | PHP | 448 lines
                    
1<?php
                    
2/**
                    
16/**
                    
17 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
18 */
                    
219        $indexer = $this->config->getIndexer($indexerId);
                    
220        if (empty($indexer) || empty($indexer['indexer_id']) || $indexer['indexer_id'] != $indexerId) {
                    
221            throw new \InvalidArgumentException("{$indexerId} indexer does not exist.");
                    
                
PhpTransliteration.php https://gitlab.com/leoplanxxi/dr7-web-buap-2016 | PHP | 288 lines
                    
1<?php
                    
2
                    
4 * @file
                    
5 * Definition of \Drupal\Component\Transliteration\PhpTransliteration.
                    
6 *
                    
20 * The database comes from two types of files, both of which are searched for in
                    
21 * the PhpTransliteration::$dataDirectory directory. First, language-specific
                    
22 * overrides are searched (see PhpTransliteration::readLanguageOverrides()). If
                    
24 * transliteration character tables are searched (see
                    
25 * PhpTransliteration::readGenericData()). If looking up the character in the
                    
26 * generic table results in a NULL value, or an illegal character is
                    
28 */
                    
29class PhpTransliteration implements TransliterationInterface {
                    
30
                    
34   * The constructor sets this (by default) to subdirectory 'data' underneath
                    
35   * the directory where the class's PHP file resides.
                    
36   *
                    
                
Input.php https://gitlab.com/dleonov/my-framework-two | PHP | 419 lines
                    
1<?php
                    
2
                    
170	 * @param   array   $vars           Associative array of keys and filter types to apply.
                    
171	 *                                  If empty and datasource is null, all the input data will be returned
                    
172	 *                                  but filtered using the filter given by the parameter defaultFilter in
                    
174	 * @param   mixed   $datasource     Array to retrieve data from, or null.
                    
175	 * @param   string  $defaultFilter  Default filter used in FilterInput::clean if vars is empty and
                    
176	 *                                  datasource is null. If 'unknown', the default case is used in
                    
191	 * @param   array   $vars           Associative array of keys and filter types to apply.
                    
192	 *                                  If empty and datasource is null, all the input data will be returned
                    
193	 *                                  but filtered using the filter given by the parameter defaultFilter in
                    
195	 * @param   mixed   $datasource     Array to retrieve data from, or null.
                    
196	 * @param   string  $defaultFilter  Default filter used in FilterInput::clean if vars is empty and
                    
197	 *                                  datasource is null. If 'unknown', the default case is used in
                    
206	{
                    
207		if (empty($vars) && is_null($datasource))
                    
208		{
                    
                
ClassMetadataTest.php https://gitlab.com/freebird/WebApp | PHP | 280 lines
                    
1<?php
                    
2
                    
20
                    
21class ClassMetadataTest extends \PHPUnit_Framework_TestCase
                    
22{
                    
275     */
                    
276    public function testGetPropertyMetadataReturnsEmptyArrayWithoutConfiguredMetadata()
                    
277    {
                    
277    {
                    
278        $this->assertCount(0, $this->metadata->getPropertyMetadata('foo'), '->getPropertyMetadata() returns an empty collection if no metadata is configured for the given property');
                    
279    }
                    
                
mkdist.php https://gitlab.com/0072016/appengine-php | PHP | 548 lines
                    
15
                    
16$dist_dir = $build_dir . "/php-" . phpversion();
                    
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
                    
210/* the core dll */
                    
211copy("$build_dir/php.exe", "$dist_dir/php.exe");
                    
212copy("$build_dir/$phpdll", "$dist_dir/$phpdll");
                    
240	"win32/install.txt" => "install.txt",
                    
241	"win32/pws-php5cgi.reg" => "pws-php5cgi.reg",
                    
242	"win32/pws-php5isapi.reg" => "pws-php5isapi.reg",
                    
461}
                    
462copy('run-tests.php', $test_dir . '/run-test.php');
                    
463
                    
495
                    
496	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
                    
497	 * broken out of the tarballs */
                    
                
class-inl.h https://gitlab.com/0072016/0072016-PHP.LLC | C Header | 522 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#ifndef incl_HPHP_VM_CLASS_INL_H_
                    
18#error "class-inl.h should only be included by class.h"
                    
                
yii.php https://gitlab.com/brucealdridge/yii2 | PHP | 114 lines
                    
1<?php
                    
2/**
                    
9* Each array element represents the translation (value) of a message (key).
                    
10* If the value is empty, the message is considered as not translated.
                    
11* Messages that no longer need translation will have their translations
                    
                
SAPI.h https://gitlab.com/iranjith4/hhvm | C Header | 310 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | PHP Version 5                                                        |
                    
4   +----------------------------------------------------------------------+
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
248  int php_ini_ignore;
                    
249  int php_ini_ignore_cwd; /* don't look for php.ini in the current directory */
                    
250
                    
285#define SAPI_DEFAULT_CHARSET    ""
                    
286#define SAPI_PHP_VERSION_HEADER    "X-Powered-By: PHP/" PHP_VERSION
                    
287
                    
                
paypal-return-in-web-accept-sp.inc.php https://gitlab.com/Gashler/sg | PHP | 148 lines
                    
1<?php
                    
2/**
                    
43
                    
44			if((!empty($paypal['txn_type']) && preg_match('/^web_accept$/i', $paypal['txn_type']))
                    
45			   && (!empty($paypal['item_number']) && preg_match($GLOBALS['WS_PLUGIN__']['s2member']['c']['sp_access_item_number_regex'], $paypal['item_number']))
                    
45			   && (!empty($paypal['item_number']) && preg_match($GLOBALS['WS_PLUGIN__']['s2member']['c']['sp_access_item_number_regex'], $paypal['item_number']))
                    
46			   && (empty($paypal['payment_status']) || empty($payment_status_issues) || !preg_match($payment_status_issues, $paypal['payment_status']))
                    
47			   && (!empty($paypal['txn_id'])) && (!empty($paypal['txn_baid']) || ($paypal['txn_baid'] = $paypal['txn_id']))
                    
47			   && (!empty($paypal['txn_id'])) && (!empty($paypal['txn_baid']) || ($paypal['txn_baid'] = $paypal['txn_id']))
                    
48			   && (!empty($paypal['txn_cid']) || ($paypal['txn_cid'] = $paypal['txn_id']))
                    
49			)
                    
                
shortcodes.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 334 lines
                    
1<?php
                    
2/**
                    
117 * This function is simple, it clears all of the shortcode tags by replacing the
                    
118 * shortcodes global by a empty array. This is actually a very efficient method
                    
119 * for removing all shortcodes.
                    
146
                    
147	if (empty($shortcode_tags) || !is_array($shortcode_tags))
                    
148		return $content;
                    
259		foreach ($match as $m) {
                    
260			if (!empty($m[1]))
                    
261				$atts[strtolower($m[1])] = stripcslashes($m[2]);
                    
261				$atts[strtolower($m[1])] = stripcslashes($m[2]);
                    
262			elseif (!empty($m[3]))
                    
263				$atts[strtolower($m[3])] = stripcslashes($m[4]);
                    
263				$atts[strtolower($m[3])] = stripcslashes($m[4]);
                    
264			elseif (!empty($m[5]))
                    
265				$atts[strtolower($m[5])] = stripcslashes($m[6]);
                    
                
Configuration.php https://gitlab.com/freebird/WebApp | PHP | 226 lines
                    
1<?php
                    
2
                    
58
                    
59                    if (isset($value['profiler']['container_types']) && !empty($value['profiler']['container_types'])
                    
60                        && isset($value['container']['types']) && !empty($value['container']['types'])
                    
                
GetFileController.php https://gitlab.com/jslee1/PrestaShop | PHP | 332 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
22 * @copyright 2007-2015 PrestaShop SA
                    
23 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
                    
24 * International Registered Trademark & Property of PrestaShop SA
                    
41            $filename = ProductDownload::getFilenameFromFilename(Tools::getValue('file'));
                    
42            if (empty($filename)) {
                    
43                $newFileName = Tools::getValue('filename');
                    
43                $newFileName = Tools::getValue('filename');
                    
44                if (!empty($newFileName)) {
                    
45                    $filename = Tools::getValue('filename');
                    
60            if (!$this->context->customer->isLogged() && !Tools::getValue('secure_key') && !Tools::getValue('id_order')) {
                    
61                Tools::redirect('index.php?controller=authentication&back=get-file.php&key='.$key);
                    
62            } elseif (!$this->context->customer->isLogged() && Tools::getValue('secure_key') && Tools::getValue('id_order')) {
                    
                
BannerCommand.php https://gitlab.com/vectorci/clitools | PHP | 334 lines
                    
1<?php
                    
2
                    
136        $leftCol[] = str_pad('Linux', $labelLength, ' ', STR_PAD_LEFT) . ': ' . $kernelVersion;
                    
137        if (!empty($dockerVersion)) {
                    
138            $leftCol[] = str_pad('Docker', $labelLength, ' ', STR_PAD_LEFT) . ': ' . $dockerVersion;
                    
224
                    
225        if (!empty($mailboxUri) && function_exists('imap_open')) {
                    
226            try {
                    
236
                    
237                if (!empty($res)) {
                    
238                    $ret = $res->Nmsgs;
                    
262            case 'imap-insecure':
                    
263                $port = !empty($mailboxConf['port']) ? $mailboxConf['port'] : 143;
                    
264
                    
273            case 'imap':
                    
274                $port = !empty($mailboxConf['port']) ? $mailboxConf['port'] : 143;
                    
275
                    
                
CakeValidationSetTest.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 337 lines
                    
85	public function testGetRule() {
                    
86		$rules = array('notEmpty' => array('rule' => 'notEmpty', 'message' => 'Can not be empty'));
                    
87		$Field = new CakeValidationSet('title', $rules);
                    
103	public function testGetRules() {
                    
104		$rules = array('notEmpty' => array('rule' => 'notEmpty', 'message' => 'Can not be empty'));
                    
105		$Field = new CakeValidationSet('title', $rules);
                    
117	public function testSetRule() {
                    
118		$rules = array('notEmpty' => array('rule' => 'notEmpty', 'message' => 'Can not be empty'));
                    
119		$Field = new CakeValidationSet('title', $rules);
                    
150	public function testSetRules() {
                    
151		$rule = array('notEmpty' => array('rule' => 'notEmpty', 'message' => 'Can not be empty'));
                    
152		$Field = new CakeValidationSet('title', $rule);
                    
212		$Set = new CakeValidationSet('title', array(
                    
213			'notEmpty' => array('rule' => 'notEmpty', 'required' => true),
                    
214			'numeric' => array('rule' => 'numeric'),
                    
                
class-lp-email.php https://gitlab.com/gregtyka/lfmawordpress | PHP | 481 lines
                    
226
                    
227		return !empty( $_REQUEST['section'] ) && $_REQUEST['section'] == $this->id;
                    
228	}
                    
252		if (
                    
253			( !empty( $this->template_html ) || !empty( $this->template_plain ) )
                    
254			&& ( !empty( $_GET['move_template'] ) || !empty( $_GET['delete_template'] ) )
                    
256		) {
                    
257			if ( empty( $_GET['_learn_press_email_nonce'] ) || !wp_verify_nonce( $_GET['_learn_press_email_nonce'], 'learn_press_email_template_nonce' ) ) {
                    
258				return;
                    
264
                    
265			if ( !empty( $_GET['move_template'] ) ) {
                    
266				$this->move_template( $_GET['move_template'] );
                    
413
                    
414		if ( current_user_can( 'edit_themes' ) && !empty( $code ) && !empty( $path ) ) {
                    
415			$saved = false;
                    
                
source-class-Mandrill_Whitelists.html https://gitlab.com/urbanjunglestudio/movidly_admin | HTML | 190 lines
                    
147</span><span id="18" class="l"><a class="l" href="#18">18: </a>    <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_add" href="#_add">add</a>(<span class="php-var">$email</span>, <span class="php-var">$comment</span>=<span class="php-keyword1">null</span>) {
                    
148</span><span id="19" class="l"><a class="l" href="#19">19: </a>        <span class="php-var">$_params</span> = <span class="php-keyword1">array</span>(<span class="php-quote">&quot;email&quot;</span> =&gt; <span class="php-var">$email</span>, <span class="php-quote">&quot;comment&quot;</span> =&gt; <span class="php-var">$comment</span>);
                    
149</span><span id="20" class="l"><a class="l" href="#20">20: </a>        <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;master-&gt;call(<span class="php-quote">'whitelists/add'</span>, <span class="php-var">$_params</span>);
                    
161</span></span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="php-comment">     */</span>
                    
162</span><span id="33" class="l"><a class="l" href="#33">33: </a>    <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_getList" href="#_getList">getList</a>(<span class="php-var">$email</span>=<span class="php-keyword1">null</span>) {
                    
163</span><span id="34" class="l"><a class="l" href="#34">34: </a>        <span class="php-var">$_params</span> = <span class="php-keyword1">array</span>(<span class="php-quote">&quot;email&quot;</span> =&gt; <span class="php-var">$email</span>);
                    
163</span><span id="34" class="l"><a class="l" href="#34">34: </a>        <span class="php-var">$_params</span> = <span class="php-keyword1">array</span>(<span class="php-quote">&quot;email&quot;</span> =&gt; <span class="php-var">$email</span>);
                    
164</span><span id="35" class="l"><a class="l" href="#35">35: </a>        <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;master-&gt;call(<span class="php-quote">'whitelists/list'</span>, <span class="php-var">$_params</span>);
                    
165</span><span id="36" class="l"><a class="l" href="#36">36: </a>    }
                    
173</span></span><span id="44" class="l"><a class="l" href="#44">44: </a><span class="php-comment">     */</span>
                    
174</span><span id="45" class="l"><a class="l" href="#45">45: </a>    <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <span class="php-keyword2">delete</span>(<span class="php-var">$email</span>) {
                    
175</span><span id="46" class="l"><a class="l" href="#46">46: </a>        <span class="php-var">$_params</span> = <span class="php-keyword1">array</span>(<span class="php-quote">&quot;email&quot;</span> =&gt; <span class="php-var">$email</span>);
                    
175</span><span id="46" class="l"><a class="l" href="#46">46: </a>        <span class="php-var">$_params</span> = <span class="php-keyword1">array</span>(<span class="php-quote">&quot;email&quot;</span> =&gt; <span class="php-var">$email</span>);
                    
176</span><span id="47" class="l"><a class="l" href="#47">47: </a>        <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;master-&gt;call(<span class="php-quote">'whitelists/delete'</span>, <span class="php-var">$_params</span>);
                    
177</span><span id="48" class="l"><a class="l" href="#48">48: </a>    }
                    
                
Observer.php https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess | PHP | 360 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
172            }
                    
173            if (empty($cronExpr) && $jobConfig->schedule->cron_expr) {
                    
174                $cronExpr = (string)$jobConfig->schedule->cron_expr;
                    
187                $ts = strftime('%Y-%m-%d %H:%M:00', $time);
                    
188                if (!empty($exists[$jobCode.'/'.$ts])) {
                    
189                    // already scheduled
                    
305            }
                    
306            if (empty($callback)) {
                    
307                Mage::throwException(Mage::helper('cron')->__('No callbacks found'));
                    
                
Front.php https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess | PHP | 389 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
212    {
                    
213        // empty route supplied - return base url
                    
214        if (empty($routeName)) {
                    
233    {
                    
234        // empty route supplied - return base url
                    
235        if (empty($frontName)) {
                    
268            $to = (string)$rewrite->to;
                    
269            if (empty($from) || empty($to)) {
                    
270                continue;
                    
                
class-config.php https://gitlab.com/iamgraeme/royalmile | PHP | 452 lines
                    
1<?php
                    
2/**
                    
40			WPSEO_Options::reset();
                    
41			wp_redirect( admin_url( 'admin.php?page=' . WPSEO_Admin::PAGE_IDENTIFIER ) );
                    
42		}
                    
134
                    
135		if ( empty( $tool ) ) {
                    
136			$this->asset_manager->enqueue_script( 'yoast-seo' );
                    
158		$wpseo_post       = filter_input( INPUT_POST, 'wpseo' );
                    
159		$include_taxonomy = ! empty( $wpseo_post['include_taxonomy'] );
                    
160		$export           = new WPSEO_Export( $include_taxonomy );
                    
395		?>
                    
396			<div id="<?php echo esc_attr( $id ); ?>" class="yoastbox">
                    
397				<h1><?php echo $title; ?></h1>
                    
397				<h1><?php echo $title; ?></h1>
                    
398				<?php echo $content; ?>
                    
399			</div>
                    
                
theme-editor.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 256 lines
                    
72	if (is_writeable($file)) {
                    
73		//is_writable() not always reliable, check return value. see comments @ http://uk.php.net/is_writable
                    
74		$f = fopen($file, 'w+');
                    
162	<ul>
                    
163<?php
                    
164	$template_mapping = array();
                    
184	?>
                    
185		<li><a href="theme-editor.php?file=<?php echo "$template_file"; ?>&amp;theme=<?php echo urlencode($theme) ?>&amp;dir=theme"><?php echo $filedesc ?></a></li>
                    
186<?php endwhile; ?>
                    
202		?>
                    
203		<li><a href="theme-editor.php?file=<?php echo "$style_file"; ?>&amp;theme=<?php echo urlencode($theme) ?>&amp;dir=style"><?php echo $filedesc ?></a></li>
                    
204<?php endwhile; ?>
                    
220		<?php echo $docs_select; ?>
                    
221		<input type="button" class="button" value=" <?php esc_attr_e( 'Lookup' ); ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&amp;locale=<?php echo urlencode( get_locale() ) ?>&amp;version=<?php echo urlencode( $wp_version ) ?>&amp;redirect=true'); }" />
                    
222		</div>
                    
                
search.tpl https://gitlab.com/reclamare/mao | Smarty Template | 207 lines
                    
4    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
                    
5    <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
                    
6    <?php } ?>
                    
99            <?php if ($limits['value'] == $limit) { ?>
                    
100            <option value="<?php echo $limits['href']; ?>" selected="selected"><?php echo $limits['text']; ?></option>
                    
101            <?php } else { ?>
                    
101            <?php } else { ?>
                    
102            <option value="<?php echo $limits['href']; ?>"><?php echo $limits['text']; ?></option>
                    
103            <?php } ?>
                    
112          <div class="product-thumb">
                    
113            <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-responsive" /></a></div>
                    
114            <div class="caption">
                    
141            <div class="button-group">
                    
142              <button type="button" onclick="cart.add('<?php echo $product['product_id']; ?>', '<?php echo $product['minimum']; ?>');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $button_cart; ?></span></button>
                    
143              <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button>
                    
                
shipping.php https://gitlab.com/reclamare/mao | PHP | 268 lines
                    
1<?php
                    
2class ControllerApiShipping extends Controller {
                    
73				foreach ($custom_fields as $custom_field) {
                    
74					if (($custom_field['location'] == 'address') && $custom_field['required'] && empty($this->request->post['custom_field'][$custom_field['custom_field_id']])) {
                    
75						$json['error']['custom_field' . $custom_field['custom_field_id']] = sprintf($this->language->get('error_custom_field'), $custom_field['name']);
                    
233				// Shipping Method
                    
234				if (empty($this->session->data['shipping_methods'])) {
                    
235					$json['error'] = $this->language->get('error_no_shipping');
                    
                
menus-sync.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 272 lines
                    
63                    <tr>
                    
64                        <th scope="row" class="check-column"><input type="checkbox" name="sync[menu_translation][<?php echo $menu_id ?>][<?php echo $language ?>]" value="<?php echo esc_attr( $name ) ?>"/></th>
                    
65                        <td><?php echo $lang_details[ 'display_name' ]; ?></td>
                    
154									?>
                    
155									<input type="text" name="sync[menu_translations][<?php echo $menu_id ?>][<?php echo $l[ 'code' ] ?>]" class="icl_msync_add" value="<?php
                    
156									echo esc_attr( $menu[ 'name' ] ) . ' - ' . $l[ 'display_name' ] ?>"/>
                    
163									?>
                    
164									<input type="hidden" name="sync[menu_options][<?php echo $menu_id ?>][<?php echo $l[ 'code' ] ?>][auto_add]" value="<?php echo esc_attr( $menu[ 'translations' ][ $l[ 'code' ] ][ 'auto_add' ] ); ?>"/>
                    
165								<?php
                    
184				?>
                    
185				<input id="icl_msync_sync" type="submit" class="button-primary" value="<?php _e( 'Sync', 'sitepress' ); ?>"<?php if ( !$need_sync ): ?> disabled="disabled"<?php endif; ?> />
                    
186				&nbsp;&nbsp;
                    
195				?>
                    
196				<input id="icl_msync_sync" type="submit" class="button-primary" value="<?php _e( 'Nothing Sync', 'sitepress' ); ?>"<?php if ( !$need_sync ): ?> disabled="disabled"<?php endif; ?> />
                    
197			<?php
                    
                
layout.class.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 267 lines
                    
1<?php
                    
2/**
                    
15
                    
16Files: default.php, style.css
                    
17
                    
90
                    
91		$contact = empty($contact_link) ? "" : "<br><a href='mailto:$contact_link'>Contact</a>";
                    
92
                    
92
                    
93		if(empty($this->subheading)) {
                    
94			$subheading = "";
                    
127		$qp = explode("/", ltrim(_get_query(), "/"));
                    
128		// php sucks
                    
129		switch($qp[0]) {
                    
                
main.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 371 lines
                    
1<?php
                    
2/*
                    
176		global $user;
                    
177		if($user->can("bulk_edit_image_source") && !empty($event->search_terms)) {
                    
178			$event->add_control($this->theme->mss_html(implode(" ", $event->search_terms)));
                    
264
                    
265		if(!empty($matches)) $event->metatag = true;
                    
266	}
                    
                
Profiler.php https://gitlab.com/florianocomercial/centreon | PHP | 471 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
280         */
                    
281        require_once 'Zend/Db/Profiler/Query.php';
                    
282        $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType);
                    
308             */
                    
309            require_once 'Zend/Db/Profiler/Exception.php';
                    
310            throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'.");
                    
319             */
                    
320            require_once 'Zend/Db/Profiler/Exception.php';
                    
321            throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended.");
                    
361             */
                    
362            require_once 'Zend/Db/Profiler/Exception.php';
                    
363            throw new Zend_Db_Profiler_Exception("Query handle '$queryId' not found in profiler log.");
                    
                
inputfilter.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 551 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 *  @class: InputFilter (PHP4 & PHP5, with comments)
                    
4 * @project: PHP Input Filter
                    
5 * @date: 10-05-2005
                    
6 * @version: 1.2.2_php4/php5
                    
7 * @author: Daniel Morris
                    
18{
                    
19	var $tagsArray; // default = empty array
                    
20	var $attrArray; // default = empty array
                    
58	/**
                    
59	 * Method to be called by another php script. Processes for XSS and
                    
60	 * specified bad code.
                    
85			 */
                    
86			if (is_string($source) && !empty ($source))
                    
87			{
                    
                
db_operations.php https://gitlab.com/luyxtran264/myproject | PHP | 315 lines
                    
20require_once 'libraries/mysql_charsets.inc.php';
                    
21require_once 'libraries/display_create_table.lib.php';
                    
22
                    
40if (mb_strlen($GLOBALS['db'])
                    
41    && (! empty($_REQUEST['db_rename']) || ! empty($_REQUEST['db_copy']))
                    
42) {
                    
51    ) {
                    
52        $message = PMA\libraries\Message::error(__('The database name is empty!'));
                    
53    } else {
                    
54        $_error = false;
                    
55        if ($move || ! empty($_REQUEST['create_database_before_copying'])) {
                    
56            PMA_createDbBeforeCopy();
                    
292        /* Show error if user has configured something, notice elsewhere */
                    
293        if (!empty($cfg['Servers'][$server]['pmadb'])) {
                    
294            $message->isError(true);
                    
                
install.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 249 lines
                    
20	<h2>Error: PHP is not running</h2>
                    
21	<p>WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.</p>
                    
22</body>
                    
133			<th scope="row"><label for="blog_public"><?php _e( 'Privacy' ); ?></label></th>
                    
134			<td colspan="2"><label><input type="checkbox" name="blog_public" value="1" <?php checked( $blog_public ); ?> /> <?php _e( 'Allow my site to appear in search engines like Google and Technorati.' ); ?></label></td>
                    
135		</tr>
                    
149$mysql_version  = $wpdb->db_version();
                    
150$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
                    
151$mysql_compat   = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' );
                    
153if ( !$mysql_compat && !$php_compat )
                    
154	$compat = sprintf( __('You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version );
                    
155elseif ( !$php_compat )
                    
155elseif ( !$php_compat )
                    
156	$compat = sprintf( __('You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version );
                    
157elseif ( !$mysql_compat )
                    
                
CsrfComponentTest.php https://gitlab.com/vannh/portal_training | PHP | 308 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         3.0.0
                    
12 * @since         3.0.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
72        $cookie = $controller->response->cookie('csrfToken');
                    
73        $this->assertNotEmpty($cookie, 'Should set a token.');
                    
74        $this->assertRegExp('/^[a-f0-9]+$/', $cookie['value'], 'Should look like a hash.');
                    
271
                    
272        $this->assertEmpty($controller->response->cookie('csrfToken'));
                    
273        $cookie = $controller->response->cookie('token');
                    
                
style.css https://gitlab.com/github-cloud-corp/aws-sdk-php | CSS | 672 lines
                    
43
                    
44code:empty {
                    
45  display: none;
                    
438
                    
439.php-keyword1 {
                    
440  color: #468847;
                    
443
                    
444.php-keyword2 {
                    
445  font-weight: bold;
                    
447
                    
448.php-var {
                    
449  color: #c09853;
                    
490
                    
491span.l .php-var a:hover, span.l .php-var a:active, span.l .php-var a:focus {
                    
492  color: #c09853 !important;
                    
                
de_DE.js https://gitlab.com/wuhang2003/core | JavaScript | 123 lines
                    
10    "There is no error, the file uploaded with success" : "Es ist kein Fehler aufgetreten. Die Datei wurde erfolgreich hochgeladen.",
                    
11    "The uploaded file exceeds the upload_max_filesize directive in php.ini: " : "Die hochgeladene Datei überschreitet die upload_max_filesize-Vorgabe in php.ini",
                    
12    "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" : "Die Datei ist größer, als die MAX_FILE_SIZE-Vorgabe erlaubt, die im HTML-Formular spezifiziert ist",
                    
67    "\"{name}\" is an invalid file name." : "„{name}“ ist kein gültiger Dateiname.",
                    
68    "File name cannot be empty." : "Der Dateiname darf nicht leer sein.",
                    
69    "Storage of {owner} is full, files can not be updated or synced anymore!" : "Der Speicher von {owner} ist voll, Dateien können nicht mehr aktualisiert oder synchronisiert werden!",
                    
104    "Save" : "Speichern",
                    
105    "With PHP-FPM it might take 5 minutes for changes to be applied." : "Bei PHP-FPM kann es 5 Minuten dauern, bis Änderungen angewendet sind.",
                    
106    "Missing permissions to edit from here." : "Fehlende Berechtigungen um von hier aus zu bearbeiten.",
                    
                
PMA_relation_cleanup_test.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 511 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
3/**
                    
4 * tests for relation_cleanup.lib.php
                    
5 *
                    
5 *
                    
6 * @package PhpMyAdmin-test
                    
7 */
                    
13
                    
14require_once 'libraries/database_interface.inc.php';
                    
15
                    
15
                    
16require_once 'libraries/relation.lib.php';
                    
17require_once 'libraries/relation_cleanup.lib.php';
                    
23 *
                    
24 * this class is for testing relation_cleanup.lib.php functions
                    
25 *
                    
                
Loader.php https://gitlab.com/buitenzorg812/garapic.cms | PHP | 481 lines
                    
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
                    
2
                    
12 *
                    
13 * Install this file as application/third_party/MX/Loader.php
                    
14 *
                    
77	{
                    
78		if (empty($module)) return;
                    
79
                    
99		if ($return === FALSE && $query_builder === NULL &&
                    
100			isset(CI::$APP->db) && is_object(CI::$APP->db) && ! empty(CI::$APP->db->conn_id))
                    
101		{
                    
340
                    
341		if (empty($_ci_path))
                    
342			show_error('Unable to load the requested file: '.$_ci_file);
                    
352		{
                    
353			echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));
                    
354		}
                    
                
AbstractPaginator.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 487 lines
                    
1<?php
                    
2
                    
391    /**
                    
392     * Determine if the list of items is empty or not.
                    
393     *
                    
395     */
                    
396    public function isEmpty()
                    
397    {
                    
397    {
                    
398        return $this->items->isEmpty();
                    
399    }
                    
                
CakeValidationSetTest.php https://gitlab.com/wewo/evina-cake | PHP | 337 lines
                    
4 *
                    
5 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
                    
14 * @package       Cake.Test.Case.Model.Validator
                    
14 * @package       Cake.Test.Case.Model.Validator
                    
15 * @since         CakePHP(tm) v 2.2.0
                    
16 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
56		$result = $Field->validate($data);
                    
57		$this->assertEmpty($result);
                    
58
                    
85	public function testGetRule() {
                    
86		$rules = array('notBlank' => array('rule' => 'notBlank', 'message' => 'Can not be empty'));
                    
87		$Field = new CakeValidationSet('title', $rules);
                    
                
Profiler.php https://gitlab.com/luisrepo/ClienteWS | PHP | 471 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
280         */
                    
281        require_once 'Zend/Db/Profiler/Query.php';
                    
282        $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType);
                    
308             */
                    
309            require_once 'Zend/Db/Profiler/Exception.php';
                    
310            throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'.");
                    
319             */
                    
320            require_once 'Zend/Db/Profiler/Exception.php';
                    
321            throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended.");
                    
361             */
                    
362            require_once 'Zend/Db/Profiler/Exception.php';
                    
363            throw new Zend_Db_Profiler_Exception("Query handle '$queryId' not found in profiler log.");
                    
                
Abstract.php https://gitlab.com/florianocomercial/centreon | PHP | 419 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
114        if (!class_exists($this->_rowClass)) {
                    
115            require_once 'Zend/Loader.php';
                    
116            Zend_Loader::loadClass($this->_rowClass);
                    
223     * Rewind the Iterator to the first element.
                    
224     * Similar to the reset() function for arrays in PHP.
                    
225     * Required by interface Iterator.
                    
236     * Return the current element.
                    
237     * Similar to the current() function for arrays in PHP
                    
238     * Required by interface Iterator.
                    
248        // do we already have a row object for this position?
                    
249        if (empty($this->_rows[$this->_pointer])) {
                    
250            $this->_rows[$this->_pointer] = new $this->_rowClass(
                    
                
OperatorBracketSniff.php https://gitlab.com/yousafsyed/easternglamor | PHP | 254 lines
                    
27 * @version   Release: @package_version@
                    
28 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
29 */
                    
58     *
                    
59     * @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
                    
60     * @param int                  $stackPtr  The position of the current token in the
                    
64     */
                    
65    public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
66    {
                    
84            // Check to see if we are trying to return -n.
                    
85            $prev = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr - 1), null, true);
                    
86            if ($tokens[$prev]['code'] === T_RETURN) {
                    
242
                    
243        $lastAssignment = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$assignmentTokens, $stackPtr, null, false, null, true);
                    
244        if ($lastAssignment !== false && $lastAssignment > $lastBracket) {
                    
                
Collection.php https://gitlab.com/yousafsyed/easternglamor | PHP | 303 lines
                    
1<?php
                    
2/**
                    
14/**
                    
15 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
16 */
                    
76     *
                    
77     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
                    
78     */
                    
177    {
                    
178        if (empty($alias)) {
                    
179            $alias = $field;
                    
224        if (!is_array($fields)) {
                    
225            if (empty($fields)) {
                    
226                $fields = [];
                    
                
ManagerTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 339 lines
                    
1<?php
                    
2/**
                    
18 */
                    
19class ManagerTest extends \PHPUnit_Framework_TestCase
                    
20{
                    
26    /**
                    
27     * @var Factory|\PHPUnit_Framework_MockObject_MockObject
                    
28     */
                    
31    /**
                    
32     * @var CollectionFactory|\PHPUnit_Framework_MockObject_MockObject
                    
33     */
                    
36    /**
                    
37     * @var Session|\PHPUnit_Framework_MockObject_MockObject
                    
38     */
                    
41    /**
                    
42     * @var ManagerInterface|\PHPUnit_Framework_MockObject_MockObject
                    
43     */
                    
                
makefont.php https://gitlab.com/xolf-ug/manager | PHP | 451 lines
                    
1<?php
                    
2/*******************************************************************************
                    
9
                    
10require('ttfparser.php');
                    
11
                    
13{
                    
14	if(PHP_SAPI=='cli')
                    
15	{
                    
47	$a = file($file);
                    
48	if(empty($a))
                    
49		Error('Encoding not found: '.$enc);
                    
153	$a = file($afm);
                    
154	if(empty($a))
                    
155		Error('AFM file empty or not readable');
                    
434	if($argc==1)
                    
435		die("Usage: php makefont.php fontfile [encoding] [embed] [subset]\n");
                    
436	$fontfile = $argv[1];
                    
                
Ftp.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 373 lines
                    
1<?php
                    
2
                    
11
                    
12require_once W3TC_LIB_W3_DIR . '/Cdn/Base.php';
                    
13
                    
25    /**
                    
26     * PHP5 Constructor
                    
27     *
                    
44    /**
                    
45     * PHP4 Constructor
                    
46     *
                    
59    function _connect(&$error) {
                    
60        if (empty($this->_config['host'])) {
                    
61            $error = 'Empty host.';
                    
65
                    
66        if (empty($this->_config['port'])) {
                    
67            $this->_config['port'] = 21;
                    
                
script.js https://gitlab.com/alexprowars/bitrix | JavaScript | 432 lines
                    
10			opts: { // default options
                    
11				url: 				'/somewhere.php',
                    
12				ajaxFlag: 			'AJAX_MODE',
                    
61					// set message
                    
62					if(BX.type.isNotEmptyString(next) && sv.stage != result.data.NEXT_STAGE)
                    
63						ctx.setStage(result.data.NEXT_STAGE);
                    
312			if(typeof this.vars.statistics.TOTAL != 'undefined' && this.vars.statistics.TOTAL.CNT == 0)
                    
313				return true; // empty base
                    
314
                    
                
ConfigEntityListTest.php https://gitlab.com/reasonat/test8 | PHP | 278 lines
                    
1<?php
                    
2
                    
48    $entity = $list['dotted.default'];
                    
49    $this->assertTrue(!empty($entity), '"Default" ConfigTest entity ID found.');
                    
50    $this->assertTrue($entity instanceof ConfigTest, '"Default" ConfigTest entity is an instance of ConfigTest.');
                    
241
                    
242    // Confirm that the empty text is displayed.
                    
243    $this->assertText('There is no Test configuration yet.');
                    
                
pl.js https://gitlab.com/wuhang2003/core | JavaScript | 127 lines
                    
8    "Sample configuration detected" : "Wykryto przykładową konfigurację",
                    
9    "It has been detected that the sample configuration has been copied. This can break your installation and is unsupported. Please read the documentation before performing changes on config.php" : "Wykryto skopiowanie przykładowej konfiguracji. To może popsuć Twoją instalację i nie jest wspierane. Proszę przeczytać dokumentację przed dokonywaniem zmian w config.php",
                    
10    "PHP %s or higher is required." : "PHP %s lub wyższe jest wymagane.",
                    
10    "PHP %s or higher is required." : "PHP %s lub wyższe jest wymagane.",
                    
11    "PHP with a version lower than %s is required." : "Wersja PHP jest niższa niż %s, która jest wymagana.",
                    
12    "Following databases are supported: %s" : "Obsługiwane są następujące bazy danych: %s",
                    
40    "web services under your control" : "Kontrolowane serwisy",
                    
41    "Empty filename is not allowed" : "Pusta nazwa nie jest dozwolona.",
                    
42    "File name contains at least one invalid character" : "Nazwa pliku zawiera co najmniej jeden nieprawidłowy znak",
                    
113    "Please ask your server administrator to install the module." : "Proszę poproś administratora serwera aby zainstalował ten moduł.",
                    
114    "PHP module %s not installed." : "Moduł PHP %s nie jest zainstalowany.",
                    
115    "This is probably caused by a cache/accelerator such as Zend OPcache or eAccelerator." : "Dzieje siÄ™ tak prawdopodobnie przez cache lub akcelerator taki jak Zend OPcache lub eAccelerator.",
                    
115    "This is probably caused by a cache/accelerator such as Zend OPcache or eAccelerator." : "Dzieje siÄ™ tak prawdopodobnie przez cache lub akcelerator taki jak Zend OPcache lub eAccelerator.",
                    
116    "PHP modules have been installed, but they are still listed as missing?" : "Moduły PHP zostały zainstalowane, ale nadal brakuje ich na liście?",
                    
117    "Please ask your server administrator to restart the web server." : "PoproÅ› administratora serwera o restart serwera www.",
                    
                
1416863327-migrate-reports.php https://gitlab.com/e0/X2CRM | PHP | 315 lines
                    
113
                    
114            if (!empty ($rep['field2'])) {
                    
115                $settings['columnField'] = $rep['field2'];
                    
120
                    
121            if (!empty ($rep['cellType'])) {
                    
122                $settings['cellDataType'] = $rep['cellType'];
                    
135
                    
136            if (empty ($rep['dateRange'])) {
                    
137                print_r ('invalid dateRange'."\n");
                    
139            } else if ($rep['dateRange'] === 'custom') {
                    
140                if (empty ($rep['start']) || empty ($rep['end'])) {
                    
141                    print_r ('invalid start or end'."\n");
                    
198            } else if ($rep['dateRange'] === 'custom') {
                    
199                if (empty ($rep['start']) || empty ($rep['end'])) {
                    
200                    print_r ('invalid start or end'."\n");
                    
                
TranslationDebugCommand.php https://gitlab.com/matijabelec/bigpandadev | PHP | 268 lines
                    
1<?php
                    
2
                    
59
                    
60  <info>php %command.full_name% en AcmeDemoBundle</info>
                    
61
                    
63
                    
64  <info>php %command.full_name% --domain=messages en AcmeDemoBundle</info>
                    
65
                    
67
                    
68  <info>php %command.full_name% --only-missing en AcmeDemoBundle</info>
                    
69
                    
71
                    
72  <info>php %command.full_name% --only-unused en AcmeDemoBundle</info>
                    
73
                    
144        // No defined or extracted messages
                    
145        if (empty($allMessages) || null !== $domain && empty($allMessages[$domain])) {
                    
146            $outputMessage = sprintf('No defined or extracted messages for locale "%s"', $locale);
                    
                
Environment.php https://gitlab.com/oytunistrator/92five | PHP | 715 lines
                    
1<?php namespace Illuminate\View;
                    
2
                    
57	 */
                    
58	protected $extensions = array('blade.php' => 'blade', 'php' => 'php');
                    
59
                    
184	 * @param  string  $iterator
                    
185	 * @param  string  $empty
                    
186	 * @return string
                    
187	 */
                    
188	public function renderEach($view, $data, $iterator, $empty = 'raw|')
                    
189	{
                    
204
                    
205		// If there is no data in the array, we will render the contents of the empty
                    
206		// view. Alternatively, the "empty view" could be a raw string that begins
                    
209		{
                    
210			if (starts_with($empty, 'raw|'))
                    
211			{
                    
                
site-users.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 330 lines
                    
76			$user = $_POST['user'];
                    
77			if ( ! is_array( $_POST['user'] ) || empty( $user['username'] ) || empty( $user['email'] ) ) {
                    
78				$update = 'err_new';
                    
101			check_admin_referer( 'add-user', '_wpnonce_add-user' );
                    
102			if ( !empty( $_POST['newuser'] ) ) {
                    
103				$update = 'adduser';
                    
205<h1 id="edit-site"><?php echo $title; ?></h1>
                    
206<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>
                    
207<?php
                    
270
                    
271/** This filter is documented in wp-admin/network/site-users.php */
                    
272if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?>
                    
302<h2 id="add-new-user"><?php _e( 'Add New User' ); ?></h2>
                    
303<form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post">
                    
304	<input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
                    
                
ParamFetcherTest.php https://gitlab.com/cuza/Clinic_Recods | PHP | 440 lines
                    
1<?php
                    
2
                    
28 */
                    
29class ParamFetcherTest extends \PHPUnit_Framework_TestCase
                    
30{
                    
162
                    
163    public function testReturnWhenEmptyConstraints()
                    
164    {
                    
177     */
                    
178    public function testEmptyValidator()
                    
179    {
                    
311     */
                    
312    public function testEmptyControllerExceptionWhenInitParams()
                    
313    {
                    
                
ext_std_classobj.cpp https://gitlab.com/iranjith4/hhvm | C++ | 385 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com)     |
                    
6   | Copyright (c) 1997-2010 The PHP Group                                |
                    
7   +----------------------------------------------------------------------+
                    
7   +----------------------------------------------------------------------+
                    
8   | This source file is subject to version 3.01 of the PHP license,      |
                    
9   | that is bundled with this package in the file LICENSE, and is        |
                    
10   | available through the world-wide-web at the following url:           |
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
                
class-gf-field-checkbox.php https://gitlab.com/level-level/gravityforms | PHP | 380 lines
                    
1<?php
                    
2
                    
58		$parameter_values = GFFormsModel::get_parameter_value( $this->inputName, $field_values, $this );
                    
59		if ( ! empty( $parameter_values ) && ! is_array( $parameter_values ) ) {
                    
60			$parameter_values = explode( ',', $parameter_values );
                    
69		foreach ( $this->inputs as $input ) {
                    
70			if ( ! empty( $_POST[ 'is_submit_' . $this->formId ] ) && $get_from_post_global_var ) {
                    
71				$input_value = rgpost( 'input_' . str_replace( '.', '_', strval( $input['id'] ) ) );
                    
136			}
                    
137			if ( empty( $items ) ) {
                    
138				return '';
                    
225
                    
226				if ( ! isset( $_GET['gf_token'] ) && empty( $_POST ) && rgar( $choice, 'isSelected' ) ) {
                    
227					$checked = "checked='checked'";
                    
240				if ( $this->enablePrice ) {
                    
241					$price = rgempty( 'price', $choice ) ? 0 : GFCommon::to_number( rgar( $choice, 'price' ) );
                    
242					$choice_value .= '|' . $price;
                    
                
api.php https://gitlab.com/mostafame/team_website | PHP | 344 lines
                    
1<?php
                    
2
                    
9 * echo                   => echoes the the switcher if set to 1 ( default )
                    
10 * hide_if_empty          => hides languages with no posts ( or pages ) if set to 1 ( default )
                    
11 * show_flags             => shows flags if set to 1, defaults to 0
                    
93function pll_home_url( $lang = '' ) {
                    
94	if ( empty( $lang ) ) {
                    
95		$lang = pll_current_language();
                    
97
                    
98	return empty( $lang ) ? home_url( '/' ) : PLL()->links->get_home_url( $lang );
                    
99}
                    
131
                    
132	if ( empty( $cache ) ) {
                    
133		$cache = new PLL_Cache();
                    
170
                    
171	if ( empty( $cache ) ) {
                    
172		$cache = new PLL_Cache();
                    
                
componentbase.php https://gitlab.com/alexprowars/bitrix | PHP | 558 lines
                    
1<?php
                    
2
                    
184		$params =& $this->getParams();
                    
185		if (empty($params['CURRENT_LANG']))
                    
186		{
                    
188		}
                    
189		if (empty($params['LIST_PATH']))
                    
190		{
                    
196		}
                    
197		if (empty($params['SHOW_SOURCE_PATH']))
                    
198		{
                    
198		{
                    
199			$params['SHOW_SOURCE_PATH'] = '/bitrix/admin/translate_show_php.php';
                    
200		}
                    
202		{
                    
203			$params['EDIT_SOURCE_PATH'] = '/bitrix/admin/translate_edit_php.php';
                    
204		}
                    
                
MappingInfo.php https://gitlab.com/cserobiul/BITM-LabMs-New | PHP | 517 lines
                    
32
                    
33    if (!empty($data['labNo'])) {
                    
34      $this->lab_id = $data['labNo'];
                    
36
                    
37    if (!empty($data['lead_trainer'])) {
                    
38      $this->lead_trainer = $data['lead_trainer'];
                    
50    }
                    
51    if (!empty($data['start_date'])) {            
                    
52      $originalDate = $data['start_date'];
                    
56
                    
57    if (!empty($data['ending_date'])) {
                    
58      $ending_date = $data['ending_date'];
                    
145
                    
146        // if (!empty($this->courseName) && !empty($this->labNo) && !empty($this->seatCapacity)) {
                    
147    try {
                    
                
ARC2_SemHTMLParser.php https://gitlab.com/klausmig/CloudSemanticWeb | PHP | 339 lines
                    
1<?php
                    
2/*
                    
153        $this->cur_tag = $sub_r['tag'];
                    
154        if ($sub_r['empty']) {
                    
155          $this->close(0, $sub_r['tag'], 1);
                    
226      list($sub_r, $sub_v) = $this->xAttributes($r[2]);
                    
227      return array(array('tag' => strtolower($r[1]), 'a' => $sub_r, 'empty' => $this->isEmpty($r[1], $r[2])), $r[3]);
                    
228    }
                    
280
                    
281  function isEmpty($t, $v) {
                    
282    if (preg_match('/^(area|base|br|col|frame|hr|input|img|link|xmeta|param)$/', $t)) {
                    
                
Profiler.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 471 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
280         */
                    
281        require_once 'Zend/Db/Profiler/Query.php';
                    
282        $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType);
                    
308             */
                    
309            require_once 'Zend/Db/Profiler/Exception.php';
                    
310            throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'.");
                    
319             */
                    
320            require_once 'Zend/Db/Profiler/Exception.php';
                    
321            throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended.");
                    
361             */
                    
362            require_once 'Zend/Db/Profiler/Exception.php';
                    
363            throw new Zend_Db_Profiler_Exception("Query handle '$queryId' not found in profiler log.");
                    
                
Tokenizer.php https://gitlab.com/ctheilman92/Aging-In-Place | PHP | 310 lines
                    
1<?php
                    
2
                    
3/*
                    
4 * This file is part of Mustache.php.
                    
5 *
                    
210    {
                    
211        if (!empty($this->buffer)) {
                    
212            $this->tokens[] = array(self::TYPE  => self::T_TEXT, self::VALUE => $this->buffer);
                    
                
PhpTransliteration.php https://gitlab.com/geeta7/drupal | PHP | 288 lines
                    
1<?php
                    
2
                    
4 * @file
                    
5 * Contains \Drupal\Component\Transliteration\PhpTransliteration.
                    
6 *
                    
20 * The database comes from two types of files, both of which are searched for in
                    
21 * the PhpTransliteration::$dataDirectory directory. First, language-specific
                    
22 * overrides are searched (see PhpTransliteration::readLanguageOverrides()). If
                    
24 * transliteration character tables are searched (see
                    
25 * PhpTransliteration::readGenericData()). If looking up the character in the
                    
26 * generic table results in a NULL value, or an illegal character is
                    
28 */
                    
29class PhpTransliteration implements TransliterationInterface {
                    
30
                    
34   * The constructor sets this (by default) to subdirectory 'data' underneath
                    
35   * the directory where the class's PHP file resides.
                    
36   *
                    
                
slideshow.php https://gitlab.com/ibnukipa/cakra | PHP | 306 lines
                    
69	function register_settings() {
                    
70		add_settings_section( 'slideshow_section', __( 'Image Gallery Slideshow', 'jetpack' ), '__return_empty_string', 'media' );
                    
71
                    
85	function settings_select( $name, $values, $extra_text = '' ) {
                    
86		if ( empty( $name ) || empty( $values ) || ! is_array( $values ) ) {
                    
87			return;
                    
91		<fieldset>
                    
92			<select name="<?php echo esc_attr( $name ); ?>" id="<?php esc_attr( $name ); ?>">
                    
93				<?php foreach ( $values as $key => $value ) : ?>
                    
93				<?php foreach ( $values as $key => $value ) : ?>
                    
94					<option value="<?php echo esc_attr( $key ); ?>" <?php selected( $key, $option ); ?>>
                    
95						<?php echo esc_html( $value ); ?>
                    
98			</select>
                    
99			<?php if ( ! empty( $extra_text ) ) : ?>
                    
100				<p class="description"><?php echo esc_html( $extra_text ); ?></p>
                    
                
BaseVarDumper.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 272 lines
                    
1<?php
                    
2/**
                    
56        if ($highlight) {
                    
57            $result = highlight_string("<?php\n" . self::$_output, true);
                    
58            self::$_output = preg_replace('/&lt;\\?php<br \\/>/', '', $result, 1);
                    
94                    self::$_output .= '[...]';
                    
95                } elseif (empty($var)) {
                    
96                    self::$_output .= '[]';
                    
119                    self::$_output .= "$className#$id\n" . $spaces . '(';
                    
120                    if ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__debugInfo')) {
                    
121                        $dumpValues = $var->__debugInfo();
                    
141     *
                    
142     * The string is a valid PHP expression that can be evaluated by PHP parser
                    
143     * and the evaluation result will give back the variable value.
                    
147     *
                    
148     * It also handles objects by using the PHP functions serialize() and unserialize().
                    
149     *
                    
                
bluepay.php https://gitlab.com/Riky_Lesmana/SugarSweetCakes | PHP | 310 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
11 * @created 08/24/2011
                    
12 * @license http://www.opensource.org/licenses/mit-license.php
                    
13 * @link https://github.com/calvinfroedge/codeigniter-payments
                    
158		
                    
159		if( ! empty($this->_api_settings->user_id) )
                    
160		{
                    
186		{
                    
187			// Key not being used or Parameter not included or empty
                    
188			if($val === FALSE OR ! isset($params[$map]) OR empty($params[$map]) ) continue;			
                    
                
class-wp-customize-setting.php https://gitlab.com/Gashler/dp | PHP | 439 lines
                    
1<?php
                    
2/**
                    
51		$this->id = $this->id_data[ 'base' ];
                    
52		if ( ! empty( $this->id_data[ 'keys' ] ) )
                    
53			$this->id .= '[' . implode( '][', $this->id_data[ 'keys' ] ) . ']';
                    
74			case 'option' :
                    
75				if ( empty( $this->id_data[ 'keys' ] ) )
                    
76					add_filter( 'pre_option_' . $this->id_data[ 'base' ], array( $this, '_preview_filter' ) );
                    
181		// Handle non-array theme mod.
                    
182		if ( empty( $this->id_data[ 'keys' ] ) )
                    
183			return set_theme_mod( $this->id_data[ 'base' ], $value );
                    
201		// Handle non-array option.
                    
202		if ( empty( $this->id_data[ 'keys' ] ) )
                    
203			return update_option( $this->id_data[ 'base' ], $value );
                    
231		// Handle non-array value
                    
232		if ( empty( $this->id_data[ 'keys' ] ) )
                    
233			return $function( $this->id_data[ 'base' ], $this->default );
                    
                
prototype_engine.php https://gitlab.com/hakimkal/evricaevents | PHP | 370 lines
                    
7 *
                    
8 * PHP versions 4 and 5
                    
9 *
                    
9 *
                    
10 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
11 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
17 * @link          http://cakephp.org CakePHP(tm) Project
                    
18 * @package       cake
                    
19 * @subpackage    cake.libs.view.helpers
                    
20 * @since         CakePHP(tm) v 1.3
                    
21 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
201		}
                    
202		if (!empty($options)) {
                    
203			$optionString = ', {' . $this->_parseOptions($options) . '}';
                    
                
level_search.blade.php https://gitlab.com/ehubnepal/educationhubnepal | PHP | 160 lines
                    
1<?php 
                    
2	/*foreach($res as $r):
                    
53                                                        <div class="program-categories"> <i class="fa fa-bookmark"></i>
                    
54                                                            @if(!empty($program->categories))
                    
55                                                            @foreach($program->categories as $cat)
                    
63                                                        Cost Range - <span>
                    
64                                                                @if(!empty($program->cost_range))
                    
65                                                                {{$program->cost_range}}
                    
75                                                    <div class="eligibility collapse" id="eli{{$program->id}}">
                    
76                                                        @if(!empty($program->eligibility))
                    
77                                                        {!! $program->eligibility !!}
                    
111                                                                <dt>Cost Range:</dt>
                    
112                                                                @if(!empty($program->cost_range))
                    
113                                                                <dd>{{$program->cost_range}}</dd>
                    
116                                                                @endif
                    
117                                                                @if(!empty($program->categories))
                    
118                                                                <dt>Academic Year:</dt>
                    
                
ApiModelFactory.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 283 lines
                    
140	/**
                    
141	 * Creates a new empty {@link IApiBaseline} with the given name. Its execution
                    
142	 * environment will be automatically resolved when components are added
                    
151	 * @param name baseline name
                    
152	 * @return a new empty {@link IApiBaseline}
                    
153	 */
                    
158	/**
                    
159	 * Creates a new empty API baseline with the specified execution environment.
                    
160	 * <p>
                    
163	 * this file is described here
                    
164	 * <code>http://wiki.eclipse.org/index.php/Execution_Environment_Descriptions</code>.
                    
165	 * </p>
                    
175	/**
                    
176	 * Creates a new empty {@link IApiBaseline} with the given name. Its execution
                    
177	 * environment will be automatically resolved when components are added
                    
                
core.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 272 lines
                    
1<?php
                    
2/**
                    
25	/* If the global prefix isn't set, define it. Plugin/theme authors may also define a custom prefix. */
                    
26	if ( empty( $hybrid->prefix ) )
                    
27		$hybrid->prefix = sanitize_key( apply_filters( 'hybrid_prefix', get_template() ) );
                    
45	/* If the global textdomain isn't set, define it. Plugin/theme authors may also define a custom textdomain. */
                    
46	if ( empty( $hybrid->textdomain ) )
                    
47		$hybrid->textdomain = sanitize_key( apply_filters( hybrid_get_prefix() . '_textdomain', get_template() ) );
                    
62
                    
63	/* If a child theme isn't active, return an empty string. */
                    
64	if ( !is_child_theme() )
                    
67	/* If the global textdomain isn't set, define it. Plugin/theme authors may also define a custom textdomain. */
                    
68	if ( empty( $hybrid->child_textdomain ) )
                    
69		$hybrid->child_textdomain = sanitize_key( apply_filters( hybrid_get_prefix() . '_child_textdomain', get_stylesheet() ) );
                    
92		/* If a mofile was found based on the given format, set $mofile to that file name. */
                    
93		if ( !empty( $locate_mofile ) )
                    
94			$mofile = $locate_mofile;
                    
                
rpcconsole.cpp https://gitlab.com/Quetzalcoatl/VekitaCoin | C++ | 433 lines
                    
2// Distributed under the MIT/X11 software license, see the accompanying
                    
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
                    
4
                    
146    }
                    
147    if(args.empty())
                    
148        return; // Nothing to do
                    
242            if(obj == ui->messagesWidget && (
                    
243                  (!mod && !keyevt->text().isEmpty() && key != Qt::Key_Tab) ||
                    
244                  ((mod & Qt::ControlModifier) && key == Qt::Key_V) ||
                    
354
                    
355    if(!cmd.isEmpty())
                    
356    {
                    
                
file_helper.php https://gitlab.com/bipsahu/ptcs | PHP | 479 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
136				{
                    
137					// Ignore empty folders
                    
138					if (substr($filename, 0, 1) != '.')
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
334 *
                    
335 * Translates a file extension into a mime type based on config/mimes.php.
                    
336 * Returns FALSE if it can't determine the type, or open the mime config file
                    
354		{
                    
355			if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/mimes.php'))
                    
356			{
                    
                
file_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 479 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
136				{
                    
137					// Ignore empty folders
                    
138//					if (substr($filename, 0, 1) != '.')
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
334 *
                    
335 * Translates a file extension into a mime type based on config/mimes.php.
                    
336 * Returns FALSE if it can't determine the type, or open the mime config file
                    
477
                    
478/* End of file file_helper.php */
                    
479/* Location: ./system/helpers/file_helper.php */
                    
                
SnsClient.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 378 lines
                    
1<?php
                    
2
                    
6
                    
7w3_require_once(W3TC_LIB_W3_DIR . '/Enterprise/SnsBase.php');
                    
8
                    
182    /**
                    
183     * Reloads/compiles a PHP file.
                    
184     * @param string $filename
                    
191    /**
                    
192     * Reloads/compiles a PHP file.
                    
193     * @param string[] $filenames
                    
368    /**
                    
369     * Gets the current running WP action if any. Returns empty string if not found.
                    
370     * @return string
                    
                
class-popup-public.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 407 lines
                    
185		if ( ! $Loaded ) {
                    
186			if ( is_array( $this->script_data ) && ! empty( $this->script_data ) ) {
                    
187				$popup_data = apply_filters( 'popup-ajax-data', $this->script_data );
                    
230	 * PopUp data is loaded via a normal WordPress ajax request, directed at
                    
231	 * the admin-ajax.php handler.
                    
232	 *
                    
237
                    
238		if ( ! in_array( $pagenow, array( 'wp-login.php', 'wp-register.php' ) ) ) {
                    
239			// Data is loaded via a normal WordPress ajax request.
                    
239			// Data is loaded via a normal WordPress ajax request.
                    
240			$this->script_data['ajaxurl'] = admin_url( 'admin-ajax.php' );
                    
241			$this->script_data['ajax_data']['orig_request_uri'] = $_SERVER['REQUEST_URI'];
                    
261
                    
262		if ( ! in_array( $pagenow, array( 'wp-login.php', 'wp-register.php' ) ) ) {
                    
263			/*
                    
                
Pgsql.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 336 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Pgsql.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Db/Adapter/Pdo/Abstract.php';
                    
28
                    
88
                    
89        if (!empty($this->_config['charset'])) {
                    
90            $sql = "SET NAMES '" . $this->_config['charset'] . "'";
                    
251             */
                    
252            require_once 'Zend/Db/Adapter/Exception.php';
                    
253            throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid");
                    
260             */
                    
261            require_once 'Zend/Db/Adapter/Exception.php';
                    
262            throw new Zend_Db_Adapter_Exception("LIMIT argument offset=$offset is not valid");
                    
                
Pgsql.php https://gitlab.com/luisrepo/ClienteWS | PHP | 336 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Pgsql.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Db/Adapter/Pdo/Abstract.php';
                    
28
                    
88
                    
89        if (!empty($this->_config['charset'])) {
                    
90            $sql = "SET NAMES '" . $this->_config['charset'] . "'";
                    
251             */
                    
252            require_once 'Zend/Db/Adapter/Exception.php';
                    
253            throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid");
                    
260             */
                    
261            require_once 'Zend/Db/Adapter/Exception.php';
                    
262            throw new Zend_Db_Adapter_Exception("LIMIT argument offset=$offset is not valid");
                    
                
php-crypt_r.cpp https://gitlab.com/iranjith4/hhvm | C++ | 381 lines
                    
3   +----------------------------------------------------------------------+
                    
4   | PHP Version 7                                                        |
                    
5   +----------------------------------------------------------------------+
                    
5   +----------------------------------------------------------------------+
                    
6   | Copyright (c) 1997-2015 The PHP Group                                |
                    
7   +----------------------------------------------------------------------+
                    
7   +----------------------------------------------------------------------+
                    
8   | This source file is subject to version 3.01 of the PHP license,      |
                    
9   | that is bundled with this package in the file LICENSE, and is        |
                    
10   | available through the world-wide-web at the following url:           |
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
                
CAutoComplete.php https://gitlab.com/Griffolion/Final-Year-Project | PHP | 294 lines
                    
1<?php
                    
2/**
                    
42	 * be used to generate a URL using {@link CController::createUrl};
                    
43	 * If the URL is an empty string, the currently requested URL is used.
                    
44	 * This property will be ignored if {@link data} is set.
                    
90	 * @var boolean if set to true, the autocompleter will only allow results that
                    
91	 * are presented by the backend. Note that illegal values result in an empty
                    
92	 * input box. Defaults to false.
                    
                
Tabs.php https://gitlab.com/I-NOZex/quiz | PHP | 268 lines
                    
1<?php
                    
2/**
                    
17 *
                    
18 * ```php
                    
19 * echo Tabs::widget([
                    
146
                    
147        if (!$this->hasActiveTab() && !empty($this->items)) {
                    
148            $this->items[0]['active'] = true;
                    
                
class.jetpack-landing-page.php https://gitlab.com/thisishayat/itv-2016 | PHP | 299 lines
                    
1<?php
                    
2include_once( 'class.jetpack-admin-page.php' );
                    
49		add_action( "admin_footer-$hook", apply_filters( 'jetpack_landing_page_js_templates_callback', array( $this, 'js_templates' ), $hook ) );
                    
50		/** This action is documented in class.jetpack.php */
                    
51		do_action( 'jetpack_admin_menu', $hook );
                    
144	function js_templates() {
                    
145		Jetpack::init()->load_view( 'admin/landing-page-templates.php' );
                    
146	}
                    
149		// Handle redirects to configuration pages
                    
150		if ( ! empty( $_GET['configure'] ) ) {
                    
151			return $this->render_nojs_configurable();
                    
175		);
                    
176		Jetpack::init()->load_view( 'admin/admin-page.php', $data );
                    
177	}
                    
203				<div class="squeezer">
                    
204					<h2><?php echo wp_kses( $message, array( 'strong' => array(), 'a' => array( 'href' => true ), 'br' => true ) ); ?></h2>
                    
205					<?php
                    
                
db_datadict.php https://gitlab.com/albert925/lading-ach | PHP | 325 lines
                    
49    <p> <?php echo $strDBComment; ?>
                    
50        <i><?php echo htmlspecialchars($comment); ?></i></p>
                    
51        <?php
                    
175    <th width="80"><?php echo $strType; ?></th>
                    
176<?php /*    <th width="50"><?php echo $strAttr; ?></th>*/ ?>
                    
177    <th width="40"><?php echo $strNull; ?></th>
                    
178    <th width="70"><?php echo $strDefault; ?></th>
                    
179<?php /*    <th width="50"><?php echo $strExtra; ?></th>*/ ?>
                    
180    <?php
                    
265    <td<?php echo $type_nowrap; ?> xml:lang="en" dir="ltr"><?php echo $type; ?></td>
                    
266<?php /*    <td<?php echo $type_nowrap; ?>><?php echo $strAttribute; ?></td>*/ ?>
                    
267    <td><?php echo (($row['Null'] == 'NO') ? $strNo : $strYes); ?></td>
                    
268    <td nowrap="nowrap"><?php if (isset($row['Default'])) { echo $row['Default']; } ?></td>
                    
269<?php /*    <td<?php echo $type_nowrap; ?>><?php echo $row['Extra']; ?></td>*/ ?>
                    
270        <?php
                    
                
class-cp-user-relationships.php https://gitlab.com/clusterpress/clusterpress | PHP | 543 lines
                    
187
                    
188		if ( empty( $r['user_id'] ) || empty( $r['primary_id'] ) || empty( $r['name'] ) ) {
                    
189			return false;
                    
243
                    
244		if ( empty( $w['id'] ) && ( empty( $w['user_id'] ) || empty( $w['name'] ) ) && ( empty( $w['primary_id'] ) || empty( $w['name'] ) ) ) {
                    
245			return false;
                    
302
                    
303		if ( empty( $field_name ) || empty( $in ) ) {
                    
304			return;
                    
448
                    
449		if ( empty( $column ) || empty( $args ) ) {
                    
450			return false;
                    
525
                    
526			if ( empty( $r['user_id'] ) && empty( $r['primary_id'] ) && empty( $r['secondary_id'] ) ) {
                    
527				return false;
                    
                
QueryPluginBase.php https://gitlab.com/reasonat/test8 | PHP | 353 lines
                    
1<?php
                    
2
                    
122    foreach ($this->getEntityTableInfo() as $entity_type => $info) {
                    
123      if (!empty($info['provider'])) {
                    
124        $dependencies['module'][] = $info['provider'];
                    
170    if (!isset($group)) {
                    
171      $group = empty($groups) ? 1 : max(array_keys($groups)) + 1;
                    
172    }
                    
173
                    
174    // Create an empty group
                    
175    if (empty($groups[$group])) {
                    
199   *
                    
200   * Query plugins that don't support entities can leave the method empty.
                    
201   */
                    
278      // Include the entity provider.
                    
279      if (!empty($base_table_data['table']['provider'])) {
                    
280        $entity_tables[$base_table_data['table']['entity type']]['provider'] = $base_table_data['table']['provider'];
                    
                
Filesystem.php https://gitlab.com/techniconline/kmc | PHP | 426 lines
                    
1<?php namespace Illuminate\Filesystem;
                    
2
                    
415    /**
                    
416     * Empty the specified directory of all files and folders.
                    
417     *
                    
                
author-template.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 401 lines
                    
201function the_author_posts_link($deprecated = '') {
                    
202	if ( !empty( $deprecated ) )
                    
203		_deprecated_argument( __FUNCTION__, '2.1' );
                    
228
                    
229	if ( empty($link) ) {
                    
230		$file = home_url( '/' );
                    
257 * <li>feed (string) (''): If isn't empty, show links to author's feeds.</li>
                    
258 * <li>feed_image (string) (''): If isn't empty, use this image to link to
                    
259 * feeds.</li>
                    
278		'optioncount' => false, 'exclude_admin' => true,
                    
279		'show_fullname' => false, 'hide_empty' => true,
                    
280		'feed' => '', 'feed_image' => '', 'feed_type' => '', 'echo' => true,
                    
326
                    
327		if ( !empty( $feed_image ) || !empty( $feed ) ) {
                    
328			$link .= ' ';
                    
                
DbDumpCommand.php https://gitlab.com/geeta7/drupal | PHP | 430 lines
                    
1<?php
                    
2
                    
58
                    
59    // If not explicitly set, disable ANSI which will break generated php.
                    
60    if ($input->hasParameterOption(['--ansi']) !== TRUE) {
                    
76   *   Table patterns for which to only dump the schema, no data.
                    
77   * @return string The PHP script.
                    
78   *   The PHP script.
                    
90      // Check for schema only.
                    
91      if (empty($schema_only_patterns) || preg_replace($schema_only_patterns, '', $table)) {
                    
92        $data = $this->getTableData($connection, $table);
                    
273   *
                    
274   * If a table is set to be schema only, and empty array is returned.
                    
275   *
                    
364    }
                    
365    if (!empty($order)) {
                    
366      $order = ' ORDER BY ' . rtrim($order, ', ');
                    
                
class-SS_Framework_Foundation.php https://gitlab.com/aristath/shoestrap-foundation | PHP | 469 lines
                    
1<?php
                    
2
                    
14			'classname' => 'SS_Framework_Foundation',
                    
15			'compiler'  => 'sass_php',
                    
16
                    
75			if ( class_exists( 'ReduxFrameworkPlugin' ) ) {
                    
76				include_once( dirname( __FILE__ ) . '/modules/class-SS_Foundation_Colors.php' );
                    
77				include_once( dirname( __FILE__ ) . '/modules/class-SS_Foundation_Typography.php' );
                    
77				include_once( dirname( __FILE__ ) . '/modules/class-SS_Foundation_Typography.php' );
                    
78				include_once( dirname( __FILE__ ) . '/modules/class-SS_Foundation_Walker_Comment.php' );
                    
79				// include_once( dirname( __FILE__ ) . '/modules/class-Shoestrap_Social.php' );
                    
79				// include_once( dirname( __FILE__ ) . '/modules/class-Shoestrap_Social.php' );
                    
80				include_once( dirname( __FILE__ ) . '/modules/class-SS_Foundation_Layout.php' );
                    
81				include_once( dirname( __FILE__ ) . '/modules/class-SS_Foundation_Background.php' );
                    
81				include_once( dirname( __FILE__ ) . '/modules/class-SS_Foundation_Background.php' );
                    
82				include_once( dirname( __FILE__ ) . '/modules/class-SS_Foundation_Header.php' );
                    
83				include_once( dirname( __FILE__ ) . '/modules/class-SS_Foundation_Menus.php' );
                    
                
 

Source

Language