<?
if (!defined('INSTALL_MODULES')) {
	die ("You can't access this file directly...");
}

if ((!is_god($admin)) && (!is_user($user)) && (!is_admin($admin))) { 
redirect_url("".$admin_file.".php?op=modules"); }



$result1 = $db2->sql_query("CREATE TABLE ".$prefix_install."_nsnsp_config(
  `require_user` int(1) NOT NULL default '1',
  `image_type` int(1) NOT NULL default '0',
  PRIMARY KEY  (`require_user`),
  KEY `require_user` (`require_user`))");

$db2->sql_query("INSERT INTO ".$prefix_install."_nsnsp_config VALUES (1, 0)");
################################################################################

$result2 = $db2->sql_query("CREATE TABLE ".$prefix_install."_nsnsp_sites(
  `site_id` int(11) NOT NULL auto_increment,
  `site_name` varchar(60) NOT NULL default '',
  `site_url` varchar(255) NOT NULL default '',
  `site_image` varchar(255) NOT NULL default '',
  `site_status` int(1) NOT NULL default '0',
  `site_hits` int(10) NOT NULL default '0',
  `site_date` date NOT NULL default '0000-00-00',
  `site_description` text NOT NULL,
  `user_id` int(11) NOT NULL default '0',
  `user_name` varchar(60) NOT NULL default '',
  `user_email` varchar(60) NOT NULL default '',
  `user_ip` varchar(20) NOT NULL default '',
  PRIMARY KEY  (`site_id`),
  KEY `site_id` (`site_id`))");

$db2->sql_query("INSERT INTO ".$prefix_install."_nsnsp_sites VALUES (1, 'eXtreM CMS', 'http://www.extremcms.fr/', 'http://www.nukescripts.fr/images/topics/extremcms.png', 1, 2, '2005-04-21', '', 2, 'max', 'max@msn.com', '0.0.0.0')");
################################################################################


?>