| Server IP : 82.64.35.208 / Your IP : 192.168.65.1 Web Server : Apache/2.4.68 (Debian) System : Linux 079bc81edf51 6.12.76-linuxkit #1 SMP Tue Jul 21 14:38:37 UTC 2026 aarch64 User : root ( 0) PHP Version : 8.3.33 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();
?>