PageRenderTime 2451ms queryTime 533ms sortTime 220ms getByIdsTime 644ms findMatchingLines 275ms

100+ results results for 'php usage repo:Robervaldo/web-php' (2451 ms)

Not the results you expected?
Command.php https://bitbucket.org/maatao/estrutura-b-sica-doctrine.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(), '')));
                    
                
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';
                    
                
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 \
                    
                
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;
                    
                
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
                    
                
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(
                    
                
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';
                    
                
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;
                    
                
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
                    
                
perf-mysql.inc.php https://bitbucket.org/selfeky/xclusivescardwebsite.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));
                    
                
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>
                    
                
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>
                    
                
DefaultCacheFactory.php https://gitlab.com/aleksbenmaza/PPE_NEW | 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']);
                    
                
Exception.php https://github.com/cinnamong/mag3nt0.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
                    
                
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.
                    
                
Misc.php https://gitlab.com/saalmanhussain/scayle_repo | 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
                    
                
CakeTestFixture.php https://gitlab.com/shubam39/CakeTooDoo | 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 */
                    
                
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 ";
                    
                
generate-og-d6-content.php https://gitlab.com/arneturp/cmp3.local | 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';
                    
                
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 *
                    
                
SiteVerification.php https://gitlab.com/oytunistrator/google-api-php-client | PHP | 404 lines
                    
1<?php
                    
2/*
                    
128 * The "webResource" collection of methods.
                    
129 * Typical usage is:
                    
130 *  <code>
                    
                
Collection.php https://bitbucket.org/kdms/sh-magento.git | PHP | 376 lines
                    
1<?php
                    
2/**
                    
188        /*
                    
189         * Allow analytic functions usage
                    
190         */
                    
                
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>
                    
                
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
                    
                
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;
                    
                
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>
                    
                
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        }
                    
                
mkbarcode.php https://gitlab.com/Drakons/Illarion-Website | 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");
                    
                
String.php https://github.com/pmjones/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	 * {{{
                    
                
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                }
                    
                
Panel.html https://github.com/xenophy/PerfectDay.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        
                    
                
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
                    
                
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#
                    
                
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         */

                    
                
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 *
                    
                
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:
                    
                
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(
                    
                
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>
                    
                
Action.js https://github.com/devilry/devilry-sandbox.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...',
                    
                
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/jjpa2018/dashboard | 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            }
                    
                
testsuite.php https://github.com/bb-dev/cakephp2x.git | PHP | 376 lines
                    
8 *
                    
9 * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
                    
10 * Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
                    
17 * @package       cake
                    
18 * @subpackage    cake.cake.console.libs
                    
19 * @since         CakePHP(tm) v 1.2.0.4433
                    
20 * @license       http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
                    
228			case 'case':
                    
229				if ($this->category == 'app' && file_exists($folder.DS.'cases'.DS.$this->file.'.test.php')) {
                    
230					return true;
                    
231				}
                    
232				$coreCaseExists = file_exists($folder.DS.'cases'.DS.$this->file.'.test.php');
                    
233				$coreLibCaseExists = file_exists($folder.DS.'cases'.DS.'libs'.DS.$this->file.'.test.php');
                    
                
overview.md https://gitlab.com/xanium4332/atom-config | Markdown | 231 lines
                    
22- Sublime Text: [marko-sublime](https://github.com/merwan7/sublime-marko)
                    
23- WebStorm: [marko.tmbundle](https://github.com/marko-js/marko-tmbundle) (See: [Importing TextMate Bundles](https://www.jetbrains.com/phpstorm/help/importing-textmate-bundles.html))
                    
24- TextMate: [marko.tmbundle](https://github.com/marko-js/marko-tmbundle)
                    
222* __Extensible:__ The template engine should be easily extensible at both compile-time and runtime.
                    
223* __High Performance:__ Runtime and compiled output should be optimized for low CPU and memory usage and have a small footprint. All expressions should be native JavaScript to avoid runtime interpretation.
                    
224* __Not Restrictive:__ Whether or not to go less logic or more logic in templates is up to the developer.
                    
                
BaseIndustryQuery.php https://gitlab.com/Isaki/le331.fr | PHP | 397 lines
                    
1<?php
                    
2
                    
48     * @param     string $dbName The dabase name
                    
49     * @param     string $modelName The phpName of a model, e.g. 'Book'
                    
50     * @param     string $modelAlias The alias for the model in this query, e.g. 'b'
                    
238     *
                    
239     * Example usage:
                    
240     * <code>
                    
280     *
                    
281     * Example usage:
                    
282     * <code>
                    
                
FAQ.htm https://gitlab.com/x33n/ProjectPier-Core | HTML | 341 lines
                    
181<br>
                    
182<b>Warning:</b> Cannot modify header information - headers already sent by (output started at script.php:X)<br>
                    
183<br>
                    
241<div class="doc-source">
                    
242<pre><code>require('fpdf.php');
                    
243
                    
250<div class="doc-source">
                    
251<pre><code>require('a.php');
                    
252
                    
272<p><b>15.</b> <span class='question'>How can I send the PDF by email?</span></p>
                    
273As any other file, but an easy way is to use <a href="http://phpmailer.codeworxtech.com">PHPMailer</a> and
                    
274its in-memory attachment:
                    
310<br>
                    
311<a href="http://www.setasign.de/products/pdf-php-solutions/fpdi/" target="_blank">http://www.setasign.de/products/pdf-php-solutions/fpdi/</a><br>
                    
312<br>
                    
                
innodb.lib.php https://gitlab.com/ctheilman92/Aging-In-Place | 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"
                    
                
README.md https://gitlab.com/jjpa2018/dashboard | Markdown | 410 lines
                    
16    <a href="https://scrutinizer-ci.com/g/antonioribeiro/google2fa/?branch=master"><img alt="Coverage" src="https://img.shields.io/scrutinizer/coverage/g/antonioribeiro/google2fa.svg?style=flat-square"></a>
                    
17    <a href="https://travis-ci.org/antonioribeiro/google2fa"><img alt="PHP" src="https://img.shields.io/badge/PHP-7.1%20--%208.0-brightgreen.svg?style=flat-square"></a>
                    
18</p>
                    
24  - [Version Compatibility](#version-compatibility)
                    
25  - [Google Two-Factor Authentication for PHP Package](#google-two-factor-authentication-for-php-package)
                    
26  - [Laravel bridge](#laravel-bridge)
                    
33  - [QR Code Packages](#qr-code-packages)
                    
34  - [Examples of Usage](#examples-of-usage)
                    
35  - [HMAC Algorithms](#hmac-algorithms)
                    
202
                    
203```php
                    
204<div class="visible-print text-center">
                    
383
                    
384The package tests were written with [PHPUnit](https://phpunit.de/). There are some Composer scripts to help you run tests and analysis:
                    
385
                    
                
javascript.php https://bitbucket.org/sbeuken/artelux.git | PHP | 625 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
77		{
                    
78			require APPPATH.'libraries/Spellcheck.php'; 
                    
79		}
                    
99		{
                    
100			require APPPATH.'libraries/Spellcheck.php'; 
                    
101		}
                    
231	 *
                    
232	 * This private method is intended for usage by the 'add_global_cp_js' hook 
                    
233	 *
                    
623
                    
624/* End of file javascript.php */
                    
625/* Location: ./system/expressionengine/controllers/cp/javascript.php */
                    
                
helper.php https://github.com/rxu/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>',
                    
                
Revert.php https://github.com/bermi/akelos.git | PHP | 300 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: Revert.php 106 2004-06-08 07:00:10Z clay $
                    
45//
                    
84 *
                    
85 * Usage example:
                    
86 * <code>
                    
86 * <code>
                    
87 * <?php
                    
88 * require_once 'VersionControl/SVN.php';
                    
                
Exception.php https://github.com/FranckErnewein/citron.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
                    
                
ResourceRegistrar.php https://gitlab.com/phanthanh9787/crud-user | PHP | 359 lines
                    
1<?php
                    
2
                    
223    /**
                    
224     * Format a resource wildcard for usage.
                    
225     *
                    
                
14CodedefinesinJpGraph.html https://github.com/wally/hamsterpaj4.git | HTML | 174 lines
                    
27<P> Various settings in JpGraph are controlled by overall DEFINEs in the
                    
28 configuration file &quot;jpg-config.inc.php&quot;. Most of these defines have
                    
29 default values that should be valid for most usage.</P>
                    
30<P> In the rest of this chapter all constants are described with default
                    
31 value and usage.</P>
                    
32<P></P>
                    
36 absolute name of directory to be used as a cache. This directory<STRONG>
                    
37 must</STRONG> be readable and writable for PHP. Must end with '/'</TD></TR>
                    
38<TR><TD valign="top">&quot;TTF_DIR&quot;, &quot;/usr/local/fonts/ttf/&quot;</TD><TD>
                    
44 specification for use with CSIM graphs that are using the cache. The
                    
45 directory must be the filesystem name as seen by PHP and the 'http'
                    
46 version must be the same directory but as seen by the HTTP server
                    
50 where the image script is executed and store all files there. As usual
                    
51 this directory must be writable by the PHP process.</TD></TR>
                    
52<TR><TD valign="top">&quot;CSIMCACHE_HTTP_DIR&quot;, &quot;csimcache&quot;</TD><TD>Directory
                    
                
README.md https://gitlab.com/thienvdt/KPIApp | Markdown | 289 lines
                    
19* [Meteor](http://atmospherejs.com/): `meteor add imsky:holder`
                    
20* [Composer](https://packagist.org/): `php composer.phar update imsky/holder`
                    
21* [NuGet](http://www.nuget.org/): `Install-Package Holder.js`
                    
22
                    
23## Usage
                    
24
                    
40
                    
41### Programmatic usage
                    
42
                    
                
Output.php https://github.com/ikhattab/pyrocms.git | PHP | 450 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
34	var $enable_profiler 	= FALSE;
                    
35	var $parse_exec_vars	= TRUE;	// whether or not to parse variables like {elapsed_time} and {memory_usage}
                    
36
                    
203	 * with any server headers and profile data.  It also stops the
                    
204	 * benchmark timer so the page rendering speed and memory usage can be shown.
                    
205	 *
                    
233
                    
234		// Parse out the elapsed time and memory usage,
                    
235		// then swap the pseudo-variables with the data
                    
240		{
                    
241			$memory	 = ( ! function_exists('memory_get_usage')) ? '0' : round(memory_get_usage()/1024/1024, 2).'MB';
                    
242			
                    
                
production.js https://gitlab.com/pentacode/poweraire-erp | JavaScript | 351 lines
                    
28        fileName: process.env.LOG_FILE || 'access.log',
                    
29        rotatingLogs: { // for more info on rotating logs - https://github.com/holidayextras/file-stream-rotator#usage
                    
30          active: process.env.LOG_ROTATING_ACTIVE === 'true' ? true : false, // activate to use rotating logs
                    
141        code: 'CURRENCY',
                    
142        value: 'PHP',
                    
143        descriptionOne: 'Philippines Peso',
                    
                
view.php https://github.com/nemein/openpsa.git | PHP | 317 lines
                    
1<?php
                    
2/**
                    
38     * Simple helper which references all important members to the request data listing
                    
39     * for usage within the style listing.
                    
40     */
                    
                
ssp.class.php https://gitlab.com/ealexis.t/trends | PHP | 390 lines
                    
1<?php
                    
2
                    
11 *
                    
12 * See http://datatables.net/usage/server-side for full details on the server-
                    
13 * side processing requirements of DataTables.
                    
19// REMOVE THIS BLOCK - used for DataTables test environment only!
                    
20$file = $_SERVER['DOCUMENT_ROOT'].'/datatables/mysql.php';
                    
21if ( is_file( $file ) ) {
                    
                
appcachemanifest.php https://gitlab.com/Rad1calDreamer/honey | PHP | 611 lines
                    
1<?php
                    
2namespace Bitrix\Main\Data;
                    
9
                    
10	const MANIFEST_CHECK_FILE = "/bitrix/tools/check_appcache.php";
                    
11	private static $debug;
                    
68	/**
                    
69	 * Creates or updates the manifest file for the page with usage its content.
                    
70	 *
                    
519	{
                    
520		$cache = new \CPHPCache();
                    
521		$manifestId = $arFields["ID"];
                    
531	{
                    
532		$cache = new \CPHPCache();
                    
533
                    
544	{
                    
545		$cache = new \CPHPCache();
                    
546		$cachePath = self::getCachePath($manifestId);
                    
                
ProjectsRegionsJobs.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 248 lines
                    
1<?php
                    
2/*
                    
33 * The "jobs" collection of methods.
                    
34 * Typical usage is:
                    
35 *  <code>
                    
                
ProjectsLocationsSpokes.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 227 lines
                    
1<?php
                    
2/*
                    
29 * The "spokes" collection of methods.
                    
30 * Typical usage is:
                    
31 *  <code>
                    
                
ProjectsLocationsConnectionProfiles.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 231 lines
                    
1<?php
                    
2/*
                    
29 * The "connectionProfiles" collection of methods.
                    
30 * Typical usage is:
                    
31 *  <code>
                    
                
UPGRADING.md https://gitlab.com/github-cloud-corp/aws-sdk-php | Markdown | 324 lines
                    
9feedback, upgrade our dependencies, improve performance, and adopt the latest
                    
10PHP standards.
                    
11
                    
11
                    
12The basic usage pattern of the SDK (i.e., `$result = $client->operation($params);`)
                    
13has not changed from Version 2 to Version 3, which should result in a fairly
                    
16For details on how to migrate your code from Version 2 to Version 3, read the
                    
17[Version 3 Migration Guide](http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/migration.html).
                    
18
                    
31
                    
32```php
                    
33use Aws\Lambda\LambdaClient;
                    
42
                    
43In preparation for Version 3 of the AWS SDK for PHP:
                    
44
                    
                
sql.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 238 lines
                    
1<?php
                    
2if (!$error && $_POST["export"]) {
                    
33	if (is_string($query)) { // get_file() returns error as number, fread() as false
                    
34		if (function_exists('memory_get_usage')) {
                    
35			@ini_set("memory_limit", max(ini_bytes("memory_limit"), 2 * strlen($query) + memory_get_usage() + 8e6)); // @ - may be disabled, 2 - substr and trim, 8e6 - other variables
                    
186<form action="" method="post" enctype="multipart/form-data" id="form">
                    
187<?php
                    
188$execute = "<input type='submit' value='" . lang('Execute') . "' title='Ctrl+Enter'>";
                    
                
ecommerce-orders-view.js https://gitlab.com/worksmit/demo | JavaScript | 237 lines
                    
16            loadingMessage: 'Loading...',
                    
17            dataTable: { // here you can define a typical datatable settings from http://datatables.net/usage/options 
                    
18                
                    
29                "ajax": {
                    
30                    "url": "../demo/ecommerce_order_invoices.php", // ajax source
                    
31                },
                    
80            loadingMessage: 'Loading...',
                    
81            dataTable: { // here you can define a typical datatable settings from http://datatables.net/usage/options 
                    
82
                    
93                "ajax": {
                    
94                    "url": "../demo/ecommerce_order_credit_memos.php", // ajax source
                    
95                },
                    
120            loadingMessage: 'Loading...',
                    
121            dataTable: { // here you can define a typical datatable settings from http://datatables.net/usage/options 
                    
122                "lengthMenu": [
                    
                
CacheController.php https://bitbucket.org/acidel/buykoala.git | PHP | 341 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 */
                    
101
                    
102        // clean all requested system cache and update cache usage
                    
103        if (!empty($clean)) {
                    
                
TraitUsageGenerator.php https://gitlab.com/yousafsyed/easternglamor | PHP | 353 lines
                    
1<?php
                    
2/**
                    
13
                    
14class TraitUsageGenerator extends AbstractGenerator
                    
15{
                    
46    /**
                    
47     * @inherit Zend\Code\Generator\TraitUsageInterface
                    
48     */
                    
59    /**
                    
60     * @inherit Zend\Code\Generator\TraitUsageInterface
                    
61     */
                    
67    /**
                    
68     * @inherit Zend\Code\Generator\TraitUsageInterface
                    
69     */
                    
99    /**
                    
100     * @inherit Zend\Code\Generator\TraitUsageInterface
                    
101     */
                    
                
pearcmd.php https://bitbucket.org/kucing2k/ediassoc.git | PHP | 444 lines
                    
48require_once 'PEAR.php';
                    
49require_once 'PEAR/Frontend.php';
                    
50require_once 'PEAR/Config.php';
                    
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);
                    
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');
                    
376        return "PEAR Version: ".$GLOBALS['pear_package_version'].
                    
377               "\nPHP Version: ".phpversion().
                    
378               "\nZend Engine Version: ".zend_version().
                    
                
Pass.h https://gitlab.com/wustl-pctg-pub/llvm-cilk | C Header | 369 lines
                    
39class Module;
                    
40class AnalysisUsage;
                    
41class PassInfo;
                    
57  PMT_ModulePassManager = 1, ///< MPPassManager
                    
58  PMT_CallGraphPassManager,  ///< CGPassManager
                    
59  PMT_FunctionPassManager,   ///< FPPassManager
                    
145
                    
146  /// getAnalysisUsage - This function should be overriden by passes that need
                    
147  /// analysis information to do their job.  If a pass specifies that it uses a
                    
150  ///
                    
151  virtual void getAnalysisUsage(AnalysisUsage &) const;
                    
152
                    
213  /// to the analysis information that they claim to use by overriding the
                    
214  /// getAnalysisUsage function.
                    
215  ///
                    
                
index.php https://gitlab.com/muktobani/web_site | PHP | 316 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
47 *
                    
48 * This can be set to anything, but default usage is:
                    
49 *
                    
76		ini_set('display_errors', 0);
                    
77		if (version_compare(PHP_VERSION, '5.3', '>='))
                    
78		{
                    
140 *
                    
141 * Normally you will set your default controller in the routes.php file.
                    
142 * You can, however, force a custom routing by hard-coding a
                    
172 * config class when initialized. This allows you to set custom config
                    
173 * items or override any default config values found in the config.php file.
                    
174 * This can be handy as it permits you to share one application between
                    
                
README.md https://gitlab.com/AVA_Sri/agovbe | Markdown | 203 lines
                    
6
                    
7## Usage
                    
8
                    
78
                    
79If `options.ignoreCargoCult` is true, common anti-cache directives will be completely ignored if the non-standard `pre-check` and `post-check` directives are present. These two useless directives are most commonly found in bad StackOverflow answers and PHP's "session limiter" defaults.
                    
80
                    
                
Action.js https://github.com/xenophy/PerfectDay.git | JavaScript | 313 lines
                    
109     * {@link Ext.form.action.Action.SERVER_INVALID}, {@link Ext.form.action.Action.CONNECT_FAILURE}, or
                    
110     * {@link Ext.form.action.Action.LOAD_FAILURE}.  Usage:
                    
111     * <pre><code>
                    
119            fp.getForm().submit({
                    
120                url: 'form-submit.php',
                    
121                waitMsg: 'Submitting your data...',
                    
                
WARCReader.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 290 lines
                    
133     * @param formatter Help formatter instance.
                    
134     * @param options Usage options.
                    
135     * @param exitCode Exit code.
                    
136     */
                    
137    private static void usage(HelpFormatter formatter, Options options,
                    
138            int exitCode) {
                    
181     * <pre>
                    
182     * usage: java org.archive.io.arc.WARCReader [--offset=#] ARCFILE
                    
183     *  -h,--help      Prints this message and exits.
                    
186     * <p>Outputs using a pseudo-CDX format as described here:
                    
187     * <a href="http://www.archive.org/web/researcher/cdx_legend.php">CDX
                    
188     * Legent</a> and here
                    
188     * Legent</a> and here
                    
189     * <a href="http://www.archive.org/web/researcher/example_cdx.php">Example</a>.
                    
190     * Legend used in below is: 'CDX b e a m s c V (or v if uncompressed) n g'.
                    
                
wc-formatting-functions.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 607 lines
                    
1<?php
                    
2/**
                    
44 *
                    
45 * Usage: wc_get_dimension(55, 'in');
                    
46 *
                    
95 *
                    
96 * Usage: wc_get_weight(55, 'kg');
                    
97 *
                    
157	// @codeCoverageIgnoreStart
                    
158	if ( version_compare( phpversion(), '5.3', '<' ) ) {
                    
159		$tax = round( $tax, $dp );
                    
210/**
                    
211 * Convert a float to a string without locale formatting which PHP adds when changing floats to strings
                    
212 * @param  float $float
                    
402 *
                    
403 * Adapted from http://www.php.net/manual/en/function.timezone-name-from-abbr.php#89155
                    
404 *
                    
                
UsageTest.php https://gitlab.com/guillaumev/alkarama | PHP | 266 lines
                    
18  /**
                    
19   * Tests \Drupal\file\FileUsage\DatabaseFileUsageBackend::listUsage().
                    
20   */
                    
41
                    
42    $usage = $this->container->get('file.usage')->listUsage($file);
                    
43
                    
216  public function testFileUsageWithEntityTranslation() {
                    
217    /** @var \Drupal\file\FileUsage\FileUsageInterface $file_usage */
                    
218    $file_usage = $this->container->get('file.usage');
                    
253    // Check that the file is used twice.
                    
254    $usage = $file_usage->listUsage($file);
                    
255    $this->assertEquals(2, $usage['file']['node'][$node->id()]);
                    
261    // Check that one usage has been removed and is used only once now.
                    
262    $usage = $file_usage->listUsage($file);
                    
263    $this->assertEquals(1, $usage['file']['node'][$node->id()]);
                    
                
Logger.php https://gitlab.com/nitm/yii2-module | PHP | 395 lines
                    
1<?php
                    
2
                    
38		parent::init();
                    
39		$this->currentUser = (\Yii::$app->hasProperty('user') && \Yii::$app->user->getId()) ? \Yii::$app->user->getIdentity() : new \nitm\models\User(['username' => (php_sapi_name() == 'cli' ? 'console' : 'web')]);
                    
40
                    
298			$coreInfo = array_values(array_replace($keys, array_intersect_key((array)$array, $keys)));
                    
299			$coreInfo = array_merge($coreInfo, [$this->traces, memory_get_usage()]);
                    
300			$array = array_merge($coreInfo,
                    
                
build_class_from_table.php git://github.com/Dolibarr/dolibarr.git | PHP | 464 lines
                    
30if (substr($sapi_type, 0, 3) == 'cgi') {
                    
31    echo "Error: You are using PHP for CGI. To execute ".$script_file." from command line, you must use PHP for CLI mode.\n";
                    
32    exit;
                    
168// Substitute class name
                    
169$targetcontent=preg_replace('/skeleton_class\.class\.php/', $classmin.'.class.php', $targetcontent);
                    
170$targetcontent=preg_replace('/\$element=\'skeleton\'/', '\$element=\''.$classmin.'\'', $targetcontent);
                    
367//--------------------------------
                    
368// Build skeleton_script.php
                    
369//--------------------------------
                    
387$targetcontent=preg_replace('/skeleton_class\.class\.php/', $classmin.'.class.php', $targetcontent);
                    
388$targetcontent=preg_replace('/skeleton_script\.php/', $classmin.'_script.php', $targetcontent);
                    
389$targetcontent=preg_replace('/\$element=\'skeleton\'/', '\$element=\''.$classmin.'\'', $targetcontent);
                    
433$targetcontent=preg_replace('/skeleton_class\.class\.php/', $classmin.'.class.php', $targetcontent);
                    
434$targetcontent=preg_replace('/skeleton_script\.php/', $classmin.'_script.php', $targetcontent);
                    
435$targetcontent=preg_replace('/\$element=\'skeleton\'/', '\$element=\''.$classmin.'\'', $targetcontent);
                    
                
PhpDeleteRefactoringPlugin.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 165 lines
                    
41 */
                    
42package org.netbeans.modules.refactoring.php.delete;
                    
43
                    
46import javax.swing.Action;
                    
47import org.netbeans.modules.php.editor.api.ElementQuery.Index;
                    
48import org.netbeans.modules.php.editor.model.ModelElement;
                    
55import org.netbeans.modules.refactoring.api.WhereUsedQuery;
                    
56import org.netbeans.modules.refactoring.php.findusages.WhereUsedQueryUI;
                    
57import org.netbeans.modules.refactoring.php.findusages.WhereUsedSupport;
                    
73 */
                    
74public class PhpDeleteRefactoringPlugin extends ProgressProviderAdapter implements RefactoringPlugin {
                    
75
                    
161        public String getDetailsHint() {
                    
162            return NbBundle.getMessage(PhpDeleteRefactoringPlugin.class, "LBL_ShowUsages");//NOI18N
                    
163        }
                    
                
view-about.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 106 lines
                    
6        <div class="inside">
                    
7        <p><?php _e( 'WP-Table Reloaded allows you to create and manage tables in the admin-area of WordPress.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'Those tables may contain strings, numbers and even HTML (e.g. to include images or links).', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'You can then show the tables in your posts, on your pages or in text-widgets by using a shortcode.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'If you want to show your tables anywhere else in your theme, you can use a template tag function.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?></p>
                    
8        </div>
                    
13        <div class="inside">
                    
14        <p><?php _e( 'At first you should add or import a table.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'This means that you either let the plugin create an empty table for you or that you load an existing table from either a CSV, XML or HTML file.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?></p><p><?php _e( 'Then you can edit your data or change the structure of your table (e.g. by inserting or deleting rows or columns, swaping rows or columns or sorting them) and select specific table options like alternating row colors or whether to print the name or description, if you want.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'To easily add a link or an image to a cell, use the provided buttons. Those will ask you for the URL and a title. Then you can click into a cell and the corresponding HTML will be added to it for you.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?></p><p><?php printf( __( 'To insert the table into a page, post or text-widget, copy the shortcode <strong>[table id=%s /]</strong> and paste it into the corresponding place in the editor.', WP_TABLE_RELOADED_TEXTDOMAIN ), '&lt;ID&gt;' ); ?> <?php printf( __( 'You can also select the desired table from a list (after clicking the button &quot;%s&quot; in the editor toolbar) and the corresponding shortcode will be added for you.', WP_TABLE_RELOADED_TEXTDOMAIN ), __( 'Table', WP_TABLE_RELOADED_TEXTDOMAIN ) ); ?></p><p><?php _e( 'Tables can be styled by changing and adding CSS commands.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'The plugin ships with default CSS Stylesheets, which can be customized with own code or replaced with other Stylesheets.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'For this, each table is given certain CSS classes that can be used as CSS selectors.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php printf ( __( 'Please see the <a href="%s">documentation</a> for a list of these selectors and for styling examples.', WP_TABLE_RELOADED_TEXTDOMAIN ), 'http://tobias.baethge.com/go/wp-table-reloaded/documentation/' ); ?></p>
                    
15        </div>
                    
27        <div class="inside">
                    
28        <p><?php printf( __( '<a href="%s">Support</a> is provided through the <a href="%s">WordPress Support Forums</a>.', WP_TABLE_RELOADED_TEXTDOMAIN ), 'http://tobias.baethge.com/go/wp-table-reloaded/support/', 'http://www.wordpress.org/support/' ); ?> <?php printf( __( 'Before asking for support, please carefully read the <a href="%s">Frequently Asked Questions</a> where you will find answered to the most common questions, and search through the forums.', WP_TABLE_RELOADED_TEXTDOMAIN ), 'http://tobias.baethge.com/go/wp-table-reloaded/faq/' ); ?></p><p><?php printf( __( 'If you do not find an answer there, please <a href="%s">open a new thread</a> in the WordPress Support Forums with the tag &quot;wp-table-reloaded&quot;.', WP_TABLE_RELOADED_TEXTDOMAIN ), 'http://wordpress.org/tags/wp-table-reloaded' ); ?></p>
                    
29        </div>
                    
34        <div class="inside">
                    
35        <p><?php printf( __( 'This plugin was written by <a href="%s">Tobias B&auml;thge</a>.', WP_TABLE_RELOADED_TEXTDOMAIN ), 'http://tobias.baethge.com/' ); ?> <?php _e( 'It is licensed as Free Software under GPL 2.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?><br/><?php printf( __( 'If you like the plugin, <a href="%s"><strong>a donation</strong></a> is recommended.', WP_TABLE_RELOADED_TEXTDOMAIN ), 'http://tobias.baethge.com/go/wp-table-reloaded/donate/' ); ?> <?php printf( __( 'Please rate the plugin in the <a href="%s">WordPress Plugin Directory</a>.', WP_TABLE_RELOADED_TEXTDOMAIN ), 'http://wordpress.org/extend/plugins/wp-table-reloaded/' ); ?><br/><?php _e( 'Donations and good ratings encourage me to further develop the plugin and to provide countless hours of support. Any amount is appreciated! Thanks!', WP_TABLE_RELOADED_TEXTDOMAIN ); ?></p>
                    
36        </div>
                    
98            <br/>&middot; WordPress: <?php echo $GLOBALS['wp_version']; ?>
                    
99            <br/>&middot; PHP: <?php echo phpversion(); ?>
                    
100            <br/>&middot; mySQL (Server): <?php echo mysql_get_server_info(); ?>
                    
                
css.js https://gitlab.com/wilane/Booktype | JavaScript | 455 lines
                    
6 * Licensed under the MIT License at:
                    
7 * 		http://www.opensource.org/licenses/mit-license.php
                    
8 *
                    
62 *
                    
63 * usage:
                    
64 *      require(['css!myproj/comp']); // load and wait for myproj/comp.css
                    
                
InsufficientStringBufferDeclaration.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 325 lines
                    
34 * 
                    
35 * See http://sourceforge.net/forum/forum.php?thread_id=1438119&forum_id=188194
                    
36 * @author Allan Caplan
                    
57        anticipatedLength = getInitialLength(node);
                    
58        List<NameOccurrence> usage = node.getUsages();
                    
59        Map<Node, Map<Node, Integer>> blocks = new HashMap<Node, Map<Node, Integer>>();
                    
59        Map<Node, Map<Node, Integer>> blocks = new HashMap<Node, Map<Node, Integer>>();
                    
60        for (int ix = 0; ix < usage.size(); ix++) {
                    
61            NameOccurrence no = usage.get(ix);
                    
                
Autoscalers.php https://gitlab.com/efabian/maya | PHP | 275 lines
                    
1<?php
                    
2/*
                    
19 * The "autoscalers" collection of methods.
                    
20 * Typical usage is:
                    
21 *  <code>
                    
                
 

Source

Language