PageRenderTime 2956ms queryTime 340ms sortTime 478ms getByIdsTime 88ms findMatchingLines 88ms

100+ results results for 'php ord' (2956 ms)

Not the results you expected?
wp-cache-f091d5ab40590bc01ee8ea7afc5372b1.html https://gitlab.com/endomorphosis/reservationtelco | HTML | 371 lines
                    
9	<meta name="author" content="Pivot Group" />
                    
10	<meta name="keywords" content="reservation telephone company" />
                    
11	<meta name="description" content="" />
                    
29<script type='text/javascript' src='http://localhost:8888/reservation-telephone-company/wp-content/plugins/gs-presentation/js/gs-presentation.js?ver=3.0-RC1-15112'></script>
                    
30<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://localhost:8888/reservation-telephone-company/xmlrpc.php?rsd" />
                    
31<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://localhost:8888/reservation-telephone-company/wp-includes/wlwmanifest.xml" /> 
                    
34<link rel='next' title='Links' href='http://localhost:8888/reservation-telephone-company/links/' />
                    
35<meta name="generator" content="WordPress 3.0-RC1-15112" />
                    
36<link rel='canonical' href='http://localhost:8888/reservation-telephone-company/about/' />
                    
41         color:#000000;
                    
42         border-bottom:1px dotted #000000;
                    
43         }
                    
46         color:#000000;
                    
47         border-bottom:1px dotted #000000;
                    
48        }
                    
                
DiffPanel.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 365 lines
                    
41 */
                    
42package org.netbeans.modules.php.project.connections.sync.diff;
                    
43
                    
43
                    
44import java.awt.BorderLayout;
                    
45import java.awt.Dialog;
                    
61import org.netbeans.api.diff.StreamSource;
                    
62import org.netbeans.modules.php.api.util.StringUtils;
                    
63import org.netbeans.modules.php.project.connections.RemoteClient;
                    
63import org.netbeans.modules.php.project.connections.RemoteClient;
                    
64import org.netbeans.modules.php.project.connections.RemoteException;
                    
65import org.netbeans.modules.php.project.connections.TmpLocalFile;
                    
65import org.netbeans.modules.php.project.connections.TmpLocalFile;
                    
66import org.netbeans.modules.php.project.connections.sync.SyncItem;
                    
67import org.netbeans.modules.php.project.connections.transfer.TransferFile;
                    
                
Font.php https://gitlab.com/adamlwalker/generatedata | PHP | 640 lines
                    
22 * @package	PHPExcel_Style
                    
23 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license	http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package	PHPExcel_Style
                    
34 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_Style_Font implements PHPExcel_IComparable
                    
37{
                    
153			$this->_strikethrough	= NULL;
                    
154			$this->_color			= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional);
                    
155		} else {
                    
155		} else {
                    
156			$this->_color	= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor);
                    
157		}
                    
                
Url.php https://gitlab.com/x33n/respond | PHP | 548 lines
                    
116     * @param string                   $username Username of the URL
                    
117     * @param string                   $password Password of the URL
                    
118     * @param int                      $port     Port of the URL
                    
356     *
                    
357     * @param string $password Password to set
                    
358     *
                    
360     */
                    
361    public function setPassword($password)
                    
362    {
                    
496            $this->username = $url->getUsername();
                    
497            $this->password = $url->getPassword();
                    
498            $this->path = $url->getPath();
                    
508            $this->username = $url->getUsername();
                    
509            $this->password = $url->getPassword();
                    
510            $this->path = $url->getPath();
                    
                
sweetalert2.css https://gitlab.com/ptisky/API_prestashop | CSS | 595 lines
                    
8 * It is also available through the world-wide-web at this URL:
                    
9 * http://opensource.org/licenses/afl-3.0.php
                    
10 * If you did not receive a copy of the license and are unable to
                    
21 * @copyright 2015-2016 Cubyn
                    
22 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23 */
                    
36  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
                    
37  border-radius: 5px;
                    
38  box-sizing: border-box;
                    
71    color: transparent;
                    
72    border: 0; }
                    
73  .sweet-alert button {
                    
74    color: #fff;
                    
75    border: 0;
                    
76    box-shadow: none;
                    
                
InstallSchema.php https://gitlab.com/yousafsyed/easternglamor | PHP | 407 lines
                    
1<?php
                    
2/**
                    
19     * {@inheritdoc}
                    
20     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
21     */
                    
159        )->addColumn(
                    
160            'sort_order',
                    
161            \Magento\Framework\DB\Ddl\Table::TYPE_SMALLINT,
                    
163            ['unsigned' => true, 'nullable' => false, 'default' => '0'],
                    
164            'Sort order'
                    
165        )->addForeignKey(
                    
316        )->addColumn(
                    
317            'sort_order',
                    
318            \Magento\Framework\DB\Ddl\Table::TYPE_SMALLINT,
                    
320            ['nullable' => false, 'default' => '0'],
                    
321            'Sort Order'
                    
322        )->addColumn(
                    
                
arr.php https://gitlab.com/ken3/bluSky | PHP | 602 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
283	 *
                    
284	 *     // Get the values "username", "password" from $_POST
                    
285	 *     $auth = Arr::extract($_POST, array('username', 'password'));
                    
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	 *
                    
                
catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
                    
185
                    
186	// order detailed info (sale:OnSaleOrderSaved)
                    
187	public static function catchCatalogOrder(Event $event)
                    
258			{
                    
259				OrderTable::update($data['order_id'], array('BX_USER_ID' => $data['bx_user_id']));
                    
260			}
                    
263
                    
264	// order payment (sale:OnSaleOrderPaid)
                    
265	public static function catchCatalogOrderPayment(Event $event)
                    
311		// order itself
                    
312		$order = \CSaleOrder::getById($orderId);
                    
313
                    
323
                    
324		$result = \CSaleOrderPropsValue::GetList(array(), array("ORDER_ID" => $orderId));
                    
325		while ($row = $result->fetch())
                    
                
wpsc-swfupload-handlers.js https://gitlab.com/endomorphosis/reservationtelco | JavaScript | 348 lines
                    
1/**
                    
2*  This is a nearly exact copy of the corresponding wordpress file, we needed to copy and modify it for our use of swfupoader as the wordpress handler code is specific to posts
                    
3*/ 
                    
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,''),
                    
150		output_html += "	<div id='gallery_image_"+image_id+"' class='previewimage'>\n";
                    
151		output_html += "		<a class='thickbox' rel='product_extra_image_"+image_id+"' href='admin.php?wpsc_admin_action=crop_image&amp;imagename="+image_src+"&amp;imgheight=480&amp;imgwidth=600&amp;product_id=103&amp;width=640&amp;height=342' id='extra_preview_link_"+image_id+"'>\n";
                    
152		output_html += "		<img title='Preview' alt='Preview' src='"+WPSC_IMAGE_URL+image_src+"' class='previewimage'/>\n";
                    
194
                    
195			postVars = "product_id="+product_id+"&order="+order;
                    
196			jQuery.post( 'index.php?wpsc_admin_action=rearrange_images', postVars, function(returned_data) {
                    
                
RouteCollectionBuilderTest.php https://gitlab.com/ealexis.t/trends | PHP | 324 lines
                    
1<?php
                    
2
                    
18
                    
19class RouteCollectionBuilderTest extends \PHPUnit_Framework_TestCase
                    
20{
                    
76
                    
77        $addedRoute = $collectionBuilder->add('/checkout', 'AppBundle:Order:checkout');
                    
78        $addedRoute2 = $collectionBuilder->add('/blogs', 'AppBundle:Blog:list', 'blog_list');
                    
79        $this->assertInstanceOf('Symfony\Component\Routing\Route', $addedRoute);
                    
80        $this->assertEquals('AppBundle:Order:checkout', $addedRoute->getDefault('_controller'));
                    
81
                    
85
                    
86    public function testFlushOrdering()
                    
87    {
                    
104        // 1) Add a route
                    
105        $routes->add('/checkout', 'AppBundle:Order:checkout', 'checkout_route');
                    
106        // 2) Import from a file
                    
                
fckeditor.css https://gitlab.com/ptisky/API_prestashop | CSS | 536 lines
                    
283span.fileText{background-image:url(../images/small_icon/fileText.png);}

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

                    
285span.fileFlash{background-image:url(../images/small_icon/fileFlash.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);}

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

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

                    
324dt.fileFlash{background-image:url(../images/big_icon/fileFlash.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);}

                    
343{

                    
344	border:none;

                    
345	padding:2px 6px;

                    
                
upgrade_slims8_akasia.sql.php https://gitlab.com/mucill/sman7 | PHP | 269 lines
                    
1<?php
                    
2
                    
16
                    
17/*-- change all users password to : 'akasia'*/
                    
18// $sql['update'][] = "UPDATE `user` SET passwd='$2y$10$/Czdb/DbXSDO2peXwlfvDusUZ6CF0VTeSoErlOOXgSXXA2RanoLd.';";
                    
19
                    
20/*-- change all members password to : 'akasia'*/
                    
21// $hash_member = '$2y$10$Vx12rbVCdtYW701HrULLYOLDKJdb3fDusG2rE7GJzAcH9mqu2MjKK';
                    
127(12, 'sounds', 'snd', 'i', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
                    
128(13, 'spoken word', 'spw', 'i', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
                    
129(14, 'still image', 'sti', 'k', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
                    
222$sql['insert'][] = "INSERT IGNORE INTO `setting` (`setting_name`, `setting_value`) VALUES
                    
223('shortcuts_1', 'a:6:{i:0;s:42:\"Daftar Bibliografi|/bibliography/index.php\";i:1;s:61:\"Tambah Bibliografi Baru|/bibliography/index.php?action=detail\";i:2;s:51:\"Mulai Transaksi|/circulation/index.php?action=start\";i:3;s:48:\"Pengembalian Kilat|/circulation/quick_return.php\";i:4;s:42:\"Lihat Daftar Anggota|/membership/index.php\";i:5;s:37:\"Shortcut Setting|/system/shortcut.php\";}');";
                    
224
                    
                
CheckOut.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 319 lines
                    
43                    $username = Input::Post('email','');
                    
44                    $password = Input::Post('password','');
                    
45                    if(G::$Authorized->CheckLogin($username, $password)){
                    
182                $productID[]= $item['product_id'];
                    
183                $insertOrder = DB::Query('order')->Insert($item);
                    
184                if($insertOrder->status && $insertOrder->insert_id>0){
                    
210            $invoice['total'] = $moneySend;
                    
211            $invoice['order_id'] = implode(',',$orderID);
                    
212            $invoice['product_id'] = implode(',',$productID);
                    
221                foreach($orderID as $ID){
                    
222                    DB::Query('order')->Where('order_id','=',$ID)->Update(array('invoice_id'=>$insertInvoice->insert_id));
                    
223                }
                    
261                $invoice = $invoice->Result[0];
                    
262                $order = DB::Query('order')->Where('order_id','INCLUDE',$invoice['order_id'])->Get()->Result;
                    
263                $shipMethod = DB::Query('ship')->Get()->Result;
                    
                
date_helper.php https://gitlab.com/ricoru21/py_incidencia | PHP | 611 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
68 *
                    
69 * This function is identical to PHPs date() function,
                    
70 * except that it allows date codes to be formatted using
                    
102 *
                    
103 * Returns a date formatted according to the submitted standard.
                    
104 *
                    
550	{
                    
551		// Note: Don't change the order of these even though
                    
552		// some items appear to be in the wrong order
                    
609
                    
610/* End of file date_helper.php */
                    
611/* Location: ./system/helpers/date_helper.php */
                    
                
sysvmsg.c https://gitlab.com/envieidoc/advancedtomato2 | C | 477 lines
                    
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  +----------------------------------------------------------------------+
                    
36#define PHP_MSG_NOERROR		2
                    
37#define PHP_MSG_EXCEPT		4
                    
38
                    
145{
                    
146	php_info_print_table_start();
                    
147	php_info_print_table_row(2, "sysvmsg support", "enabled");
                    
342
                    
343	messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf));
                    
344
                    
                
Curl.php https://gitlab.com/yousafsyed/easternglamor | PHP | 453 lines
                    
1<?php
                    
2/**
                    
86            'In Cart' => 2,
                    
87            'Before Order Confirmation' => 3
                    
88        ],
                    
156     *
                    
157     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
158     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
175     *
                    
176     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
177     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
308     *
                    
309     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
310     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
345     *
                    
346     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
347     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
                
modules-defaults.php https://gitlab.com/Magi1053/Extra | PHP | 250 lines
                    
1<?php
                    
2// Prevent file from being loaded directly
                    
57		'et_pb_posts-remove_drop_shadow'                          => 'off',
                    
58		'et_pb_posts-border_radius'                               => '3px',
                    
59
                    
100		'et_pb_tabbed_posts-remove_drop_shadow'                   => 'off',
                    
101		'et_pb_tabbed_posts-border_radius'                        => '3px',
                    
102
                    
132		'et_pb_posts_carousel-remove_drop_shadow'                 => 'off',
                    
133		'et_pb_posts_carousel-border_radius'                      => '3px',
                    
134
                    
149		'et_pb_featured_posts_slider-remove_drop_shadow'          => 'off',
                    
150		'et_pb_featured_posts_slider-border_radius'               => '3px',
                    
151
                    
181		'et_pb_posts_blog_feed_standard-read_more_bg_color'       => 'rgba(0, 0, 0, 0.1)',
                    
182		'et_pb_posts_blog_feed_standard-read_more_border_radius'  => '3px',
                    
183
                    
                
COOKBOOK-FIXERS.md https://gitlab.com/yousafsyed/easternglamor | Markdown | 466 lines
                    
23If possible, try to get acquainted with the public interface for the
                    
24[Symfony/CS/Tokenizer/Tokens.php](Symfony/CS/Tokenizer/Tokens.php)
                    
25and [Symfony/CS/Tokenizer/Token.php](Symfony/CS/Tokenizer/Token.php)
                    
30* You are familiar with Test Driven Development.
                    
31* Forked FriendsOfPHP/PHP-CS-Fixer into your own Github Account.
                    
32* Cloned your forked repository locally.
                    
32* Cloned your forked repository locally.
                    
33* Downloaded PHP CS Fixer and have executed `php composer.phar
                    
34install`.
                    
47Create a new file in
                    
48`PHP-CS-Fixer/Symfony/CS/Fixer/Contrib/RemoveCommentsFixer.php`.
                    
49Put this content inside:
                    
121
                    
122`# php php-cs-fixer readme > README.rst`
                    
123
                    
                
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 */
                    
199     * @param string $login username
                    
200     * @param string $pass password
                    
201     */
                    
204        $this->_auth['login'] = $login;
                    
205        $this->_auth['password'] = $pass;
                    
206        //$val= base64_encode( "$login:$pass" );
                    
252     *
                    
253     * @param string $uri uri relative to host, ex. "/index.php"
                    
254     */
                    
                
template.php https://gitlab.com/alexprowars/bitrix | PHP | 409 lines
                    
228									{
                    
229										?><a class="personal-order-item-order-btn-reorder" href="<?=htmlspecialcharsbx($order["ORDER"]["URL_TO_COPY"])?>"><?=Loc::getMessage('SPOL_TPL_REPEAT_ORDER')?></a><?
                    
230									}
                    
282						<div class="personal-order-item-additional-info-more-block">
                    
283							<a class="personal-order-item-additional-info-more-link" href="<?=htmlspecialcharsbx($order["ORDER"]["URL_TO_DETAIL"])?>"><?=Loc::getMessage('SPOL_TPL_MORE_ON_ORDER')?></a>
                    
284						</div>
                    
346							{
                    
347								?><a class="g-font-size-15 sale-order-list-cancel-link" href="<?=htmlspecialcharsbx($order["ORDER"]["URL_TO_CANCEL"])?>"><?=Loc::getMessage('SPOL_TPL_CANCEL_ORDER')?></a><?
                    
348							}
                    
350							{
                    
351								?><a class="personal-order-item-order-btn-reorder" href="<?=htmlspecialcharsbx($order["ORDER"]["URL_TO_COPY"])?>"><?=Loc::getMessage('SPOL_TPL_REPEAT_ORDER')?></a><?
                    
352							}
                    
379						<div class="personal-order-item-additional-info-more-block">
                    
380							<a class="personal-order-item-additional-info-more-link" href="<?=htmlspecialcharsbx($order["ORDER"]["URL_TO_DETAIL"])?>"><?=Loc::getMessage('SPOL_TPL_MORE_ON_ORDER')?></a>
                    
381						</div>
                    
                
class.php https://gitlab.com/alexprowars/bitrix | PHP | 524 lines
                    
23
                    
24	/** @var \Bitrix\Sale\Order $order */
                    
25	protected $order = null;
                    
279		$registry = Sale\Registry::getInstance(Sale\Registry::REGISTRY_TYPE_ORDER);
                    
280		$orderClassName = $registry->getOrderClassName();
                    
281		$this->order = $orderClassName::loadByAccountNumber($this->arParams['ACCOUNT_NUMBER']);
                    
470				$paymentSum = $payment->getSum();
                    
471				$payment->setFieldNoDemand('SUM', $paymentSum + ($newOrderPrice - $oldOrderPrice));
                    
472			}
                    
485					"ORDER_ID" => $this->order->getField("ACCOUNT_NUMBER"),
                    
486					"ORDER_DATE" => $this->order->getDateInsert()->toString(),
                    
487					"PAYMENT_ID" => $payment->getField("ACCOUNT_NUMBER"),
                    
497
                    
498					$this->arResult["PAYMENT_LINK"] = $this->arParams['PATH_TO_PAYMENT'] . "?ORDER_ID=" . $this->order->getField("ACCOUNT_NUMBER") . "&PAYMENT_ID=" . $payment->getField('ACCOUNT_NUMBER');
                    
499				}
                    
                
search.php https://gitlab.com/alexprowars/bitrix | PHP | 532 lines
                    
1<?php
                    
2/**
                    
286			$res = \CCrmLead::getListEx(
                    
287				$arOrder = array(),
                    
288				$arFilter = array('LOGIC' => 'OR', '%FULL_NAME' => $search, '%TITLE' => $search),
                    
327			$res = \CCrmDeal::getListEx(
                    
328				$arOrder = array(),
                    
329				$arFilter = array('%TITLE' => $search),
                    
                
fa.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 313 lines
                    
1<?php
                    
2$translations = array(
                    
6	'Username' => 'نام كاربري',
                    
7	'Password' => 'كلمه عبور',
                    
8	'Permanent login' => '',
                    
16	'No extension' => 'پسوند نامعتبر',
                    
17	'None of the supported PHP extensions (%s) are available.' => ' پسوند پی اچ پی در دسترس نیست (%s) تعداد',
                    
18	'Session support must be enabled.' => 'پشتيباني از نشست بايستي فعال گردد',
                    
19	'Session expired, please login again.' => 'نشست پايان يافته، لطفا دوباره وارد شويد',
                    
20	'%s version: %s through PHP extension %s' => 'نسخه %s : %s توسعه پی اچ پی %s',
                    
21	'Refresh' => 'بازيابي',
                    
                
Country.php https://gitlab.com/goolic/PrestaShop | PHP | 417 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
                    
130		WHERE 1'.($active ? ' AND c.active = 1' : '').($contain_states ? ' AND c.`contains_states` = '.(int)$contain_states : '').'
                    
131		ORDER BY cl.name ASC');
                    
132        foreach ($result as $row) {
                    
136        if ($list_states) {
                    
137            $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS('SELECT * FROM `'._DB_PREFIX_.'state` ORDER BY `name` ASC');
                    
138            foreach ($result as $row) {
                    
                
ee374469f3039f2afc01916b1c6255a7d0864358.file.view-registration.tpl.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 260 lines
                    
82 : <strong>*</strong></em>
                    
83            <input type="password" title="Password" name="vPassword" id="vPassword" class="validate[required,minSize[6]] form-input-re"></label>
                    
84          <label><em><?php echo @LBL_RE_ENTER;?>
                    
86 : <strong>*</strong></em>
                    
87            <input type="password" title="Re-Enter Password" name="vRePassword" id="vRePassword" class="validate[required,equals[vPassword]] form-input-re">
                    
88          </label> 
                    
120                <option value="<?php echo $_smarty_tpl->getVariable('db_country')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['vCountryCode'];?>
                    
121" <?php if ($_smarty_tpl->getVariable('db_country')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['vCountryCode']==$_smarty_tpl->getVariable('vCountry')->value){?> selected <?php }?>><?php echo $_smarty_tpl->getVariable('db_country')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['vCountry'];?>
                    
122</option>
                    
156</option>
                    
157              <option value="EE" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='EE'){?> selected <?php }?>><?php echo @LBL_ESTONIAN;?>
                    
158</option>
                    
158</option>
                    
159              <option value="LT" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='LT'){?> selected <?php }?>><?php echo @LBL_LITHUNIAN;?>
                    
160</option>
                    
                
sitemailer_.php https://gitlab.com/nvtdn2006/azora | PHP | 384 lines
                    
171		$this->msgBody .= "\r\n--PHP-alt-" . $this->randomHash . "--";*/
                    
172		$this->msgBody = wordwrap($this->msgBody, $this->wordwrap);
                    
173	}
                    
323		$this->msgBody .= "--PHP-alt-" . $this->randomHash . "\r\n";*/
                    
324		$this->msgBody = wordwrap($this->msgBody, $this->wordwrap);
                    
325	}
                    
342		$this->msgBody .= "--PHP-alt-" . $this->randomHash . "\r\n";*/
                    
343		$this->msgBody = wordwrap($this->msgBody, $this->wordwrap);
                    
344	}
                    
361		$this->msgBody .= "--PHP-alt-" . $this->randomHash . "\r\n";*/
                    
362		$this->msgBody = wordwrap($this->msgBody, $this->wordwrap);
                    
363	}
                    
380		$this->msgBody .= "--PHP-alt-" . $this->randomHash . "\r\n";*/
                    
381		$this->msgBody = wordwrap($this->msgBody, $this->wordwrap);
                    
382	}
                    
                
twitter-timeline.php https://gitlab.com/memuller.web/wp_site | PHP | 470 lines
                    
404			<input
                    
405				type="checkbox"<?php checked( in_array( 'noborders', $instance['chrome'] ) ); ?>
                    
406				id="<?php echo $this->get_field_id( 'chrome-noborders' ); ?>"
                    
409			/>
                    
410			<label for="<?php echo $this->get_field_id( 'chrome-noborders' ); ?>">
                    
411				<?php esc_html_e( 'No Borders', 'jetpack' ); ?>
                    
438		<p>
                    
439			<label for="<?php echo $this->get_field_id( 'border-color' ); ?>">
                    
440				<?php _e( 'Border Color (hex):', 'jetpack' ); ?>
                    
444				id="<?php echo $this->get_field_id( 'border-color' ); ?>"
                    
445				name="<?php echo $this->get_field_name( 'border-color' ); ?>"
                    
446				type="text"
                    
446				type="text"
                    
447				value="<?php echo esc_attr( $instance['border-color'] ); ?>"
                    
448			/>
                    
                
simulator.js https://gitlab.com/gregtyka/Scryve-Webapp | JavaScript | 362 lines
                    
140            if (!Ext.get(target).hasCls('recorderButton')) {
                    
141                this.getRecorder().record('main', e);
                    
142            }
                    
145            if (!this.recorder) {
                    
146                this.recorder = new Ext.util.EventRecorder();
                    
147                this.recorder.on({
                    
168            if (!this.doRecordWrap) {
                    
169                this.doRecordWrap = Ext.createDelegate(me.doRecord, me);
                    
170            }
                    
185            if (!this.doRecordWrap) {
                    
186                this.doRecordWrap = Ext.createDelegate(me.doRecord, me);
                    
187            }
                    
192
                    
193            window.localStorage.setItem('recordedEvents', JSON.stringify(this.getRecorder().getEventSet('main')));
                    
194        },
                    
                
linear_solver.h https://gitlab.com/khumba/cglab | C Header | 478 lines
                    
27 *    YEAR=November 2005,
                    
28 *    URL=http://www.loria.fr/~levy/php/article.php?pub=../publications/papers/2005/Numerics
                    
29 * }
                    
97    {
                    
98        D = 1;              // OpenNL does not support homogeneous coordinates
                    
99
                    
158    {
                    
159        D = 1;              // OpenNL does not support homogeneous coordinates
                    
160
                    
384        bool success = solver_traits.linear_solver(*A_, *b_, *x_, D) ;
                    
385        CGAL_assertion(D == 1.0);   // WARNING: this library does not support homogeneous coordinates!
                    
386
                    
                
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 ) {?>
                    
                
contact.php https://gitlab.com/h94373035/web | PHP | 301 lines
                    
16  <meta name="description" content="free website template" />
                    
17  <meta name="keywords" content="enter your keywords here" />
                    
18  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
                    
110        <li><a href="contact.php">聯繫我們</a></li>
                    
111        <?php
                    
112          	if($_SESSION["login_status"]=="login_ok")
                    
117            {
                    
118           	   echo "<li><a href=\"login.php\">登入</a><li>"; 
                    
119            }
                    
273              <h2>長榮大學</h2>
                    
274			  <!fb><iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Fcjcu.tw&tabs=timeline&width=185&height=420&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true&appId" width="185" height="420" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe><!fb end>
                    
275		        <!-- <a href="#">Read more</a> -->
                    
294	  <div id="footer_content">
                    
295      <fb案讚><center><iframe src="https://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fcjcu.tw&width=450&layout=standard&action=like&show_faces=true&share=true&height=80&appId" width="450" height="80" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe></center><fb案讚 end>
                    
296        <a href="http://validator.w3.org/check?uri=referer">Valid XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">Valid CSS</a> | <a href="http://fotogrph.com/">Images</a> | website template by <a href="http://www.araynordesign.co.uk">ARaynorDesign</a>
                    
                
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
                    
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.
                    
249	 *
                    
250	 * Sorting depends on the weight attribute and mapping order.
                    
251	 *
                    
541	/**
                    
542	 * Sorting method for WPBMap::generateUserData method. Called by usort php function.
                    
543	 * @deprecated - use Vc_Sort::sortByKey since 4.4
                    
                
legacy.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 596 lines
                    
1<?php
                    
2/**
                    
126	/**
                    
127	 * Adds to the stack of model table paths in LIFO order.
                    
128	 *
                    
156			case 'model':
                    
157				$filename = strtolower($parts['name']) . '.php';
                    
158				break;
                    
301	 * @param   integer  $limitstart  Offset.
                    
302	 * @param   integer  $limit       The number of records.
                    
303	 *
                    
317	/**
                    
318	 * Returns a record count for the query.
                    
319	 *
                    
336			$query = clone $query;
                    
337			$query->clear('select')->clear('order')->clear('limit')->clear('offset')->select('COUNT(*)');
                    
338
                    
                
theme-install.php https://gitlab.com/mostafame/team_website | PHP | 329 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * @package WordPress
                    
6 * @subpackage Administration
                    
50		'back'   => __( 'Back' ),
                    
51		'error'  => __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>.' ),
                    
52		'themesFound'   => __( 'Number of Themes found: %d' ),
                    
78			/* translators: %s: Theme Directory URL */
                    
79			__( 'You can find additional themes for your site by using the Theme Browser/Installer on this screen, which will display themes from the <a href="%s" target="_blank">WordPress Theme Directory</a>. These themes are designed and developed by third parties, are available free of charge, and are compatible with the license WordPress uses.' ),
                    
80			__( 'https://wordpress.org/themes/' )
                    
168			?>
                    
169			<p class="install-help"><?php _e( 'If you have marked themes as favorites on WordPress.org, you can browse them here.' ); ?></p>
                    
170
                    
171			<p>
                    
172				<label for="wporg-username-input"><?php _e( 'Your WordPress.org username:' ); ?></label>
                    
173				<input type="hidden" id="wporg-username-nonce" name="_wpnonce" value="<?php echo esc_attr( wp_create_nonce( $action ) ); ?>" />
                    
                
SqliteMetadata.php https://gitlab.com/jalon/doadoronline | PHP | 392 lines
                    
1<?php
                    
2/**
                    
89            $columns[$row['name']] = array(
                    
90                // cid appears to be zero-based, ordinal position needs to be one-based
                    
91                'ordinal_position'          => $row['cid'] + 1,
                    
214                'event_object_table'         => $row['tbl_name'],
                    
215                'action_order'               => 0,
                    
216                'action_condition'           => null, // in $row['sql']
                    
332            if ('I' == $data['action_timing'][0]) {
                    
333                // normalize the white-space between the two words
                    
334                $data['action_timing'] = 'INSTEAD OF';
                    
                
tbl_structure.php https://gitlab.com/ctheilman92/Aging-In-Place | PHP | 469 lines
                    
13require_once 'libraries/common.inc.php';
                    
14require_once 'libraries/mysql_charsets.lib.php';
                    
15
                    
18 */
                    
19require_once 'libraries/structure.lib.php';
                    
20require_once 'libraries/index.lib.php';
                    
42if (isset($_REQUEST['change_column'])) {
                    
43    PMA_displayHtmlForColumnChange($db, $table, null, 'tbl_structure.php');
                    
44    exit;
                    
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';
                    
266if ($GLOBALS['cfg']['ShowPropertyComments']) {
                    
267    include_once 'libraries/transformations.lib.php';
                    
268    $comments_map = PMA_getComments($db, $table);
                    
                
mssql_driver.php https://gitlab.com/Illprotectyew/xlt | PHP | 517 lines
                    
64	/**
                    
65	 * ORDER BY random keyword
                    
66	 *
                    
68	 */
                    
69	protected $_random_keyword = array('NEWID()', 'RAND(%d)');
                    
70
                    
111		$this->conn_id = ($persistent)
                    
112				? mssql_pconnect($this->hostname, $this->username, $this->password)
                    
113				: mssql_connect($this->hostname, $this->username, $this->password);
                    
294
                    
295		return $sql.' ORDER BY '.$this->escape_identifiers('name');
                    
296	}
                    
448		{
                    
449			$orderby = $this->_compile_order_by();
                    
450
                    
                
jqplot.highlighter.min.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 57 lines
                    
8 * jqPlot is currently available for use in all personal or commercial projects 
                    
9 * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL 
                    
10 * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can 
                    
10 * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can 
                    
11 * choose the license that best suits your project and use it accordingly. 
                    
12 *
                    
14 * know of any substantial use of jqPlot.  You can reach the author at: 
                    
15 * chris at jqplot dot com or see http://www.jqplot.com/info.php .
                    
16 *
                    
17 * If you are feeling kind and generous, consider supporting the project by
                    
18 * making a donation at: http://www.jqplot.com/donate.php .
                    
19 *
                    
34 * under both the MIT and GPL version 2.0 licenses. This means that you can 
                    
35 * choose the license that best suits your project and use it accordingly.
                    
36 *
                    
                
class-wp-filesystem-base.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 321 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Base WordPress Filesystem.
                    
4 *
                    
4 *
                    
5 * @package WordPress
                    
6 * @subpackage Filesystem
                    
9/**
                    
10 * Base WordPress Filesystem class for which Filesystem implementations extend
                    
11 *
                    
49		$folder = $this->find_folder(ABSPATH);
                    
50		//Perhaps the FTP folder is rooted at the WordPress install, Check for wp-includes folder in root, Could have some false positives, but rare.
                    
51		if ( ! $folder && $this->is_dir('/wp-includes') )
                    
279 	 *
                    
280	 * @link http://docs.php.net/manual/en/function.chmod.php#49614
                    
281	 * @since 2.5
                    
                
class-wp-image-editor.php https://gitlab.com/Gashler/dp | PHP | 403 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Base WordPress Image Editor
                    
4 *
                    
4 *
                    
5 * @package WordPress
                    
6 * @subpackage Image_Editor
                    
                
extension.cache.sqlite3.php https://gitlab.com/x33n/ampache | PHP | 265 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////////////////////
                    
8///                                                                            //
                    
9// extension.cache.sqlite3.php - part of getID3()                              //
                    
10// Please see readme.txt for more information                                  //
                    
24*
                    
25*       require_once 'getid3/getid3.php';
                    
26*       $getID3 = new getID3;
                    
32*
                    
33*       require_once 'getid3/getid3.php';
                    
34*       require_once 'getid3/extension.cache.sqlite3.php';
                    
47*   -------------------------------------------------------------------
                    
48*   mysql               host, database, username, password
                    
49*
                    
49*
                    
50*   sqlite3             table='getid3_cache', hide=false        (PHP5)
                    
51*
                    
                
README.md https://gitlab.com/alidzapp/Link-Preview | Markdown | 243 lines
                    
5
                    
6The algorithm keeps tracking what you are typing in the status field and through regular expressions identifies a url. Thereafter, the text is in the field is passed to PHP that does all the work to analyze all the source code of the url found. If you enter more than one url, it will consider that the first one is the more relevant and it will create a preview.
                    
7Once the source code of the url is obtained, regular expressions begin to seek out and capture relevant information on it. This information is basically the title page, the images contained therein, and a brief description of the content covered in the page.
                    
23
                    
24- Apache (must support mod_php)
                    
25
                    
108
                    
109To custom your database configurations, you need to change the following values in [Database.php](/src/link-preview/php/classes/Database.php)
                    
110
                    
130        
                    
131                var url = 'src/link-preview/php/retrieve.php';
                    
132                $http({
                    
182    
                    
183Also, check the file [database-template.php](src/link-preview/template/database-template.php) to see an example of how to display the data retrieved from database.    
                    
184       
                    
                
Phrase.php https://gitlab.com/Ltaimao/wecenter | PHP | 270 lines
                    
62    /**
                    
63     * Sets the number of other words permitted between words in query phrase.
                    
64     * If zero, then this is an exact phrase search.  For larger values this works
                    
68     * moves of terms in the query phrase out of position.  For example, to switch
                    
69     * the order of two words requires two moves (the first move places the words
                    
70     * atop one another), so to permit re-orderings of phrases, the slop must be
                    
124// Allow to use wildcards within phrases
                    
125// They are either removed by text analyzer or used as a part of keyword for keyword fields
                    
126//
                    
159        // encoding is not used since we expect binary matching
                    
160        //require_once 'Zend/Search/Lucene/Index/Term.php';
                    
161        $term = new Zend_Search_Lucene_Index_Term($this->_phrase, $this->_field);
                    
172        // tokenize phrase using current analyzer and process it as a phrase query
                    
173        //require_once 'Zend/Search/Lucene/Analysis/Analyzer.php';
                    
174        $tokens = Zend_Search_Lucene_Analysis_Analyzer::getDefault()->tokenize($this->_phrase, $this->_phraseEncoding);
                    
                
FontDescriptor.php https://gitlab.com/Ltaimao/wecenter | PHP | 204 lines
                    
1<?php
                    
2/**
                    
24/** Internally used classes */
                    
25//require_once 'Zend/Pdf/Element/Array.php';
                    
26//require_once 'Zend/Pdf/Element/Dictionary.php';
                    
26//require_once 'Zend/Pdf/Element/Dictionary.php';
                    
27//require_once 'Zend/Pdf/Element/Name.php';
                    
28//require_once 'Zend/Pdf/Element/Numeric.php';
                    
30/** Zend_Pdf_Font */
                    
31//require_once 'Zend/Pdf/Font.php';
                    
32
                    
55    {
                    
56        //require_once 'Zend/Pdf/Exception.php';
                    
57        throw new Zend_Pdf_Exception('Zend_Pdf_Resource_Font_FontDescriptor is not intended to be instantiated');
                    
129         * The vertical stem width is not yet extracted from the OpenType font
                    
130         * file. For now, record zero which is interpreted as 'unknown'.
                    
131         * @todo Calculate value for StemV.
                    
                
QueryBuilder.php https://gitlab.com/brucealdridge/yii2 | PHP | 260 lines
                    
1<?php
                    
2/**
                    
49     */
                    
50    public function buildOrderByAndLimit($sql, $orderBy, $limit, $offset)
                    
51    {
                    
51    {
                    
52        $orderBy = $this->buildOrderBy($orderBy);
                    
53        if ($orderBy !== '') {
                    
53        if ($orderBy !== '') {
                    
54            $sql .= $this->separator . $orderBy;
                    
55        }
                    
                
listCommand.php https://gitlab.com/florianocomercial/centreon | PHP | 232 lines
                    
1<?php
                    
2/*
                    
39
                    
40include_once("./class/centreonUtils.class.php");
                    
41
                    
41
                    
42include_once "./include/common/autoNumLimit.php";
                    
43
                    
78
                    
79include_once "./include/common/checkPagination.php";
                    
80
                    
108if (isset($search) && $search) {
                    
109	$rq = "SELECT `command_id`, `command_name`, `command_line`, `command_type` FROM `command` WHERE `command_name` LIKE '%".htmlentities($search, ENT_QUOTES, "UTF-8")."%' $type_str ORDER BY `command_name` LIMIT ".$num * $limit.", ".$limit;
                    
110} else if ($type) {
                    
110} else if ($type) {
                    
111	$rq = "SELECT `command_id`, `command_name`, `command_line`, `command_type` FROM `command` WHERE `command_type` = '".$type."' ORDER BY command_name LIMIT ".$num * $limit.", ".$limit;
                    
112} else {
                    
                
developer_generates_method.feature https://gitlab.com/kimting254/wbms | Gherkin Specification | 417 lines
                    
3  I want to automate creating methods
                    
4  In order to avoid repetitive tasks and interruptions in development flow
                    
5
                    
6  Scenario: Generating a method
                    
7    Given the spec file "spec/CodeGeneration/MethodExample1/MarkdownSpec.php" contains:
                    
8      """
                    
8      """
                    
9      <?php
                    
10
                    
12
                    
13      use PhpSpec\ObjectBehavior;
                    
14      use Prophecy\Argument;
                    
24      """
                    
25    And the class file "src/CodeGeneration/MethodExample1/Markdown.php" contains:
                    
26      """
                    
                
node--lobbies-con-mapa.tpl.php https://gitlab.com/leoplanxxi/dr7-web-buap-2016 | PHP | 305 lines
                    
12 *   given element.
                    
13 * - $user_picture: The node author's picture from user-picture.tpl.php.
                    
14 * - $date: Formatted creation date. Preprocess functions can reformat it by
                    
165			height: 350px;
                    
166			border: 5px solid #BDBDBD;
                    
167			margin-bottom: 50px;
                    
238</style>
                    
239<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
                    
240
                    
244  <?php if (!$page): ?>
                    
245    <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
                    
246  <?php endif; ?>
                    
255  <div class="content"<?php print $content_attributes; ?>>
                    
256    <?php
                    
257      // We hide the comments and links now so that we can render them later.
                    
                
test.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 305 lines
                    
34        #echo "<table border=1><tr><td>Order</td><td>Payment</td><td>Shipping</td><td>Refund</td><td>Return</td><td>Admin Status</td><td>Frontend Status</td><td>Actions</td></tr>";
                    
35        echo "<table border=1><tr><td>Order</td><td>Payment</td><td>Refund</td><td>Shipping</td><td>Actions</td></tr>";
                    
36        foreach (array('new', 'onhold', 'processing', 'complete', 'closed', 'cancelled', 'void') as $orderStatus) {
                    
36        foreach (array('new', 'onhold', 'processing', 'complete', 'closed', 'cancelled', 'void') as $orderStatus) {
                    
37            $this->getOrder()->setOrderStatus($orderStatus);
                    
38            foreach (array('not_authorized', 'pending', 'authorized', 'partial', 'paid') as $paymentStatus) {
                    
234
                    
235        if ($this->matchOrderStatus('order', 'onhold')) {
                    
236            $actions['unhold'] = 1;
                    
261
                    
262        if ($this->matchOrderStatus('payment', 'partial,paid') && !$this->matchOrderStatus('refund', 'refunded')) {
                    
263            $actions['creditmemo'] = 1;
                    
265
                    
266        if ($this->matchOrderStatus('order', 'void')) {
                    
267            unset($actions['ship'], $actions['invoice'], $actions['ship'], $actions['hold']);
                    
                
example57_new_mPDF_v5-3_active_forms.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 233 lines
                    
3
                    
4include("../mpdf.php");
                    
5
                    
44<b>Input Password</b>
                    
45<input type="password" size="40" name="password" value="mysecretpassword" title="This field is set to act as a password field." > 
                    
46<br /><br />
                    
131<input type="image" name="imageButton" value="imagesubmitted" src="goto.gif" title="Click to run javascript" onClick="
                    
132var npass = this.getField(\'password\').value;
                    
133app.alert(\'Value of password field is: \\\'\' + npass + \'\\\'\');
                    
155var npass = this.getField(\'password\').value;
                    
156app.alert(\'Value of password field is: \\\'\' + npass + \'\\\'\');
                    
157var nButton = app.alert({
                    
187/*
                    
188// Try playing around with these (these are also in config.php)
                    
189$mpdf->formUseZapD = false;
                    
                
ja.php https://gitlab.com/techniconline/kmc | PHP | 133 lines
                    
1<?php
                    
2
                    
8 * @author yama yamamoto@kyms.jp
                    
9 * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
                    
10 * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
                    
17
                    
18    // Date time formats. See http://www.php.net/manual/en/function.strftime.php
                    
19    '_dateTimeFull' => "%Y/%m/%d %H:%M",
                    
94    "Show:" => "表示項目:",
                    
95    "Order by:" => "表示順:",
                    
96    "Thumbnails" => "サムネイル",
                    
                
CakeTestFixture.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 328 lines
                    
2/**
                    
3 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
                    
12 * @package       Cake.TestSuite.Fixture
                    
170
                    
171			if (isset($import['records']) && $import['records'] !== false && isset($model) && isset($db)) {
                    
172				$this->records = array();
                    
283				$fields = array();
                    
284				foreach ($this->records as $record) {
                    
285					$fields = array_merge($fields, array_keys(array_intersect_key($record, $this->fields)));
                    
288				$default = array_fill_keys($fields, null);
                    
289				foreach ($this->records as $record) {
                    
290					$merge = array_values(array_merge($default, $record));
                    
                
class-wp-customize-setting.php https://gitlab.com/Gashler/dp | PHP | 439 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * @package WordPress
                    
6 * @subpackage Customize
                    
377 *
                    
378 * @package WordPress
                    
379 * @subpackage Customize
                    
394 *
                    
395 * @package WordPress
                    
396 * @subpackage Customize
                    
422/**
                    
423 * @package WordPress
                    
424 * @subpackage Customize
                    
                
AdminPreferencesController.php https://gitlab.com/staging06/myproject | PHP | 246 lines
                    
1<?php
                    
2/*
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/osl-3.0.php
                    
11* If you did not receive a copy of the license and are unable to
                    
22*  @copyright  2007-2015 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
97                    'title' => $this->l('Enable SSL'),
                    
98                    'desc' => $this->l('If you own an SSL certificate for your shop\'s domain name, you can activate SSL encryption (https://) for customer account identification and order processing.'),
                    
99                    'hint' => $this->l('If you want to enable SSL on all the pages of your shop, activate the "Enable on all the pages" option below.'),
                    
159                            'name' => $this->l('Round on each item'),
                    
160                            'id' => Order::ROUND_ITEM
                    
161                            ),
                    
163                            'name' => $this->l('Round on each line'),
                    
164                            'id' => Order::ROUND_LINE
                    
165                            ),
                    
                
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 *
                    
109 * Deletes all files contained in the supplied directory path.
                    
110 * Files must be writable or owned by the system in order to be deleted.
                    
111 * If the second parameter is set to TRUE, any directories contained
                    
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			{
                    
                
cat_msproduct_get.php https://gitlab.com/ptisky/API_prestashop | PHP | 311 lines
                    
1<?php

                    
2/**

                    
34			WHERE deleted!='1'

                    
35			ORDER BY name";

                    
36	$res = Db::getInstance()->executeS($sql);

                    
270	$sql.=" WHERE ps.id_product IN (".psql($idlist).")

                    
271			ORDER BY ps.id_product, ps.id_shop";

                    
272	$res = Db::getInstance()->executeS($sql);

                    
                
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 *
                    
109 * Deletes all files contained in the supplied directory path.
                    
110 * Files must be writable or owned by the system in order to be deleted.
                    
111 * If the second parameter is set to TRUE, any directories contained
                    
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 */
                    
                
Feed.php https://gitlab.com/fabiorf/curso-zend1-aula1 | PHP | 320 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Feed.php 24593 2012-01-05 20:35:02Z matthew $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';
                    
26
                    
58        $this->_setExplicit($this->_dom, $this->_base);
                    
59        $this->_setKeywords($this->_dom, $this->_base);
                    
60        $this->_setNewFeedUrl($this->_dom, $this->_base);
                    
213    /**
                    
214     * Set feed keywords
                    
215     *
                    
221    {
                    
222        $keywords = $this->getDataContainer()->getItunesKeywords();
                    
223        if (!$keywords || empty($keywords)) {
                    
                
http.php https://gitlab.com/Gashler/dp | PHP | 519 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * Will eventually replace and standardize the WordPress HTTP requests made.
                    
6 *
                    
6 *
                    
7 * @link http://trac.wordpress.org/ticket/4779 HTTP API Proposal
                    
8 *
                    
8 *
                    
9 * @package WordPress
                    
10 * @subpackage HTTP
                    
143 * 'httpversion' => '1.0'
                    
144 * 'user-agent'  => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' )
                    
145 * 'blocking'    => true
                    
319	if ( $url && !isset( $capabilities['ssl'] ) ) {
                    
320		$scheme = parse_url( $url, PHP_URL_SCHEME );
                    
321		if ( 'https' == $scheme || 'ssl' == $scheme ) {
                    
                
pageTranslations.php https://gitlab.com/macitsimsek/fastsubtitle | PHP | 217 lines
                    
18    'username'              => 'Username',
                    
19    'password'              => 'Password',
                    
20    'again_password'        => 'Password Again',
                    
28    'sign_up'               => 'Sign Up',
                    
29    'forgot_password'       => 'Forgot Password',
                    
30    'change_password'       => 'Change Password',
                    
32    'view_profile'          => 'View Profile',
                    
33    'please_enter_your_password_informations'       => 'Please Enter Your Password Informations',
                    
34    'last_password'         => 'Last Password',
                    
34    'last_password'         => 'Last Password',
                    
35    'new_password'          => 'New Password',
                    
36    'agree_to_terms'        => 'I Agree to Terms',
                    
122    'next'                  => 'Next',
                    
123    'order_by'              => 'Order By',
                    
124    'finishing_closer'      => 'Finishing Closer',
                    
                
grid.subgrid.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 298 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-2.0.html
                    
54			var tddiv, i,  sgmap,
                    
55			dummy = $("<table cellspacing='0' cellpadding='0' border='0'><tbody></tbody></table>"),
                    
56			trdiv = $("<tr></tr>");
                    
90			var tddiv,result,i,cur, sgmap,j,
                    
91			dummy = $("<table cellspacing='0' cellpadding='0' border='0'><tbody></tbody></table>"),
                    
92			trdiv = $("<tr></tr>");
                    
                
text_effects.hs https://gitlab.com/stallmanifold/imagemagick | Haskell | 313 lines
                    
121  trimImage w 0
                    
122  -- Add a transparent border
                    
123  pw `setColor` "lightblue"
                    
123  pw `setColor` "lightblue"
                    
124  borderImage w pw 5 5
                    
125  -- and write it
                    
130--           -annotate +25+65 'Anthony' -distort Arc 120 \
                    
131--           -trim +repage -bordercolor lightblue -border 10  font_arc.jpg
                    
132textEffect3 :: (MonadResource m) => PMagickWand -> PDrawingWand -> PPixelWand -> m ()
                    
209  trimImage w 0
                    
210  -- Add the border
                    
211  pw `setColor` "none"
                    
211  pw `setColor` "none"
                    
212  borderImage w pw 10 10
                    
213  -- MagickSetImageMatte(magick_wand,MagickTrue);
                    
                
ApiGenOptionsPanel.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 336 lines
                    
41 */
                    
42package org.netbeans.modules.php.apigen.ui.options;
                    
43
                    
65import javax.swing.event.DocumentListener;
                    
66import org.netbeans.modules.php.api.util.FileUtils;
                    
67import org.netbeans.modules.php.api.util.UiUtils;
                    
67import org.netbeans.modules.php.api.util.UiUtils;
                    
68import org.netbeans.modules.php.apigen.commands.ApiGenScript;
                    
69import org.netbeans.spi.options.OptionsPanelController;
                    
78@NbBundle.Messages("ApiGenOptionsPanel.keywords.documentation=documentation")
                    
79@OptionsPanelController.Keywords(keywords={"php", "apigen", "phpdoc", "phpdocumentor", "#ApiGenOptionsPanel.keywords.documentation"},
                    
80        location=UiUtils.OPTIONS_PATH, tabTitle= "#LBL_PHPGenOptionsName")
                    
                
DeleteComment.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 355 lines
                    
1<?php
                    
2
                    
5 */
                    
6require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
                    
7
                    
10 *
                    
11 * @package    WordPress
                    
12 * @subpackage UnitTests
                    
71		$_POST['_page']       = 1;
                    
72		$_POST['_url']        = admin_url( 'edit-comments.php' );
                    
73
                    
128		$_POST['_page']       = 1;
                    
129		$_POST['_url']        = admin_url( 'edit-comments.php' );
                    
130
                    
158		$_POST['_page']       = 1;
                    
159		$_POST['_url']        = admin_url( 'edit-comments.php' );
                    
160
                    
                
media-template.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 467 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * WordPress media templates.
                    
4 *
                    
50		<?php if ( ! _device_can_upload() ) : ?>
                    
51			<h3 class="upload-instructions"><?php _e('The web browser on your device cannot be used to upload files. You may be able to use the <a href="http://wordpress.org/extend/mobile/">native app for your device</a> instead.'); ?></h3>
                    
52		<?php elseif ( is_multisite() && ! is_upload_space_available() ) : ?>
                    
328						if ( size ) { #>
                    
329							<option value="<?php echo esc_attr( $value ); ?>" <?php selected( $value, 'full' ); ?>>
                    
330								<?php echo esc_html( $name ); ?> &ndash; {{ size.width }} &times; {{ size.height }}
                    
363				<?php for ( $i = 1; $i <= 9; $i++ ) : ?>
                    
364					<option value="<?php echo esc_attr( $i ); ?>" <?php selected( $i, 3 ); ?>>
                    
365						<?php echo esc_html( $i ); ?>
                    
371		<label class="setting">
                    
372			<span><?php _e( 'Random Order' ); ?></span>
                    
373			<input type="checkbox" data-setting="_orderbyRandom" />
                    
                
html.php https://gitlab.com/Bartwillemsen/aurora-framework | PHP | 376 lines
                    
1<?php
                    
2namespace Aurora;
                    
37
                    
38		return '<script src="'.$url.'"'.static::attributes($attributes).'></script>'.PHP_EOL;
                    
39	}
                    
69
                    
70		return '<link href="'.$url.'"'.static::attributes($attributes).'>'.PHP_EOL;
                    
71	}
                    
239	/**
                    
240	 * Generate an ordered list of items.
                    
241	 *
                    
251	/**
                    
252	 * Generate an un-ordered list of items.
                    
253	 *
                    
263	/**
                    
264	 * Generate an ordered or un-ordered list.
                    
265	 *
                    
                
qrsplit.php https://gitlab.com/Ltaimao/wecenter | PHP | 311 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * PHP QR Code encoder
                    
4 *
                    
9 *
                    
10 * PHP QR Code is distributed under LGPL 3
                    
11 * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
                    
52            
                    
53            return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9')));
                    
54        }
                    
82                    $word = (ord($c) << 8) | ord($d);
                    
83                    if(($word >= 0x8140 && $word <= 0x9ffc) || ($word >= 0xe040 && $word <= 0xebbf)) {
                    
84                        return QR_MODE_KANJI;
                    
286                } else {
                    
287                    if (ord($this->dataStr[$p]) >= ord('a') && ord($this->dataStr[$p]) <= ord('z')) {
                    
288                        $this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32);
                    
                
web-sites-digital-marketing-application-solution-overview.md https://gitlab.com/yeah568/azure-content | Markdown | 140 lines
                    
34
                    
35The Azure Marketplace provides templates from the popular website content management systems (CMS), such as Orchard, Umbraco, Drupal, and [WordPress]. You can create a web app using your favorite CMS flavor. You can choose from various database backends to meet your needs, including [Azure SQL Database] and [MySQL].
                    
36
                    
36
                    
37Your existing web assets can run on Web Apps, whether they are .NET, PHP, Java, Node.js, or Python. You can move them to Web Apps using your familiar [FTP] tools. If you frequently create digital marketing campaigns, it is possible that you have existing web assets in a source control management system. You can deploy to Web Apps directly from popular source control options, such as [Visual Studio], [Visual Studio Team Services], and [Git] - local, GitHub, BitBucket, DropBox, Mercurial, etc..
                    
38
                    
98
                    
99[WordPress]:web-sites-php-web-site-gallery.md
                    
100  
                    
100  
                    
101[MySQL]:web-sites-php-mysql-deploy-use-git.md
                    
102[Azure SQL Database]:web-sites-dotnet-deploy-aspnet-mvc-app-membership-oauth-sql-database.md
                    
                
MY_url_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 542 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
246 * human-friendly URL string with either a dash
                    
247 * or an underscore as the word separator.
                    
248 *
                    
540
                    
541/* End of file MY_url_helper.php */
                    
542/* Location: ./application/helpers/MY_url_helper.php */
                    
                
ExceptionHandlerAsm.asm https://gitlab.com/envieidoc/Clover | Assembly | 445 lines
                    
5; which accompanies this distribution.  The full text of the license may be found at
                    
6; http://opensource.org/licenses/bsd-license.php.
                    
7;
                    
32
                    
33EXTRN mErrorCodeFlag:DWORD            ; Error code flags for exceptions
                    
34EXTRN mDoFarReturnFlag:DWORD          ; Do far return flag
                    
203    push    ecx                          ; ESP
                    
204    push    dword ptr [ebp]              ; EBP
                    
205    push    esi
                    
210    push    eax
                    
211    movzx   eax, word ptr [ebp + 4 * 4]
                    
212    push    eax
                    
288;; UINT32  ExceptionData;
                    
289    push    dword ptr [ebp + 2 * 4]
                    
290
                    
                
ResetPasswordPostTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 307 lines
                    
10
                    
11class ResetPasswordPostTest extends \PHPUnit_Framework_TestCase
                    
12{
                    
167                [
                    
168                    ['password', $password],
                    
169                    ['password_confirmation', $passwordConfirmation],
                    
233                    ['password', $password],
                    
234                    ['password_confirmation', $passwordConfirmation],
                    
235                ]
                    
239            ->method('addError')
                    
240            ->with(__('New Password and Confirm New Password values didn\'t match.'))
                    
241            ->willReturnSelf();
                    
280                    ['password', $password],
                    
281                    ['password_confirmation', $passwordConfirmation],
                    
282                ]
                    
                
view.php https://gitlab.com/agustus/wisata-web | PHP | 269 lines
                    
5					<h3 class="page-title">
                    
6						<?php echo $title;?> <small><?php echo $description;?></small>
                    
7					</h3>
                    
106															<div class="col-md-1">
                    
107																<?php echo ucwords($array_permisi);?>
                    
108															</div>
                    
175					                                    		<td class="text-left">
                    
176					                                    			<img src="<?php echo base_url("assets/upload/".$dataGaleri['url_foto']); ?>" id="url_foto<?php echo $image_row; ?>" height="100" width="100" alt="1" title="" />
                    
177										                        </td>
                    
179										                        <td class="text-right">
                    
180										                        	<input type="text" disabled name="foto[<?php echo $image_row; ?>][nama_foto]" value="<?php echo $dataGaleri['nama_foto']; ?>" class="form-control" />
                    
181										                        </td>
                    
183										                      	<td class="text-right">
                    
184										                      		<input type="text" disabled name="foto[<?php echo $image_row; ?>][deskripsi_foto]" value="<?php echo $dataGaleri['deskripsi_foto']; ?>" class="form-control" />
                    
185										                      	</td>
                    
                
Database.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 350 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 */
                    
178            )
                    
179            ->order('file_id')
                    
180            ->limit($count, $offset);
                    
344            ->where($adapter->prepareSqlCondition('directory', array('seq' => $directory)))
                    
345            ->order('file_id');
                    
346
                    
                
6fc78b159f4a9e83ef134f25b7f439fa03b2da3b56daec84739a3e2daad0.php https://gitlab.com/kamags/manutd | PHP | 257 lines
                    
1<?php
                    
2
                    
26        // line 7
                    
27        if ( !twig_test_empty((isset($context["metaKeywords"]) ? $context["metaKeywords"] : null))) {
                    
28            // line 8
                    
29            echo "\t<meta name=\"keywords\" content=\"";
                    
30            echo (isset($context["metaKeywords"]) ? $context["metaKeywords"] : null);
                    
31            echo "\" />
                    
                
emogrifier.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 228 lines
                    
1<?php defined('_JEXEC') or die('Restricted access'); ?>
                    
2<?php
                    
14                Fixed support for HTML entities.
                    
15    2009-08-17  Fixed CSS selector processing so that selectors are processed by precedence/specificity, and not just in order.
                    
16    2009-10-29  Fixed so that selectors appearing later in the CSS will have precedence over identical selectors appearing earlier.
                    
20    2010-06-16  Added static caching for less processing overhead in situations where multiple emogrification takes place
                    
21    2010-07-26  Fixed bug where '0' values were getting discarded because of php's empty() function... Thanks Scott!
                    
22    2010-09-03  Added checks to invisible node removal to ensure that we don't try to remove non-existent child nodes of parents that have already been deleted
                    
102                                             'attributes' => $matches[2][$key],
                    
103                                             'index' => $key, // keep track of where it appears in the file, since order is important
                    
104                    );
                    
                
CHANGES.md https://gitlab.com/reasonat/test8 | Markdown | 322 lines
                    
10
                    
11* Disallowed failures on PHP 7 on Travis (tests were passing since a long time)
                    
12
                    
17* Improved the window resize test to consider headless browsers
                    
18* Fixed the compatibility of the testsuite with PHPUnit 5
                    
19* Added a test ensuring that `wait()` always return a boolean even when the JS expression does not cast the value
                    
45
                    
46* Fixed the URL assertions when comparing paths ending in ``.php``
                    
47* Silenced deprecation warnings (following the Symfony convention) to make
                    
47* Silenced deprecation warnings (following the Symfony convention) to make
                    
48  them less invasive. Use the `symfony/phpunit-bridge` to get them reported
                    
49  when using Mink in your PHPUnit tests.
                    
53
                    
54* Made the testsuite compatible with PHPUnit strict timing mode (only the library testsuite, not the driver one)
                    
55* Added testing against PHP 7
                    
                
PaymentMethodManagementTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 332 lines
                    
30        $quote = $this->objectManager->create(\Magento\Quote\Model\Quote::class);
                    
31        $quote->load('test_order_1_with_payment', 'reserved_order_id');
                    
32        $cartId = $quote->getId();
                    
63        $quote = $this->objectManager->create(\Magento\Quote\Model\Quote::class);
                    
64        $quote->load('test_order_with_virtual_product', 'reserved_order_id');
                    
65        $cartId = $quote->getId();
                    
162        $quote = $this->objectManager->create(\Magento\Quote\Model\Quote::class);
                    
163        $quote->load('test_order_1', 'reserved_order_id');
                    
164        $cartId = $quote->getId();
                    
231        $quote = $this->objectManager->create(\Magento\Quote\Model\Quote::class);
                    
232        $quote->load('test_order_1', 'reserved_order_id');
                    
233
                    
289        $quote = $this->objectManager->create(\Magento\Quote\Model\Quote::class);
                    
290        $quote->load('test_order_1', 'reserved_order_id');
                    
291
                    
                
LockerTest.php https://gitlab.com/tigefa/composer | PHP | 284 lines
                    
1<?php
                    
2
                    
6 * (c) Nils Adermann <naderman@naderman.de>
                    
7 *     Jordi Boggiano <j.boggiano@seld.be>
                    
8 *
                    
17
                    
18class LockerTest extends \PHPUnit_Framework_TestCase
                    
19{
                    
                
class-popup-public.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 407 lines
                    
1<?php
                    
2// Load dependencies.
                    
2// Load dependencies.
                    
3require_once PO_INC_DIR . 'class-popup-base.php';
                    
4
                    
138	/**
                    
139	 * Action handler that allows us to add a popup via WordPress hook.
                    
140	 *
                    
229	 *
                    
230	 * PopUp data is loaded via a normal WordPress ajax request, directed at
                    
231	 * the admin-ajax.php handler.
                    
237
                    
238		if ( ! in_array( $pagenow, array( 'wp-login.php', 'wp-register.php' ) ) ) {
                    
239			// Data is loaded via a normal WordPress ajax request.
                    
261
                    
262		if ( ! in_array( $pagenow, array( 'wp-login.php', 'wp-register.php' ) ) ) {
                    
263			/*
                    
                
site-users.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 330 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * @package WordPress
                    
6 * @subpackage Multisite
                    
79			} else {
                    
80				$password = wp_generate_password( 12, false);
                    
81				$user_id = wpmu_create_user( esc_html( strtolower( $user['username'] ) ), $password, esc_html( $user['email'] ) );
                    
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
                    
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 ) ?>" />
                    
320		<tr class="form-field">
                    
321			<td colspan="2"><?php _e( 'A password reset link will be sent to the user via email.' ) ?></td>
                    
322		</tr>
                    
                
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   +----------------------------------------------------------------------+
                    
                
password.c https://gitlab.com/envieidoc/tomato | C | 460 lines
                    
39{
                    
40	REGISTER_LONG_CONSTANT("PASSWORD_DEFAULT", PHP_PASSWORD_DEFAULT, CONST_CS | CONST_PERSISTENT);
                    
41	REGISTER_LONG_CONSTANT("PASSWORD_BCRYPT", PHP_PASSWORD_BCRYPT, CONST_CS | CONST_PERSISTENT);
                    
48
                    
49static char* php_password_get_algo_name(const php_password_algo algo)
                    
50{
                    
59
                    
60static php_password_algo php_password_determine_algo(const char *hash, const size_t len) 
                    
61{
                    
281	}
                    
282	if (php_crypt(password, password_len, hash, hash_len, &ret) == FAILURE) {
                    
283		RETURN_FALSE;
                    
435
                    
436	if (php_crypt(password, password_len, hash, hash_len, &result) == FAILURE) {
                    
437		efree(hash);
                    
                
MassCancelTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 292 lines
                    
181            ->getMock();
                    
182        $orders = [$order1, $order2];
                    
183        $countOrders = count($orders);
                    
226    {
                    
227        $order1 = $this->getMockBuilder('Magento\Sales\Model\Order')
                    
228            ->disableOriginalConstructor()
                    
229            ->getMock();
                    
230        $order2 = $this->getMockBuilder('Magento\Sales\Model\Order')
                    
231            ->disableOriginalConstructor()
                    
233
                    
234        $orders = [$order1, $order2];
                    
235        $countOrders = count($orders);
                    
238            ->method('getItems')
                    
239            ->willReturn([$order1, $order2]);
                    
240
                    
                
FilesystemTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 240 lines
                    
1<?php
                    
2
                    
6 * (c) Nils Adermann <naderman@naderman.de>
                    
7 *     Jordi Boggiano <j.boggiano@seld.be>
                    
8 *
                    
120     */
                    
121    public function testRemoveDirectoryPhp()
                    
122    {
                    
127        $fs = new Filesystem;
                    
128        $this->assertTrue($fs->removeDirectoryPhp($tmp . "/composer_testdir"));
                    
129        $this->assertFalse(file_exists($tmp . "/composer_testdir/level1/level2/hello.txt"));
                    
                
MultishippingTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 271 lines
                    
30    /**
                    
31     * @var \PHPUnit_Framework_MockObject_MockObject
                    
32     */
                    
63        $this->customerSessionMock = $this->getMock('\Magento\Customer\Model\Session', [], [], '', false);
                    
64        $orderFactoryMock = $this->getMock('\Magento\Sales\Model\OrderFactory', [], [], '', false);
                    
65        $eventManagerMock = $this->getMock('\Magento\Framework\Event\ManagerInterface', [], [], '', false);
                    
69        $toOrderMock = $this->getMock('\Magento\Quote\Model\Quote\Address\ToOrder', [], [], '', false);
                    
70        $toOrderAddressMock = $this->getMock('\Magento\Quote\Model\Quote\Address\ToOrderAddress', [], [], '', false);
                    
71        $toOrderPaymentMock = $this->getMock('\Magento\Quote\Model\Quote\Payment\ToOrderPayment', [], [], '', false);
                    
71        $toOrderPaymentMock = $this->getMock('\Magento\Quote\Model\Quote\Payment\ToOrderPayment', [], [], '', false);
                    
72        $toOrderItemMock = $this->getMock('\Magento\Quote\Model\Quote\Item\ToOrderItem', [], [], '', false);
                    
73        $storeManagerMock = $this->getMock('\Magento\Store\Model\StoreManagerInterface', [], [], '', false);
                    
75        $this->helperMock = $this->getMock('\Magento\Multishipping\Helper\Data', [], [], '', false);
                    
76        $orderSenderMock = $this->getMock('\Magento\Sales\Model\Order\Email\Sender\OrderSender', [], [], '', false);
                    
77        $priceMock = $this->getMock('\Magento\Framework\Pricing\PriceCurrencyInterface', [], [], '', false);
                    
                
SetTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 295 lines
                    
1<?php
                    
2/** 
                    
11 
                    
12class SetTest extends \PHPUnit_Framework_TestCase
                    
13{
                    
14    /**
                    
15     * @var \PHPUnit_Framework_MockObject_MockObject|Set
                    
16     */
                    
19    /**
                    
20     * @var \PHPUnit_Framework_MockObject_MockObject
                    
21     */
                    
24    /**
                    
25     * @var \PHPUnit_Framework_MockObject_MockObject
                    
26     */
                    
29    /**
                    
30     * @var \PHPUnit_Framework_MockObject_MockObject
                    
31     */
                    
                
Feed.php https://gitlab.com/grayhamster/open-social-media-monitoring | PHP | 320 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Feed.php 24594 2012-01-05 21:27:01Z matthew $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';
                    
26
                    
58        $this->_setExplicit($this->_dom, $this->_base);
                    
59        $this->_setKeywords($this->_dom, $this->_base);
                    
60        $this->_setNewFeedUrl($this->_dom, $this->_base);
                    
213    /**
                    
214     * Set feed keywords
                    
215     *
                    
221    {
                    
222        $keywords = $this->getDataContainer()->getItunesKeywords();
                    
223        if (!$keywords || empty($keywords)) {
                    
                
data-upgrade-1.6.0.1-1.6.0.2.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 288 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 */
                    
34
                    
35<table cellpadding="0" cellspacing="0" border="0">
                    
36<tr>
                    
                
class.jetpack-landing-page.php https://gitlab.com/thisishayat/itv-2016 | PHP | 299 lines
                    
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 );
                    
55		add_filter( 'custom_menu_order',         '__return_true' );
                    
56		add_filter( 'menu_order',                array( $this, 'jetpack_menu_order' ) );
                    
57
                    
129
                    
130	function jetpack_menu_order( $menu_order ) {
                    
131		$jp_menu_order = array();
                    
132
                    
133		foreach ( $menu_order as $index => $item ) {
                    
134			if ( $item != 'jetpack' )
                    
134			if ( $item != 'jetpack' )
                    
135				$jp_menu_order[] = $item;
                    
136
                    
                
composite_log.php https://gitlab.com/alexprowars/bitrix | PHP | 461 lines
                    
123$sortBy = $logEntity->hasField($sortBy) ? $sortBy : "ID";
                    
124$sortOrder = mb_strtoupper($sorting->getOrder());
                    
125$sortOrder = $sortOrder !== "DESC" ? "ASC" : "DESC";
                    
137	"filter" => $filter,
                    
138	"order" => array($sortBy => $sortOrder),
                    
139	"count_total" => true,
                    
208
                    
209	$pageCell = '<div style="max-width:250px; word-wrap: break-word"><a href="//%s" target="_blank">%s</a><br>%s</div>';
                    
210	$pageLink = htmlspecialcharsbx($record["HOST"].$record["URI"]);
                    
221		$messageCell =
                    
222			'<a href="composite_diff.php?lang='.LANGUAGE_ID.'&log_id='.$record["ID"].'" target="_blank">'.
                    
223			Loc::getMessage("MAIN_COMPOSITE_LOG_VIEW_DIFF").'</a>';
                    
228	{
                    
229		$messageCell = '<div style="max-width:250px; word-wrap: break-word;">%s</div>';
                    
230		$message = str_replace("\n", "<br>", htmlspecialcharsbx($record["MESSAGE_SHORT"]));
                    
                
options.php https://gitlab.com/alexprowars/bitrix | PHP | 479 lines
                    
1<?php
                    
2$module_id = 'landing';
                    
23// lang
                    
24IncludeModuleLangFile($docRoot . '/bitrix/modules/main/options.php');
                    
25Loc::loadMessages(__FILE__);
                    
99		),
                    
100		'order' => array(
                    
101			'SORT' => 'ASC'
                    
333		ob_start();
                    
334		require_once($docRoot . '/bitrix/modules/main/admin/group_rights.php');
                    
335		ob_end_clean();
                    
464	$tabControl->BeginNextTab();
                    
465	require_once($docRoot . '/bitrix/modules/main/admin/group_rights.php');
                    
466
                    
                
QueryPluginBase.php https://gitlab.com/reasonat/test8 | PHP | 353 lines
                    
1<?php
                    
2
                    
75  /**
                    
76   * Executes the query and fills the associated view object with according
                    
77   * values.
                    
                
MappingInfo.php https://gitlab.com/cserobiul/BITM-LabMs-New | PHP | 517 lines
                    
1<?php
                    
2
                    
16  public function __construct() {
                    
17    if (session_status() == PHP_SESSION_NONE) {
                    
18      session_start();
                    
120      WHERE  start_date <= :sd && ending_date >= :sd 
                    
121      ORDER BY start_time ASC";
                    
122      $q = $this->conn->prepare($qry);
                    
316    try {
                    
317      $qry = "SELECT * FROM labinfo ORDER BY lab_no ASC";
                    
318      $q = $this->conn->query($qry);
                    
431  try {
                    
432    $qry = "SELECT * FROM course_trainer_lab_mapping WHERE ending_date >= '$today' AND is_delete = 0 ORDER BY created DESC";
                    
433    $q = $this->conn->query($qry) or die(mysql_error());
                    
497  try {
                    
498    $Query = "SELECT * FROM courses ORDER BY title ASC";
                    
499    $q = $this->conn->query($Query);
                    
                
mysql.php https://gitlab.com/nacridan/Nacridan | PHP | 372 lines
                    
1<?php
                    
2
                    
10if (!function_exists('mysql_connect'))
                    
11	exit('This PHP environment doesn\'t have MySQL support built in. MySQL support is required if you want to use a MySQL database to run this forum. Consult the PHP documentation for further assistance.');
                    
12
                    
30
                    
31	function DBLayer($db_host, $db_username, $db_password, $db_name, $db_prefix, $p_connect)
                    
32	{
                    
35		if ($p_connect)
                    
36			$this->link_id = @mysql_pconnect($db_host, $db_username, $db_password);
                    
37		else
                    
37		else
                    
38			$this->link_id = @mysql_connect($db_host, $db_username, $db_password);
                    
39
                    
                
upgrade-2.0.0.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 279 lines
                    
1<?php
                    
2function icl_upgrade_2_0_0_steps($step, $stepper){
                    
113								WHERE c.nid = %d AND target = %s
                    
114								ORDER BY rid DESC
                    
115								LIMIT 1
                    
145
                    
146							// add translation_status record
                    
147							list($newrid) = $TranslationManagement->update_translation_status(array(
                    
219
                    
220// $iclsettings defined in upgrade.php
                    
221if(empty($iclsettings['migrated_2_0_0'])){
                    
230	$ajax_action_none = wp_create_nonce($ajax_action);
                    
231	$link = 'index.php?icl_ajx_action=' . $ajax_action . '&nonce=' . $ajax_action_none;
                    
232    $txt = get_option('icl_temp_upgrade_data', FALSE) ? __('Resume Upgrade Process', 'sitepress') : __('Run Upgrade Process', 'sitepress');
                    
245        $message = __('Starting the upgrade process...', 'sitepress');
                    
246        include_once ICL_PLUGIN_PATH . '/inc/upgrade-functions/2.0.0/stepper.php';
                    
247        include_once ICL_PLUGIN_PATH . '/inc/upgrade-functions/upgrade-2.0.0.php';
                    
                
2012-01-202.html https://gitlab.com/bernagg/TI | HTML | 359 lines
                    
16	<META NAME="description" CONTENT="YouTubeMP3 is advanced youtube to mp3 converter which allows you to convert and download YouTube videos. For example you can use YouTubeMP3 to convert your favorite YouTube videos to mp3 files!">
                    
17	<META NAME="keywords"    CONTENT="youtube, mp3, converter, free, download, online">
                    
18	
                    
44			<tr><td width="100%"></td><td>
                    
45			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FYoutubeMP3tv%2F220993711269458&amp;width=270&amp;colorscheme=light&amp;show_faces=false&amp;border_color&amp;stream=false&amp;header=false&amp;height=62&amp;layout=button_count" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:270px; height:21px;" allowTransparency="true"></iframe>
                    
46			<!-- <iframe src="http://www.facebook.com/plugins/like.php?app_id=147297765356025&amp;href=http%3A%2F%2Fyoutubemp3.tv%2F&amp;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe> -->
                    
192				<div id="progress_div" class="upload_block" style="display: none;">
                    
193					<iframe src="blank.html" id="progress_frame" name="transfer2" SCROLLING=NO frameborder=0 style="width: 395px; height: 200px;"></iframe>
                    
194				</div>
                    
266		</div>
                    
267<iframe width="560" height="315" src="http://www.youtube.com/embed/LCRTr-LTnB4" frameborder="0" allowfullscreen></iframe>	</div>
                    
268
                    
                
jqplot.pointLabels.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 362 lines
                    
8 * jqPlot is currently available for use in all personal or commercial projects 
                    
9 * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL 
                    
10 * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can 
                    
10 * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can 
                    
11 * choose the license that best suits your project and use it accordingly. 
                    
12 *
                    
14 * know of any substantial use of jqPlot.  You can reach the author at: 
                    
15 * chris at jqplot dot com or see http://www.jqplot.com/info.php .
                    
16 *
                    
17 * If you are feeling kind and generous, consider supporting the project by
                    
18 * making a donation at: http://www.jqplot.com/donate.php .
                    
19 *
                    
115        // Number of pixels that the label must be away from an axis
                    
116        // boundary in order to be drawn.  Negative values will allow overlap
                    
117        // with the grid boundaries.
                    
                
mmc_ffu.c https://gitlab.com/SpasilliumNexus/frankenclark_kernel | C | 496 lines
                    
33 * @page: first page in the allocation
                    
34 * @order: order of the number of pages allocated
                    
35 */
                    
95	while (mem->cnt--)
                    
96		__free_pages(mem->arr[mem->cnt].page, mem->arr[mem->cnt].order);
                    
97
                    
150
                    
151		order = get_order(max_seg_page_cnt << PAGE_SHIFT);
                    
152
                    
153		do {
                    
154			page = alloc_pages(flags, order);
                    
155		} while (!page && order--);
                    
160		area->mem.arr[area->mem.cnt].page = page;
                    
161		area->mem.arr[area->mem.cnt].order = order;
                    
162		area->mem.cnt++;
                    
                
Collection.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 347 lines
                    
1<?php
                    
2/**
                    
14 * Sales Rules resource collection model.
                    
15 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
16 */
                    
118     * Filter collection to use only active rules.
                    
119     * Involved sorting by sort_order column.
                    
120     *
                    
126     * @use $this->addWebsiteGroupDateFilter()
                    
127     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
                    
128     * @return $this
                    
195            }
                    
196            $this->setOrder('sort_order', self::SORT_ORDER_ASC);
                    
197            $this->setFlag('validation_filter', true);
                    
                
Protection.php https://gitlab.com/pra34/excel-parse | PHP | 581 lines
                    
22 * @package    PHPExcel_Worksheet
                    
23 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
                    
33 * @package    PHPExcel_Worksheet
                    
34 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
334     * @param boolean $pValue
                    
335     * @return PHPExcel_Worksheet_Protection
                    
336     */
                    
560        if (!$pAlreadyHashed) {
                    
561            $pValue = PHPExcel_Shared_PasswordHasher::hashPassword($pValue);
                    
562        }
                    
562        }
                    
563        $this->password = $pValue;
                    
564        return $this;
                    
                
biblio_list.inc.php https://gitlab.com/mucill/sman7 | PHP | 294 lines
                    
1<?php
                    
2/**
                    
3 * biblio_list class
                    
4 * Class for generating list of bibliographic records
                    
5 *
                    
65    $this->orig_query = $str_criteria;
                    
66    $_queries = simbio_tokenizeCQL($str_criteria, $this->searchable_fields, $this->stop_words, $this->queries_word_num_allowed);
                    
67    // echo '<pre>'; var_dump($_queries); echo '</pre>';
                    
98			$_searched_word = str_replace(array('+', '-', '*'), '', $_q);
                    
99			$this->words[$_searched_word] = $_searched_word;
                    
100      // searched fields flag set
                    
218    // below for debugging purpose only
                    
219    // echo "<div style=\"border: 1px solid #f00; padding: 5px; color: #f00; margin: 5px;\">$_sql_criteria</div>";
                    
220
                    
255    // checking custom frontpage fields file
                    
256    $custom_frontpage_record_file = SB.$sysconf['template']['dir'].'/'.$sysconf['template']['theme'].'/custom_frontpage_record.inc.php';
                    
257    if (file_exists($custom_frontpage_record_file)) {
                    
                
author.php https://gitlab.com/mucill/sman7 | PHP | 264 lines
                    
74            // filter update record ID
                    
75            $updateRecordID = (integer)$_POST['updateRecordID'];
                    
76            // update the data
                    
136      <a href="<?php echo MWB; ?>master_file/author.php" class="btn btn-default"><i class="glyphicon glyphicon-list-alt"></i>&nbsp;<?php echo __('Author List'); ?></a>
                    
137      <a href="<?php echo MWB; ?>master_file/author.php?action=detail" class="btn btn-default"><i class="glyphicon glyphicon-plus"></i>&nbsp;<?php echo __('Add New Author'); ?></a>
                    
138	  </div>
                    
138	  </div>
                    
139    <form name="search" action="<?php echo MWB; ?>master_file/author.php" id="search" method="get" style="display: inline;"><?php echo __('Search'); ?> :
                    
140    <input type="text" name="keywords" size="30" />
                    
235    if (isset($_GET['keywords']) AND $_GET['keywords']) {
                    
236       $keywords = $dbs->escape_string($_GET['keywords']);
                    
237       $sql_criteria .= " AND a.author_name LIKE '%$keywords%'";
                    
256    $datagrid_result = $datagrid->createDataGrid($dbs, $table_spec, 20, ($can_read AND $can_write));
                    
257    if (isset($_GET['keywords']) AND $_GET['keywords']) {
                    
258        $msg = str_replace('{result->num_rows}', $datagrid->num_rows, __('Found <strong>{result->num_rows}</strong> from your keywords')); //mfc
                    
                
AuthenticationHttpTest.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 458 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin-test
                    
7 */
                    
10
                    
11require_once 'libraries/config.default.php';
                    
12require_once 'test/PMATestCase.php';
                    
16 *
                    
17 * @package PhpMyAdmin-test
                    
18 */
                    
141        $_REQUEST['old_usr'] = '1';
                    
142        $GLOBALS['cfg']['Server']['LogoutURL'] = 'http://phpmyadmin.net/logout';
                    
143
                    
145            0, 0, 0,
                    
146            array('Location: http://phpmyadmin.net/logout' . ((SID) ? '?' . SID : ''))
                    
147        );
                    
                
config.values.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 277 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
6 *
                    
7 * @package PhpMyAdmin
                    
8 */
                    
9
                    
10if (!defined('PHPMYADMIN')) {
                    
11    exit;
                    
28        'AllowDeny'    => array(
                    
29            'order' => array('', 'deny,allow', 'allow,deny', 'explicit')
                    
30        ),
                    
60$cfg_db['MaxRows'] = array(25, 50, 100, 250, 500);
                    
61$cfg_db['Order'] = array('ASC', 'DESC', 'SMART');
                    
62$cfg_db['RowActionLinks'] = array(
                    
67);
                    
68$cfg_db['TablePrimaryKeyOrder'] = array(
                    
69    'NONE'  => __('None'),
                    
                
Core.class.php https://gitlab.com/adamlwalker/generatedata | PHP | 511 lines
                    
37	private static $releaseDate = "2014-09-06";
                    
38	private static $minimumPHPVersion = "5.3.0";
                    
39	private static $minimumMySQLVersion = "4.1.3";
                    
46	// left as public, because they're often modified / accessed, and it's just too fussy otherwise. The
                    
47	// PHPDoc helps my IDE figure out what the hell each of them are
                    
48
                    
157	private static function loadSettingsFile() {
                    
158		$settingsFilePath = realpath(__DIR__ . "/../../settings.php");
                    
159		if (file_exists($settingsFilePath)) {
                    
165			self::$dbUsername = (isset($dbUsername)) ? $dbUsername : null;
                    
166			self::$dbPassword = (isset($dbPassword)) ? $dbPassword : null;
                    
167			self::$dbTablePrefix = (isset($dbTablePrefix)) ? $dbTablePrefix : null;
                    
259	 */
                    
260    public static function getDbPassword() {
                    
261		return self::$dbPassword;
                    
                
GifCreator.php https://gitlab.com/billyprice1/mc-skintools | PHP | 349 lines
                    
1<?php
                    
2
                    
9     * @author    Sybio (Clément Guillemain  / @Sybio01)
                    
10     * @license   http://opensource.org/licenses/gpl-license.php GNU Public License
                    
11     * @copyright Clément Guillemain
                    
132
                    
133                for ($j = (13 + 3 * (2 << (ord($this->frameSources[$i]{10}) & 0x07))), $k = true; $k; $j++) {
                    
134
                    
186
                    
187            if (ord($this->frameSources[0]{10}) & 0x80) {
                    
188
                    
188
                    
189                $cmap = 3 * (2 << (ord($this->frameSources[0]{10}) & 0x07));
                    
190
                    
203        public function addGifFrames($i, $d) {
                    
204            $Locals_str = 13 + 3 * (2 << (ord($this->frameSources[$i]{10}) & 0x07));
                    
205
                    
                
classement_index.php https://gitlab.com/Potatoes_IIE/projet_web | PHP | 281 lines
                    
1<?php
                    
2
                    
159    print '<tbody>';
                    
160    $sql = "SELECT * FROM rencontre_attente ORDER BY id ASC";
                    
161    $res = $db->query($sql);
                    
162    while(($row = pg_fetch_row($res))){
                    
163        echo "<tr><td>$row[0]</td><td>$row[1]</td><td>$row[2]</td><td>$row[3]</td><td>$row[4]</td><td>$row[5]</td><td>$row[6]</td><td>$row[7]</td><td><a href=\"php/add_match.php?id=$row[0]\"><button type=\"button\" class=\"btn btn-success btn-xs btn-round\"><span class=\"glyphicon glyphicon-ok\"></span></button></a> <a href=\"php/del_match_attente.php?id=$row[0]\"><button type=\"button\" class=\"btn btn-danger btn-xs btn-round\"><span class=\"glyphicon glyphicon-remove\"></span></button></a></td></tr>";
                    
164    }
                    
210    $db = new database();
                    
211    $sql = "SELECT date,SUM(nb_elo) FROM evo_elo WHERE pseudo = '$pseudo' GROUP BY date ORDER BY date";
                    
212    $res = $db->query($sql);
                    
225    $db = new database();
                    
226    $sql = "SELECT SUM(nb_elo) FROM evo_elo WHERE pseudo = '$pseudo' GROUP BY date ORDER BY date";
                    
227    $res = $db->query($sql);
                    
243    $db = new database();
                    
244    $sql = "SELECT date,SUM(nb_elo) FROM evo_elo WHERE pseudo = '$pseudo' GROUP BY date ORDER BY date";
                    
245    $sql2 = "SELECT date_ins FROM joueur WHERE pseudo = '$pseudo'";
                    
                
Chooser_Meta_Box.php https://gitlab.com/ezgonzalez/integral | PHP | 306 lines
                    
122
                    
123		?><script type="text/template" id="tmpl-tribe-select-<?php echo esc_attr( $this->post_type ); ?>"><?php $this->single_post_dropdown( 0 ); ?></script><?php
                    
124
                    
150				$this->move_handle();
                    
151				?><label data-l10n-create-<?php echo esc_attr( $this->post_type ); ?>="<?php printf( esc_attr__( 'Create New %s', 'the-events-calendar' ), $this->singular_name ); ?>"><?php printf( esc_html__( 'Use Saved %s:', 'the-events-calendar' ), $this->singular_name ); ?></label>
                    
152			</td>
                    
160		</tr>
                    
161		<?php
                    
162	}
                    
179		<div class="edit-linked-post-link"><a
                    
180				<?php if ( empty( $linked_post_id ) ) { ?> style="display:none;"<?php } ?>
                    
181				data-admin-url="<?php echo esc_url( admin_url( 'post.php?action=edit&post=' ) ); ?>"
                    
181				data-admin-url="<?php echo esc_url( admin_url( 'post.php?action=edit&post=' ) ); ?>"
                    
182				href="<?php echo esc_url( admin_url( sprintf( 'post.php?action=edit&post=%s', $linked_post_id ) ) ); ?>"
                    
183				target="_blank"><?php printf( esc_html__( 'Edit %s', 'the-events-calendar' ), esc_html( $this->singular_name ) ); ?></a>
                    
                
class-gsc-table.php https://gitlab.com/memuller.web/wp_site | PHP | 385 lines
                    
109			'first_detected' => __( 'First detected', 'wordpress-seo' ),
                    
110			'response_code'  => __( 'Response code', 'wordpress-seo' ),
                    
111		);
                    
314		// If no sort, default to title.
                    
315		$orderby = ( $orderby = filter_input( INPUT_GET, 'orderby' ) ) ? $orderby : 'url';
                    
316
                    
317		// If no order, default to asc.
                    
318		$order = ( $order = filter_input( INPUT_GET, 'order' ) ) ? $order : 'asc';
                    
319
                    
321		if ( array_key_exists( $orderby . '_raw', $a ) && array_key_exists( $orderby . '_raw', $b ) ) {
                    
322			$orderby = $orderby . '_raw';
                    
323		}
                    
325		// Determine sort order.
                    
326		$result = strcmp( $a[ $orderby ], $b[ $orderby ] );
                    
327
                    
                
Pagination.class.php https://gitlab.com/webbroteam/satisfaction-mvc | PHP | 447 lines
                    
4 * Pagination
                    
5 * @link https://github.com/onassar/PHP-Pagination/blob/master/Pagination.class.php
                    
6 * Supplies an API for setting pagination details, and renders the resulting
                    
18 *     // source inclusion
                    
19 *     require_once APP . '/vendors/PHP-Pagination/Pagination.class.php';
                    
20 *
                    
23 *
                    
24 *     // instantiate with page and records as constructor parameters
                    
25 *     $pagination = (new Pagination($page, 200));
                    
30 *     // source inclusion
                    
31 *     require_once APP . '/vendors/PHP-Pagination/Pagination.class.php';
                    
32 *
                    
35 *
                    
36 *     // instantiate; set current page; set number of records
                    
37 *     $pagination = (new Pagination());
                    
                
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
                    
130     * COLUMN_NAME      => string; column name
                    
131     * COLUMN_POSITION  => number; ordinal position of column in table
                    
132     * DATA_TYPE        => string; SQL datatype name of column
                    
174        }
                    
175        $sql .= ' ORDER BY a.attnum';
                    
176
                    
251             */
                    
252            require_once 'Zend/Db/Adapter/Exception.php';
                    
253            throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count 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
                    
130     * COLUMN_NAME      => string; column name
                    
131     * COLUMN_POSITION  => number; ordinal position of column in table
                    
132     * DATA_TYPE        => string; SQL datatype name of column
                    
174        }
                    
175        $sql .= ' ORDER BY a.attnum';
                    
176
                    
251             */
                    
252            require_once 'Zend/Db/Adapter/Exception.php';
                    
253            throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid");
                    
                
author-template.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 401 lines
                    
28
                    
29	return apply_filters('the_author', is_object($authordata) ? $authordata->display_name : null);
                    
30}
                    
114	else
                    
115		$value = isset($authordata->$field) ? $authordata->$field : '';
                    
116
                    
209		'<a href="%1$s" title="%2$s" rel="author">%3$s</a>',
                    
210		get_author_posts_url( $authordata->ID, $authordata->user_nicename ),
                    
211		esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ),
                    
276	$defaults = array(
                    
277		'orderby' => 'name', 'order' => 'ASC', 'number' => '',
                    
278		'optioncount' => false, 'exclude_admin' => true,
                    
288
                    
289	$query_args = wp_array_slice_assoc( $args, array( 'orderby', 'order', 'number' ) );
                    
290	$query_args['fields'] = 'ids';
                    
                
settings_lang.php https://gitlab.com/Riky_Lesmana/SugarSweetCakes | PHP | 160 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2
                    
31$lang['settings:date_format']					= 'Format Tanggal';
                    
32$lang['settings:date_format_desc']				= 'Bagaimana tanggal mesti ditampilkan di dalam situs d? Gunakan <a target="_blank" href="http://php.net/manual/en/function.date.php">format tanggal</a> dari PHP - atau - gunakan format dari <a target="_blank" href="http://php.net/manual/en/function.strftime.php">string yang diformat sebagai date</a> dari PHP.';
                    
33
                    
45
                    
46$lang['settings:mail_smtp_pass']				= 'SMTP password';
                    
47$lang['settings:mail_smtp_pass_desc']			= 'SMTP password.';
                    
63
                    
64$lang['settings:records_per_page']				= 'Baris per Halaman';
                    
65$lang['settings:records_per_page_desc']			= 'Berapa banyak baris data yang harus ditampilkan per halaman di bagian admin?';
                    
76
                    
77$lang['settings:ga_password']					= 'Google Analytic Password';
                    
78$lang['settings:ga_password_desc']				= 'Google Analytics password. Ini juga diperlukan untuk menampilkan grafik di dasbor.';
                    
86$lang['settings:akismet_api_key']				= 'Akismet API Key';
                    
87$lang['settings:akismet_api_key_desc']			= 'Akismet adalah spam-blocker dari tim WordPress. Alat ini mengontrol datangnya spam tanpa memaksa pengguna untuk melalui  pengecekan manusia dengan form CAPTCHA.';
                    
88
                    
                
options.php https://gitlab.com/billyprice1/website | PHP | 415 lines
                    
1<?php
                    
2require_once(dirname(__FILE__) . '/admin_options/AdminPageFactory.php');
                    
99			'posts' => __('Your latest posts', TEMPLATENAME),
                    
100			'page' => sprintf(__('A %sstatic page%s (select bellow)', TEMPLATENAME), '<a href="edit.php?post_type=page">', '</a>'),
                    
101		),
                    
147	ap_add_select(array(
                    
148		'name' => 'slider_post_order',
                    
149		'title' => __('Order by', TEMPLATENAME),
                    
151		'options' => array(
                    
152			'none' => __('No order', TEMPLATENAME),
                    
153			'rand' => __('Randomly', TEMPLATENAME),
                    
155		),
                    
156		'desc' => __('Choose an option to order slides.', TEMPLATENAME),
                    
157	));
                    
159	ap_add_select(array(
                    
160		'name' => 'slider_sort_order',
                    
161		'title' => __('Sort type', TEMPLATENAME),
                    
                
Headers.php https://gitlab.com/yousafsyed/easternglamor | PHP | 472 lines
                    
1<?php
                    
2/**
                    
43     *
                    
44     * Parses a string for headers, and aggregates them, in order, in the
                    
45     * current instance, primarily as strings until they are needed (they
                    
                
XsdTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 302 lines
                    
84                'Element \'total\': Missing child element(s). Expected is one of ( title, title_source_field, ' .
                    
85                'font_size, display_zero, sort_order, model, amount_prefix ).'
                    
86            ],
                    
91                'Element \'total\': Missing child element(s). Expected is one of ( source_field, ' .
                    
92                'title_source_field, font_size, display_zero, sort_order, model, amount_prefix ).'
                    
93            ],
                    
270                '<config><totals><total name="i1"><title>Title</title><source_field>foo</source_field>' .
                    
271                '<sort_order>100</sort_order></total></totals></config>',
                    
272                [],
                    
275                '<config><totals><total name="i1"><title>Title</title><source_field>foo</source_field>' .
                    
276                '<sort_order>0</sort_order></total></totals></config>',
                    
277                [],
                    
280                '<config><totals><total name="i1"><title>Title</title><source_field>foo</source_field>' .
                    
281                '<sort_order>A</sort_order></total></totals></config>',
                    
282                [
                    
                
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
                    
162				$username = $params->get('update_username', '');
                    
163				$password = $params->get('update_password', '');
                    
164				if( !empty($username) && !empty($password) )
                    
165				{
                    
166					$suffix = '?username='.urlencode($username).'&password='.urlencode($password).'&format=raw';
                    
167				}
                    
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)');
                    
                
dashboard.js https://gitlab.com/nzqadri/bejeep | JavaScript | 442 lines
                    
155
                    
156        rowHTML = '<div class="order-id">' + orders[i].orderID + '</div>';
                    
157        rowHTML += '<i id="c' + orders[i].orderID + '" class="material-icons cart">shopping_cart</i>';
                    
158        rowHTML += '<div class="total-cost" id="tc' + orders[i].orderID + '">' + orders[i].totalCost + '</div>';
                    
159        rowHTML += '<div class="status" id="' + orders[i].orderID + '" onclick="statusWin(' + orders[i].orderID + ',' + '\'' + orders[i].status + '\'' + ')">' + orders[i].status + '</div>';
                    
160        rowHTML += '<div class="contact">' + orders[i].firstName + ' ' + orders[i].lastName + '<br>' + orders[i].email + '<br>' +orders[i].phone + '</div>';
                    
195
                    
196            oHTML = '<div class="pw-order" id="o' + order.orderID + '">';
                    
197            oHTML += '<div id="pw-msg"></div><br>';
                    
197            oHTML += '<div id="pw-msg"></div><br>';
                    
198            oHTML += 'Order ID: ' + order.orderID + '<br>' + order.dateCreated + '<br>' + order.status + '<br><br>';
                    
199            oHTML += '<div>' + order.firstName + ' ' + order.lastName + '<br>' + order.email + '<br>Phone' + order.phone;
                    
212            oHTML += '<ul id="pw-order-products">' + pHTML + '</ul>';
                    
213            oHTML += '<div><button type="button" onclick="orderUpdate(' + order.orderID + ')">Update</button></div></div>';
                    
214
                    
                
Tabs.php https://gitlab.com/Sang240892/ecommerce | PHP | 268 lines
                    
1<?php
                    
2/**
                    
17 *
                    
18 * ```php
                    
19 * echo Tabs::widget([
                    
224     * Normalizes dropdown item options by removing tab specific keys `content` and `contentOptions`, and also
                    
225     * configure `panes` accordingly.
                    
226     * @param string $itemNumber number of the item
                    
                
 

Source

Language