Menu

[r15]: / administration / listlogs.php  Maximize  Restore  History

Download this file

104 lines (87 with data), 2.8 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
<?php
/*
** Application name: phpCollab
** Last Edit page: 2003-10-23
** Path by root: ../administration/listlogs.php
** Authors: Ceam / Fullo
**
** =============================================================================
**
** phpCollab - Project Managment
**
** -----------------------------------------------------------------------------
** Please refer to license, copyright, and credits in README.TXT
**
** -----------------------------------------------------------------------------
** FILE: listlogs.php
**
** DESC: Screen: users log
**
** HISTORY:
** 2003-10-23 - added new document info
** -----------------------------------------------------------------------------
** TO-DO:
**
**
** =============================================================================
*/
$checkSession = "true";
include_once('../includes/library.php');
if ($profilSession != "0")
{
headerFunction('../general/permissiondenied.php?'.session_name().'='.session_id());
exit;
}
if ($action == "delete")
{
$tmpquery = "DELETE FROM ".$tableCollab["logs"];
connectSql("$tmpquery");
}
$setTitle .= " : Logs";
include('../themes/'.THEME.'/header.php');
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../administration/admin.php?",$strings["administration"],in));
$blockPage->itemBreadcrumbs($strings["logs"]);
$blockPage->closeBreadcrumbs();
$block1 = new block();
$block1->form = "adminD";
$block1->openForm("../administration/listlogs.php?action=delete&".session_name()."=".session_id()."&id=$id#".$block1->form."Anchor");
$block1->heading($strings["logs"]);
$block1->openResults($checkbox="false");
$block1->labels($labels = array(0=>$strings["user_name"],1=>$strings["ip"],2=>$strings["session"],3=>$strings["compteur"],4=>$strings["last_visit"],5=>$strings["connected"]),"false",$sorting="false",$sortingOff = array(0=>"4",1=>"DESC"));
$tmpquery = "ORDER BY last_visite DESC";
$listLogs = new request();
$listLogs->openLogs($tmpquery);
$comptListLogs = count($listLogs->log_id);
$dateunix=date("U");
for ($i=0;$i<$comptListLogs;$i++)
{
$block1->openRow();
$block1->checkboxRow($listLogs->log_id[$i],$checkbox="false");
$block1->cellRow($listLogs->log_login[$i]);
$block1->cellRow($listLogs->log_ip[$i]);
$block1->cellRow($listLogs->log_session[$i]);
$block1->cellRow($listLogs->log_compt[$i]);
$block1->cellRow(createDate($listLogs->log_last_visite[$i],$timezoneSession));
if ($listLogs->log_mem_profil[$i] == "3")
{
$z = "(Client on project site)";
}
else
{
$z = "";
}
if ($listLogs->log_connected[$i] > $dateunix-5*60)
{
$block1->cellRow($strings["yes"]." ".$z);
}
else
{
$block1->cellRow($strings["no"]);
}
$block1->closeRow();
}
$block1->closeResults();
include('../themes/'.THEME.'/footer.php');
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.