PageRenderTime 2604ms queryTime 284ms sortTime 1166ms getByIdsTime 70ms findMatchingLines 95ms

100+ results results for 'php com repo:cbenelug/chamilo' (2604 ms)

Not the results you expected?
wp-cache-f091d5ab40590bc01ee8ea7afc5372b1.html https://gitlab.com/endomorphosis/reservationtelco | HTML | 371 lines
                    
12	
                    
13	<link rel="stylesheet" href="http://localhost:8888/reservation-telephone-company/wp-content/themes/reservation-telephone-company/style.css" type="text/css" media="screen" />
                    
14	
                    
17
                    
18	<link rel="alternate" type="application/rss+xml" title="Reservation Telephone Company &raquo; About Comments Feed" href="http://localhost:8888/reservation-telephone-company/about/feed/" />
                    
19<link rel='stylesheet' id='gs-basic-functions-css'  href='http://localhost:8888/reservation-telephone-company/wp-content/plugins/gs-basic-functions/gs-basic-functions.css?ver=3.0-RC1-15112' type='text/css' media='all' />
                    
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" /> 
                    
226	<div class="row-1-col-1">
                    
227		<a href="http://localhost:8888/reservation-telephone-company"><img alt="Logo" src="http://localhost:8888/reservation-telephone-company/wp-content/themes/reservation-telephone-company/images/row-1-col-1-logo.png" /></a>
                    
228	</div>
                    
318<p><strong><a href="http://localhost:8888/reservation-telephone-company/wp-content/uploads/2010/05/HQ_web1.jpeg"><img class="alignleft size-full wp-image-43" title="HQ_web" src="http://localhost:8888/reservation-telephone-company/wp-content/uploads/2010/05/HQ_web1.jpeg" alt="" width="351" height="263" /></a>RTC Mission Statement<br />
                    
319 </strong>Our mission is to provide quality telecommunication services at competitive prices.</p>
                    
320<p><strong>RTC Values<br />
                    
                
DiffPanel.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 365 lines
                    
9 * The contents of this file are subject to the terms of either the GNU
                    
10 * General Public License Version 2 only ("GPL") or the Common
                    
11 * Development and Distribution License("CDDL") (collectively, the
                    
11 * Development and Distribution License("CDDL") (collectively, the
                    
12 * "License"). You may not use this file except in compliance with the
                    
13 * License. You can obtain a copy of the License at
                    
21 * by Oracle in the GPL Version 2 section of the License file that
                    
22 * accompanied this code. If applicable, add the following below the
                    
23 * License Header, with the fields enclosed by brackets [] replaced by
                    
41 */
                    
42package org.netbeans.modules.php.project.connections.sync.diff;
                    
43
                    
61import org.netbeans.api.diff.StreamSource;
                    
62import org.netbeans.modules.php.api.util.StringUtils;
                    
63import org.netbeans.modules.php.project.connections.RemoteClient;
                    
                
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
                    
11 * obtain it through the world-wide-web, please send an email
                    
12 * to license@prestashop.com so we can send you a copy immediately.
                    
13 *
                    
17 * versions in the future. If you wish to customize PrestaShop for your
                    
18 * needs please refer to http://www.prestashop.com for more information.
                    
19 *
                    
19 *
                    
20 * @author    Cubyn <modules@cubyn.com>
                    
21 * @copyright 2015-2016 Cubyn
                    
21 * @copyright 2015-2016 Cubyn
                    
22 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
23 */
                    
                
rewrite.php https://bitbucket.org/murtuza88/carolina-home-stone.git | PHP | 425 lines
                    
1<?php
                    
2
                    
47		
                    
48        //DD32 recommend : http://groups.google.com/group/wp-hackers/browse_thread/thread/50ac0d07e30765e9
                    
49        //add_filter('rewrite_rules_array', array($this, 'RewriteRules')); 
                    
211		//TODO: I could parse for the Picture name , gallery etc, but this increase the queries
                    
212		//TODO: Class nggdb need to cache the query for the nggfunctions.php
                    
213
                    
242	 * Canonical support for a better SEO (Dupilcat content), not longer nedded for Wp 2.9
                    
243	 * See : http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html
                    
244	 * 
                    
265            // XML request
                    
266            $this->slug . '/slideshow/([0-9]+)/?$' => 'index.php?imagerotator=true&gid=$matches[1]'
                    
267		);  
                    
273	/**
                    
274	 * Mainly a copy of the same function in wp-includes\rewrite.php
                    
275     * Adding the NGG tags to each post & page. Never found easier and proper way to handle this with other functions.
                    
                
TrustedMath.i18n.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 274 lines
                    
1<?php
                    
2/**
                    
89$messages['fr'] = array(
                    
90	'trustedmath-desc' => "Permet d'intégrer des équations LaTeX sur les pages, comme dans le moteur de rendu intégré de mathématiques, mais sans la dépendance d'Ocaml",
                    
91	'trustedmath-permission-error' => 'Les mathématiques non fiables sont désactivées sur ce wiki',
                    
216$messages['pt'] = array(
                    
217	'trustedmath-desc' => 'Permite incorporar nas páginas equações LaTeX, de forma semelhante à do compositor matemático já incorporado na aplicação, mas sem dependência do Ocaml',
                    
218	'trustedmath-permission-error' => 'Nesta wiki não foi possibilitada matemática não confiável',
                    
                
Font.php https://gitlab.com/rsilveira1987/Expresso | 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		}
                    
                
twitter-timeline.php https://gitlab.com/hunt9310/ras | PHP | 470 lines
                    
1<?php
                    
2
                    
6 * For details on Twitter Timelines see:
                    
7 *  - https://twitter.com/settings/widgets
                    
8 *  - https://dev.twitter.com/docs/embedded-timelines
                    
26			'twitter_timeline',
                    
27			/** This filter is documented in modules/widgets/facebook-likebox.php */
                    
28			apply_filters( 'jetpack_widget_name', esc_html__( 'Twitter Timeline', 'jetpack' ) ),
                    
63	public function admin_scripts( $hook ) {
                    
64		// This is still 'widgets.php' when managing widgets via the Customizer.
                    
65		if ( 'widgets.php' === $hook ) {
                    
83		if ( isset( $instance['title'] ) ) {
                    
84			/** This filter is documented in core/src/wp-includes/default-widgets.php */
                    
85			echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title'];
                    
239	public function get_docs_link( $hash = '' ) {
                    
240		if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
                    
241			$base_url = 'https://support.wordpress.com/widgets/twitter-timeline-widget/';
                    
                
File.php https://gitlab.com/rsilveira1987/Expresso | PHP | 473 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://framework.zend.com/license/new-bsd
                    
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
                    
13 * to license@zend.com so we can send you a copy immediately.
                    
14 *
                    
17 * @subpackage Storage
                    
18 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: File.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
21 */
                    
26 * @subpackage Storage
                    
27 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
28 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
                
eventapi.html.md https://gitlab.com/ggsaavedra/PredictionIO | Markdown | 412 lines
                    
20(usually less than 30 seconds) after HBase is started for its initialization to
                    
21complete before starting the Event Server.
                    
22
                    
23
                    
24Everything about PredictionIO can be done through the `pio` command. Please add
                    
25PIO binary command path to to your `PATH` first. Assuming PredictionIO is
                    
109  </div>
                    
110  <div data-tab="PHP SDK" data-lang="php">
                    
111```php
                    
177```java
                    
178(coming soon)
                    
179```
                    
204  </div>
                    
205  <div data-tab="PHP SDK" data-lang="php">
                    
206```php
                    
                
Advertiser.php https://bitbucket.org/blackriver/openx.git | PHP | 371 lines
                    
1<?php
                    
2
                    
30 * @subpackage Statistics
                    
31 * @author     Ivan Klishch <iklishch@lohika.com>
                    
32 *
                    
35// Required classes
                    
36require_once MAX_PATH . '/lib/OA/Dal/Statistics.php';
                    
37
                    
                
catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
                    
97
                    
98			if (is_array($recommendations) && isset($recommendations[$realProductId]))
                    
99			{
                    
136				{
                    
137					$recommendationId = $viewResult['RECOMMENDATION'];
                    
138				}
                    
148			'domain' => Context::getCurrent()->getServer()->getHttpHost(),
                    
149			'recommendation' => $recommendationId,
                    
150			'date' => date(DATE_ISO8601)
                    
180				"UPDATE ".$helper->quote('b_sale_basket')
                    
181				." SET RECOMMENDATION='".$helper->forSql($recommendationId)."' WHERE ID=".(int) $basketItem->getId()
                    
182			);
                    
394				'currency' => $row['CURRENCY'],
                    
395				'recommendation' => $row['RECOMMENDATION']
                    
396			);
                    
                
VarCloner.php https://gitlab.com/nzqadri/bejeep | PHP | 324 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * (c) Fabien Potencier <fabien@symfony.com>
                    
7 *
                    
11
                    
12namespace Symfony\Component\VarDumper\Cloner;
                    
13
                    
14/**
                    
15 * @author Nicolas Grekas <p@tchwork.com>
                    
16 */
                    
84                if ($zval['zval_isref']) {
                    
85                    $vals[$k] = &$stub;         // Break hard references to make $queue completely
                    
86                    unset($stub);               // independent from the original structure
                    
148                    case 'object':
                    
149                        if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) {
                    
150                            $stub = new Stub();
                    
                
Url.php https://bitbucket.org/alessandro-aglietti/itis-leonardo-da-vinci.git | PHP | 548 lines
                    
178     *
                    
179     * @param string $host Host to set (e.g. www.yahoo.com, yahoo.com)
                    
180     *
                    
301
                    
302        // Combine the normalized parts and add the leading slash if needed
                    
303        $this->path = ($this->path[0] == '/' ? '/' : '') . implode('/', $results);
                    
468    /**
                    
469     * Combine the URL with another URL. Follows the rules specific in RFC 3986 section 5.4.
                    
470     *
                    
470     *
                    
471     * @param string $url          Relative URL to combine with
                    
472     * @param bool   $strictRfc386 Set to true to use strict RFC 3986 compliance when merging paths. When first
                    
476     *                             "bar" would become "http://a.com/foo/bar". When this value is set to false, it would
                    
477     *                             become "http://a.com/foo/baz/bar".
                    
478     * @return Url
                    
                
ImageMagick.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 480 lines
                    
1<?php
                    
2/**
                    
112        $this->_imageHandler->setImageCompressionQuality($this->quality());
                    
113        $this->_imageHandler->setImageCompression(\Imagick::COMPRESSION_JPEG);
                    
114        $this->_imageHandler->setImageUnits(\Imagick::RESOLUTION_PIXELSPERINCH);
                    
170
                    
171        $newImage->compositeImage(
                    
172            $this->_imageHandler,
                    
237     * @throws \Exception
                    
238     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
239     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
304                    while ($offsetX <= $this->_imageSrcWidth + $watermark->getImageWidth()) {
                    
305                        $this->_imageHandler->compositeImage($watermark, \Imagick::COMPOSITE_OVER, $offsetX, $offsetY);
                    
306                        $offsetX += $watermark->getImageWidth();
                    
311            } else {
                    
312                $this->_imageHandler->compositeImage($watermark, \Imagick::COMPOSITE_OVER, $positionX, $positionY);
                    
313            }
                    
                
InstallSchema.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 407 lines
                    
1<?php
                    
2/**
                    
19     * {@inheritdoc}
                    
20     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
21     */
                    
60                'widget_code'
                    
61            )->setComment(
                    
62                'Preconfigured Widgets'
                    
78                            'primary' => true,
                    
79                            'comment' => 'Widget Id',
                    
80                        ],
                    
83                            'length' => '64K',
                    
84                            'comment' => 'Parameters',
                    
85                        ],
                    
86                    ],
                    
87                    'comment' => 'Preconfigured Widgets',
                    
88                ],
                    
                
Store.php https://gitlab.com/ntphuc/BackendFeedy | PHP | 707 lines
                    
1<?php
                    
2
                    
8use InvalidArgumentException;
                    
9use Symfony\Component\HttpFoundation\Request;
                    
10use Symfony\Component\HttpFoundation\Session\SessionBagInterface;
                    
10use Symfony\Component\HttpFoundation\Session\SessionBagInterface;
                    
11use Symfony\Component\HttpFoundation\Session\Storage\MetadataBag;
                    
12
                    
45     *
                    
46     * @var \Symfony\Component\HttpFoundation\Session\Storage\MetadataBag
                    
47     */
                    
150     *
                    
151     * @param  \Symfony\Component\HttpFoundation\Session\SessionBagInterface  $bag
                    
152     * @return void
                    
697     *
                    
698     * @param  \Symfony\Component\HttpFoundation\Request  $request
                    
699     * @return void
                    
                
ContributionPage.php https://github.com/michaelmcandrew/vaw.git | PHP | 354 lines
                    
1<?php
                    
2
                    
36
                    
37require_once 'CRM/Core/Form.php';
                    
38require_once 'CRM/Core/PseudoConstant.php';
                    
38require_once 'CRM/Core/PseudoConstant.php';
                    
39require_once 'CRM/Contribute/PseudoConstant.php';
                    
40
                    
115        // set up tabs
                    
116        require_once 'CRM/Contribute/Form/ContributionPage/TabHeader.php';
                    
117        CRM_Contribute_Form_ContributionPage_TabHeader::build( $this );
                    
132                $params = array('id' => $this->_id );
                    
133                CRM_Core_DAO::commonRetrieve( 'CRM_Contribute_DAO_ContributionPage', $params, $this->_values );
                    
134            }
                    
214                $params = array('id' => $this->_id );
                    
215                CRM_Core_DAO::commonRetrieve( 'CRM_Contribute_DAO_ContributionPage', $params, $this->_values );
                    
216            }
                    
                
Descarte.php https://gitlab.com/SFMSP/Hagape | PHP | 346 lines
                    
1<?php
                    
2
                    
17 * 
                    
18 * @autor Eduardo Praxedes Heinske <praxeduardo@gmail.com>
                    
19 */
                    
120        try {
                    
121            //Em caso de edição, verifica se o registro de fato pode ser alterado, de acordo com o seu status
                    
122            if (!empty($data['id'])) {
                    
231
                    
232            $this->getEm()->commit();
                    
233
                    
273                if ($delete) {
                    
274                    $this->getEm()->commit();
                    
275                    return true;
                    
335
                    
336            //Commita a transação
                    
337            $this->getEm()->commit();
                    
                
admin_review.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 501 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
2
                    
3require_once(APPPATH.'controllers/project.php');
                    
4
                    
122	
                    
123	public function send_comment(){
                    
124		
                    
133			"admin_review_date" => $review_date,
                    
134			"admin_review_content" => $this->input->post("comment_content"),
                    
135			"project_id" => $this->input->post("projid"),
                    
166				);
                    
167				$this->data["commentor"][$k] = $this->user_model->get_users($par2);
                    
168				
                    
168				
                    
169				$name = get_user_name($this->data["commentor"][$k]);
                    
170				$this->data["commentor"][$k][0]["fullname"] = $name;
                    
                
Resource.php https://github.com/rico/flextrine.git | PHP | 467 lines
                    
19 * @version    $Id: Resource.php 23568 2010-12-20 08:13:20Z mjh_ca $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 */
                    
44     */
                    
45    protected $_components = array();
                    
46
                    
155        if (count($segments) < 2) {
                    
156            // assumes all resources have a component and class name, minimum
                    
157            return false;
                    
164            $segment    = array_shift($segments);
                    
165            $component .= empty($component) ? $segment : '_' . $segment;
                    
166            if (isset($this->_components[$component])) {
                    
297        $component = $this->_resourceTypes[$type]['namespace'];
                    
298        $this->_components[$component] = $this->_resourceTypes[$type]['path'];
                    
299        return $this;
                    
                
File.php https://github.com/Riges/KawaiViewModel.git | PHP | 468 lines
                    
25 */
                    
26require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
30 */
                    
31require_once 'Zend/CodeGenerator/Php/Class.php';
                    
32
                    
38 */
                    
39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
                    
40{
                    
86        if ($fileName == '') {
                    
87            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
88            throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.');
                    
113            if ( ($realpath = Zend_Reflection_File::findRealpathInIncludePath($filePath)) === false) {
                    
114                require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
115                throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');
                    
                
index_002.php https://github.com/robert-fu-berlin/Exercises-Web-based-Information-Systems.git | PHP | 458 lines
                    
15  quicklink : false,
                    
16  quicklinkurl : 'http://maps.google.com/maps?ll={latdegdec},{londegdec}&spn={span},{span}&q={latdegdec},{londegdec}',
                    
17  enabled : true,
                    
21  coordurls : [
                    
22                'http://stable.toolserver.org/geohack/geohack.php?',
                    
23                'http://stable.ts.wikimedia.org/geohack/geohack.php?',
                    
23                'http://stable.ts.wikimedia.org/geohack/geohack.php?',
                    
24                'http://toolserver.org/~magnus/geo/geohack.php?',
                    
25                'http://toolserver.org/~geohack/geohack.php?',
                    
25                'http://toolserver.org/~geohack/geohack.php?',
                    
26                'http://tools.wikimedia.de/~magnus/geo/geohack.php?',
                    
27                'http://www8.brinkster.com/erikbaas/wiki/maps.asp?',
                    
30  buttonImage: 
                    
31'http://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/Erioll_world.svg/18px-Erioll_world.svg.png'
                    
32 },
                    
                
lang.php https://gitlab.com/gideonmarked/atls-express | PHP | 326 lines
                    
40    ],
                    
41    'combiner' => [
                    
42        'not_found' => "Kombinationsfilen ':name' kunde ej hittas",
                    
94        'no_plugins' => 'Det finns inga tillägg installerade från marknadsplatsen.',
                    
95        'recommended' => 'Rekommenderat',
                    
96        'remove' => 'Ta bort',
                    
141        'sender_email' => 'Avsändarens e-postadress',
                    
142        'php_mail' => 'PHP mail',
                    
143        'smtp' => 'SMTP',
                    
156        'sendmail_path' => 'Sendmail-sökväg',
                    
157        'sendmail_path_comment' => 'Vänligen ange sökvägen till sendmail',
                    
158        'mailgun' => 'Mailgun',
                    
161        'mailgun_secret' => 'Mailgun hemlighet',
                    
162        'mailgun_secret_comment' => 'Ange din Mailgun API-nyckel.',
                    
163        'mandrill' => 'Mandrill',
                    
                
Inflector.php https://github.com/grandison/budo16.git | PHP | 506 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://framework.zend.com/license/new-bsd
                    
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
                    
13 * to license@zend.com so we can send you a copy immediately.
                    
14 *
                    
16 * @package    Zend_Filter
                    
17 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Inflector.php 17705 2009-08-21 07:50:57Z thomas $
                    
20 */
                    
25 */
                    
26// require_once 'Zend/Filter.php';
                    
27
                    
                
about.html https://gitlab.com/adrian.io/ide | HTML | 275 lines
                    
34
                    
35<p>This plugin is based on software developed by the Apache HttpComponents project at <a href="http://hc.apache.org/">http://hc.apache.org/</a>.
                    
36A copy of this library is distributed within this plugin and
                    
43
                    
44<p>This plugin is based on software developed by the Apache Commons Codec project at <a href="http://jakarta.apache.org/commons/codec/">http://jakarta.apache.org/commons/codec/</a>.
                    
45A copy of this library is distributed within this plugin and
                    
52
                    
53<p>This plugin is based on software developed by the Apache Commons Codec project at <a href="http://jakarta.apache.org/commons/logging/">http://jakarta.apache.org/commons/logging/</a>.
                    
54A copy of this library is distributed within this plugin and
                    
88      "Legal Entity" shall mean the union of the acting entity and all
                    
89      other entities that control, are controlled by, or are under common
                    
90      control with that entity. For the purposes of this definition,
                    
108      transformation or translation of a Source form, including but
                    
109      not limited to compiled object code, generated documentation,
                    
110      and conversions to other media types.
                    
                
web.php https://github.com/XioNoX/Benevolus.git | PHP | 509 lines
                    
1<?php
                    
2
                    
11	Copyright (c) 2009-2011 F3::Factory
                    
12	Bong Cosca <bong.cosca@yahoo.com>
                    
13
                    
43	/**
                    
44		Strip Javascript/CSS files of extraneous whitespaces and comments;
                    
45		Return combined output as a minified string
                    
154					elseif ($src[$ptr+1]=='*') {
                    
155						// Multiline comment
                    
156						$str=strstr(substr($src,$ptr+2),'*/',TRUE);
                    
205		if ($echo) {
                    
206			if (PHP_SAPI!='cli' && !headers_sent())
                    
207				header(self::HTTP_Content.': '.$mime[$ext[1]].'; '.
                    
295				self::HTTP_Agent.': Mozilla/5.0 '.
                    
296					'(compatible;'.PHP_OS.')'.self::EOL.
                    
297				($reqhdrs?
                    
                
pearcmd.php https://github.com/ianbogda/FileZ.git | PHP | 445 lines
                    
55PEAR_Command::setFrontendType('CLI');
                    
56$all_commands = PEAR_Command::getCommands();
                    
57
                    
274    $short_args = $long_args = null;
                    
275    PEAR_Command::getGetoptArgs($command, $short_args, $long_args);
                    
276    array_shift($options[1]);
                    
306    if ($ok === false) {
                    
307        PEAR::raiseError("unknown command `$command'");
                    
308    }
                    
381
                    
382    } elseif ($help = PEAR_Command::getHelp($command)) {
                    
383        if (is_string($help)) {
                    
393
                    
394    return "Command '$command' is not valid, try '$progname help'";
                    
395}
                    
                
Resource.php https://github.com/ianbogda/FileZ.git | PHP | 467 lines
                    
19 * @version    $Id: Resource.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 */
                    
44     */
                    
45    protected $_components = array();
                    
46
                    
155        if (count($segments) < 2) {
                    
156            // assumes all resources have a component and class name, minimum
                    
157            return false;
                    
164            $segment    = array_shift($segments);
                    
165            $component .= empty($component) ? $segment : '_' . $segment;
                    
166            if (isset($this->_components[$component])) {
                    
297        $component = $this->_resourceTypes[$type]['namespace'];
                    
298        $this->_components[$component] = $this->_resourceTypes[$type]['path'];
                    
299        return $this;
                    
                
upgrade_slims8_akasia.sql.php https://gitlab.com/mucill/sman7 | PHP | 269 lines
                    
1<?php
                    
2
                    
50(9, 'computer card', 'ck', 'k', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
                    
51(10, 'computer chip cartridge', 'cb', 'b', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
                    
52(11, 'computer disc', 'cd', 'd', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
                    
52(11, 'computer disc', 'cd', 'd', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
                    
53(12, 'computer disc cartridge', 'ce', 'e', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
                    
54(13, 'computer tape cartridge', 'ca', 'a', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
                    
54(13, 'computer tape cartridge', 'ca', 'a', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
                    
55(14, 'computer tape cassette', 'cf', 'f', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
                    
56(15, 'computer tape reel', 'ch', 'h', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
                    
57(16, 'online resource', 'cr', 'r', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
                    
58(17, 'other (computer)', 'cz', 'z', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
                    
59(18, 'aperture card', 'ha', 'a', '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
                    
                
auth_tkt.py https://bitbucket.org/eaviles/gobierno.git | Python | 380 lines
                    
1# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
                    
2# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
                    
3##########################################################################
                    
27Implementation of cookie signing as done in `mod_auth_tkt
                    
28<http://www.openfusion.com.au/labs/mod_auth_tkt/>`_.
                    
29
                    
30mod_auth_tkt is an Apache module that looks for these signed cookies
                    
31and sets ``REMOTE_USER``, ``REMOTE_USER_TOKENS`` (a comma-separated
                    
32list of groups) and ``REMOTE_USER_DATA`` (arbitrary string data).
                    
34This module is an alternative to the ``paste.auth.cookie`` module;
                    
35it's primary benefit is compatibility with mod_auth_tkt, which in turn
                    
36makes it possible to use the same authentication process with
                    
59    generate the appropriate authentication ticket.  .cookie()
                    
60    generates a Cookie object, the str() of which is the complete
                    
61    cookie header to be sent.
                    
                
MaildirFolderTest.php https://github.com/obias/zf2.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://framework.zend.com/license/new-bsd
                    
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
                    
13 * to license@zend.com so we can send you a copy immediately.
                    
14 *
                    
17 * @subpackage UnitTests
                    
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
                    
32 * @subpackage UnitTests
                    
33 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
34 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
36 */
                    
37class MaildirFolderTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
                
ac28db01878361e31b02909532d9.php https://bitbucket.org/AdriVanHoudt/school.git | PHP | 230 lines
                    
1<?php
                    
2
                    
209            echo "        <p>
                    
210            <em>The security component is disabled</em>
                    
211        </p>
                    
                
SqlBase.php https://gitlab.com/andecode/theme-spark | PHP | 415 lines
                    
1<?php
                    
2
                    
10use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
                    
11use Symfony\Component\DependencyInjection\ContainerInterface;
                    
12
                    
13/**
                    
14 * A common base class for sql based pager.
                    
15 */
                    
117      '#title' => $this->t('Pager ID'),
                    
118      '#description' => $this->t("Unless you're experiencing problems with pagers related to this view, you should leave this at 0. If using multiple pagers on one page you may need to set this number to a higher value so as not to conflict within the ?page= array. Large values will add a lot of commas to your URLs, so avoid if possible."),
                    
119      '#default_value' => $this->options['id'],
                    
180      '#required' => TRUE,
                    
181      '#description' => $this->t('Set between which values the user can choose when determining the items per page. Separated by comma.'),
                    
182      '#default_value' => $this->options['expose']['items_per_page_options'],
                    
244    if ($error) {
                    
245      $form_state->setErrorByName('pager_options][expose][items_per_page_options', $this->t('Insert a list of integer numeric values separated by commas: e.g: 10, 20, 50, 100'));
                    
246    }
                    
                
class-wp-terms-list-table.php https://bitbucket.org/akeda/bmw-id-hris.git | PHP | 454 lines
                    
1<?php
                    
2/**
                    
94		$this->set_pagination_args( array(
                    
95			'total_items' => wp_count_terms( $this->screen->taxonomy, compact( 'search' ) ),
                    
96			'per_page' => $tags_per_page,
                    
298		if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term )
                    
299			$actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url( "edit-tags.php?action=delete&amp;taxonomy=$taxonomy&amp;tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>";
                    
300		if ( $tax->public )
                    
331
                    
332		/** This filter is documented in wp-admin/edit-tag-form.php */
                    
333		$out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug ) . '</div>';
                    
343	function column_slug( $tag ) {
                    
344		/** This filter is documented in wp-admin/edit-tag-form.php */
                    
345		return apply_filters( 'editable_slug', $tag->slug );
                    
366		if ( 'attachment' == $this->screen->post_type )
                    
367			return "<a href='" . esc_url ( add_query_arg( $args, 'upload.php' ) ) . "'>$count</a>";
                    
368
                    
                
CakeRoute.php https://github.com/simkimsia/cake2-practice-app.git | PHP | 506 lines
                    
1<?php
                    
2/**
                    
10 *
                    
11 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
12 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
17 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
18 * @link          http://cakephp.org CakePHP(tm) Project
                    
19 * @package       Cake.Routing.Route
                    
20 * @since         CakePHP(tm) v 1.3
                    
21 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
22 */
                    
108	public function compile() {
                    
109		if ($this->compiled()) {
                    
110			return $this->_compiledRoute;
                    
455 * @param array $params The params to convert to a string url.
                    
456 * @return string Composed route string.
                    
457 */
                    
                
CookieJar.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 441 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://framework.zend.com/license/new-bsd
                    
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
                    
13 * to license@zend.com so we can send you a copy immediately.
                    
14 *
                    
17 * @subpackage CookieJar
                    
18 * @version    $Id: CookieJar.php 24856 2012-06-01 01:10:47Z adamlundrigan $
                    
19 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 */
                    
25 */
                    
26require_once "Zend/Uri.php";
                    
27/**
                    
                
StorageServiceSettings.php https://bitbucket.org/skudatech/azure-sdk-for-php.git | PHP | 485 lines
                    
18 * @package   WindowsAzure\Common\Internal
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright 2012 Microsoft Corporation
                    
21 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
22 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
23 */
                    
31 * service. For more information about storage service connection strings check this
                    
32 * page: http://msdn.microsoft.com/en-us/library/ee758697
                    
33 *
                    
35 * @package   WindowsAzure\Common\Internal
                    
36 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
37 * @copyright 2012 Microsoft Corporation
                    
39 * @version   Release: @package_version@
                    
40 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
41 */
                    
                
ps_perm.php https://github.com/Shigaru/shigaru.git | PHP | 461 lines
                    
1<?php
                    
2if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
                    
4*
                    
5* @version $Id: ps_perm.php 1818 2009-06-23 19:07:21Z soeren_nb $
                    
6* @package VirtueMart
                    
8* @copyright Copyright (C) 2004-2009 soeren - All rights reserved.
                    
9* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
                    
10* VirtueMart is free software. This version may have been modified pursuant
                    
13* other free or open source software licenses.
                    
14* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
                    
15*
                    
179		
                    
180		// Parse all permissions in argument, comma separated
                    
181		// It is assumed auth_user only has one group per user.
                    
371	* This is a temporary function to allow 3PD's to add basic ACL checks for their
                    
372	* modules and components.  NOTE: this information will be compiled in the db
                    
373	* in future versions
                    
                
UpgradeComponentGroup.php https://github.com/orchestra-io/sample-openx.git | PHP | 320 lines
                    
54
                    
55        $pluginPath = $this->oComponentGroupManager->getPathToComponentGroup($this->aComponentGroup['name']);
                    
56        $this->upgradePath      = $pluginPath.'etc/changes/';
                    
77        $this->oLogger->logClear();
                    
78        $this->oLogger->logOnly('Compiling details of currently installed '.$this->aComponentGroup['name']);
                    
79        $skipIntegrityCheck = true;
                    
136                $aSchema['name']    = $schemaName;
                    
137                $aSchema['schemaOld'] = MAX_PATH.$this->oComponentGroupManager->pathPackages.$this->aComponentGroup['name'].'/etc/changes/schema_tables_'.$this->aComponentGroup['name'].'_'.$this->versionInitialSchema[$schemaName].'.xml';
                    
138                if (!$this->_checkDBIntegrity($this->versionInitialSchema[$schemaName], $aSchema))
                    
274        return $this->oComponentGroupManager->_unregisterSettings($this->aComponentGroup['name'],false)
                    
275            && $this->oComponentGroupManager->_registerSettings($this->aComponentGroup['name'], $aSettingsNew);
                    
276    }
                    
305            // insert
                    
306            $this->oComponentGroupManager->_registerPreferences($this->aComponentGroup['name'], $aPrefsNew);
                    
307        }
                    
                
Command.php https://github.com/esimionato/mongodb-odm.git | PHP | 512 lines
                    
2
                    
3namespace Symfony\Component\Console\Command;
                    
4
                    
108     *
                    
109     * This is mainly useful when a lot of commands extends one main command
                    
110     * where some things need to be initialized based on the input arguments and options.
                    
460        if ($this->getAliases()) {
                    
461            $messages[] = '<comment>Aliases:</comment> <info>'.implode(', ', $this->getAliases()).'</info>';
                    
462        }
                    
466        if ($help = $this->getProcessedHelp()) {
                    
467            $messages[] = '<comment>Help:</comment>';
                    
468            $messages[] = ' '.implode("\n ", explode("\n", $help))."\n";
                    
484        $dom->formatOutput = true;
                    
485        $dom->appendChild($commandXML = $dom->createElement('command'));
                    
486        $commandXML->setAttribute('id', $this->getFullName());
                    
                
edit.php https://github.com/thisduck/wordpress.git | PHP | 294 lines
                    
16
                    
17// Back-compat for viewing comments of an entry
                    
18if ( $_redirect = intval( max( @$_REQUEST['p'], @$_REQUEST['attachment_id'], @$_REQUEST['page_id'] ) ) ) {
                    
18if ( $_redirect = intval( max( @$_REQUEST['p'], @$_REQUEST['attachment_id'], @$_REQUEST['page_id'] ) ) ) {
                    
19	wp_redirect( admin_url('edit-comments.php?p=' . $_redirect ) );
                    
20	exit;
                    
113	$parent_file = "edit.php?post_type=$post_type";
                    
114	$submenu_file = "edit.php?post_type=$post_type";
                    
115	$post_new_file = "post-new.php?post_type=$post_type";
                    
163<?php screen_icon(); ?>
                    
164<h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="button add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php
                    
165if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
                    
170if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?>
                    
171<div id="message" class="updated"><p><strong><?php _e('This has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_REQUEST['posted'] ); ?>"><?php _e('View Post'); ?></a> | <a href="<?php echo get_edit_post_link( $_REQUEST['posted'] ); ?>"><?php _e('Edit Post'); ?></a></p></div>
                    
172<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
                    
                
TestData.php https://github.com/orchestra-io/sample-openx.git | PHP | 301 lines
                    
33require_once MAX_PATH . '/lib/OA/Dll.php';
                    
34require_once MAX_PATH . '/lib/max/Dal/Common.php';
                    
35require_once MAX_PATH . '/lib/OA/Dal/DataGenerator.php';
                    
131        $doCampaigns->companion    = 0;                       // int(1)
                    
132        $doCampaigns->comments    = '';                        // blob(65535)  blob
                    
133        $doCampaigns->revenue    = 0;                         // unknown(12)
                    
244        $doBanners->htmltemplate    = "<script type='text/javascript'><!--//<![CDATA[
                    
245   var m3_u = (location.protocol=='https:'?'https://ads.openx.org/delivery/ajs.php':'http://ads.openx.org/delivery/ajs.php');
                    
246   var m3_r = Math.floor(Math.random()*99999999999);
                    
257   document.write (\"'><\\/scr\"+\"ipt>\");
                    
258//]]>--></script><noscript><a href='http://ads.openx.org/delivery/ck.php?n=abc986b1&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://ads.openx.org/delivery/avw.php?zoneid=9&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=abc986b1' border='0' alt='' /></a></noscript>";
                    
259
                    
260        $doBanners->htmlcache    = "<script type='text/javascript'><!--//<![CDATA[
                    
261   var m3_u = (location.protocol=='https:'?'https://ads.openx.org/delivery/ajs.php':'http://ads.openx.org/delivery/ajs.php');
                    
262   var m3_r = Math.floor(Math.random()*99999999999);
                    
                
view.html.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 496 lines
                    
1<?php
                    
2/**
                    
3 * @package     Joomla.Site
                    
4 * @subpackage  com_contact
                    
5 *
                    
12/**
                    
13 * HTML Contact View class for the Contact component
                    
14 *
                    
75		// Get submitted values
                    
76		$data = $app->getUserState('com_contact.contact.data', array());
                    
77
                    
80
                    
81		$app->setUserState('com_contact.contact.data', $data);
                    
82
                    
182				// Text
                    
183				$item->params->set('marker_address',   JText::_('COM_CONTACT_ADDRESS') . ': ');
                    
184				$item->params->set('marker_email',     JText::_('JGLOBAL_EMAIL') . ': ');
                    
                
Ntp.php https://github.com/Exercise/zf2.git | PHP | 434 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://framework.zend.com/license/new-bsd
                    
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
                    
13 * to license@zend.com so we can send you a copy immediately.
                    
14 *
                    
16 * @package   Zend_TimeSync
                    
17 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
34 * @package   Zend_TimeSync
                    
35 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
36 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
                
lang.php https://gitlab.com/michield/dokuwiki | PHP | 188 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * @author Sandor TIHANYI <stihanyi+dw@gmail.com>
                    
6 * @author Siaynoq Mage <siaynoqmage@gmail.com>
                    
6 * @author Siaynoq Mage <siaynoqmage@gmail.com>
                    
7 * @author schilling.janos@gmail.com
                    
8 * @author Szabó Dávid <szabo.david@gyumolcstarhely.hu>
                    
8 * @author Szabó Dávid <szabo.david@gyumolcstarhely.hu>
                    
9 * @author Sándor TIHANYI <stihanyi+dw@gmail.com>
                    
10 * @author David Szabo <szabo.david@gyumolcstarhely.hu>
                    
56$lang['htmlok']                = 'Beágyazott HTML engedélyezése';
                    
57$lang['phpok']                 = 'Beágyazott PHP engedélyezése';
                    
58$lang['dformat']               = 'Dátum formázás (lásd a PHP <a href="http://www.php.net/strftime">strftime</a> függvényt)';
                    
99$lang['autoplural']            = 'Többes szám ellenőrzés a hivatkozásokban (angol)';
                    
100$lang['compression']           = 'Tömörítés használata a törölt lapokhoz';
                    
101$lang['cachetime']             = 'A gyorsítótár maximális élettartama (másodperc)';
                    
                
tcp_cubic.c https://gitlab.com/karrei/imx6-kernel | C | 497 lines
                    
19 * All testing results are available from:
                    
20 * http://netsrv.csc.ncsu.edu/wiki/index.php/TCP_Testing
                    
21 *
                    
60
                    
61/* Note parameters that are used for precomputing scale factors are read-only */
                    
62module_param(fast_convergence, int, 0644);
                    
164	 * cbrt(x) MSB values for x MSB values in [0..63].
                    
165	 * Precomputed then refined by hand - Willy Tarreau
                    
166	 *
                    
204/*
                    
205 * Compute congestion window to use.
                    
206 */
                    
229		} else {
                    
230			/* Compute new K based on
                    
231			 * (wmax-cwnd) * (srtt>>3 / HZ) / c * 2^(3*bictcp_HZ)
                    
                
acpiphp_ibm.c https://gitlab.com/karrei/imx6-kernel | C | 487 lines
                    
39
                    
40#include "acpiphp.h"
                    
41#include "../pci.h"
                    
43#define DRIVER_VERSION	"1.0.1"
                    
44#define DRIVER_AUTHOR	"Irene Zubarev <zubarev@us.ibm.com>, Vernon Mauery <vernux@us.ibm.com>"
                    
45#define DRIVER_DESC	"ACPI Hot Plug PCI Controller Driver IBM extension"
                    
167 *
                    
168 * Description: This method is registered with the acpiphp module as a
                    
169 * callback to do the device specific task of setting the LED status.
                    
242 *
                    
243 * The events actually come from the device as two events that get
                    
244 * synthesized into one event with data by this function.  The event
                    
244 * synthesized into one event with data by this function.  The event
                    
245 * ID comes first and then the slot number that caused it.  We report
                    
246 * this as one event to the OS.
                    
                
File.php https://gitlab.com/devtoannh/cafe | PHP | 468 lines
                    
25 */
                    
26require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
30 */
                    
31require_once 'Zend/CodeGenerator/Php/Class.php';
                    
32
                    
38 */
                    
39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
                    
40{
                    
86        if ($fileName == '') {
                    
87            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
88            throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.');
                    
113            if ( ($realpath = Zend_Reflection_file::findRealpathInIncludePath($filePath)) === false) {
                    
114                require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
115                throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');
                    
                
hostkreskoweczki.py https://gitlab.com/Ghoz/iptvplayer-for-e2 | Python | 318 lines
                    
4###################################################
                    
5from Plugins.Extensions.IPTVPlayer.components.iptvplayerinit import TranslateTXT as _, SetIPTVPlayerLastHostError
                    
6from Plugins.Extensions.IPTVPlayer.components.ihost import CHostBase, CBaseHostClass, CDisplayListItem, RetHost, CUrlItem, ArticleContent
                    
7from Plugins.Extensions.IPTVPlayer.tools.iptvtools import printDBG, printExc, CSearchHistoryHelper, GetDefaultLang, remove_html_markup, GetLogoDir, GetCookieDir, byteify
                    
8from Plugins.Extensions.IPTVPlayer.libs.pCommon import common, CParsingHelper
                    
9import Plugins.Extensions.IPTVPlayer.libs.urlparser as urlparser
                    
24except Exception: import simplejson as json
                    
25from Components.config import config, ConfigSelection, ConfigYesNo, ConfigText, getConfigListEntry
                    
26###################################################
                    
29###################################################
                    
30# E2 GUI COMMPONENTS 
                    
31###################################################
                    
31###################################################
                    
32from Plugins.Extensions.IPTVPlayer.components.asynccall import MainSessionWrapper
                    
33from Screens.MessageBox import MessageBox
                    
                
WizardController.php https://bitbucket.org/chung/buyforher.git | PHP | 464 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
                    
12 * obtain it through the world-wide-web, please send an email
                    
13 * to license@magentocommerce.com so we can send you a copy immediately.
                    
14 *
                    
18 * versions in the future. If you wish to customize Magento for your
                    
19 * needs please refer to http://www.magentocommerce.com for more information.
                    
20 *
                    
22 * @package     Mage_Install
                    
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)
                    
236        $pear = Varien_Pear::getInstance();
                    
237        $params = array('comment'=>Mage::helper('install')->__("Downloading and installing Magento, please wait...") . "\r\n\r\n");
                    
238        if ($this->getRequest()->getParam('do')) {
                    
                
EditView.php https://github.com/lukio/sugarcrm_dev.git | PHP | 349 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
3/*********************************************************************************
                    
4 * SugarCRM Community Edition is a customer relationship management program developed by
                    
5 * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
                    
24 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
                    
25 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
                    
26 * 
                    
45
                    
46require_once('modules/Campaigns/utils.php');
                    
47
                    
106}else{
                    
107	$params[] = "<a href='index.php?module={$focus->module_dir}&action=DetailView&record={$focus->id}'>{$focus->name}</a>";
                    
108	$params[] = $GLOBALS['app_strings']['LBL_EDIT_BUTTON_LABEL'];
                    
166//Assign qsd script
                    
167require_once('include/QuickSearchDefaults.php');
                    
168$qsd = new QuickSearchDefaults();
                    
                
TextArea.php https://gitlab.com/ElvisAns/tiki | PHP | 377 lines
                    
1<?php
                    
2
                    
4//
                    
5// All Rights Reserved. See copyright.txt for details and a complete list of authors.
                    
6// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
                    
310                ;
                    
311            // convert incoming html to wiki syntax and the opposite on export
                    
312            $schema->addNew($permName, 'wiki-html')
                    
330                ->setReadOnly(true)
                    
331                ->addIncompatibility($permName, 'current')
                    
332                ->addQuerySource('text', "{$baseKey}_{$lang}_raw")
                    
340                    ->addQuerySource('text', "{$baseKey}_{$lang}_raw")
                    
341                    ->addIncompatibility($permName, 'current')
                    
342                    ->addIncompatibility($permName, 'current-raw')
                    
347                    ->addQuerySource('text', "{$baseKey}_{$lang}_raw")
                    
348                    ->addIncompatibility($permName, 'current')
                    
349                    ->addIncompatibility($permName, 'current-raw')
                    
                
Resource.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 467 lines
                    
19 * @version    $Id: Resource.php 23567 2010-12-20 08:12:16Z mjh_ca $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 */
                    
44     */
                    
45    protected $_components = array();
                    
46
                    
155        if (count($segments) < 2) {
                    
156            // assumes all resources have a component and class name, minimum
                    
157            return false;
                    
164            $segment    = array_shift($segments);
                    
165            $component .= empty($component) ? $segment : '_' . $segment;
                    
166            if (isset($this->_components[$component])) {
                    
297        $component = $this->_resourceTypes[$type]['namespace'];
                    
298        $this->_components[$component] = $this->_resourceTypes[$type]['path'];
                    
299        return $this;
                    
                
Editor.php https://github.com/adaykin/zf2.git | PHP | 601 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://framework.zend.com/license/new-bsd
                    
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
                    
13 * to license@zend.com so we can send you a copy immediately.
                    
14 *
                    
17 * @subpackage Form_Element
                    
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
                    
36 * @subpackage Form_Element
                    
37 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
38 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
                
Configuration.php https://github.com/sellingsource/symfony.git | PHP | 362 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * (c) Fabien Potencier <fabien@symfony.com>
                    
7 *
                    
13
                    
14use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
                    
15use Symfony\Component\Config\Definition\Builder\TreeBuilder;
                    
15use Symfony\Component\Config\Definition\Builder\TreeBuilder;
                    
16use Symfony\Component\Config\Definition\ConfigurationInterface;
                    
17
                    
20 *
                    
21 * @author Jeremy Mikola <jmikola@gmail.com>
                    
22 */
                    
39     *
                    
40     * @return \Symfony\Component\Config\Definition\Builder\TreeBuilder The tree builder
                    
41     */
                    
                
permissions.inc.php https://github.com/martinf55/revolution.git | PHP | 193 lines
                    
1<?php
                    
2/**
                    
21$_lang['perm.class_map_desc'] = 'Eine Liste von Klassen in der Klassen-Map anzeigen.';
                    
22$_lang['perm.components_desc'] = 'Das Komponenten-Menü anzeigen.';
                    
23$_lang['perm.content_types_desc'] = 'Die Inhaltstypen-Seite anzeigen und benutzen.';
                    
                
cpanel.php https://github.com/andrewgs/practice-book.ru.git | PHP | 320 lines
                    
64								<div class="floated">
                    
65									<img src="<?=$baseurl;?>companylogo/viewimage/<?=$company['cmp_id'];?>" alt=""/>
                    
66									<div class="company-rate">авторитет: <?=$company['cmp_rating'];?></div>
                    
66									<div class="company-rate">авторитет: <?=$company['cmp_rating'];?></div>
                    
67									<div class="company-rate-graph" style="width:<?=$company['cmp_graph'];?>px;">&nbsp;</div>
                    
68								</div>
                    
68								</div>
                    
69								<div class="company-name"><?=$company['cmp_name'];?></div>
                    
70								<div class="company-text"><?=$company['cmp_description'];?></div>
                    
71								<div style="clear:both"></div>
                    
72								<div class="company-data"><span class="text">Юридическое лицо: </span><?=$company['cmp_urface'];?></div>
                    
73								<div class="company-data"><span class="text">Юридический адрес: </span><?=$company['cmp_uraddress'];?></div>
                    
79								<div class="company-data"><span class="text">Сайт компании: </span>
                    
80									<?=anchor($company['cmp_site'],$company['cmp_site'],array('target'=>'_blank'));?>
                    
81								</div>
                    
                
Pager.php https://bitbucket.org/areeves42/openfisma.git | PHP | 576 lines
                    
1<?php
                    
2/*
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
24 *
                    
25 * @author      Guilherme Blanco <guilhermeblanco@hotmail.com>
                    
26 * @package     Doctrine
                    
27 * @subpackage  Pager
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @version     $Revision$
                    
29 * @version     $Revision$
                    
30 * @link        www.phpdoctrine.org
                    
31 * @since       0.9
                    
                
index.php https://github.com/tlezotte/HCR.git | PHP | 342 lines
                    
57  <link href="/Common/Print.css" rel="stylesheet" type="text/css" media="print">
                    
58  <link href="/Common/company.css" rel="stylesheet" type="text/css" media="screen">
                    
59  <link href="../../default.css" type="text/css" charset="UTF-8" rel="stylesheet">
                    
79    <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
                    
80    <img src="/Common/images/companyPrint.gif" alt="your company" name="Print" width="437" height="61" id="Print" />
                    
81	<div id="noPrint">
                    
84        <tr>
                    
85          <td valign="top"><a href="../../index.php"><img name="company" src="/Common/images/company.gif" width="300" height="50" border="0" alt="<?= $language['label']['title1']; ?> Home"></a></td>
                    
86          <td align="right" valign="top">
                    
177				  ?>
                    
178				  <div align="right" class="FieldNumberDisabled"><strong><?= $language['label']['welcome']; ?> <a href="../../Administration/user_information.php" class="FieldNumberDisabled" <?php help('', 'Edit your user information', 'default'); ?>><?= ucwords(strtolower($_SESSION['fullname'])); ?></a></strong>&nbsp;&nbsp;<a href="../../logout.php" class="FieldNumberDisabled" <?php help('', 'Selecting [logout] will Log you out of the '.$default[title1].' and stop automatic cookie login', 'default'); ?>>[logout]</a>&nbsp;</div>
                    
179				  <?php
                    
310              <tr>
                    
311                <td width="50%" nowrap><!-- InstanceBeginEditable name="copyright" --><?php include('../include/copyright.php'); ?><!-- InstanceBeginEditable --></td>
                    
312                <td width="50%"><div id="noPrint" align="right"><!-- InstanceBeginEditable name="version" --><!-- InstanceEndEditable --></div></td>
                    
                
tbl_replace.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 414 lines
                    
7 *
                    
8 * @version $Id: tbl_replace.php 12245 2009-02-23 08:36:34Z lem9 $
                    
9 *
                    
54 */
                    
55require_once './libraries/common.inc.php';
                    
56
                    
103} elseif (! empty($GLOBALS['goto'])) {
                    
104    if (! preg_match('@^[a-z_]+\.php$@', $GLOBALS['goto'])) {
                    
105        // this should NOT happen
                    
110    }
                    
111    if ($GLOBALS['goto'] == 'db_sql.php' && strlen($GLOBALS['table'])) {
                    
112        $GLOBALS['table'] = '';
                    
127} else {
                    
128    $err_url = 'tbl_change.php' . PMA_generate_common_url($url_params);
                    
129}
                    
                
Move.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 364 lines
                    
53/**
                    
54 * Subversion Move command manager class
                    
55 *
                    
86 *                           "BASE"       base rev of item's working copy
                    
87 *                           "COMMITTED"  last commit at or before BASE
                    
88 *                           "PREV"       revision just before COMMITTED',
                    
112 * <code>
                    
113 * <?php
                    
114 * require_once 'VersionControl/SVN.php';
                    
193     * See {@link http://svnbook.red-bean.com/svnbook/ Version Control with Subversion}, 
                    
194     * Subversion Complete Reference for details on arguments for this subcommand.
                    
195     * @var     int
                    
202     * See {@link http://svnbook.red-bean.com/svnbook/ Version Control with Subversion}, 
                    
203     * Subversion Complete Reference for details on arguments for this subcommand.
                    
204     * @var     array
                    
                
admin.php https://github.com/Brucee/pyrocms.git | PHP | 562 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2/**
                    
74			array(
                    
75				'field' => 'comments_enabled',
                    
76				'label'	=> 'lang:pages.comments_enabled_label',
                    
496	 * @access public
                    
497	 * @param int $id_1 The ID of the first revision to compare
                    
498	 * @param int $id_2 The ID of the second revision to compare
                    
500	 */
                    
501	public function compare($id_1, $id_2)
                    
502	{
                    
505		$rev_2 = $this->versioning->get_by_revision($id_2);
                    
506		$diff  = $this->versioning->compare_revisions($rev_1->body, $rev_2->body, 'mixed');
                    
507
                    
510		$this->template->set_layout('modal', 'admin')
                    
511				->build('admin/revisions/compare', $data);
                    
512	}
                    
                
zone.php https://bitbucket.org/sandeepbhaskar/inspiredliving.git | PHP | 441 lines
                    
1<?php 
                    
2class ControllerLocalisationZone extends Controller {
                    
149       		'text'      => $this->language->get('text_home'),
                    
150			'href'      => $this->url->link('common/home', 'token=' . $this->session->data['token'], 'SSL'),
                    
151      		'separator' => false
                    
259		$this->children = array(
                    
260			'common/header',
                    
261			'common/footer'
                    
310       		'text'      => $this->language->get('text_home'),
                    
311			'href'      => $this->url->link('common/home', 'token=' . $this->session->data['token'], 'SSL'),  		
                    
312      		'separator' => false
                    
370		$this->children = array(
                    
371			'common/header',
                    
372			'common/footer'
                    
                
File.php https://github.com/Enrise/Zend.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://framework.zend.com/license/new-bsd
                    
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
                    
13 * to license@zend.com so we can send you a copy immediately.
                    
14 *
                    
17 * @subpackage Storage
                    
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
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: File.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
26 * @subpackage Storage
                    
27 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
28 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
                
UploadHandler.php https://github.com/zikula-modules/Reviews.git | PHP | 404 lines
                    
1<?php
                    
2/**
                    
7 * @package Reviews
                    
8 * @author Michael Ueberschaer <kontakt@webdesign-in-bremen.com>.
                    
9 * @link http://webdesign-in-bremen.com
                    
45        $this->imageFileTypes = array('gif', 'jpeg', 'jpg', 'png', 'swf');
                    
46        $this->forbiddenFileTypes = array('cgi', 'pl', 'asp', 'phtml', 'php', 'php3', 'php4', 'php5', 'exe', 'com', 'bat', 'jsp', 'cfm', 'shtml');
                    
47        $this->allowedFileSizes = array('review' => array('coverUpload' => 102400));
                    
252     *
                    
253     * It considers different strategies for computing the result.
                    
254     *
                    
325                break;
                    
326            case UPLOAD_ERR_INI_SIZE: //uploaded file exceeds the upload_max_filesize directive in php.ini
                    
327                $errmsg = __('File too big', $dom);
                    
                
date.php https://github.com/chemila/kohana.git | PHP | 566 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
28	 * Timezone for formatted_time
                    
29	 * @link http://uk2.php.net/manual/en/timezones.php
                    
30	 * @var  string
                    
39	 *
                    
40	 * [!!] A list of time zones that PHP supports can be found at
                    
41	 * <http://php.net/timezones>.
                    
318		// Convert the list of outputs to an associative array
                    
319		$output = array_combine($output, array_fill(0, count($output), 0));
                    
320
                    
548	 *
                    
549	 * @see     http://php.net/manual/en/datetime.construct.php
                    
550	 * @param   string  datetime_str     datetime string
                    
                
editar_factura_prov.php https://gitlab.com/cosouth.battle/sartinofi | PHP | 434 lines
                    
1<?php
                    
2
                    
4require_model('asiento_factura.php');
                    
5require_model('divisa.php');
                    
6require_model('fabricante.php');
                    
6require_model('fabricante.php');
                    
7require_model('forma_pago.php');
                    
8require_model('proveedor.php');
                    
8require_model('proveedor.php');
                    
9require_model('recibo_proveedor.php');
                    
10
                    
24   {
                    
25      parent::__construct(__CLASS__, 'editar factura', 'compras', FALSE, FALSE);
                    
26   }
                    
36
                    
37      /// comprobamos si el usuario tiene acceso a nueva_compra
                    
38      $this->nuevo_albaran_url = FALSE;
                    
                
class-wpb-map.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 563 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * WPBakery Visual Composer Main manager.
                    
4 *
                    
4 *
                    
5 * @package WPBakeryVisualComposer
                    
6 * @since   4.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.
                    
                
route.php https://github.com/ymtn/core.git | PHP | 589 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
79	 *         ->defaults(array(
                    
80	 *             'controller' => 'welcome',
                    
81	 *         ));
                    
201	/**
                    
202	 * Returns the compiled regular expression for the route. This translates
                    
203	 * keys and optional groups to a proper PCRE regular expression.
                    
204	 *
                    
205	 *     $compiled = Route::compile(
                    
206	 *        '<controller>(/<action>(/<id>))',
                    
216	 */
                    
217	public static function compile($uri, array $regex = NULL)
                    
218	{
                    
288	 * The $uri parameter can either be a string for basic regex matching or it
                    
289	 * can be a valid callback or anonymous function (php 5.3+). If you use a
                    
290	 * callback or anonymous function, your method should return an array
                    
                
Layout.php https://github.com/nationalfield/symfony.git | PHP | 490 lines
                    
1<?php
                    
2/*
                    
24 *
                    
25 * @author      Guilherme Blanco <guilhermeblanco@hotmail.com>
                    
26 * @package     Doctrine
                    
27 * @subpackage  Pager
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @version     $Revision$
                    
                
rpcconsole.cpp https://gitlab.com/Quetzalcoatl/VekitaCoin | C++ | 433 lines
                    
46public slots:
                    
47    void request(const QString &command);
                    
48
                    
49signals:
                    
50    void reply(int category, const QString &command);
                    
51};
                    
66 * @param[out]   args        Parsed arguments will be appended to this list
                    
67 * @param[in]    strCommand  Command line to split
                    
68 */
                    
68 */
                    
69bool parseCommandLine(std::vector<std::string> &args, const std::string &strCommand)
                    
70{
                    
141    std::vector<std::string> args;
                    
142    if(!parseCommandLine(args, command.toStdString()))
                    
143    {
                    
                
transformation.php https://github.com/xc/zetacomponents.git | PHP | 417 lines
                    
1<?php
                    
2/**
                    
9 * to you under the Apache License, Version 2.0 (the
                    
10 * "License"); you may not use this file except in compliance
                    
11 * with the License.  You may obtain a copy of the License at
                    
                
File.php https://github.com/mwturnage/frapi-1.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://framework.zend.com/license/new-bsd
                    
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
                    
13 * to license@zend.com so we can send you a copy immediately.
                    
14 *
                    
17 * @subpackage Storage
                    
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
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
26 * @subpackage Storage
                    
27 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
28 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
                
install-location.php https://github.com/nsswaga/OSClass.git | PHP | 418 lines
                    
10require_once LIB_PATH . 'osclass/db.php';
                    
11require_once LIB_PATH . 'osclass/classes/DAO.php';
                    
12require_once LIB_PATH . 'osclass/helpers/hDatabaseInfo.php';
                    
12require_once LIB_PATH . 'osclass/helpers/hDatabaseInfo.php';
                    
13require_once LIB_PATH . 'osclass/install-functions.php';
                    
14require_once LIB_PATH . 'osclass/formatting.php';
                    
14require_once LIB_PATH . 'osclass/formatting.php';
                    
15require_once LIB_PATH . 'osclass/compatibility.php';
                    
16require_once LIB_PATH . 'osclass/utils.php';
                    
81    
                    
82    $body = 'Welcome ' . $_POST['webtitle'] . ',<br/><br/>' ;
                    
83    $body .= 'Your OSClass installation at ' . WEB_PATH . ' is up and running. You can access to the administration panel with this data access:<br/>' ;
                    
96    try{
                    
97        require_once LIB_PATH . 'phpmailer/class.phpmailer.php' ;
                    
98        $mail = new PHPMailer(true) ;
                    
                
sbhnddma.h https://github.com/netarchy/android_kernel_samsung_dempsey.git | C Header | 343 lines
                    
1/*
                    
2 * Generic Broadcom Home Networking Division (HND) DMA engine HW interface
                    
3 * This supports the following chips: BCM42xx, 44xx, 47xx .
                    
4 *
                    
5 * Copyright (C) 1999-2011, Broadcom Corporation
                    
6 * 
                    
6 * 
                    
7 *         Unless you and Broadcom execute a separate written software license
                    
8 * agreement governing use of this software, this software is licensed to you
                    
9 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
10 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
11 * following added to such license:
                    
20 * 
                    
21 *      Notwithstanding the above, under no circumstances may you combine this
                    
22 * software in any way with any other Broadcom software provided under a license
                    
                
Value.php https://github.com/doctoralex/ch3-dev-preview.git | PHP | 401 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://framework.zend.com/license/new-bsd
                    
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
                    
13 * to license@zend.com so we can send you a copy immediately.
                    
14 *
                    
17 * @subpackage Value
                    
18 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Value.php 12720 2008-11-20 18:20:20Z matthew $
                    
21 */
                    
24/** Zend_XmlRpc_Value_Exception */
                    
25require_once 'Zend/XmlRpc/Value/Exception.php';
                    
26
                    
                
ClassLoader.php https://gitlab.com/remyvianne/krowkaramel | PHP | 481 lines
                    
1<?php
                    
2
                    
3/*
                    
4 * This file is part of Composer.
                    
5 *
                    
12
                    
13namespace Composer\Autoload;
                    
14
                    
17 *
                    
18 *     $loader = new \Composer\Autoload\ClassLoader();
                    
19 *
                    
20 *     // register classes with namespaces
                    
21 *     $loader->add('Symfony\Component', __DIR__.'/component');
                    
22 *     $loader->add('Symfony',           __DIR__.'/framework');
                    
29 *
                    
30 * In this example, if you try to use a class in the Symfony\Component
                    
31 * namespace or one of its children (Symfony\Component\Console for instance),
                    
                
mkdist.php https://gitlab.com/0072016/appengine-php | PHP | 548 lines
                    
15
                    
16$dist_dir = $build_dir . "/php-" . phpversion();
                    
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
                    
241	"win32/pws-php5cgi.reg" => "pws-php5cgi.reg",
                    
242	"win32/pws-php5isapi.reg" => "pws-php5isapi.reg",
                    
243);
                    
250$general_files = array(
                    
251	"php.gif"			=>	"php.gif",
                    
252);
                    
445	echo "Creating phar.phar.bat\n";
                    
446	file_put_contents($dist_dir . '/phar.phar.bat', "%~dp0php.exe %~dp0pharcommand.phar %*\r\n");
                    
447}
                    
495
                    
496	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
                    
497	 * broken out of the tarballs */
                    
                
class-inl.h https://gitlab.com/0072016/0072016-PHP.LLC | C Header | 522 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 2010-2015 Facebook, Inc. (http://www.facebook.com)     |
                    
6   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
                
Value.php https://github.com/dragonmantank/congregate.git | PHP | 401 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://framework.zend.com/license/new-bsd
                    
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
                    
13 * to license@zend.com so we can send you a copy immediately.
                    
14 *
                    
17 * @subpackage Value
                    
18 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Value.php 12721 2008-11-20 18:21:58Z matthew $
                    
21 */
                    
24/** Zend_XmlRpc_Value_Exception */
                    
25require_once 'Zend/XmlRpc/Value/Exception.php';
                    
26
                    
                
BaseFcvalinmold.php https://github.com/cidesa/siga-universitario.git | PHP | 714 lines
                    
1<?php
                    
2
                    
373			$this->setDeleted(true);
                    
374			$con->commit();
                    
375		} catch (PropelException $e) {
                    
394			$affectedRows = $this->doSave($con);
                    
395			$con->commit();
                    
396			return $affectedRows;
                    
469	
                    
470	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
                    
471	{
                    
524	
                    
525	public function toArray($keyType = BasePeer::TYPE_PHPNAME)
                    
526	{
                    
546	
                    
547	public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
                    
548	{
                    
                
wpsc-swfupload-handlers.js https://gitlab.com/endomorphosis/reservationtelco | JavaScript | 348 lines
                    
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";
                    
195			postVars = "product_id="+product_id+"&order="+order;
                    
196			jQuery.post( 'index.php?wpsc_admin_action=rearrange_images', postVars, function(returned_data) {
                    
197					eval(returned_data);
                    
217
                    
218function wpsc_uploadComplete(fileObj) {
                    
219	// If no more uploads queued, enable the submit button
                    
                
RouteCollectionBuilderTest.php https://gitlab.com/ealexis.t/trends | PHP | 324 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * (c) Fabien Potencier <fabien@symfony.com>
                    
7 *
                    
11
                    
12namespace Symfony\Component\Routing\Tests;
                    
13
                    
13
                    
14use Symfony\Component\Config\Resource\FileResource;
                    
15use Symfony\Component\Routing\Route;
                    
15use Symfony\Component\Routing\Route;
                    
16use Symfony\Component\Routing\RouteCollection;
                    
17use Symfony\Component\Routing\RouteCollectionBuilder;
                    
18
                    
19class RouteCollectionBuilderTest extends \PHPUnit_Framework_TestCase
                    
20{
                    
                
lang.php https://github.com/brianshaler/PHXdata.git | PHP | 186 lines
                    
53$lang['htmlok']                = 'Permitir embeber HTML';
                    
54$lang['phpok']                 = 'Permitir embeber PHP';
                    
55$lang['dformat']               = 'Formato de Data (ver função PHP\'s <a href="http://www.php.net/strftime">strftime</a>)';
                    
98$lang['autoplural']            = 'Verificar formas plurais nos links';
                    
99$lang['compression']           = 'Método de compressão para histórico';
                    
100$lang['cachetime']             = 'Idade máxima para cache (seg.)';
                    
111$lang['subscribe_time']        = 'Tempo após o qual as listas de subscrição e "digests" são enviados (seg.); Isto deve ser inferior ao tempo especificado em recent_days.';
                    
112$lang['compress']              = 'Compactar as saídas de CSS e JavaScript';
                    
113$lang['hidepages']             = 'Esconder páginas correspondentes (expressões regulares)';
                    
115$lang['sitemap']               = 'Gerar Sitemap Google (dias)';
                    
116$lang['broken_iua']            = 'A função "ignore_user_abort" não está a funcionar no seu sistema? Isso pode causar um índice de busca defeituoso. Sistemas com IIS+PHP/CGI são conhecidos por possuírem este problema. Veja o <a href="http://bugs.splitbrain.org/?do=details&amp;task_id=852">bug 852</a> para mais informações.';
                    
117$lang['xsendfile']             = 'Usar o cabeçalho "X-Sendfile" para permitir o servidor de internet encaminhar ficheiros estáticos? O seu servidor de internet precisa ter suporte a isso.';
                    
170$lang['rss_linkto_o_current']  = 'página actual';
                    
171$lang['compression_o_0']       = 'Sem Compressão';
                    
172$lang['compression_o_gz']      = 'gzip';
                    
                
display-debug.page.php https://github.com/evadne/wp-e-commerce.git | PHP | 365 lines
                    
7 *
                    
8 * @package wp-e-commerce
                    
9 * @since 3.7
                    
13	global $wpdb;
                    
14	$fixpage = get_option('siteurl').'/wp-admin/admin.php?page=wpsc-sales-logs&amp;subpage=upgrade-purchase-logs';
                    
15	?>
                    
49			<li>
                    
50				<a href='?page=wpsc-debug&amp;wpsc_debug_action=phpinfo'>Display phpinfo</a>
                    
51			</li>
                    
55		</ul>
                    
56		<?php
                    
57		if (defined('WPSC_ADD_DEBUG_PAGE') && (constant('WPSC_ADD_DEBUG_PAGE') == true)) {
                    
141			//  wpsc_populate_also_bought_list();
                    
142			$fields = "cmd=_notify-validate&mc_gross=0.10&invoice=7121255557327&protection_eligibility=Ineligible&address_status=unconfirmed&item_number1=105&payer_id=LCFQDE4F5F6U8&tax=0.00&address_street=2+Offa+RdBedford&payment_date=14%3A56%3A02+Oct+14%2C+2009+PDT&payment_status=Completed&charset=windows-1252&mc_tax1=0.00&address_zip=&mc_shipping=0.00&mc_handling=0.00&first_name=Thomas&mc_fee=0.10&address_country_code=NZ&address_name=test+test&notify_version=2.8&custom=&payer_status=verified&business=dan%40instinct.co.nz&address_country=New+Zealand&num_cart_items=1&mc_handling1=0.00&address_city=Bedfordshire&verify_sign=AGu.hbwMxRXoqDiyy-IJNOnULnvNAKaQoywaGolyEFLHTSZiM-w0YWH4&payer_email=thomas.howard%40gmail.com&mc_shipping1=0.00&tax1=0.00&txn_id=5014962043916743K&payment_type=instant&last_name=Howard&address_state=&item_name1=m%27a%2Fn.d%2Fe%22l%24%7Ct%2Fe%28s%7Et%29%3A%3B+%C3%85%C3%84%C3%96&receiver_email=dan%40instinct.co.nz&payment_fee=&quantity1=1&receiver_id=LENKCHY6CU2VY&txn_type=cart&mc!
                    
143 _gross_1=0.10&mc_currency=NZD&residence_country=NZ&transaction_subject=Shopping+Cart&payment_gross=";
                    
                
index.php https://bitbucket.org/kudutest/moodlegit.git | PHP | 428 lines
                    
26require('../../config.php');
                    
27require_once($CFG->libdir . '/completionlib.php');
                    
28
                    
153    $strreports = get_string("reports");
                    
154    $strcompletion = get_string('activitycompletion', 'completion');
                    
155
                    
380            case COMPLETION_INCOMPLETE : $completiontype='n'; break;
                    
381            case COMPLETION_COMPLETE : $completiontype='y'; break;
                    
382            case COMPLETION_COMPLETE_PASS : $completiontype='pass'; break;
                    
382            case COMPLETION_COMPLETE_PASS : $completiontype='pass'; break;
                    
383            case COMPLETION_COMPLETE_FAIL : $completiontype='fail'; break;
                    
384        }
                    
390        $modcontext = context_module::instance($activity->id);
                    
391        $describe = get_string('completion-' . $completiontype, 'completion');
                    
392        $a=new StdClass;
                    
                
index.php https://github.com/hregis/dolibarr.git | PHP | 427 lines
                    
96		if ($obj) {
                    
97			$vals[($obj->status == CommandeFournisseur::STATUS_CANCELED_AFTER_ORDER ? CommandeFournisseur::STATUS_CANCELED : $obj->status)] = $obj->nb;
                    
98
                    
207				print "<a href=\"card.php?id=".$obj->rowid."\">".img_object($langs->trans("ShowOrder"), "order").' '.$obj->ref."</a></td>";
                    
208				print '<td><a href="'.DOL_URL_ROOT.'/fourn/card.php?socid='.$obj->socid.'">'.img_object($langs->trans("ShowCompany"), "company").' '.dol_trunc($obj->name, 24).'</a></td></tr>';
                    
209				$i++;
                    
337
                    
338			print '<td><a href="'.DOL_URL_ROOT.'/fourn/card.php?socid='.$obj->socid.'">'.img_object($langs->trans("ShowCompany"), "company").' '.$obj->name.'</a></td>';
                    
339			print '<td>'.dol_print_date($db->jdate($obj->tms), 'day').'</td>';
                    
373print '<tr class="liste_titre">';
                    
374print '<th colspan="3">'.$langs->trans("OrdersToProcess").' <a href="'.DOL_URL_ROOT.'/commande/list.php?search_status=1">('.$num.')</a></th></tr>';
                    
375
                    
406
                    
407print '<td><a href="'.DOL_URL_ROOT.'/comm/card.php?socid='.$obj->socid.'">'.img_object($langs->trans("ShowCompany"),"company").' '.dol_trunc($obj->name,24).'</a></td>';
                    
408
                    
                
addons_modules.php https://bitbucket.org/mbaily/tremain.git | PHP | 468 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
7 * @copyright	Copyright (c) 2003 - 2013, EllisLab, Inc.
                    
8 * @license		http://ellislab.com/expressionengine/user-guide/license.html
                    
9 * @link		http://ellislab.com
                    
23 * @author		EllisLab Dev Team
                    
24 * @link		http://ellislab.com
                    
25 */
                    
65		$this->jquery->tablesorter('.mainTable', '{
                    
66        	textExtraction: "complex",			
                    
67			widgets: ["zebra"]
                    
186			// Send version to update class and let it do any required work
                    
187			if ($this->input->get('check_updates') && $status == 'installed' && file_exists($this->installed_modules[$module]['path'].'upd.'.$module.'.php'))
                    
188			{
                    
188			{
                    
189				require $this->installed_modules[$module]['path'].'upd.'.$module.'.php';
                    
190
                    
                
plugin.php https://github.com/mrmark/moodle.git | PHP | 352 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
55        global $CFG;
                    
56        require_once($CFG->libdir . '/filelib.php');
                    
57
                    
83            if ($mimetype === 'video/quicktime' && (core_useragent::is_chrome() || core_useragent::is_edge())) {
                    
84                // Fix for VideoJS/Chrome bug https://github.com/videojs/video.js/issues/423 .
                    
85                $mimetype = 'video/mp4';
                    
125            // Hide poster area for audios without tracks or poster.
                    
126            // See discussion on https://github.com/videojs/video.js/issues/2777 .
                    
127            // Maybe TODO: if there are only chapter tracks we still don't need poster area.
                    
145            // Hides native controls and plays videos inline instead of fullscreen,
                    
146            // see https://github.com/videojs/video.js/issues/3761 and
                    
147            // https://github.com/videojs/video.js/issues/3762 .
                    
307        if (get_config('media_videojs', 'youtube')) {
                    
308            $markers = array_merge($markers, array('youtube.com', 'youtube-nocookie.com', 'youtu.be', 'y2u.be'));
                    
309        }
                    
                
AclVoterTest.php https://gitlab.com/TouirMohamedMarwen/Symfony2 | PHP | 432 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * (c) Fabien Potencier <fabien@symfony.com>
                    
7 *
                    
11
                    
12namespace Symfony\Component\Security\Acl\Tests\Voter;
                    
13
                    
13
                    
14use Symfony\Component\Security\Acl\Exception\NoAceFoundException;
                    
15use Symfony\Component\Security\Acl\Voter\FieldVote;
                    
15use Symfony\Component\Security\Acl\Voter\FieldVote;
                    
16use Symfony\Component\Security\Acl\Exception\AclNotFoundException;
                    
17use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity;
                    
17use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity;
                    
18use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;
                    
19use Symfony\Component\Security\Acl\Domain\ObjectIdentity;
                    
                
internal-link-aliases.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 310 lines
                    
1<?php
                    
2
                    
66				if (!$delete && $from && $to)
                    
67					$aliases[$id] = compact('from', 'to', 'posts');
                    
68			}
                    
                
TransducerGraph.ObjectToSetNodeProcessor.html https://github.com/ryantanner/thesis.git | HTML | 259 lines
                    
56<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
                    
57&nbsp;<A HREF="../../../../edu/stanford/nlp/fsm/TransducerGraph.NormalizingGraphProcessor.html" title="class in edu.stanford.nlp.fsm"><B>PREV CLASS</B></A>&nbsp;
                    
58&nbsp;<A HREF="../../../../edu/stanford/nlp/fsm/TransducerGraph.OutputCombiningProcessor.html" title="class in edu.stanford.nlp.fsm"><B>NEXT CLASS</B></A></FONT></TD>
                    
93<PRE>
                    
94<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
                    
95  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>edu.stanford.nlp.fsm.TransducerGraph.ObjectToSetNodeProcessor</B>
                    
104<DL>
                    
105<DT><PRE>public static class <B>TransducerGraph.ObjectToSetNodeProcessor</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../edu/stanford/nlp/fsm/TransducerGraph.NodeProcessor.html" title="interface in edu.stanford.nlp.fsm">TransducerGraph.NodeProcessor</A></DL>
                    
106</PRE>
                    
151<TR BGCOLOR="white" CLASS="TableRowColor">
                    
152<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
                    
153</TR>
                    
187<PRE>
                    
188public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> <B>processNode</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;node)</PRE>
                    
189<DL>
                    
                
sysvmsg.c https://gitlab.com/envieidoc/advancedtomato2 | C | 477 lines
                    
2  +----------------------------------------------------------------------+
                    
3  | PHP Version 5                                                        |
                    
4  +----------------------------------------------------------------------+
                    
4  +----------------------------------------------------------------------+
                    
5  | Copyright (c) 1997-2014 The PHP Group                                |
                    
6  +----------------------------------------------------------------------+
                    
6  +----------------------------------------------------------------------+
                    
7  | This source file is subject to version 3.01 of the PHP license,      |
                    
8  | that is bundled with this package in the file LICENSE, and is        |
                    
9  | available through the world-wide-web at the following url:           |
                    
10  | http://www.php.net/license/3_01.txt                                  |
                    
11  | If you did not receive a copy of the PHP license and are unable to   |
                    
342
                    
343	messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf));
                    
344
                    
                
Ods.php https://gitlab.com/rsilveira1987/Expresso | PHP | 400 lines
                    
1<?php
                    
2/**
                    
43                xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
                    
44                xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0">
                    
45            <style:table-cell-properties fo:background-color="#ccffff"/>
                    
50                xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
                    
51                xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0">
                    
52            <style:text-properties fo:font-weight="bold"/>
                    
55                xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
                    
56                xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0">
                    
57            <style:table-cell-properties fo:background-color="#ccccff"/>
                    
60                xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
                    
61                xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0">
                    
62            <style:table-cell-properties fo:background-color="#ccccff"/>
                    
66                xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
                    
67                xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0">
                    
68            <style:paragraph-properties fo:text-align="center" fo:margin-left="0cm"/>
                    
                
Curl.php https://gitlab.com/yousafsyed/easternglamor | PHP | 453 lines
                    
1<?php
                    
2/**
                    
156     *
                    
157     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
158     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
175     *
                    
176     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
177     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
308     *
                    
309     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
310     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
345     *
                    
346     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
347     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
                
Flat.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 362 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
                    
12 * obtain it through the world-wide-web, please send an email
                    
13 * to license@magento.com so we can send you a copy immediately.
                    
14 *
                    
18 * versions in the future. If you wish to customize Magento for your
                    
19 * needs please refer to http://www.magento.com for more information.
                    
20 *
                    
22 * @package     Mage_Catalog
                    
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)
                    
                
search.php https://gitlab.com/alexprowars/bitrix | PHP | 532 lines
                    
248				$descList = array();
                    
249				if (isset($companyTypeList[$company['COMPANY_TYPE']]))
                    
250				{
                    
250				{
                    
251					$descList[] = $companyTypeList[$company['COMPANY_TYPE']];
                    
252				}
                    
252				}
                    
253				if (isset($companyIndustryList[$company['INDUSTRY']]))
                    
254				{
                    
258				$searchResult['CRMCOMPANY'.$company['ID']] = array(
                    
259					'id' => 'CRMCOMPANY'.$company['ID'],
                    
260					'entityId' => $company['ID'],
                    
265
                    
266				if (!empty($company['LOGO']) && intval($company['LOGO']) > 0)
                    
267				{
                    
                
template.php https://gitlab.com/alexprowars/bitrix | PHP | 409 lines
                    
12Loc::loadMessages(__FILE__);
                    
13?><div class="container-fluid"><?php
                    
14if (!empty($arResult['ERRORS']['FATAL']))
                    
17	{
                    
18		if ($code !== $component::E_NOT_AUTHORIZED)
                    
19			ShowError($error);
                    
20	}
                    
21	$component = $this->__component;
                    
22	if ($arParams['AUTH_FORM_IN_TEMPLATE'] && isset($arResult['ERRORS']['FATAL'][$component::E_NOT_AUTHORIZED]))
                    
26			<div class="col-md-8 offset-md-2 col-lg-6 offset-lg-3">
                    
27				<div class="alert alert-danger"><?=$arResult['ERRORS']['FATAL'][$component::E_NOT_AUTHORIZED]?></div>
                    
28			</div>
                    
393		$javascriptParams = array(
                    
394			"url" => CUtil::JSEscape($this->__component->GetPath().'/ajax.php'),
                    
395			"templateFolder" => CUtil::JSEscape($templateFolder),
                    
                
class.php https://gitlab.com/alexprowars/bitrix | PHP | 524 lines
                    
1<?php
                    
2
                    
18 */
                    
19class SaleOrderPaymentChange extends \CBitrixComponent
                    
20{
                    
32	 */
                    
33	public function onPrepareComponentParams($params)
                    
34	{
                    
112	/**
                    
113	 * Prepare data to render in new version of component.
                    
114	 * @return void
                    
181	/**
                    
182	 * Function implements all the life cycle of our component
                    
183	 * @return void
                    
184	 */
                    
185	public function executeComponent()
                    
186	{
                    
                
length_class.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 412 lines
                    
1<?php
                    
2class ControllerLocalisationLengthClass extends Controller {
                    
149       		'text'      => $this->language->get('text_home'),
                    
150			'href'      => $this->url->link('common/home', 'token=' . $this->session->data['token'], 'SSL'),       		
                    
151      		'separator' => false
                    
259		$this->children = array(
                    
260			'common/header',
                    
261			'common/footer'
                    
312       		'text'      => $this->language->get('text_home'),
                    
313			'href'      => $this->url->link('common/home', 'token=' . $this->session->data['token'], 'SSL'),
                    
314      		'separator' => false
                    
356		$this->children = array(
                    
357			'common/header',
                    
358			'common/footer'
                    
                
bcm_umi_nand.c https://github.com/mstsirkin/kvm.git | C | 579 lines
                    
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*
                    
101static dma_addr_t physPtr;
                    
102static struct completion nand_comp;
                    
103
                    
178					physPtr + offset, tmp_len);
                    
179		wait_for_completion(&nand_comp);
                    
180
                    
225
                    
226		init_completion(&nand_comp);
                    
227		dma_transfer_mem_to_mem(hndl, physPtr + offset,
                    
228					REG_NAND_DATA_PADDR, tmp_len);
                    
229		wait_for_completion(&nand_comp);
                    
230
                    
                
general.php https://gitlab.com/digaotinfo/agenciaabear.com.br | PHP | 225 lines
                    
47        <div class="kopa-element-box kopa-theme-options">
                    
48            <span class="kopa-component-title"><?php _e('Footer menu logo', kopa_get_domain()); ?></span>
                    
49
                    
139                ?>
                    
140                <label  for="<?php echo $kopa_header_headline_status_id; ?>" class="kopa-label-for-radio-button"><input type="radio" value="<?php echo esc_attr( $value ); ?>" id="<?php echo $kopa_header_headline_status_id; ?>" name="<?php echo $kopa_header_headline_name; ?>" <?php echo ($value == get_option($kopa_header_headline_name, 'show')) ? 'checked="checked"' : ''; ?>><?php echo $label; ?></label>
                    
141                <?php
                    
158                foreach ( $kopa_headline_categories as $kopa_headline_category ) { ?>
                    
159                    <option value="<?php echo $kopa_headline_category->term_id; ?>" <?php selected( $kopa_headline_category->term_id, $kopa_current_headline_category_id ); ?>><?php echo $kopa_headline_category->name; ?></option>
                    
160                <?php } // endforeach ?>
                    
190                ?>
                    
191                <label  for="<?php echo $kopa_breadcrumb_id; ?>" class="kopa-label-for-radio-button"><input type="radio" value="<?php echo esc_attr( $value ); ?>" id="<?php echo $kopa_breadcrumb_id; ?>" name="<?php echo $kopa_breadcrumb_status_name; ?>" <?php echo ($value == get_option($kopa_breadcrumb_status_name, 'show')) ? 'checked="checked"' : ''; ?>><?php echo $label; ?></label>
                    
192                <?php
                    
210        <div class="kopa-element-box kopa-theme-options">
                    
211            <span class="kopa-component-title"><?php _e('Custom Left Footer', kopa_get_domain()); ?></span>
                    
212            <p class="kopa-desc"><?php _e('Enter the content you want to display in your left footer (e.g. copyright text).', kopa_get_domain()); ?></p>    
                    
                
grid.subgrid.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 298 lines
                    
3 * jqGrid extension for SubGrid Data
                    
4 * Tony Tomov tony@trirand.com
                    
5 * http://trirand.com/blog/ 
                    
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
                    
162						data: $.isFunction(ts.p.serializeSubGridData)? ts.p.serializeSubGridData.call(ts, dp) : dp,
                    
163						complete: function(sxml) {
                    
164							if(ts.p.subgridtype === "xml") {
                    
                
Abstract.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 456 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://framework.zend.com/license/new-bsd
                    
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
                    
13 * to license@zend.com so we can send you a copy immediately.
                    
14 *
                    
16 * @package    Zend_Validate
                    
17 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
24 */
                    
25require_once 'Zend/Validate/Interface.php';
                    
26
                    
29 * @package    Zend_Validate
                    
30 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
31 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
                
PropelPager.php https://github.com/1989gaurav/Propel.git | PHP | 597 lines
                    
1<?php
                    
2
                    
15 *
                    
16 *  require_once 'propel/util/PropelPager.php';
                    
17 *  require_once 'PEACH/Propel/Poem/poemPeer.php';
                    
73 * <th>Date</th>
                    
74 * <th>comments</th>
                    
75 * </tr>
                    
80 * <td><?=$poem->getTime()?></td>
                    
81 * <td><?=$poem->getComments()?></td>
                    
82 * </tr>
                    
86 *
                    
87 * @author     Rob Halff <info@rhalff.com>
                    
88 * @author	   Niklas Närhinen <niklas@narhinen.net>
                    
397	/**
                    
398	 * Returns whether last page is complete
                    
399	 *
                    
                
ZoomPrintController.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 392 lines
                    
28   private EdgesListener _edgesListener;
                    
29   private EdgesGraphComponent _edgesGraphComponent;
                    
30   private GraphPlugin _plugin;
                    
35
                    
36   public ZoomPrintController(ZoomerXmlBean zoomerXmlBean, PrintXmlBean printXmlBean, EdgesListener edgesListener, GraphPrintable printable, ISession session, GraphPlugin plugin)
                    
37   {
                    
226
                    
227            BufferedImage img = prepareImage(graphPixelSize.width, graphPixelSize.height);
                    
228            _printable.print(img.getGraphics(), pf, 0);
                    
283         _edgesGraphComponent.init(format, _panel.sldEdges.getValue() / 100.0, _panel.sldEdges.getValueIsAdjusting());
                    
284         _edgesListener.edgesGraphComponentChanged(_edgesGraphComponent, true);
                    
285
                    
288      {
                    
289         _edgesListener.edgesGraphComponentChanged(_edgesGraphComponent, false);
                    
290      }
                    
                
text_effects.hs https://gitlab.com/stallmanifold/imagemagick | Haskell | 313 lines
                    
3-- | Example taken from: http://members.shaw.ca/el.supremo/MagickWand/text_effects.htm
                    
4{- There's no equivalent convert command for this. It is a demo of MagickWand.
                    
5See this forum thread for the genesis of these effects
                    
5See this forum thread for the genesis of these effects
                    
6http://www.imagemagick.org/discourse-server/viewtopic.php?f=6&t=11586
                    
7and Anthony's Text Effects page at:
                    
67  -- Composite the text on top of the shadow
                    
68  compositeImage w cloneW overCompositeOp 5 5
                    
69
                    
77  -- Now composite the shadowed text over the plain background
                    
78  compositeImage w' w overCompositeOp 0 0
                    
79  --  and write the result
                    
94  pushPattern dw (T.tail patternName) 0 0 (realToFrac width) (realToFrac height)
                    
95  drawComposite dw srcOverCompositeOp 0 0 0 0 w
                    
96  popPattern dw
                    
                
XmlFileLoader.php https://github.com/thewiredman/symfony.git | PHP | 402 lines
                    
1<?php
                    
2
                    
2
                    
3namespace Symfony\Component\DependencyInjection\Loader;
                    
4
                    
4
                    
5use Symfony\Component\DependencyInjection\Definition;
                    
6use Symfony\Component\DependencyInjection\Reference;
                    
6use Symfony\Component\DependencyInjection\Reference;
                    
7use Symfony\Component\DependencyInjection\ContainerBuilder;
                    
8use Symfony\Component\DependencyInjection\SimpleXMLElement;
                    
8use Symfony\Component\DependencyInjection\SimpleXMLElement;
                    
9use Symfony\Component\DependencyInjection\Resource\FileResource;
                    
10
                    
13 *
                    
14 * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
                    
15 *
                    
                
derivative.inc.php https://gitlab.com/team_fsn/fsn-php | PHP | 540 lines
                    
1<?php
                    
2// +-----------------------------------------------------------------------+
                    
2// +-----------------------------------------------------------------------+
                    
3// | Piwigo - a PHP based photo gallery                                    |
                    
4// +-----------------------------------------------------------------------+
                    
71      $this->flags |= self::IS_MIMETYPE;
                    
72      if ( ($size=@getimagesize(PHPWG_ROOT_PATH.$this->rel_path)) === false)
                    
73      {
                    
74        $this->rel_path = 'themes/default/icon/mimetypes/unknown.png';
                    
75        $size = getimagesize(PHPWG_ROOT_PATH.$this->rel_path);
                    
76      }
                    
125  {
                    
126    return PHPWG_ROOT_PATH.$this->rel_path;
                    
127  }
                    
379      $rel_url = 'i';
                    
380      if ($conf['php_extension_in_urls']) $rel_url .= '.php';
                    
381      if ($conf['question_mark_in_urls']) $rel_url .= '?';
                    
                
index.html https://github.com/rti7743/rtilabs.git | HTML | 193 lines
                    
22	最近こっちにソースを移し中...<br>
                    
23	<a href="https://github.com/rti7743">https://github.com/rti7743</a><br>
                    
24	<h1>プロジェクト</h1>
                    
92	プレゼンにしたのがこれ
                    
93	<a href="http://prezi.com/yfwu0jtoh6sg/jquery-css/">http://prezi.com/yfwu0jtoh6sg/jquery-css/</a><br>
                    
94	<h2>新潟アクセス修飾子/指定子のご提案</h2>
                    
107	<a href="http://chasen.org/~taku/software/TinySegmenter/">TinySegmenter</a>という辞書を使わない形態素解析をC++に移植してみました。windows(VC++)/Linux(gcc4)両対応。後いろいろ調整。<br>
                    
108	<a href="http://code.google.com/p/tinysegmenter-cpp/">http://code.google.com/p/tinysegmenter-cpp/</a><br>
                    
109	<a href="http://d.hatena.ne.jp/rti7743/20100312">http://d.hatena.ne.jp/rti7743/20100312</a><br>
                    
117	<h2>TinySegmenter for PHPの高速化</h2>
                    
118	<a href="http://chasen.org/~taku/software/TinySegmenter/">TinySegmenter</a>という辞書を使わない形態素解析の<a href="http://www.programming-magic.com/20080816010106/">php版</a>を少し高速にしてみました。<br>
                    
119	<a href="http://d.hatena.ne.jp/rti7743/20091126/1259256800">http://d.hatena.ne.jp/rti7743/20091126/1259256800</a><br>
                    
140	<a href="http://prezi.com/9brwewgcxtr2/javascript/">javascript で遊ぶラムダ式、クロージャ、カリー化</a><br>
                    
141	<a href="http://prezi.com/lsuiaprfasjw/php-session_handler-peclmagica/">php session_handler pecl☆magica</a><br>
                    
142	<a href="http://rtilabs.net/files/2010_12_24/moemoe_css/">萌え萌えCSS</a><br>
                    
                
sfValidatorDateTest.php https://github.com/bheneka/gitta.git | PHP | 246 lines
                    
1<?php
                    
2
                    
4 * This file is part of the symfony package.
                    
5 * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
                    
6 *
                    
10
                    
11require_once(dirname(__FILE__).'/../../bootstrap/unit.php');
                    
12
                    
245$date->setTimezone($defaultTimezone);
                    
246$t->is($clean, $date->format('Y-m-d H:i:s'), '->clean() respects incoming and default timezones');
                    
247
                    
                
BaseVarDumper.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 272 lines
                    
17 *
                    
18 * @author Qiang Xue <qiang.xue@gmail.com>
                    
19 * @since 2.0
                    
30     * This method achieves the similar functionality as var_dump and print_r
                    
31     * but is more robust when handling complex objects such as Yii controllers.
                    
32     * @param mixed $var variable to be dumped
                    
119                    self::$_output .= "$className#$id\n" . $spaces . '(';
                    
120                    if ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__debugInfo')) {
                    
121                        $dumpValues = $var->__debugInfo();
                    
141     *
                    
142     * The string is a valid PHP expression that can be evaluated by PHP parser
                    
143     * and the evaluation result will give back the variable value.
                    
210                            return;
                    
211                        } elseif ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__toString')) {
                    
212                            $output = var_export($var->__toString(), true);
                    
                
class.evstat.html https://bitbucket.org/thncr/manuals.git | HTML | 359 lines
                    
11 <div class="up"><a href="book.ev.html">Ev</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="class.evstat" class="reference">
                    
24    on that path in regular intervals(or when the OS signals it changed) and
                    
25    sees if it changed compared to the last time, invoking the callback if it
                    
26    did.
                    
37   <p class="para">
                    
38    The path must not end in a slash or contain special components such as
                    
39    <strong><code>&#039;.&#039;</code></strong>
                    
49    regularly on the path to see if it changed somehow. For this case a
                    
50    recommended polling interval can be specified. If one specifies a polling
                    
51    interval of
                    
52    <strong><code>0.0 </code></strong>
                    
53    (highly recommended) then a suitable, unspecified default value will be
                    
54    used(which could be expected to be around 5 seconds, although this might
                    
                
ki.php https://bitbucket.org/ctala/pa_proyectos.git | PHP | 457 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * This file is automatically generated by yiic cldr command.
                    
6 *
                    
9 *
                    
10 * Copyright © 2008-2011 Yii Software LLC (http://www.yiiframework.com/license/)
                    
11 */
                    
                
jqplot.pointLabels.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 362 lines
                    
7 * Copyright (c) 2009-2011 Chris Leonello
                    
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 
                    
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 *
                    
23 *     author Ash Searle
                    
24 *     http://hexmen.com/blog/2007/03/printf-sprintf/
                    
25 *     http://hexmen.com/js/sprintf.js
                    
83        // prop: location
                    
84        // compass location where to position the label around the point.
                    
85        // 'n', 'ne', 'e', 'se', 's', 'sw', 'w', 'nw'
                    
                
 

Source

Language