Merge branch 'master' of https://github.com/redmatrix/redmatrix
This commit is contained in:
commit
6aa159e2ac
@ -413,10 +413,18 @@ function bb2diaspora($Text,$preserve_nl = false, $fordiaspora = true) {
|
|||||||
// Convert it to HTML - don't try oembed
|
// Convert it to HTML - don't try oembed
|
||||||
$Text = bbcode($Text, $preserve_nl, false);
|
$Text = bbcode($Text, $preserve_nl, false);
|
||||||
|
|
||||||
|
// Markdownify does not preserve previously escaped html entities such as <> and &.
|
||||||
|
|
||||||
|
$Text = str_replace(array('<','>','&'),array('&_lt_;','&_gt_;','&_amp_;'),$Text);
|
||||||
|
|
||||||
// Now convert HTML to Markdown
|
// Now convert HTML to Markdown
|
||||||
$md = new Markdownify(false, false, false);
|
$md = new Markdownify(false, false, false);
|
||||||
$Text = $md->parseString($Text);
|
$Text = $md->parseString($Text);
|
||||||
|
|
||||||
|
// It also adds backslashes to our attempt at getting around the html entity preservation for some weird reason.
|
||||||
|
|
||||||
|
$Text = str_replace(array('&\\_lt\\_;','&\\_gt\\_;','&\\_amp\\_;'),array('<','>','&'),$Text);
|
||||||
|
|
||||||
// If the text going into bbcode() has a plain URL in it, i.e.
|
// If the text going into bbcode() has a plain URL in it, i.e.
|
||||||
// with no [url] tags around it, it will come out of parseString()
|
// with no [url] tags around it, it will come out of parseString()
|
||||||
// looking like: <http://url.com>, which gets removed by strip_tags().
|
// looking like: <http://url.com>, which gets removed by strip_tags().
|
||||||
|
@ -1075,9 +1075,9 @@ function list_smilies() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
$icons = array(
|
$icons = array(
|
||||||
'<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-heart.gif" alt="<3" />',
|
'<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-heart.gif" alt="<3" />',
|
||||||
'<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-brokenheart.gif" alt="</3" />',
|
'<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-brokenheart.gif" alt="</3" />',
|
||||||
'<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-brokenheart.gif" alt="<\\3" />',
|
'<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-brokenheart.gif" alt="<\\3" />',
|
||||||
'<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-smile.gif" alt=":-)" />',
|
'<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-smile.gif" alt=":-)" />',
|
||||||
'<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-wink.gif" alt=";-)" />',
|
'<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-wink.gif" alt=";-)" />',
|
||||||
'<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-frown.gif" alt=":-(" />',
|
'<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-frown.gif" alt=":-(" />',
|
||||||
@ -1186,7 +1186,7 @@ function preg_heart($x) {
|
|||||||
|
|
||||||
$t = '';
|
$t = '';
|
||||||
for($cnt = 0; $cnt < strlen($x[1]); $cnt ++)
|
for($cnt = 0; $cnt < strlen($x[1]); $cnt ++)
|
||||||
$t .= '<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-heart.gif" alt="<3" />';
|
$t .= '<img class="smiley" src="' . $a->get_baseurl() . '/images/smiley-heart.gif" alt="<3" />';
|
||||||
|
|
||||||
$r = str_replace($x[0],$t,$x[0]);
|
$r = str_replace($x[0],$t,$x[0]);
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ function appman_post(&$a) {
|
|||||||
|
|
||||||
if($_SESSION['return_url'])
|
if($_SESSION['return_url'])
|
||||||
goaway(z_root() . '/' . $_SESSION['return_url']);
|
goaway(z_root() . '/' . $_SESSION['return_url']);
|
||||||
goaway(z_root() . '/apps/personal');
|
goaway(z_root() . '/apps');
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,8 @@ function apps_content(&$a) {
|
|||||||
else
|
else
|
||||||
$mode = 'list';
|
$mode = 'list';
|
||||||
|
|
||||||
|
$_SESSION['return_url'] = $a->cmd;
|
||||||
|
|
||||||
$apps = array();
|
$apps = array();
|
||||||
|
|
||||||
$syslist = get_system_apps();
|
$syslist = get_system_apps();
|
||||||
|
@ -1 +1 @@
|
|||||||
2015-06-14.1063
|
2015-06-18.1067
|
||||||
|
Reference in New Issue
Block a user