Mercurial > hg > fapweb
changeset 147:91af5b225fd6
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 23 Oct 2013 02:27:39 +0300 |
parents | 672c7f28fb97 |
children | 6d4325451570 |
files | print.php |
diffstat | 1 files changed, 10 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/print.php Wed Oct 23 02:17:14 2013 +0300 +++ b/print.php Wed Oct 23 02:27:39 2013 +0300 @@ -12,7 +12,9 @@ $pageCSS = "hardcopy.css"; +// // Check if we are allowed to execute +// if (!stCheckHTTPS() || !stAdmSessionAuth(TRUE)) { stSetupCacheControl(); @@ -29,19 +31,22 @@ exit; } + +// +// Initialize +// stSetupCacheControl(); -// Initiate SQL database connection if (!stConnectSQLDB()) die("Could not connect to SQL database."); -// Fetch non-"hardcoded" settings from SQL database stReloadSettings(); -if (stChkRequestItem("type")) - $type = $_REQUEST["type"]; -switch ($type) +// +// Handle request +// +switch (stGetRequestItem("type")) { case "email": //