Changeset 1695 in ExiteCMS for trunk/includes/core_functions.php
- Timestamp:
- 08/26/08 08:23:05 (4 years ago)
- File:
-
- 1 edited
-
trunk/includes/core_functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/core_functions.php
r1681 r1695 213 213 214 214 // check for upgrades in progress. 215 if (!eregi("upgrade.php", $_SERVER['PHP_SELF'])) { 215 // when a form has been posted, skip this and finish the POST! 216 if (count($_POST)==0 && !eregi("upgrade.php", $_SERVER['PHP_SELF'])) { 216 217 217 218 include PATH_ADMIN."upgrade.php"; … … 636 637 $text = preg_replace('#\r\n\[\*\]#si', '<li>', $text); 637 638 639 // bbcode tables 640 $text = preg_replace('#\[table\]#si', '<table align="left" valign="top" class="tbl-border">', $text); 641 $text = preg_replace('#\[\/table\]#si', '</table>', $text); 642 $text = preg_replace('#\[td\]#si', '<td class="tbl1">', $text); 643 $text = preg_replace('#\[\/td\]#si', '</td>', $text); 644 $text = preg_replace('#\[tr\]#si', '<tr>', $text); 645 $text = preg_replace('#\[\/tr\]#si', '</tr>', $text); 646 638 647 //get rid of line breaks after a list item, for better formatting 639 648 $text=str_replace("</li><br />","</li>",$text); … … 693 702 } 694 703 695 // quote & code blocks704 // quote & code blocks 696 705 $text = preg_replace('#\[quote=([\r\n]*)(.*?)\]#si', '<b>\2 '.$locale['199'].':</b><br />[quote]', $text); 697 706 $qcount = substr_count(strtolower($text), "[quote]"); $ccount = substr_count(strtolower($text), "[code]");
Note: See TracChangeset
for help on using the changeset viewer.
