Add Device to Plugin Manager

This commit is contained in:
Ibnu Maksum
2024-08-08 15:35:40 +07:00
parent 7fccf95eb0
commit d19cdf3897
2 changed files with 133 additions and 81 deletions

View File

@ -329,7 +329,7 @@ switch ($action) {
File::copyFolder($folder, $DEVICE_PATH . DIRECTORY_SEPARATOR, ['README.md', 'LICENSE']);
File::deleteFolder($folder);
unlink($file);
r2(U . "paymentgateway", 's', 'Payment Gateway ' . $plugin . ' has been installed');
r2(U . "settings/devices", 's', 'Device ' . $plugin . ' has been installed');
break;
}
}
@ -344,6 +344,7 @@ switch ($action) {
$ui->assign('zipExt', $zipExt);
$ui->assign('plugins', $json['plugins']);
$ui->assign('pgs', $json['payment_gateway']);
$ui->assign('dvcs', $json['devices']);
$ui->display('plugin-manager.tpl');
}