Try this.
Open pages.php
FIND:
Code:
# Assign the current location line
BEFORE ADD:
Code:
if ($login)
$smarty->assign('showFirstname',func_query_first_cell("SELECT firstname FROM $sql_tbl[customers] WHERE login='" . mysql_real_escape_string($login) . "'"));
Then in your static page you can use {$showFirstname}