aurweb/web/template/template.phps
Loui Chang 78c2b5c67f Introduce function include_lang for translations.
This includes only the requested language for each page and
makes top level language include files obsolete.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-21 18:03:27 +09:00

21 lines
664 B
PHP

<?php
# This template shows how a front page script is commonly coded.
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
include("aur.inc"); # access AUR common functions
include_lang('template_po.inc'); # use some form of this for i18n support
set_lang(); # this sets up the visitor's language
check_sid(); # see if they're still logged in
html_header(); # print out the HTML header
# Any text you print out to the visitor, use the __() function
# for i18n support. See web/lib/translator.inc for more info.
#
print __("Hi, this is worth reading!")."<br />\n";
html_footer(AUR_VERSION);