|
Revision 296, 0.5 kB
(checked in by carmartin, 3 years ago)
|
Includes should use full path given that we know where things are. Patch 1.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
require_once(dirname(dirname(__FILE__))."/includes.php"); |
|---|
| 7 |
|
|---|
| 8 |
protect(1); |
|---|
| 9 |
|
|---|
| 10 |
run("profile:init"); |
|---|
| 11 |
run("templates:init"); |
|---|
| 12 |
|
|---|
| 13 |
$title = gettext("Template Preview"); |
|---|
| 14 |
define("context", "account"); |
|---|
| 15 |
|
|---|
| 16 |
templates_page_setup(); |
|---|
| 17 |
|
|---|
| 18 |
$body = templates_preview(); |
|---|
| 19 |
|
|---|
| 20 |
global $messages; |
|---|
| 21 |
$messages[] = "System message 1"; |
|---|
| 22 |
$messages[] = "System message 2"; |
|---|
| 23 |
|
|---|
| 24 |
echo templates_page_draw( array( |
|---|
| 25 |
$title, $body |
|---|
| 26 |
) |
|---|
| 27 |
); |
|---|
| 28 |
|
|---|
| 29 |
?> |
|---|