Changeset 1695 in ExiteCMS for trunk/includes/core_functions.php


Ignore:
Timestamp:
08/26/08 08:23:05 (4 years ago)
Author:
hverton
Message:

missed for some reason in the last commits?!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core_functions.php

    r1681 r1695  
    213213 
    214214// 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! 
     216if (count($_POST)==0 && !eregi("upgrade.php", $_SERVER['PHP_SELF'])) { 
    216217 
    217218    include PATH_ADMIN."upgrade.php"; 
     
    636637    $text = preg_replace('#\r\n\[\*\]#si', '<li>', $text); 
    637638 
     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 
    638647    //get rid of line breaks after a list item, for better formatting 
    639648    $text=str_replace("</li><br />","</li>",$text); 
     
    693702    } 
    694703 
    695     // quote    & code blocks 
     704    // quote & code blocks 
    696705    $text = preg_replace('#\[quote=([\r\n]*)(.*?)\]#si', '<b>\2 '.$locale['199'].':</b><br />[quote]', $text); 
    697706    $qcount = substr_count(strtolower($text), "[quote]"); $ccount = substr_count(strtolower($text), "[code]"); 
Note: See TracChangeset for help on using the changeset viewer.