1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +02:00
Oinktube/plugin/CustomizeUser/View/extraInfo.php
DanielnetoDotCom 730f4893f2 Adding socket support
-- When upload a video to a certain category, this video will be part of a user group automatically
-- one category can add your video in more than one user group
-- Allow user add some extra info in JSON format, for example bank info and other thing
-- This is based on users_extra_info table 
-- add full text search https://github.com/WWBN/AVideo/issues/4343
2021-01-14 14:24:07 -03:00

26 lines
1 KiB
PHP

<?php
require_once '../../../videos/configuration.php';
if (!User::isAdmin()) {
forbiddenPage("Must be admin");
}
?>
<div class="panel panel-default">
<div class="panel-heading"><i class="fas fa-user"></i> <?php echo __('Extra Info') ?></div>
<div class="panel-body" style="text-align: left;">
<?php
if (User::isAdmin()) {
echo "<a href='{$global['webSiteRootURL']}plugin/CustomizeUser/View/editor.php' class='btn btn-default btn-block'>" . __('Add more fields') . "</a>";
}
$u = new User($_REQUEST['users_id']);
echo "<b>id:</b> " . $u->getBdId() . "<br>";
echo "<b>User:</b> " . $u->getUser() . "<br>";
echo "<b>Name:</b> " . $u->getBdName() . "<br>";
echo "<b>Email:</b> " . $u->getEmail() . "<br>";
$rows = Users_extra_info::getAllActive($_REQUEST['users_id']);
foreach ($rows as $value) {
$val = nl2br($value['current_value']);
echo "<b>{$value['field_name']}:</b> {$val}<br>";
}
?>
</div>
</div>