100+ results results for 'php usage' (524 ms)
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);Exception.php http://syracava.googlecode.com/svn/trunk/ | 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 125 2009-08-21 01:35:18Z takuji.mezawa $ 22 * @version CVS: $Id: Exception.php 125 2009-08-21 01:35:18Z takuji.mezawa $ 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_* constantconvert-ly.py git://git.savannah.gnu.org/lilypond.git | Python | 391 lines
84def get_option_parser (): 85 p = ly.get_option_parser (usage=_ ("%s [OPTION]... FILE") % 'convert-ly', 86 description=help_summary, 157 _ ("Report bugs via %s") 158 % 'http://post.gmane.org/post.php' 159 '?group=gmane.comp.gnu.lilypond.bugs') + '\n')01-basic-usage.md git://github.com/composer/composer.git | Markdown | 273 lines
164```sh 165php composer.phar update monolog/monolog [...] 166``` 189installed on the system but are not actually installable by Composer. This 190includes PHP itself, PHP extensions and some system libraries. 191 191 192* `php` represents the PHP version of the user, allowing you to apply 193 constraints, e.g. `^7.1`. To require a 64bit version of php, you can 204* `lib-<name>` allows constraints to be made on versions of libraries used by 205 PHP. The following are available: `curl`, `iconv`, `icu`, `libxml`, 206 `openssl`, `pcre`, `uuid`, `xsl`. 213For libraries that specify autoload information, Composer generates a 214`vendor/autoload.php` file. You can simply include this file and start 215using the classes that those libraries provide without any extra work:LangReplacer.php git://github.com/imagecms/ImageCMS.git | PHP | 446 lines
1<?php 2 31 * 32 * USAGE 33 * $module = 'aggregator'; 238 /** 239 * Search lang function call in all php|tpl files recursively 240 * @param $dir 247 foreach ($dirIterator as $item) { 248 if ($item->isFile() && in_array($item->getExtension(), ['php', 'tpl']) && !strstr($item->getBasename(), 'jsLangs')) { 249 $res = self::find(file_get_contents($item->getRealPath()));server.php http://arronwork.googlecode.com/svn/trunk/ | PHP | 429 lines
1#!/usr/bin/env php 2<?php 5$SOAR_DIR="../../../../.."; 6include "$SOAR_DIR/common/php/soar/soar.inc"; 7 48 'desc'=>"print client ip & port", 49 'usage'=>"printclient(pwrk)"), 50 array('name'=>"printservice", 'ab'=>"psvc", 51 'desc'=>"print service status", 52 'usage'=>"printservice(psvc)"), 53 array('name'=>"shutdown", 'ab'=>"shutdown", 54 'desc'=>"shutdown server", 55 'usage'=>"shutdown"), 56 array('name'=>"help", 'ab'=>"h", 114 $respond="Description: ".$arr['desc']."\n". 115 "Usage: ".$arr['usage']."\n"; 116 return $respond;ejs.js git://github.com/appcelerator/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 innerHTMLarmory_data.php http://wowroster.googlecode.com/svn/trunk/ | PHP | 290 lines
1<?php 2/** 9 * @license http://www.gnu.org/licenses/gpl.html Licensed under the GNU General Public License v3. 10 * @version SVN: $Id: armory_data.php 2394 2012-02-15 22:05:03Z ulminia@gmail.com $ 11 * @link http://www.wowroster.net 237 238 $queryx = "SELECT * FROM `" . $roster->db->table('api_usage') . "` ORDER BY `date` DESC LIMIT 0,150;"; 239 $resultx = $roster->db->query($queryx); 239 $resultx = $roster->db->query($queryx); 240 $usage = array(); 241 while ($row = $roster->db->fetch($resultx)) 242 { 243 $usage[$row['date']][$row['type']]['total']=$row['total']; 244 } 246 247 foreach($usage as $date => $x) 248 {jqplot-axisLabelRenderer-js.html http://eeplat.googlecode.com/svn/trunk/ | HTML | 47 lines
13 14<div id=Content><div class="CClass"><div class=CTopic id=MainTopic><div class="CTitle logo"><div class="nav"><a class="nav" href="../../index.php"><span>></span>Home</a><a class="nav" href="../../tests/"><span>></span>Examples</a><a class="nav" href="../../docs/"><span>></span>Docs</a><a class="nav" href="http://bitbucket.org/cleonello/jqplot/downloads/"><span>></span>Download</a><a class="nav" href="../../info.php"><span>></span>Info</a><a class="nav" href="../../donate.php"><span>></span>Donate</a></div><a name="$.jqplot.AxisLabelRenderer"></a>$.jqplot.<wbr>AxisLabelRenderer</div><div class=CBody><p>Renderer to place labels on the axes.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#$.jqplot.AxisLabelRenderer" >$.jqplot.<wbr>AxisLabelRenderer</a></td><td class=SDescription>Renderer to place labels on the axes.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#$.jqplot.AxisLabelRenderer.Properties" >Properties</a></td><td class=SDescription></td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#$.jqplot.AxisLabelRenderer.show" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">show</a></td><td class=SDescription>wether or not to show the tick (mark and label).</td></tr><tr class="SProperty SIndent2"><td class=SEntry><a href="#$.jqplot.AxisLabelRenderer.label" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">label</a></td><td class=SDescription>The text or html for the label.</td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#$.jqplot.AxisLabelRenderer.escapeHTML" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">escapeHTML</a></td><td class=SDescription>true to escape HTML entities in the label.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div> 15 29 30<div id=Menu><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Usage and Options</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MFile><a href="usage-txt.html">Usage</a></div></div><div class=MEntry><div class=MFile><a href="jqPlotOptions-txt.html">jqPlot Options</a></div></div><div class=MEntry><div class=MFile><a href="optionsTutorial-txt.html">Options Tutorial</a></div></div><div class=MEntry><div class=MFile><a href="jqPlotCssStyling-txt.html">jqPlot CSS Customization</a></div></div><div class=MEntry><div class=MFile><a href="changes-txt.html">Change Log</a></div></div><div class=MEntry><div class=MLink><a href="../../tests/">Examples</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent4')">API Documentation</a><div class=MGroupContent id=MGroupContent4><div class=MEntry><div class=MFile><a href="jqplot-core-js.html">jqPlot Charts</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent2')">Core Renderers</a><div class=MGroupContent id=MGroupContent2><div class=MEntry><div class=MFile><a href="jqplot-axisTickRenderer-js.html">AxisTickRenderer</a></div></div><div class=MEntry><div class=MFile><a href="jqplot-canvasGridRenderer-js.html">CanvasGridRenderer</a></div></div><div class=MEntry><div class=MFile><a href="jqplot-divTitleRenderer-js.html">DivTitleRenderer</a></div></div><div class=MEntry><div class=MFile><a href="jqplot-linearAxisRenderer-js.html">LinearAxisRenderer</a></div></div><div class=MEntry><div class=MFile><a href="jqplot-markerRenderer-js.html">MarkerRenderer</a></div></div><div class=MEntry><div class=MFile><a href="jqplot-shapeRenderer-js.html">ShapeRenderer</a></div></div><div class=MEntry><div class=MFile><a href="jqplot-shadowRenderer-js.html">ShadowRenderer</a></div></div><div class=MEntry><div class=MFile><a href="jqplot-lineRenderer-js.html">Line Renderer</a></div></div><div class=MEntry><div class=MFile id=MSelected>AxisLabelRenderer</div></div><div class=MEntry><div class=MFile><a href="jqplot-themeEngine-js.html">ThemeEngine</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent3')">Plugins</a><div class=MGroupContent id=MGroupContent3><div class=MEntry><div class=MFile><a href="plugins/jqplot-barRenderer-js.html">BarRenderer</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-BezierCurveRenderer-js.html">BezierCurveRenderer</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-blockRenderer-js.html">BlockRenderer</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-bubbleRenderer-js.html">BubbleRenderer</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-canvasAxisLabelRenderer-js.html">CanvasAxisLabelRenderer</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-canvasAxisTickRenderer-js.html">CanvasAxisTickRenderer</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-canvasOverlay-js.html">CanvasOverlay</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-categoryAxisRenderer-js.html">CategoryAxisRenderer</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-ciParser-js.html">ciParser</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-cursor-js.html">Cursor</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-dateAxisRenderer-js.html">DateAxisRenderer</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-donutRenderer-js.html">DonutRenderer</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-dragable-js.html">Dragable</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-enhancedLegendRenderer-js.html">EnhancedLegendRenderer</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-funnelRenderer-js.html">FunnelRenderer</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-highlighter-js.html">Highlighter</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-logAxisRenderer-js.html">LogAxisRenderer</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-mekkoAxisRenderer-js.html">MekkoAxisRenderer</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-mekkoRenderer-js.html">MekkoRenderer</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-meterGaugeRenderer-js.html">MeterGaugeRenderer</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-ohlcRenderer-js.html">OHLCRenderer</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-pieRenderer-js.html">PieRenderer</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-pointLabels-js.html">PointLabels</a></div></div><div class=MEntry><div class=MFile><a href="plugins/jqplot-trendline-js.html">Trendline</a></div></div></div></div></div></div></div></div><div class=MEntry><div class=MFile><a href="gpl-2-0-txt.html">GPL License</a></div></div><div class=MEntry><div class=MFile><a href="MIT-LICENSE-txt.html">MIT License</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent5')">Index</a><div class=MGroupContent id=MGroupContent5><div class=MEntry><div class=MIndex><a href="../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Properties.html">Properties</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Functions.html">Functions</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Hooks.html">Hooks</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Files.html">Files</a></div></div></div></div></div><script type="text/javascript"><!-- 31var searchPanel = new SearchPanel("searchPanel", "HTML", "../search");pskc-schema.xsd git://git.savannah.nongnu.org/oath-toolkit.git | XML Schema | 308 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">repl_utils.clj git://github.com/richhickey/clojure-contrib.git | Clojure | 207 lines
2; The use and distribution terms for this software are covered by the 3; Common Public License 1.0 (http://opensource.org/licenses/cpl.php) 4; which can be found in the file CPL.TXT at the root of this distribution. 100 a namespace for which the .clj is in the classpath. Returns nil if 101 it can't find the source. For most REPL usage, 'source' is more 102 convenient.perf-mysql.inc.php http://scriptz.googlecode.com/svn/trunk/ | 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));database.php https://gitlab.com/kidaa/SeventhUmbral.git | PHP | 426 lines
1<?php 2 2 3include("config.php"); 4 27{ 28 mt_srand(microtime(true) * 100000 + memory_get_usage(true)); 29 return hash("sha224", uniqid(mt_rand(), true));css.js git://github.com/cliftonc/calipso.git | 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.cssCommand.php git://github.com/pmjones/php-framework-benchmarks.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(), '')));Key.php https://code.google.com/p/s3db/ | 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_RSAmpsee.php https://github.com/openaustralia/publicwhip-matthew.git | PHP | 282 lines
1<?php require_once "common.inc"; 2# $Id: mpsee.php,v 1.19 2005/12/05 01:44:39 frabcus Exp $ 18 19<p><span class="ptitle">Usage instructions:</span> Click and drag the 20mouse pointer in the image to drag, zoom, or select from the space. 37 38<?php 39function applet($year) 83<!--"END_CONVERTED_APPLET"--> 84<?php 85 } 263form you can play with in your own cluster analysis software, then 264you download it on our <a href="project/data.php">Raw Data</a> page. 265 278 279<p>More of the same? <a href="minwhirl.php">Try our Ministerial Whirl</a></p> 280const.py.in git://pkgs.fedoraproject.org/gramps | Autoconf | 304 lines
56URL_MAILINGLIST = "http://sourceforge.net/mail/?group_id=25770" 57URL_BUGTRACKER = "http://bugs.gramps-project.org/bug_report_advanced_page.php" 58URL_WIKISTRING = "http://gramps-project.org/wiki/index.php?title=" 295 "sync", 296 "usage", 297 "version",akismet.php git://github.com/klevo/wildflower.git | PHP | 394 lines
13 * 14 * Please be aware that this class is PHP5 only. Attempts to run it under PHP4 will most likely fail. 15 * 15 * 16 * See the Akismet class documentation page linked to below for usage information. 17 * 21 * @copyright Alex Potsides, {@link http://www.achingbrain.net http://www.achingbrain.net} 22 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 23 */ 109 /* 110 * This is necessary if the server PHP5 is running on has been set up to run PHP4 and 111 * PHP5 concurently and is actually running through a separate proxy al a these instructions: 111 * PHP5 concurently and is actually running through a separate proxy al a these instructions: 112 * http://www.schlitt.info/applications/blog/archives/83_How_to_run_PHP4_and_PHP_5_parallel.html 113 * and http://wiki.coggeshall.org/37.htmldataform.php http://rapyd-framework.googlecode.com/svn/trunk/ | PHP | 476 lines
1<?php 2 128 * set css style 129 * @todo search online for a better way to work with html/css for example using a dom-api like phpquery 130 * @param string $style 201 /** 202 * usage: 203 * <code> 223 /** 224 * usage: 225 * <code>add.php git://git.savannah.nongnu.org/savane-cleanup.git | PHP | 167 lines
1<?php 2# <one line to give a brief idea of what this does.> 25 26require_once('../include/init.php'); 27 63 echo '<p>'.sprintf(_("On %s, you must use scp, sftp or rsync via SSH to upload your files."),$GLOBALS['sys_name']); 64 echo _("We prefer this way of managing files for security matters and also because scp and rsync are designed for this kind of usage, unlike a web browser."); 65 echo ' '._("We want the file management system to be usable with a shell.").'</p>'; 66 echo '<p>'._("The following form won't upload files. It will display a list of commands that you will have to copy and paste in a terminal.").'</p>'; 67 printf ('<p>'._("If you follow the directory organisation outlined below, the %s %s Filelist for your project%s (available once you have checked the corresponding box in your %s Project Public Info %s) will display the versions in a user friendly way. Otherwise, the visitor of your project will be presented a regular directory listing.").'</p>','<a href="'.$GLOBALS['sys_home'].'files/?group_id='.$group_id.'">',$GLOBALS['sys_name'],'</a>','<a href="'.$GLOBALS['sys_home'].'project/admin/editgroupinfo.php?group_id='.$group_id.'">','</a>'); 68 echo '<p>'._("The suggested layout is as follows:").'<br />'; 80 echo '<h2>'._("Getting a command list to upload the files:").'</h2>'; 81 echo '<form action="'. $_SERVER['PHP_SELF'] .'#list" method="get"> 82<table>';suppressing.html git://pkgs.fedoraproject.org/pmd | HTML | 124 lines
3 4 @import url("./style/maven-theme.css");</style><link rel="stylesheet" href="./style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta><meta name="author" content="Tom Copeland"></meta><meta name="email" content="tom@infoether.com"></meta></head><body class="composite"><div id="banner"><a href="http://pmd.sourceforge.net/" id="organizationLogo"><img alt="InfoEther" src="http://sourceforge.net/sflogo.php?group_id=56262&type=5"></img></a><a href="http://pmd.sourceforge.net/" id="projectLogo"><img alt="PMD" src="./images/pmd_logo_small.jpg"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft"></div><div class="xright"> 5 20 <a href="http://sourceforge.net" class="externalLink" title="External Link">Hosted by SourceForge</a> 21 </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><div id="menuOverview"><h5>Overview</h5><ul><li class="none"><a href="http://sourceforge.net/project/showfiles.php?group_id=56262&package_id=51441&release_id=632850" class="externalLink" title="External Link">Download PMD 4.2.5</a></li><li class="none"><a href="http://sourceforge.net/project/shownotes.php?release_id=632850&group_id=56262" class="externalLink" title="External Link">What's new in PMD 4.2.5</a></li><li class="none"><a href="news.html">PMD in the news</a></li><li class="none"><a href="products.html">PMD-related products and books</a></li><li class="none"><a href="bestpractices.html">Best practices</a></li><li class="none"><a href="future.html">Future directions</a></li><li class="none"><a href="similar-projects.html">Similar projects</a></li><li class="none"><a href="credits.html">Credits</a></li><li class="none"><a href="license.html">License</a></li><li class="none"><a href="meaning.html">What does 'PMD' mean?</a></li></ul></div><div id="menuUsage"><h5>Usage</h5><ul><li class="none"><a href="installing.html">Installation</a></li><li class="none"><a href="running.html">Command line usage</a></li><li class="none"><a href="ant-task.html">Ant task usage</a></li><li class="none"><a href="maven-plugin.html">Maven plugin usage</a></li><li class="none"><a href="mvn-plugin.html">Mvn plugin usage</a></li><li class="none"><a href="integrations.html">IDE plugin usage</a></li><li class="none"><strong><a href="suppressing.html">Suppressing warnings</a></strong></li><li class="none"><a href="cpd.html">Finding duplicated code</a></li><li class="none"><a href="jspsupport.html">JSP support</a></li></ul></div><div id="menuCustomizing_PMD"><h5>Customizing PMD</h5><ul><li class="none"><a href="compiling.html">Compiling PMD</a></li><li class="none"><a href="howtowritearule.html">How to write a rule</a></li><li class="none"><a href="xpathruletutorial.html">Writing XPath rules</a></li><li class="none"><a href="howtomakearuleset.html">How to make a rule set</a></li><li class="none"><a href="howitworks.html">How it works</a></li><li class="none"><a href="rule-guidelines.html">Rule guidelines</a></li></ul></div><div id="menuFor_example"><h5>For example</h5><ul><li class="none"><a href="scoreboard.html">Run PMD on a Sourceforge project</a></li></ul></div><div id="menuRule_Sets"><h5>Rule Sets</h5><ul><li class="none"><a href="rules/index.html">Index</a></li><li class="none"><a href="rules/android.html">Android</a></li><li class="none"><a href="rules/basic.html">Basic</a></li><li class="none"><a href="rules/braces.html">Braces</a></li><li class="none"><a href="rules/codesize.html">Code Size</a></li><li class="none"><a href="rules/clone.html">Clone</a></li><li class="none"><a href="rules/controversial.html">Controversial</a></li><li class="none"><a href="rules/coupling.html">Coupling</a></li><li class="none"><a href="rules/design.html">Design</a></li><li class="none"><a href="rules/finalizers.html">Finalizers</a></li><li class="none"><a href="rules/imports.html">Import Statements</a></li><li class="none"><a href="rules/j2ee.html">J2EE</a></li><li class="none"><a href="rules/javabeans.html">Javabeans</a></li><li class="none"><a href="rules/junit.html">JUnit Tests</a></li><li class="none"><a href="rules/logging-java.html">Logging (Java)</a></li><li class="none"><a href="rules/logging-jakarta-commons.html">Logging (Jakarta)</a></li><li class="none"><a href="rules/migrating.html">Migrating</a></li><li class="none"><a href="rules/naming.html">Naming</a></li><li class="none"><a href="rules/optimizations.html">Optimizations</a></li><li class="none"><a href="rules/strictexception.html">Strict Exceptions</a></li><li class="none"><a href="rules/strings.html">Strings</a></li><li class="none"><a href="rules/sunsecure.html">Sun Security</a></li><li class="none"><a href="rules/unusedcode.html">Unused Code</a></li><li class="none"><a href="rules/basic-jsp.html">Java Server Pages</a></li><li class="none"><a href="rules/basic-jsf.html">Java Server Faces</a></li></ul></div><div id="menuProject_Documentation"><h5>Project Documentation</h5><ul><li class="none"><a href="index.html">About</a></li><li class="collapsed"><a href="project-info.html">Project Info</a></li><li class="collapsed"><a href="maven-reports.html">Project Reports</a></li><li class="none"><a href="development-process.html">Development Process</a></li></ul></div><div id="legend"><h5>Legend</h5><ul><li class="externalLink">External Link</li><li class="newWindow">Opens in a new window</li></ul></div><a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="./images/logos/mavenlogo_builtby_w.png"></img></a></div></div><div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Suppressing_warnings"></a><h2>Suppressing warnings</h2> 22 <div class="subsection"><a name="Annotations"></a><h3>Annotations</h3> 122 123 <p>Suggestions? Comments? Post them <a href="http://sourceforge.net/forum/forum.php?forum_id=188192" class="externalLink" title="External Link">here</a>. Thanks!</p> 124 </div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xright"> 2002-2009, InfoEther</div><div class="clear"><hr></hr></div></div></body></html>license.html git://pkgs.fedoraproject.org/pmd | HTML | 58 lines
3 4 @import url("./style/maven-theme.css");</style><link rel="stylesheet" href="./style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta><meta name="author" content="Tom Copeland"></meta><meta name="email"></meta></head><body class="composite"><div id="banner"><a href="http://pmd.sourceforge.net/" id="organizationLogo"><img alt="InfoEther" src="http://sourceforge.net/sflogo.php?group_id=56262&type=5"></img></a><a href="http://pmd.sourceforge.net/" id="projectLogo"><img alt="PMD" src="./images/pmd_logo_small.jpg"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft"></div><div class="xright"> 5 20 <a href="http://sourceforge.net" class="externalLink" title="External Link">Hosted by SourceForge</a> 21 </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><div id="menuOverview"><h5>Overview</h5><ul><li class="none"><a href="http://sourceforge.net/project/showfiles.php?group_id=56262&package_id=51441&release_id=632850" class="externalLink" title="External Link">Download PMD 4.2.5</a></li><li class="none"><a href="http://sourceforge.net/project/shownotes.php?release_id=632850&group_id=56262" class="externalLink" title="External Link">What's new in PMD 4.2.5</a></li><li class="none"><a href="news.html">PMD in the news</a></li><li class="none"><a href="products.html">PMD-related products and books</a></li><li class="none"><a href="bestpractices.html">Best practices</a></li><li class="none"><a href="future.html">Future directions</a></li><li class="none"><a href="similar-projects.html">Similar projects</a></li><li class="none"><a href="credits.html">Credits</a></li><li class="none"><strong><a href="license.html">License</a></strong></li><li class="none"><a href="meaning.html">What does 'PMD' mean?</a></li></ul></div><div id="menuUsage"><h5>Usage</h5><ul><li class="none"><a href="installing.html">Installation</a></li><li class="none"><a href="running.html">Command line usage</a></li><li class="none"><a href="ant-task.html">Ant task usage</a></li><li class="none"><a href="maven-plugin.html">Maven plugin usage</a></li><li class="none"><a href="mvn-plugin.html">Mvn plugin usage</a></li><li class="none"><a href="integrations.html">IDE plugin usage</a></li><li class="none"><a href="suppressing.html">Suppressing warnings</a></li><li class="none"><a href="cpd.html">Finding duplicated code</a></li><li class="none"><a href="jspsupport.html">JSP support</a></li></ul></div><div id="menuCustomizing_PMD"><h5>Customizing PMD</h5><ul><li class="none"><a href="compiling.html">Compiling PMD</a></li><li class="none"><a href="howtowritearule.html">How to write a rule</a></li><li class="none"><a href="xpathruletutorial.html">Writing XPath rules</a></li><li class="none"><a href="howtomakearuleset.html">How to make a rule set</a></li><li class="none"><a href="howitworks.html">How it works</a></li><li class="none"><a href="rule-guidelines.html">Rule guidelines</a></li></ul></div><div id="menuFor_example"><h5>For example</h5><ul><li class="none"><a href="scoreboard.html">Run PMD on a Sourceforge project</a></li></ul></div><div id="menuRule_Sets"><h5>Rule Sets</h5><ul><li class="none"><a href="rules/index.html">Index</a></li><li class="none"><a href="rules/android.html">Android</a></li><li class="none"><a href="rules/basic.html">Basic</a></li><li class="none"><a href="rules/braces.html">Braces</a></li><li class="none"><a href="rules/codesize.html">Code Size</a></li><li class="none"><a href="rules/clone.html">Clone</a></li><li class="none"><a href="rules/controversial.html">Controversial</a></li><li class="none"><a href="rules/coupling.html">Coupling</a></li><li class="none"><a href="rules/design.html">Design</a></li><li class="none"><a href="rules/finalizers.html">Finalizers</a></li><li class="none"><a href="rules/imports.html">Import Statements</a></li><li class="none"><a href="rules/j2ee.html">J2EE</a></li><li class="none"><a href="rules/javabeans.html">Javabeans</a></li><li class="none"><a href="rules/junit.html">JUnit Tests</a></li><li class="none"><a href="rules/logging-java.html">Logging (Java)</a></li><li class="none"><a href="rules/logging-jakarta-commons.html">Logging (Jakarta)</a></li><li class="none"><a href="rules/migrating.html">Migrating</a></li><li class="none"><a href="rules/naming.html">Naming</a></li><li class="none"><a href="rules/optimizations.html">Optimizations</a></li><li class="none"><a href="rules/strictexception.html">Strict Exceptions</a></li><li class="none"><a href="rules/strings.html">Strings</a></li><li class="none"><a href="rules/sunsecure.html">Sun Security</a></li><li class="none"><a href="rules/unusedcode.html">Unused Code</a></li><li class="none"><a href="rules/basic-jsp.html">Java Server Pages</a></li><li class="none"><a href="rules/basic-jsf.html">Java Server Faces</a></li></ul></div><div id="menuProject_Documentation"><h5>Project Documentation</h5><ul><li class="none"><a href="index.html">About</a></li><li class="collapsed"><a href="project-info.html">Project Info</a></li><li class="collapsed"><a href="maven-reports.html">Project Reports</a></li><li class="none"><a href="development-process.html">Development Process</a></li></ul></div><div id="legend"><h5>Legend</h5><ul><li class="externalLink">External Link</li><li class="newWindow">Opens in a new window</li></ul></div><a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="./images/logos/mavenlogo_builtby_w.png"></img></a></div></div><div id="bodyColumn"><div class="contentBox"><div class="section"><a name="License"></a><h2>License</h2> 22README.md https://gitlab.com/kidaa/lua-openssl.git | Markdown | 323 lines
102. [Howto](#a---howto) 113. [Examples](#b--example-usage) 12 15I needed a full OpenSSL binding for Lua, after googled, I couldn't find a version to fit my needs. 16I found the PHP openssl binding is a good implementation, and it inspired me. 17So I decided to write this OpenSSL toolkit for Lua. 182 183#B. Example usage 184 321 322This product includes PHP software, freely available from <http://www.php.net/software/> 323cdgraphics.c git://github.com/MythTV/mythtv.git | C | 387 lines
29 * @author Michael Tison 30 * @see http://wiki.multimedia.cx/index.php?title=CD_Graphics 31 * @see http://www.ccs.neu.edu/home/bchafy/cdb/info/cdg 218 219 /// find the difference and save the offset for cdg_tile_block usage 220 hinc = h_off - cc->hscroll;Tableselect.php git://github.com/drupal/drupal.git | PHP | 287 lines
1<?php 2 25 * 26 * Usage example: 27 * @codebackup_restore_test.php git://github.com/moodle/moodle.git | PHP | 285 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 17/** 18 * PHPUnit tests for backup and restore functionality. 19 * 25 26use quizaccess_seb\tests\phpunit\quizaccess_seb_testcase; 27 29 30require_once(__DIR__ . '/base.php'); 31 32/** 33 * PHPUnit tests for backup and restore functionality. 34 * 55 /** 56 * A helper method to create a quiz with template usage of SEB. 57 *config.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 310 lines
1<?php 2session_start(); 6 * 7 * In a generic usage case, the following tasks must be done to configure 8 * CKFinder: 43/* 44 Uncomment lines below to enable PHP error reporting and displaying PHP errors. 45 Do not do this on a production server. Might be helpful when debugging why CKFinder does not work as expected. 220 221 - If "php" is on the denied extensions list, a file named foo.php cannot be 222 uploaded. 224 foo.rar. 225 - The file foo.php.rar has "rar" extension so, in theory, it can be also 226 uploaded. 227 228In some conditions Apache can treat the foo.php.rar file just like any PHP 229script and execute it.exception-db-php.html https://code.google.com/p/ezrpg/ | HTML | 52 lines
15throw new DbException($this->db, SERVER_ERROR); 16throw new DbException($query, SQL_ERROR);</pre></blockquote><h4 class=CHeading>See Also</h4><ul><li><a href="class-dbfactory-php.html#DbFactory" class=LClass id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">DbFactory</a></li><li><a href="const-errors-php.html#Error_Codes" class=LSection id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">Error Codes</a></li></ul><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#DbException" >DbException</a></td><td class=SDescription>Extends Exception class to specify a database error.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#DbException.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#DbException.__toString" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">__toString</a></td><td class=SDescription>Formats and returns the error file, line and message.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div> 17 19 20<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="DbException.__toString"></a>__toString</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>public function __toString()</td></tr></table></blockquote><p>Formats and returns the error file, line and message.</p><p>Uses die() to print the formatted error message and to stop further execution of any code.</p><h4 class=CHeading>Example Usage</h4><blockquote><pre>try 21{ 34 35<div id=Menu><div class=MTitle>ezRPG<div class=MSubTitle>Documentation</div></div><div class=MEntry><div class=MFile><a href="../config-php.html">Config</a></div></div><div class=MEntry><div class=MFile><a href="../modules/example-php.html">Module_Example</a></div></div><div class=MEntry><div class=MFile><a href="../modules/skeleton-php.html">Module_Skeleton</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Lib</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MFile><a href="const-errors-php.html">Error Codes</a></div></div><div class=MEntry><div class=MFile><a href="func-log-php.html">Log Functions</a></div></div><div class=MEntry><div class=MFile><a href="func-player-php.html">Player Functions</a></div></div><div class=MEntry><div class=MFile><a href="func-rand-php.html">Random Functions</a></div></div><div class=MEntry><div class=MFile><a href="func-text-php.html">Text Functions</a></div></div><div class=MEntry><div class=MFile><a href="func-validate-php.html">Validation functions</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent2')">Classes</a><div class=MGroupContent id=MGroupContent2><div class=MEntry><div class=MFile><a href="class-base_module-php.html">Base_Module</a></div></div><div class=MEntry><div class=MFile><a href="class-dbfactory-php.html">DbFactory</a></div></div><div class=MEntry><div class=MFile><a href="class-hooks-php.html">Hooks</a></div></div><div class=MEntry><div class=MFile><a href="class-imagebar-php.html">ImageBar</a></div></div><div class=MEntry><div class=MFile><a href="class-modulefactory-php.html">ModuleFactory</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent3')">Modules</a><div class=MGroupContent id=MGroupContent3><div class=MEntry><div class=MFile><a href="../modules/AccountSettings/index-php.html">AccountSettings</a></div></div><div class=MEntry><div class=MFile><a href="../modules/City/index-php.html">City</a></div></div><div class=MEntry><div class=MFile><a href="../modules/EventLog/index-php.html">EventLog</a></div></div><div class=MEntry><div class=MFile><a href="../modules/Index/index-php.html">Index</a></div></div><div class=MEntry><div class=MFile><a href="../modules/Login/index-php.html">Login</a></div></div><div class=MEntry><div class=MFile><a href="../modules/Logout/index-php.html">Logout</a></div></div><div class=MEntry><div class=MFile><a href="../modules/Members/index-php.html">Members</a></div></div><div class=MEntry><div class=MFile><a href="../modules/Register/index-php.html">Register</a></div></div><div class=MEntry><div class=MFile><a href="../modules/StatPoints/index-php.html">StatPoints</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent4')">Admin Modules</a><div class=MGroupContent id=MGroupContent4><div class=MEntry><div class=MFile><a href="../admin/Index/index-php.html">Admin_Index</a></div></div><div class=MEntry><div class=MFile><a href="../admin/Members/index-php.html">Admin_Members</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent5')">Database Drivers</a><div class=MGroupContent id=MGroupContent5><div class=MEntry><div class=MFile><a href="db-mysql-php.html">Db_mysql</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent6')">Exceptions</a><div class=MGroupContent id=MGroupContent6><div class=MEntry><div class=MFile id=MSelected>DbException</div></div><div class=MEntry><div class=MFile><a href="exception-file-php.html">FileException</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent7')">Index</a><div class=MGroupContent id=MGroupContent7><div class=MEntry><div class=MIndex><a href="../../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Functions.html">Functions</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Variables.html">Variables</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Constants.html">Constants</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="../install-php.html">Install</a></div></div><div class=MEntry><div class=MLink><a href="http://www.ezrpgproject.com/">ezRPG Project</a></div></div><script type="text/javascript"><!-- 36var searchPanel = new SearchPanel("searchPanel", "HTML", "../../search");buttons_fullwidth.php https://bitbucket.org/SanchitSahu03/hyslifecare.git | PHP | 368 lines
1<?php 2/** 230 * Editor Element - this function defines the visual appearance of an element on the AviaBuilder Canvas 231 * Most common usage is to define some markup in the $params['innerHtml'] which is then inserted into the drag and drop container 232 * Less often used: $params['data'] to add data attributes, $params['class'] to modify the classNameSubnetworks.php https://bitbucket.org/mtrico08/wedding.git | PHP | 276 lines
1<?php 2/* 19 * The "subnetworks" collection of methods. 20 * Typical usage is: 21 * <code>config.php http://comet.googlecode.com/svn/trunk/ | PHP | 308 lines
1<?php 2/* 4 * 5 * In a generic usage case, the following tasks must be done to configure 6 * CKFinder: 41/* 42 Uncomment lines below to enable PHP error reporting and displaying PHP errors. 43 Do not do this on a production server. Might be helpful when debugging why CKFinder does not work as expected. 218 219 - If "php" is on the denied extensions list, a file named foo.php cannot be 220 uploaded. 222 foo.rar. 223 - The file foo.php.rar has "rar" extension so, in theory, it can be also 224 uploaded. 225 226In some conditions Apache can treat the foo.php.rar file just like any PHP 227script and execute it.obj_encdata.c git://pkgs.fedoraproject.org/trousers | C | 486 lines
36 37 /* add usage policy */ 38 if ((result = obj_context_get_policy(tspContext, TSS_POLICY_USAGE, 38 if ((result = obj_context_get_policy(tspContext, TSS_POLICY_USAGE, 39 &encdata->usagePolicy))) { 40 free(encdata); 82TSS_RESULT 83obj_encdata_get_policy(TSS_HENCDATA hEncData, UINT32 policyType, TSS_HPOLICY *phPolicy) 84{ 95 case TSS_POLICY_USAGE: 96 *phPolicy = encdata->usagePolicy; 97 break; 123 switch (policyType) { 124 case TSS_POLICY_USAGE: 125 encdata->usagePolicy = hPolicy;postgres_driver.inc http://scalr.googlecode.com/svn/ | PHP | 657 lines
1<?php 2 3/** 4 * ADOdb Lite is a PHP class to encapsulate multiple database APIs and is compatible with 5 * a subset of the ADODB Command Syntax. 145 * Return database error message 146 * Usage: $errormessage =& $db->ErrorMsg(); 147 * 157 * Return database error number 158 * Usage: $errorbo =& $db->ErrorNo(); 159 * 182 * Returns the last record id of an inserted item 183 * Usage: $db->Insert_ID(); 184 * 205 if (!$magic_quotes) { 206 if (strnatcmp(PHP_VERSION, '4.2.0') >= 0) { 207 return "'" . pg_escape_string($string) . "'";interfaces.py git://github.com/RuudBurger/CouchPotatoServer.git | Python | 310 lines
5# This module is part of SQLAlchemy and is released under 6# the MIT License: http://www.opensource.org/licenses/mit-license.php 7 24 25 Usage:: 26 37 38 # usage with create_engine() 39 e = create_engine("url://", listeners=[MyListener()])DooPager.php http://doophp.googlecode.com/svn/trunk/ | PHP | 417 lines
1<?php 2/** 5 * @author Leng Sheng Hong <darkredz@gmail.com> 6 * @link http://www.doophp.com/ 7 * @copyright Copyright © 2009 Leng Sheng Hong 7 * @copyright Copyright © 2009 Leng Sheng Hong 8 * @license http://www.doophp.com/license 9 */ 17 * Method chaining is also supported by this class.</p> 18 * Example usage: 19 * <code> 48 * @author Leng Sheng Hong <darkredz@gmail.com> 49 * @version $Id: DooPager.php 1000 2009-08-21 15:27:22 50 * @package doo.helper13calculation.php https://PHPExcel.svn.codeplex.com/svn | PHP | 248 lines
22 * @package PHPExcel 23 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 34/** PHPExcel */ 35include 'PHPExcel.php'; 36 37/** PHPExcel_Calculation */ 38require_once 'PHPExcel/Calculation.php'; 39 46echo date('H:i:s') . " Create new PHPExcel object\n"; 47$objPHPExcel = new PHPExcel(); 48 244// Echo memory peak usage 245echo date('H:i:s') . " Peak memory usage: " . (memory_get_peak_usage(true) / 1024 / 1024) . " MB\r\n"; 24613calculation.php https://PHPExcel.svn.codeplex.com/svn | PHP | 248 lines
22 * @package PHPExcel 23 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 34/** PHPExcel */ 35include 'PHPExcel.php'; 36 37/** PHPExcel_Calculation */ 38require_once 'PHPExcel/Calculation.php'; 39 46echo date('H:i:s') . " Create new PHPExcel object\n"; 47$objPHPExcel = new PHPExcel(); 48 244// Echo memory peak usage 245echo date('H:i:s') . " Peak memory usage: " . (memory_get_peak_usage(true) / 1024 / 1024) . " MB\r\n"; 246SpecialScopes.cs https://Phalanger.svn.codeplex.com/svn | C# | 120 lines
96 // PHP operators 97 scope.AddDeclaration(new SpecialKeywordDecl("instanceof", null, DeclarationInfo.DeclarationUsages.ThisScope | DeclarationInfo.DeclarationUsages.AllChildScopes, null)); 98 scope.AddDeclaration(new SpecialKeywordDecl("and", null, DeclarationInfo.DeclarationUsages.ThisScope | DeclarationInfo.DeclarationUsages.AllChildScopes, null)); 99 scope.AddDeclaration(new SpecialKeywordDecl("or", null, DeclarationInfo.DeclarationUsages.ThisScope | DeclarationInfo.DeclarationUsages.AllChildScopes, null)); 100 scope.AddDeclaration(new SpecialKeywordDecl("xor", null, DeclarationInfo.DeclarationUsages.ThisScope | DeclarationInfo.DeclarationUsages.AllChildScopes, null)); 101 102 // keywords 103 scope.AddDeclaration(new SpecialKeywordDecl("true", null, DeclarationInfo.DeclarationUsages.ThisScope | DeclarationInfo.DeclarationUsages.AllChildScopes, null)); 104 scope.AddDeclaration(new SpecialKeywordDecl("false", null, DeclarationInfo.DeclarationUsages.ThisScope | DeclarationInfo.DeclarationUsages.AllChildScopes, null)); 104 scope.AddDeclaration(new SpecialKeywordDecl("false", null, DeclarationInfo.DeclarationUsages.ThisScope | DeclarationInfo.DeclarationUsages.AllChildScopes, null)); 105 scope.AddDeclaration(new SpecialKeywordDecl("null", null, DeclarationInfo.DeclarationUsages.ThisScope | DeclarationInfo.DeclarationUsages.AllChildScopes, null)); 106 107 scope.AddDeclaration(new SpecialKeywordDecl("import", "Imports specified namespaces.", DeclarationInfo.DeclarationUsages.ThisScope | DeclarationInfo.DeclarationUsages.AllChildScopes, null)); 108 scope.AddDeclaration(new SpecialKeywordDecl("namespace", null, DeclarationInfo.DeclarationUsages.ThisScope | DeclarationInfo.DeclarationUsages.AllChildScopes, null)); 109osx-build.sh git://pkgs.fedoraproject.org/inkscape | Shell | 411 lines
5# Please see 6# http://wiki.inkscape.org/wiki/index.php?title=CompilingMacOsX 7# for more complete information 39 40\033[1mUSAGE\033[0m 41 $0 [options] action[s]wp-background-process.php https://bitbucket.org/ericstrom/ballmerpeak.git | 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;MessageTest.php git://github.com/zendframework/zf2.git | PHP | 432 lines
1<?php 2/** 21 */ 22class MessageTest extends \PHPUnit_Framework_TestCase 23{ 110 111 $this->assertEquals(substr($message->getContent(), 0, 5), '<?php'); 112 116 117 $this->assertEquals(substr($message->getContent(), 0, 6), "\t<?php"); 118 } 185 if ($num == 1) { 186 // explicit call of __toString() needed for PHP < 5.2 187 $this->assertEquals(substr($part->__toString(), 0, 14), 'The first part'); 226 227 $decoded_body = null; // "Declare" variable before first "read" usage to avoid IDEs warning 228 $decoded_headers = null; // "Declare" variable before first "read" usage to avoid IDEs warningprepend.php https://bitbucket.org/dotclear/dotclear/ | PHP | 299 lines
1<?php 2# -- BEGIN LICENSE BLOCK --------------------------------------- 14 15require_once dirname(__FILE__).'/../prepend.php'; 16 50 if ((preg_match('/^images\/menu\/(.+)$/',$img,$m)) || 51 (preg_match('/^index\.php\?pf=(.+)$/',$img,$m))) { 52 if ($m[1]) { 114 115 http::redirect('auth.php'); 116 } 174 $core->session->destroy(); 175 http::redirect('auth.php'); 176 } 180 181$core->adminurl->register('admin.posts','posts.php'); 182$core->adminurl->register('admin.post','post.php');comments.md git://github.com/joomla/joomla-platform.git | Markdown | 97 lines
56 57Wikipedia provides a good summary of common differences between en-US and en-GB. http://en.wikipedia.org/wiki/American\_and\_British\_English\_spelling\_differences Note that there are some instances where en-GB common usage (but not actual rules) varies slightly from en-AU and using en-AU is considered acceptable. 58 60 61en-GB most commonly uses `ise` where en-US would use `ize`, such as `normalise` instead of `normalize`. (Note that there are some exceptions to this rule and some differences between en-GB and en-AU in common usage.) 62 68 69```php 70// This lets the user enter data 74 75```php 76// Let's validate the field 82 83```php 84// Get its IDString.php git://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 * {{{TraitUsageGenerator.php git://github.com/zendframework/zf2.git | PHP | 354 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 */CHANGELOG.md https://bitbucket.org/sergiu-tot-fb/vendors.git | Markdown | 369 lines
100- [#276](https://github.com/zendframework/zend-db/pull/276) fixes the support 101 of PHP 7.2 102- [#287](https://github.com/zendframework/zend-db/pull/287) fixes the usage of 102- [#287](https://github.com/zendframework/zend-db/pull/287) fixes the usage of 103 count() with PHP 7.2 104UsageTest.php git://github.com/drupal/drupal.git | PHP | 295 lines
20 /** 21 * Tests \Drupal\file\FileUsage\DatabaseFileUsageBackend::listUsage(). 22 */ 44 45 $usage = $this->container->get('file.usage')->listUsage($file); 46 245 public function testFileUsageWithEntityTranslation() { 246 /** @var \Drupal\file\FileUsage\FileUsageInterface $file_usage */ 247 $file_usage = $this->container->get('file.usage'); 282 // Check that the file is used twice. 283 $usage = $file_usage->listUsage($file); 284 $this->assertEquals(2, $usage['file']['node'][$node->id()]); 290 // Check that one usage has been removed and is used only once now. 291 $usage = $file_usage->listUsage($file); 292 $this->assertEquals(1, $usage['file']['node'][$node->id()]);bpm-getopt.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 374 lines
1<?php 2/** 4 * 5 * prior to PHP 5.3 getopt is not supported on the windows plattform 6 * and it does not support long options on other plattforms as well. 8 * this file offers a _getopt() function as a replacement. via the 9 * php.net manual page for getop(). 10 * 31 * @link http://www.ntu.beautifulworldco.com/weblog/?p=526 32 * @link http://www.php.net/getopt 33 */ 46 * 47 * Usage: _getopt ( [$flag,] $short_option [, $long_option] ); 48 * 52 * _getopt() fully simulates getopt() which is described at 53 * (@see http://us.php.net/manual/en/function.getopt.php} , including long 54 * options for PHP version under 5.3.0. (Prior to 5.3.0, long options wasmssql_extractor.php git://github.com/phpbb/phpbb.git | PHP | 415 lines
1<?php 2/** 3* 4* This file is part of the phpBB Forum Software package. 5* 5* 6* @copyright (c) phpBB Limited <https://www.phpbb.com> 7* @license GNU General Public License, version 2 (GPL-2.0) 13 14namespace phpbb\db\extractor; 15 15 16use phpbb\db\extractor\exception\extractor_not_initialized_exception; 17 23 * @return null 24 * @throws \phpbb\db\extractor\exception\extractor_not_initialized_exception when calling this function before init_extractor() 25 */Website.php https://bitbucket.org/deniskulikouski/belvg.deniska.git | PHP | 229 lines
1<?php 2/** 12 * ================================================================= 13 * MAGENTO EDITION USAGE NOTICE 14 * =================================================================Bouncer.php git://github.com/znarf/Bouncer.git | PHP | 645 lines
1<?php 2 394 /* 395 * Complete the context with session, exec_time and memory_usage. 396 */ 414 'execution_time' => round($execution_time, 4), 415 'memory_usage' => memory_get_peak_usage(), 416 )); 560 else { 561 // $this->error('No exit callable set. PHP exit construct will be used.'); 562 exit;typed_value.ml git://github.com/facebook/hiphop-php.git | OCaml | 298 lines
11 12(* We introduce a type for Hack/PHP values, mimicking what happens at runtime. 13 * Currently this is used for constant folding. By defining a special type, we 13 * Currently this is used for constant folding. By defining a special type, we 14 * ensure independence from usage: for example, it can be used for optimization 15 * on ASTs, or on bytecode, or (in future) on a compiler intermediate language. 20 | Uninit 21 (* Hack/PHP integers are 64-bit *) 22 | Int of Int64.t 23 | Bool of bool 24 (* Both Hack/PHP and Caml floats are IEEE754 64-bit *) 25 | Float of float 125 (* Here's a handy dandy chart of all possible values based on language 126 * | float | PHP 5 | HHVM | PHP 7 127 * ----------------------------------------CakeHtmlReporter.php git://github.com/cakephp/cakephp.git | PHP | 351 lines
6 * 7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @since CakePHP(tm) v 1.2.0.4433 15 * @since CakePHP(tm) v 1.2.0.4433 16 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 17 */ 120 * 121 * @param PHPUnit_Framework_TestResult $result Result object 122 * @return void 139 echo '<p><strong>Time:</strong> ' . $result->time() . ' seconds</p>'; 140 echo '<p><strong>Peak memory:</strong> ' . number_format(memory_get_peak_usage()) . ' bytes</p>'; 141 echo $this->_paintLinks();DistributedSearch.php git://github.com/basdenooijer/solarium.git | PHP | 331 lines
1<?php 2/** 135 * 136 * Example usage: 137 * <code> 190 * 191 * Example usage: 192 * <code>autoloadbuilder.php git://github.com/theseer/Autoload.git | PHP | 313 lines
1<?php 2/** 76 /** 77 * PHP Template code to render autoload list 78 * 104 /** 105 * Flag to toggle PHP 5.2 compat mode 106 * 125 $this->indent = $indent; 126 $this->setTemplateFile( __DIR__ . '/templates/' . ($caseSensitive ? 'cs' : 'ci') . '/default.php.tpl' ); 127 } 129 /** 130 * Toggle PHP 5.2 compat mode 131 * 205 /** 206 * Setter to use allow usage of fixed date/time for ___CREATED___ 207 *Segment.php https://bitbucket.org/webstar1987923/mycampaignsio.git | PHP | 353 lines
1<?php 2/** 29 * 30 * **Basic usage** 31 *nosqldriver.php git://github.com/joomla/joomla-platform.git | PHP | 453 lines
1<?php 2/** 106 /** 107 * Method to escape a string for usage in an SQL statement. 108 *SqlTokenizer.php https://bitbucket.org/webempiric/yiitest.git | PHP | 394 lines
1<?php 2/** 17 * 18 * Usage example: 19 * 19 * 20 * ```php 21 * $tokenizer = new SqlTokenizer("SELECT * FROM user WHERE id = 1");ConfigurationCheck.php https://bitbucket.org/saltwaterdev/offshorefinancial.com.git | PHP | 606 lines
1<?php 2/** 3 * Akeeba Engine 4 * The modular PHP5 site backup engine 5 * 312 // No limit? 313 $availableRAM = $memLimit - memory_get_usage(); 314 340 /** 341 * Q103 - HIGH - Less than 10" of max_execution_time with PHP Safe Mode enabled 342 * 422 /** 423 * Q201 - MEDIUM - Outdated PHP version. 424 * 424 * 425 * We currently check for PHP lower than 5.5. 426 *A01codedef.html http://flaimo-php.googlecode.com/svn/trunk/ | HTML | 130 lines
26 Various settings in JpGraph are controilled by overall DEFINEs at the 27 top of jpgraph.php. Most of these defines should not have to be changed 28 by the regular user but left at their defualt values. Below is a 34 absolute name of directory to be used as a cache. This directory<STRONG> 35 must</STRONG> be readable and writable for PHP. Must end with '/'</TD></TR> 36<TR><TD valign="top">"TTF_DIR","/usr/local/fonts/ttf/"</TD><TD>Directory 46 truecolor image? Note 1: Can only be used with GD 2.0.2 and above. Note 47 2: GD 2.0.1 + PHP 4.0.6 on Win32 crashes when trying to use trucolor. 48 Truecolor support is to be considered alpha since GD 2.x is still not 68 format in the order png,gif,jpg (The supported format depends on what 69 your PHP installation supports)</TD></TR> 70<TR><TD valign="top">"USE_IMAGE_ERROR_HANDLER",true</TD><TD> Determine 83 language support</TD></TR> 84<TR><TD valign="top">"ERR_DEPRECATED",false</TD><TD>Should usage of 85 deprecated functions and parameters give a fatal error? (Useful toimagemagick.php git://github.com/fuel/core.git | PHP | 356 lines
1<?php 2/** 2/** 3 * Fuel is a fast, lightweight, community driven PHP 5.4+ framework. 4 * 9 * @copyright 2010 - 2019 Fuel Development Team 10 * @link https://fuelphp.com 11 */ 154 * 155 * @link http://www.imagemagick.org/Usage/thumbnails/#rounded 156 */agenda.php git://github.com/Dolibarr/dolibarr.git | PHP | 292 lines
1<?php 2/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> 26/** 27 * \file htdocs/contact/card.php 28 * \ingroup societe 31 32require '../main.inc.php'; 33require_once DOL_DOCUMENT_ROOT.'/comm/action/class/actioncomm.class.php'; 33require_once DOL_DOCUMENT_ROOT.'/comm/action/class/actioncomm.class.php'; 34require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php'; 35require_once DOL_DOCUMENT_ROOT.'/core/lib/contact.lib.php'; 35require_once DOL_DOCUMENT_ROOT.'/core/lib/contact.lib.php'; 36require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php'; 37require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php'; 37require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php'; 38require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; 39require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';update-conf.d.complex.in git://github.com/Atha/update-conf.d.git | Autoconf | 368 lines
45# The home of this script is https://github.com/Atha/update-conf.d 46# It first appeared at http://forums.gentoo.org/viewtopic.php?p=6364143 47# 119 120print_usage () { 121 warning "Usage: ${scriptname} [-12achlnsuv] [<conf>...]" 297 print_version 298 print_usage 299 ;; 322 warning 323 print_usage 324 exit 100 348 print_version 349 print_usage 350 exit 1update-data.php git://github.com/symfony/symfony.git | PHP | 232 lines
1<?php 2 25 26require_once __DIR__.'/common.php'; 27require_once __DIR__.'/autoload.php'; 33 bailout(<<<'MESSAGE' 34Usage: php update-data.php <path/to/icu/source> <path/to/icu/build> 35 58if (!Intl::isExtensionLoaded()) { 59 bailout('The intl extension for PHP is not installed.'); 60}HemlockSprite.as git://github.com/mintdigital/hemlock.git | ActionScript | 384 lines
54 // avoid rendering issues. 55 // Source: http://www.kirupa.com/forum/showthread.php?p=2397349 56 128 /* 129 Usage: 130 - mySprite.fade(); // Fades to alpha = 0 152 /* 153 Usage: 154 - mySprite.fade(); // Fades to alpha = 1 176 /* 177 Usage: 178 - mySprite.move({ 204 /* 205 Usage: 206 - mySprite.dropOut(); // Moves down and fadestest-UsageMatchersTest.html git://pkgs.fedoraproject.org/easymock3 | HTML | 191 lines
121 <tr> 122 <td class="graphItem alignTop" colspan="2"><span class="sortValue">UsageMatchersTest.additionalMatchersFailAtReplay</span><a href="UsageMatchersTest_additionalMatchersFailAtReplay_1e3.html">UsageMatchersTest.additionalMatchersFailAtReplay</a></td> 123 <td class="graphPercent alignTop" colspan="1" style="whitespace:nowrap;"><span class="sortValue">1320887095014</span>10 nov. 02:04:55</td> 132 <tr> 133 <td class="graphItem alignTop" colspan="2"><span class="sortValue">UsageMatchersTest.additionalMatchersFailAtReplay</span><a href="UsageMatchersTest_additionalMatchersFailAtReplay_h4.html">UsageMatchersTest.additionalMatchersFailAtReplay</a></td> 134 <td class="graphPercent alignTop" colspan="1" style="whitespace:nowrap;"><span class="sortValue">1320887521826</span>10 nov. 02:12:01</td> 143 <tr> 144 <td class="graphItem alignTop" colspan="2"><span class="sortValue">UsageMatchersTest.additionalMatchersFailAtReplay</span><a href="UsageMatchersTest_additionalMatchersFailAtReplay_iu.html">UsageMatchersTest.additionalMatchersFailAtReplay</a></td> 145 <td class="graphPercent alignTop" colspan="1" style="whitespace:nowrap;"><span class="sortValue">1320887231088</span>10 nov. 02:07:11</td> 154 <tr> 155 <td class="graphItem alignTop" colspan="2"><span class="sortValue">UsageMatchersTest.additionalMatchersFailAtReplay</span><a href="UsageMatchersTest_additionalMatchersFailAtReplay_z2.html">UsageMatchersTest.additionalMatchersFailAtReplay</a></td> 156 <td class="graphPercent alignTop" colspan="1" style="whitespace:nowrap;"><span class="sortValue">1320887252837</span>10 nov. 02:07:32</td> 165 <tr> 166 <td class="graphItem alignTop" colspan="2"><span class="sortValue">UsageMatchersTest.additionalMatchersFailAtReplay</span><a href="UsageMatchersTest_additionalMatchersFailAtReplay_zl.html">UsageMatchersTest.additionalMatchersFailAtReplay</a></td> 167 <td class="graphPercent alignTop" colspan="1" style="whitespace:nowrap;"><span class="sortValue">1320887303833</span>10 nov. 02:08:23</td>developer-global-content.md git://github.com/infinitas/infinitas.git | Markdown | 116 lines
62 63### Usage 64 68 69You can also include the behavior using the normal `$actsAs` provided by CakePHP to attach this functionality. 70Autodia.pm http://autodia.googlecode.com/svn/trunk/ | Perl | 252 lines
101 "cpp" => 'Autodia::Handler::Cpp', 102 "php" => 'Autodia::Handler::PHP', 103 "dbi" => 'Autodia::Handler::DBI', 128 129 my %php = ( 130 regex => '\w+\.php(?:3|4)?$', 131 wildcards => [ 132 "php", "php3", "php4", 133 ], 182 "csharp" => \%csharp, 183 "php" => \%php, 184 "dbi" => {}, 199 200=head1 USAGE 201tests_php git://pkgs.fedoraproject.org/lynis | Shell | 216 lines
24 PHPINILOCS="/etc/php.ini \ 25 /etc/php/cgi-php5/php.ini /etc/php/cli-php5/php.ini /etc/php/apache2-php5/php.ini \ 26 /etc/php5/cgi/php.ini /etc/php5/cli/php.ini /etc/php5/apache2/php.ini \ 36 # Description : Check php.ini presence 37 Register --test-no PHP-2211 --weight L --network NO --description "Check php.ini presence" 38 if [ ${SKIPTEST} -eq 0 ]; then 103 if [ ! "${PHPINIFILE}" = "" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi 104 Register --test-no PHP-2372 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check PHP expose_php option" 105 if [ ${SKIPTEST} -eq 0 ]; then 109 Display --indent 4 --text "- Checking expose_php option..." --result ON --color RED 110 ReportWarning ${TEST_NO} "M" "PHP option expose_php is possibly turned on, which can reveal useful information for attackers." 111 ReportSuggestion ${TEST_NO} "Change the expose_php line to: expose_php = Off" 199 # mod_suexec 200 # suPHP (/etc/suphp.conf) 201#Tester.php git://github.com/atk4/atk4.git | PHP | 364 lines
1<?php 2/** 142 143 $me = memory_get_peak_usage(); 144 $ms = microtime(true); 152 $ms = microtime(true) - $ms; 153 $me = ($mend = memory_get_peak_usage()) - $me; 154 173 //$ms=microtime(true)-$ms; 174 $me = ($mend = memory_get_peak_usage()) - $me; 175 } 268 // Test speed 269 $me = memory_get_peak_usage(); 270 $ms = microtime(true); 307 $ms = microtime(true) - $ms; 308 $me = ($mend = memory_get_peak_usage()) - $me; 309 unregister_tick_function(array($this, 'ticker'));common.php https://gitlab.com/phpbb3_ppkbb3cker_edition/phpbb3_ppkbb3cker_edition.git | PHP | 308 lines
35 36 $script_name = (!empty($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : getenv('PHP_SELF'); 37 if (!$script_name) 93 $current_page=basename($_SERVER['SCRIPT_NAME']); 94 $cgp_pages=array("portal.{$phpEx}", "index.{$phpEx}", "viewforum.{$phpEx}", "viewtopic.{$phpEx}"); 95 $cgp_pages_alias=array("portal.{$phpEx}"=>'portal', "index.{$phpEx}"=>'index', "viewforum.{$phpEx}"=>'vf', "viewtopic.{$phpEx}"=>'vt'); 267require($phpbb_root_path . 'includes/session.' . $phpEx); 268require($phpbb_root_path . 'includes/auth.' . $phpEx); 269 269 270require($phpbb_root_path . 'includes/functions.' . $phpEx); 271require($phpbb_root_path . 'includes/functions_content.' . $phpEx); 300require($phpbb_root_path . 'includes/hooks/index.' . $phpEx); 301$phpbb_hook = new phpbb_hook(array('exit_handler', 'phpbb_user_session_handler', 'append_sid', array('template', 'display'))); 302wp-background-process.php https://bitbucket.org/rhiana/calebs.git | PHP | 500 lines
1<?php 2if ( ! defined( 'ABSPATH' ) ) { 341 $memory_limit = $this->get_memory_limit() * 0.9; // 90% of max memory 342 $current_memory = memory_get_usage( true ); 343 $return = false;perftest.php git://github.com/moodle/moodle.git | PHP | 156 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 19 * 20 * For developer test usage only. This can be used to compare performance if 21 * there are changes to the system in future. 27 28require(__DIR__ . '/../../../config.php'); 29require_once($CFG->dirroot . '/filter/mediaplugin/filter.php'); 38$PAGE->set_context(context_system::instance()); 39$PAGE->set_url(new moodle_url('/filter/mediaplugin/dev/perftest.php')); 40$PAGE->set_heading($SITE->fullname);Lib.hx https://code.google.com/p/haquery/ | Haxe | 300 lines
8import php.FileSystem; 9import php.io.FileOutput; 10import php.io.Path; 10import php.io.Path; 11import php.firePHP.FirePHP; 12import haquery.server.HaqInternals; 96 if (Lib.isPostback) HaqInternals.addAjaxResponse("window.location.reload(true);"); 97 else redirect(php.Web.getURI()); 98 } 253 **/ 254 public static inline function print( v : Dynamic ) : Void { return php.Lib.print(v); } 255 279 280 public static inline function toPhpArray(a : Array<Dynamic>) : NativeArray { return php.Lib.toPhpArray(a); } 281Analyser.php git://github.com/sebastianbergmann/phpdcd.git | PHP | 323 lines
2/* 3 * This file is part of PHP Dead Code Detector (PHPDCD). 4 * 10 11namespace SebastianBergmann\PHPDCD; 12 24 * Function declaration mapping: maps declared function name to file and line number 25 * TODO: make mapping to file and line number optional for memory usage reduction? 26 * @var array 186 $variables[$name] = (string) $tokens[$i+2]; 187 } elseif ($tokens[$i+$j-1] instanceof \PHP_Token_STRING && 188 $tokens[$i+$j-2] instanceof \PHP_Token_OBJECT_OPERATOR && 295 } 296 } elseif ($tokens[$i+$j-1] instanceof \PHP_Token_DOUBLE_COLON) { 297 $class = (string) $tokens[$i+$j-2];bookmark-template.php git://github.com/wordpress/wordpress.git | PHP | 324 lines
1<?php 2/** 2/** 3 * Bookmark Template Functions for usage in Themes 4 *ajax-ui-server.php http://scalr.googlecode.com/svn/ | PHP | 236 lines
1<? 2 require("../src/prepend.inc.php"); 3 23 24 // Check template usage 25 $roles_count = $this->DB->GetOne("SELECT COUNT(*) FROM farm_role_scripts WHERE scriptid=? AND event_name NOT LIKE 'CustomEvent-%'",NewClosureSniff.php git://github.com/spotweb/spotweb.git | PHP | 264 lines
2/** 3 * PHPCompatibility, an external standard for PHP_CodeSniffer. 4 * 7 * @license https://opensource.org/licenses/LGPL-3.0 LGPL3 8 * @link https://github.com/PHPCompatibility/PHPCompatibility 9 */ 33 * 34 * @link https://www.php.net/manual/en/functions.anonymous.php 35 * @link https://wiki.php.net/rfc/closures 234 * 235 * @param \PHP_CodeSniffer_File $phpcsFile The file being scanned. 236 * @param int $startToken The position within the closure to continue searching from. 241 */ 242 protected function findClassRefUsageInClosure(File $phpcsFile, $startToken, $endToken) 243 {jqueryFileTree.js git://github.com/sebtools/Neptune.git | JavaScript | 118 lines
8// 9// Visit http://abeautifulsite.net/notebook.php?article=58 for more information 10// 10// 11// Usage: $('.fileTreeDemo').fileTree( options, callback ) 12// 13// Options: root - root folder to display; default = / 14// script - location of the serverside AJAX file to use; default = jqueryFileTree.php 15// folderEvent - event to trigger expand/collapse; default = click 41 if( o.datafunc == undefined ) o.datafunc = null; 42 if( o.script == undefined ) o.script = 'jqueryFileTree.php'; 43 if( o.folderEvent == undefined ) o.folderEvent = 'click';LinkPager.php https://bitbucket.org/webempiric/yiitest.git | PHP | 272 lines
1<?php 2/** 26 * 27 * For more details and usage information on LinkPager, see the [guide article on pagination](guide:output-pagination). 28 * 86 * 87 * ```php 88 * $disabledListItemSubTagOptions = ['tag' => 'div', 'class' => 'disabled-div'];MimeType.php https://bitbucket.org/Prakruti24x7/stockmanage.git | PHP | 404 lines
1<?php 2/** 84 'enableHeaderCheck' => false, // Allow header check 85 'disableMagicFile' => false, // Disable usage of magicfile 86 'magicFile' => null, // Magicfile to use 93 * Mimetype to accept 94 * - NULL means default PHP usage by using the environment variable 'magic' 95 * - FALSE means disabling searching for mimetype, should be used for PHP 5.3 176 * Sets the magicfile to use 177 * if null, the MAGIC constant from php is used 178 * if the MAGIC file is erroneous, no file will be set 178 * if the MAGIC file is erroneous, no file will be set 179 * if false, the default MAGIC file from PHP will be used 180 * 218 /** 219 * Disables usage of MagicFile 220 *Datasets.php https://bitbucket.org/shehan_jay/invoice_mgt.git | PHP | 214 lines
1<?php 2/* 19 * The "datasets" collection of methods. 20 * Typical usage is: 21 * <code>View.php http://shozu.googlecode.com/svn/trunk/ | PHP | 311 lines
1<?php 2namespace shozu; 248 /** 249 * Cache portions of a view. Usage: 250 * 251 * <code> 252 * <?php if($this->cacheBegin('myCacheId')){ ?> 253 * <!-- some dynamic content here will be cached for 600 seconds --> 253 * <!-- some dynamic content here will be cached for 600 seconds --> 254 * <?php $this->cacheEnd(600);} ?> 255 * </code>sortable.markdown git://github.com/propelorm/Propel2.git | Markdown | 274 lines
9 10## Basic Usage ## 11 22 23{% highlight php %} 24<?php 42 43{% highlight php %} 44<?php 57 58{% highlight php %} 59<?php 68 69{% highlight php %} 70<?phpminiZoomPan.js http://project-manh-lan.googlecode.com/svn/trunk/ | JavaScript | 261 lines
5* Dual licensed under the MIT and GPL licenses: 6* http://www.opensource.org/licenses/mit-license.php 7* http://www.gnu.org/licenses/gpl.html 137/* Simple Image Panner and Zoomer (March 11th, 10) 138* This notice must stay intact for usage 139* Author: Dynamic Drive at http://www.dynamicdrive.com/README.md https://bitbucket.org/roko_cleiton_brustulin/roko_ciklus.git | Markdown | 200 lines
34 35## Usage 36 53 54We discourage using bower components statically for performance and security reasons (if component has an `upload.php` file that is not ignored, that can be easily exploited to do malicious stuff). 55BanchaApiTest.php git://github.com/Bancha/Bancha.git | PHP | 291 lines
1<?php 2/** 2/** 3 * Bancha : Seamlessly integrates CakePHP with Ext JS and Sencha Touch (http://bancha.io) 4 * Copyright 2011-2014 codeQ e.U. 148 149 // expose two models (alternative usage) 150 $filteredModels = $api->filterRemotableModels($remotableModels, array('User', 'Article'));kiwi-tab-article-bar.php https://bitbucket.org/Netbog/mormirkam.git | PHP | 259 lines
1<?php 2if ( ! defined( 'ABSPATH' ) ) { 5?> 6<div class="sl-kiwi-tab-article-bar <?php echo ( $hash === 'sl-kiwi-tab-article-bar' ) ? 'epsilon-tab-active' : ''; ?>"> 7 <h2> 7 <h2> 8 <span><?php echo esc_html__( 'Article bar', 'kiwi-social-share' ) ?></span> 9 </h2> 10 <div class="sl-kiwi-opt-group clearfix"> 11 <?php 12 $share_buttons = Kiwi_Social_Share_Helper::get_setting_value( 'share_buttons', '' ); 17 <input type="checkbox" id="kiwi_share_buttons" 18 name="kiwi_general_settings[share_buttons]" <?php echo ! empty( $share_buttons ) ? 'checked' : ''; ?> 19 value="on"/> 29 <div id="shortcode-tooltip" class="kiwi-notice-container"> 30 <p><?php echo esc_html__( 'To insert the share bar anywhere in the article, you can use the [kiwi-social-bar] shortcode. For a more advanced usage of shortcodes, you can activate the Shortcode manager from the Advanced tab.', 'kiwi-social-share' ); ?></p> 31 </div>bad.php https://gitlab.com/leevh/dcyclesite.git | PHP | 798 lines
17 18// PHP Constants should be written in CAPITAL letters 19true; // Comments should be on a separate line. 164 165// Wrong usage of array keyword. 166$a = Array('1'); 303 * What's sad because eclipse PDT and 304 * PEAR CodeSniffer base on phpDoc comment style. 305 * Makes working with drupal not easier :| 431 432// Usage of t() - there should be no escaping. 433t('She\'s a good person.'); 440// require_once should be a statement. 441require_once('somefile.php'); 442FirePhp.php https://code.google.com/p/ecartcommerce/ | PHP | 254 lines
31 */ 32class Ecart_FirePhp 33{ 89 /** 90 * Write content to FirePhp log 91 * 156 /** 157 * @copyright http://anton.shevchuk.name/php/debug-zend-framework-application-with-firephp/ 158 * @static 162 if (!self::$_timer instanceof Zend_Wildfire_Plugin_FirePhp_TableMessage) { 163 self::$_timer = new Zend_Wildfire_Plugin_FirePhp_TableMessage('Timer'); 164 self::$_timer->setBuffered(true); 197 198 Zend_Wildfire_Plugin_FirePhp::getInstance()->send(self::$_timer); 199 }farms_view.tpl http://scalr.googlecode.com/svn/ | Smarty Template | 186 lines
38 rowOptionsMenu: [ 39 //{id: "option.viewMap", text:'View map', href: "/farm_map.php?id={id}"}, 40 //new Ext.menu.Separator({id: "option.viewMapSep"}), 43 new Ext.menu.Separator({itemId: "option.privateKeySep"}), 44 {itemId: "option.launchFarm", text: 'Launch', href: "/farms_control.php?farmid={id}"}, 45 {itemId: "option.terminateFarm",text: 'Terminate', href: "/farms_control.php?farmid={id}"}, 46 new Ext.menu.Separator({itemId: "option.controlSep"}), 47 {itemId: "option.usageStats", text: 'Usage statistics', href: "/farm_usage_stats.php?farmid={id}"}, 48 {itemId: "option.loadStats", text: 'Load statistics', href: "/monitoring.php?farmid={id}"}, 50 {itemId: "option.ebs", text: 'EBS usage', href: "/ebs_manage.php?farmid={id}"}, 51 {itemId: "option.eip", text: 'Elastic IPs usage', href: "/elastic_ips.php?farmid={id}"}, 52 {itemId: "option.events", text: 'Events & Notifications', href: "/events_view.php?farmid={id}"}, 56 {itemId: "option.mysql", text: 'MySQL status', href: "/farm_mysql_info.php?farmid={id}"}, 57 {itemId: "option.script", text: 'Execute script', href: "/execute_script.php?farmid={id}"}, 58__init__.py git://github.com/heynemann/skink.git | Python | 260 lines
4# This module is part of SQLAlchemy and is released under 5# the MIT License: http://www.opensource.org/licenses/mit-license.php 6 119 are unique to that dialect. Here, we describe the parameters 120 that are common to most ``create_engine()`` usage. 121 143 connection pool and will be used to create all new database 144 connections. Usage of this function causes connection 145 parameters specified in the URL argument to be bypassed.Zend.php https://github.com/sfsergey/knowledgetree.git | PHP | 293 lines
18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Zend.php 3900 2007-03-13 18:51:49Z bkarwin $ 20 */ 54 * Loads a class from a PHP file. The filename must be formatted 55 * as "$class.php". 56 * 91 /** 92 * Loads a PHP file. This is a wrapper for PHP's include() function. 93 * 117 trigger_error(__CLASS__ . "::" . __FUNCTION__ . " deprecated since 0.9.0, use Zend_Loader::loadFile() instead"); 118 require_once 'Zend/Loader.php'; 119 Zend_Loader::loadFile($filename, $dirs, $once); 123 * Returns TRUE if the $filename is readable, or FALSE otherwise. This 124 * function uses the PHP include_path, where PHP's is_readable() does not. 125 *config.m4 git://github.com/vpj/PHP-Extension-API.git | m4 | 132 lines
19 else 20 PHP_EXPAND_PATH($PHP_APXS2FILTER, APXS) 21 fi 87 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp" 88 PHP_SELECT_SAPI(apache2filter, shared, sapi_apache2.c apache_config.c php_functions.c, $APACHE_CFLAGS) 89 INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL" 103 PHP_SUBST(MH_BUNDLE_FLAGS) 104 PHP_SELECT_SAPI(apache2filter, bundle, sapi_apache2.c apache_config.c php_functions.c, $APACHE_CFLAGS) 105 SAPI_SHARED=libs/libphp5.so 111 EXTRA_LIBS="$EXTRA_LIBS _APP_" 112 PHP_SELECT_SAPI(apache2filter, shared, sapi_apache2.c apache_config.c php_functions.c, $APACHE_CFLAGS) 113 INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL" 115 *) 116 PHP_SELECT_SAPI(apache2filter, shared, sapi_apache2.c apache_config.c php_functions.c, $APACHE_CFLAGS) 117 INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"config.m4 git://github.com/vpj/PHP-Extension-API.git | m4 | 131 lines
18 else 19 PHP_EXPAND_PATH($PHP_APXS2, APXS) 20 fi 86 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp" 87 PHP_SELECT_SAPI(apache2handler, shared, mod_php5.c sapi_apache2.c apache_config.c php_functions.c, $APACHE_CFLAGS) 88 INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL" 102 PHP_SUBST(MH_BUNDLE_FLAGS) 103 PHP_SELECT_SAPI(apache2handler, bundle, mod_php5.c sapi_apache2.c apache_config.c php_functions.c, $APACHE_CFLAGS) 104 SAPI_SHARED=libs/libphp5.so 110 EXTRA_LIBS="$EXTRA_LIBS _APP_" 111 PHP_SELECT_SAPI(apache2handler, shared, mod_php5.c sapi_apache2.c apache_config.c php_functions.c, $APACHE_CFLAGS) 112 INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL" 114 *) 115 PHP_SELECT_SAPI(apache2handler, shared, mod_php5.c sapi_apache2.c apache_config.c php_functions.c, $APACHE_CFLAGS) 116 INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"en_us.lang.php https://bitbucket.org/allexblacker/suitecrm.git | PHP | 159 lines
1<?php 2// created: 2018-03-14 17:55:29 66 'LBL_MODULE_RESET_HEADING' => 'Reset', 67 'LBL_GEOCODED_COUNTS_DESCRIPTION' => 'The table shown belown shows the number of module objects geocoded, grouped by geocoding response. Keep in mind that the standard Google Maps usage limit is 2500 requests per day . This module will cache the addresses geocoding information during processing to reduce the overall number of requests needed.', 68 'LBL_CRON_INSTRUCTIONS' => 'To process the geocoding requests it is recommended to setup a nightly Cron-Job. A custom entry point has been created for this purpose and can be accessed without authentication. The URL shown below is meant to be used with an Administrative Scheduled Task. Please see the documentation for more information.', 150 'LBL_CONFIG_MAP_MARKERS_CLUSTERER_MAX_ZOOM_DESC' => '\'map_clusterer_max_zoom\' is used to set the maximum zoom level at which clustering will not be applied.', 151 'LBL_CONFIG_CUSTOM_CONTROLLER_DESC' => 'Important Note: All saved settings can be found in the \'config\' table under category \'jjwg\'. Note, a custom controller.php file should no longer be used to override settings.', 152 'LBL_JJWG_MAPS_JJWG_AREAS_FROM_JJWG_AREAS_TITLE' => 'Areas',class.ScalrAPI20090507.php http://scalr.googlecode.com/svn/ | PHP | 347 lines
1<?php 2 131 $field = str_replace(".", "_", $v); 132 $itm->Statistics->{"{$v}Usage"} = round($row[$field]/60/60, 1); 133 }fillDB.php http://poordecisions.googlecode.com/svn/web/PoorDecisions/trunk/ | PHP | 224 lines
1<?php 2 5 6 require('jacked_configVars.php'); 7 require('../jacked_configMySQL.php'); 7 require('../jacked_configMySQL.php'); 8 require('jacked_functions.php'); 9 require('jacked_pdnetfunctions.php'); 9 require('jacked_pdnetfunctions.php'); 10 require( 'jacked_markovGenerator.php' ); 11 131 $lol = array( 132 "usage" => rand(1, 50) * round((rand(1, 10) / 10)) + 1, 133 "name" => $tagname, 172 echo "working on tag $i_tagrels<br>"; 173 $usage = jackedDBGetVal('usage', 'Tag', "`id` = '$i_tagrels'"); 174 for($x = 0; $x < $usage; $x++){README.md https://gitlab.com/lileeyao/js-xss.git | Markdown | 439 lines
19 20The `xss` module controls the usage of tags and their attributes, according to 21the whitelist. It is also extendable with a series of APIs privided, which make 41+ [mXSS攻击的成因及常见种类](http://drops.wooyun.org/tips/956) 42+ [XSS Filter Evasion Cheat Sheet](https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet) 43+ [Data URI scheme](http://en.wikipedia.org/wiki/Data_URI_scheme) 80 81## Usages 82 122 123You can use the xss command line tool to process a file. Usage: 124ExtractStyleBlocks.php https://gitlab.com/ImaPotato/Mahara.git | PHP | 341 lines
1<?php 2 2 3// why is this a top level function? Because PHP 5.2.0 doesn't seem to 4// understand how to interpret this filter if it's a static method. 16 * @note 17 * See tests/HTMLPurifier/Filter/ExtractStyleBlocksTest.php for 18 * sample usage.CPSControllerCommand.php http://ps-yii-extensions.googlecode.com/svn/trunk/ | PHP | 327 lines
1<?php 2/** 52 $this->controllerBaseClass = 'CPSController'; 53 $this->controllerTemplateName = 'controller.php'; 54 109 { 110 $_arList[ $_sAction . '.php' ] = array( 111 'source' => $this->templatePath . DIRECTORY_SEPARATOR . $this->viewTemplateName, 111 'source' => $this->templatePath . DIRECTORY_SEPARATOR . $this->viewTemplateName, 112 'target' => $_sViewPath . DIRECTORY_SEPARATOR . $_sAction . '.php', 113 'callback' => array( $this, 'generateAction' ), 116 117 $_sClasses .= $this->boldEchoString( '(' . $_sViewPath . DIRECTORY_SEPARATOR . $_sAction . '.php' . ')', $_sAction, true ); 118 } 199 return <<<EOD 200USAGE 201 \033[1m{$_sName}\033[0m <\033[1mcontroller-ID\033[0m> [\033[1maction-ID\033[0m]... [options]DiscarTronco.php https://bitbucket.org/efepimenta/snep-3.git | PHP | 419 lines
1<?php 2/** 81 82 $mail->setSubject($this->i18n->translate('[snep] Warning of trunk usage')); 83 84 $tronco = PBX_Trunks::get($this->config['tronco']); 85 $msg = $this->i18n->translate("\tThis warning is being delivered to you because Snep detected the usage of a trunk marked with your email.\n"); 86 $msg .= $this->i18n->translate("Warning to trunk $tronco, the following information where gathered by the system:\n");update_hook.php http://wowroster-addons.googlecode.com/svn/trunk/ | PHP | 487 lines
1<?php 2/** 9 * @license http://creativecommons.org/licenses/by-nc-sa/2.5 Creative Commons "Attribution-NonCommercial-ShareAlike 2.5" 10 * @version SVN: $Id: update_hook.php 285 2007-10-29 00:55:45Z poetter $ 11 * @link http://www.wowroster.net 56 57 $this->usage = memory_get_usage(); 58 $this->last_usage = memory_get_usage(); 61 print "limit: ". ini_get('memory_limit'). '<br />'; 62 print "start: ". $this->usage. '<br />'; 63 81 function mem ( $tag ) { 82 print "$tag: ". ( memory_get_usage() - $this->usage ). ' gain: '. (memory_get_usage() - $this->last_usage).'<br />'; 83 $this->last_usage = memory_get_usage(); 88 89 require_once (ROSTER_BASE. 'addons'. DIR_SEP. 'assessment'. DIR_SEP. 'inc'. DIR_SEP. 'assessment.event.class.php'); 90 $this->mem( $name);AccountInstance.php git://github.com/twilio/twilio-php.git | PHP | 343 lines
1<?php 2 37use Twilio\Rest\Api\V2010\Account\TranscriptionList; 38use Twilio\Rest\Api\V2010\Account\UsageList; 39use Twilio\Rest\Api\V2010\Account\ValidationRequestList; 77 protected $_transcriptions; 78 protected $_usage; 79 protected $_validationRequests; 297 /** 298 * Access the usage 299 */ 299 */ 300 protected function getUsage(): UsageList { 301 return $this->proxy()->usage;RecordList.php git://github.com/twilio/twilio-php.git | PHP | 285 lines
1<?php 2 9 10namespace Twilio\Rest\Api\V2010\Account\Usage; 11 15use Twilio\Options; 16use Twilio\Rest\Api\V2010\Account\Usage\Record\AllTimeList; 17use Twilio\Rest\Api\V2010\Account\Usage\Record\DailyList; 17use Twilio\Rest\Api\V2010\Account\Usage\Record\DailyList; 18use Twilio\Rest\Api\V2010\Account\Usage\Record\LastMonthList; 19use Twilio\Rest\Api\V2010\Account\Usage\Record\MonthlyList; 19use Twilio\Rest\Api\V2010\Account\Usage\Record\MonthlyList; 20use Twilio\Rest\Api\V2010\Account\Usage\Record\ThisMonthList; 21use Twilio\Rest\Api\V2010\Account\Usage\Record\TodayList; 21use Twilio\Rest\Api\V2010\Account\Usage\Record\TodayList; 22use Twilio\Rest\Api\V2010\Account\Usage\Record\YearlyList; 23use Twilio\Rest\Api\V2010\Account\Usage\Record\YesterdayList;logging-java.html git://pkgs.fedoraproject.org/pmd | HTML | 246 lines
3 4 @import url("../style/maven-theme.css");</style><link rel="stylesheet" href="../style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta><meta name="author" content="Tom Copeland"></meta><meta name="email" content="tom@infoether.com"></meta></head><body class="composite"><div id="banner"><a href="http://pmd.sourceforge.net/" id="organizationLogo"><img alt="InfoEther" src="http://sourceforge.net/sflogo.php?group_id=56262&type=5"></img></a><a href="http://pmd.sourceforge.net/" id="projectLogo"><img alt="PMD" src="../images/pmd_logo_small.jpg"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft"></div><div class="xright"> 5 20 <a href="http://sourceforge.net" class="externalLink" title="External Link">Hosted by SourceForge</a> 21 </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><div id="menuOverview"><h5>Overview</h5><ul><li class="none"><a href="http://sourceforge.net/project/showfiles.php?group_id=56262&package_id=51441&release_id=632850" class="externalLink" title="External Link">Download PMD 4.2.5</a></li><li class="none"><a href="http://sourceforge.net/project/shownotes.php?release_id=632850&group_id=56262" class="externalLink" title="External Link">What's new in PMD 4.2.5</a></li><li class="none"><a href="../news.html">PMD in the news</a></li><li class="none"><a href="../products.html">PMD-related products and books</a></li><li class="none"><a href="../bestpractices.html">Best practices</a></li><li class="none"><a href="../future.html">Future directions</a></li><li class="none"><a href="../similar-projects.html">Similar projects</a></li><li class="none"><a href="../credits.html">Credits</a></li><li class="none"><a href="../license.html">License</a></li><li class="none"><a href="../meaning.html">What does 'PMD' mean?</a></li></ul></div><div id="menuUsage"><h5>Usage</h5><ul><li class="none"><a href="../installing.html">Installation</a></li><li class="none"><a href="../running.html">Command line usage</a></li><li class="none"><a href="../ant-task.html">Ant task usage</a></li><li class="none"><a href="../maven-plugin.html">Maven plugin usage</a></li><li class="none"><a href="../mvn-plugin.html">Mvn plugin usage</a></li><li class="none"><a href="../integrations.html">IDE plugin usage</a></li><li class="none"><a href="../suppressing.html">Suppressing warnings</a></li><li class="none"><a href="../cpd.html">Finding duplicated code</a></li><li class="none"><a href="../jspsupport.html">JSP support</a></li></ul></div><div id="menuCustomizing_PMD"><h5>Customizing PMD</h5><ul><li class="none"><a href="../compiling.html">Compiling PMD</a></li><li class="none"><a href="../howtowritearule.html">How to write a rule</a></li><li class="none"><a href="../xpathruletutorial.html">Writing XPath rules</a></li><li class="none"><a href="../howtomakearuleset.html">How to make a rule set</a></li><li class="none"><a href="../howitworks.html">How it works</a></li><li class="none"><a href="../rule-guidelines.html">Rule guidelines</a></li></ul></div><div id="menuFor_example"><h5>For example</h5><ul><li class="none"><a href="../scoreboard.html">Run PMD on a Sourceforge project</a></li></ul></div><div id="menuRule_Sets"><h5>Rule Sets</h5><ul><li class="none"><a href="../rules/index.html">Index</a></li><li class="none"><a href="../rules/android.html">Android</a></li><li class="none"><a href="../rules/basic.html">Basic</a></li><li class="none"><a href="../rules/braces.html">Braces</a></li><li class="none"><a href="../rules/codesize.html">Code Size</a></li><li class="none"><a href="../rules/clone.html">Clone</a></li><li class="none"><a href="../rules/controversial.html">Controversial</a></li><li class="none"><a href="../rules/coupling.html">Coupling</a></li><li class="none"><a href="../rules/design.html">Design</a></li><li class="none"><a href="../rules/finalizers.html">Finalizers</a></li><li class="none"><a href="../rules/imports.html">Import Statements</a></li><li class="none"><a href="../rules/j2ee.html">J2EE</a></li><li class="none"><a href="../rules/javabeans.html">Javabeans</a></li><li class="none"><a href="../rules/junit.html">JUnit Tests</a></li><li class="none"><strong><a href="../rules/logging-java.html">Logging (Java)</a></strong></li><li class="none"><a href="../rules/logging-jakarta-commons.html">Logging (Jakarta)</a></li><li class="none"><a href="../rules/migrating.html">Migrating</a></li><li class="none"><a href="../rules/naming.html">Naming</a></li><li class="none"><a href="../rules/optimizations.html">Optimizations</a></li><li class="none"><a href="../rules/strictexception.html">Strict Exceptions</a></li><li class="none"><a href="../rules/strings.html">Strings</a></li><li class="none"><a href="../rules/sunsecure.html">Sun Security</a></li><li class="none"><a href="../rules/unusedcode.html">Unused Code</a></li><li class="none"><a href="../rules/basic-jsp.html">Java Server Pages</a></li><li class="none"><a href="../rules/basic-jsf.html">Java Server Faces</a></li></ul></div><div id="menuProject_Documentation"><h5>Project Documentation</h5><ul><li class="none"><a href="../index.html">About</a></li><li class="collapsed"><a href="../project-info.html">Project Info</a></li><li class="collapsed"><a href="../maven-reports.html">Project Reports</a></li><li class="none"><a href="../development-process.html">Development Process</a></li></ul></div><div id="legend"><h5>Legend</h5><ul><li class="externalLink">External Link</li><li class="newWindow">Opens in a new window</li></ul></div><a href="http://maven.apache.org/" title="Built by Maven" id="poweredBy"><img alt="Built by Maven" src="../images/logos/mavenlogo_builtby_w.png"></img></a></div></div><div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Java_Logging_Rules"></a><h2>Java Logging Rules</h2> 22 24 25The Java Logging ruleset contains a collection of rules that find questionable usages of the logger. 26scoping.py git://github.com/heynemann/skink.git | Python | 208 lines
4# This module is part of SQLAlchemy and is released under 5# the MIT License: http://www.opensource.org/licenses/mit-license.php 6 22 23 Usage:: 24 59 @deprecated("Session.mapper is deprecated. " 60 "Please see http://www.sqlalchemy.org/trac/wiki/UsageRecipes/SessionAwareMapper " 61 "for information on how to replicate its behavior.")facebox.js https://ncadmin.svn.codeplex.com/svn | JavaScript | 335 lines
8 * Licensed under the MIT: 9 * http://www.opensource.org/licenses/mit-license.php 10 * 12 * 13 * Usage: 14 *LabelMaker.php https://github.com/gabordemooij/redbean.git | PHP | 182 lines
1<?php 2 2 3namespace RedBeanPHP; 4 4 5use RedBeanPHP\ToolBox as ToolBox; 6use RedBeanPHP\OODBBean as OODBBean; 15 * 16 * @file RedBeanPHP/LabelMaker.php 17 * @author Gabor de Mooij and the RedBeanPHP Community 20 * @copyright 21 * copyright (c) G.J.G.T. (Gabor) de Mooij and the RedBeanPHP Community 22 * This source file is subject to the BSD/GPLv2 License that is bundled 72 * and stores the names in a new array. The array then gets sorted using the 73 * default sort function of PHP (sort). 74 *SelectableOptionArray.php git://github.com/ryancramerdesign/ProcessWire.git | PHP | 203 lines
1<?php 2 97 * 98 * For debugging or basic usage 99 *