Paste: cheyenne app-init.r

Author: middayc
Mode: rebol
Date: Mon, 21 Dec 2009 22:20:48
Plain Text |
REBOL [
	Purpose: "RSP environement init code"
]

on-application-start: does [
	;--- add here your library / modules loading
]

on-application-end: does [
	;--- add here your library / modules proper closing
]

on-session-start: does [
	;--- add here your per session init code
	;--- ex: session/add 'foo 0
	;--- that can be latter accessed with : session/content/foo
	
	session/add 'user "guest"
	session/add 'login? false
	session/add 'hits 1
    session/add 'user-id ""
    session/add 'plan none
    session/add 'messages none
    session/add 'form-data none
	session/add 'edit-mode none
	session/add 'payed-to none
	session/add 'max-invoices none
	session/add 'subplan none
	session/add 'vatbound none
	session/add 'subs-inter none
]

on-session-end: does [
	;--- add here your per session closing/cleanup code

]

on-page-start: has [][
	set 't0 now/time/precise
	
	do/global %bin/simpauth.r
    do/global %bin/webgoo/refaktor-utils.r
    do/global %bin/webgoo/webgoo.r
    do/global %bin/webgoo/webgoo-dr.r
   
    do/global %bin/simpauth.r
    do/global %bin/db.r
    do/global %bin/datares.r
	do/global %bin/plans.r
    do/global %bin/dr-project.r
    do/global %bin/dr-pageload.r
    do/global %bin/pdf-common.r
    do/global %bin/pdf-invoice-sent.r
    do/global %bin/pdf-preinvoice.r
    do/global %bin/datares-pl.r
	do/global %bin/formres.r
	do/global %bin/various.r
	
	do/global %bin/extlib/sqlite.r
	do/global %bin/extlib/haru-pdf.r
	
	GLOB: copy []
	FLAGS: copy []
]

on-page-end: has [pos time][
]

New Annotation

Summary:
Author:
Mode:
Body: