db=$db; if ($_SESSION['dostup']!=='a' && $_SESSION['dostup']!=='e')header( 'Location: /403/' ); unset($a); $a['user_id']=$_SESSION['user_id']; $db->free_sql2("CREATE TABLE IF NOT EXISTS zametka (user_id INTEGER NOT NULL, txt text, FOREIGN KEY (user_id) REFERENCES users (id))"); $txt=$db->get_val('zametka', $a, 'txt'); $smarty -> assign( 'txt', $txt ); ?>