Ir para conteúdo

[Gesior2012] Painel de Acessos.


Mudrock

Posts Recomendados

 

Vish' kkkkk

 

troca o

if($isLogged)
Por

if($ide->isLogged())
Ficando assim.

#################################################################################################
################### SISTEMA DE ACESSOS ##########################
#################################################################################################
if($ide->isLogged()) { $accountName = $_SESSION['name']; } else { $accountName = 'NO LOGOUT';}
$ip = $_SERVER['REMOTE_ADDR']; $data = date("d-m-y"); $hora = date("H-i-s");
$myFile = './acessos/'. $data .'.txt';
$fh = fopen($myFile, 'a') or die('Erro ao abrir o arquivo.');
$url = $_SERVER['HTTP_REFERER'];

$stringData = "$hora (hour) ------ IP:{$ip} ----- $accountName ----- $url \n";

fwrite($fh, $stringData);
fclose($fh);

#################################### END ########################################################
Editado por Akzs
Link para o comentário
Compartilhar em outros sites

huehueheu se liga agora

 

 

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: ide

Filename: libraries/Loader.php

Line Number: 1087

Fatal error: Call to a member function isLogged() on a non-object in /home/u688229712/public_html/system/libraries/Loader.php on line 1087

Link para o comentário
Compartilhar em outros sites

o Problema é que nao sei a variavel que mostra que ta logado rs, de qualquer modo voce estando logado esta aparecendo a sua conta?

Link para o comentário
Compartilhar em outros sites

o Problema é que nao sei a variavel que mostra que ta logado rs, de qualquer modo voce estando logado esta aparecendo a sua conta?

 

não nem cria o arquivo.txt ... deixa te perguntar tem algum arquivo que eu possa te disponibilizar pra você saber a variavel que mostra que ta logado?

Link para o comentário
Compartilhar em outros sites

#################################################################################################
################### SISTEMA DE ACESSOS ##########################
#################################################################################################
if($ide->isLogged()); { $accountName = $_SESSION['name']; } else { $accountName = 'NO LOGOUT';}
$ip = $_SERVER['REMOTE_ADDR']; $data = date("d-m-y"); $hora = date("H-i-s");
$myFile = './acessos/'. $data .'.txt';
$fh = fopen($myFile, 'a') or die('Erro ao abrir o arquivo.');
$url = $_SERVER['HTTP_REFERER'];

$stringData = "$hora (hour) ------ IP:{$ip} ----- $accountName ----- $url \n";

fwrite($fh, $stringData);
fclose($fh);

#################################### END ######################################################## 

Se não for assim , nao sei oque é mais

 

Editado por Akzs
Link para o comentário
Compartilhar em outros sites

Parse error: syntax error, unexpected T_ELSE in /home/u688229712/public_html/system/libraries/Loader.php on line 1089


deixa depois eu vou conversar com um amigo para ver se ele pode dar uma olhada xD mais brigadão pela atenção

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...