-- ********************************************************************** -- * simple portal demo -- * (c) 2005 Hi-Project Ltd. -- ********************************************************************** -- PORTAL SETTINGS WebRoot = PORTALROOT.."webroot/" HtmlTemplatePath = PORTALROOT.."templates/" DataPath = PORTALROOT.."data/" -------------------------------------------------------------------------- -- DATABSE SETTINGS SQLDB = "SQLITE" DB_NAME = DataPath.."testdb" DB_USER = "" DB_PASS = "" DB_HOST = "" DB_PORT = 0 -------------------------------------------------------------------------- -- ENCODING ENCODING = "UTF-8" -------------------------------------------------------------------------- -- LANGUAGE TRANSLANG = LUNALANG.setlanguage("EN") -------------------------------------------------------------------------- -- PORTAL GLOBAl VARIABLES UserID = "0" UserName = "" LoginName = "" UserEmail = "" LoggedIn = false -- already defined in common.functions -------------------------------------------------------------------------- -- include modules -- require "error" require "register" require "login" -------------------------------------------------------------------------- -- Initialization -- -------------------------------------------------------------------------- LUNAFUNC.addfunc({name="ShowRegForm", call=prepareregister, active=true, needlogin=false}) LUNAFUNC.addfunc({name="Register", call=doregister, active=true, needlogin=false}) LUNAFUNC.addfunc({name="PortalLogin", call=dologin, active=true, needlogin=false}) LUNAFUNC.addfunc({name="LogOFF", call=dologout, active=true, needlogin=false}) LUNAFUNC.addfunc({name="ShowUsers", call=showusers, active=true, needlogin=true})