100+ results for 'php pos'
Not the results you expected?
DefaultOptions.php (https://github.com/Exercise/symfony.git) PHP · 320 lines
1 <?php
3 /*
18 * Helper for specifying and resolving inter-dependent options.
19 *
20 * Options are a common pattern for initializing classes in PHP. Avoiding the
21 * problems related to this approach is however a non-trivial task. Usually,
22 * both classes and subclasses should be able to set default option values.
118 * </code>
119 *
120 * Now it is impossible to pass a value in the "gear" option that is not
121 * expected.
122 *
Alignment.php (https://gitlab.com/ptisky/API_prestashop) PHP · 409 lines
22 * @package PHPExcel_Style
23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.9, 2013-06-02
34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable
37 {
38 /* Horizontal alignment styles */
142 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(
143 * array(
144 * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
145 * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,
151 *
152 * @param array $pStyles Array containing style information
153 * @throws PHPExcel_Exception
154 * @return PHPExcel_Style_Alignment
SimpleHeaderSet.php (https://github.com/nattaphat/hgis.git) PHP · 387 lines
1 <?php
3 /*
354 $lowerA = strtolower($a);
355 $lowerB = strtolower($b);
356 $aPos = array_key_exists($lowerA, $this->_order)
357 ? $this->_order[$lowerA]
358 : -1;
359 $bPos = array_key_exists($lowerB, $this->_order)
360 ? $this->_order[$lowerB]
361 : -1;
367 }
369 return ($aPos < $bPos) ? -1 : 1;
370 }
filing_costs.php (https://bitbucket.org/amitholkar/zenfile-18-05.git) PHP · 198 lines
39 ?>
40 <div class="finance_country <?php echo $status ?> custom_accordion" ref="filing_cost_country_<?php echo $invoice->id ?>"><?php echo $invoice->country ?></div>
96 <input type="hidden" name="additional_fee_id[]" value="<?php echo $additional_fee->additional_fee_id ?>">
97 <?php echo $currency_sign ?><input title="<?php echo $additional_fee->additional_fee_description_by_fa ?>" name="additional_fee_corrected_by_pm[]" value="<?php echo $additional_fee_value ?>" type="text"/>
98 </div>
99 <!-- <div class="finance_input float_left" style="width: 170px;">-->
116 <?php foreach($invoice->invoices as $file) { ?>
117 <a href="<?php echo base_url() ?>cases/download_file/<?php echo $file->file_id ?>"><?php echo $file->filename ?></a>
118 <?php } ?>
177 </div>
178 <div class="finance_input float_left">
179 <?php echo $currency_sign ?><input readonly="true" value="<?php echo $estimate_summ ?>" type="text"/>
180 </div>
181 <div class="clear"></div>
SortedSet.php (https://github.com/netweaver/Rediska.git) PHP · 335 lines
1 <?php
3 // Require Rediska
4 require_once dirname(__FILE__) . '/../../Rediska.php';
6 /**
12 * @version @package_version@
13 * @link http://rediska.geometria-lab.net
14 * @license http://www.opensource.org/licenses/bsd-license.php
15 */
16 class Rediska_Key_SortedSet extends Rediska_Key_Abstract implements IteratorAggregate, ArrayAccess, Countable
142 * Remove all elements in the sorted set at key with rank between start and end
143 *
144 * @param numeric $start Start position
145 * @param numeric $end End position
style.php (https://github.com/shafiqissani/Jewelery-Ecommerce-.git) PHP · 262 lines
83 <?php endif; ?>
84 <?php if($_GET['text_block_position'] == 1) : ?>width: <?php echo $text_block_width; ?>px;<?php else : ?>width: <?php echo $_GET['slide_width'];?>px;<?php endif; ?>
85 <?php if($_GET['text_block_position'] == 1) : ?>height: <?php echo $_GET['slide_height']; ?>px;<?php else : ?>height: <?php echo $_GET['text_block_height']; ?>px;<?php endif; ?>
86 position: absolute;
87 <?php if($_GET['text_block_position'] == 1) : ?>top: <?php echo $_GET['image_y']; ?>px;<?php endif; ?>
88 <?php if($_GET['text_block_position'] == 0) : ?>bottom: <?php echo $_GET['module_height']-$_GET['slide_height']-$_GET['image_y'];?>px;<?php endif; ?>
89 <?php if($_GET['text_block_position'] == 1) : ?>left: <?php echo $_GET['text_block_margin']; ?>px;<?php else : ?>left: <?php echo $_GET['image_x']; ?>px;<?php endif; ?>
90 background-color: <?php echo $text_overlay_bgcolor;?>;
97 <?php if($_GET['text_block_position'] == 1) : ?>width: <?php echo $text_block_width-10; ?>px;<?php else : ?>width: 90%;margin: 0 5%;<?php endif; ?>
98 <?php if($_GET['text_block_position'] == 1) : ?>height: <?php echo $text_block_height-10; ?>px;<?php else : ?>height: <?php echo $_GET['text_block_height']; ?>px;<?php endif; ?>
99 <?php if($_GET['text_block_position'] == 1) : ?>left: <?php echo $_GET['text_block_margin']; ?>px;<?php endif; ?>
100 position: absolute;
101 <?php if($_GET['text_block_position'] == 1) : ?>top: <?php echo $text_block_top; ?>px;<?php else : ?>bottom: 0;<?php endif; ?>
102 }
ListenerOptions.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 396 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
4 *
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
188 /**
189 * Add some extra config array to the main config. This is mainly useful
190 * for unit testing purposes.
191 *
192 * @param array|Traversable $extraConfig
268 {
269 if ($this->getConfigCacheKey()) {
270 return $this->getCacheDir() . '/module-config-cache.' . $this->getConfigCacheKey().'.php';
271 }
BannerServiceImpl.php (https://bitbucket.org/blackriver/openx.git) PHP · 344 lines
1 <?php
3 /*
16 | This program is distributed in the hope that it will be useful, |
17 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 | GNU General Public License for more details. |
20 | |
23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 +---------------------------------------------------------------------------+
25 $Id: BannerServiceImpl.php 81772 2012-09-11 00:07:29Z chris.nutting $
26 */
34 // Base class BaseLogonService
35 require_once MAX_PATH . '/www/api/v1/common/BaseServiceImpl.php';
37 // Banner Dll class
voucher.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 263 lines
14 if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) {
15 $this->session->data['vouchers'][mt_rand()] = array(
16 'description' => sprintf($this->language->get('text_for'), $this->currency->format($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency'))), $this->request->post['to_name']),
17 'to_name' => $this->request->post['to_name'],
227 public function validate() {
228 if ((utf8_strlen($this->request->post['to_name']) < 1) || (utf8_strlen($this->request->post['to_name']) > 64)) {
229 $this->error['to_name'] = $this->language->get('error_to_name');
230 }
238 }
240 if ((utf8_strlen($this->request->post['from_email']) > 96) || !preg_match('/^[^\@]+@.*\.[a-z]{2,6}$/i', $this->request->post['from_email'])) {
241 $this->error['from_email'] = $this->language->get('error_email');
242 }
246 }
248 if (($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency')) < $this->config->get('config_voucher_min')) || ($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency')) > $this->config->get('config_voucher_max'))) {
249 $this->error['amount'] = sprintf($this->language->get('error_amount'), $this->currency->format($this->config->get('config_voucher_min')), $this->currency->format($this->config->get('config_voucher_max')) . ' ' . $this->currency->getCode());
250 }
CakeValidationSetTest.php (https://bitbucket.org/00firestar00/ejfirestar.com.git) PHP · 337 lines
1 <?php
2 /**
3 * CakeValidationSetTest file
4 *
5 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
7 *
11 *
12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
13 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
14 * @package Cake.Test.Case.Model.Validator
15 * @since CakePHP(tm) v 2.2.0
16 * @license http://www.opensource.org/licenses/mit-license.php MIT License
17 */
date.html (https://bitbucket.org/ferOnti/processmaker.git) HTML · 149 lines
1 <form id="{$form_id}" name="{$form_name}" action="{$form_action}" class="{$form_className}" method="post" encType="multipart/form-data" style="margin:0px;" onsubmit='return validateForm("{$form_objectRequiredFields}".parseJSON());'>
3 <div class="borderForm" style="padding-left: 0pt; padding-right: 0pt;">
140 </tr>
141 </tbody></table>
142 <div class="FormRequiredTextMessage"><font color="red">* </font>{php}echo (G::LoadTranslation('ID_REQUIRED_FIELD'));{/php}</div> </div>
143 <div class="boxBottom"><div class="a"></div><div class="b"></div><div class="c"></div></div>
144 </div>
voucher.php (https://bitbucket.org/elena_dyavolova/omf.git) PHP · 263 lines
14 if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) {
15 $this->session->data['vouchers'][mt_rand()] = array(
16 'description' => sprintf($this->language->get('text_for'), $this->currency->format($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency'))), $this->request->post['to_name']),
17 'to_name' => $this->request->post['to_name'],
227 protected function validate() {
228 if ((utf8_strlen($this->request->post['to_name']) < 1) || (utf8_strlen($this->request->post['to_name']) > 64)) {
229 $this->error['to_name'] = $this->language->get('error_to_name');
230 }
238 }
240 if ((utf8_strlen($this->request->post['from_email']) > 96) || !preg_match('/^[^\@]+@.*\.[a-z]{2,6}$/i', $this->request->post['from_email'])) {
241 $this->error['from_email'] = $this->language->get('error_email');
242 }
246 }
248 if (($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency')) < $this->config->get('config_voucher_min')) || ($this->currency->convert($this->request->post['amount'], $this->currency->getCode(), $this->config->get('config_currency')) > $this->config->get('config_voucher_max'))) {
249 $this->error['amount'] = sprintf($this->language->get('error_amount'), $this->currency->format($this->config->get('config_voucher_min')), $this->currency->format($this->config->get('config_voucher_max')) . ' ' . $this->currency->getCode());
250 }
show2.php (https://gitlab.com/redwan4re/web-apps-php-26) PHP · 182 lines
13 <!-- /theme JS files -->
15 <?php include_once 'header.php'; ?>
16 <!-- Page container -->
17 <div class="page-container">
28 <div class="page-header-content">
29 <div class="page-title">
30 <h4 class="text-center"><i class="icon-arrow-left52 position-left"></i> <span class="text-semibold">Details of</span> <?php echo $oneData['title']; ?> Course</h4>
31 </div>
32 </div>
59 <a type="button" class="btn bg-teal btn-labeled" href="edit.php?id=<?php echo $oneData['unique_id']; ?>"><b><i class="icon-pencil7"></i></b> Edit Course</a>
61 <a type="button" onclick="return checkDelete()" class="btn bg-teal btn-labeled" href="trash.php?id=<?php echo $oneData['unique_id']; ?>"><b><i class="icon-close2"></i></b> Disable Course</a>
63 </div>
180 </script>
182 <?php include_once 'footer.php'; ?>
WufooApiWrapper.php (https://github.com/Fourshift/Wufoo-API-Wrappers.git) PHP · 270 lines
1 <?php
3 require_once('WufooApiWrapperBase.php');
4 require_once('WufooValueObjects.php');
6 /**
223 * @author Timothy S Sabat
224 */
225 public function entryPost($formIdentifier, $wufooSubmitFields) {
226 $url = $this->getFullUrl('forms/'.$formIdentifier.'/entries');
227 $postParams = array();
230 }
231 $curl = new WufooCurl();
232 $response = $curl->postAuthenticated($postParams, $url, $this->apiKey);
233 return new PostResponse($response);
Tag.php (https://github.com/michaelmcandrew/vaw.git) PHP · 215 lines
1 <?php
3 /*
15 | CiviCRM is distributed in the hope that it will be useful, but |
16 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. |
19 | |
106 if ( $entityId ) {
107 $tagset[$tagsetItem]['entityId'] = $entityId;
108 require_once 'CRM/Core/BAO/EntityTag.php';
109 $entityTags = CRM_Core_BAO_EntityTag::getChildEntityTags( $parentId, $entityId, $entityTable );
110 } else {
147 default:
148 if ( !empty($form->_formValues['contact_tags']) ) {
149 require_once 'CRM/Core/BAO/Tag.php';
150 $contactTags = CRM_Core_BAO_Tag::getTagsUsedFor( 'civicrm_contact', true, false, $parentId );
Advertiser.php (https://bitbucket.org/blackriver/openx.git) PHP · 371 lines
1 <?php
3 /*
16 | This program is distributed in the hope that it will be useful, |
17 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 | GNU General Public License for more details. |
20 | |
35 // Required classes
36 require_once MAX_PATH . '/lib/OA/Dal/Statistics.php';
38 /**
provider_test.php (https://github.com/sbourget/moodle.git) PHP · 240 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
9 // Moodle is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
registry.php (https://github.com/Paladin/joomla-platform.git) PHP · 472 lines
1 <?php
2 /**
3 * @package Joomla.Platform
89 *
90 * @since 12.2
91 * @note The interface is only present in PHP 5.4 and up.
92 */
93 public function jsonSerialize()
167 $result = $default;
169 if (!strpos($path, '.'))
170 {
171 return (isset($this->data->$path) && $this->data->$path !== null && $this->data->$path !== '') ? $this->data->$path : $default;
shipping.php (https://gitlab.com/reclamare/mao) PHP · 268 lines
54 $country_info = $this->model_localisation_country->getCountry($this->request->post['country_id']);
56 if ($country_info && $country_info['postcode_required'] && (utf8_strlen(trim($this->request->post['postcode'])) < 2 || utf8_strlen(trim($this->request->post['postcode'])) > 10)) {
57 $json['error']['postcode'] = $this->language->get('error_postcode');
62 }
64 if (!isset($this->request->post['zone_id']) || $this->request->post['zone_id'] == '') {
65 $json['error']['zone'] = $this->language->get('error_zone');
66 }
113 'address_2' => $this->request->post['address_2'],
114 'postcode' => $this->request->post['postcode'],
115 'city' => $this->request->post['city'],
122 'iso_code_3' => $iso_code_3,
123 'address_format' => $address_format,
124 'custom_field' => isset($this->request->post['custom_field']) ? $this->request->post['custom_field'] : array()
125 );
errors.php (https://github.com/libersoft/fengoffice-ls.git) PHP · 194 lines
Alignment.php (https://gitlab.com/dmsapiens/physicians) PHP · 409 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
25 * @version ##VERSION##, ##DATE##
34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable
37 {
38 /* Horizontal alignment styles */
142 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(
143 * array(
144 * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
145 * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,
151 *
152 * @param array $pStyles Array containing style information
153 * @throws PHPExcel_Exception
154 * @return PHPExcel_Style_Alignment
County.java (https://github.com/sbower/kuali-rice-1.git) Java · 304 lines
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl2.php
9 *
10 * Unless required by applicable law or agreed to in writing, software
289 /**
290 * A private class which exposes constants which define the XML element names to use
291 * when this object is marshalled to XML.
292 */
psb.input.js (https://github.com/wildanm/Jibas.git) JavaScript · 292 lines
38 //alert('Get Nilai Ujian with Proses ' + proses);
39 $.ajax({
40 url : 'psb/psb.input.ajax.php?op=setUjianPsb&proses='+proses,
41 type: 'get',
42 success : function(html) {
104 var m = $("#psb_blnlahirayah").val();
105 $.ajax({
106 url : 'psb/psb.input.ajax.php?op=setTglLahirAyah&y='+y+'&m='+m,
107 type: 'get',
108 success : function(html) {
116 var m = $("#psb_blnlahirayah").val();
117 $.ajax({
118 url : 'psb/psb.input.ajax.php?op=setTglLahirAyah&y='+y+'&m='+m,
119 type: 'get',
120 success : function(html) {
211 Validator.CheckLength($("#psb_bahasa"), "Bahasa Sehari-hari", 5, 50) &&
212 Validator.CheckLength($("#psb_alamatsiswa"), "Alamat", 10, 255) &&
213 Validator.CheckLength($("#psb_kodepos"), "Kode Pos", 5, 7) &&
214 Validator.CheckNumber($("#psb_kodepos"), "Kode Pos") &&
User_agent.php (https://github.com/usagi-project/mynets1.git) PHP · 500 lines
1 <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 4.3.2 or newer
6 *
7 * @package CodeIgniter
234 foreach ($this->mobiles as $key => $val)
235 {
236 if (FALSE !== (strpos(strtolower($this->agent), $key)))
237 {
238 $this->is_mobile = TRUE;
classtrees_OpenID.html (https://github.com/yupe/xomaprojects.git) HTML · 208 lines
110 <li><a href="OpenID/Auth_OpenID_OpenIDStore.html">Auth_OpenID_OpenIDStore</a><ul>
111 <li><a href="OpenID/Auth_OpenID_DumbStore.html">Auth_OpenID_DumbStore</a></li><li><a href="OpenID/Auth_OpenID_FileStore.html">Auth_OpenID_FileStore</a></li><li><a href="OpenID/Auth_OpenID_MemcachedStore.html">Auth_OpenID_MemcachedStore</a></li><li><a href="OpenID/Auth_OpenID_SQLStore.html">Auth_OpenID_SQLStore</a><ul>
112 <li><a href="OpenID/Auth_OpenID_MySQLStore.html">Auth_OpenID_MySQLStore</a></li><li><a href="OpenID/Auth_OpenID_PostgreSQLStore.html">Auth_OpenID_PostgreSQLStore</a></li><li><a href="OpenID/Auth_OpenID_SQLiteStore.html">Auth_OpenID_SQLiteStore</a></li></ul></li>
113 </ul></li>
114 </ul>
176 <h2>Root class Auth_Yadis_PHPSession</h2>
177 <ul>
178 <li><a href="OpenID/Auth_Yadis_PHPSession.html">Auth_Yadis_PHPSession</a></li></ul>
180 <h2>Root class Auth_Yadis_Service</h2>
204 <p class="notes" id="credit">
205 Documentation generated on Tue, 21 Apr 2009 11:31:28 -0700 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.2</a>
206 </p>
207 </body>
Location.js (https://github.com/stephaneerard/qooxdoo.git) JavaScript · 406 lines
10 License:
11 LGPL: http://www.gnu.org/licenses/lgpl.html
12 EPL: http://www.eclipse.org/org/documents/epl-v10.php
13 See the LICENSE file in the project's top-level directory for details.
41 this.__left = this.__bodyStyles.left;
42 this.__top = this.__bodyStyles.top;
43 this.__position = this.__bodyStyles.position;
44 this.__border = this.__bodyStyles.border;
45 this.__padding = this.__bodyStyles.padding;
60 this.__bodyStyles.top = this.__top;
61 this.__bodyStyles.left = this.__left;
62 this.__bodyStyles.position = this.__position;
63 this.__bodyStyles.border = this.__border;
64 this.__bodyStyles.padding = this.__padding;
AssertionsTest.class.php (https://github.com/treuter/xp-framework.git) PHP · 617 lines
BannerServiceImpl.php (https://github.com/skynet/OpenX-2.8.7.git) PHP · 344 lines
1 <?php
3 /*
16 | This program is distributed in the hope that it will be useful, |
17 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 | GNU General Public License for more details. |
20 | |
23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 +---------------------------------------------------------------------------+
25 $Id: BannerServiceImpl.php 62345 2010-09-14 21:16:38Z chris.nutting $
26 */
34 // Base class BaseLogonService
35 require_once MAX_PATH . '/www/api/v1/common/BaseServiceImpl.php';
37 // Banner Dll class
faq.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 114 lines
10 -->
12 <!-- Changes required for posting on jEdit Community: -->
13 <!-- Title should be <h2> without class; -->
14 <!-- all <h1> headings should be changed to <h2> -->
26 <!-- Changes required for posting on jEdit Community: -->
27 <!-- Title should be <h2> without class; -->
28 <!-- all <h1> headings should be changed to <h2> -->
99 This draft incorporates material from the Interactive FAQ section
100 of the <ulink url=
101 "http://community.jedit.org/modules.php?op=modload&name=faq&file=index"
102 >jEdit Community web site</ulink>.
103 </releaseinfo>
os2.javainstall.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 31 lines
✨ Summary
This HTML code outputs a text explaining how to install and run jEdit on OS/2, including installation commands and instructions for starting the application. It also provides information about running the installer in text-only mode. The output is formatted with paragraphs and pre tags to display code snippets and file paths.
This HTML code outputs a text explaining how to install and run jEdit on OS/2, including installation commands and instructions for starting the application. It also provides information about running the installer in text-only mode. The output is formatted with paragraphs and pre tags to display code snippets and file paths.
1 <!-- begin os2.javainstall.text -->
3 <!-- for jEdit: :mode=php:indentSize=2:tabSize=2:noTabs=true: -->
5 <p>To find out which Java virtual machine is best for running jEdit on OS/2,
6 see the <a href="index.php?page=compatibility">compatibility</a> page.</p>
8 <p>To install jEdit, open a command prompt and
Collection.php (https://bitbucket.org/dnejedly/eaparts.git) PHP · 333 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
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
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Catalog
23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
252 /**
253 * Enable sorting products by its position
254 *
255 * @param string $dir sort type asc|desc
student_profile.php (https://gitlab.com/varsha_evonix/intranet) PHP · 136 lines
1 <?php
3 include ('header.php');
23 <span class="profile-edit">Edit</span>
24 </a>
25 <img class="img-responsive img-profile" src="<?php echo base_url(); ?>assets/img/profile-full.jpg" alt="">
27 </div>
28 <div class="col-lg-7 col-md-5">
29 <h1>John Smith</h1>
30 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc placerat diam quis nisl vestibulum dignissim. In hac habitasse platea dictumst. Interdum et malesuada fames ac ante ipsum primis in faucibus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Etiam placerat nunc ut tellus tristique, non posuere neque iaculis.</p>
31 <ul class="list-inline">
32 <li><i class="fa fa-map-marker fa-muted"></i> Bayville, FL</li>
class-cp-user-relationships.php (https://gitlab.com/dev73/clusterpress) PHP · 543 lines
1 <?php
2 /**
3 * ClusterPress User Relationships.
168 * An array of arguments
169 * @type int $user_id The user ID.
170 * @type int $primary_id The primary content ID (eg: Post).
171 * @type int $secondary_id The secondary content ID (eg: Site).
172 * @type string $name The name of the relationship.
220 * @type int $id The relationship ID.
221 * @type int $user_id The user ID.
222 * @type int $primary_id The primary content ID (eg: Post).
223 * @type string $name The name of the relationship.
224 * @type string $date The date the relationship was saved.
365 * An array of arguments
366 * @type int $user_id The user ID.
367 * @type int $primary_id The primary content ID (eg: Post).
368 * @type int $secondary_id The secondary content ID (eg: Site).
369 * @type string $name The name of the relationship.
modules-defaults.php (https://gitlab.com/Magi1053/Extra) PHP · 250 lines
1 <?php
2 // Prevent file from being loaded directly
3 if ( ! defined( 'ABSPATH' ) ) {
12 function extra_set_modules_default_values( $defaults ) {
13 $extra_defaults = array(
14 // Posts
15 'et_pb_posts-header_font_size' => '16px',
16 'et_pb_posts-header_font_style' => 'uppercase',
17 'et_pb_posts-header_text_color' => '',
18 'et_pb_posts-header_line_height' => '1',
19 'et_pb_posts-header_letter_spacing' => '1.2px',
21 'et_pb_posts-subheader_font_size' => '14px',
22 'et_pb_posts-subheader_font_style' => '',
migration_tables_core_538.php (https://bitbucket.org/blackriver/openx.git) PHP · 318 lines
1 <?php
3 /*
16 | This program is distributed in the hope that it will be useful, |
17 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 | GNU General Public License for more details. |
20 | |
23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 +---------------------------------------------------------------------------+
25 $Id: migration_tables_core_538.php 81772 2012-09-11 00:07:29Z chris.nutting $
26 */
28 require_once(MAX_PATH.'/lib/OA/Upgrade/Migration.php');
30 class Migration_538 extends Migration
ext_reflection.h (https://gitlab.com/0072016/0072016-PHP.LLC) C Header · 282 lines
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010-2015 Facebook, Inc. (http://www.facebook.com) |
6 | Copyright (c) 1997-2010 The PHP Group |
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 +----------------------------------------------------------------------+
16 */
content_actionhandler.php (https://github.com/SylvainGuittard/ezlightbox.git) PHP · 364 lines
52 $typeID = eZLightboxObject::TYPE_OBJECT_ID;
54 if ( $http->hasPostVariable( 'ItemID' ) && $http->hasPostVariable( 'ItemType' ) )
55 {
56 $itemID = $http->postVariable( 'ItemID' );
110 }
112 if ( $http->hasPostVariable( 'ViewLightboxAction' ) )
113 {
114 if ( !$lightboxID )
135 }
137 if ( $http->hasPostVariable( 'SendLightboxAction' ) )
138 {
139 $module->redirectTo( '/lightbox/send/' . $lightboxID );
ManagerController.php (https://github.com/ccaballero/yachay.git) PHP · 248 lines
1 <?php
3 class Teams_ManagerController extends Yachay_Controller_Action
8 $request = $this->getRequest();
9 if ($request->isPost()) {
10 if ($this->acl('subjects', 'teach')) {
11 $lock = $request->getParam('lock');
60 $breadcrumb[$subject->label] = $this->view->url(array('subject' => $subject->url), 'subjects_subject_view');
61 if ($subject->amModerator()) {
62 $breadcrumb['Grupos'] = $this->view->url(array('subject' => $subject->url), 'groups_manager');
63 }
64 $breadcrumb['Grupo ' . $group->label] = $this->view->url(array('subject' => $subject->url, 'group' => $group->url), 'groups_group_view');
90 $this->view->team = new Teams_Empty();
92 if ($request->isPost()) {
93 $convert = new Yachay_Helpers_Convert();
94 $session = new Zend_Session_Namespace('yachay');
XmlDescriptor.php (https://gitlab.com/nmhieucoder/laravel_tintuc) PHP · 247 lines
1 <?php
3 /*
207 $dom->appendChild($objectXML = $dom->createElement('option'));
208 $objectXML->setAttribute('name', '--'.$option->getName());
209 $pos = strpos($option->getShortcut() ?? '', '|');
210 if (false !== $pos) {
211 $objectXML->setAttribute('shortcut', '-'.substr($option->getShortcut(), 0, $pos));
212 $objectXML->setAttribute('shortcuts', '-'.str_replace('|', '|-', $option->getShortcut()));
213 } else {
length_class.php (https://bitbucket.org/elena_dyavolova/omf.git) PHP · 412 lines
52 $this->load->model('localisation/length_class');
54 if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm()) {
55 $this->model_localisation_length_class->editLengthClass($this->request->get['length_class_id'], $this->request->post);
86 if (isset($this->request->post['selected']) && $this->validateDelete()) {
87 foreach ($this->request->post['selected'] as $length_class_id) {
88 $this->model_localisation_length_class->deleteLengthClass($length_class_id);
89 }
187 'unit' => $result['unit'],
188 'value' => $result['value'],
189 'selected' => isset($this->request->post['selected']) && in_array($result['length_class_id'], $this->request->post['selected']),
190 'action' => $action
191 );
329 $this->data['cancel'] = $this->url->link('localisation/length_class', 'token=' . $this->session->data['token'] . $url, 'SSL');
331 if (isset($this->request->get['length_class_id']) && ($this->request->server['REQUEST_METHOD'] != 'POST')) {
332 $length_class_info = $this->model_localisation_length_class->getLengthClass($this->request->get['length_class_id']);
333 }
PartnersSubscriptions.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 183 lines
76 public function create($parent, GoogleCloudPaymentsResellerSubscriptionV1Subscription $postBody, $optParams = [])
77 {
78 $params = ['parent' => $parent, 'postBody' => $postBody];
79 $params = array_merge($params, $optParams);
80 return $this->call('create', [$params], GoogleCloudPaymentsResellerSubscriptionV1Subscription::class);
155 public function provision($parent, GoogleCloudPaymentsResellerSubscriptionV1Subscription $postBody, $optParams = [])
156 {
157 $params = ['parent' => $parent, 'postBody' => $postBody];
158 $params = array_merge($params, $optParams);
159 return $this->call('provision', [$params], GoogleCloudPaymentsResellerSubscriptionV1Subscription::class);
174 public function undoCancel($name, GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest $postBody, $optParams = [])
175 {
176 $params = ['name' => $name, 'postBody' => $postBody];
177 $params = array_merge($params, $optParams);
178 return $this->call('undoCancel', [$params], GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse::class);
apbasic-widgets.php (https://gitlab.com/pornmongkon.p/wordpress) PHP · 273 lines
TranslatableTest.php (https://github.com/Atlantic18/DoctrineExtensions.git) PHP · 245 lines
1 <?php
3 declare(strict_types=1);
55 // retrieve record (translations would be fetched later - by demand)
56 $person = $this->em->getRepository(self::PERSON)->findOneBy(['name' => 'Jen']);
58 static::assertSame('Jen', $person->getName());
63 // retrieve record with all translations in one query
64 $persons = $this->em->getRepository(self::PERSON)
65 ->createQueryBuilder('p')
66 ->select('p, t')
81 // retrieve record with all translations in one query
82 $persons = $this->em->getRepository(self::PERSON)
83 ->createQueryBuilder('p')
84 ->select('p, t')
TraceableEventDispatcher.php (https://github.com/deviantintegral/symfony.git) PHP · 335 lines
1 <?php
3 /*
145 }
147 $this->postDispatch($eventName, $event);
148 $this->postProcess($eventName);
249 * @param Event $event The event
250 */
251 protected function postDispatch($eventName, Event $event)
252 {
253 }
270 }
272 private function postProcess($eventName)
273 {
274 unset($this->wrappedListeners[$eventName]);
zone.php (https://bitbucket.org/sandeepbhaskar/inspiredliving.git) PHP · 441 lines
187 'name' => $result['name'] . (($result['zone_id'] == $this->config->get('config_zone_id')) ? $this->language->get('text_default') : null),
188 'code' => $result['code'],
189 'selected' => isset($this->request->post['selected']) && in_array($result['zone_id'], $this->request->post['selected']),
190 'action' => $action
191 );
327 $this->data['cancel'] = $this->url->link('localisation/zone', 'token=' . $this->session->data['token'] . $url, 'SSL');
329 if (isset($this->request->get['zone_id']) && ($this->request->server['REQUEST_METHOD'] != 'POST')) {
330 $zone_info = $this->model_localisation_zone->getZone($this->request->get['zone_id']);
331 }
381 }
383 if ((utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 64)) {
384 $this->error['name'] = $this->language->get('error_name');
385 }
ContentData.java (https://github.com/alfresco-mirror/alfresco-mirror.git) Java · 325 lines
11 * Alfresco is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
17 * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
18 */
19 package org.alfresco.module.phpIntegration.lib;
21 import org.alfresco.model.ContentModel;
22 import org.alfresco.module.phpIntegration.PHPProcessorException;
23 import org.alfresco.service.cmr.repository.ContentReader;
24 import org.alfresco.service.cmr.repository.ContentService;
25 import org.alfresco.service.cmr.repository.ContentWriter;
%%0C^0C4^0C47B79C%%layout.tpl.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 146 lines
1 <?php /* Smarty version 2.6.10, created on 2005-09-21 12:20:12
2 compiled from author/submission/layout.tpl */ ?>
3 <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
4 smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'author/submission/layout.tpl', 15, false),array('function', 'icon', 'author/submission/layout.tpl', 94, false),array('modifier', 'escape', 'author/submission/layout.tpl', 19, false),array('modifier', 'date_format', 'author/submission/layout.tpl', 33, false),array('modifier', 'default', 'author/submission/layout.tpl', 39, false),)), $this); ?>
6 <?php $this->assign('layoutAssignment', $this->_tpl_vars['submission']->getLayoutAssignment()); $this->assign('layoutFile', $this->_tpl_vars['layoutAssignment']->getLayoutFile()); ?>
7 <a name="layout"></a>
8 <h3><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "submission.layout"), $this);?>
9 </h3>
11 <?php if ($this->_tpl_vars['useLayoutEditors']): ?>
12 <p><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "user.role.layoutEditor"), $this);?>
138 ');" class="icon"><?php echo $this->_plugins['function']['icon'][0][0]->smartyIcon(array('name' => 'comment'), $this);?>
139 </a><?php echo ((is_array($_tmp=$this->_tpl_vars['comment']->getDatePosted())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatShort'])); ?>
141 <?php else: ?>
migration_tables_core_538.php (https://github.com/skynet/OpenX-2.8.7.git) PHP · 318 lines
1 <?php
3 /*
16 | This program is distributed in the hope that it will be useful, |
17 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 | GNU General Public License for more details. |
20 | |
23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 +---------------------------------------------------------------------------+
25 $Id: migration_tables_core_538.php 62345 2010-09-14 21:16:38Z chris.nutting $
26 */
28 require_once(MAX_PATH.'/lib/OA/Upgrade/Migration.php');
30 class Migration_538 extends Migration
ext_zlib.php (https://github.com/tstarling/hiphop-php.git) PHP · 376 lines
1 <?hh
2 // @generated by docskel.php
4 /**
61 * library.
62 * @param int $encoding_mode - The encoding mode. Can be FORCE_GZIP (the
63 * default) or FORCE_DEFLATE. Prior to PHP 5.4.0, using FORCE_DEFLATE
64 * results in a standard zlib deflated string (inclusive zlib headers)
65 * after a gzip file header but without the trailing crc32 checksum. In
66 * PHP 5.4.0 and later, FORCE_DEFLATE generates RFC 1950 compliant
67 * output, consisting of a zlib header, the deflated data, and an Adler
68 * checksum.
214 /**
215 * Rewind the position of a gz-file pointer
216 *
217 * @param resource $zp - The gz-file pointer. It must be valid, and must
XmlDescriptor.php (https://github.com/ruudk/symfony.git) PHP · 247 lines
1 <?php
3 /*
207 $dom->appendChild($objectXML = $dom->createElement('option'));
208 $objectXML->setAttribute('name', '--'.$option->getName());
209 $pos = strpos($option->getShortcut(), '|');
210 if (false !== $pos) {
211 $objectXML->setAttribute('shortcut', '-'.substr($option->getShortcut(), 0, $pos));
212 $objectXML->setAttribute('shortcuts', '-'.str_replace('|', '|-', $option->getShortcut()));
213 } else {
VoteTest.php (https://github.com/omigeot-ccpo/SemanticScuttle-SSO.git) PHP · 536 lines
1 <?php
2 /**
3 * SemanticScuttle - your social bookmark manager.
4 *
5 * PHP version 5.
6 *
7 * @category Bookmarking
444 /**
445 * Verify that changing the vote from postitive to positive
446 * has no strange effects
447 *
448 * @return void
449 */
450 public function testVoteChangePosPos()
451 {
452 $uid = 1;
ast_tree_output.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 550 lines
1 <?php
2 /**
3 * File containing the ezcTemplateAstNodeGenerator class
522 /**
523 * Extracts position data from the specified node and set in the out parameters.
524 * Ast nodes has no position so it always returns false.
531 * @return bool True if the extraction was succesful.
532 */
533 protected function extractNodePosition( $node, &$startLine, &$startColumn, &$endLine, &$endColumn )
534 {
535 return false;
edit.php (https://github.com/sansanwawa/e-commerse.git) PHP · 337 lines
59 $this->data['entry_address_1'] = $this->language->get('entry_address_1');
60 $this->data['entry_address_2'] = $this->language->get('entry_address_2');
61 $this->data['entry_postcode'] = $this->language->get('entry_postcode');
62 $this->data['entry_city'] = $this->language->get('entry_city');
63 $this->data['entry_country'] = $this->language->get('entry_country');
206 if (isset($this->request->post['postcode'])) {
207 $this->data['postcode'] = $this->request->post['postcode'];
208 } elseif (isset($affiliate_info)) {
209 $this->data['postcode'] = $affiliate_info['postcode'];
280 $this->error['telephone'] = $this->language->get('error_telephone');
281 }
282 if ((strlen(utf8_decode($this->request->post['address_1'])) < 3) || (strlen(utf8_decode($this->request->post['address_1'])) > 128)) {
283 $this->error['address_1'] = $this->language->get('error_address_1');
284 }
292 $country_info = $this->model_localisation_country->getCountry($this->request->post['country_id']);
294 if ($country_info && $country_info['postcode_required'] && (strlen(utf8_decode($this->request->post['postcode'])) < 2) || (strlen(utf8_decode($this->request->post['postcode'])) > 10)) {
295 $this->error['postcode'] = $this->language->get('error_postcode');
MultishippingTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 271 lines
25 /**
26 * @var \PHPUnit_Framework_MockObject_MockObject
27 */
28 protected $customerMock;
55 /**
56 * @var \PHPUnit_Framework_MockObject_MockObject
57 */
58 protected $totalsCollectorMock;
76 $orderSenderMock = $this->getMock('\Magento\Sales\Model\Order\Email\Sender\OrderSender', [], [], '', false);
77 $priceMock = $this->getMock('\Magento\Framework\Pricing\PriceCurrencyInterface', [], [], '', false);
78 $quoteRepositoryMock = $this->getMock('\Magento\Quote\Api\CartRepositoryInterface');
79 $this->filterBuilderMock = $this->getMock('\Magento\Framework\Api\FilterBuilder', [], [], '', false);
80 $this->searchCriteriaBuilderMock = $this->getMock(
RedirectPluginTest.php (https://gitlab.com/techniconline/kmc) PHP · 277 lines
1 <?php
3 namespace Guzzle\Tests\Plugin\Redirect;
91 $client = new Client($this->getServer()->getUrl());
92 $client->post('/foo', array('X-Baz' => 'bar'), 'testing')->send();
94 $requests = $this->getServer()->getReceivedRequests(true);
95 $this->assertEquals('POST', $requests[0]->getMethod());
96 $this->assertEquals('GET', $requests[1]->getMethod());
97 $this->assertEquals('bar', (string) $requests[1]->getHeader('X-Baz'));
110 $client = new Client($this->getServer()->getUrl());
111 $request = $client->post('/foo', array('X-Baz' => 'bar'), 'testing');
112 $request->getParams()->set(RedirectPlugin::STRICT_REDIRECTS, true);
113 $request->send();
collator_test.php (https://gitlab.com/unofficial-mirrors/moodle) PHP · 333 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
9 // Moodle is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
19 *
20 * @package core
21 * @category phpunit
22 * @copyright 2011 Sam Hemelryk
23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30 *
31 * @package core
32 * @category phpunit
33 * @copyright 2011 Sam Hemelryk
34 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
MassTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 388 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: MassTest.php 24593 2012-01-05 20:35:02Z matthew $
21 */
24 * Zend_Measure_Flow_Mass
25 */
26 require_once 'Zend/Measure/Flow/Mass.php';
28 /**
34 * @group Zend_Measure
35 */
36 class Zend_Measure_Flow_MassTest extends PHPUnit_Framework_TestCase
37 {
38 /**
FrequencyTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 389 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: FrequencyTest.php 24593 2012-01-05 20:35:02Z matthew $
21 */
25 * Zend_Measure_Frequency
26 */
27 require_once 'Zend/Measure/Frequency.php';
29 /**
35 * @group Zend_Measure
36 */
37 class Zend_Measure_FrequencyTest extends PHPUnit_Framework_TestCase
38 {
39 /**
class.swfshape.html (https://bitbucket.org/stillzhl/manuals.git) HTML · 251 lines
10 <div class="next" style="text-align: right; float: right;"><a href="swfshape.addfill.html">SWFShape::addFill</a></div>
11 <div class="up"><a href="book.ming.html">Ming</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13 </div><hr /><div id="class.swfshape" class="reference">
14 <h1 class="title">The SWFShape class</h1>
244 <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="swfshape.addfill.html">SWFShape::addFill</a> — Adds a solid fill to the shape</li><li><a href="swfshape.construct.html">SWFShape::__construct</a> — Creates a new shape object</li><li><a href="swfshape.drawarc.html">SWFShape::drawArc</a> — Draws an arc of radius r centered at the current location, from angle startAngle to angle endAngle measured clockwise from 12 o'clock</li><li><a href="swfshape.drawcircle.html">SWFShape::drawCircle</a> — Draws a circle of radius r centered at the current location, in a counter-clockwise fashion</li><li><a href="swfshape.drawcubic.html">SWFShape::drawCubic</a> — Draws a cubic bezier curve using the current position and the three given points as control points</li><li><a href="swfshape.drawcubicto.html">SWFShape::drawCubicTo</a> — Draws a cubic bezier curve using the current position and the three given points as control points</li><li><a href="swfshape.drawcurve.html">SWFShape::drawCurve</a> — Draws a curve (relative)</li><li><a href="swfshape.drawcurveto.html">SWFShape::drawCurveTo</a> — Draws a curve</li><li><a href="swfshape.drawglyph.html">SWFShape::drawGlyph</a> — Draws the first character in the given string into the shape using the glyph definition from the given font</li><li><a href="swfshape.drawline.html">SWFShape::drawLine</a> — Draws a line (relative)</li><li><a href="swfshape.drawlineto.html">SWFShape::drawLineTo</a> — Draws a line</li><li><a href="swfshape.movepen.html">SWFShape::movePen</a> — Moves the shape's pen (relative)</li><li><a href="swfshape.movepento.html">SWFShape::movePenTo</a> — Moves the shape's pen</li><li><a href="swfshape.setleftfill.html">SWFShape::setLeftFill</a> — Sets left rasterizing color</li><li><a href="swfshape.setline.html">SWFShape::setLine</a> — Sets the shape's line style</li><li><a href="swfshape.setrightfill.html">SWFShape::setRightFill</a> — Sets right rasterizing color</li></ul>
245 </div>
246 <hr /><div class="manualnavbar" style="text-align: center;">
248 <div class="next" style="text-align: right; float: right;"><a href="swfshape.addfill.html">SWFShape::addFill</a></div>
249 <div class="up"><a href="book.ming.html">Ming</a></div>
250 <div class="home"><a href="index.html">PHP Manual</a></div>
251 </div></body></html>
DeleteComment.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 355 lines
27 public function setUp() {
28 parent::setUp();
29 $post_id = $this->factory->post->create();
30 $this->_comments = $this->factory->comment->create_post_comments( $post_id, 15 );
71 $_POST['_page'] = 1;
72 $_POST['_url'] = admin_url( 'edit-comments.php' );
74 // Make the request
128 $_POST['_page'] = 1;
129 $_POST['_url'] = admin_url( 'edit-comments.php' );
131 // Make the request
158 $_POST['_page'] = 1;
159 $_POST['_url'] = admin_url( 'edit-comments.php' );
161 // Make the request
class-wp-customize-setting.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 439 lines
1 <?php
2 /**
3 * Customize Setting Class.
22 protected $id_data = array();
23 private $_post_value; // Cached, sanitized $_POST value.
25 /**
95 */
96 public function _preview_filter( $original ) {
97 return $this->multidimensional_replace( $original, $this->id_data[ 'keys' ], $this->post_value() );
98 }
106 */
107 public final function save() {
108 $value = $this->post_value();
110 if ( ! $this->check_capabilities() || ! isset( $value ) )
Object.js (https://github.com/Seldaiendil/meyeOS.git) JavaScript · 429 lines
10 License:
11 LGPL: http://www.gnu.org/licenses/lgpl.html
12 EPL: http://www.eclipse.org/org/documents/epl-v10.php
13 See the LICENSE file in the project's top-level directory for details.
41 tearDown : function()
42 {
43 this.__model.dispose();
44 this.__label2.dispose();
45 this.__label1.dispose();
46 },
86 newModel.setZIndex(20);
88 // dispose the old model to check that the controller can handle that
89 this.__model.dispose();
validation.php (https://github.com/jonphipps/Metadata-Registry.git) PHP · 177 lines
1 <?php
3 return [
16 'accepted' => 'Le champ :attribute doit être accepté.',
17 'active_url' => "Le champ :attribute n'est pas une URL valide.",
18 'after' => 'Le champ :attribute doit être une date postérieure au :date.',
19 'after_or_equal' => 'Le champ :attribute doit être une date postérieure ou égale au :date.',
LICENSE.txt (git://github.com/clawpack/clawpack-4.x.git) Plain Text · 35 lines
2 Clawpack is distributed under the terms of the
3 Berkeley Software Distribution (BSD) license
4 http://www.opensource.org/licenses/bsd-license.php
6 Copyright (c) 1994--2010, Randall J. LeVeque and others
23 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 POSSIBILITY OF SUCH DAMAGE.
NestedTreeRootTest.php (https://github.com/easybib/DoctrineExtensions.git) PHP · 337 lines
1 <?php
3 namespace Gedmo\Tree;
14 * @package Gedmo.Tree
15 * @link http://www.gediminasm.org
16 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
17 */
18 class NestedTreeRootTest extends BaseTestCaseORM
37 $took = microtime(true) - $start;
38 $minutes = intval($took / 60); $seconds = $took % 60;
39 echo sprintf("%s --> %02d:%02d", $msg, $minutes, $seconds) . PHP_EOL;
40 };
41 $repo = $this->em->getRepository(self::CATEGORY);
76 public function testTheTree()
77 {
78 $repo = $this->em->getRepository(self::CATEGORY);
79 $node = $repo->findOneByTitle('Food');
MassTest.php (https://github.com/nbcutech/o3drupal.git) PHP · 388 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: MassTest.php 23775 2011-03-01 17:25:24Z ralph $
21 */
24 * Zend_Measure_Flow_Mass
25 */
26 require_once 'Zend/Measure/Flow/Mass.php';
28 /**
34 * @group Zend_Measure
35 */
36 class Zend_Measure_Flow_MassTest extends PHPUnit_Framework_TestCase
37 {
38 /**
BaseUserService.php (https://github.com/kervin/kyzstudio.git) PHP · 399 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: BaseUserService.php 20166 2010-01-09 19:00:17Z bkarwin $
21 */
24 * @see Zend_Service_DeveloperGarden_Client_ClientAbstract
25 */
26 #require_once 'Zend/Service/DeveloperGarden/Client/ClientAbstract.php';
28 /**
29 * @see Zend_Service_DeveloperGarden_Response_BaseUserService_GetQuotaInformationResponse
30 */
31 #require_once 'Zend/Service/DeveloperGarden/Response/BaseUserService/GetQuotaInformationResponse.php';
33 /**
PropelTableComparator.php (https://github.com/apinstein/Propel.git) PHP · 312 lines
1 <?php
3 /**
9 */
11 require_once dirname(__FILE__) . '/../Table.php';
12 require_once dirname(__FILE__) . '/PropelTableDiff.php';
13 require_once dirname(__FILE__) . '/PropelColumnComparator.php';
14 require_once dirname(__FILE__) . '/PropelColumnDiff.php';
15 require_once dirname(__FILE__) . '/PropelIndexComparator.php';
16 require_once dirname(__FILE__) . '/PropelForeignKeyComparator.php';
225 $toTableIndices = array_merge($this->getToTable()->getIndices(), $this->getToTable()->getUnices());
227 foreach ($toTableIndices as $toTableIndexPos => $toTableIndex) {
228 foreach ($fromTableIndices as $fromTableIndexPos => $fromTableIndex) {
Contact.php (https://github.com/finger2000/horde.git) PHP · 256 lines
27 const BUSINESSCITY = "POOMCONTACTS:BusinessCity";
28 const BUSINESSCOUNTRY = "POOMCONTACTS:BusinessCountry";
29 const BUSINESSPOSTALCODE = "POOMCONTACTS:BusinessPostalCode";
30 const BUSINESSSTATE = "POOMCONTACTS:BusinessState";
31 const BUSINESSSTREET = "POOMCONTACTS:BusinessStreet";
47 const HOMECITY = "POOMCONTACTS:HomeCity";
48 const HOMECOUNTRY = "POOMCONTACTS:HomeCountry";
49 const HOMEPOSTALCODE = "POOMCONTACTS:HomePostalCode";
50 const HOMESTATE = "POOMCONTACTS:HomeState";
51 const HOMESTREET = "POOMCONTACTS:HomeStreet";
59 const OTHERCITY = "POOMCONTACTS:OtherCity";
60 const OTHERCOUNTRY = "POOMCONTACTS:OtherCountry";
61 const OTHERPOSTALCODE = "POOMCONTACTS:OtherPostalCode";
62 const OTHERSTATE = "POOMCONTACTS:OtherState";
63 const OTHERSTREET = "POOMCONTACTS:OtherStreet";
Model.class.php (https://github.com/dzx0315/509.git) PHP · 295 lines
1 <?php
2 // +----------------------------------------------------------------------
3 // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4 // +----------------------------------------------------------------------
5 // | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
6 // +----------------------------------------------------------------------
7 // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
13 /**
14 +------------------------------------------------------------------------------
15 * ThinkPHP 简洁模式Model模型类
16 * 只支持原生SQL操作 支持多数据库连接和切换
17 +------------------------------------------------------------------------------
86 }
87 if(!empty($sql)) {
88 if(strpos($sql,'__TABLE__')) {
89 $sql = str_replace('__TABLE__',$this->getTableName(),$sql);
90 }
qrsplit.php (https://bitbucket.org/Sinfin/pawtucket.git) PHP · 311 lines
51 return false;
53 return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9')));
54 }
57 public static function isalnumat($str, $pos)
58 {
59 if ($pos >= strlen($str))
60 return false;
65 //----------------------------------------------------------------------
66 public function identifyMode($pos)
67 {
68 if ($pos >= strlen($this->dataStr))
SnsClient.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 378 lines
99 function pgcache_flush_post($post_id) {
100 return $this->_prepare_message(
101 array('action' => 'pgcache_flush_post', 'post_id' => $post_id));
102 }
127 function varnish_flush_post($post_id) {
128 return $this->_prepare_message(array('action' => 'varnish_flush_post', 'post_id' => $post_id));
129 }
215 function flush_post($post_id) {
216 return $this->_prepare_message(array('action' => 'flush_post', 'post_id' => $post_id));
217 }
249 function prime_post($post_id) {
250 return $this->_prepare_message(array('action' => 'prime_post', 'post_id' => $post_id));
251 }
fontif-err.php (https://bitbucket.org/shuangxinyu/emacspack.git) PHP · 340 lines
19 <dl>
20 <!-- <dt id="bugs-affect-mode-switching">Two Emacs 22 beta bugs affects PHP mode switching</dt> -->
21 <!-- <dd> -->
22 <!-- <p> -->
23 <!-- <a href="nxhtml.html#php">PHP / nXhtml automatic mode switching</a> is affected: -->
24 <!-- </p> -->
25 <!-- <ul> -->
49 <!-- </ul> -->
50 <!-- </dd> -->
51 <dt id="new-mode-switching" style="margin-top:1em;">I have rewritten the PHP mode switching</dt>
52 <dd>
53 <p>
MajoritySelector.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines
1 <?php
3 /*
4 * $Id: MajoritySelector.php 123 2006-09-14 20:19:08Z mrook $
5 *
6 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
7 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
8 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
9 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
10 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
11 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
14 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
15 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
16 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
17 *
18 * This software consists of voluntary contributions made by many individuals
RestDataConnectionProvider.php
(http://forceworkbench.googlecode.com/svn/trunk/workbench/)
PHP · 24 lines
✨ Summary
This PHP code defines a class RestDataConnectionProvider
that extends an abstract connection provider. It establishes a REST API connection using the RestApiClient
class, setting various configuration options such as compression, user agent, logging, and proxy settings based on environment variables and configuration files. The endpoint type is set to “Soap/u”.
This PHP code defines a class RestDataConnectionProvider
that extends an abstract connection provider. It establishes a REST API connection using the RestApiClient
class, setting various configuration options such as compression, user agent, logging, and proxy settings based on environment variables and configuration files. The endpoint type is set to “Soap/u”.
writing-modes.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 910 lines
723 attributes are both optional, but you may only specify one, not both. If
724 both are specified, <literal>HASH_CHARS</literal> is ignored and an
725 error is shown. Whenever possible, use a literal prefix to specify a
726 <literal>SEQ_REGEXP</literal>. If the starting prefix is always the
727 same, use <literal>HASH_CHAR</literal> and provide as much prefix as
768 <RULES SET="JAVASCRIPT+PHP">
770 <SPAN TYPE="MARKUP" DELEGATE="php::PHP">
771 <BEGIN>&lt;?php</BEGIN>
773 </SPAN>
775 <SPAN TYPE="MARKUP" DELEGATE="php::PHP">
776 <BEGIN>&lt;?</BEGIN>
777 <END>?&gt;</END>
778 </SPAN>
780 <SPAN TYPE="MARKUP" DELEGATE="php::PHP">
781 <BEGIN>&lt;%=</BEGIN>
782 <END>%&gt;</END>
yaml.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 84 lines
WInZipAesKeyStrength.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 14 lines
el-070604.php (https://bitbucket.org/shuangxinyu/emacspack.git) PHP · 12 lines
question44504-folding.html (https://bitbucket.org/shuangxinyu/emacspack.git) HTML · 29 lines
6 <tr>
7 <td width='50' colspan='1' class='men-met'>
8 <input type='button' value=' < ' onClick='goLastMonth(<?php echo date("t", strtotime("$year1-$month1-$day1")).", ".$month . ", " . $year.", ".date("w", strtotime("$year-$month-$day1")); ?>)' />
9 </td>
10 <td width='250' colspan='5' class='men-met'>
11 <span class='title'><?php echo $men . " " . $year; ?></span><br />
12 </td>
13 <td width='50' colspan='1' align='right' class='men-met'>
14 <input type='button' value=' > ' onClick='goNextMonth(1, <?php echo $month . ", " . $year.", ".date("w", strtotime("$year2-$month2-$day1")); ?>)' />
15 </td>
16 </tr>
Preview_Javadoc_of_Buffer.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 609 lines
9 * - Includes the ability to use the Bouvard Doclet.
10 * Visit
11 * http://community.jedit.org/modules.php?
12 * op=modload&name=web_links&file=index&req=viewlink&cid=6
13 * for the Bouvard link
46 * This program is distributed in the hope that it will be useful,
47 * but WITHOUT ANY WARRANTY; without even the implied warranty of
48 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
49 * GNU General Public License for more details.
50 *
72 * This program is distributed in the hope that it will be useful,
73 * but WITHOUT ANY WARRANTY; without even the implied warranty of
74 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
75 * GNU General Public License for more details.
76 *
README (http://enginey.googlecode.com/svn/trunk/) Unknown · 42 lines
1 Using Amazon S3 with Dojo has the following prerequisites:
2 * You must be signed up to use Amazon S3. You can sign up for Amazon S3 at http://aws.amazon.com/s3.
3 * Use the provided proxy (/dojox/rpc/s3/proxy.php) with PHP 5.
4 * proxy.php requires the following modules:
9 To use S3 from Dojo, you need a proxy. You can use the provided proxy example file by renaming
10 proxy.example-php to proxy.php and then you must enter your Amazon access key and secret access key
11 into the proxy.php file on line 3 and 4:
20 var s3Buckets = new dojox.rpc.Service({
21 target:"http://s3.amazonaws.com/",
22 proxyUrl:"../s3/proxy.php", // the path to the proxy
23 transport:"REST",
24 envelope:"PROXIED-PATH",
AndCondition.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines
1 <?php
2 /*
3 * $Id: AndCondition.php 43 2006-03-10 14:31:51Z mrook $
6 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
7 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
8 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
9 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
10 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
13 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
14 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
15 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
16 *
17 * This software consists of voluntary contributions made by many individuals
20 */
22 require_once 'phing/tasks/system/condition/ConditionBase.php';
24 /**
frame_9.svg (https://bitbucket.org/atchariya/nokia.git) SVG · 3078 lines
104 Hdu6oIwauNCqJO2i0qP01h4E6vnk5nTm4JBzImjHwcVE/s57xJef4+ytN5mCIlbwXKdb86rKklKY
105 cd7plK/3PXdF+HEX/lky5nnif+4DX+sDazEOvCqdHJitNqFrnCMxLgR+t+/Z9co1L7ySCp9x45mS
106 Ghyceb0EXo0Lvh6cb6mywREpiMEfdJHjnPhicQwjuIMpOSZyXCAC62nHy75i1y3AnHU7gy9VSOog
107 9d+LVSXtwgrBUv2eR0wqpyMuCEpSp58mohQj6Yx7qEoqNcgFD5GxGFsH7wLPhp5rrqQ8MZeCSGDd
262 T4tSOxOpqqOnevsAvJwjn8M4TjOf4Pwfg3A/RNScTirEIW607T6IOE4ieGxB3okR4Q808uYy8nfn
263 zGsl4V55gG+IsLMdX7FAXq745jzxgRiHKG+Kcm0p/MhYc3M6d6JncuNk+uwQ4qebDlOpLs6o7QFR
264 Z2EjV2dlNay5rxOTJwarphpXIZvSDT1y+ybTlUOOvv09oDq283CALdYV700TW9vxSdkxW2alwtaF
265 Dc5PhTX/2Aa2+ZTvCdCtebVbsO+ZL6RMCZF/s+i4s+j5QYQuFWLJf6PJWRlnwvkW3VuxXHbkxRrW
266 E2F7Ua9jCOTYkYe6C0JjoFusWHRdk2smbmYDCSxjxZ77YuzMWMTInb7nqlQMus/VEPoaMKtyzYRy
282 s2/GSpVFew3LmuNMbjLordSiolDFD00WLE3KKUiLuW9xBqUegp4znRWOi3NfhZO2zO2WwRUEDwG1
283 gmrNTOuy1QUd/cDBgyf8w7nwSwEei/AjxfnJYryQUjUxi3Ad4YCehyZcinHhznuqJI0U4LElHvrE
284 q0TuEAgOa1fOKDzSiRvaV2lscaRUOG5L5jjBTnsuo3JYqppOSqH3uiejy7DQNdOH9+h/8Hnu3Pse
285 Ie8owxFf62CjmSMXlm4cEDn0xLJtz7zqygsuXLHCpWU+UngQAhulXq8MsWu7aFz4jCifN+GbpfBW
286 NL5Ez20T2GW0h08s8Tx1o+i+G68XuE7g5eD872a8L1Xy8TAI/2tw/vtdhfLnvkCzP4xWVbdda+QF
556 d1ozopWgoIVYLcSK5IR4SdlkUWx3D65cIx4ecen4hHz7fbI5lralOVIDU2m5QuJlG/g68EPJvBYa
557 vpgj/4X17IjwHs7faFr+JAd8zuBJ2nI2DKzHnicSGGoX+nNhwlwCpVNOWbqxIfPQRh7iRIl8Tju+
558 4WtUI/+6TPhpn/PusOZv64YvascfzsrcjNRpCT57QxxLeLWftNxXY7ldMfNarVylT3UnLBO2XOBj
559 wadsY8vBMJClxBMepBX5HPZnM5pYYJxNdm5N9rigkdPtkseeuS/CrheTy8oyUZVJrkSIWrUwTcKr
560 lOdkquV5QoxszqBK0oBX2vW1pmHtzn1PtWtIyChDKGReCYFrlST9Xq3PGCSQRWuGysGNA0JdvyMx
bannerclient.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 41 lines
SimpleListModel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 106 lines
✨ Summary
This Java class, SimpleListModel
, extends AbstractListModel
and provides a custom list model for displaying PHP items. It filters items based on a search string and mode settings, allowing users to narrow down results by type and name. The class uses a TreeSet to store the filtered items and updates the list when the filter or mode changes.
This Java class, SimpleListModel
, extends AbstractListModel
and provides a custom list model for displaying PHP items. It filters items based on a search string and mode settings, allowing users to narrow down results by type and name. The class uses a TreeSet to store the filtered items and updates the list when the filter or mode changes.
37 this.list.clear();
38 for (int i = 0; i < list.size(); i++) {
39 PHPItem phpItem = (PHPItem) list.get(i);
40 if (accept(phpItem, searchString)) {
53 Iterator iterator = list.iterator();
54 while (iterator.hasNext()) {
55 PHPItem phpItem = (PHPItem) iterator.next();
56 if (!accept(phpItem, searchString)) {
74 private boolean accept(PHPItem phpItem, String searchText) {
75 return (mode & phpItem.getItemType()) == phpItem.getItemType() && phpItem.getNameLowerCase().indexOf(searchText) != -1;
76 }
88 private static class SimpleComparator implements Comparator {
89 public int compare(Object o1, Object o2) {
90 PHPItem item1 = (PHPItem) o1;
91 PHPItem item2 = (PHPItem) o2;
jedit.1 (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 163 lines
typemaps.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 235 lines
categories.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 86 lines
1 <?php
2 /**
3 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
45 $extension = JRequest::getCmd('extension');
46 $this->setRedirect(JRoute::_('index.php?option=com_categories&view=categories&extension='.$extension, false));
48 // Initialise variables.
72 // Get the arrays from the Request
73 $order = JRequest::getVar('order', null, 'post', 'array');
74 $originalOrder = explode(',', JRequest::getString('original_order_values'));
79 } else {
80 // Nothing to reorder
81 $this->setRedirect(JRoute::_('index.php?option='.$this->option.'&view='.$this->view_list, false));
82 return true;
83 }
catalog (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 546 lines
327 <MODE NAME="php" FILE="php.xml"
328 FILE_NAME_GLOB="*.{php3,php4,php,phtml,inc}"
329 FIRST_LINE_GLOB="{<?php*,#!/*php*}" />
341 FILE_NAME_GLOB="*.{p,pop11,p11}" />
343 <MODE NAME="postscript" FILE="postscript.xml"
344 FILE_NAME_GLOB="*.{ps,eps}" />
503 FILE_NAME_GLOB="*.twiki"/>
505 <MODE NAME="typoscript" FILE="typoscript.xml"
506 FILE_NAME_GLOB="*.ts"/>
jsonRpc10.php
(http://enginey.googlecode.com/svn/trunk/)
PHP · 48 lines
✨ Summary
This PHP script processes a JSON-RPC request from a client, determines the requested method and its parameters, and returns a response in JSON format. If the requested method is found, it returns the parameter as the result; otherwise, it returns an error message indicating that the method was not found. The response includes an ID matching the original request’s ID.
This PHP script processes a JSON-RPC request from a client, determines the requested method and its parameters, and returns a response in JSON format. If the requested method is found, it returns the parameter as the result; otherwise, it returns an error message indicating that the method was not found. The response includes an ID matching the original request’s ID.
1 <?php
2 require_once("./JSON.php");
6 // Commenting out.the require and the new File() call.
8 // NOTE: File.php is installed via Pear using:
9 // %> sudo pear install File
10 // Your server will also need the Pear library directory included in PHP's
11 // include_path configuration directive
12 // require_once('File.php');
14 // ensure that we don't try to send "html" down to the client
21 $results['error'] = null;
23 $jsonRequest = file_get_contents('php://input');
24 //$jsonRequest = '{"params":["Blah"],"method":"myecho","id":86}';
bp-core-options.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 538 lines
1 <?php
3 /**
31 // Legacy bbPress config location
32 'bb-config-location' => ABSPATH . 'bb-config.php',
34 /** XProfile **********************************************************/
74 /** Akismet ***********************************************************/
76 // Users from all sites can post
77 '_bp_enable_akismet' => true,
491 *
492 * @uses bp_get_option() To get the maximum title length
493 * @return int Is anonymous posting allowed?
494 */
495 function bp_get_group_forums_root_id( $default = '0' ) {
PHPDocument.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 231 lines
✨ Summary
This Java class represents a PHP document, which is an outlineable object containing HTML and PHP nodes. It provides methods to analyze code, get statements at specific positions, and manage its structure, including adding and retrieving children (e.g., classes, methods). The class also implements the IAsset
interface and has properties for its name, start and end positions, and nodes.
This Java class represents a PHP document, which is an outlineable object containing HTML and PHP nodes. It provides methods to analyze code, get statements at specific positions, and manage its structure, including adding and retrieving children (e.g., classes, methods). The class also implements the IAsset
interface and has properties for its name, start and end positions, and nodes.
7 import net.sourceforge.phpdt.internal.compiler.parser.OutlineableWithChildren;
8 import gatchan.phpparser.project.itemfinder.PHPItem;
9 import gatchan.phpparser.parser.PHPParser;
15 /**
16 * It's a php document. This class is an outlineable object It will contains html and php
17 *
18 * @author Matthieu Casanova
35 * @param name the nale f the document
36 */
37 public PHPDocument(String name) {
38 this.name = name;
39 }
111 * @param phpParser the php parser
112 */
113 public void analyzeCode(PHPParser phpParser) {
114 if (nodes != null) {
115 for (int i = 0; i < nodes.length; i++) {
news.html
(https://freespeech.svn.sourceforge.net/svnroot/freespeech)
HTML · 105 lines
✨ Summary
This HTML code outputs a news page for the Overflow project, a free “data flow oriented” development environment. It displays recent news and updates about the project, including new releases, features, and adoption by other companies. The page also includes links to download the software and provide feedback through an online survey.
This HTML code outputs a news page for the Overflow project, a free “data flow oriented” development environment. It displays recent news and updates about the project, including new releases, features, and adoption by other companies. The page also includes links to download the software and provide feedback through an online survey.
16 <hr WIDTH="100%">
17 <br><b>November 21st 2001</b>
18 <p><a href="http://sourceforge.net/forum/forum.php?forum_id=126719">Overflow
19 0.6.0 have just been released.</a><b></b><b></b>
20 <p>We're pleased to announce the release of Overflow 0.6.0. Overflow
53 robotics lab at University of Sherbrooke</a> and a robot control toolbox
54 is soon to be released!
55 <p>There is now an <a href="http://sourceforge.net/survey/survey.php?group_id=590&survey_id=11967">on-line
56 survey on SourceForge</a>. Tell us what you think about Overflow!
57 <br><b></b>
59 <hr WIDTH="100%">
60 <br><b>July 4th 2001</b>
61 <p><a href="http://sourceforge.net/forum/forum.php?forum_id=96301">Overflow
62 0.5.0 have just been released.</a><b> </b>This new release brings
63 a number of improvements over version 0.4.3.
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 711 lines
359 files of a specific type. A mode is selected via the "mode" option.
360 This will happen implicitly if Aspell is able to identify the file
361 type from the extension, and possibility the contents, of the file.
363 ccpp mode for checking C++ comments and string literals
532 <glossentry><glossterm>Not in Dictionary</glossterm>
533 <glossdef>
534 <para>Displays a possible error, such as a misspelled word, a duplicate word, or a incorrect capitalization.</para>
535 </glossdef>
536 </glossentry>
602 As of release R005, the build process is the same as other plugins.
603 It uses the <code>build-support/plugin-build.xml</code> build file,
604 available from jedit repository. The documentation is generated using docbook xsl.
605 </para>
606 <para>Some tests are included. They are based upon <ulink url="http://fest.easytesting.org/swing/wiki/pmwiki.php">FEST-swing</ulink>
director_string_runme.php
(https://swig.svn.sourceforge.net/svnroot/swig)
PHP · 35 lines
✨ Summary
This PHP code tests a set of functions, classes, and global variables to ensure they are working as expected. It creates an instance of class B, which extends class A, and calls various methods on it to verify their behavior. The test checks for equality with expected results, indicating that the code passes the tests successfully.
This PHP code tests a set of functions, classes, and global variables to ensure they are working as expected. It creates an instance of class B, which extends class A, and calls various methods on it to verify their behavior. The test checks for equality with expected results, indicating that the code passes the tests successfully.
en-GB.plg_finder_weblinks.ini (https://bitbucket.org/kraymitchell/fcd.git) Unknown · 11 lines
_normal.user.js
(http://game-golem.googlecode.com/svn/trunk/)
JavaScript · 33 lines
✨ Summary
This UserScript for Facebook’s Castle Age game automatically logs in and plays on behalf of the user, using a pre-existing script called GameGolem.js. It retrieves the necessary data from local storage and appends the script to the page’s head section, allowing it to automate gameplay without requiring manual input.
This UserScript for Facebook’s Castle Age game automatically logs in and plays on behalf of the user, using a pre-existing script called GameGolem.js. It retrieves the necessary data from local storage and appends the script to the page’s head section, allowing it to automate gameplay without requiring manual input.
7 // @include http://apps.facebook.com/castle_age/*
8 // @include https://apps.facebook.com/castle_age/*
9 // @include http://web3.castleagegame.com/castle_ws/index.php
10 // @resource golem http://game-golem.googlecode.com/svn/trunk/GameGolem.js
11 // @resource stylesheet http://game-golem.googlecode.com/svn/trunk/golem.css
12 // ==/UserScript==
13 // @disabled-include http://apps.facebook.com/reqs.php
14 // @disabled-include https://apps.facebook.com/reqs.php
15 //
16 // For the source code please check the sourse repository
17 // - http://code.google.com/p/game-golem/
18 (function () {
dhd_common.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 1733 lines
✨ Summary
This C code snippet appears to be part of a wireless networking driver, specifically related to Wi-Fi scanning and management. It provides functions for requesting Wi-Fi scans, deleting BSS (Basic Service Set) entries, and retrieving partial scan results. The code also handles various error conditions and manages internal data structures, such as the iscan_chain
buffer.
This C code snippet appears to be part of a wireless networking driver, specifically related to Wi-Fi scanning and management. It provides functions for requesting Wi-Fi scans, deleting BSS (Basic Service Set) entries, and retrieving partial scan results. The code also handles various error conditions and manages internal data structures, such as the iscan_chain
buffer.
controller.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 84 lines
38 // slashes cause errors, <> get stripped anyway later on. # causes problems.
39 $badchars = array('#', '>', '<', '\\');
40 $searchword = trim(str_replace($badchars, '', JRequest::getString('searchword', null, 'post')));
41 // if searchword enclosed in double quotes, strip quotes and do exact match
42 if (substr($searchword, 0, 1) == '"' && substr($searchword, -1) == '"') {
43 $post['searchword'] = substr($searchword, 1, -1);
44 JRequest::setVar('searchphrase', 'exact');
45 }
47 $post['searchword'] = $searchword;
48 }
49 $post['ordering'] = JRequest::getWord('ordering', null, 'post');
50 $post['searchphrase'] = JRequest::getWord('searchphrase', 'all', 'post');
51 $post['limit'] = JRequest::getUInt('limit', null, 'post');
52 if ($post['limit'] === null) unset($post['limit']);
54 $areas = JRequest::getVar('areas', null, 'post', 'array');
AclProviderInterface.php
(git://github.com/symfony/symfony.git)
PHP · 50 lines
✨ Summary
This PHP interface defines a contract for retrieving and managing Access Control Lists (ACLs) in a Symfony application. It provides methods to find child object identities, retrieve ACLs for specific object identities, and map multiple object identities to their corresponding ACLs. The interface is designed to be implemented by classes that handle ACL-related operations.
This PHP interface defines a contract for retrieving and managing Access Control Lists (ACLs) in a Symfony application. It provides methods to find child object identities, retrieve ACLs for specific object identities, and map multiple object identities to their corresponding ACLs. The interface is designed to be implemented by classes that handle ACL-related operations.
cap_inline.h
(http://photon-android.googlecode.com/svn/)
C++ Header · 410 lines
✨ Summary
This C++ header file defines a set of functions for interacting with various components of a system, such as the ARM CPU, VPM, LCD, and others. It provides functions to check if certain features are present, retrieve maximum clock speeds, and determine LCD resolutions. The code is likely used in a low-level system or embedded device application.
This C++ header file defines a set of functions for interacting with various components of a system, such as the ARM CPU, VPM, LCD, and others. It provides functions to check if certain features are present, retrieve maximum clock speeds, and determine LCD resolutions. The code is likely used in a low-level system or embedded device application.
5 * agreement governing use of this software, this software is licensed to you
6 * under the terms of the GNU General Public License version 2, available at
7 * http://www.broadcom.com/licenses/GPLv2.php (the "GPL").
8 *
9 * Notwithstanding the above, under no circumstances may you combine this
118 * cap_isPresent -
119 *
120 * PURPOSE:
121 * Determines if the chip has a certain capability present
122 *
342 * cap_getMaxArmSpeedHz -
343 *
344 * PURPOSE:
345 * Determines the maximum speed of the ARM CPU
346 *