0byt3m1n1
Path:
/
data
/
applications
/
aps
/
b2evolution
/
4.1.5b-1.bak
/
standard
/
htdocs
/
install
/
[
Home
]
File: _functions_delete.php
<?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-2011 by Francois Planque - {@link http://fplanque.com/} * * @package install */ if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); /** * db_delete(-) */ function db_delete() { global $DB, $db_config; echo "Disabling foreign key checks...<br />\n"; $DB->query( 'SET FOREIGN_KEY_CHECKS=0' ); foreach( $db_config['aliases'] as $alias => $tablename ) { echo "Dropping $tablename table...<br />\n"; $DB->query( 'DROP TABLE IF EXISTS '.$tablename ); } } /* * $Log: _functions_delete.php,v $ */ ?>