<?php
#
#
# DB update
#
#
require_once "maincore.php";
$result = dbquery("DROP TABLE IF EXISTS ".$db_prefix."reputation_settings");
$result = dbquery("CREATE TABLE IF NOT EXISTS ".$db_prefix."reputation_settings (
max_posts SMALLINT(5) unsigned NOT NULL default '1',
max_post_adm SMALLINT(5) unsigned NOT NULL default '1',
max_post_sadm SMALLINT(5) unsigned NOT NULL default '1',
discription SMALLINT(1) unsigned NOT NULL default '1'
) TYPE = MyISAM;");
if ($result) {
echo "DB atnaujinta";
$result = dbquery("
INSERT INTO
".$db_prefix."reputation_settings
(max_posts,max_post_adm,max_post_sadm,discription)
VALUES
('1','1','1','1')"
);
} else {
echo "iviko klaida";
}
?>