| Server IP : 82.64.35.208 / Your IP : 172.20.0.1 Web Server : Apache/2.4.67 (Debian) System : Linux c1d185609d2c 6.12.76-linuxkit #1 SMP Thu May 28 18:54:18 UTC 2026 aarch64 User : root ( 0) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/manager-for-galene-videoconference/ |
Upload File : |
<?php
if (!defined('WP_UNINSTALL_PLUGIN')) {
die;
}
class Galmgr_Uninstall {
public function uninstall()
{
$this->remove_role();
$this->delete_tables();
}
private function remove_role()
{
$role='galene_mgr';
if(wp_roles()->is_role( $role )) {
remove_role($role);
}
}
private function delete_tables()
{
global $wpdb;
foreach( array(
$wpdb->prefix . 'galene_user',
$wpdb->prefix . 'galene_room',
$wpdb->prefix . 'galene_access',
$wpdb->prefix . 'galene_settings',
) as $table){
$wpdb->query( "DROP TABLE IF EXISTS {$table}" );
}
}
}
$uninst=new Galmgr_Uninstall();
$uninst->uninstall();
?>