73+ results for 'php getenv' (0 ms)
Not the results you expected?
mail.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 406 lines
1 <?php
2 class Mail {
3 protected $to;
94 $header .= 'Reply-To: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;
95 $header .= 'Return-Path: ' . $this->from . $this->newline;
96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline;
97 //$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
98 $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
157 exit();
158 } else {
159 if (substr(PHP_OS, 0, 3) != 'WIN') {
160 socket_set_timeout($handle, $this->timeout, 0);
161 }
186 if (!empty($this->username) && !empty($this->password)) {
187 fputs($handle, 'EHLO ' . getenv('SERVER_NAME') . $this->crlf);
189 $reply = '';
yosen.c (https://github.com/tsukud-y/estiva.git) C · 872 lines
Module.php (https://bitbucket.org/mrblackus/micro-muffin.git) PHP · 383 lines
1 <?php
3 /*
31 /**
32 * Compiles the node to PHP.
33 *
34 * @param Twig_Compiler A Twig_Compiler instance
48 if (!$this->getAttribute('index'))
49 {
50 $compiler->write('<?php');
51 }
131 $compiler
132 ->write("\n\n")
133 // if the filename contains */, add a blank to avoid a PHP parse error
134 ->write("/* " . str_replace('*/', '* /', $this->getAttribute('filename')) . " */\n")
135 ->write('class ' . $compiler->getEnvironment()->getTemplateClass($this->getAttribute('filename'), $this->getAttribute('index')))
pgt-file.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 249 lines
1 <?php
3 /**
4 * @file CAS/PGTStorage/pgt-file.php
5 * Basic class for PGT file storage
6 */
107 function PGTStorageFile($cas_parent,$format,$path)
108 {
109 phpCAS::traceBegin();
110 // call the ancestor's constructor
111 $this->PGTStorage($cas_parent);
116 // check that the path is an absolute path
117 if (getenv("OS")=="Windows_NT"){
119 if (!preg_match('`^[a-zA-Z]:`', $path)) {
Request.php (https://gitlab.com/igorbabko/mindk) PHP · 306 lines
1 <?php
2 /**
3 * File /framework/request/Request.php contains Request class is used
4 * to manipulated with http request easily.
5 *
6 * PHP version 5
7 *
8 * @package Framework\Request
170 * {@inheritdoc}
171 */
172 public function getEnv($name)
173 {
174 return isset($_ENV[$name])?$_ENV[$name]:null;
class.yaf-request-http.html (https://bitbucket.org/thncr/manuals.git) HTML · 407 lines
10 <div class="next" style="text-align: right; float: right;"><a href="yaf-request-http.clone.html">Yaf_Request_Http::__clone</a></div>
11 <div class="up"><a href="book.yaf.html">Yaf</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13 </div><hr /><div id="class.yaf-request-http" class="reference">
106 )</div>
107 <div class="methodsynopsis dc-description">
108 <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="yaf-request-abstract.getenv.html" class="methodname">Yaf_Request_Abstract::getEnv</a></span>
109 ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
110 [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$default</code></span>
404 <div class="next" style="text-align: right; float: right;"><a href="yaf-request-http.clone.html">Yaf_Request_Http::__clone</a></div>
405 <div class="up"><a href="book.yaf.html">Yaf</a></div>
406 <div class="home"><a href="index.html">PHP Manual</a></div>
407 </div></body></html>
PhabricatorMailReplyHandler.php (https://github.com/juneym/phabricator.git) PHP · 202 lines
1 <?php
3 /*
55 public function supportsPublicReplies() {
56 if (!PhabricatorEnv::getEnvConfig('metamta.public-replies')) {
57 return false;
58 }
173 protected function getSingleReplyHandlerPrefix($address) {
174 $single_handle_prefix = PhabricatorEnv::getEnvConfig(
175 'metamta.single-reply-handler-prefix');
176 return ($single_handle_prefix)
CreationMinerais.php (https://github.com/Samsuffi/braldahim.git) PHP · 340 lines
1 <?php
3 /**
192 // selection des environnements / zones concernes
193 $environnementIds = $this->getEnvironnementsConcernes($creationMinerais);
194 Bral_Util_Log::batchs()->trace("Bral_Batchs_CreationMinerais - nb environnement concernes=" .count($environnementIds));
195 $zones = $zoneTable->findByIdEnvironnementList($environnementIds, false);
258 }
260 private function getEnvironnementsConcernes($creationMinerais) {
261 Bral_Util_Log::batchs()->trace("Bral_Batchs_CreationMinerais - getEnvironnementsConcernes - enter -");
264 $environnementIds[$n["id_fk_environnement_creation_minerais"]] = $n["id_fk_environnement_creation_minerais"];
265 }
266 Bral_Util_Log::batchs()->trace("Bral_Batchs_CreationMinerais - getEnvironnementsConcernes - exit -");
267 return $environnementIds;
268 }
OS_NS_stdlib.h (https://gitlab.com/Kanedias/MangosDeprecated) C Header · 332 lines
8 *
9 * @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
10 * @author Jesper S. M|ller<stophph@diku.dk>
11 * @author and a cast of thousands...
12 *
113 ACE_NAMESPACE_INLINE_FUNCTION
114 char *getenv (const char *symbol);
116 # if defined (ACE_HAS_WCHAR) && defined (ACE_WIN32)
117 ACE_NAMESPACE_INLINE_FUNCTION
118 wchar_t *getenv (const wchar_t *symbol);
119 # endif /* ACE_HAS_WCHAR && ACE_WIN32 */
gtest-port.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ Header · 1498 lines
ProtonClient.php (https://github.com/ocStore/ocStore.git) PHP · 143 lines
1 <?php
2 namespace Aws\Proton;
52 * @method \Aws\Result getAccountSettings(array $args = [])
53 * @method \GuzzleHttp\Promise\Promise getAccountSettingsAsync(array $args = [])
54 * @method \Aws\Result getEnvironment(array $args = [])
55 * @method \GuzzleHttp\Promise\Promise getEnvironmentAsync(array $args = [])
56 * @method \Aws\Result getEnvironmentAccountConnection(array $args = [])
57 * @method \GuzzleHttp\Promise\Promise getEnvironmentAccountConnectionAsync(array $args = [])
58 * @method \Aws\Result getEnvironmentTemplate(array $args = [])
59 * @method \GuzzleHttp\Promise\Promise getEnvironmentTemplateAsync(array $args = [])
60 * @method \Aws\Result getEnvironmentTemplateVersion(array $args = [])
61 * @method \GuzzleHttp\Promise\Promise getEnvironmentTemplateVersionAsync(array $args = [])
Openssl.php (https://github.com/Martin1982/IBMessagingWorkshopServer.git) PHP · 353 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Openssl.php 20288 2010-01-14 20:15:43Z thomas $
20 */
23 * @see Zend_Filter_Encrypt_Interface
24 */
25 // require_once 'Zend/Filter/Encrypt/Interface.php';
27 /**
69 {
70 if (!extension_loaded('openssl')) {
71 // require_once 'Zend/Filter/Exception.php';
72 throw new Zend_Filter_Exception('This filter needs the openssl extension');
73 }
TargetTxtClassObject.py (https://gitlab.com/envieidoc/Clover) Python · 190 lines
6 # are licensed and made available under the terms and conditions of the BSD License
7 # which accompanies this distribution. The full text of the license may be found at
8 # http://opensource.org/licenses/bsd-license.php
9 #
10 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
185 if __name__ == '__main__':
186 pass
187 Target = TargetTxtDict(os.getenv("WORKSPACE"))
188 print Target.TargetTxtDictionary[DataType.TAB_TAT_DEFINES_MAX_CONCURRENT_THREAD_NUMBER]
189 print Target.TargetTxtDictionary[DataType.TAB_TAT_DEFINES_TARGET]
Configuration.php (https://gitlab.com/CORP-RESELLER/shopping-cart-lite) PHP · 346 lines
Smd.php (https://github.com/kiranatama/sagalaya.git) PHP · 461 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
156 * @return string
157 */
158 public function getEnvelope()
159 {
160 return $this->_envelope;
377 $transport = $this->getTransport();
378 $envelope = $this->getEnvelope();
379 $contentType = $this->getContentType();
380 $SMDVersion = self::SMD_VERSION;
Smd.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 461 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
152 * @return string
153 */
154 public function getEnvelope()
155 {
156 return $this->envelope;
376 $description = $this->getDescription();
377 $transport = $this->getTransport();
378 $envelope = $this->getEnvelope();
379 $contentType = $this->getContentType();
380 $SMDVersion = static::SMD_VERSION;
linuxglue.c (https://github.com/BlitzMaxModules/bah.mod.git) C · 254 lines
s-ntitco.adb (https://github.com/ytomino/drake.git) Ada · 315 lines
1 -- reference:
2 -- http://www.mudpedia.org/mediawiki/index.php/Xterm_256_colors
3 with System.Address_To_Named_Access_Conversions;
4 with System.Formatting;
32 TERM : C.char_ptr;
33 begin
34 TERM := C.stdlib.getenv (TERM_Variable (0)'Access);
35 if TERM /= null
36 and then strlen (TERM) = xterm_256color'Length
TransparentRedirectTest.php (https://github.com/carlos8f/braintree_php.git) PHP · 261 lines
1 <?php
2 require_once realpath(dirname(__FILE__)) . '/../TestHelper.php';
4 class Braintree_TransparentRedirectTest extends PHPUnit_Framework_TestCase
5 {
6 function testRedirectUrl()
255 {
256 $url = Braintree_TransparentRedirect::url();
257 $developmentPort = getenv("GATEWAY_PORT") ? getenv("GATEWAY_PORT") : 3000;
258 $this->assertEquals("http://localhost:" . $developmentPort . "/merchants/integration_merchant_id/transparent_redirect_requests", $url);
259 }
test_dist_fleet_ctr.py (https://github.com/PaddlePaddle/Paddle.git) Python · 192 lines
32 need_envs={}):
33 required_envs = {
34 "PATH": os.getenv("PATH", ""),
35 "PYTHONPATH": os.getenv("PYTHONPATH", ""),
36 "LD_LIBRARY_PATH": os.getenv("LD_LIBRARY_PATH", ""),
37 "FLAGS_rpc_deadline": "5000", # 5sec to fail fast
38 "http_proxy": "",
64 need_envs={}):
65 required_envs = {
66 "PATH": os.getenv("PATH", ""),
67 "PYTHONPATH": os.getenv("PYTHONPATH", ""),
68 "LD_LIBRARY_PATH": os.getenv("LD_LIBRARY_PATH", ""),
69 "FLAGS_rpc_deadline": "5000", # 5sec to fail fast
70 "http_proxy": "",
SandboxTest.php (https://bitbucket.org/gencer/twig.git) PHP · 220 lines
1 <?php
3 /*
10 */
12 class Twig_Tests_Extension_SandboxTest extends PHPUnit_Framework_TestCase
13 {
14 protected static $params, $templates;
44 public function testSandboxWithInheritance()
45 {
46 $twig = $this->getEnvironment(true, array(), self::$templates, array('block'));
47 $twig->loadTemplate('1_child')->render(array());
48 }
50 public function testSandboxGloballySet()
51 {
52 $twig = $this->getEnvironment(false, array(), self::$templates);
53 $this->assertEquals('FOO', $twig->loadTemplate('1_basic')->render(self::$params), 'Sandbox does nothing if it is disabled globally');
mail.php (https://gitlab.com/2202Programming/navxmxp) PHP · 406 lines
1 <?php
2 class Mail {
3 protected $to;
94 $header .= 'Reply-To: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;
95 $header .= 'Return-Path: ' . $this->from . $this->newline;
96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline;
97 $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
157 exit();
158 } else {
159 if (substr(PHP_OS, 0, 3) != 'WIN') {
160 socket_set_timeout($handle, $this->timeout, 0);
161 }
186 if (!empty($this->username) && !empty($this->password)) {
187 fputs($handle, 'EHLO ' . getenv('SERVER_NAME') . $this->crlf);
189 $reply = '';
Loader.php (https://github.com/patadejaguar/S.A.F.E.-Open-Source-Microfinance-Suite.git) PHP · 376 lines
1 <?php
3 namespace Dotenv;
255 '/\${([a-zA-Z0-9_.]+)}/',
256 function ($matchedPatterns) use ($loader) {
257 $nestedVariable = $loader->getEnvironmentVariable($matchedPatterns[1]);
258 if ($nestedVariable === null) {
259 return $matchedPatterns[0];
289 * @return string|null
290 */
291 public function getEnvironmentVariable($name)
292 {
293 switch (true) {
333 // If PHP is running as an Apache module and an existing
334 // Apache environment variable exists, overwrite it
335 if (function_exists('apache_getenv') && function_exists('apache_setenv') && apache_getenv($name) !== false) {
336 apache_setenv($name, $value);
337 }
ip_allow_deny.lib.php (https://github.com/jackygrahamez/DrugDiscovery-Home.git) PHP · 190 lines
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * feature
6 *
7 * @version $Id: ip_allow_deny.lib.php 10142 2007-03-20 10:32:13Z cybot_tm $
8 */
28 /* Do we trust this IP as a proxy? If yes we will use it's header. */
29 if (isset($GLOBALS['cfg']['TrustedProxies'][$direct_ip])) {
30 $proxy_ip = PMA_getenv($GLOBALS['cfg']['TrustedProxies'][$direct_ip]);
31 // the $ checks that the header contains only one IP address
32 $is_ip = preg_match('|^([0-9]{1,3}\.){3,3}[0-9]{1,3}$|', $proxy_ip, $regs);
45 * Based on IP Pattern Matcher
46 * Originally by J.Adams <jna@retina.net>
47 * Found on <http://www.php.net/manual/en/function.ip2long.php>
48 * Modified by Robbat2 <robbat2@users.sourceforge.net>
49 *
stdlib.h (https://github.com/monyuonyu/pinoc.git) C Header · 226 lines
COLLADAMaxDocumentExporter.h (https://bitbucket.org/ZhangJingGuo/opencollada.git) C Header · 248 lines
13 Licensed under the MIT Open Source License,
14 for details please see LICENSE file or the website
15 http://www.opensource.org/licenses/mit-license.php
16 */
238 /** Returns the value of the environment variable @a variableName.*/
239 String getEnvironmentVariable ( const String & variableName );
Fetch.php (https://github.com/finger2000/horde.git) PHP · 518 lines
1 <?php
2 /**
3 * Object containing data returned by the Horde_Imap_Client_Base#fetch()
265 * @return Horde_Imap_Client_Data_Envelope An envelope object.
266 */
267 public function getEnvelope()
268 {
269 return isset($this->_data[Horde_Imap_Client::FETCH_ENVELOPE])
456 }
458 $tmp = fopen('php://temp', 'w+');
460 if (!is_null($data)) {
File.php (https://github.com/ftaiolivista/Zend-Framework-Namespaced-.git) PHP · 448 lines
1 <?php
3 /**
19 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 * @version $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $
22 */
31 * @see Zend_OpenId_Provider_Storage
32 */
33 require_once "Zend/OpenId/Provider/Storage.php";
35 /**
61 {
62 if ($dir === null) {
63 $tmp = getenv('TMP');
64 if (empty($tmp)) {
65 $tmp = getenv('TEMP');
FilterTest.php (https://gitlab.com/arthur_quiroga/dystawork) PHP · 151 lines
ViewHelper.php (https://github.com/sitengine/sitengine.git) PHP · 282 lines
class.yaf-request-abstract.html (https://bitbucket.org/thncr/manuals.git) HTML · 601 lines
10 <div class="next" style="text-align: right; float: right;"><a href="yaf-request-abstract.getactionname.html">Yaf_Request_Abstract::getActionName</a></div>
11 <div class="up"><a href="book.yaf.html">Yaf</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13 </div><hr /><div id="class.yaf-request-abstract" class="reference">
129 )</div>
130 <div class="methodsynopsis dc-description">
131 <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="yaf-request-abstract.getenv.html" class="methodname">getEnv</a></span>
132 ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
133 [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$default</code></span>
594 <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="yaf-request-abstract.getactionname.html">Yaf_Request_Abstract::getActionName</a> — The getActionName purpose</li><li><a href="yaf-request-abstract.getbaseuri.html">Yaf_Request_Abstract::getBaseUri</a> — The getBaseUri purpose</li><li><a href="yaf-request-abstract.getcontrollername.html">Yaf_Request_Abstract::getControllerName</a> — The getControllerName purpose</li><li><a href="yaf-request-abstract.getenv.html">Yaf_Request_Abstract::getEnv</a> — Retrieve ENV varialbe</li><li><a href="yaf-request-abstract.getexception.html">Yaf_Request_Abstract::getException</a> — The getException purpose</li><li><a href="yaf-request-abstract.getlanguage.html">Yaf_Request_Abstract::getLanguage</a> — The getLanguage purpose</li><li><a href="yaf-request-abstract.getmethod.html">Yaf_Request_Abstract::getMethod</a> — The getMethod purpose</li><li><a href="yaf-request-abstract.getmodulename.html">Yaf_Request_Abstract::getModuleName</a> — The getModuleName purpose</li><li><a href="yaf-request-abstract.getparam.html">Yaf_Request_Abstract::getParam</a> — The getParam purpose</li><li><a href="yaf-request-abstract.getparams.html">Yaf_Request_Abstract::getParams</a> — The getParams purpose</li><li><a href="yaf-request-abstract.getrequesturi.html">Yaf_Request_Abstract::getRequestUri</a> — The getRequestUri purpose</li><li><a href="yaf-request-abstract.getserver.html">Yaf_Request_Abstract::getServer</a> — Retrieve SERVER variable</li><li><a href="yaf-request-abstract.iscli.html">Yaf_Request_Abstract::isCli</a> — The isCli purpose</li><li><a href="yaf-request-abstract.isdispatched.html">Yaf_Request_Abstract::isDispatched</a> — The isDispatched purpose</li><li><a href="yaf-request-abstract.isget.html">Yaf_Request_Abstract::isGet</a> — The isGet purpose</li><li><a href="yaf-request-abstract.ishead.html">Yaf_Request_Abstract::isHead</a> — The isHead purpose</li><li><a href="yaf-request-abstract.isoptions.html">Yaf_Request_Abstract::isOptions</a> — The isOptions purpose</li><li><a href="yaf-request-abstract.ispost.html">Yaf_Request_Abstract::isPost</a> — The isPost purpose</li><li><a href="yaf-request-abstract.isput.html">Yaf_Request_Abstract::isPut</a> — The isPut purpose</li><li><a href="yaf-request-abstract.isrouted.html">Yaf_Request_Abstract::isRouted</a> — The isRouted purpose</li><li><a href="yaf-request-abstract.isxmlhttprequest.html">Yaf_Request_Abstract::isXmlHttpRequest</a> — The isXmlHttpRequest purpose</li><li><a href="yaf-request-abstract.setactionname.html">Yaf_Request_Abstract::setActionName</a> — The setActionName purpose</li><li><a href="yaf-request-abstract.setbaseuri.html">Yaf_Request_Abstract::setBaseUri</a> — set base URI</li><li><a href="yaf-request-abstract.setcontrollername.html">Yaf_Request_Abstract::setControllerName</a> — The setControllerName purpose</li><li><a href="yaf-request-abstract.setdispatched.html">Yaf_Request_Abstract::setDispatched</a> — The setDispatched purpose</li><li><a href="yaf-request-abstract.setmodulename.html">Yaf_Request_Abstract::setModuleName</a> — The setModuleName purpose</li><li><a href="yaf-request-abstract.setparam.html">Yaf_Request_Abstract::setParam</a> — The setParam purpose</li><li><a href="yaf-request-abstract.setrequesturi.html">Yaf_Request_Abstract::setRequestUri</a> — The setRequestUri purpose</li><li><a href="yaf-request-abstract.setrouted.html">Yaf_Request_Abstract::setRouted</a> — The setRouted purpose</li></ul>
595 </div>
596 <hr /><div class="manualnavbar" style="text-align: center;">
class.yaf-request-simple.html (https://bitbucket.org/thncr/manuals.git) HTML · 452 lines
10 <div class="next" style="text-align: right; float: right;"><a href="yaf-request-simple.clone.html">Yaf_Request_Simple::__clone</a></div>
11 <div class="up"><a href="book.yaf.html">Yaf</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13 </div><hr /><div id="class.yaf-request-simple" class="reference">
119 )</div>
120 <div class="methodsynopsis dc-description">
121 <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="yaf-request-abstract.getenv.html" class="methodname">Yaf_Request_Abstract::getEnv</a></span>
122 ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
123 [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$default</code></span>
449 <div class="next" style="text-align: right; float: right;"><a href="yaf-request-simple.clone.html">Yaf_Request_Simple::__clone</a></div>
450 <div class="up"><a href="book.yaf.html">Yaf</a></div>
451 <div class="home"><a href="index.html">PHP Manual</a></div>
452 </div></body></html>
extprofile_options.h (https://github.com/babannasd/hiphop-php.git) C Header · 295 lines
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
6 | Copyright (c) 1997-2010 The PHP Group |
7 +----------------------------------------------------------------------+
8 | This source file is subject to version 3.01 of the PHP license, |
9 | that is bundled with this package in the file LICENSE, and is |
10 | available through the world-wide-web at the following url: |
11 | http://www.php.net/license/3_01.txt |
12 | If you did not receive a copy of the PHP license and are unable to |
13 | obtain it through the world-wide-web, please send a note to |
14 | license@php.net so we can mail you a copy immediately. |
15 +----------------------------------------------------------------------+
16 */
ExpressionValueTest.java (https://github.com/starksm64/jboss-dmr.git) Java · 234 lines
211 /**
212 * Find the first defined System.getenv() environment variable with a non-zero length value.
213 * @return [0] = env var name prefixed with "env."
214 * [1] = env var value. If [0].length == 0, then there
217 private static String[] findEnvVar() {
218 String[] pair = {"", null};
219 Collection<String> envvars = System.getenv().keySet();
220 if (envvars.isEmpty()) {
221 return pair;
222 }
223 for(final String envvar : envvars) {
224 final String envvarValue = System.getenv(envvar);
225 if (envvarValue != null && envvarValue.length() > 0) {
226 // Change name to env.name
pl1.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 599 lines
File.php (https://github.com/bhaumik25/zend-framework.git) PHP · 333 lines
Openssl.php (https://github.com/orchestra-io/sample-openx.git) PHP · 345 lines
1 <?php
2 /**
3 * Zend Framework
23 * @see Zend_Filter_Encrypt_Interface
24 */
25 require_once 'Zend/Filter/Encrypt/Interface.php';
27 /**
69 {
70 if (!extension_loaded('openssl')) {
71 require_once 'Zend/Filter/Exception.php';
72 throw new Zend_Filter_Exception('This filter needs the openssl extension');
73 }
89 {
90 if (!is_array($keys)) {
91 require_once 'Zend/Filter/Exception.php';
92 throw new Zend_Filter_Exception('Invalid options argument provided to filter');
93 }
GenericAddon.cs (https://github.com/goatcorp/FFXIVQuickLauncher.git) C# · 211 lines
138 var ps = new ProcessStartInfo
139 {
140 FileName = Environment.GetEnvironmentVariable("ComSpec"),
141 WorkingDirectory = System.IO.Path.GetDirectoryName(Path),
142 Arguments = $@"/C ""{Path}"" {CommandLine}",
193 var result = "powershell.exe";
195 var path = Environment.GetEnvironmentVariable("Path");
196 var values = path?.Split(';') ?? Array.Empty<string>();
ApplicationDefaultCredentialsTest.php (https://github.com/cindyli/ATutor.git) PHP · 253 lines
1 <?php
2 /*
3 * Copyright 2015 Google Inc.
23 use GuzzleHttp\Psr7;
25 class ADCGetTest extends \PHPUnit_Framework_TestCase
26 {
27 private $originalHome;
29 protected function setUp()
30 {
31 $this->originalHome = getenv('HOME');
32 }
34 protected function tearDown()
35 {
36 if ($this->originalHome != getenv('HOME')) {
37 putenv('HOME=' . $this->originalHome);
38 }
InsertK8sApplicationRequest.php (https://github.com/aliyun/aliyun-openapi-php-sdk.git) PHP · 467 lines
Config.php (https://gitlab.com/x33n/ImpressPages) PHP · 172 lines
1 <?php
2 /**
3 * @package ImpressPages
42 if (strpos($server['REQUEST_URI'], $baseUrl) !== 0) {
43 // show instructions how to set baseUrl manually
44 include __DIR__ . '/Internal/Config/view/couldNotDetectBaseUrl.php';
45 exit();
46 }
48 if (strpos(strtolower($server['REQUEST_URI']), strtolower($baseUrl)) !== 0) {
49 // show instructions how to set baseUrl manually
50 include __DIR__ . '/Internal/Config/view/couldNotDetectBaseUrl.php';
51 exit();
52 }
71 if ((isset($server['HTTPS']) && strtolower($server['HTTPS']) == "on") || strtolower(getenv('HTTP_X_FORWARDED_PROTO')) === 'https') {
72 $this->protocol = 'https://';
73 } else {
Application.php (https://gitlab.com/Pasantias/pasantiasASLG) PHP · 172 lines
1 <?php
3 namespace Illuminate\Console;
144 $definition = parent::getDefaultInputDefinition();
146 $definition->addOption($this->getEnvironmentOption());
148 return $definition;
154 * @return \Symfony\Component\Console\Input\InputOption
155 */
156 protected function getEnvironmentOption()
157 {
158 $message = 'The environment the command should run under.';
HttpUtilTest.java (https://github.com/aliyun/aliyun-openapi-java-sdk.git) Java · 209 lines
24 public void testHttpDebug() {
25 HttpUtil httpUtil = new HttpUtil();
26 Assert.assertEquals(HttpUtil.getIsHttpDebug(), "sdk".equalsIgnoreCase(System.getenv("DEBUG")));
27 Assert.assertEquals(HttpUtil.getIsHttpContentDebug(), "sdk".equalsIgnoreCase(System.getenv("DEBUG")));
40 Assert.assertTrue(HttpUtil.getIsHttpContentDebug());
41 }
42 HttpUtil.setIsHttpDebug("sdk".equalsIgnoreCase(System.getenv("DEBUG")));
43 HttpUtil.setIsHttpContentDebug("sdk".equalsIgnoreCase(System.getenv("DEBUG")));
72 Assert.assertNull(HttpUtil.debugHttpRequest(request));
74 HttpUtil.setIsHttpDebug("sdk".equalsIgnoreCase(System.getenv("DEBUG")));
75 HttpUtil.setIsHttpContentDebug("sdk".equalsIgnoreCase(System.getenv("DEBUG")));
102 Assert.assertNull(HttpUtil.debugHttpResponse(response));
104 HttpUtil.setIsHttpDebug("sdk".equalsIgnoreCase(System.getenv("DEBUG")));
105 HttpUtil.setIsHttpContentDebug("sdk".equalsIgnoreCase(System.getenv("DEBUG")));
Dir.php (https://github.com/hatone/moodle.git) PHP · 199 lines
1 <?php
2 /**
3 *
8 * @package Solar
9 *
10 * @author Paul M. Jones <pmjones@solarphp.com>
11 *
12 * @license http://opensource.org/licenses/bsd-license.php BSD
13 *
14 * @version $Id: Dir.php,v 1.2 2010/12/14 17:36:06 moodlerobot Exp $
15 *
16 */
28 /**
29 *
30 * Hack for [[php::is_dir() | ]] that checks the include_path.
31 *
32 * Use this to see if a directory exists anywhere in the include_path.
LockingEnhancementTest.php (https://gitlab.com/sarelvdwalt/BaseCommandBundle) PHP · 212 lines
1 <?php
21 {
22 // Backup the current value to be restored after the tests
23 self::$homeLocationBackup = getenv('HOME');
25 // Get the location of the test Application
59 $this->assertTrue(
60 $this->lockFileExists($this->getTestHomeLocation(), 'LockCommand.php'),
61 'A lock file does not seem to have been created relative to the user\'s home directory '
62 );
87 $this->assertTrue(
88 $this->lockFileExists($lockFolderName, 'LockCommand.php'),
89 'A lock file does not seem to have been created relative to the user\'s home directory '
90 );
JsonPathParserTest.java (https://gitlab.com/CORP-RESELLER/aws-lambda-jenkins-plugin) Java · 131 lines
31 assertEquals(4, parseResult.size());
32 assertEquals("value1", parseResult.get(lambdaKey1.getEnvVarName()));
33 assertEquals("value2", parseResult.get(lambdaKey2.getEnvVarName()));
34 assertEquals(simplePayload, parseResult.get(keyPayload.getEnvVarName()));
35 assertEquals(simplePayload, parseResult.get(keyPayloadNull.getEnvVarName()));
70 assertEquals(2, parseResult.size());
71 assertEquals("attached", parseResult.get(complexDeep.getEnvVarName()));
72 assertEquals("[\"\\/dev\\/sdf\"]", parseResult.get(complexFilter.getEnvVarName()));
PathTest.php (https://github.com/stof/symfony.git) PHP · 1055 lines
1 <?php
3 /*
12 namespace Symfony\Component\Filesystem\Tests;
14 use PHPUnit\Framework\TestCase;
15 use Symfony\Component\Filesystem\Path;
26 protected function setUp(): void
27 {
28 $this->storedEnv['HOME'] = getenv('HOME');
29 $this->storedEnv['HOMEDRIVE'] = getenv('HOMEDRIVE');
30 $this->storedEnv['HOMEPATH'] = getenv('HOMEPATH');
32 putenv('HOME=/home/webmozart');
test_main_webots.lua (git://github.com/UPenn-RoboCup/UPennalizers.git) Lua · 261 lines
Dir.php (https://github.com/sharpmachine/wakeupmedia.com.git) PHP · 199 lines
1 <?php
2 /**
3 *
8 * @package Solar
9 *
10 * @author Paul M. Jones <pmjones@solarphp.com>
11 *
12 * @license http://opensource.org/licenses/bsd-license.php BSD
13 *
14 * @version $Id: Dir.php 2926 2007-11-09 16:25:44Z pmjones $
15 *
16 */
28 /**
29 *
30 * Hack for [[php::is_dir() | ]] that checks the include_path.
31 *
32 * Use this to see if a directory exists anywhere in the include_path.
ContentBuilderTest.java (https://gitlab.com/github-cloud-corp/email-ext-plugin) Java · 183 lines
58 build = mock(AbstractBuild.class);
59 when(build.getEnvironment(listener)).thenReturn(new EnvVars());
60 }
61 };
151 EnvVars testVars = new EnvVars();
152 testVars.put("FOO", "BAR");
153 when(build.getEnvironment(listener)).thenReturn(testVars);
155 assertEquals("\\BAR", ContentBuilder.transformText("\\${ENV, var=\"FOO\"}", publisher, build, listener));
Loader.php (https://gitlab.com/madwanz64/laravel) PHP · 255 lines
1 <?php
3 namespace Dotenv;
6 use Dotenv\Exception\InvalidPathException;
7 use Dotenv\Regex\Regex;
8 use PhpOption\Option;
10 /**
141 * @param string $filePath
142 *
143 * @return \PhpOption\Option
144 */
145 private static function readFromFile($filePath)
195 '/\${([a-zA-Z0-9_.]+)}/',
196 function (array $matches) {
197 return Option::fromValue($this->getEnvironmentVariable($matches[1]))
198 ->getOrElse($matches[0]);
199 },
typedefs.h (https://bitbucket.org/EaglesBlood_Development/eb_grouper.git) C Header · 312 lines
5 * agreement governing use of this software, this software is licensed to you
6 * under the terms of the GNU General Public License version 2 (the "GPL"),
7 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
8 * following added to such license:
9 *
76 #if !defined(LINUX_HYBRID) || defined(LINUX_PORT)
77 #define TYPEDEF_UINT
78 #ifndef TARGETENV_android
79 #define TYPEDEF_USHORT
80 #define TYPEDEF_ULONG
class.yaf-request-http.html (https://github.com/haman29/dot_files.git) HTML · 403 lines
10 <div class="next" style="text-align: right; float: right;"><a href="yaf-request-http.clone.html">Yaf_Request_Http::__clone</a></div>
11 <div class="up"><a href="book.yaf.html">Yaf</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13 </div><hr /><div id="class.yaf-request-http" class="reference">
102 )</div>
103 <div class="methodsynopsis dc-description">
104 <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="yaf-request-abstract.getenv.html" class="methodname">Yaf_Request_Abstract::getEnv</a></span>
105 ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$name</tt></span>
106 [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$default</tt></span>
400 <div class="next" style="text-align: right; float: right;"><a href="yaf-request-http.clone.html">Yaf_Request_Http::__clone</a></div>
401 <div class="up"><a href="book.yaf.html">Yaf</a></div>
402 <div class="home"><a href="index.html">PHP Manual</a></div>
403 </div></body></html>
SmsValidation.php (https://github.com/eschabell/openshift-zendframework.git) PHP · 193 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: SmsValidation.php 23775 2011-03-01 17:25:24Z ralph $
21 */
24 * @see Zend_Service_DeveloperGarden_Client_ClientAbstract
25 */
26 require_once 'Zend/Service/DeveloperGarden/Client/ClientAbstract.php';
28 /**
29 * @see Zend_Service_DeveloperGarden_Request_SmsValidation_GetValidatedNumbers
30 */
31 require_once 'Zend/Service/DeveloperGarden/Request/SmsValidation/GetValidatedNumbers.php';
33 /**
Smtp.php (https://github.com/tmccormi/openemr.git) PHP · 381 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
99 * @return Envelope|null
100 */
101 public function getEnvelope()
102 {
103 return $this->envelope;
271 protected function prepareFromAddress(Message $message)
272 {
273 if ($this->getEnvelope() && $this->getEnvelope()->getFrom()) {
274 return $this->getEnvelope()->getFrom();
302 protected function prepareRecipients(Message $message)
303 {
304 if ($this->getEnvelope() && $this->getEnvelope()->getTo()) {
305 return (array) $this->getEnvelope()->getTo();
ConfigTest.php (https://gitlab.com/vannh/portal_training) PHP · 207 lines
1 <?php
3 namespace Test\Phinx\Config;
36 {
37 $config = new \Phinx\Config\Config($this->getConfigArray());
38 $this->assertEquals(2, sizeof($config->getEnvironments()));
39 $this->assertArrayHasKey('testing', $config->getEnvironments());
105 {
106 $path = __DIR__ . '/_files';
107 $config = \Phinx\Config\Config::fromPhp($path . '/valid_config.php');
108 $this->assertEquals('dev', $config->getDefaultEnvironment());
109 }
115 {
116 $path = __DIR__ . '/_files';
117 $config = \Phinx\Config\Config::fromPhp($path . '/config_without_array.php');
118 $this->assertEquals('dev', $config->getDefaultEnvironment());
119 }
SendSms.php (https://github.com/leerbag/zf2.git) PHP · 135 lines
1 <?php
2 /**
3 * Zend Framework
75 public function createSms($number = null, $message = null, $originator = null, $account = null)
76 {
77 $request = new Zend_Service_DeveloperGarden_Request_SendSms_SendSMS($this->getEnvironment());
78 $request->setNumber($number)
79 ->setMessage($message)
96 public function createFlashSms($number = null, $message = null, $originator = null, $account = null)
97 {
98 $request = new Zend_Service_DeveloperGarden_Request_SendSms_SendFlashSMS($this->getEnvironment());
99 $request->setNumber($number)
100 ->setMessage($message)
class.Mailer.php (https://github.com/billfox3/ThinkUp.git) PHP · 88 lines
1 <?php
2 /**
3 *
4 * ThinkUp/webapp/_lib/model/class.Mailer.php
5 *
6 * Copyright (c) 2009-2011 Gina Trapani
47 $mail_header = "From: \"{$app_title}\" <notifications@{$host}>\r\n";
48 $mail_header .= "X-Mailer: PHP/".phpversion();
50 //don't send email when running tests, just write it to the filesystem for assertions
51 if ((isset($_SESSION["MODE"]) && $_SESSION["MODE"] == "TESTS") || getenv("MODE")=="TESTS") {
52 $test_email = THINKUP_WEBAPP_PATH . '_lib/view/compiled_view' . Mailer::EMAIL;
53 $fp = fopen($test_email, 'w');
typedefs.h (https://bitbucket.org/cyanogenmod/android_kernel_sony_msm8x60.git) C Header · 309 lines
5 * agreement governing use of this software, this software is licensed to you
6 * under the terms of the GNU General Public License version 2 (the "GPL"),
7 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
8 * following added to such license:
9 *
76 #if !defined(LINUX_HYBRID) || defined(LINUX_PORT)
77 #define TYPEDEF_UINT
78 #ifndef TARGETENV_android
79 #define TYPEDEF_USHORT
80 #define TYPEDEF_ULONG
template.php (https://github.com/rickogden/joind.in.git) PHP · 84 lines
1 <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
2 /*
3 |--------------------------------------------------------------------------
20 | Typically this file will contain a full XHTML skeleton that outputs your
21 | full template or region per region. Include the file extension if other
22 | than ".php"
23 | ['regions'] Places within the template where your content may land.
24 | You may also include default markup, wrappers and attributes here
59 $default_template='template2';
60 if(function_exists('getenv') && $key=strtolower(getenv('USE_KEY'))){
61 $path=APPPATH.'views/custom_templates/'.$key.'/_template_'.$key.'.php';
62 if(is_file($path)){
63 $default_template='custom_templates/'.$key.'/_template_'.$key.'.php';
64 }
65 }
zuma_pbb_mbox.c (https://gitlab.com/pine64-android/brandy) C · 208 lines
lua.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 235 lines
MiscUtilities.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1332 lines
✨ Summary
This Java code is part of a file system utility, specifically handling environment variable expansion and compression. It maps certain directory prefixes to their corresponding environment variables, compressing paths by replacing them with these variables. The VarCompressor
class uses a reverse mapping to quickly replace paths with their prefixed versions, allowing for efficient expansion in the future.
This Java code is part of a file system utility, specifically handling environment variable expansion and compression. It maps certain directory prefixes to their corresponding environment variables, compressing paths by replacing them with these variables. The VarCompressor
class uses a reverse mapping to quickly replace paths with their prefixed versions, allowing for efficient expansion in the future.
php.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 2590 lines
11 </PROPS>
12 <RULES IGNORE_CASE="TRUE">
13 <SPAN TYPE="MARKUP" DELEGATE="PHP">
14 <BEGIN><?php</BEGIN>
16 </SPAN>
18 <SPAN TYPE="MARKUP" DELEGATE="PHP">
19 <BEGIN><?</BEGIN>
20 <END>?></END>
21 </SPAN>
23 <SPAN TYPE="MARKUP" DELEGATE="PHP">
24 <BEGIN><%=</BEGIN>
25 <END>%></END>
65 <RULES SET="TAGS" DEFAULT="MARKUP">
66 <SPAN TYPE="MARKUP" DELEGATE="PHP">
67 <BEGIN><?php</BEGIN>
NGContext.java
(https://bitbucket.org/kotarak/vimclojure/)
Java · 262 lines
✨ Summary
This Java class, NGContext, represents a connection from a NailGun client to a server. It provides information about the client’s environment, address, and command line arguments, as well as methods for sending exit commands and asserting the client’s location. The class is designed to be used in conjunction with the NailGun server and its associated classes.
This Java class, NGContext, represents a connection from a NailGun client to a server. It provides information about the client’s environment, address, and command line arguments, as well as methods for sending exit commands and asserting the client’s location. The class is designed to be used in conjunction with the NailGun server and its associated classes.
SystemShell.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1202 lines
✨ Summary
This Java code defines a SystemShell class that provides functionality for interacting with the operating system, including navigating directories and executing commands. It uses a ConsoleState singleton to store information about the current process and directory stack. The code also includes methods for changing drives, setting the current directory, and handling errors.
This Java code defines a SystemShell class that provides functionality for interacting with the operating system, including navigating directories and executing commands. It uses a ConsoleState singleton to store information about the current process and directory stack. The code also includes methods for changing drives, setting the current directory, and handling errors.
scheme.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 237 lines
cfe_api.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 123 lines
✨ Summary
This C header file provides an interface for interacting with a Broadcom Common Firmware Environment (CFE). It defines constants, data structures, and function prototypes for tasks such as memory management, CPU control, environment enumeration, and device access. The functions allow applications to communicate with the CFE, which is used in various Broadcom devices.
This C header file provides an interface for interacting with a Broadcom Common Firmware Environment (CFE). It defines constants, data structures, and function prototypes for tasks such as memory management, CPU control, environment enumeration, and device access. The functions allow applications to communicate with the CFE, which is used in various Broadcom devices.
i4gl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 665 lines
cl.vim (https://bitbucket.org/ultra_iter/vim-qt.git) Vim Script · 113 lines
69 syn keyword clReserved ERROR EXIT INTERRUPT LOCKED LREPLY MODE MCOL MLINE MREPLY NULL REPLY V1 V2 V3 V4 V5 V6 V7 V8 V9 ZERO BYPASS GOING_BACK AAUTO ABORT ABORT ALIGN BIGE CONVERT FNUM GOBACK HANGUP JUSTIFY NEXIT OUTPUT RAUTO RAWDISPLAY RAWPRINT REPEAT SKIP TAB TRIM LCOUNT PCOUNT PLINES SLINES SCOLS MATCH LMATCH
71 syn keyword clFunction asc asize chr name random slen srandom day getarg getcgi getenv lcase scat sconv sdel skey smult srep substr sword trim ucase match
73 syn keyword clStatement clear clear_eol clear_eos close copy create unique with where empty define define ldefine delay_form delete escape exit_block exit_do exit_process field fork format get getfile getnext getprev goto head join maintain message no_join on_eop on_key on_exit on_delete openin openout openapp pause popenin popenout popenio print put range read redisplay refresh restart_block screen select sleep text unlock write and not or do
unix.mli
(git://github.com/multani/ocaml-mirror.git)
OCaml · 1338 lines
✨ Summary
This OCaml code provides a set of functions for interacting with terminals and file descriptors, including setting terminal attributes, flushing buffers, sending break conditions, and controlling flow actions. It also includes functions for managing sessions and detaching processes from their controlling terminals. The code is likely part of an operating system or low-level library.
This OCaml code provides a set of functions for interacting with terminals and file descriptors, including setting terminal attributes, flushing buffers, sending break conditions, and controlling flow actions. It also includes functions for managing sessions and detaching processes from their controlling terminals. The code is likely part of an operating system or low-level library.
powerdynamo.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 465 lines
process_util_unittest.cc
(git://github.com/zpao/v8monkey.git)
C++ · 274 lines
✨ Summary
This C++ code is a collection of tests for various process utilities, including file descriptor management and command line execution. It checks the behavior of functions like GetMaxFilesOpenInProcess
, FDRemapping
, and GetAppOutput
under different operating system platforms (Windows and POSIX). The tests verify that these utilities work correctly in various scenarios, such as handling file descriptors, command line arguments, and output redirection.
This C++ code is a collection of tests for various process utilities, including file descriptor management and command line execution. It checks the behavior of functions like GetMaxFilesOpenInProcess
, FDRemapping
, and GetAppOutput
under different operating system platforms (Windows and POSIX). The tests verify that these utilities work correctly in various scenarios, such as handling file descriptors, command line arguments, and output redirection.