Lexo Опубликовано 10 Февраля 2005 Жалоба Поделиться Опубликовано 10 Февраля 2005 Днем все работало, вечером при запуске любой страницы форума выдает:Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/Homana/Homana.alfaspace.net/forums/sources/functions.php on line 947 ( return str_replace( '\\', "\\\\", $this->txt_stripslashes($t)) поставлены:-PortalSystem2_1_1-INVISION.GALLERY.v1.3-"Daily Birthday Autogreeter" /*-------------------------------------------------------------------------*/ // txt_stripslashes // ------------------ // Make Big5 safe - only strip if not already... /*-------------------------------------------------------------------------*/ function txt_stripslashes($t) { if ( $this->get_magic_quotes ) { $t = stripslashes($t); } return $t; } /*-------------------------------------------------------------------------*/ // txt_raw2form // ------------------ // makes _POST text safe for text areas /*-------------------------------------------------------------------------*/ function txt_raw2form($t="") { $t = str_replace( '$', "$", $t); if ( get_magic_quotes_gpc() ) { $t = stripslashes($t); } $t = preg_replace( "/\\\(?!&#|?#)/", "\", $t ); return $t; } /*-------------------------------------------------------------------------*/ // Safe Slashes - ensures slashes are saved correctly /*-------------------------------------------------------------------------*/ function txt_safeslashes($t="") { return str_replace( '\\', "\\\\", $this->txt_stripslashes($t)); } /*-------------------------------------------------------------------------*/ // txt_htmlspecialchars // ------------------ // Custom version of htmlspecialchars to take into account mb chars /*-------------------------------------------------------------------------*/ function txt_htmlspecialchars($t="") { // Use forward look up to only convert & not { $t = preg_replace("/&(?!#[0-9]+;)/s", '&', $t ); $t = str_replace( "<", "<" , $t ); $t = str_replace( ">", ">" , $t ); $t = str_replace( '"', """, $t ); $t = str_replace( "'", ''', $t ); return $t; // A nice cup of? } /*-------------------------------------------------------------------------*/ // txt_UNhtmlspecialchars // ------------------ // Undoes what the above function does. Yes. /*-------------------------------------------------------------------------*/ function txt_UNhtmlspecialchars($t="") { $t = str_replace( "&" , "&", $t ); $t = str_replace( "<" , "<", $t ); $t = str_replace( ">" , ">", $t ); $t = str_replace( """, '"', $t ); $t = str_replace( "'", "'", $t ); return $t; } У кого какие мысли на этот счет... Цитата Ссылка на комментарий Поделиться на других сайтах Прочее
0 Lexo Опубликовано 11 Февраля 2005 Автор Жалоба Поделиться Опубликовано 11 Февраля 2005 Уже все нормально ! Цитата Ссылка на комментарий Поделиться на других сайтах Прочее
Вопрос
Lexo
Днем все работало, вечером при запуске любой страницы форума выдает:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/Homana/Homana.alfaspace.net/forums/sources/functions.php on line 947
( return str_replace( '\\', "\\\\", $this->txt_stripslashes($t))
поставлены:
-PortalSystem2_1_1
-INVISION.GALLERY.v1.3
-"Daily Birthday Autogreeter"
У кого какие мысли на этот счет...
Ссылка на комментарий
Поделиться на других сайтах
1 ответ на этот вопрос
Рекомендуемые сообщения
Присоединиться к обсуждению
Вы можете ответить сейчас, а зарегистрироваться позже. Если у вас уже есть аккаунт, войдите, чтобы ответить от своего имени.