Actualización

This commit is contained in:
Xes
2025-04-10 12:36:07 +02:00
parent 1da7c3f3b9
commit 4aff98e77b
3147 changed files with 320647 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<?php
// A user must be logged in.
$_template['show_message'] = false;
if (!api_is_anonymous()) {
$_template['show_message'] = true;
// Getting the current user id.
$user_id = api_get_user_id();
//Getting the current user info.
$user_info = api_get_user_info($user_id);
// You can also use template setting variables in the special variable called template.
$_template['user_info'] = $user_info;
$_template['username'] = $user_info['username'];
}