PHP Classes

File: upload/plugins/bulletinboard/deactivate.php

Recommend this page to a friend!
  Classes of James Brows   PHP Bulletin Board   upload/plugins/bulletinboard/deactivate.php   Download  
File: upload/plugins/bulletinboard/deactivate.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Bulletin Board
Manage and post messages in multi-user forums
Author: By
Last change:
Date: 2 years ago
Size: 732 bytes
 

Contents

Class file image Download
<?php

$db
=new Database();

$db->nonquery("delete from group_permission_data where permission_c IN (select permission_c from permissions_mst where LEFT(permission_c,2)='BB')");

$db->nonquery("delete from permissions_mst where LEFT(permission_c,2)='BB'");

$db->nonquery("delete from setting_data where LEFT(key_c,2)='bb'");

$dbPath=PLUGINS_PATH.'bulletinboard/sql_uninstall.sql';

if(
file_exists($dbPath))
{
   
$content=file_get_contents($dbPath);

    if(isset(
$content[5]))
    {
        
$db->nonquery(trim($content));
    }
}

clear_hook();


// if(file_exists(ROOT_PATH.'public/system/autoloads_class/BB_Captcha_Image.php'))
// {
// unlink(ROOT_PATH.'public/system/autoloads_class/BB_Captcha_Image.php');
// }