PageRenderTime 836ms queryTime 64ms sortTime 206ms getByIdsTime 299ms findMatchingLines 124ms

100+ results results for 'php usage' (836 ms)

Not the results you expected?
Command.php https://github.com/nicnocquee/PPION-Website.git | PHP | 512 lines
                    
1<?php
                    
2
                    
378            $name,
                    
379            $_SERVER['PHP_SELF'].' '.$name
                    
380        );
                    
454        $messages = array(
                    
455            '<comment>Usage:</comment>',
                    
456            ' '.$this->getSynopsis(),
                    
489
                    
490        $commandXML->appendChild($usageXML = $dom->createElement('usage'));
                    
491        $usageXML->appendChild($dom->createTextNode(sprintf($this->getSynopsis(), '')));
                    
                
ez_sql_core.php https://github.com/LamCiuLoeng/BookShare.git | PHP | 552 lines
                    
1<?php
                    
2
                    
175		*  Function to get 1 column from the cached result set based in X index
                    
176		*  see docs for usage and info
                    
177		*/
                    
250		*  Function to get column meta data info pertaining to the last query
                    
251		* see docs for more info and usage
                    
252		*/
                    
                
pearcmd.php https://github.com/ianbogda/FileZ.git | PHP | 445 lines
                    
59if (!isset($_SERVER['argv']) && !isset($argv) && !isset($HTTP_SERVER_VARS['argv'])) {
                    
60    echo 'ERROR: either use the CLI php executable, or set register_argc_argv=On in php.ini';
                    
61    exit(1);
                    
88}
                    
89//Check if Gtk and PHP >= 5.1.0
                    
90if ($fetype == 'Gtk' && version_compare(phpversion(), '5.1.0', '>=')) {
                    
132// this is used in the error handler to retrieve a relative path
                    
133$_PEAR_PHPDIR = $config->get('php_dir');
                    
134$ui->setConfig($config);
                    
166                );
                    
167                $config->set('php_dir', $pearbase . DIRECTORY_SEPARATOR . 'php');
                    
168                $config->set('data_dir', $pearbase . DIRECTORY_SEPARATOR . 'data');
                    
377        return "PEAR Version: ".$GLOBALS['pear_package_version'].
                    
378               "\nPHP Version: ".phpversion().
                    
379               "\nZend Engine Version: ".zend_version().
                    
                
auth_tkt.py https://bitbucket.org/eaviles/gobierno.git | Python | 380 lines
                    
1# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
                    
2# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
                    
3##########################################################################
                    
62
                    
63    CGI usage::
                    
64
                    
72
                    
73    Webware usage::
                    
74
                    
                
Files.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 311 lines
                    
1<?php
                    
2/*
                    
26 * The "files" collection of methods.
                    
27 * Typical usage is:
                    
28 *  <code>
                    
222   * and 'viewedByMeTime'. Each key sorts ascending by default, but may be
                    
223   * reversed with the 'desc' modifier. Example usage:
                    
224   * ?orderBy=folder,modifiedTime desc,name. Please note that there is a current
                    
                
Move.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 364 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP version 5                                                        |
                    
5// +----------------------------------------------------------------------+
                    
9// | This LICENSE is in the BSD license style.                            |
                    
10// | http://www.opensource.org/licenses/bsd-license.php                   |
                    
11// |                                                                      |
                    
43//
                    
44// $Id: Move.php 12 2007-09-17 20:20:11Z killersoft $
                    
45//
                    
110 *
                    
111 * Usage example:
                    
112 * <code>
                    
112 * <code>
                    
113 * <?php
                    
114 * require_once 'VersionControl/SVN.php';
                    
                
PropelPager.php https://github.com/1989gaurav/Propel.git | PHP | 597 lines
                    
1<?php
                    
2
                    
13 *
                    
14 *  Example Usage:
                    
15 *
                    
15 *
                    
16 *  require_once 'propel/util/PropelPager.php';
                    
17 *  require_once 'PEACH/Propel/Poem/poemPeer.php';
                    
                
config.php https://github.com/olberger/fusionforge.git | PHP | 396 lines
                    
4 * NOTE: The settings here should probably not need to be changed.
                    
5 * The user-configurable settings have been moved to IniConfig.php
                    
6 * The run-time code has been moved to lib/IniConfig.php:fix_configs()
                    
16define ('_DEBUG_PARSER',    4); // verbose parsing steps
                    
17define ('_DEBUG_TRACE',     8); // test php memory usage, prints php debug backtraces
                    
18define ('_DEBUG_INFO',     16);
                    
242        // do reinit to purge PHP's static cache [43ms]
                    
243        if ( ($lcfile = FindLocalizedFile("LC_MESSAGES/phpwiki.php", 'missing_ok', 'reinit')) ) {
                    
244            include($lcfile);
                    
246    } else {
                    
247        // If PHP is in safe mode, this is not allowed,
                    
248        // so hide errors...
                    
306
                    
307// needed < php5
                    
308// by bradhuizenga at softhome dot net from the php docs
                    
                
text_effects.hs https://gitlab.com/stallmanifold/imagemagick | Haskell | 313 lines
                    
5See this forum thread for the genesis of these effects
                    
6http://www.imagemagick.org/discourse-server/viewtopic.php?f=6&t=11586
                    
7and Anthony's Text Effects page at:
                    
7and Anthony's Text Effects page at:
                    
8http://www.imagemagick.org/Usage/fonts/
                    
9-}
                    
19
                    
20-- see http://www.imagemagick.org/Usage/#font about using fonts with IM
                    
21font :: ByteString
                    
127
                    
128-- Text effect 3 -  arc font (similar to http://www.imagemagick.org/Usage/fonts/#arc)
                    
129-- convert -size 320x100 xc:lightblue -font Candice -pointsize 72 \
                    
157
                    
158-- Text effect 4 - bevelled font http://www.imagemagick.org/Usage/fonts/#bevel
                    
159-- convert -size 320x100 xc:black -font Candice -pointsize 72 \
                    
                
Panel.html https://github.com/marekjs/Shacser.git | HTML | 318 lines
                    
65{@img Ext.form.FormPanel/Ext.form.FormPanel.png Ext.form.FormPanel FormPanel component}
                    
66__Example usage:__
                    
67
                    
73        // The form will submit an AJAX request to this URL when submitted
                    
74        url: 'save-form.php',
                    
75        
                    
                
wp-background-process.php https://gitlab.com/campus-academy/krowkaramel | PHP | 503 lines
                    
1<?php // @codingStandardsIgnoreLine.
                    
2/**
                    
344		$memory_limit   = $this->get_memory_limit() * 0.9; // 90% of max memory
                    
345		$current_memory = memory_get_usage( true );
                    
346		$return         = false;
                    
                
Action.js https://github.com/bwoodhead/islandora_xml_forms.git | JavaScript | 329 lines
                    
8
                    
9GNU General Public License Usage
                    
10This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file.  Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
                    
122     * {@link Ext.form.action.Action#SERVER_INVALID}, {@link Ext.form.action.Action#CONNECT_FAILURE}, or
                    
123     * {@link Ext.form.action.Action#LOAD_FAILURE}.  Usage:
                    
124     * <pre><code>
                    
132            fp.getForm().submit({
                    
133                url: 'form-submit.php',
                    
134                waitMsg: 'Submitting your data...',
                    
                
Misc.php https://bitbucket.org/tdevonshire/guinness-jazz-festival.git | PHP | 388 lines
                    
64    /**
                    
65     * @link http://pl.php.net/manual/en/function.imagecopyresampled.php
                    
66     * replacement to imagecopyresampled that will deliver results that are almost identical except MUCH faster (very typically 30 times faster)
                    
110    /**
                    
111     * @link http://pl.php.net/manual/pl/function.imagecreatefromjpeg.php
                    
112     * function posted by e dot a dot schultz at gmail dot com
                    
132        //Default memory limit is 8MB so well stick with that.
                    
133        //To find out what yours is, view your php.ini file.
                    
134        $memoryLimit = CKFinder_Connector_Utils_Misc::returnBytes(@ini_get('memory_limit'))/$MB;
                    
143        $memoryLimitMB = $memoryLimit * $MB;
                    
144        if (function_exists('memory_get_usage')) {
                    
145            if (memory_get_usage() + $memoryNeeded > $memoryLimitMB) {
                    
170    /**
                    
171     * convert shorthand php.ini notation into bytes, much like how the PHP source does it
                    
172     * @link http://pl.php.net/manual/en/function.ini-get.php
                    
                
Exception.php https://github.com/Br3nda/statusnet-debian.git | PHP | 397 lines
                    
20 * @copyright  1997-2008 The PHP Group
                    
21 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
22 * @version    CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $
                    
22 * @version    CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $
                    
23 * @link       http://pear.php.net/package/PEAR
                    
24 * @since      File available since Release 1.3.3
                    
52 *
                    
53 * 4) Inherited methods from PHP Exception Class:
                    
54 *
                    
96 * @copyright  1997-2008 The PHP Group
                    
97 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
98 * @version    Release: 1.7.2
                    
154    /**
                    
155     * @param mixed $callback  - A valid php callback, see php func is_callable()
                    
156     *                         - A PEAR_Exception::OBSERVER_* constant
                    
                
ArgvInput.php https://github.com/Exercise/symfony.git | PHP | 313 lines
                    
1<?php
                    
2
                    
16 *
                    
17 * Usage:
                    
18 *
                    
                
Media.php https://gitlab.com/yousafsyed/easternglamor | PHP | 356 lines
                    
1<?php
                    
2/**
                    
48     * @return Product
                    
49     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
50     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
124     * @return Product
                    
125     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
126     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
252
                    
253        if ($this->fileStorageDb->checkDbUsage()) {
                    
254            $this->fileStorageDb->renameFile(
                    
279    {
                    
280        if ($this->fileStorageDb->checkDbUsage()) {
                    
281            $destFile = $this->fileStorageDb->getUniqueFilename(
                    
320
                    
321            if ($this->fileStorageDb->checkDbUsage()) {
                    
322                $this->fileStorageDb->copyFile(
                    
                
itkAnalyticalDiffusionQballReconstructionImageFilter.h https://github.com/cim-unito/MITK.git | C Header | 300 lines
                    
35 *
                    
36 * \par Inputs and Usage
                    
37 * \par
                    
44 * This is convenient when the DWI images are read in using the 
                    
45 * <a href="http://wiki.na-mic.org/Wiki/index.php/NAMIC_Wiki:DTI:Nrrd_format">NRRD</a> 
                    
46 * format. Like the Nrrd format, the reference images are those components of the 
                    
                
extension.cache.sqlite3.php https://gitlab.com/x33n/ampache | PHP | 265 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////////////////////
                    
8///                                                                            //
                    
9// extension.cache.sqlite3.php - part of getID3()                              //
                    
10// Please see readme.txt for more information                                  //
                    
22*
                    
23*    Normal getID3 usage (example):
                    
24*
                    
24*
                    
25*       require_once 'getid3/getid3.php';
                    
26*       $getID3 = new getID3;
                    
30*
                    
31*    getID3_cached usage:
                    
32*
                    
32*
                    
33*       require_once 'getid3/getid3.php';
                    
34*       require_once 'getid3/extension.cache.sqlite3.php';
                    
                
README.md https://bitbucket.org/mkalkbrenner/homebrew-php.git | Markdown | 222 lines
                    
37- Homebrew Version: `brew -v`
                    
38- PHP Version in use: stock-apple, homebrew-php stable, homebrew-php devel, homebrew-php head, custom
                    
39- XCode Version: 4.4, 4.3, 4.0, 3 etc.
                    
131
                    
132If installing `php53` or `php54`, please note that all extensions installed with the included `pear` will be installed to the respective php's bin path. For example, supposing you installed `PHP_CodeSniffer` as follows:
                    
133
                    
135
                    
136It would be nice to be able to use the `phpcs` command via commandline, or other utilities. You will need to add the installed php's `bin` directory to your path. The following would be added to your `.bashrc` or `.bash_profile` when running the `php54` brew:
                    
137
                    
141
                    
142- Remember to use the proper php version in that export. So if you installed the `php53` formula, use `php53` instead of `php54` in the export.
                    
143- Updating your installed php will result in the binaries no longer existing within your path. In such cases, you will need to reinstall the pear extensions. Alternatives include installing `pear` outside of `homebrew-php` or using the `homebrew-php` version of your extension.
                    
158
                    
159PHP Extensions MUST be prefixed with `phpVERSION`. For example, instead of the `Solr` formula for PHP54 in `solr.rb`, we would have `Php54Solr` inside of `php54-solr.rb`. This is to remove any possible conflicts with mainline homebrew formulae.
                    
160
                    
                
perf-mysql.inc.php https://github.com/MyITCRM/myitcrm1.git | PHP | 315 lines
                    
1<?php
                    
2/* 
                    
62			'' ),
                    
63	'Memory Usage',
                    
64		'read buffer size' => array('CACHE',
                    
303            {
                    
304                // May dont use __FUNCTION__ constant for BC (__FUNCTION__ Added in PHP 4.3.0)
                    
305                ADOConnection::outp( sprintf( "<p>%s: '%s' using of undefined mode '%s'</p>", __CLASS__, __FUNCTION__, $mode));
                    
                
jquery.jgrowl.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 338 lines
                    
3 *
                    
4 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
                    
5 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
                    
20 * Changes in 1.2.5
                    
21 * - Changed wrapper jGrowl's options usage to "o" instead of $.jGrowl.defaults
                    
22 * - Added themeState option to control 'highlight' or 'error' for jQuery UI
                    
22 * - Added themeState option to control 'highlight' or 'error' for jQuery UI
                    
23 * - Ammended some CSS to provide default positioning for nested usage.
                    
24 * - Changed some CSS to be prefixed with jGrowl- to prevent namespacing issues
                    
                
Relyingparty.php https://gitlab.com/Anas7232/Layout-Changes | PHP | 292 lines
                    
1<?php
                    
2/*
                    
19 * The "relyingparty" collection of methods.
                    
20 * Typical usage is:
                    
21 *  <code>
                    
                
GenCRC32Section.c https://gitlab.com/envieidoc/Clover | C | 313 lines
                    
6which accompanies this distribution.  The full text of the license may be found at        
                    
7http://opensource.org/licenses/bsd-license.php                                            
                    
8                                                                                          
                    
132VOID
                    
133PrintUsage (
                    
134  VOID
                    
145    "",
                    
146    "Usage:",
                    
147    "  "UTILITY_NAME" [OPTION]",
                    
241  if (argc == 1) {
                    
242    PrintUsage ();
                    
243    return -1;
                    
                
CakeTestFixture.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 328 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
                    
12 * @package       Cake.TestSuite.Fixture
                    
12 * @package       Cake.TestSuite.Fixture
                    
13 * @since         CakePHP(tm) v 1.2.0.4667
                    
14 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
34/**
                    
35 * CakePHP's DBO driver (e.g: DboMysql).
                    
36 *
                    
95 *
                    
96 * @throws CakeException on invalid datasource usage.
                    
97 */
                    
                
DefaultCacheFactory.php https://gitlab.com/martinstti/silex-microframework-rest | PHP | 254 lines
                    
121        $region     = $this->getRegion($metadata->cache);
                    
122        $usage      = $metadata->cache['usage'];
                    
123
                    
123
                    
124        if ($usage === ClassMetadata::CACHE_USAGE_READ_ONLY) {
                    
125            return new ReadOnlyCachedEntityPersister($persister, $region, $em, $metadata);
                    
127
                    
128        if ($usage === ClassMetadata::CACHE_USAGE_NONSTRICT_READ_WRITE) {
                    
129            return new NonStrictReadWriteCachedEntityPersister($persister, $region, $em, $metadata);
                    
131
                    
132        if ($usage === ClassMetadata::CACHE_USAGE_READ_WRITE) {
                    
133            return new ReadWriteCachedEntityPersister($persister, $region, $em, $metadata);
                    
143    {
                    
144        $usage      = $mapping['cache']['usage'];
                    
145        $region     = $this->getRegion($mapping['cache']);
                    
                
cli_install.php https://bitbucket.org/jojoluzifer/gold-light-project.git | PHP | 333 lines
                    
11//   cd install
                    
12//   php cli_install.php install --db_host localhost \
                    
13//                               --db_user root \
                    
56
                    
57function usage() {
                    
58    echo "Usage:\n";
                    
69                                  '--http_server', 'http://localhost/opencart'));
                    
70    echo 'php cli_install.php install ' . $options . "\n\n";
                    
71}
                    
138    if (phpversion() < '5.0') {
                    
139        $error = 'Warning: You need to use PHP5 or above for OpenCart to work!';
                    
140    }
                    
173
                    
174    if (!is_writable(DIR_OPENCART . 'admin/config.php')) {
                    
175        $error = 'Warning: admin/config.php needs to be writable for OpenCart to be installed!';
                    
                
Exception.php https://github.com/Getty/historical-php-rapidev.git | PHP | 397 lines
                    
20 * @copyright  1997-2008 The PHP Group
                    
21 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
22 * @version    CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $
                    
22 * @version    CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $
                    
23 * @link       http://pear.php.net/package/PEAR
                    
24 * @since      File available since Release 1.3.3
                    
52 *
                    
53 * 4) Inherited methods from PHP Exception Class:
                    
54 *
                    
96 * @copyright  1997-2008 The PHP Group
                    
97 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
98 * @version    Release: 1.7.1
                    
154    /**
                    
155     * @param mixed $callback  - A valid php callback, see php func is_callable()
                    
156     *                         - A PEAR_Exception::OBSERVER_* constant
                    
                
quickstart.html.md.erb https://gitlab.com/admin-github-cloud/incubator-predictionio | Ruby HTML | 357 lines
                    
13
                    
14## Usage
                    
15
                    
99
                    
100  <div data-tab="PHP SDK" data-lang="php">
                    
101```php
                    
101```php
                    
102<?php
                    
103require_once("vendor/autoload.php");
                    
188
                    
189  <div data-tab="PHP SDK" data-lang="php">
                    
190```php
                    
295  </div>
                    
296  <div data-tab="PHP SDK" data-lang="php">
                    
297```php
                    
                
generate-og-d6-content.php https://github.com/mattpclark/drupal7_base.git | PHP | 324 lines
                    
1#!/usr/bin/env php
                    
2<?php
                    
8 * @todo: Currently we use Drush for producing the script, find out why I wasn't
                    
9 * able to use just php-cli.
                    
10 *
                    
17 * - Execute script to create the content by running
                    
18 *     drush php-script generate-og-d6-content.php
                    
19 *  - Execute script to dump the database by running
                    
19 *  - Execute script to dump the database by running
                    
20 *      drush php-script dump-database-d6.sh > drupal-6.og.database.php
                    
21 *   from the command line of the Drupal 6 ROOT directory.
                    
44// Define settings.
                    
45$cmd = 'index.php';
                    
46$_SERVER['HTTP_HOST']       = 'default';
                    
46$_SERVER['HTTP_HOST']       = 'default';
                    
47$_SERVER['PHP_SELF']        = '/index.php';
                    
48$_SERVER['REMOTE_ADDR']     = '127.0.0.1';
                    
                
PublicDelegatedPrefixes.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 257 lines
                    
1<?php
                    
2/*
                    
26 * The "publicDelegatedPrefixes" collection of methods.
                    
27 * Typical usage is:
                    
28 *  <code>
                    
                
SiteVerification.php https://bitbucket.org/joelkriteman/argento.git | PHP | 404 lines
                    
1<?php
                    
2/*
                    
128 * The "webResource" collection of methods.
                    
129 * Typical usage is:
                    
130 *  <code>
                    
                
pskc-schema.xsd https://gitlab.com/ssbarnea/oath-toolkit | XML Schema | 307 lines
                    
92) Make AlgorithmParameter a sequence not a choice.
                    
10   <http://www.rfc-editor.org/errata_search.php?eid=2759>
                    
11
                    
86                    type="pskc:PINPolicyType" minOccurs="0"/>
                    
87               <xs:element name="KeyUsage"
                    
88                    type="pskc:KeyUsageType"
                    
160               type="xs:string" use="optional"/>
                    
161          <xs:attribute name="PINUsageMode"
                    
162               type="pskc:PINUsageModeType"/>
                    
172     </xs:complexType>
                    
173     <xs:simpleType name="PINUsageModeType">
                    
174          <xs:restriction base="xs:string">
                    
180     </xs:simpleType>
                    
181     <xs:simpleType name="KeyUsageType">
                    
182          <xs:restriction base="xs:string">
                    
                
ProjectsInstancesDatabases.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 267 lines
                    
1<?php
                    
2/*
                    
36 * The "databases" collection of methods.
                    
37 * Typical usage is:
                    
38 *  <code>
                    
                
README.md https://gitlab.com/danieldanielecki/ditectrev_v2 | Markdown | 227 lines
                    
53
                    
54## Usage examples
                    
55
                    
122```js
                    
123// Remove unused CSS from URLs (php, node, etc.)
                    
124// (Note that`nonull` must be true, or else Grunt
                    
184[UnCSS](https://github.com/giakki/uncss) did try tackling this, I set out to share some of the problems we
                    
185need to solve in this space with the developer and build a Grunt task to enable usage of it in builds more
                    
186easily.
                    
                
postgresql.php https://gitlab.com/ricardosanchez/prueba | PHP | 641 lines
                    
1<?php
                    
2/**
                    
261	 *
                    
262	 * Usage:
                    
263	 * $query->select($query->castAsChar('a'));
                    
278	 *
                    
279	 * Usage:
                    
280	 * $query->select($query->concatenate(array('a', 'b')));
                    
369	 *
                    
370	 * Usage:
                    
371	 * $query->select($query->year($query->quoteName('dateColumn')));
                    
386	 *
                    
387	 * Usage:
                    
388	 * $query->select($query->month($query->quoteName('dateColumn')));
                    
403	 *
                    
404	 * Usage:
                    
405	 * $query->select($query->day($query->quoteName('dateColumn')));
                    
                
ejs.js https://github.com/Val9/titanium_desktop.git | JavaScript | 468 lines
                    
9 *  EJS is a client-side preprocessing engine written in and for JavaScript.
                    
10 *  If you have used PHP, ASP, JSP, or ERB then you get the idea: code embedded
                    
11 *  in <% // Code here %> tags will be executed, and code embedded in <%= .. %> 
                    
19 * 
                    
20 *  Usage:
                    
21 *      // source should be either a string or a DOM node whose innerHTML
                    
                
MineBlock.php https://gitlab.com/Skull3x/MineBlock | PHP | 275 lines
                    
1<?php
                    
2// This Plugin is Made by DeBe (hu6677@naver.com)
                    
29		$drop = $this->mb->getAll();
                    
30		$rm = TextFormat::RED . "Usage: /MineBlock ";
                    
31		$mm = "[MineBlock] MineBlock ";
                    
                
LockerTest.php https://gitlab.com/imamul68e/137619_PHP31 | PHP | 284 lines
                    
1<?php
                    
2
                    
17
                    
18class LockerTest extends \PHPUnit_Framework_TestCase
                    
19{
                    
128                '_readme' => array('This file locks the dependencies of your project to a known state',
                    
129                                   'Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file',
                    
130                                   'This file is @gener'.'ated automatically', ),
                    
                
special_cases.php https://gitlab.com/wendy-du-973/club-invest-gr2 | PHP | 241 lines
                    
3 * This file contains all the functions that could not be dealt with automatically using the code generator.
                    
4 * If you add a function in this list, do not forget to add it in the generator/config/specialCasesFunctions.php
                    
5 *
                    
28 * @throws JsonException if the JSON cannot be decoded.
                    
29 * @link http://www.php.net/manual/en/function.json-decode.php
                    
30 */
                    
34    if (JSON_ERROR_NONE !== json_last_error()) {
                    
35        throw JsonException::createFromPhpError();
                    
36    }
                    
55    if ($success === false) {
                    
56        throw ApcException::createFromPhpError();
                    
57    }
                    
110 * To use backslash in replacement, it must be doubled
                    
111 * ("\\\\" PHP string).
                    
112 *
                    
                
config.php https://bitbucket.org/bouldertech/myngl.git | PHP | 320 lines
                    
1<?php
                    
2/*
                    
27/*
                    
28 Uncomment lines below to enable PHP error reporting and displaying PHP errors.
                    
29 Do not do this on a production server. Might be helpful when debugging why CKFinder does not work as expected.
                    
72
                    
73require_once '../../../../includes/filemanager.config.php';
                    
74$baseDir = resolveUrl($baseUrl);
                    
210
                    
211	- If "php" is on the denied extensions list, a file named foo.php cannot be
                    
212	  uploaded.
                    
214	  foo.rar.
                    
215	- The file foo.php.rar has "rar" extension so, in theory, it can be also
                    
216	  uploaded.
                    
217
                    
218In some conditions Apache can treat the foo.php.rar file just like any PHP
                    
219script and execute it.
                    
                
Collection.php https://bitbucket.org/kdms/sh-magento.git | PHP | 376 lines
                    
1<?php
                    
2/**
                    
188        /*
                    
189         * Allow analytic functions usage
                    
190         */
                    
                
calc-functions.php https://bitbucket.org/droidzone/i-mscp.git | PHP | 338 lines
                    
1<?php
                    
2/**
                    
41	if ($max != 0) {
                    
42		$percent_usage = (100 * $crnt) / $max;
                    
43	} else {
                    
43	} else {
                    
44		$percent_usage = 0;
                    
45	}
                    
46
                    
47	$bars = ($percent_usage * $bars_max) / 100;
                    
48
                    
53	return array(
                    
54		sprintf("%.2f", $percent_usage),
                    
55		sprintf("%d", $bars)
                    
217		$saltLength = 21;
                    
218		if(version_compare(PHP_VERSION, '3.5.7') == -1) {
                    
219			$salt = '$2a$07$';
                    
                
domain_details.php https://bitbucket.org/droidzone/i-mscp.git | PHP | 230 lines
                    
1<?php
                    
2/**
                    
110	if($stmt->rowCount()) {
                    
111		$trafficUsageBytes = $stmt->fields['dtraff_web'] + $stmt->fields['dtraff_ftp'] + $stmt->fields['dtraff_mail'] +
                    
112			$stmt->fields['dtraff_pop'];
                    
113	} else {
                    
114		$trafficUsageBytes = 0;
                    
115	}
                    
121	// Get usages in percent
                    
122	$trafficUsagePercent = make_usage_vals($trafficUsageBytes, $trafficLimitBytes);
                    
123	$diskspaceUsagePercent = make_usage_vals($domainProperties['domain_disk_usage'], $diskspaceLimitBytes);
                    
135			'VL_STATUS' => $domainStatus,
                    
136			'VL_PHP_SUPP' => ($domainProperties['domain_php'] == 'yes') ? $trEnabled : $trDisabled,
                    
137			'VL_CGI_SUPP' => ($domainProperties['domain_cgi'] == 'yes') ? $trEnabled : $trDisabled,
                    
199		'TR_STATUS' => tr('Status'),
                    
200		'TR_PHP_SUPP' => tr('PHP support'),
                    
201		'TR_CGI_SUPP' => tr('CGI support'),
                    
                
Profiler.php https://github.com/HipsterJazzbo/CI-Instant-Admin.git | PHP | 527 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
39										'get',
                    
40										'memory_usage',
                    
41										'post',
                    
318	/**
                    
319	 * Compile memory usage
                    
320	 *
                    
324	 */
                    
325	protected function _compile_memory_usage()
                    
326	{
                    
326	{
                    
327		if (function_exists('memory_get_usage') && ($usage = memory_get_usage()) != '')
                    
328		{
                    
                
Exception.php https://github.com/richardmansfield/richardms-mahara.git | PHP | 397 lines
                    
20 * @copyright  1997-2006 The PHP Group
                    
21 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
22 * @version    CVS: $Id: Exception.php,v 1.28 2007/05/07 01:58:54 cellog Exp $
                    
22 * @version    CVS: $Id: Exception.php,v 1.28 2007/05/07 01:58:54 cellog Exp $
                    
23 * @link       http://pear.php.net/package/PEAR
                    
24 * @since      File available since Release 1.3.3
                    
52 *
                    
53 * 4) Inherited methods from PHP Exception Class:
                    
54 *
                    
96 * @copyright  1997-2006 The PHP Group
                    
97 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
98 * @version    Release: 1.6.2
                    
154    /**
                    
155     * @param mixed $callback  - A valid php callback, see php func is_callable()
                    
156     *                         - A PEAR_Exception::OBSERVER_* constant
                    
                
ProjectsRoles.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 256 lines
                    
1<?php
                    
2/*
                    
26 * The "roles" collection of methods.
                    
27 * Typical usage is:
                    
28 *  <code>
                    
                
RowTest.php https://github.com/nehxby/db_type.git | PHP | 228 lines
                    
1<?php
                    
2class DB_Type_Pgsql_Test_RowTest extends DB_Type_Test_Util_TypeTestCase
                    
211    	        because output truncates `not_in_items` field.
                    
212    	        Usage example see in examples/itemsInput.php
                    
213    	        array(
                    
                
Exception.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 389 lines
                    
12 * @author     Bertrand Mansion <bmansion@mamasam.com>
                    
13 * @author     Greg Beaver <cellog@php.net>
                    
14 * @copyright  1997-2009 The Authors
                    
14 * @copyright  1997-2009 The Authors
                    
15 * @license    http://opensource.org/licenses/bsd-license.php New BSD License
                    
16 * @version    CVS: $Id: Exception.php 309057 2011-03-09 23:34:29Z dufuz $
                    
16 * @version    CVS: $Id: Exception.php 309057 2011-03-09 23:34:29Z dufuz $
                    
17 * @link       http://pear.php.net/package/PEAR_Exception
                    
18 * @since      File available since Release 1.0.0
                    
38 *
                    
39 * 3) Inherited properties from PHP Exception Class:
                    
40 *
                    
148    /**
                    
149     * @param mixed $callback  - A valid php callback, see php func is_callable()
                    
150     *                         - A PEAR_Exception::OBSERVER_* constant
                    
                
categories.php https://github.com/cpucci/oscommerce.git | PHP | 336 lines
                    
1<?php
                    
2/*
                    
209      if ( is_numeric($id) ) {
                    
210        $osC_CategoryTree->setBreadcrumbUsage(false);
                    
211
                    
                
Push.java https://bitbucket.org/albfan/jgit.git | Java | 262 lines
                    
8 * accompanies this distribution, is reproduced below, and is
                    
9 * available at http://www.eclipse.org/org/documents/edl-v10.php
                    
10 *
                    
67
                    
68@Command(common = true, usage = "usage_UpdateRemoteRepositoryFromLocalRefs")
                    
69class Push extends TextBuiltin {
                    
69class Push extends TextBuiltin {
                    
70	@Option(name = "--timeout", metaVar = "metaVar_seconds", usage = "usage_abortConnectionIfNoActivity")
                    
71	int timeout = -1;
                    
                
mkbarcode.php https://bitbucket.org/kramx7/dc-portal.git | PHP | 281 lines
                    
1<?php
                    
2require_once('jpgraph/jpgraph_barcode.php');
                    
4/*=======================================================================
                    
5 // File:        MKBARCODE.PHP
                    
6 // Description: Comman line tool to generate linear barcodes
                    
7 // Created:     2009-06-20
                    
8 // Ver:         $Id: mkbarcode.php 1455 2009-07-03 18:52:25Z ljp $
                    
9 //
                    
26
                    
27    function PrintUsage() {
                    
28    	$n = $this->argv[0];
                    
73                    case '-h':
                    
74                        $this->PrintUsage();
                    
75                        exit(0);
                    
111                    	else {
                    
112  							$this->PrintUsage();
                    
113  							die("Illegal specified parameters");
                    
                
Blame.php https://github.com/bermi/akelos.git | PHP | 310 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP version 5                                                        |
                    
5// +----------------------------------------------------------------------+
                    
9// | This LICENSE is in the BSD license style.                            |
                    
10// | http://www.opensource.org/licenses/bsd-license.php                   |
                    
11// |                                                                      |
                    
43//
                    
44// $Id: Blame.php 42 2004-04-26 09:39:59Z clay $
                    
45//
                    
87 *
                    
88 * Usage example:
                    
89 * <code>
                    
89 * <code>
                    
90 * <?php
                    
91 * require_once 'VersionControl/SVN.php';
                    
                
Imlib.php https://github.com/bermi/akelos.git | PHP | 379 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------+
                    
2// +----------------------------------------------------------------------+
                    
3// | PHP Version 4                                                        |
                    
4// +----------------------------------------------------------------------+
                    
4// +----------------------------------------------------------------------+
                    
5// | Copyright (c) 1997-2003 The PHP Group                                |
                    
6// +----------------------------------------------------------------------+
                    
6// +----------------------------------------------------------------------+
                    
7// | This source file is subject to version 2.02 of the PHP license,      |
                    
8// | that is bundled with this package in the file LICENSE, and is        |
                    
9// | available at through the world-wide-web at                           |
                    
10// | http://www.php.net/license/2_02.txt.                                 |
                    
11// | If you did not receive a copy of the PHP license and are unable to   |
                    
37 *
                    
38 * @see http://mmcc.cx/php_imlib/index.php
                    
39 * @version Revision: 1.0
                    
                
Exception.php https://github.com/sitengine/sitengine.git | PHP | 397 lines
                    
20 * @copyright  1997-2006 The PHP Group
                    
21 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
22 * @version    CVS: $Id: Exception.php,v 1.28 2007/05/07 01:58:54 cellog Exp $
                    
22 * @version    CVS: $Id: Exception.php,v 1.28 2007/05/07 01:58:54 cellog Exp $
                    
23 * @link       http://pear.php.net/package/PEAR
                    
24 * @since      File available since Release 1.3.3
                    
52 *
                    
53 * 4) Inherited methods from PHP Exception Class:
                    
54 *
                    
96 * @copyright  1997-2006 The PHP Group
                    
97 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
98 * @version    Release: 1.6.1
                    
154    /**
                    
155     * @param mixed $callback  - A valid php callback, see php func is_callable()
                    
156     *                         - A PEAR_Exception::OBSERVER_* constant
                    
                
WorldManager.php https://gitlab.com/Skull3x/MineBlock | PHP | 431 lines
                    
1<?php
                    
2namespace MineBlock\WorldManager;
                    
30		$ik = $this->isKorean();
                    
31		$rm = TextFormat::RED . "Usage: /";
                    
32		$wm = $this->wm;
                    
                
genconfig.sh https://github.com/ReliefLabs/EasyTomato.git | Shell | 426 lines
                    
15	--help|-h)
                    
16		echo "Usage : $0 [options]"
                    
17		echo " --ipv6      enable IPv6"
                    
124		# new way to see which one to use PF or IPF.
                    
125		# see http://miniupnp.tuxfamily.org/forum/viewtopic.php?p=957
                    
126		if [ -f /etc/rc.subr ] && [ -f /etc/rc.conf ] ; then
                    
142		if [ -z $FW ] ; then
                    
143			echo "Could not detect usage of ipf, pf, ipfw. Compiling for pf by default"
                    
144			FW=pf
                    
                
zbzippclzip.php https://bitbucket.org/anneivycat/california-tour.git | PHP | 406 lines
                    
1<?php
                    
2/**
                    
118			
                    
119				$pclzip_file = ABSPATH . 'wp-admin/includes/class-pclzip.php';
                    
120				pb_backupbuddy::status( 'details', 'PCLZip class not found. Attempting to load from `' . $pclzip_file . '`.' );
                    
183		 *	@parame		array	$excludes		List of either absolute path exclusions or relative exclusions
                    
184		 *	@param		string	$tempdir		Full path of directory for temporary usage
                    
185		 *	@param		object	$listmaker		The object from which we can get an inclusions list
                    
212				
                    
213				$pclzip_file = ABSPATH . 'wp-admin/includes/class-pclzip.php';
                    
214				pb_backupbuddy::status( 'details', 'PCLZip class not found. Attempting to load from `' . $pclzip_file . '`.' );
                    
                
DetailView.php https://github.com/faouzia/sugarcrm_dev.git | PHP | 303 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
38
                    
39require_once('include/DetailView/DetailView.php');
                    
40
                    
40
                    
41require_once('include/SugarFolders/SugarFolders.php');
                    
42
                    
73//$a = $focus->db->fetchByAssoc($r);
                    
74//$queue = '<a href="index.php?module=Queues&action=EditView&record='.$a['id'].'">'.$a['name'].'</a>';
                    
75$groupName = '';
                    
178    
                    
179	if( isset($storedOptions['allow_outbound_group_usage']) && $storedOptions['allow_outbound_group_usage'] == 1) 
                    
180	   $allow_outbound_group_usage = $app_list_strings['dom_email_bool']['bool_true'];
                    
225$xtpl->assign('MARK_READ', $delete_seen);
                    
226$xtpl->assign('ALLOW_OUTBOUND_GROUP_USAGE', $allow_outbound_group_usage);
                    
227
                    
                
common.php https://github.com/KurdishEAgle/langs.git | PHP | 173 lines
                    
1<?php
                    
2
                    
82
                    
83// Sprachstrings für include/parser.php
                    
84'BBCode error no opening tag'		=>	'[/%1$s] wurde ohne den öffnenden Tag [%1$s] gefunden',
                    
133'Querytime'							=>	'Erstellt in %1$s Sekunden, %2$s Datenbank-Abfragen ausgeführt',
                    
134'Memory usage'						=>	'Speichernutzung: %1$s',
                    
135'Peak usage'						=>	'(Maximum: %1$s)',
                    
157
                    
158// Für den RSS-Feed der extern.php
                    
159'RSS description'					=>	'Die aktuellsten Themen aus %s.',
                    
                
helper.php https://github.com/phpbb/area51-phpbb3.git | PHP | 300 lines
                    
5 *
                    
6 * @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7 * @license GNU General Public License, version 2 (GPL-2.0)
                    
21use phpbb\event\dispatcher_interface;
                    
22use phpbb\path_helper;
                    
23use phpbb\user;
                    
50
                    
51	/** @var string phpBB root path */
                    
52	protected $phpbb_root_path;
                    
79
                    
80		$this->phpbb_root_path = $path_helper->get_phpbb_root_path();
                    
81
                    
83		$this->name_strings = array(
                    
84			'base_url'				=> "{$path_helper->get_phpbb_root_path()}memberlist.{$path_helper->get_php_ext()}?mode=group&amp;g={GROUP_ID}",
                    
85			'tpl_noprofile'			=> '<span class="username">{GROUP_NAME}</span>',
                    
                
Key.php https://github.com/drobbins/s3db.git | PHP | 316 lines
                    
1<?php
                    
2/**
                    
9 *
                    
10 * LICENSE: This source file is subject to version 3.0 of the PHP license
                    
11 * that is available through the world-wide-web at the following URI:
                    
11 * that is available through the world-wide-web at the following URI:
                    
12 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
                    
13 * the PHP License and are unable to obtain it through the web, please
                    
13 * the PHP License and are unable to obtain it through the web, please
                    
14 * send a note to license@php.net so we can mail you a copy immediately.
                    
15 *
                    
19 * @copyright  2005, 2006 Alexander Valyalkin
                    
20 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
21 * @version    1.2.0b
                    
89 * @copyright  2005, 2006 Alexander Valyalkin
                    
90 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
91 * @link       http://pear.php.net/package/Crypt_RSA
                    
                
Container.php https://github.com/lanmediaservice/lms-tplib.git | PHP | 405 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Container.php 16971 2009-07-22 18:05:45Z mikaelkael $
                    
21 */
                    
25 */
                    
26//*** require_once 'Zend/Tool/Project/Profile/Resource/SearchConstraints.php';
                    
27
                    
55     * Finder method to be able to find resources by context name
                    
56     * and attributes.  Example usage:
                    
57     * 
                    
102                    if (!is_array($currentConstraint->params)) {
                    
103                        //*** require_once 'Zend/Tool/Project/Profile/Exception.php';
                    
104                        throw new Zend_Tool_Project_Profile_Exception('Search parameter specifics must be in the form of an array for key "' 
                    
142            if (($parentResource = $this->search($appendResourceOrSearchConstraints)) == false) {
                    
143                //*** require_once 'Zend/Tool/Project/Profile/Exception.php';
                    
144                throw new Zend_Tool_Project_Profile_Exception('No node was found to append to.');
                    
                
String.php https://github.com/ad2joe/php-framework-benchmarks.git | PHP | 374 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Lithium: the most rad php framework
                    
4 *
                    
6 *                Copyright 2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
7 * @license       http://opensource.org/licenses/mit-license.php The MIT License
                    
8 */
                    
86	 *
                    
87	 * Usage:
                    
88	 * {{{
                    
                
LineProperty.html https://github.com/nephie/AZL-website.git | HTML | 141 lines
                    
13		</style></HEAD><hr><div style="padding-left:4px;border-left:solid black 1px;border-top:solid black 1px;border-bottom:solid black 2px;border-right:solid black 2px;background-color:#deaa87;font-family:courier new;font-size:16pt;">Class <a class="no" name="_C_LINEPROPERTY"><b>LineProperty</b></a></div>
                    
14<i>(Defined in: jpgraph.php : 2945)</i><br>&nbsp;<br><table cellspaceing=0 cellpadding=4 style="border:solid #303030 1px;"><tr><td align="center" style="background:lightgray;" >&nbsp;<a href="LineProperty.html" style="font-family:arial;font-weight:bold;color:darkblue;">LineProperty</a>&nbsp;</td></tr><tr><td valign=top>&nbsp;<a href="LineProperty.html#_LINEPROPERTY_SETCOLOR">SetColor()</a>&nbsp;<br>
                    
15&nbsp;<a href="LineProperty.html#_LINEPROPERTY_SETSTYLE">SetStyle()</a>&nbsp;<br>
                    
18&nbsp;<a href="LineProperty.html#_LINEPROPERTY___CONSTRUCT">__construct()</a>&nbsp;<br>
                    
19</td></tr></table>&nbsp;<p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>Property class to define properties for a line. Currently used only by Gantt chart to specify the grid line properties. <p> &nbsp;
                    
20<hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
                    
                
readme.md https://gitlab.com/jjpa2018/dashboard | Markdown | 173 lines
                    
21 - The vendor name has changed (see installation/usage)
                    
22 - The casing on the props in `cors.php` has changed from camelCase to snake_case, so if you already have a `cors.php` file you will need to update the props in there to match the new casing.
                    
23
                    
47
                    
48```php
                    
49protected $middleware = [
                    
97
                    
98On Lumen, just register the ServiceProvider manually in your `bootstrap/app.php` file:
                    
99
                    
99
                    
100```php
                    
101$app->register(Fruitcake\Cors\CorsServiceProvider::class);
                    
103
                    
104Also copy the [cors.php](https://github.com/fruitcake/laravel-cors/blob/master/config/cors.php) config file to `config/cors.php` and put it into action:
                    
105
                    
                
ProjectsLocationsCaPoolsCertificates.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 171 lines
                    
1<?php
                    
2/*
                    
25 * The "certificates" collection of methods.
                    
26 * Typical usage is:
                    
27 *  <code>
                    
                
trackBlobs.php https://github.com/daevid/MWFork.git | PHP | 396 lines
                    
1<?php
                    
2/**
                    
28if ( count( $args ) < 1 ) {
                    
29	echo "Usage: php trackBlobs.php <cluster> [... <cluster>]\n";
                    
30	echo "Adds blobs from a given ES cluster to the blob_tracking table\n";
                    
82			echo "Integrity check failed: found HistoryBlobStub objects in your text table.\n" .
                    
83				"This script could destroy these objects if it continued. Run resolveStubs.php\n" .
                    
84				"to fix this.\n";
                    
97			echo "Integrity check failed: found external storage pointers in your archive table.\n" .
                    
98				"Run normaliseArchiveTable.php to fix this.\n";
                    
99			exit( 1 );
                    
102				"These objects are probably already broken, continuing would make them\n" .
                    
103				"unrecoverable. Run \"normaliseArchiveTable.php --fix-cgz-bug\" to fix this.\n";
                    
104			exit( 1 );
                    
                
utils.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 313 lines
                    
1<?php
                    
2
                    
44    if(image_check_memory_usage($imgfile,$newwidth,$newheight)){
                    
45	require_once('php_image_magician.php');
                    
46	$magicianObj = new imageLib($imgfile);
                    
55    if(image_check_memory_usage($imgfile,$newwidth,$newheight)){
                    
56	require_once('php_image_magician.php');
                    
57	$magicianObj = new imageLib($imgfile);
                    
229
                    
230function image_check_memory_usage($img, $max_breedte, $max_hoogte){
                    
231    if(file_exists($img)){
                    
232	$K64 = 65536;    // number of bytes in 64K
                    
233	$memory_usage = memory_get_usage();
                    
234	$memory_limit = abs(intval(str_replace('M','',ini_get('memory_limit'))*1024*1024));
                    
240	$thumb_memory_usage = $K64 + ($max_breedte * $max_hoogte * ($image_bits ) * 2);
                    
241	$memory_needed = intval($memory_usage + $image_memory_usage + $thumb_memory_usage);
                    
242
                    
                
BannerCommand.php https://gitlab.com/vectorci/clitools | PHP | 334 lines
                    
1<?php
                    
2
                    
145            $capacity = FormatUtility::bytes($stats['capacity']);
                    
146            $usage    = $stats['usage'];
                    
147
                    
155
                    
156            $leftCol[] = $mount . ': ' . $capacity . ' (' . $usage . ' in use)';
                    
157        }
                    
                
questionusagebyactivity_test.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 284 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
17/**
                    
18 * This file contains tests for the question_usage_by_activity class.
                    
19 *
                    
29global $CFG;
                    
30require_once(dirname(__FILE__) . '/../lib.php');
                    
31require_once(dirname(__FILE__) . '/helpers.php');
                    
34/**
                    
35 * Unit tests for the question_usage_by_activity class.
                    
36 *
                    
39 */
                    
40class question_usage_by_activity_test extends advanced_testcase {
                    
41
                    
43        // Set up
                    
44        $quba = question_engine::make_questions_usage_by_activity('unit_test',
                    
45                context_system::instance());
                    
                
Model.php https://github.com/buldezir/dja_on_php.git | PHP | 509 lines
                    
1<?php
                    
2
                    
88    /**
                    
89     * usage:  MyModel::objects()->filter('field', 'value')->order('-field') ...
                    
90     * @return Dja_Db_Model_Query
                    
186    /**
                    
187     * return php-representaion of field value
                    
188     *
                    
241            if ($force) {
                    
242                $value = $fieldObj->toPhp($value);
                    
243            }
                    
248                if ($force) {
                    
249                    $value = $fieldObj->toPhp($value);
                    
250                }
                    
                
lang_statistics.php https://github.com/TheSteffen/icy_phoenix_langs.git | PHP | 253 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
129	'Most_Ever_Online_Date' => 'Most Users Ever Online Date',
                    
130	'Disk_usage' => 'Disk Usage',
                    
131	'Title' => 'Average Posts per User',
                    
                
util.h https://github.com/cdecker/bitcoin.git | C Header | 273 lines
                    
3 * Distributed under the MIT software license, see the accompanying   *
                    
4 * file COPYING or http://www.opensource.org/licenses/mit-license.php.*
                    
5 **********************************************************************/
                    
118/* Assume there is a contiguous memory object with bounds [base, base + max_size)
                    
119 * of which the memory range [base, *prealloc_ptr) is already allocated for usage,
                    
120 * where *prealloc_ptr is an aligned pointer. In that setting, this functions
                    
                
Table.php https://github.com/xoops-pi/engine.git | PHP | 266 lines
                    
1<?php
                    
2/**
                    
13 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
                    
14 * @author          Taiwen Jiang <phppp@users.sourceforge.net>
                    
15 * @since           3.0
                    
58            if (Zend_Registry::isRegistered($config)) {
                    
59                trigger_error(__CLASS__ . '::' . __METHOD__ . '(\'registryName\') is not valid usage of Zend_Db_Table, '
                    
60                    . 'try extending Zend_Db_Table_Abstract in your extending classes.',
                    
109        if (!$db instanceof Zend_Db_Adapter_Abstract) {
                    
110            require_once 'Zend/Db/Table/Exception.php';
                    
111            throw new Zend_Db_Table_Exception('Argument must be of type Zend_Db_Adapter_Abstract, or a Registry key where a Zend_Db_Adapter_Abstract object is stored');
                    
                
CHANGES.md https://gitlab.com/reasonat/test8 | Markdown | 322 lines
                    
10
                    
11* Disallowed failures on PHP 7 on Travis (tests were passing since a long time)
                    
12
                    
17* Improved the window resize test to consider headless browsers
                    
18* Fixed the compatibility of the testsuite with PHPUnit 5
                    
19* Added a test ensuring that `wait()` always return a boolean even when the JS expression does not cast the value
                    
45
                    
46* Fixed the URL assertions when comparing paths ending in ``.php``
                    
47* Silenced deprecation warnings (following the Symfony convention) to make
                    
47* Silenced deprecation warnings (following the Symfony convention) to make
                    
48  them less invasive. Use the `symfony/phpunit-bridge` to get them reported
                    
49  when using Mink in your PHPUnit tests.
                    
53
                    
54* Made the testsuite compatible with PHPUnit strict timing mode (only the library testsuite, not the driver one)
                    
55* Added testing against PHP 7
                    
                
ProjectChooserHelper.java https://github.com/CyanogenMod/android_sdk.git | Java | 304 lines
                    
7 *
                    
8 *      http://www.eclipse.org/org/documents/epl-v10.php
                    
9 *
                    
174        // recompute only if we don't have the projects already or the filter is dynamic
                    
175        // and prevent usage of a cache.
                    
176        if (mAndroidProjects == null || (mFilter != null && mFilter.useCache() == false)) {
                    
                
framebufferObject.h https://bitbucket.org/alex_merritt/nvidia-cuda-sdk32.git | C Header | 221 lines
                    
19  This software is licensed under the BSD open-source license. See
                    
20  http://www.opensource.org/licenses/bsd-license.php for more detail.
                    
21
                    
81
                    
82    To provide a complete encapsulation, the following usage
                    
83    pattern works correctly but is less efficient:
                    
90
                    
91    The first usage pattern binds the FBO only once, whereas
                    
92    the second usage binds/unbinds the FBO for each method call.
                    
98     still a costly operation. When switching between multiple FBOs
                    
99     and a visible OpenGL framebuffer, the following usage pattern 
                    
100     is recommended:
                    
                
index.html https://github.com/robdgreat/TW-1606.git | HTML | 191 lines
                    
9        <a href="#status">Status</a> |
                    
10        <a href="#usage">Usage</a> |
                    
11        Download <!--- <a href="kokua.jnlp">WebStart</a>, -->
                    
11        Download <!--- <a href="kokua.jnlp">WebStart</a>, -->
                    
12        <a href="http://sourceforge.net/project/showfiles.php?group_id=30183&package_id=124987">SF</a> |
                    
13        <a href="api/index.html">JavaDocs</a> |
                    
108            <td>In Game Help</td>
                    
109            <td>Since 0.5.  Currently only game guides, but will add Kokua usage help if ever a need.
                    
110          </tr>
                    
178        </p>
                    
179      <a name="usage">
                    
180      <h3>Usage</h3>
                    
                
korean.rb https://github.com/ginkel/redmine.git | Ruby | 436 lines
                    
23#
                    
24# This is direct port of korean.php
                    
25#
                    
27#
                    
28# Usage is as follows:
                    
29#
                    
                
configure.php https://github.com/v2ninad/nm_cake.git | PHP | 401 lines
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @package       cake.libs
                    
72			if (!include(CONFIGS . 'core.php')) {
                    
73				trigger_error(__("Can't find application core file. Please create %score.php, and make sure it is readable by PHP.", CONFIGS), E_USER_ERROR);
                    
74			}
                    
114			if (!include(CONFIGS . 'bootstrap.php')) {
                    
115				trigger_error(__("Can't find application bootstrap file. Please create %sbootstrap.php, and make sure it is readable by PHP.", CONFIGS), E_USER_ERROR);
                    
116			}
                    
133 *
                    
134 * Usage:
                    
135 * {{{
                    
                
Collection.php https://bitbucket.org/acidel/buykoala.git | PHP | 480 lines
                    
1<?php

                    
2/**

                    
9 * It is also available through the world-wide-web at this URL:

                    
10 * http://opensource.org/licenses/osl-3.0.php

                    
11 * If you did not receive a copy of the license and are unable to

                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)

                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)

                    
25 */

                    
70        /*

                    
71         * Allow analytic function usage

                    
72         */

                    
                
xbmc_alshain.php https://bitbucket.org/kaigoh/xbmc-php.git | PHP | 312 lines
                    
1<?php
                    
2
                    
5        +-----------------------------------------------+
                    
6        |   XBMC PHP Library - (C) Kai Gohegan, 2010    |
                    
7        +-----------------------------------------------+
                    
8
                    
9        A PHP library for interacting with XBMC using
                    
10        JSON-RPC and XBMC's HTTP-API. Inspiration was
                    
10        JSON-RPC and XBMC's HTTP-API. Inspiration was
                    
11        drawn from Jason Bryant-Greene's php-json-rpc
                    
12        (https://bitbucket.org/jbg/php-json-rpc/src).
                    
49        +-----------------------------------------------+
                    
50        |                     Usage                     |
                    
51        +-----------------------------------------------+
                    
68
                    
69        Usage:
                    
70
                    
                
pretty-data.js https://gitlab.com/raphaelmachiels/partie_pratique_raphael_machiels | JavaScript | 344 lines
                    
9* Dual licensed under the MIT and GPL licenses:
                    
10*   http://www.opensource.org/licenses/mit-license.php
                    
11*   http://www.gnu.org/licenses/gpl.html
                    
29*	
                    
30* USAGE:
                    
31*	
                    
                
Object.js https://github.com/stephaneerard/qooxdoo.git | JavaScript | 359 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.
                    
38 *
                    
39 * *Usage*
                    
40 *
                    
                
Base.php https://github.com/ezimuel/phrozn.git | PHP | 378 lines
                    
1<?php
                    
2/**
                    
227        $out .= sprintf("%s: %s\n", $docs['name'], $docs['summary']);
                    
228        $out .= 'usage: ' . trim($docs['usage']) . "\n";
                    
229        $out .= "\n  " . $this->pre($docs['description']) . "\n";
                    
322    {
                    
323        if (PHP_OS == 'WINNT' || PHP_OS == 'WIN32') {
                    
324            $pattern = '/^[a-zA-z]:.*[^.lnk]$/';
                    
                
CachePluginBase.php https://gitlab.com/reasonat/test8 | PHP | 364 lines
                    
1<?php
                    
2
                    
160   *
                    
161   * Example usage. If it is known that the view is a node view and that the
                    
162   * primary field will be a nid, you can do something like this:
                    
                
innodb.lib.php https://github.com/drbowen/openemr.git | PHP | 411 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin-Engines
                    
7 */
                    
7 */
                    
8if (! defined('PHPMYADMIN')) {
                    
9    exit;
                    
14 *
                    
15 * @package PhpMyAdmin-Engines
                    
16 */
                    
163
                    
164        $output = '<table class="data" id="table_innodb_bufferpool_usage">' . "\n"
                    
165            . '    <caption class="tblHeaders">' . "\n"
                    
165            . '    <caption class="tblHeaders">' . "\n"
                    
166            . '        ' . __('Buffer Pool Usage') . "\n"
                    
167            . '    </caption>' . "\n"
                    
                
Perms.php https://gitlab.com/ElvisAns/tiki | PHP | 416 lines
                    
1<?php
                    
2
                    
14 *
                    
15 * Sample usage:
                    
16 *   $perms = Perms::get( array(
                    
36 *
                    
37 * Sample usage:
                    
38 *   $pages = $tikilib->listpages();
                    
                
wl_cfgp2p.h https://gitlab.com/SerenityS/slteskt_kernel | C Header | 429 lines
                    
8 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
10 * following added to such license:
                    
34typedef struct wifi_p2p_ie wifi_wfd_ie_t;
                    
35/* Enumeration of the usages of the BSSCFGs used by the P2P Library.  Do not
                    
36 * confuse this with a bsscfg index.  This value is an index into the
                    
                
ASTNode.php https://gitlab.com/yousafsyed/easternglamor | PHP | 540 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5
                    
6 *
                    
39 * @copyright 2008-2015 Manuel Pichler. All rights reserved.
                    
40 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
                    
41 * @since 0.9.6
                    
49 * @copyright 2008-2015 Manuel Pichler. All rights reserved.
                    
50 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
                    
51 * @since 0.9.6
                    
397     * @param array  &$results   Already found node instances. This parameter
                    
398     *        is only for internal usage.
                    
399     *
                    
508    /**
                    
509     * The magic sleep method will be called by PHP's runtime environment right
                    
510     * before an instance of this class gets serialized. It should return an
                    
                
Navigation.php https://bitbucket.org/netglue/zf-1.12-release.git | PHP | 346 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26require_once 'Zend/View/Helper/Navigation/HelperAbstract.php';
                    
27
                    
101     *
                    
102     * Examples of usage from a view script or layout:
                    
103     * <code>
                    
184            if ($strict) {
                    
185                require_once 'Zend/View/Exception.php';
                    
186                $e = new Zend_View_Exception(sprintf(
                    
                
Collection.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 333 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
191        /*
                    
192         * Allow Analytic functions usage
                    
193         */
                    
                
Interface.js https://github.com/Wkasel/qooxdoo.git | JavaScript | 523 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.
                    
203
                    
204      // valid usage
                    
205      a.add(b);
                    
208
                    
209      // invalid usage
                    
210      if (this.isDebugOn())
                    
                
class-wc-subscriptions-tracker.php https://gitlab.com/remyvianne/krowkaramel | PHP | 198 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Tracker for Subscriptions usage.
                    
4 *
                    
                
MigrateNodeTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 258 lines
                    
1<?php
                    
2
                    
33    $this->setUpMigratedFiles();
                    
34    $this->installSchema('file', ['file_usage']);
                    
35    $this->executeMigrations([
                    
                
Users.php https://gitlab.com/Anas7232/Layout-Changes | PHP | 209 lines
                    
1<?php
                    
2/*
                    
19 * The "users" collection of methods.
                    
20 * Typical usage is:
                    
21 *  <code>
                    
                
IPv4.php https://github.com/orchestra-io/sample-openx.git | PHP | 458 lines
                    
9* http://www.php.net/license/3_01.txt.  If you did not receive a copy of
                    
10* the PHP License and are unable to obtain it through the web, please
                    
11* send a note to license@php.net so we can mail you a copy immediately.
                    
15* @author     Eric Kilfoil <edk@ypass.net>
                    
16* @author     Marco Kaiser <bate@php.net>
                    
17* @author     Florian Anderiasch <fa@php.net>
                    
18* @copyright  1997-2005 The PHP Group
                    
19* @license    http://www.php.net/license/3_01.txt  PHP License 3.01
                    
20* @version    CVS: $Id: IPv4.php 18922 2008-04-16 08:56:47Z monique.szpak@openx.org $
                    
20* @version    CVS: $Id: IPv4.php 18922 2008-04-16 08:56:47Z monique.szpak@openx.org $
                    
21* @link       http://pear.php.net/package/Net_IPv4
                    
22*/
                    
84* @copyright  1997-2005 The PHP Group
                    
85* @license    http://www.php.net/license/3_01.txt  PHP License 3.01
                    
86* @version    CVS: 1.3.0
                    
                
IPv4.php https://github.com/orchestra-io/sample-openx.git | PHP | 458 lines
                    
9* http://www.php.net/license/3_01.txt.  If you did not receive a copy of
                    
10* the PHP License and are unable to obtain it through the web, please
                    
11* send a note to license@php.net so we can mail you a copy immediately.
                    
15* @author     Eric Kilfoil <edk@ypass.net>
                    
16* @author     Marco Kaiser <bate@php.net>
                    
17* @author     Florian Anderiasch <fa@php.net>
                    
18* @copyright  1997-2005 The PHP Group
                    
19* @license    http://www.php.net/license/3_01.txt  PHP License 3.01
                    
20* @version    CVS: $Id: IPv4.php 22781 2008-07-16 16:52:20Z chris.nutting@openx.org $
                    
20* @version    CVS: $Id: IPv4.php 22781 2008-07-16 16:52:20Z chris.nutting@openx.org $
                    
21* @link       http://pear.php.net/package/Net_IPv4
                    
22*/
                    
84* @copyright  1997-2005 The PHP Group
                    
85* @license    http://www.php.net/license/3_01.txt  PHP License 3.01
                    
86* @version    CVS: 1.3.0
                    
                
sfLuceneCriteria.class.php https://github.com/metaldave/sfLucenePlugin.git | PHP | 422 lines
                    
1<?php
                    
2/*
                    
12 *
                    
13 * Usage example: <code>
                    
14 * $c = sfLuceneCriteria::newInstance()->add('the cool dude')->addField('sfl_category', array('Forum', 'Blog'));
                    
23 * @author     Carl Vondrick <carl@carlsoft.net>
                    
24 * @version SVN: $Id: sfLuceneCriteria.class.php 15602 2009-02-18 15:12:02Z rande $
                    
25 */
                    
                
Upload.php https://github.com/ianbogda/FileZ.git | PHP | 375 lines
                    
1<?php
                    
2
                    
25
                    
26        // check if request exceed php.ini post_max_size
                    
27        if ($_SERVER ['CONTENT_LENGTH'] > $this->shorthandSizeToBytes (
                    
63
                    
64        // check if request exceed php.ini post_max_size
                    
65        if ($_SERVER ['CONTENT_LENGTH'] > $this->shorthandSizeToBytes (
                    
299        $response ['statusText'] = __('The file was successfuly uploaded');
                    
300        $response ['html']       = partial ('main/_file_row.php', array ('file' => $file));
                    
301        $response ['disk_usage'] = bytesToShorthand (max (0,
                    
                
PartnersSubscriptions.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 183 lines
                    
1<?php
                    
2/*
                    
31 * The "subscriptions" collection of methods.
                    
32 * Typical usage is:
                    
33 *  <code>
                    
                
XmlDescriptor.php https://gitlab.com/hoangduys4k5/laravelproject | PHP | 247 lines
                    
1<?php
                    
2
                    
55
                    
56        $commandXML->appendChild($usagesXML = $dom->createElement('usages'));
                    
57
                    
62            foreach ($command->getAliases() as $usage) {
                    
63                $usagesXML->appendChild($dom->createElement('usage', $usage));
                    
64            }
                    
68            foreach (array_merge([$command->getSynopsis()], $command->getAliases(), $command->getUsages()) as $usage) {
                    
69                $usagesXML->appendChild($dom->createElement('usage', $usage));
                    
70            }
                    
                
 

Source

Language