2022-12-11 13:55:49 +05:00
|
|
|
<?php
|
2023-02-13 16:05:33 +05:00
|
|
|
ini_set( 'display_errors', 0 );
|
|
|
|
//$mod = new main($smarty, $settings);
|
2022-12-11 13:55:49 +05:00
|
|
|
//$mod->db=$db;
|
2023-02-13 16:05:33 +05:00
|
|
|
$user_id=($_GET['id'])?$_GET['id']:$_SESSION['user_id'];
|
|
|
|
$smarty -> assign( 'user', \DB::getAll("SELECT * FROM `users` WHERE `id`=?", $user_id) );
|
2023-05-03 14:51:58 +05:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-02-13 16:05:33 +05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$pages=\DB::getAll("SELECT `id`, `title` FROM `pages` WHERE `user_id`=? AND `status`=1 ORDER BY `reyt` LIMIT 10", $user_id);
|
|
|
|
$smarty -> assign( 'pages', $pages );
|
2022-12-11 13:55:49 +05:00
|
|
|
?>
|