File: _functions_delete.php

package info (click to toggle)
b2evolution 0.9.2-3%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 12,972 kB
  • ctags: 5,460
  • sloc: php: 58,989; sh: 298; makefile: 36
file content (57 lines) | stat: -rw-r--r-- 1,578 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/**
 * This file implements deletion of DB tables
 *
 * b2evolution - {@link http://b2evolution.net/}
 * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
 * @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
 *
 * @package install
 */
if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );

/**
 * db_delete(-)
 */
function db_delete()
{
	global $DB;

	echo "Dropping Antispam table...<br />\n";
	$DB->query( 'DROP TABLE IF EXISTS T_antispam' );

	echo "Dropping Hit-Logs...<br />\n";
	$DB->query( 'DROP TABLE IF EXISTS T_hitlog' );

	echo "Dropping Comments...<br />\n";
	$DB->query( 'DROP TABLE IF EXISTS T_comments' );

	echo "Dropping Categories-to-Posts relationships...<br />\n";
	$DB->query( 'DROP TABLE IF EXISTS T_postcats' );

	echo "Dropping Categories...<br />\n";
	$DB->query( 'DROP TABLE IF EXISTS T_categories' );

	echo "Dropping Posts...<br />\n";
	$DB->query( 'DROP TABLE IF EXISTS T_posts' );

	echo "Dropping Users...<br />\n";
	$DB->query( 'DROP TABLE IF EXISTS T_users' );

	echo "Dropping Groups...<br />\n";
	$DB->query( 'DROP TABLE IF EXISTS T_groups' );

	echo "Dropping Blogs...<br />\n";
	$DB->query( 'DROP TABLE IF EXISTS T_blogs' );

	echo "Dropping Blogusers...<br />\n";
	$DB->query( 'DROP TABLE IF EXISTS T_blogusers' );

	echo "Dropping Settings...<br />\n";
	$DB->query( 'DROP TABLE IF EXISTS T_settings' );

	echo "Dropping Locales...<br />\n";
	$DB->query( 'DROP TABLE IF EXISTS T_locales' );
}

?>