1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00
Oinktube/plugin/YPTWallet/view/configuration.php
Daniel Neto 13790614e2 Update
2024-10-15 11:42:39 -03:00

26 lines
No EOL
742 B
PHP

<?php
require_once '../../../videos/configuration.php';
require_once $global['systemRootPath'] . 'objects/user.php';
require_once $global['systemRootPath'] . 'objects/functions.php';
if (!User::isLogged()) {
header("Location: {$global['webSiteRootURL']}");
}
$plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet");
$walletDataObject = $plugin->getDataObject();
$wallet = new Wallet(0);
$wallet->setUsers_id(User::getId());
$_page = new Page(array('Configuration'));
?>
<div class="container">
<div class="panel panel-default">
<div class="panel-body">
<?php echo AVideoPlugin::getWalletConfigurationHTML(User::getId(), $wallet, $walletDataObject); ?>
</div>
</div>
</div>
<?php
$_page->print();
?>