Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-rest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-rest
Commits
58c937d9
Commit
58c937d9
authored
Jun 10, 2010
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- now taking the rest version from the procs.tcl file
parent
f4aecc25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
version.tcl
www/version.tcl
+48
-0
No files found.
www/version.tcl
0 → 100644
View file @
58c937d9
# /packages/intranet-reste/www/version.tcl
#
# Copyright (C
)
2010
]
project-open
[
#
# ---------------------------------------------------------
# Returns a version string.
# Changes in the major number of the version
# indicate incompatibilites, while changes in
# the minor number mean upgrades.
#
# Please see www.project-open.org/documentation/rest_version_history
set
version
[
im_rest_version
]
if
{
!
[
info
exists format
]}
{
set format
"html"
}
if
{
!
[
info
exists user_id
]}
{
set user_id 0
}
set
rest_url
"
[
im_rest_system_url
]
/intranet-rest"
if
{
0 ==
$user
_id
}
{
# User not autenticated
switch
$format
{
html
{
ad_return_complaint 1
"Not authorized"
ad_script_abort
}
xml
{
im_rest_error -http_status 401 -message
"Not authenticated"
return
}
}
}
# Got a user already authenticated by Basic HTTP auth or auto-login
switch
$format
{
xml
{
set xml_p 1
set xml
"<?xml version='1.0' encoding='UTF-8'?>
\n
<version>
\n
$version
</version>
\n
"
}
default
{
set xml_p 0
set page_title
[
lang::message::lookup
""
intranet-rest
"REST Version"
]
set context_bar
""
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment