diff options
| author | John Turner <ukgrad89@users.sourceforge.net> | 2009-10-20 18:01:48 +0000 |
|---|---|---|
| committer | John Turner <ukgrad89@users.sourceforge.net> | 2009-10-20 18:01:48 +0000 |
| commit | ca4be8749325aa359085fd4b79c7242cea10c24a (patch) | |
| tree | 672f7565a5bf6b717a36d233d7e7b6977d7217a7 | |
| parent | c26918bd1a80f236decf5b802a21e9900fcc2211 (diff) | |
| download | kernel-ca4be8749325aa359085fd4b79c7242cea10c24a.tar.gz kernel-ca4be8749325aa359085fd4b79c7242cea10c24a.tar.bz2 kernel-ca4be8749325aa359085fd4b79c7242cea10c24a.zip | |
Fixes for Deprecated features in PHP 5.3.x (ereg and split)
| -rw-r--r-- | kernel_lib.php | 4 | ||||
| -rw-r--r-- | smarty_bit/block.bitmodule.php | 4 | ||||
| -rw-r--r-- | smarty_bit/function.formhelp.php | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/kernel_lib.php b/kernel_lib.php index f33fac1..73da23a 100644 --- a/kernel_lib.php +++ b/kernel_lib.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_kernel/kernel_lib.php,v 1.38 2009/04/14 17:51:03 spiderr Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_kernel/kernel_lib.php,v 1.39 2009/10/20 18:01:48 ukgrad89 Exp $ * @package kernel * @subpackage functions */ @@ -157,7 +157,7 @@ function mkdir_p( $pTarget, $pPerms = 0755 ) { $pTarget = "/$pTarget"; } - if( ereg( '\.\.', $pTarget )) { + if( preg_match( '#\.\.#', $pTarget )) { bitdebug( "mkdir_p() - We don't allow '..' in path for security reasons: $pTarget" ); return FALSE; } diff --git a/smarty_bit/block.bitmodule.php b/smarty_bit/block.bitmodule.php index b4ebc27..321def8 100644 --- a/smarty_bit/block.bitmodule.php +++ b/smarty_bit/block.bitmodule.php @@ -4,7 +4,7 @@ * @package Smarty * @subpackage plugins */ -// $Header: /cvsroot/bitweaver/_bit_kernel/smarty_bit/block.bitmodule.php,v 1.7 2008/05/18 05:48:34 laetzer Exp $ +// $Header: /cvsroot/bitweaver/_bit_kernel/smarty_bit/block.bitmodule.php,v 1.8 2009/10/20 18:01:48 ukgrad89 Exp $ /** * \brief Smarty {bitmodule}{/bitmodule} block handler * @@ -38,7 +38,7 @@ function smarty_block_bitmodule( $pParams, $pContent, &$gBitSmarty) { // } // if( empty( $pParams['name'] )) { -// $pParams['name'] = ereg_replace( "[^-_a-zA-Z0-9]", "", $pParams['title'] ); +// $pParams['name'] = preg_replace( "/[^-_a-zA-Z0-9]/", "", $pParams['title'] ); // } // this is outdated and will not work with our serialised cookies - xing diff --git a/smarty_bit/function.formhelp.php b/smarty_bit/function.formhelp.php index edc913c..f055104 100644 --- a/smarty_bit/function.formhelp.php +++ b/smarty_bit/function.formhelp.php @@ -132,7 +132,7 @@ function smarty_function_formhelp( $pParams, &$gBitSmarty ) { $gBitSmarty->assign( 'content', $content ); $gBitSmarty->assign( 'closebutton', TRUE ); $text = $gBitSmarty->fetch('bitpackage:kernel/popup_box.tpl'); - $text = ereg_replace( '"',"'",$text ); + $text = preg_replace( '/"/',"'",$text ); $popup = array( 'trigger' => 'onclick', |
