PageRenderTime 1907ms queryTime 148ms sortTime 107ms getByIdsTime 885ms findMatchingLines 239ms

100+ results results for 'php compact repo:jfragoulis/yii-bootstrap' (1907 ms)

Not the results you expected?
internal-link-aliases.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 374 lines
                    
1<?php
                    
2
                    
34		if (suwp::permalink_mode() != SUWP_PRETTY_PERMALINKS)
                    
35			$this->print_message('error', sprintf(__('Link Mask Generator won&#8217;t work with default or &#8220;pathinfo&#8221; permalinks. Please change your <a href="%s">permalink structure</a> to enable this module&#8217;s functionality.', 'seo-ultimate'), 'options-permalink.php'));
                    
36		
                    
78				if (!$delete && $from && $to)
                    
79					$aliases[$id] = compact('from', 'to', 'posts');
                    
80			}
                    
                
class-wp-terms-list-table.php https://gitlab.com/haque.mdmanzurul/barongbarong | 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
                    
                
Index.php https://gitlab.com/tonycodes/october | PHP | 458 lines
                    
1<?php namespace Cms\Controllers;
                    
2
                    
106
                    
107        $this->bodyClass = 'compact-container side-panel-not-fixed';
                    
108        $this->pageTitle = 'cms::lang.cms.menu_label';
                    
                
XmlFileLoader.php https://github.com/schinzi/symfony.git | PHP | 402 lines
                    
1<?php
                    
2
                    
73
                    
74        $this->container->getParameterBag()->add($xml->parameters->getArgumentsAsPhp('parameter'));
                    
75    }
                    
84            $this->currentDir = dirname($file);
                    
85            $this->import((string) $import['resource'], (Boolean) $import->getAttributeAsPhp('ignore-errors'));
                    
86        }
                    
112                $method = 'set'.str_replace('-', '', $key);
                    
113                $definition->$method((string) $service->getAttributeAsPhp($key));
                    
114            }
                    
120
                    
121        $definition->setArguments($service->getArgumentsAsPhp('argument'));
                    
122
                    
137        foreach ($service->call as $call) {
                    
138            $definition->addMethodCall((string) $call['method'], $call->getArgumentsAsPhp('argument'));
                    
139        }
                    
                
BaseVarDumper.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 272 lines
                    
1<?php
                    
2/**
                    
56        if ($highlight) {
                    
57            $result = highlight_string("<?php\n" . self::$_output, true);
                    
58            self::$_output = preg_replace('/&lt;\\?php<br \\/>/', '', $result, 1);
                    
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.
                    
145     * This method is similar to `var_export()`. The main difference is that
                    
146     * it generates more compact string representation using short array syntax.
                    
147     *
                    
147     *
                    
148     * It also handles objects by using the PHP functions serialize() and unserialize().
                    
149     *
                    
                
paperclip.rb https://github.com/palladius/lovd-by-less.git | Ruby | 244 lines
                    
8# Copyright:: Copyright (c) 2008 thoughtbot, inc.
                    
9# License:: MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
10#
                    
55    def path_for_command command #:nodoc:
                    
56      path = [options[:image_magick_path], command].compact
                    
57      File.join(*path)
                    
95    #   geometry strings at the ImageMagick website 
                    
96    #   (http://www.imagemagick.org/script/command-line-options.php#resize). Paperclip
                    
97    #   also adds the "#" option (e.g. "50x50#"), which will resize the image to fit maximally 
                    
                
Compass.php https://github.com/vivid-planet/library.git | PHP | 511 lines
                    
1<?php
                    
2require_once dirname(__FILE__) . '/../ExtensionInterface.php';
                    
40        'blank',
                    
41        'compact',
                    
42        '-compass-nth',
                    
241
                    
242    public static function compassCompact()
                    
243    {
                    
                
Logger.php https://gitlab.com/hoanghung.dev/phunuvadoisong.com | PHP | 456 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Logger.php
                    
4 *
                    
9 * Logging utility class. This class handles basic logging with levels, log rotation and custom log formats. It's
                    
10 * designed to be compact but still powerful and flexible.
                    
11 *
                    
                
ajax.html https://gitlab.com/victor.flores/prueba | HTML | 310 lines
                    
132
                    
133				<div class="php">
                    
134					<p>The script used to perform the server-side processing for this table is shown below. Please note
                    
134					<p>The script used to perform the server-side processing for this table is shown below. Please note
                    
135					that this is just an example script using PHP. Server-side processing scripts can be written in any
                    
136					language, using <a href="//datatables.net/manual/server-side">the protocol described in the
                    
205							<li><a href="../styling/cell-border.html">Base style - cell borders</a></li>
                    
206							<li><a href="../styling/compact.html">Base style - compact</a></li>
                    
207							<li><a href="../styling/hover.html">Base style - hover</a></li>
                    
                
Actions.php https://github.com/digitalstrategyworks/Reese-WordPress.git | PHP | 280 lines
                    
1<?php
                    
2require_once dirname(__FILE__) . '/Messages.php';
                    
52    {
                    
53        require_once dirname(__FILE__) . '/Shortcode.php';
                    
54        // short codes
                    
79        // make sure that user is notified if API-key not found..
                    
80        if (in_array('umapper/info.php', get_option('active_plugins'))) { // umapper plugin is active
                    
81            // make sure that user warned about necessity of API-key registration
                    
100		if (function_exists('add_options_page')) {
                    
101            require_once dirname(__FILE__) . '/Page/Config.php';
                    
102			add_options_page(__('UMapper Configuration', 'umapper'), __('UMapper', 'umapper'), 8, 'Umapper.php', array(Umapper_Page_Config::getInstance(),'show'));
                    
131    {
                    
132        wp_enqueue_script('UmapperInit', Umapper_Plugin::getPluginUri() . 'content/js/UmapperInit.js.php', array('jquery'), uniqid());
                    
133        //wp_enqueue_script('Umapper', Umapper_Plugin::getPluginUri() . 'content/js/Umapper.js', array('UmapperInit', 'jquery'), '1.0');
                    
165    {
                    
166        wp_enqueue_style('UmapperStyleAdmin', Umapper_Plugin::getPluginUri() . 'content/css/admin.compact.css', false, '1.0', 'all');
                    
167    }
                    
                
TableProcessor.php https://gitlab.com/staging06/myproject | PHP | 356 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * TableProcessor.php
                    
4 *
                    
32
                    
33require_once(dirname(__FILE__) . '/AbstractProcessor.php');
                    
34require_once(dirname(__FILE__) . '/CreateDefinitionProcessor.php');
                    
34require_once(dirname(__FILE__) . '/CreateDefinitionProcessor.php');
                    
35require_once(dirname(__FILE__) . '/../utils/ExpressionType.php');
                    
36
                    
208            case 'REDUNDANT':
                    
209            case 'COMPACT':
                    
210            case 'NO':
                    
                
class_stats.tex https://gitlab.com/karl3/gs_libs | LaTeX | 392 lines
                    
86
                    
87Definition at line 18 of file Stats.\-class.\-php.
                    
88
                    
183
                    
184Definition at line 356 of file Stats.\-class.\-php.
                    
185
                    
207
                    
208Definition at line 161 of file Stats.\-class.\-php.
                    
209
                    
255
                    
256Definition at line 136 of file Stats.\-class.\-php.
                    
257
                    
391\item 
                    
392/\-Users/karlgroves/\-Documents/sites/gs\-\_\-libs/Stats.\-class.\-php\end{DoxyCompactItemize}
                    
393
                    
                
wp-cache-phase1.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 264 lines
                    
1<?php
                    
2// Pre-2.6 compatibility
                    
5
                    
6if( !include( WP_CONTENT_DIR . '/wp-cache-config.php' ) )
                    
7	return true;
                    
10
                    
11include( WPCACHEHOME . 'wp-cache-base.php');
                    
12
                    
26
                    
27require_once( WPCACHEHOME . 'wp-cache-phase2.php');
                    
28
                    
28
                    
29$plugins = glob( $wp_cache_plugins_dir . '/*.php' );
                    
30if( is_array( $plugins ) ) {
                    
48function gzip_accepted(){
                    
49	if( ini_get( 'zlib.output_compression' ) ) // don't compress WP-Cache data files when PHP is already doing it
                    
50		return false;
                    
                
ControllerTest.php https://bitbucket.org/thesyncim/admin-biarq.git | PHP | 356 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Lithium: the most rad php framework
                    
4 *
                    
5 * @copyright     Copyright 2011, Union of RAD (http://union-of-rad.org)
                    
6 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
                    
7 */
                    
24		$request = new MockControllerRequest();
                    
25		$postsController = new MockPostsController(compact('request'));
                    
26		$result = get_class($postsController->request);
                    
31	 * Tests the use of `Controller::__invoke()` for dispatching requests to action methods.  Also
                    
32	 * tests that using PHP's callable syntax yields the same result as calling `__invoke()`
                    
33	 * explicitly.
                    
142
                    
143		$controller = new MockPostsController(compact('request') + array('classes' => array(
                    
144			'media' => 'lithium\tests\mocks\action\MockMediaClass'
                    
                
ShellTest.php https://gitlab.com/Laolballs/evotting | PHP | 325 lines
                    
1<?php
                    
2
                    
19
                    
20class ShellTest extends \PHPUnit_Framework_TestCase
                    
21{
                    
40        $shell = new Shell($this->getConfig());
                    
41        $shell->setScopeVariables(compact('one', 'two', 'three', '__psysh__', '_', '_e'));
                    
42
                    
65    {
                    
66        $config = $this->getConfig(array('configFile' => __DIR__ . '/../../fixtures/empty.php'));
                    
67
                    
76        $config = $this->getConfig(array(
                    
77            'defaultIncludes' => array('/file.php'),
                    
78            'configFile'      => __DIR__ . '/../../fixtures/empty.php',
                    
83        $includes = $shell->getIncludes();
                    
84        $this->assertEquals('/file.php', $includes[0]);
                    
85    }
                    
                
haml.php https://bitbucket.org/mintao/yii-phamlp.git | PHP | 287 lines
                    
1<?php
                    
2/**
                    
13 *   See below and HamlParser for a description of options
                    
14 * * Add the following line in your app_controller.php
                    
15 *   <pre>var $view = 'Haml';</pre>
                    
95	 * expanded: block tags have their own lines as does content which is indented
                    
96	 * compact: block tags and their content go on one line
                    
97	 * compressed: all unneccessary whitepaces is removed. If ugly is true this
                    
160
                    
161		App::import('Vendor', 'HamlParser', array('file'=>'phamlp'.DS.'haml'.DS.'HamlParser.php'));
                    
162		$this->haml = new HamlParser($options);
                    
165	/**
                    
166	 * Renders a piece of PHP with provided parameters and returns HTML, XML, or
                    
167	 * any other string.
                    
                
Mailer.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 504 lines
                    
1<?php namespace Illuminate\Mail;
                    
2
                    
108	{
                    
109		$this->from = compact('address', 'name');
                    
110	}
                    
166
                    
167		return $this->queue->push('mailer@handleQueuedMessage', compact('view', 'data', 'callback'), $queue);
                    
168	}
                    
197
                    
198		return $this->queue->later($delay, 'mailer@handleQueuedMessage', compact('view', 'data', 'callback'), $queue);
                    
199	}
                    
                
repo-auth-type.cpp https://gitlab.com/alvinahmadov2/hhvm | C++ | 387 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
15*/
                    
16#include "hphp/runtime/base/repo-auth-type.h"
                    
17
                    
                
ArticlesController.php https://gitlab.com/forby/Trace | PHP | 476 lines
                    
1<?php namespace App\Http\Controllers;
                    
2
                    
38		
                    
39		return view('articles.index', compact('articles', 'top_tags'));
                    
40	}
                    
61		// Show the view
                    
62		return view('articles.create', compact('tags', 'categories', 'user', 'users'));
                    
63	}
                    
118
                    
119		return view('articles.show', compact('article', 'relatedArticles', 'user'));
                    
120	}
                    
139		// Show the edit view
                    
140		return view ('articles.edit', compact('article', 'tags', 'categories', 'user'));
                    
141	}
                    
225				if ( $author->email ) {
                    
226					Mail::send('emails.published', compact('author', 'article'), function( $message ) use ( $author ) {
                    
227			            $message->to($author->email, $author->name);
                    
                
MooTools12core.i18n.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 461 lines
                    
1<?php
                    
2/**
                    
12$messages['en'] = array(
                    
13	'mootools12core-desc' => 'Adds [http://mootools.net mootools-1.2-core-yc.js], a compact JavaScript framework, to each page',
                    
14);
                    
84$messages['ca'] = array(
                    
85	'mootools12core-desc' => 'Afegeix [http://mootools.net mootools-1.2-core-yc.js], un entorn de treball JavaScript compacte a cada pàgina',
                    
86);
                    
128$messages['es'] = array(
                    
129	'mootools12core-desc' => 'Añade [http://mootools.net mootools-1.2-core-yc.js], un entorno JavaScript compacto, a cada página',
                    
130);
                    
152$messages['fr'] = array(
                    
153	'mootools12core-desc' => 'Ajoute [http://mootools.net mootools-1.2-core-yc.js], un framework JavaScript compact, à chaque page',
                    
154);
                    
159$messages['gl'] = array(
                    
160	'mootools12core-desc' => 'Engade [http://mootools.net mootools-1.2-core-yc.js], un armazón de JavaScript compacto, a cada páxina',
                    
161);
                    
                
Service.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24#require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
30 * @subpackage Server
                    
31 * @version    $Id: Service.php 12510 2008-11-10 16:29:34Z matthew $
                    
32 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
                    
132        if (null == $this->getName()) {
                    
133            #require_once 'Zend/Json/Server/Exception.php';
                    
134            throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided');
                    
169        if (!preg_match($this->_nameRegex, $name)) {
                    
170            #require_once 'Zend/Json/Server/Exception.php';
                    
171            throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));
                    
197        if (!in_array($transport, $this->_transportTypes)) {
                    
198            #require_once 'Zend/Json/Server/Exception.php';
                    
199            throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));
                    
                
rules.php https://github.com/FullService/joomla.git | PHP | 286 lines
                    
1<?php
                    
2/**
                    
78
                    
79		// Use the compact form for the content rules (to be deprecated).
                    
80//		if (!empty($component) && $section != 'component') {
                    
                
array.idl.php https://github.com/diegoIta/hiphop-php.git | PHP | 376 lines
                    
1<?php
                    
2
                    
2
                    
3include_once 'base.php';
                    
4
                    
177
                    
178f('compact', VariantMap,
                    
179  array('varname' => Variant),
                    
                
class_symfony_1_1_component_1_1_http_foundation_1_1_universal_class_loader.tex https://github.com/niieani/napkin.git | LaTeX | 173 lines
                    
5\subsection*{\-Public \-Member \-Functions}
                    
6\begin{DoxyCompactItemize}
                    
7\item 
                    
28\hyperlink{class_symfony_1_1_component_1_1_http_foundation_1_1_universal_class_loader_a8326a997d0cfe76d80196f60d240d144}{load\-Class} (\$class)
                    
29\end{DoxyCompactItemize}
                    
30\subsection*{\-Protected \-Attributes}
                    
49
                    
50$\ast$ \-The technical interoperability standards for \-P\-H\-P 5.\-3 namespaces and class names (\href{http://groups.google.com/group/php-standards/web/psr-0-final-proposal}{\tt http\-://groups.\-google.\-com/group/php-\/standards/web/psr-\/0-\/final-\/proposal});
                    
51
                    
51
                    
52$\ast$ \-The \hyperlink{namespace_p_e_a_r}{\-P\-E\-A\-R} naming convention for classes (\href{http://pear.php.net/}{\tt http\-://pear.\-php.\-net/}).
                    
53
                    
172\item 
                    
173vendor/symfony/lib/\-Symfony/\-Component/\-Http\-Foundation/\-Universal\-Class\-Loader.\-php\end{DoxyCompactItemize}
                    
174
                    
                
admin.php https://github.com/ngonchan/Kooshy.git | PHP | 374 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
76				$users = KMS::instance('site')->users->find_all();
                    
77				$this->template->content = View::factory('kms/admin-users', compact('users'));
                    
78				break;
                    
97				$user['role'] = $role;
                    
98				$this->template->content = View::factory('kms/admin-users-edit', compact('user', 'roles'));
                    
99				break;
                    
114				$content = KMS::instance('site')->content->find_all();
                    
115				$this->template->content = View::factory('kms/content-overview', compact('content'));
                    
116				break;
                    
122				}
                    
123				$this->template->content = View::factory('kms/content-add', compact('content'));
                    
124				break;
                    
132				$content = $content->as_array();
                    
133				$this->template->content = View::factory('kms/content-edit', compact('content'));
                    
134				break;
                    
                
rules.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 312 lines
                    
1<?php
                    
2/**
                    
86
                    
87		// Use the compact form for the content rules (deprecated).
                    
88		//if (!empty($component) && $section != 'component') {
                    
                
module.js https://github.com/arborrow/moodle.git | JavaScript | 259 lines
                    
22        // Properties.
                    
23        api : M.cfg.wwwroot + '/mod/chat/chat_ajax.php?sesskey=' + M.cfg.sesskey,  // The path to the ajax callback script.
                    
24        cfg : {},                                       // A configuration variable.
                    
120                {text: M.util.get_string('bubble', 'mod_chat'), url: this.cfg.chaturl + '&theme=bubble'},
                    
121                {text: M.util.get_string('compact', 'mod_chat'), url: this.cfg.chaturl + '&theme=compact'}
                    
122            ]);
                    
                
pagination.rst https://github.com/cakephp/docs.git | ReStructuredText | 294 lines
                    
11part of every application and used to cause many headaches for developers.
                    
12CakePHP eases the burden on the developer by providing a terse way to
                    
13paginate data.
                    
14
                    
15Pagination in CakePHP controllers is done through the ``paginate()`` method. You
                    
16then use :php:class:`~Cake\\View\\Helper\\PaginatorHelper` in your view templates
                    
56While you can include any of the options supported by
                    
57:php:meth:`~Cake\\ORM\\Table::find()` such as ``fields`` in your pagination
                    
58settings. It is cleaner and simpler to bundle your pagination options into
                    
84            //
                    
85            // Our custom finder is called findTagged inside ArticlesTable.php
                    
86            // which is why we're using `tagged` as the key.
                    
94            $articles = $this->paginate($this->Articles, $settings);
                    
95            $this->set(compact('articles', 'tags'));
                    
96        }
                    
                
ListController.php https://gitlab.com/gideonmarked/atls-express | PHP | 486 lines
                    
1<?php namespace Backend\Behaviors;
                    
2
                    
278        if (!isset($this->listDefinitions[$definition])) {
                    
279            throw new ApplicationException(Lang::get('backend::lang.list.missing_parent_definition', compact('definition')));
                    
280        }
                    
345
                    
346        return implode(PHP_EOL, $collection);
                    
347    }
                    
                
Form.php https://github.com/ochoto/framework-benchs.git | PHP | 353 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Lithium: the most rad php framework
                    
4 *
                    
5 * @copyright     Copyright 2010, Union of RAD (http://union-of-rad.org)
                    
6 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
                    
7 */
                    
21 * $post = Post::find(1);
                    
22 * return compact('post');
                    
23 *
                    
211			return $self->invokeMethod('_render', array(
                    
212				$method, $template, compact('url', 'options')
                    
213			));
                    
214		};
                    
215		return $this->_filter(__METHOD__, compact('binding', 'options'), $filter);
                    
216	}
                    
                
core.h https://gitlab.com/freedmpure/bitcoin | C Header | 476 lines
                    
3// Distributed under the MIT/X11 software license, see the accompanying
                    
4// file COPYING or http://www.opensource.org/licenses/mit-license.php.
                    
5
                    
242
                    
243/** wrapper for CTxOut that provides a more compact serialization */
                    
244class CTxOutCompressor
                    
                
Service.php https://github.com/tuteke/isaved.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24#require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
30 * @subpackage Server
                    
31 * @version    $Id: Service.php 16214 2009-06-21 19:34:03Z thomas $
                    
32 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
132        if (null == $this->getName()) {
                    
133            #require_once 'Zend/Json/Server/Exception.php';
                    
134            throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided');
                    
169        if (!preg_match($this->_nameRegex, $name)) {
                    
170            #require_once 'Zend/Json/Server/Exception.php';
                    
171            throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));
                    
197        if (!in_array($transport, $this->_transportTypes)) {
                    
198            #require_once 'Zend/Json/Server/Exception.php';
                    
199            throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));
                    
                
class-wp-terms-list-table.php https://github.com/terry69/fluxflex_wordpress.git | PHP | 379 lines
                    
1<?php
                    
2/**
                    
308		if ( $count )
                    
309			$count = "<a href='link-manager.php?cat_id=$tag->term_id'>$count</a>";
                    
310		return $count;
                    
331	<form method="get" action=""><table style="display: none"><tbody id="inlineedit">
                    
332		<tr id="inline-edit" class="inline-edit-row" style="display: none"><td colspan="<?php echo $this->get_column_count(); ?>" class="colspanchange">
                    
333
                    
347			</div></fieldset>
                    
348	<?php
                    
349
                    
363		<p class="inline-edit-save submit">
                    
364			<a accesskey="c" href="#inline-edit" title="<?php _e( 'Cancel' ); ?>" class="cancel button-secondary alignleft"><?php _e( 'Cancel' ); ?></a>
                    
365			<?php $update_text = $tax->labels->update_item; ?>
                    
365			<?php $update_text = $tax->labels->update_item; ?>
                    
366			<a accesskey="s" href="#inline-edit" title="<?php echo esc_attr( $update_text ); ?>" class="save button-primary alignright"><?php echo $update_text; ?></a>
                    
367			<img class="waiting" style="display:none;" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />
                    
                
key.cpp https://gitlab.com/yenny.prathivi/bitcoin | C++ | 330 lines
                    
2// Distributed under the MIT software license, see the accompanying
                    
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
                    
4
                    
197
                    
198bool CKey::SignCompact(const uint256 &hash, std::vector<unsigned char>& vchSig) const {
                    
199    if (!fValid)
                    
205    assert(ret);
                    
206    secp256k1_ecdsa_recoverable_signature_serialize_compact(secp256k1_context_sign, (unsigned char*)&vchSig[1], &rec, &sig);
                    
207    assert(ret);
                    
                
trees.js https://bitbucket.org/pixelant/aloha.git | JavaScript | 336 lines
                    
4 * Copyright (c) 2010-2012 Gentics Software GmbH, Vienna, Austria.
                    
5 * Contributors http://aloha-editor.org/contribution.php 
                    
6 * 
                    
21 * As an additional permission to the GNU GPL version 2, you may distribute
                    
22 * non-source (e.g., minimized or compacted) forms of the Aloha-Editor
                    
23 * source code without the copy of the GNU GPL normally required,
                    
                
config.inc.php https://gitlab.com/gentotech/evotennissg | PHP | 263 lines
                    
5if(file_exists($wp_root . '/wp-load.php')) {
                    
6require_once($wp_root . "/wp-load.php");
                    
7} else if(file_exists($wp_root . '/wp-config.php')) {
                    
7} else if(file_exists($wp_root . '/wp-config.php')) {
                    
8require_once($wp_root . "/wp-config.php");
                    
9}else {
                    
28}
                    
29# Language of PHPFM.
                    
30$language       = "english";
                    
40# Login is handled by Wordpress in this hack
                    
41# DO NOT enable phpfm_auth, as it will likely break the script
                    
42$phpfm_auth     = FALSE;
                    
91     "layout.gif"     => "html htm shtml htm pdf",
                    
92     "script.gif"     => "php php4 php3 phtml phps conf sh shar csh ksh tcl cgi pl js",
                    
93     "image2.gif"     => "jpeg jpe jpg gif png bmp",
                    
                
sharebar.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 269 lines
                    
1<?php
                    
2/*
                    
42		$wpdb->query("INSERT INTO $table(enabled, position,name, big, small)
                    
43			VALUES('1','1','digg', '<script type=\"text/javascript\">(function() { var s = document.createElement(\'SCRIPT\'), s1 = document.getElementsByTagName(\'SCRIPT\')[0]; s.type = \'text/javascript\'; s.async = true; s.src = \'http://widgets.digg.com/buttons.js\'; s1.parentNode.insertBefore(s, s1); })(); </script><a class=\"DiggThisButton DiggMedium\"></a>', '<script type=\"text/javascript\">(function() { var s = document.createElement(\'SCRIPT\'), s1 = document.getElementsByTagName(\'SCRIPT\')[0]; s.type = \'text/javascript\'; s.async = true; s.src = \'http://widgets.digg.com/buttons.js\'; s1.parentNode.insertBefore(s, s1); })(); </script><a class=\"DiggThisButton DiggCompact\"></a>')");
                    
44		$wpdb->query("INSERT INTO $table(enabled, position,name, big, small)
                    
46		$wpdb->query("INSERT INTO $table(enabled, position,name, big, small)
                    
47			VALUES('0','3','facebook', '<iframe src=\"http://www.facebook.com/plugins/like.php?href=[url]&layout=box_count&show_faces=false&width=60&action=like&colorscheme=light&height=45\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:45px; height:60px;\" allowTransparency=\"true\"></iframe>', '<iframe src=\"http://www.facebook.com/plugins/like.php?href=[url]&layout=button_count&show_faces=false&width=85&action=like&colorscheme=light&height=21\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:85px; height:21px;\" allowTransparency=\"true\"></iframe>')");
                    
48		$wpdb->query("INSERT INTO $table(enabled, position,name, big, small)
                    
56		$wpdb->query("INSERT INTO $table(enabled, position,name, big, small)
                    
57			VALUES('0','8','stumbleupon', '<script src=\"http://www.stumbleupon.com/hostedbadge.php?s=5\"></script>', '<script src=\"http://www.stumbleupon.com/hostedbadge.php?s=2\"></script>')");
                    
58		$wpdb->query("INSERT INTO $table(enabled, position,name, big, small)
                    
60		$wpdb->query("INSERT INTO $table(enabled, position,name, big, small)
                    
61			VALUES('0','10','designfloat', '<script type=\"text/javascript\">submit_url = \'[url]\';</script><script type=\"text/javascript\" src=\"http://www.designfloat.com/evb2/button.php\"></script>', '<script type=\"text/javascript\">submit_url = \'[url]\';</script><script type=\"text/javascript\" src=\"http://www.designfloat.com/evb/button.php\"></script>')");
                    
62		$wpdb->query("INSERT INTO $table(enabled, position,name, big, small)
                    
161		if(!$width) $width = 1000;
                    
162		echo "\n"; ?><script type="text/javascript">jQuery(document).ready(function($) { $('.zdgdsfgdf').sharebar({horizontal:'<?php echo $hori; ?>',swidth:'<?php echo $swidth; ?>',minwidth:<?php echo $width; ?>,position:'<?php echo $position; ?>',leftOffset:<?php echo $leftoffset; ?>,rightOffset:<?php echo $rightoffset; ?>}); });</script><?php echo "\n"; ?><!-- Sharebar Plugin by Monjurul Dolon (http://mdolon.com/) - more info at: http://devgrow.com/sharebar-wordpress-plugin --><?php echo "\n"; ?><?php
                    
163	}
                    
                
W3CReference.php https://github.com/FabienD/symfony.git | PHP | 400 lines
                    
1<?php
                    
2
                    
232        'colspan' => true,
                    
233        'compact' => true,
                    
234        'content' => true,
                    
                
Table.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 410 lines
                    
1<?php
                    
2
                    
395
                    
396        $compact = new TableStyle();
                    
397        $compact
                    
406            'borderless' => $borderless,
                    
407            'compact' => $compact,
                    
408        );
                    
                
externallib_test.php https://github.com/Beedell/moodle.git | PHP | 286 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
30
                    
31require_once($CFG->dirroot . '/webservice/tests/helpers.php');
                    
32
                    
87            'tool_mobile_disabledfeatures' => '',
                    
88            'launchurl' => "$CFG->wwwroot/$CFG->admin/tool/mobile/launch.php",
                    
89            'warnings' => array()
                    
98        set_config('logo', 'mock.png', 'core_admin');
                    
99        set_config('logocompact', 'mock.png', 'core_admin');
                    
100
                    
108        }
                    
109        if ($compactlogourl = $OUTPUT->get_compact_logo_url()) {
                    
110            $expected['compactlogourl'] = $compactlogourl->out(false);
                    
122        global $CFG, $SITE;
                    
123        require_once($CFG->dirroot . '/course/format/lib.php');
                    
124
                    
                
class_images.tex https://gitlab.com/karl3/gs_libs | LaTeX | 223 lines
                    
4\subsection*{Static Public Member Functions}
                    
5\begin{DoxyCompactItemize}
                    
6\item 
                    
68
                    
69Definition at line 281 of file Images.\-class.\-php.
                    
70
                    
82
                    
83Definition at line 40 of file Images.\-class.\-php.
                    
84
                    
118)\hspace{0.3cm}{\ttfamily [static]}}}\label{class_images_a9fd2462b057c4b6bbe052a757addad15}
                    
119Thanks to Ze\-Badger for original example, and Davide Gualano for pointing me to it Original at \href{http://it.php.net/manual/en/function.imagecreatefromgif.php#59787}{\tt http\-://it.\-php.\-net/manual/en/function.\-imagecreatefromgif.\-php\#59787}
                    
120
                    
222\item 
                    
223/\-Users/karlgroves/\-Documents/sites/gs\-\_\-libs/Images.\-class.\-php\end{DoxyCompactItemize}
                    
224
                    
                
RegisterCompanyController.php https://gitlab.com/pedramkousari/soratjalase | PHP | 452 lines
                    
1<?php namespace App\Http\Controllers\Customer;
                    
2
                    
47                '.form-step1',
                    
48                view('customer.frm.inc.register_company_step1',compact('type', 'step_cnt', 'documentId', 'companyId' , 'company'))->render()
                    
49            ]);
                    
69                '.form-step2',
                    
70                view('customer.frm.inc.register_company_step2',compact('userPartner','companyPartner'))->render()
                    
71            ]);
                    
91                '.form-step3',
                    
92                view('customer.frm.inc.register_company_step3',compact('userPartner','json_address'))->render()
                    
93        ]);
                    
113                '.form-step4',
                    
114                view('customer.frm.inc.register_company_step4',compact('boardType','userPartner','userBoard'))->render()
                    
115        ]);
                    
126                '.form-step5',
                    
127                view('customer.frm.inc.register_company_step5',compact('companyName'))->render()
                    
128            ]);
                    
                
lang_sql.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 178 lines
                    
1<?php
                    
2//generated at 17.03.2007
                    
5$lang['sql_view_normal']="Exibir: normal";
                    
6$lang['sql_view_compact']="Exibir: compacto";
                    
7$lang['import_notable']="Nenhuma tabela foi selecionada para importação!";
                    
                
CollectionTest.php https://github.com/rmarscher/lithium.git | PHP | 373 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Lithium: the most rad php framework
                    
4 *
                    
5 * @copyright     Copyright 2012, Union of RAD (http://union-of-rad.org)
                    
6 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
                    
7 */
                    
250		$data = array('hello', 'goodbye', 'foo' => array('bar', 'baz' => 'dib'));
                    
251		$collection = new Collection(compact('data'));
                    
252
                    
284		$data = array(
                    
285			'test' => new Collection(array('data' => compact('obj'))),
                    
286			'obj' => $obj
                    
300		);
                    
301		$expected = array('test' => compact('obj')) + compact('obj');
                    
302		$this->assertIdentical($expected, $collection->to('array', compact('handlers')));
                    
                
DbConfigTask.php https://github.com/suzuki/candycane.git | PHP | 384 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * The DbConfig Task handles creating and updating the database.php
                    
4 *
                    
4 *
                    
5 * PHP 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @since         CakePHP(tm) v 1.2
                    
15 * @since         CakePHP(tm) v 1.2
                    
16 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
17 */
                    
                
DumpDataCollector.php https://gitlab.com/kimting254/wbms | PHP | 298 lines
                    
1<?php
                    
2
                    
43        $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
                    
44        $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8';
                    
45        $this->requestStack = $requestStack;
                    
71
                    
72        $trace = PHP_VERSION_ID >= 50306 ? DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS : true;
                    
73        if (PHP_VERSION_ID >= 50400) {
                    
130
                    
131        $this->data[] = compact('data', 'name', 'file', 'line', 'fileExcerpt');
                    
132        ++$this->dataCount;
                    
154            if ($response->headers->has('Content-Type') && false !== strpos($response->headers->get('Content-Type'), 'html')) {
                    
155                $this->dumper = new HtmlDumper('php://output', $this->charset);
                    
156            } else {
                    
156            } else {
                    
157                $this->dumper = new CliDumper('php://output', $this->charset);
                    
158            }
                    
                
class.jetpack-options.php https://gitlab.com/hunt9310/ras | PHP | 256 lines
                    
1<?php
                    
2
                    
9
                    
10	public static function get_option_names( $type = 'compact' ) {
                    
11		switch ( $type ) {
                    
11		switch ( $type ) {
                    
12		case 'non-compact' :
                    
13		case 'non_compact' :
                    
71		if ( is_array( $name ) ) {
                    
72			$compact_names = array();
                    
73			foreach ( array_keys( self::$grouped_options ) as $_group ) {
                    
73			foreach ( array_keys( self::$grouped_options ) as $_group ) {
                    
74				$compact_names = array_merge( $compact_names, self::get_option_names( $_group ) );
                    
75			}
                    
76
                    
77			$result = array_diff( $name, self::get_option_names( 'non_compact' ), $compact_names );
                    
78
                    
                
update.php https://bitbucket.org/sephora99/kmirock.git | PHP | 420 lines
                    
27	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
28	$php_version = phpversion();
                    
29
                    
61		'version'           => $wp_version,
                    
62		'php'               => $php_version,
                    
63		'locale'            => $locale,
                    
146	// Check for updated every 60 minutes if hitting update pages; else, check every 12 hours.
                    
147	$timeout = in_array( current_filter(), array( 'load-plugins.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200;
                    
148	$time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked );
                    
174
                    
175	$to_send = (object) compact('plugins', 'active');
                    
176
                    
225	// Check for updated every 60 minutes if hitting update pages; else, check every 12 hours.
                    
226	$timeout = in_array( current_filter(), array( 'load-themes.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200;
                    
227	$time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time( ) - $last_update->last_checked );
                    
                
RecordSetTest.php https://github.com/brtriver/sukonv.git | PHP | 420 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Lithium: the most rad php framework
                    
4 *
                    
5 * @copyright     Copyright 2010, Union of RAD (http://union-of-rad.org)
                    
6 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
                    
7 */
                    
67
                    
68		$this->_recordSet = new MockRecordSet(compact('result', 'model') + array('exists' => true));
                    
69
                    
71		$result->records = array_merge(array(false), $this->_records);
                    
72		$this->_objectRecordSet = new MockRecordSet(compact('result', 'model') + array(
                    
73			'exists' => true
                    
                
eiffel.php https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | PHP | 395 lines
                    
1<?php
                    
2/*************************************************************************************
                    
2/*************************************************************************************
                    
3 * eiffel.php
                    
4 * ----------
                    
253            'COMPARABLE',
                    
254            'COMPACT_TREE_CURSOR',
                    
255            'COMPACT_CURSOR_TREE',
                    
                
AviaryFX.php https://github.com/aviaryapi/AviaryFxPhp.git | PHP | 344 lines
                    
54			$ts = $this->getTime();
                    
55			$paramsToHash = compact('api_key', 'platform', 'hardware_version', 'software_version', 'app_version', 'ts', 'version');
                    
56			$api_sig = $this->getApiSignature($paramsToHash);
                    
56			$api_sig = $this->getApiSignature($paramsToHash);
                    
57			$params = compact('api_key', 'platform', 'hardware_version', 'software_version', 'app_version', 'ts', 'version', 'api_sig');
                    
58			$url = self::SERVER . self::GET_FILTERS_URL;
                    
98			$file = '@' . $filename;
                    
99			$params = compact('api_key', 'platform', 'hardware_version', 'software_version', 'app_version', 'ts', 'version', 'file', 'api_sig');
                    
100			$url = self::SERVER . self::UPLOAD_URL;
                    
139			$api_sig = $this->getApiSignature($paramsToHash);
                    
140			$params = compact(	'api_key', 'platform', 'hardware_version', 'software_version', 'app_version', 'ts', 'version', 'calltype', 'backgroundcolor',
                    
141								'format', 'quality', 'scale', 'filepath', 'filterid', 'cols', 'rows', 'cellwidth', 'cellheight', 'api_sig');
                    
268		/**
                    
269		 * Converts a SimpleXMLObject into an array. http://php.net/manual/en/book.simplexml.php
                    
270		 * 
                    
                
advanced-installation.rst https://github.com/steinkel/docs.git | ReStructuredText | 353 lines
                    
3
                    
4Pode haver algumas situações onde você deseja colocar os diretórios do CakePHP
                    
5em diferentes locais no sistema de arquivos. Isto pode ser devido a uma
                    
7aplicações compartilhem as bibliotecas do Cake. Esta seção descreve como
                    
8espalhar seus diretórios do CakePHP em um sistema de arquivos.
                    
9
                    
9
                    
10Em primeiro lugar, note que há três partes principais de uma aplicação CakePHP.
                    
11
                    
11
                    
12#. As bibliotecas do núcleo do CakePHP, em /cake.
                    
13#. O código da sua aplicação, em /app.
                    
23
                    
24-  /app/webroot/index.php
                    
25-  /app/webroot/test.php (se você utilizar o recurso de :doc:`Testes </development/testing>`.)
                    
                
about.css https://gitlab.com/webkod3r/tripolis | CSS | 481 lines
                    
353
                    
354.about-wrap .compact {
                    
355	margin-bottom: 0
                    
366
                    
367.about-wrap .compact .wp-person {
                    
368	height: auto;
                    
381
                    
382.about-wrap .compact .wp-person .gravatar {
                    
383	width: 30px;
                    
408
                    
409.freedoms-php .about-wrap ol {
                    
410	margin: 40px 60px;
                    
412
                    
413.freedoms-php .about-wrap ol li {
                    
414	list-style-type: decimal;
                    
                
Builder.php https://gitlab.com/jjpa2018/dashboard | PHP | 433 lines
                    
1<?php
                    
2
                    
383
                    
384        return Container::getInstance()->make(Blueprint::class, compact('table', 'callback', 'prefix'));
                    
385    }
                    
                
rules.php https://github.com/andergmartins/joomla-platform.git | PHP | 318 lines
                    
1<?php
                    
2/**
                    
81
                    
82		// Use the compact form for the content rules (deprecated).
                    
83
                    
                
DatabaseStore.php https://gitlab.com/ealexis.t/trends | PHP | 266 lines
                    
1<?php
                    
2
                    
109        try {
                    
110            $this->table()->insert(compact('key', 'value', 'expiration'));
                    
111        } catch (Exception $e) {
                    
111        } catch (Exception $e) {
                    
112            $this->table()->where('key', '=', $key)->update(compact('value', 'expiration'));
                    
113        }
                    
                
helper.php https://github.com/phpbb/area51-phpbb3.git | PHP | 375 lines
                    
5*
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
18use phpbb\config\config;
                    
19use phpbb\cron\manager;
                    
20use phpbb\db\driver\driver_interface;
                    
98	 * @param string $admin_path Admin path
                    
99	 * @param string $php_ext PHP extension
                    
100	 * @param bool $sql_explain Flag whether to display sql explain
                    
120		$this->admin_path = $root_path . $admin_path;
                    
121		$this->php_ext = $php_ext;
                    
122		$this->sql_explain = $sql_explain;
                    
307				'TRANSLATION_INFO'		=> $this->language->is_set('TRANSLATION_INFO') ? $this->language->lang('TRANSLATION_INFO') : '',
                    
308				'CREDIT_LINE'			=> $this->language->lang('POWERED_BY', '<a href="https://www.phpbb.com/">phpBB</a>&reg; Forum Software &copy; phpBB Limited'),
                    
309
                    
                
PaginatorComponent.php https://bitbucket.org/albertoprb/fleetster-challenge.git | PHP | 417 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://cakephp.org CakePHP(tm) Project
                    
16 * @package       Cake.Controller.Component
                    
16 * @package       Cake.Controller.Component
                    
17 * @since         CakePHP(tm) v 2.0
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
69 * @package       Cake.Controller.Component
                    
70 * @link http://book.cakephp.org/2.0/en/core-libraries/components/pagination.html
                    
71 */
                    
                
BootstrapPaginatorHelper.php https://bitbucket.org/reyx/p0001festivalcachorroquente.git | PHP | 254 lines
                    
4 *
                    
5 * PHP 5
                    
6 *
                    
12 * @license    MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
13 * @since      CakePHP(tm) v 2.1.1
                    
14 */
                    
60        unset($options['rel']);
                    
61        return $this->Html->tag($tag, $this->link($title, $url, array_merge($options, compact('escape'))), compact('class'));
                    
62    }
                    
150            $out = $before . $this->Html->tag(
                    
151                $tag, $this->link($last, array('page' => $params['pageCount']), $options), compact('class')
                    
152            );
                    
202                if ($offset < $start - 1) {
                    
203                    $out .= $this->first($offset, compact('tag', 'separator', 'ellipsis', 'class'));
                    
204                } else {
                    
                
about.css https://gitlab.com/kath.de/cibedo_cibedo.de | CSS | 537 lines
                    
344
                    
345.about-wrap ul.compact {
                    
346	margin-bottom: 0
                    
357
                    
358.about-wrap ul.compact li.wp-person {
                    
359	height: auto;
                    
372
                    
373.about-wrap ul.compact li.wp-person img.gravatar {
                    
374	width: 30px;
                    
396
                    
397.freedoms-php .about-wrap ol {
                    
398	margin: 40px 60px;
                    
400
                    
401.freedoms-php .about-wrap ol li {
                    
402	list-style-type: decimal;
                    
                
Ftp.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 448 lines
                    
1<?php
                    
2
                    
186    {
                    
187        $stream = fopen('php://temp', 'w+b');
                    
188        fwrite($stream, $contents);
                    
217
                    
218        return compact('path', 'visibility');
                    
219    }
                    
397    {
                    
398        $stream = fopen('php://temp', 'w+');
                    
399        $result = ftp_fget($this->getConnection(), $stream, $path, $this->transferMode);
                    
407
                    
408        return compact('stream');
                    
409    }
                    
421
                    
422        return compact('visibility');
                    
423    }
                    
                
tlib.vim https://gitlab.com/jeichert/vimrc | Vim Script | 219 lines
                    
2" @Author:      Thomas Link (mailto:micathom AT gmail com?subject=vim-tLib)
                    
3" @Website:     http://www.vim.org/account/profile.php?user_id=4037
                    
4" @License:     GPL (see http://www.gnu.org/licenses/gpl.txt)
                    
24
                    
25TAssert IsEqual(tlib#list#Compact([]), [])
                    
26TAssert IsEqual(tlib#list#Compact([0,1,2,3,[], {}, ""]), [1,2,3])
                    
                
BaseCrudController.php https://gitlab.com/joepa37/ierschool | PHP | 402 lines
                    
1<?php
                    
2
                    
104
                    
105        return $this->renderIsAjax($this->directory.'index', compact('dataProvider', 'searchModel'));
                    
106    }
                    
153
                    
154        return $this->renderIsAjax($this->directory.'create', compact('model'));
                    
155    }
                    
190
                    
191        return $this->renderIsAjax($this->directory.'update', compact('model'));
                    
192    }
                    
                
MySql.php https://github.com/brtriver/sukonv.git | PHP | 437 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Lithium: the most rad php framework
                    
4 *
                    
5 * @copyright     Copyright 2010, Union of RAD (http://union-of-rad.org)
                    
6 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
                    
7 */
                    
90	/**
                    
91	 * Check for required PHP extension, or supported database feature.
                    
92	 *
                    
172		$_config = $this->_config;
                    
173		$params = compact('model');
                    
174
                    
203	public function describe($entity, array $meta = array()) {
                    
204		$params = compact('entity', 'meta');
                    
205		return $this->_filter(__METHOD__, $params, function($self, $params) {
                    
                
func-emitter.h https://github.com/soitun/hiphop-php.git | C Header | 420 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
18
                    
19#include "hphp/runtime/base/attr.h"
                    
20#include "hphp/runtime/base/datatype.h"
                    
                
s3rl.php https://github.com/drobbins/s3db.git | PHP | 455 lines
                    
1<?php
                    
2#this script accepts inputs of url,public key and, in case an update is attemtped, an encripted message as well
                    
15else {
                    
16	echo 's3rl.php is a function to retrieve the url of a specific Did. For documentation and usage please refer to  <a href="http://s3db.org/">s3db.org</a>';
                    
17
                    
32
                    
33list($regValid, $msg) = registerURL(compact('url', 'publicKey', 'Did', 's3rl', 'newUrl', 'case', 'message','name','format'));
                    
34
                    
48	$format =($_REQUEST['format']=='')?'html':$_REQUEST['format'];
                    
49	$z = compact('data','cols', 'format');
                    
50	
                    
68
                    
69include_once('config.inc.php');
                    
70$key=$GLOBALS['deployment_project']['key'];
                    
70$key=$GLOBALS['deployment_project']['key'];
                    
71include 'core.header.php';
                    
72#include (S3DB_SERVER_ROOT.'/webActions.php');
                    
                
projectsController.php https://gitlab.com/php2laravel/php-project-boost | PHP | 341 lines
                    
1<?php
                    
2
                    
41
                    
42        return view('pages.projects', compact('projects', 'designershort'));
                    
43    }
                    
130        //-----------------------DB-----------------------------//
                    
131        //return view('pages.showProject', compact('project', 'palette'));
                    
132        // votes
                    
196        $tags = Tag::lists('name', 'id');
                    
197        return view('pages.projects.edit', compact('project', 'tags'));
                    
198    }
                    
293        $tags = Tag::lists('name', 'id');
                    
294        return view('pages.projectsCreate', compact('tags'));
                    
295
                    
                
ResourceRegistrar.php https://gitlab.com/phanthanh9787/crud-user | PHP | 359 lines
                    
1<?php
                    
2
                    
83
                    
84        return $this->router->group(compact('prefix'), $callback);
                    
85    }
                    
                
Attribute.js https://github.com/Wkasel/qooxdoo.git | JavaScript | 389 lines
                    
11     LGPL: http://www.gnu.org/licenses/lgpl.html
                    
12     EPL: http://www.eclipse.org/org/documents/epl-v10.php
                    
13     See the LICENSE file in the project's top-level directory for details.
                    
30     License:
                    
31       MIT: http://www.opensource.org/licenses/mit-license.php
                    
32
                    
116      {
                    
117        compact  : 1,
                    
118        nowrap   : 1,
                    
                
LocaleController.php https://gitlab.com/campus-academy/krowkaramel | PHP | 162 lines
                    
1<?php
                    
2/**
                    
123        if( 0 === $nfiles ){
                    
124            return $this->view('admin/errors/no-locale', compact('breadcrumb','locale') );
                    
125        }
                    
157
                    
158        return $this->view( 'admin/bundle/locale', compact('breadcrumb','translations','types','npofiles','modified') );
                    
159    }
                    
                
chat.php https://github.com/mackensen/moodle.git | PHP | 183 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
40$string['configserverport'] = 'Port to use on the server for the daemon';
                    
41$string['compact'] = 'Compact';
                    
42$string['coursetheme'] = 'Course theme';
                    
                
_directories.erb https://gitlab.com/gutocarvalho/puppetlabs-apache | Ruby HTML | 283 lines
                    
82    <%- end -%>
                    
83    <%- if directory['php_flags'] and ! directory['php_flags'].empty? -%>
                    
84      <%- directory['php_flags'].sort.each do |flag,value| -%>
                    
88    <%- end -%>
                    
89    <%- if directory['php_values'] and ! directory['php_values'].empty? -%>
                    
90      <%- directory['php_values'].sort.each do |key,value| -%>
                    
93    <%- end -%>
                    
94    <%- if directory['php_admin_flags'] and ! directory['php_admin_flags'].empty? -%>
                    
95      <%- directory['php_admin_flags'].sort.each do |flag,value| -%>
                    
99    <%- end -%>
                    
100    <%- if directory['php_admin_values'] and ! directory['php_admin_values'].empty? -%>
                    
101      <%- directory['php_admin_values'].sort.each do |key,value| -%>
                    
192    <%- if directory['suphp'] and @suphp_engine == 'on' -%>
                    
193    suPHP_UserGroup <%= directory['suphp']['user'] %> <%= directory['suphp']['group'] %>
                    
194    <%- end -%>
                    
                
media.php https://github.com/bb-dev/cakephp2x.git | PHP | 258 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5.x
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @package       cake
                    
16 * @subpackage    cake.cake.libs.view
                    
17 * @since         CakePHP(tm) v 1.2.0.5714
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
32		'ccad' => 'application/clariscad', 'cdf' => 'application/x-netcdf', 'class' => 'application/octet-stream',
                    
33		'cpio' => 'application/x-cpio', 'cpt' => 'application/mac-compactpro', 'csh' => 'application/x-csh',
                    
34		'csv' => 'application/csv', 'dcr' => 'application/x-director', 'dir' => 'application/x-director',
                    
                
DBCfmt.h https://github.com/Teiby1/lastDivision-Repo.git | C Header | 127 lines
                    
36const char ChatChannelsEntryfmt[]="nixssssssssssssssssxxxxxxxxxxxxxxxxxx";
                    
37                                                            // ChatChannelsEntryfmt, index not used (more compact store)
                    
38const char ChrClassesEntryfmt[]="nxixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxixii";
                    
55const char GemPropertiesEntryfmt[]="nixxi";
                    
56const char GlyphPropertiesfmt[]="niii";
                    
57const char GlyphSlotfmt[]="nii";
                    
                
system.routing.yml https://gitlab.com/geeta7/drupal | YAML | 477 lines
                    
129
                    
130system.admin_compact_page:
                    
131  path: '/admin/compact/{mode}'
                    
132  defaults:
                    
133    _controller: 'Drupal\system\Controller\SystemController::compactPage'
                    
134    mode: 'off'
                    
299
                    
300system.php:
                    
301  path: '/admin/reports/status/php'
                    
302  defaults:
                    
303    _controller: 'Drupal\system\Controller\SystemInfoController::php'
                    
304  requirements:
                    
453system.db_update:
                    
454  path: '/update.php/{op}'
                    
455  defaults:
                    
                
default_social_buttons.php https://github.com/joomleiros/tpl_joomleiros.git | PHP | 290 lines
                    
49					<td width="300" class="key">
                    
50						<span class="editlinktip hasTip" title="<?php echo JText::_( 'COM_EASYBLOG_SETTINGS_SOCIALSHARE_BUTTON_SHOW_IN_FRONTPAGE' ); ?>::<?php echo JText::_('COM_EASYBLOG_SETTINGS_SOCIALSHARE_BUTTON_SHOW_IN_FRONTPAGE_DESC'); ?>">
                    
51							<?php echo JText::_( 'COM_EASYBLOG_SETTINGS_SOCIALSHARE_BUTTON_SHOW_IN_FRONTPAGE' ); ?>
                    
60					<td width="300" class="key">
                    
61						<span class="editlinktip hasTip" title="<?php echo JText::_( 'COM_EASYBLOG_SETTINGS_SOCIALSHARE_BUTTON_ENABLE_RTL' ); ?>::<?php echo JText::_('COM_EASYBLOG_SETTINGS_SOCIALSHARE_BUTTON_ENABLE_RTL_DESC'); ?>">
                    
62							<?php echo JText::_( 'COM_EASYBLOG_SETTINGS_SOCIALSHARE_BUTTON_ENABLE_RTL' ); ?>
                    
70					<td width="300" class="key">
                    
71						<span class="editlinktip hasTip" title="<?php echo JText::_( 'COM_EASYBLOG_SETTINGS_SOCIALSHARE_BUTTON_PROVIDER' ); ?>::<?php echo JText::_('COM_EASYBLOG_SETTINGS_SOCIALSHARE_BUTTON_PROVIDER_DESC'); ?>">
                    
72							<?php echo JText::_( 'COM_EASYBLOG_SETTINGS_SOCIALSHARE_BUTTON_PROVIDER' ); ?>
                    
94					<td width="300" class="key">
                    
95						<span class="editlinktip hasTip" title="<?php echo JText::_( 'COM_EASYBLOG_SETTINGS_SOCIALSHARE_PINGOMATIC_ENABLE' ); ?>::<?php echo JText::_('COM_EASYBLOG_SETTINGS_SOCIALSHARE_PINGOMATIC_ENABLE_DESC'); ?>">
                    
96							<?php echo JText::_( 'COM_EASYBLOG_SETTINGS_SOCIALSHARE_PINGOMATIC_ENABLE' ); ?>
                    
111					<td width="300" class="key">
                    
112						<span class="editlinktip hasTip" title="<?php echo JText::_( 'COM_EASYBLOG_SETTINGS_SOCIALSHARE_GOOGLEBUZZ_ENABLE' ); ?>::<?php echo JText::_('COM_EASYBLOG_SETTINGS_SOCIALSHARE_GOOGLEBUZZ_ENABLE_DESC'); ?>">
                    
113							<?php echo JText::_( 'COM_EASYBLOG_SETTINGS_SOCIALSHARE_GOOGLEBUZZ_ENABLE' ); ?>
                    
                
adminController.php https://gitlab.com/higordaniell/SIN-352 | PHP | 403 lines
                    
1<?php
                    
2class adminController extends Controller {
                    
23            $venda = $vt->getById($venda_id);
                    
24            $this->_page->adminView('admin/vendas/detalhes', compact('venda'));
                    
25        }
                    
27            $vendas = $vt->getAll();
                    
28            $this->_page->adminView('admin/vendas/view', compact('vendas'));
                    
29        }
                    
38            $usuario = $ut->getById($usuario_id);
                    
39            $this->_page->adminView('admin/clientes/detalhes', compact('usuario'));
                    
40        }
                    
42            $usuarios = $ut->getAll();
                    
43            $this->_page->adminView('admin/clientes/view', compact('usuarios'));
                    
44        }
                    
69
                    
70            $this->_page->adminView("admin/livros/view", compact('livros'));
                    
71        }
                    
                
Service.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 494 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
30 * @subpackage Server
                    
31 * @version    $Id: Service.php 24593 2012-01-05 20:35:02Z matthew $
                    
32 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
133        if (null == $this->getName()) {
                    
134            require_once 'Zend/Json/Server/Exception.php';
                    
135            throw new Zend_Json_Server_Exception( 'SMD service description requires a name; none provided' );
                    
173        if (!preg_match($this->_nameRegex, $name)) {
                    
174            require_once 'Zend/Json/Server/Exception.php';
                    
175            throw new Zend_Json_Server_Exception( sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name) );
                    
203        if (!in_array($transport, $this->_transportTypes)) {
                    
204            require_once 'Zend/Json/Server/Exception.php';
                    
205            throw new Zend_Json_Server_Exception( sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)) );
                    
                
server_side.html https://gitlab.com/ealexis.t/trends | HTML | 310 lines
                    
24		"serverSide": true,
                    
25		"ajax": "../server_side/scripts/server_processing.php"
                    
26	} );
                    
94		&quot;serverSide&quot;: true,
                    
95		&quot;ajax&quot;: &quot;../server_side/scripts/server_processing.php&quot;
                    
96	} );
                    
133
                    
134				<div class="php">
                    
135					<p>The script used to perform the server-side processing for this table is shown below. Please note
                    
135					<p>The script used to perform the server-side processing for this table is shown below. Please note
                    
136					that this is just an example script using PHP. Server-side processing scripts can be written in any
                    
137					language, using <a href="//datatables.net/manual/server-side">the protocol described in the
                    
205							<li><a href="../styling/cell-border.html">Base style - cell borders</a></li>
                    
206							<li><a href="../styling/compact.html">Base style - compact</a></li>
                    
207							<li><a href="../styling/hover.html">Base style - hover</a></li>
                    
                
DumpDataCollector.php https://gitlab.com/madwanz64/laravel | PHP | 296 lines
                    
1<?php
                    
2
                    
53        $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
                    
54        $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8';
                    
55        $this->requestStack = $requestStack;
                    
94        }
                    
95        $this->data[] = compact('data', 'name', 'file', 'line', 'fileExcerpt');
                    
96        ++$this->dataCount;
                    
127            if ($response->headers->has('Content-Type') && str_contains($response->headers->get('Content-Type'), 'html')) {
                    
128                $dumper = new HtmlDumper('php://output', $this->charset);
                    
129                $dumper->setDisplayOptions(['fileLinkFormat' => $this->fileLinkFormat]);
                    
130            } else {
                    
131                $dumper = new CliDumper('php://output', $this->charset);
                    
132                if (method_exists($dumper, 'setDisplayOptions')) {
                    
244
                    
245            if (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) && stripos($h[$i], 'html')) {
                    
246                $dumper = new HtmlDumper('php://output', $this->charset);
                    
                
Scaffold.php https://bitbucket.org/allanxyh/project.git | PHP | 453 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @package       Cake.Controller
                    
18 * @since         Cake v 0.10.0.1076
                    
19 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
20 */
                    
138
                    
139		$this->controller->set(compact(
                    
140			'title_for_layout', 'modelClass', 'primaryKey', 'displayField', 'singularVar', 'pluralVar',
                    
                
WebSocketParserD08.java git://pkgs.fedoraproject.org/jetty | Java | 389 lines
                    
11 *   The Apache License v2.0 is available at
                    
12 *   http://www.opensource.org/licenses/apache2.0.php
                    
13 *
                    
24// The Apache License v2.0 is available at
                    
25// http://www.opensource.org/licenses/apache2.0.php
                    
26// You may elect to redistribute this code under either of these licenses.
                    
153            {
                    
154                // compact to mark (set at start of data)
                    
155                _buffer.compact();
                    
163                        Buffer data =_buffer.get(4*(available/4));
                    
164                        _buffer.compact();
                    
165                        if (_masked)
                    
                
sql.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 302 lines
                    
6include ('language/'.$config['language'].'/lang_sql.php');
                    
7include ('./inc/functions_sql.php');
                    
8include ('./'.$config['files']['parameter']);
                    
46$no_order=false;
                    
47$tdcompact=(isset($_GET['tdc'])) ? $_GET['tdc'] : $config['interface_table_compact'];
                    
48$db=(!isset($_GET['db'])) ? $databases['db_actual'] : $_GET['db'];
                    
189
                    
190$params="sql.php?db=".$db."&amp;tablename=".$tablename."&amp;dbid=".$dbid.'&amp;context='.$context.'&amp;sql_statement='.urlencode($sql['sql_statement']).'&amp;tdc='.$tdcompact.'&amp;showtables='.$showtables;
                    
191if ($order!="") $params.="&amp;order=".$order."&amp;orderdir=".$orderdir.'&amp;context='.$context;
                    
199	$aus='';
                    
200	include ('./inc/sqlbrowser/sqlbox.php');
                    
201	
                    
259		
                    
260		if ($mode=='edit'||$mode=='searchedit') include ('./inc/sqlbrowser/sql_record_update_inputmask.php');
                    
261		if ($mode=='new') include ('./inc/sqlbrowser/sql_record_insert_inputmask.php');
                    
                
datamatrix.php https://github.com/drobbins/s3db.git | PHP | 317 lines
                    
1<?php
                    
2#datamatrix is a generic file of functions that generates the table of statements for several outputs
                    
141						
                    
142			$s3ql = compact('db', 'user_id');
                    
143			$s3ql['select'] = '*';
                    
                
character.php https://github.com/bheiskell/Riiga.git | PHP | 524 lines
                    
1<?php
                    
2class Character extends AppModel {
                    
95        // The required validator checks using isset, not array_key_exists. I'm
                    
96        // not sure why, but cakephp's search must null out empty columns. Thus
                    
97        // my pending behavior pulls down non-isset compatible data. This is
                    
173    return 1 == $this->find('count', array(
                    
174      'conditions' => compact('id', 'user_id')
                    
175    ));
                    
187  public function getUserIdById($id) {
                    
188    return $this->field('user_id', compact('id'));
                    
189  }
                    
                
select_rows.html https://gitlab.com/metahuman247/business | HTML | 326 lines
                    
27		"serverSide": true,
                    
28		"ajax": "scripts/ids-arrays.php",
                    
29		"rowCallback": function( row, data ) {
                    
110		&quot;serverSide&quot;: true,
                    
111		&quot;ajax&quot;: &quot;scripts/ids-arrays.php&quot;,
                    
112		&quot;rowCallback&quot;: function( row, data ) {
                    
162
                    
163				<div class="php">
                    
164					<p>The script used to perform the server-side processing for this table is shown below. Please note that this is just an example script using PHP. Server-side
                    
230							<li><a href="../styling/cell-border.html">Base style - cell borders</a></li>
                    
231							<li><a href="../styling/compact.html">Base style - compact</a></li>
                    
232							<li><a href="../styling/hover.html">Base style - hover</a></li>
                    
                
other.lang.php https://bitbucket.org/speedealing/speedealing.git | PHP | 224 lines
                    
1<?php
                    
2/* Copyright (C) 2012	Regis Houssin	<regis.houssin@capnetworks.com>
                    
75		'PredefinedMailContentSendFichInter' => 'You will find here the intervention __FICHINTERREF__\n\n__PERSONALIZED__Sincerely\n\n__SIGNATURE__',
                    
76		'DemoDesc' => 'Speedealing is a compact ERP/CRM composed by several functional modules. A demo that includes all modules does not mean anything as this never occurs. So, several demo profiles are available.',
                    
77		'ChooseYourDemoProfil' => 'Choose the demo profile that match your activity...',
                    
148		'EnableGDLibraryDesc' => 'Install or enable GD library with your PHP for use this option.',
                    
149		'EnablePhpAVModuleDesc' => 'You need to install a module compatible with your anti-virus. (Clamav : php4-clamavlib ou php5-clamavlib)',
                    
150		'ProfIdShortDesc' => '<b>Prof Id %s</b> is an information depending on third party country.<br>For example, for country <b>%s</b>, it\'s code <b>%s</b>.',
                    
                
mod-search.tpl https://gitlab.com/ElvisAns/tiki | Smarty Template | 178 lines
                    
8                    {*    <div class="{*col-auto*}{*me-2"> *}
                    
9                            <input style="min-width: 4rem;{if $smod_params.compact eq "y"}{*width:72%;border-bottom-right-radius:0;border-top-right-radius: 0;*}{/if}" placeholder="{tr}Find{/tr}" class="form-control my-1" id="search_mod_input_{$search_mod_usage_counter}" name="{if $smod_params.search_action eq 'tiki-searchindex.php'}filter~content{else}find{/if}" {if !empty($smod_params.input_size)}size="{$smod_params.input_size}" style="width: auto"{/if} type="text" accesskey="s" value="{$smod_params.input_value|escape}">
                    
10                            <label class="sr-only" for="search_mod_input_{$search_mod_usage_counter}">Find</label>
                    
16                                <div class="col-auto">
                    
17                                    {if $smod_params.search_action eq 'tiki-searchindex.php'}
                    
18                                        <select id="filterType" name="filter~type" class="form-select my-1" {*style="width:{$smod_params.select_size}em;"*}>
                    
72                                    title="{tr}Search{/tr}|{tr}Search for text throughout the site.{/tr}"
                    
73                                    {if $smod_params.compact eq "y"}data-bs-placement="bottom"{/if}
                    
74                                    onclick = "$('#search-module-form{$search_mod_usage_counter}').attr('action', '{$smod_params.search_action|escape:javascript}').attr('page_selected','');"
                    
81                                    title="{tr}Go{/tr}|{tr}Go directly to a page, or search in page titles if exact match is not found.{/tr}"
                    
82                                    {if $smod_params.compact eq "y"}data-bs-placement="bottom"{/if}
                    
83                                    onclick = "$('#search-module-form{$search_mod_usage_counter}').attr('action', '{$smod_params.go_action|escape:javascript}').attr('page_selected','');
                    
83                                    onclick = "$('#search-module-form{$search_mod_usage_counter}').attr('action', '{$smod_params.go_action|escape:javascript}').attr('page_selected','');
                    
84                                        {if $smod_params.search_action eq 'tiki-searchindex.php'}
                    
85                                            $('#search-module-form{$search_mod_usage_counter} input[name=\'filter~content\']').attr('name', 'find');
                    
                
Ippi.java https://bitbucket.org/Trugath/csipsimple.git | Java | 241 lines
                    
90
                    
91        extAccCreator = new AccountCreationWebview(parent, "https://m.ippi.fr/subscribe/android.php", this);
                    
92	}
                    
100		prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_ICE, false); /* Seems to produce problems with TCP ? -- specific? */
                    
101		prefs.setPreferenceBooleanValue(SipConfigManager.USE_COMPACT_FORM, true);
                    
102		prefs.addStunServer("stun.ippi.fr");
                    
143
                    
144            String requestURL = "https://soap.ippi.fr/credit/check_credit.php?"
                    
145                    + "login=" + acc.username
                    
                
DashboardController.php https://gitlab.com/Ankit77/motiv8 | PHP | 249 lines
                    
1<?php
                    
2
                    
23    	$themes=DB::table("themes")->get();
                    
24    	return view('backend.pages.themes', compact('themes'));
                    
25    }
                    
98        $userdetail=DB::table('users')->where('id', $id)->get();
                    
99        return view('backend.pages.viewuser', compact('userdetail'));
                    
100    }
                    
103        $themes=DB::table('themes')->where('id',$id)->get();
                    
104    return view('backend.pages.edittheme', compact('themes'));
                    
105  }
                    
153  
                    
154       return view('backend.pages.viewtheme', compact('themes'));
                    
155  }
                    
158    $challenges=DB::table('challenges')->join('user_challenges', 'challenges.id','=', 'user_challenges.challenge_id')->select('challenges.*', 'user_challenges.challenge_timeline', 'user_challenges.post_frequency', 'user_challenges.completion_reward', 'user_challenges.invite_friend')->get();
                    
159    return view('backend.pages.challenges', compact('challenges') );
                    
160  }
                    
                
class-thelib-ui.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 514 lines
                    
1<?php
                    
2/**
                    
189	protected function _prepare_js_or_css( $url, $type, $onpage, $priority ) {
                    
190		$this->_add( 'js_or_css', compact( 'url', 'type', 'onpage', 'priority' ) );
                    
191
                    
279
                    
280			$item = compact( 'url', 'alias', 'onpage' );
                    
281			$this->_add( $type, $item );
                    
287	/**
                    
288	 * Action hook for enqueue style (for PHP <5.3 only)
                    
289	 *
                    
318	/**
                    
319	 * Action hook for enqueue script (for PHP <5.3 only)
                    
320	 *
                    
468
                    
469		self::_sess_add( 'admin_notice', compact( 'text', 'class', 'screen', 'id' ) );
                    
470		$this->add_action( 'admin_notices', '_admin_notice_callback', 1 );
                    
                
shortcodes.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 375 lines
                    
1<?php
                    
2/**
                    
65        if ( stristr( $content, '[album' )) {
                    
66            $search = "@(?:<p>)*\s*\[album\s*=\s*(\w+|^\+)(|,extend|,compact)\]\s*(?:</p>)*@i"; 
                    
67            if (preg_match_all($search, $content, $matches, PREG_SET_ORDER)) {
                    
                
update.php https://github.com/jao/jpcamargo.git | PHP | 334 lines
                    
11 *
                    
12 * The WordPress version, PHP version, and Locale is sent. Checks against the
                    
13 * WordPress server at api.wordpress.org server. Will only check if WordPress
                    
26	global $wp_version, $wpdb, $wp_local_package;
                    
27	$php_version = phpversion();
                    
28
                    
46	$local_package = isset( $wp_local_package )? $wp_local_package : '';
                    
47	$url = "http://api.wordpress.org/core/version-check/1.3/?version=$wp_version&php=$php_version&locale=$locale&mysql=$mysql_version&local_package=$local_package";
                    
48
                    
89 *
                    
90 * The WordPress version, PHP version, and Locale is sent along with a list of
                    
91 * all plugins installed. Checks against the WordPress server at
                    
117	$new_option->last_checked = time();
                    
118	$timeout = 'load-plugins.php' == current_filter() ? 3600 : 43200; //Check for updated every 60 minutes if hitting the themes page, Else, check every 12 hours
                    
119	$time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked );
                    
                
Filtreatment_class.php https://github.com/md-tech/openemr.git | PHP | 483 lines
                    
1<?php
                    
2/**
                    
7 * @version 1.31 17 March 2008
                    
8 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
9 * @package Filtreatment
                    
24 * most of known vulnerabilities
                    
25 * it requires at least PHP 5.0
                    
26 *
                    
344    /*
                    
345    * Makes PHP tags safe
                    
346    *
                    
353    */		
                    
354    $str = str_replace(array('<?php', '<?PHP', '<?', '?>'),  array('&lt;?php', '&lt;?PHP', '&lt;?', '?&gt;'), $str);
                    
355	
                    
356    /*
                    
357    * Compact any exploded words
                    
358    *
                    
                
update.php https://bitbucket.org/Quartermain/viettrungtravel_wordpress.git | PHP | 250 lines
                    
1<?php
                    
2/**
                    
12/** WordPress Administration Bootstrap */
                    
13require_once('./admin.php');
                    
14
                    
14
                    
15include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
                    
16
                    
36
                    
37		$url = 'update.php?action=update-selected&amp;plugins=' . urlencode(implode(',', $plugins));
                    
38		$nonce = 'bulk-update-plugins';
                    
42
                    
43		$upgrader = new Plugin_Upgrader( new Bulk_Plugin_Upgrader_Skin( compact( 'nonce', 'url' ) ) );
                    
44		$upgrader->bulk_upgrade( $plugins );
                    
54		$title = __('Update Plugin');
                    
55		$parent_file = 'plugins.php';
                    
56		$submenu_file = 'plugins.php';
                    
                
Scaffold.php https://gitlab.com/nghiep5890/bakery | PHP | 451 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://cakephp.org CakePHP(tm) Project
                    
16 * @package       Cake.Controller
                    
17 * @since         Cake v 0.10.0.1076
                    
18 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
19 */
                    
137
                    
138		$this->controller->set(compact(
                    
139			'modelClass', 'primaryKey', 'displayField', 'singularVar', 'pluralVar',
                    
330		if ($this->_validSession) {
                    
331			$this->controller->Flash->set($message, compact('element'));
                    
332			return $this->controller->redirect($this->redirect);
                    
                
DumpDataCollector.php https://gitlab.com/judielsm/Handora | PHP | 303 lines
                    
1<?php
                    
2
                    
43        $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
                    
44        $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8';
                    
45        $this->requestStack = $requestStack;
                    
72        $trace = DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS;
                    
73        if (PHP_VERSION_ID >= 50400) {
                    
74            $trace = debug_backtrace($trace, 7);
                    
130
                    
131        $this->data[] = compact('data', 'name', 'file', 'line', 'fileExcerpt');
                    
132        ++$this->dataCount;
                    
154            if ($response->headers->has('Content-Type') && false !== strpos($response->headers->get('Content-Type'), 'html')) {
                    
155                $this->dumper = new HtmlDumper('php://output', $this->charset);
                    
156            } else {
                    
156            } else {
                    
157                $this->dumper = new CliDumper('php://output', $this->charset);
                    
158            }
                    
                
paperclip.rb https://github.com/nilerbarcelos/crm.git | Ruby | 277 lines
                    
8# Copyright:: Copyright (c) 2008 thoughtbot, inc.
                    
9# License:: MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
10#
                    
56    def path_for_command command #:nodoc:
                    
57      path = [options[:image_magick_path], command].compact
                    
58      File.join(*path)
                    
112    #   geometry strings at the ImageMagick website 
                    
113    #   (http://www.imagemagick.org/script/command-line-options.php#resize). Paperclip
                    
114    #   also adds the "#" option (e.g. "50x50#"), which will resize the image to fit maximally 
                    
128    #   "-depth 8" to specify the bit depth of the resulting conversion.  See ImageMagick
                    
129    #   convert documentation for more options: (http://www.imagemagick.org/script/convert.php)
                    
130    #   Note that this option takes a hash of options, each of which correspond to the style
                    
                
variables_fp.php https://github.com/facebook/pfff.git | PHP | 236 lines
                    
1<?php
                    
2
                    
9function test_unused_var_ok_when_keyword_arguments() {
                    
10  // no error for now even if $key appeared as unused. PHP has no
                    
11  // keyword arguments so people use such assignation as a kind of
                    
60  // checks for use of undefined variable are restricted to local vars
                    
61  // not class variables of object members. See check_classes_php.ml for that.
                    
62  echo TestClassVariable::$dbGetters;
                    
78// this used to raise false positives when I was using the old visitor-based
                    
79// variable checker. Switching to Ast_php_simple and an env-based recursive
                    
80// approach solved the problem for free.
                    
108function test_ok_undeclared_sscanf() {
                    
109  sscanf(PHP_VERSION, '%d', $_PHP_MAJOR_VERSION);
                    
110  echo $_PHP_MAJOR_VERSION;
                    
231  //ERROR: please avoid dynamic code
                    
232  $arr = compact('compacted');
                    
233
                    
                
Site.php https://gitlab.com/blueprintmrk/cli | PHP | 555 lines
                    
1<?php
                    
2
                    
97   * @param [string]  $env_id   Environment name
                    
98   * @param [boolean] $updatedb True to run update.php
                    
99   * @param [boolean] $xoption  True to automatically resolve merge conflicts
                    
177      'POST',
                    
178      compact('body')
                    
179    );
                    
414      'upstream'      => null,
                    
415      'php_version'   => null,
                    
416      'holder_type'   => null,
                    
538      $method,
                    
539      compact('body')
                    
540    );
                    
                
insertall.php https://github.com/drobbins/s3db.git | PHP | 344 lines
                    
1<?php
                    
2#insertall.php is a form for inserting the values of rules in a single instance at once
                    
12	
                    
13	if(file_exists('../config.inc.php'))
                    
14	{
                    
14	{
                    
15		include('../config.inc.php');
                    
16	}
                    
32
                    
33include_once('../core.header.php');
                    
34
                    
63	#include all the javascript functions for the menus...
                    
64	include('../S3DBjavascript.php');
                    
65
                    
73		
                    
74	include('../action.header.php');
                    
75	
                    
                
update.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 449 lines
                    
11 *
                    
12 * The WordPress version, PHP version, and Locale is sent. Checks against the
                    
13 * WordPress server at api.wordpress.org server. Will only check if WordPress
                    
27	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
28	$php_version = phpversion();
                    
29
                    
68		'version'           => $wp_version,
                    
69		'php'               => $php_version,
                    
70		'locale'            => $locale,
                    
196
                    
197	$to_send = (object) compact('plugins', 'active');
                    
198
                    
233function wp_update_themes() {
                    
234	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
235
                    
                
HtmlBuilder.php https://gitlab.com/milton2913/myBlog | PHP | 563 lines
                    
1<?php
                    
2
                    
80
                    
81        return $this->toHtmlString('<script' . $this->attributes($attributes) . '></script>' . PHP_EOL);
                    
82    }
                    
100
                    
101        return $this->toHtmlString('<link' . $this->attributes($attributes) . '>' . PHP_EOL);
                    
102    }
                    
138
                    
139        return $this->toHtmlString('<link' . $this->attributes($attributes) . '>' . PHP_EOL);
                    
140    }
                    
502    {
                    
503        $defaults = compact('name', 'content');
                    
504
                    
521        $content = is_array($content) ? implode(PHP_EOL, $content) : $content;
                    
522        return $this->toHtmlString('<' . $tag . $this->attributes($attributes) . '>' . PHP_EOL . $this->toHtmlString($content) . PHP_EOL . '</' . $tag . '>' . PHP_EOL);
                    
523    }
                    
                
 

Source

Language