| Name | Size | Mode | Actions |
|---|---|---|---|
| Cache/ | - | 0755 | rm |
| Javascript/ | - | 0755 | rm |
| Session/ | - | 0755 | rm |
| Calendar.php | 15547 | 0644 | editdlrm |
| Cart.php | 16446 | 0644 | editdlrm |
| Driver.php | 8341 | 0644 | editdlrm |
| Email.php | 56197 | 0644 | editdlrm |
| Encrypt.php | 12222 | 0644 | editdlrm |
| Encryption.php | 23608 | 0644 | editdlrm |
| Form_validation.php | 37676 | 0644 | editdlrm |
| Ftp.php | 13834 | 0644 | editdlrm |
| Image_lib.php | 43105 | 0644 | editdlrm |
| index.html | 131 | 0644 | editdlrm |
| Javascript.php | 21002 | 0644 | editdlrm |
| Migration.php | 12435 | 0644 | editdlrm |
| Pagination.php | 16499 | 0644 | editdlrm |
| Parser.php | 5916 | 0644 | editdlrm |
| Profiler.php | 21197 | 0644 | editdlrm |
| Table.php | 12329 | 0644 | editdlrm |
| Trackback.php | 12999 | 0644 | editdlrm |
| Typography.php | 13908 | 0644 | editdlrm |
| Unit_test.php | 9041 | 0644 | editdlrm |
| Upload.php | 31041 | 0644 | editdlrm |
| User_agent.php | 13295 | 0644 | editdlrm |
| Xmlrpc.php | 41226 | 0644 | editdlrm |
| Xmlrpcs.php | 16420 | 0644 | editdlrm |
| Zip.php | 13839 | 0644 | editdlrm |
/home/desid573/public_html/ims2/system/libraries/Typography.php (13908B)
and
tags within them.
*
* @var string
*/
public $skip_elements = 'p|pre|ol|ul|dl|object|table|h\d';
/**
* Tags we want the parser to completely ignore when splitting the string.
*
* @var string
*/
public $inline_elements = 'a|abbr|acronym|b|bdo|big|br|button|cite|code|del|dfn|em|i|img|ins|input|label|map|kbd|q|samp|select|small|span|strong|sub|sup|textarea|tt|var';
/**
* array of block level elements that require inner content to be within another block level element
*
* @var array
*/
public $inner_block_required = array('blockquote');
/**
* the last block element parsed
*
* @var string
*/
public $last_block_element = '';
/**
* whether or not to protect quotes within { curly braces }
*
* @var bool
*/
public $protect_braced_quotes = FALSE;
/**
* Auto Typography
*
* This function converts text, making it typographically correct:
* - Converts double spaces into paragraphs.
* - Converts single line breaks into
tags
* - Converts single and double quotes into correctly facing curly quote entities.
* - Converts three dots into ellipsis.
* - Converts double dashes into em-dashes.
* - Converts two spaces into entities
*
* @param string
* @param bool whether to reduce more then two consecutive newlines to two
* @return string
*/
public function auto_typography($str, $reduce_linebreaks = FALSE)
{
if ($str === '')
{
return '';
}
// Standardize Newlines to make matching easier
if (strpos($str, "\r") !== FALSE)
{
$str = str_replace(array("\r\n", "\r"), "\n", $str);
}
// Reduce line breaks. If there are more than two consecutive linebreaks
// we'll compress them down to a maximum of two since there's no benefit to more.
if ($reduce_linebreaks === TRUE)
{
$str = preg_replace("/\n\n+/", "\n\n", $str);
}
// HTML comment tags don't conform to patterns of normal tags, so pull them out separately, only if needed
$html_comments = array();
if (strpos($str, '