Index: openacs-4/packages/ezic-gateway/www/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ezic-gateway/www/index.adp,v diff -u -r1.1 -r1.2 --- openacs-4/packages/ezic-gateway/www/index.adp 5 Jan 2005 19:54:12 -0000 1.1 +++ openacs-4/packages/ezic-gateway/www/index.adp 2 Sep 2008 06:43:11 -0000 1.2 @@ -1,10 +1,11 @@ - - @title@ - -
@context_bar;noquote@[ Administer ]
-
- - @context_bar@ - - -

This package has no user pages.

+ + @title;noquote@ + @context;noquote@ +

@title@

+ +

This package has no user pages.

+ +

Administer

+
+ + Index: openacs-4/packages/ezic-gateway/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ezic-gateway/www/index.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/ezic-gateway/www/index.tcl 1 Mar 2005 00:01:36 -0000 1.2 +++ openacs-4/packages/ezic-gateway/www/index.tcl 2 Sep 2008 06:43:11 -0000 1.3 @@ -1,40 +1,33 @@ -ad_page_contract { - - A place holder for access to the admin pages. - - @author Bart Teeuwisse - @modified-by Torben Brosten - @creation-date April 2002 - @modified-date Feb 2004 - -} { -} -properties { - title:onevalue - context_bar:onevalue -} - -# Authenticate the user - -set user_id [auth::require_login] - -# Check for admin privileges - -set package_id [ad_conn package_id] -set admin_p [ad_permission_p $package_id admin] - -# Get the name of the package - -if {[db_0or1row get_package_name " - select p.instance_name - from apm_packages p, apm_package_versions v - where p.package_id = :package_id - and p.package_key = v.package_key - and v.enabled_p = 't'"]} { - set title "$instance_name" -} else { - set title "EZIC Gateway package" -} - -# Set the context bar. - -set context_bar [ad_context_bar] +ad_page_contract { + + A place holder for access to the admin pages. + + @author Bart Teeuwisse + @creation-date April 2002 + +} { +} -properties { + title:onevalue + context_bar:onevalue +} + +# Authenticate the user + +set user_id [auth::require_login] + +# Check for admin privileges + +set package_id [ad_conn package_id] +set admin_p [ad_permission_p $package_id admin] + +# Get the name of the package + +if {[db_0or1row get_package_name {}]} { + set title "$instance_name" +} else { + set title "EZIC Merchant Gateway" +} + +# Set the context bar. + +set context [list $title]