php-password-store/index.php
2010-12-17 15:41:45 +01:00

18 lines
416 B
PHP

<?php
require 'config.php';
include 'sanitychecks.php';
// Initialize the session
include 'session.php';
// Check if the user is logged in
include 'check_user.php';
include 'smarty_init.php';
include 'class.db.php';
$tpl->assign('isadmin', pwsdbh($dbDSN)->isAdmin($_SESSION['loginuser']));
$tpl->assign('passwordgroups', pwsdbh($dbDSN)->userPasswordgroups($_SESSION['loginuser']));
$tpl->display('search.tpl');