Ir para conteúdo

POWERED BY:

Arquivado

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

gamediguim

Erro no MYSQL

Recommended Posts

Deprecated: Function set_magic_quotes_runtime() is deprecated in [/size]/srv/disk10/1955113/www/getviews.dx.am/include/config.php on line [/size]2

 

ALGUEM PODE ME AJUDAR ?

 

 

NOVO ERRO

Parse error: syntax error, unexpected 'ini_set' (T_STRING) in [/size]/srv/disk10/1955113/www/getviews.dx.am/include/config.php on line [/size]3

 

 

<?php

 

set_magic_quotes_runtime(0);

 

ini_set('display_errors', 0)

define('DEBUG', false);

if ( DEBUG ) {

error_reporting(E_ALL);

ini_set('display_errors', 0);

}

 

require 'config.local.php';

$config['BASE_DIR'] = dirname(dirname(__FILE__));

$config['TMP_DIR'] = $config['BASE_DIR']. '/tmp';

$config['LOG_DIR'] = $config['TMP_DIR']. '/logs';

$config['IMG_DIR'] = $config['BASE_DIR'].'/images';

$config['IMG_URL'] = $config['BASE_URL'].'/images';

$config['PHO_DIR'] = $config['BASE_DIR'].'/photo';

$config['PHO_URL'] = $config['BASE_URL'].'/photo';

$config['VDO_DIR'] = $config['BASE_DIR'].'/video';

$config['VDO_URL'] = $config['BASE_URL'].'/video';

$config['ADO_DIR'] = $config['BASE_DIR'].'/audio';

$config['ADO_URL'] = $config['BASE_URL'].'/audio';

$config['FLVDO_DIR'] = $config['BASE_DIR'].'/flvideo';

$config['FLVDO_URL'] = $config['BASE_URL'].'/flvideo';

$config['TMB_DIR'] = $config['BASE_DIR'].'/thumb';

$config['TMB_URL'] = $config['BASE_URL'].'/thumb';

 

require($config['BASE_DIR']. '/include/security.php');

require($config['BASE_DIR']. '/classes/class.inputfilter.php');

require($config['BASE_DIR']. '/include/smarty/libs/Smarty.class.php');

require($config['BASE_DIR']. '/classes/mysmarty.class.php');

require($config['BASE_DIR']. '/include/adodb/adodb.inc.php');

require($config['BASE_DIR']. '/include/phpmailer/class.phpmailer.php');

 

$conn = &ADONewConnection($DBTYPE);

if ( !$conn->Connect($DBHOST, $DBUSER, $DBPASSWORD, $DBNAME) ) {

echo 'Could not connect to mysql! Please check your database settings!';

die();

}

$conn->execute("SET NAMES 'utf8'");

 

$sql = "SELECT * from sconfig";

$rsc = $conn->Execute($sql);

if ( $rsc ) {

while(!$rsc->EOF) {

$field = $rsc->fields['soption'];

$config[$field] = $rsc->fields['svalue'];

STemplate::assign($field, $config[$field]);

@$rsc->MoveNext();

}

}

 

if ( $config['gzip_encoding'] == 1 ) {

ob_start();

ob_implicit_flush(0);

}

 

ini_set('session.name', 'CLIPSHARE');

ini_set('session.save_handler', 'files');

ini_set('session.use_cookies', 1);

ini_set('session.use_only_cookies', 0);

ini_set('session.save_path', $config['BASE_DIR']. '/tmp/sessions');

ini_set('session.gc_maxlifetime', intval($config['session_lifetime']));

//session_set_cookie_params( 0, '/', '.domain.com');

session_start();

 

disableRegisterGlobals();

 

$filterObj = new InputFilter(NULL, NULL, 0, 0, 1);

$err = ( isset($_GET['err']) ) ? $filterObj->process(trim($_GET['err'])) : NULL;

$msg = ( isset($_GET['msg']) ) ? $filterObj->process(trim($_GET['msg'])) : NULL;

if ( isset($_SESSION['verification_sent']) ) {

$msg = $filterObj->process($_SESSION['verification_sent']);

unset($_SESSION['verification_sent']);

}

 

require $config['BASE_DIR']. '/include/language.php';

if ( !isset($_SESSION['language']) ) {

$_SESSION['language'] = $config['language'];

}

 

if ( $config['multilanguage'] == '1' ) {

if ( isset($_POST['session_language']) && strlen($_POST['session_language']) == 5 ) {

$language = trim($_POST['session_language']);

$language_dir = $config['BASE_DIR']. '/language/' .$language;

if ( file_exists($language_dir) && is_dir($language_dir) ) {

$_SESSION['language'] = trim($_POST['session_language']);

}

}

}

 

include $config['BASE_DIR']. '/language/' .$_SESSION['language']. '/global.lang.php';

include $config['BASE_DIR']. '/language/' .$_SESSION['language']. '/menu.lang.php';

 

$user_ip = ( isset($_SERVER['REMOTE_ADDR']) && long2ip(ip2long($_SERVER['REMOTE_ADDR'])) ) ? $_SERVER['REMOTE_ADDR'] : NULL;

if ( isset($_SESSION['UID']) && is_numeric($_SESSION['UID']) ) {

$sql = "UPDATE signup SET user_ip = '" .$user_ip. "' WHERE UID = '" .mysql_real_escape_string($_SESSION['UID']). "' LIMIT 1";

$conn->execute($sql);

$sql = "REPLACE INTO users_online VALUES (" .intval($_SESSION['UID']). ", " .time(). ")";

$conn->execute($sql);

}

 

if ( !isset($_SESSION['UID']) ) {

require $config['BASE_DIR']. '/classes/remember.class.php';

CRemember::check();

}

 

if ( $user_ip ) {

$sql = "SELECT ban_id FROM bans WHERE ban_ip = '" .mysql_real_escape_string($user_ip). "' LIMIT 1";

$conn->execute($sql);

if ( $conn->Affected_Rows() > 0 && !$_SESSION['banned'] == '1' ) {

$msg = 'You are banned from this site!';

$_SESSION['banned'] = '1';

session_write_close();

header('Location: ' .$config['BASE_URL']. '?msg=' .$msg);

die();

}

}

 

STemplate::setCompileDir($config['BASE_DIR']."/cache/templates_c");

STemplate::setTplDir($config['BASE_DIR']."/templates");

STemplate::assign('bgcolor', '#E8E8E8');

STemplate::assign('BASE_URL', $config['BASE_URL']);

STemplate::assign('BASE_DIR', $config['BASE_DIR']);

STemplate::assign('IMG_URL', $config['IMG_URL']);

STemplate::assign('baseurl', $config['BASE_URL']);

STemplate::assign('basedir', $config['BASE_DIR']);

STemplate::assign('imgurl', $config['IMG_URL']);

STemplate::assign('vdourl', $config['VDO_URL']);

STemplate::assign('adourl', $config['ADO_URL']);

STemplate::assign('flvdourl', $config['FLVDO_URL']);

STemplate::assign('tmburl', $config['TMB_URL']);

STemplate::assign('photourl', $config['PHO_URL']);

STemplate::assign('captcha', $config['captcha']);

STemplate::assign('downloads', $config['downloads']);

STemplate::assign('site_name', $config['site_name']);

?>

 

 

 

 

ALGUUEM ME AJUDA POR FAVOR

Compartilhar este post


Link para o post
Compartilhar em outros sites

A primeira mensagem informa que é o método é obsoleto. o segundo informa que a sintaxe do método informado está errada.

 

Você deveria postar essa dúvida no fórum de PHP.

Compartilhar este post


Link para o post
Compartilhar em outros sites

VLW OLHA AGORA ESSE ERRO

Warning: mysql_connect(): No such file or directory in /srv/disk10/1955113/www/getviews.dx.am/inc/libs/MySQL_connection.php on line 36

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.