<?php

if ( ! @include_once( './mainfile.php' ) ) { exit( '!! INCLUDE ERROR. ACCESS DENIED !!' ); }
error_reporting( _E_VALUE );


/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | myPHPNuke Version 188_8 RC2                                          |
// +----------------------------------------------------------------------+
// | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html              |
// +----------------------------------------------------------------------+
// | Support: http://myphpnuke.com/                                       |
// +----------------------------------------------------------------------+
// | Author: myPHPNuke Dev Team                                           |
// +----------------------------------------------------------------------+
// | Copyright: © 2001-2004 myPHPNuke Dev Team                            |
// +----------------------------------------------------------------------+
// $Id: dbconf.php,v 1.5.2.6 2004/08/15 14:29:23 ajvwaay Exp $



######################################################################
# OOPS: Object-Oriented Portal System
# ===========================
#
# Copyright (c) 2001 by Goghs Cheng (goghs@sina.com) aka goghs
# http://eqiao.com
#
# This module is to configure the databse main options for your site
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License.
######################################################################
/**
 * 2001-4-13 goghs: Change all hardcoded table names in all scripts to variable.
 *                  This is for purpose of user defined table names
 *                  Also for easy upgrade to databse abstract layer implementation
 *
 * I changed some table names:
 *   config     -> forumconfig
 *   catagories -> categories
 */

// 2001-4-14 goghs: completed all changes in html/ and html/admin/ scripts.
//                  It's quickie and dirtie. There may be many typos
//                  and many scripts may need add line "include("dbconf.$phpEx");"
//                  It's really a hard work. Thanks God, I achieved this at last.

$tables = array (
    '4nstats_datecnt', 
    '4nstats_hourcnt', 
    '4nstats_monthcnt', 
    '4nstats_weekcnt',
    'access', 
    'authors', 
    'autonews', 
    'banner', 
    'bannerclient', 
    'bannerfinish',
    'blocks', 
    'categories', 
    'chatboxII', 
    'click', 
    'comments', 
    'contactbook', 
    'counter',
    'downloads_categories', 
    'downloads_downloads', 
    'downloads_editorials', 
    'downloads_modrequest',
    'downloads_newdownload', 
    'downloads_subcategories', 
    'downloads_votedata',
    'ephem', 
    'eventcal', 
    'faqanswer', 
    'faqcategories', 
    'forumconfig', 
    'forummods', 
    'forums',
    'forumtopics', 
    'gallery_categories',
    'gallery_comments', 
    'gallery_media_class', 
    'gallery_media_types',
    'gallery_pictures', 
    'gallery_pictures_newpicture', 
    'gallery_rate_check',
    'gallery_template_types', 
    'guestbook', 
    'headlines', 
    'image_dirs', 
    'lastseen', 
    'links_categories',
    'links_editorials', 
    'links_links', 
    'links_modrequest',
    'links_newlink', 
    'links_subcategories', 
    'links_votedata', 
    'mymsg2',
    'poll_data', 
    'poll_desc',
    'pollcomments', 
    'popsettings', 
    'posts', 
    'priv_msgs', 
    'queue', 
    'quotes',
    'rand_banners', 
    'ranks', 
    'referer', 
    'related', 
    'reviews', 
    'reviews_add',
    'reviews_comments', 
    'reviews_main',
    'seccont', 
    'sections', 
    'session', 
    'smiles', 
    'stories', 
    'stories_cat', 
    'topics',
    'updatelog', 
    'users', 
    'users_status',
    'visits_control',
    'visits_counter', 
    'visits_system', 
    'yp_brokenlink',
    'yp_business', 
    'yp_businesstxt', 
    'yp_categories',
    'yp_modrequest', 
    'yp_votedata'
    );


$tableprefix = 'mpn_';

$mpnTables = NULL;

for( $i = 0; $i < sizeof( $tables ); $i++ )
{
    $table = $tables[ $i ];

    $mpnTables[ $table ] = $tableprefix . $table;
}

?>
