Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

marcelomdasilva

solucionar problema Deprecated: Function set_magic_quotes_runtime() is

Recommended Posts

Olá,

 

troquei de servidor com PHP versão:

Versão PHP 5.2.17

 

para PHP versão:

Versão PHP 5.3.26

 

e começou a aparecer essa mensagem no topo da página:

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/xxxxxxx/public_html/xxxxxx/include/common.php on line 30

o código a partir da linha 30 é esse postado logo abaixo veja, e se puderem me ajudar na correção agradeço muitissimo, obrigado.

 

set_magic_quotes_runtime(0);

/**
* Extremely reduced kernel class
* This class should not really be defined in this file, but it wasn't worth including an entire
* file for those two functions.
* Few notes:
* - modules should use this class methods to generate physical paths/URIs (the ones which do not conform
* will perform badly when true URL rewriting is implemented)
*/
class xos_kernel_Xoops2 {
var $paths = array(
'www' => array(), 'modules' => array(), 'themes' => array(),
);
function xos_kernel_Xoops2() {
$this->paths['www'] = array( XOOPS_ROOT_PATH, XOOPS_URL );
$this->paths['modules'] = array( XOOPS_ROOT_PATH . '/modules', XOOPS_URL . '/modules' );
$this->paths['themes'] = array( XOOPS_ROOT_PATH . '/themes', XOOPS_URL . '/themes' );
}
/**
* Convert a XOOPS path to a physical one
*/
function path( $url, $virtual = false ) {
$path = '';
@list( $root, $path ) = explode( '/', $url, 2 );
if ( !isset( $this->paths[$root] ) ) {
list( $root, $path ) = array( 'www', $url );
}
if ( !$virtual ) { // Returns a physical path
return $this->paths[$root][0] . '/' . $path;
}
return !isset( $this->paths[$root][1] ) ? '' : ( $this->paths[$root][1] . '/' . $path );
}
/**
* Convert a XOOPS path to an URL
*/
function url( $url ) {
return ( false !== strpos( $url, '://' ) ? $url : $this->path( $url, true ) );
}
/**
* Build an URL with the specified request params
*/
function buildUrl( $url, $params = array() ) {
if ( $url == '.' ) {
$url = $_SERVER['REQUEST_URI'];
}
$split = explode( '?', $url );
if ( count($split) > 1 ) {
list( $url, $query ) = $split;
parse_str( $query, $query );
$params = array_merge( $query, $params );
}
if ( !empty( $params ) ) {
foreach ( $params as $k => $v ) {
$params[$k] = $k . '=' . rawurlencode($v);
}
$url .= '?' . implode( '&', $params );
}
return $url;
}




}
global $xoops;

 

Compartilhar este post


Link para o post
Compartilhar em outros sites

Amigo, não sei como te agradecer, resolveu na hora, entre tanto também notei que essa mudança de servidor fez com que tudo que esta escrito na página fica-se com problema de acentuação exemplo:

 

Novos Usuários

 

agora ficou:

 

Novos usuários

 

>

 

Tópicos de Notícias

 

agora ficou:

 

Tópicos de Notícias

 

 

 

Como devo proceder para corrigir isso, pois tudo que estava escrito no site inteiro ficou com esse problema de acentuação.

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.