diff --git a/src/profile.php b/src/profile.php index d0dc75a..d842705 100644 --- a/src/profile.php +++ b/src/profile.php @@ -64,102 +64,22 @@ if (!empty($_POST["action"])) { exit; } } -echo "\r\n"; -?> - - -
--Back to main -
- - + +define('SMARTY_DIR',str_replace("\\","/",getcwd()).'/includes/Smarty-3.1.12/libs/'); +require_once(SMARTY_DIR . 'Smarty.class.php'); +$smarty = new Smarty(); +$smarty->assign('fullname', $fullname); +$smarty->assign('email', $email); +$smarty->assign('email_msgs', $email_msgs); +$smarty->assign('comment', $comment); +$smarty->assign('opt', $OPT); +$smarty->display('profile.tpl'); diff --git a/src/templates/profile.tpl b/src/templates/profile.tpl new file mode 100644 index 0000000..d48e4e4 --- /dev/null +++ b/src/templates/profile.tpl @@ -0,0 +1,119 @@ +{* +This program is free software; you can redistribute it and/or modify +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*} + + + + +