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
location / { | |
try_files $uri $uri/ /index.php?$args; | |
} | |
location /pub { | |
location ~ ^/pub/media/(downloadable|customer|import|theme_customization/.*\.xml) { | |
deny all; | |
} | |
alias $MAGE_ROOT/pub; |
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
DELIMITER $$ | |
DROP FUNCTION IF EXISTS `HTML_ENCODE`$$ | |
CREATE FUNCTION `HTML_ENCODE`(X TEXT) RETURNS TEXT CHARSET latin1 DETERMINISTIC | |
BEGIN | |
DECLARE TextString TEXT; | |
SET TextString = X ; | |
#quotation mark | |
IF INSTR( X , '"' ) |
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 | |
/** | |
* Copyright © 2013-2017 Magento, Inc. All rights reserved. | |
* See COPYING.txt for license details. | |
*/ | |
namespace Magento\Setup\Module\Di\Code\Reader; | |
class FileClassScanner |
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 | |
namespace Elkarte\Messages\Formatters; | |
class ForumML | |
{ | |
const KNOWN_NODE_TYPES = [ | |
'TEXT' => 1, | |
'NEW_LINE' => 2, | |
'EMPTY_LINE' => 3, |
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 | |
/** | |
* $censor = new Censor($modSettings['censor_vulgar'], $modSettings['censor_proper'], $modSettings); | |
* $censor->censor($message['body']); | |
*/ | |
class Censor | |
{ | |
const WHOLE_WORD = 'censorWholeWord'; |
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
NEXT_TAG_MUST_BE | |
TAGS_ONLY_CONTENT | |
REMOVE_EMPTY | |
PARAM_IS_URL | |
EQUALS_IS_URL | |
NO_PARSE | |
FILTER_CONTENT | |
FILTER_EQUALS | |
FILTER_PARAM | |
BLOCK_LEVEL |
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 | |
final class \BBC\Types\ClosedType | |
{ | |
const HAS_PARAM = false; | |
const HAS_EQUALS = false; | |
const HAS_BEFORE = true; | |
const HAS_AFTER = true; | |
const HAS_CONTENT = false; | |
const PARSE_CONTENT = false; | |
const PARSE_EQUALS = false; |
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 | |
interface RouteInterface { | |
public $regex; | |
public $methods = array(); | |
public $handler; | |
protected $data; | |
/** | |
* @param string|array $method |
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 | |
$message = $parser->parse($message); | |
function captureTrackedContent($message, $code, $pos_padding = 0) | |
{ | |
$start = $pos_padding + $code[Codes::TRACKED_CONTENT]['start']; | |
$end = $pos_padding + isset($code[Codes::TRACKED_CONTENT]['end']) ? $code[Codes::TRACKED_CONTENT]['end'] : strlen($message); | |
$content = substr($message, $start, $end - $start); |
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 | |
abstract class AbstractLogin | |
{ | |
protected $login_cookie = 'MYSITE_LOGIN'; | |
// This is just for mocking. This would be a database request | |
protected $users = [ | |
1 => 'hashed(foopass)', | |
15 => 'hashed(pass)', |
NewerOlder