View httpget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
$scheme='tcp'; | |
$host='www.kernel.org'; | |
$port=80; | |
$path='/'; | |
if(isset($argv[1])) { | |
$parsedUrl=parse_url($argv[1]); |
View Application::resolveActiveLanguage.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Returns the active language. | |
* @return string the locale. | |
*/ | |
public function resolveActiveLanguage() | |
{ | |
$user = user(); | |
$matches = array(); | |
if ($user->hasState('__locale')) { |