170,10 → 170,22 |
|
function replaceBBCode($str) |
{ |
$newstr = str_replace("<", "[", $str); |
/*$newstrarray = explode("\n", $str); |
$newstr = ""; |
foreach ($newstrarray as $line) |
{ |
if ($line == "\n" || $line == " \n" || $line == "\n " || $line == "\n\r") |
{ |
$line = "</p><p>"; |
} |
|
$newstr .= ($line . "\n"); |
}*/ |
|
$newstr = $str; |
$newstr = str_replace("<", "[", $newstr); |
$newstr = str_replace(">", "]", $newstr); |
$newstr = str_replace("\n", '</p><p>', $newstr); |
//$newstr = str_replace("\n", '<br />', $newstr); |
$newstr = str_replace("\n", "</p><p>", $newstr); |
$newstr = str_replace("\\'", "'", $newstr); |
$newstr = str_replace("\\\"",'"', $newstr); |
$newstr = str_replace(' ', ' ', $newstr); |
534,6 → 546,7 |
public $title; |
public $description; |
|
|
public $logoURL; |
public $downloadURL; |
public $websiteURL; |