Cleaning up adminstrative interface for consistency and better code.
This commit is contained in:
parent
49ccb43799
commit
fbd8093ae0
4 changed files with 331 additions and 324 deletions
|
|
@ -220,12 +220,13 @@ sub page {
|
|||
$operationOutput = _processOperations();
|
||||
$wobjectOutput = _processFunctions();
|
||||
}
|
||||
if ($wobjectOutput eq "" && $operationOutput eq "" && $session{setting}{trackPageStatistics}) {
|
||||
if ($operationOutput eq "" && $session{setting}{trackPageStatistics}) {
|
||||
WebGUI::SQL->write("insert into pageStatistics (dateStamp, userId, username, ipAddress, userAgent, referer,
|
||||
pageId, pageTitle) values (".time().",".$session{user}{userId}.",".quote($session{user}{username}).",
|
||||
pageId, pageTitle, wobjectId, function) values (".time().",".$session{user}{userId}
|
||||
.",".quote($session{user}{username}).",
|
||||
".quote($session{env}{REMOTE_ADDR}).", ".quote($session{env}{HTTP_USER_AGENT}).",
|
||||
".quote($session{env}{HTTP_REFERER}).", ".$session{page}{pageId}.",
|
||||
".quote($session{page}{title}).")");
|
||||
".quote($session{page}{title}).", ".quote($session{form}{wid}).", ".quote($session{form}{func}).")");
|
||||
}
|
||||
if ($session{header}{mimetype} ne "text/html") {
|
||||
$httpHeader = WebGUI::Session::httpHeader();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue