This file contains hidden or 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 | |
class cli { | |
public static $pb_length = 50; | |
public static $pb_start = '['; | |
public static $pb_end = ']'; | |
public static $pb_bg = ' '; | |
public static $pb_fg = '='; | |
public static $pb_head = '>'; |
This file contains hidden or 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 | |
/** | |
* Allow developers to override settings. | |
*/ | |
define('SWEET_ASS_LIVE_SETTINGS_REGEX', '/^(.*)drupalcampaustin.org(:\d+)*$/'); | |
define('SWEET_ASS_STAGE_SETTINGS_REGEX', '/^(dca11\.webchefs\.org|dca11\.dev1\.fourkitchens\.com)(:\d+)*$/'); | |
if (preg_match(SWEET_ASS_LIVE_SETTINGS_REGEX, $_SERVER['HTTP_HOST'], $matches)) { | |
if (file_exists('sites/default/settings.live.php')) { | |
include_once 'sites/default/settings.live.php'; |
This file contains hidden or 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 | |
function ec_dreammail_escape_xml($string) { | |
return htmlentities($string, ENT_QUOTES, 'UTF-8'); | |
} | |
/** | |
* Returns FALSE if there are unsafe characters. | |
*/ | |
function ec_dreammail_sanitize_xml($string) { |