hi every one!
this is my fisrt time i have a website with a vocie chat but the log manager when i login as root i can view the log manager but the time is wrog how can i corret the time i live in UK to Uk time many thanks
More detail is needed.
thank you for replying here my log manager but the time when the users log in is wrong like about 5 hours diffrent now in uk its 21.30 hours but in the log manager is wrong its now about 02.30amnext day lol.could you help please[code]
log viewerClear Log |
Entry |
[Jun 5th 2008 @ 2:23] User hardawan Logged In From 80.7.93.183, with a proxy address of `' |
Are you sure the time on your server is correct? Also is it using LOCAL time or UTC Time?
If your time is always off by the same amount, perhaps it’s using the UTC Time. Also please note, that the time is probably the time on the SERVER and not necessarily where YOU are located. If this is indeed the case you just need to adjust things appropriately when doing the log.
thanks mate but i coludnt fix it yet!!
you know as a root in a voice chat when the user log in i colud see thier ip and date and time but the time is like 5+GMT and i do use a unlimitedMB cpanel but the versin is quite old!! can you still help please thanks
hi all.
i have a voicechat and there a logmanager whichs you can see exatct time the users loged in as a root and i want 2 have the time GMT+1 i mean UK time but the time on the log manager page when the user logs in is like GMT+6 can any1 help pleae thank you all hers the logmanger code hope you can help really do [code]<?
ini_set(“output_buffering”, “1”);
ini_set(“register_globals”, “0”);
ini_set(“session.use_cookies”, “1”);
ini_set(“session.use_trans_sid”, “1”);
require_once “lib/file.class.php”;
require_once “inc/iv-app.class.php”;
$app = new CBabChatApp();
if (!$app->isRoot() && !$app->isAdmin())
{
$app->execute("./logout.php");
}
?>
log viewerClear Log |
Entry |
<?= trim($file[$ii]) ?> |
The log file is currently empty. |
Do you have a link to the site with log manager voice chat application? The code above doesn’t have any date format/date values.
thanks for replying the the post above is mine the one sunjekt says please help i have put another code in ther would please look at that one if you you can give any help i would be very greatfull mate thanks
Hardawan,
Sorry for the confusion.
Is the below line generated through script?
<td class="adTextValue" style="padding: 2px 0px 2px 5px; text-align: left;">[Jun 5th 2008 @ 2:23] User hardawan Logged In From 80.7.93.183, with a proxy address of `'</td>
its ok mate yes its through script? it gives me the time but the worng one like GMT+6 but i need GMT+1
Well, can you post the script used for the date format/display? Otherwise, I’d suggest checking the server time vs localtime.
ok mate i hope you wanted me to send this that iim sending now this is from clear.log.php but thank for all your time[code]<?
ini_set(“output_buffering”, “1”);
ini_set(“register_globals”, “0”);
ini_set(“session.use_cookies”, “1”);
ini_set(“session.use_trans_sid”, “1”);
require_once “lib/file.class.php”;
require_once “inc/iv-app.class.php”;
$app = new CBabChatApp();
if (!$app->isRoot() && !$app->isAdmin())
{
$app->execute("./logout.php");
}
$file = new CFileStream();
if ($file->open(LOG_FILE, “w”))
{
$file->truncate(0);
$file->free();
}
$app->execute("./view-logs.php");
?>
[/code]
That code still doesn’t show us anything about time stamps being inserted into whatever backend you’re using for your logs.
Peg110 has repeatedly asked what the server time configuration is, as opposed to your local time. Answering that question would help heaps.
Also, by the sound of it, you did not write this script. Can you contact the person who made it available to you for support? Does the script keep track of timezones in any way (starting PHP 5.1.0 timezones are an optional setting, is this set, and if so, to which zone)?
this is my spl mate[code]-- phpMyAdmin SQL Dump
– version 2.8.1
– http://www.phpmyadmin.net
– Host: localhost
– Generation Time: Sep 02, 2006 at 01:28 AM
– Server version: 4.0.27
– PHP Version: 4.4.4
– Database: iraqvoice_db
–
– Table structure for table Account
CREATE TABLE Account
(
Version
varchar(50) NOT NULL default ‘1,0,0,210’,
Server
varchar(50) NOT NULL default ‘207.36.17.204’,
UserAccount
varchar(50) NOT NULL default ‘’,
AdminPassword
varchar(50) NOT NULL default ‘’
) TYPE=MyISAM;
–
– Table structure for table Bans
CREATE TABLE Bans
(
ID
bigint(20) unsigned NOT NULL auto_increment,
Ip
varchar(16) NOT NULL default ‘0.0.0.0’,
PRIMARY KEY (ID
),
KEY ID
(ID
),
FULLTEXT KEY Ip
(Ip
)
) TYPE=MyISAM AUTO_INCREMENT=28 ;
–
– Table structure for table Users
CREATE TABLE Users
(
ID
int(11) NOT NULL default ‘0’,
Username
varchar(255) default NULL,
Password
varchar(255) default NULL,
Email
varchar(255) default ‘’,
Member
smallint(6) NOT NULL default ‘0’,
Last_Access
int(11) NOT NULL default ‘0’,
Register_Date
varchar(255) default ‘’,
TextPM
int(11) NOT NULL default ‘1’,
VoicePM
int(11) NOT NULL default ‘0’,
Invisible
int(11) NOT NULL default ‘0’,
Mode
int(11) NOT NULL default ‘0’,
Color
varchar(50) default ‘’,
isAdmin
int(11) NOT NULL default ‘0’,
Sex
int(11) NOT NULL default ‘0’,
random
int(11) NOT NULL default ‘0’,
Activate
int(11) NOT NULL default ‘0’,
ShowIP
int(11) NOT NULL default ‘0’
) TYPE=MyISAM;
–
– Table structure for table confirm
CREATE TABLE confirm
(
confirm_id
char(32) NOT NULL default ‘’,
session_id
char(32) NOT NULL default ‘’,
code
char(6) NOT NULL default ‘’,
PRIMARY KEY (session_id
,confirm_id
)
) TYPE=MyISAM;
[/code]