Unsupported scripts and control panel web app for a hosting company
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598
  1. -- phpMyAdmin SQL Dump
  2. -- version 2.10.2
  3. -- http://www.phpmyadmin.net
  4. --
  5. -- Host: localhost
  6. -- Generation Time: Apr 07, 2008 at 05:21 PM
  7. -- Server version: 5.0.38
  8. -- PHP Version: 5.2.1
  9. SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
  10. --
  11. -- Database: `admin`
  12. --
  13. CREATE DATABASE `admin` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
  14. USE `admin`;
  15. -- --------------------------------------------------------
  16. --
  17. -- Table structure for table `actions`
  18. --
  19. CREATE TABLE `actions` (
  20. `action_id` int(5) NOT NULL auto_increment,
  21. `user_id` int(5) NOT NULL,
  22. `action_type` enum('pass','create','lock','unlock','restart','updateconf') NOT NULL,
  23. `action_value` text NOT NULL,
  24. PRIMARY KEY (`action_id`)
  25. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=66467 ;
  26. -- --------------------------------------------------------
  27. --
  28. -- Table structure for table `banneduser`
  29. --
  30. CREATE TABLE `banneduser` (
  31. `bu_id` int(5) NOT NULL auto_increment,
  32. `bu_name` varchar(100) NOT NULL default '',
  33. PRIMARY KEY (`bu_id`)
  34. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
  35. --
  36. -- Dumping data for table `banneduser`
  37. --
  38. INSERT INTO `banneduser` (`bu_id`, `bu_name`) VALUES
  39. (1, 'admin'),
  40. (2, 'www'),
  41. (3, 'support'),
  42. (4, 'utd');
  43. -- --------------------------------------------------------
  44. --
  45. -- Table structure for table `billitems`
  46. --
  47. CREATE TABLE `billitems` (
  48. `bi_id` int(5) NOT NULL auto_increment,
  49. `bill_id` int(5) NOT NULL,
  50. `up_id` int(5) NOT NULL,
  51. `bi_cost` int(5) NOT NULL,
  52. PRIMARY KEY (`bi_id`)
  53. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
  54. -- --------------------------------------------------------
  55. --
  56. -- Table structure for table `bills`
  57. --
  58. CREATE TABLE `bills` (
  59. `bill_id` int(5) NOT NULL auto_increment,
  60. `user_id` int(5) NOT NULL,
  61. `bill_due` int(11) NOT NULL,
  62. `bill_generated` int(11) NOT NULL,
  63. `bill_total` int(5) NOT NULL,
  64. `bill_paid` int(1) NOT NULL default '0',
  65. PRIMARY KEY (`bill_id`)
  66. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
  67. -- --------------------------------------------------------
  68. --
  69. -- Table structure for table `db_dbs`
  70. --
  71. CREATE TABLE `db_dbs` (
  72. `db_id` int(5) NOT NULL auto_increment,
  73. `user_id` int(5) NOT NULL default '0',
  74. `db_name` varchar(50) NOT NULL default '',
  75. PRIMARY KEY (`db_id`),
  76. UNIQUE KEY `db_name` (`db_name`)
  77. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=40 ;
  78. -- --------------------------------------------------------
  79. --
  80. -- Table structure for table `db_perms`
  81. --
  82. CREATE TABLE `db_perms` (
  83. `dbperm_id` int(5) NOT NULL auto_increment,
  84. `dbuser_id` int(5) NOT NULL default '0',
  85. `db_id` int(5) NOT NULL default '0',
  86. PRIMARY KEY (`dbperm_id`)
  87. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=45 ;
  88. -- --------------------------------------------------------
  89. --
  90. -- Table structure for table `db_users`
  91. --
  92. CREATE TABLE `db_users` (
  93. `dbuser_id` int(5) NOT NULL auto_increment,
  94. `user_id` int(5) NOT NULL default '0',
  95. `dbuser_name` varchar(50) NOT NULL default '',
  96. PRIMARY KEY (`dbuser_id`),
  97. UNIQUE KEY `dbuser_name` (`dbuser_name`)
  98. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=39 ;
  99. -- --------------------------------------------------------
  100. --
  101. -- Table structure for table `discounts`
  102. --
  103. CREATE TABLE `discounts` (
  104. `discount_id` int(5) NOT NULL auto_increment,
  105. `package_id` int(5) NOT NULL default '1',
  106. `discount_code` varchar(24) NOT NULL default '',
  107. `discount_time` int(11) NOT NULL default '0',
  108. `discount_money` int(10) NOT NULL default '0',
  109. `discount_type` enum('signup','general') NOT NULL default 'signup',
  110. `discount_start` int(11) NOT NULL default '0',
  111. `discount_end` int(11) NOT NULL default '0',
  112. `discount_message` text NOT NULL,
  113. PRIMARY KEY (`discount_id`),
  114. UNIQUE KEY `vouhcer_code` (`discount_code`)
  115. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
  116. -- --------------------------------------------------------
  117. --
  118. -- Table structure for table `discountusers`
  119. --
  120. CREATE TABLE `discountusers` (
  121. `du_id` int(5) NOT NULL auto_increment,
  122. `user_id` int(5) NOT NULL default '0',
  123. `discount_id` int(5) NOT NULL default '0',
  124. PRIMARY KEY (`du_id`)
  125. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=19 ;
  126. -- --------------------------------------------------------
  127. --
  128. -- Table structure for table `domains`
  129. --
  130. CREATE TABLE `domains` (
  131. `domain_id` int(5) NOT NULL auto_increment,
  132. `user_id` int(5) NOT NULL default '0',
  133. `domain_name` varchar(200) NOT NULL default '',
  134. `domain_enabled` tinyint(1) NOT NULL default '0',
  135. `domain_parent` int(5) NOT NULL default '0',
  136. PRIMARY KEY (`domain_id`),
  137. UNIQUE KEY `domain_name` (`domain_name`),
  138. KEY `user_id` (`user_id`)
  139. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=100 ;
  140. -- --------------------------------------------------------
  141. --
  142. -- Table structure for table `email`
  143. --
  144. CREATE TABLE `email` (
  145. `email_id` int(5) NOT NULL auto_increment,
  146. `domain_id` int(5) default NULL,
  147. `email_user` varchar(255) default NULL,
  148. `mailbox_id` int(5) default NULL,
  149. PRIMARY KEY (`email_id`)
  150. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
  151. -- --------------------------------------------------------
  152. --
  153. -- Table structure for table `finances`
  154. --
  155. CREATE TABLE `finances` (
  156. `finance_id` int(5) NOT NULL auto_increment,
  157. `finance_time` int(11) NOT NULL,
  158. `finance_desc` varchar(200) NOT NULL,
  159. `user_id` int(5) NOT NULL,
  160. `finance_receipts` int(10) NOT NULL default '0',
  161. `finance_payments` int(10) NOT NULL default '0',
  162. `finance_balance` int(10) NOT NULL,
  163. PRIMARY KEY (`finance_id`)
  164. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=37 ;
  165. -- --------------------------------------------------------
  166. --
  167. -- Table structure for table `historic_user`
  168. --
  169. CREATE TABLE `historic_user` (
  170. `hu_id` int(7) NOT NULL auto_increment,
  171. `user_id` int(5) NOT NULL default '0',
  172. `hu_start` int(11) NOT NULL default '0',
  173. `hu_end` int(11) NOT NULL default '0',
  174. `hu_hdd` bigint(12) NOT NULL default '0',
  175. `hu_bw` bigint(12) NOT NULL default '0',
  176. PRIMARY KEY (`hu_id`)
  177. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=197 ;
  178. -- --------------------------------------------------------
  179. --
  180. -- Table structure for table `ipbans`
  181. --
  182. CREATE TABLE `ipbans` (
  183. `ipban_id` int(5) NOT NULL auto_increment,
  184. `ipban_ip` varchar(15) NOT NULL,
  185. `ipban_expires` int(11) NOT NULL,
  186. `ipban_message` varchar(200) NOT NULL,
  187. PRIMARY KEY (`ipban_id`),
  188. KEY `ipban_ip` (`ipban_ip`),
  189. KEY `ipban_expires` (`ipban_expires`)
  190. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
  191. -- --------------------------------------------------------
  192. --
  193. -- Table structure for table `iptdata`
  194. --
  195. CREATE TABLE `iptdata` (
  196. `ipt_id` int(5) NOT NULL auto_increment,
  197. `ipt_user` varchar(100) NOT NULL,
  198. `ipt_in` int(15) NOT NULL,
  199. `ipt_out` int(15) NOT NULL,
  200. `ipt_lastchecked` int(11) NOT NULL,
  201. PRIMARY KEY (`ipt_id`)
  202. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
  203. -- --------------------------------------------------------
  204. --
  205. -- Table structure for table `issues_assigns`
  206. --
  207. CREATE TABLE `issues_assigns` (
  208. `iaut_id` int(5) NOT NULL auto_increment,
  209. `icat_id` int(5) default NULL,
  210. `user_id` int(5) default NULL,
  211. PRIMARY KEY (`iaut_id`)
  212. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  213. -- --------------------------------------------------------
  214. --
  215. -- Table structure for table `issues_categories`
  216. --
  217. CREATE TABLE `issues_categories` (
  218. `icat_id` int(5) NOT NULL auto_increment,
  219. `icat_name` varchar(100) default NULL,
  220. `icat_assign` int(5) NOT NULL default '0',
  221. PRIMARY KEY (`icat_id`)
  222. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='InnoDB free: 4096 kB' AUTO_INCREMENT=10 ;
  223. --
  224. -- Dumping data for table `issues_categories`
  225. --
  226. INSERT INTO `issues_categories` (`icat_id`, `icat_name`, `icat_assign`) VALUES
  227. (1, 'General', 0),
  228. (2, 'Website', 0),
  229. (3, 'Issue Tracker', 3),
  230. (4, 'Service Monitor', 0),
  231. (5, 'Long Term', 0),
  232. (6, 'Signup', 0),
  233. (7, 'Control Panel', 0),
  234. (8, 'Admin', 0),
  235. (9, 'Server-Asimov', 0);
  236. -- --------------------------------------------------------
  237. --
  238. -- Table structure for table `issues_issues`
  239. --
  240. CREATE TABLE `issues_issues` (
  241. `i_id` int(5) NOT NULL auto_increment,
  242. `icat_id` int(5) default NULL,
  243. `i_submitter` int(5) default NULL,
  244. `i_assignee` int(5) default NULL,
  245. `i_priority` enum('urgent','high','normal','low') default 'normal',
  246. `i_added` int(11) default NULL,
  247. `i_updated` int(11) default NULL,
  248. `i_deadline` int(11) default NULL,
  249. `i_title` varchar(100) default NULL,
  250. `i_status` enum('open','assigned','closed','reopened') default 'open',
  251. `i_text` text,
  252. `i_extensiveness` enum('trivial','normal','extensive') NOT NULL default 'normal',
  253. PRIMARY KEY (`i_id`)
  254. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='InnoDB free: 4096 kB' AUTO_INCREMENT=80 ;
  255. -- --------------------------------------------------------
  256. --
  257. -- Table structure for table `issues_logs`
  258. --
  259. CREATE TABLE `issues_logs` (
  260. `ilog_id` int(5) NOT NULL auto_increment,
  261. `i_id` int(5) default NULL,
  262. `ilog_time` int(11) default NULL,
  263. `user_id` int(5) default NULL,
  264. `ilog_field` varchar(100) default NULL,
  265. `ilog_old` text,
  266. `ilog_new` text,
  267. PRIMARY KEY (`ilog_id`)
  268. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='InnoDB free: 4096 kB' AUTO_INCREMENT=70 ;
  269. -- --------------------------------------------------------
  270. --
  271. -- Table structure for table `issues_replies`
  272. --
  273. CREATE TABLE `issues_replies` (
  274. `irep_id` int(5) NOT NULL auto_increment,
  275. `i_id` int(5) default NULL,
  276. `user_id` int(5) default NULL,
  277. `irep_time` int(11) default NULL,
  278. `irep_text` text,
  279. PRIMARY KEY (`irep_id`)
  280. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='InnoDB free: 4096 kB' AUTO_INCREMENT=8 ;
  281. -- --------------------------------------------------------
  282. --
  283. -- Table structure for table `issues_searches`
  284. --
  285. CREATE TABLE `issues_searches` (
  286. `isea_id` int(5) NOT NULL auto_increment,
  287. `user_id` int(5) default NULL,
  288. `isea_name` varchar(100) default NULL,
  289. `isea_options` text,
  290. PRIMARY KEY (`isea_id`)
  291. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='InnoDB free: 4096 kB' AUTO_INCREMENT=8 ;
  292. -- --------------------------------------------------------
  293. --
  294. -- Table structure for table `log`
  295. --
  296. CREATE TABLE `log` (
  297. `log_id` int(5) NOT NULL auto_increment,
  298. `user_id` int(5) NOT NULL,
  299. `log_level` enum('critical','important','normal','info','unknown') NOT NULL default 'unknown',
  300. `log_time` int(11) NOT NULL,
  301. `log_message` varchar(200) NOT NULL,
  302. PRIMARY KEY (`log_id`)
  303. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2012 ;
  304. -- --------------------------------------------------------
  305. --
  306. -- Table structure for table `mailboxes`
  307. --
  308. CREATE TABLE `mailboxes` (
  309. `mailbox_id` int(5) NOT NULL auto_increment,
  310. `domain_id` int(5) default NULL,
  311. `mailbox_user` varchar(255) default NULL,
  312. `mailbox_password` varchar(255) default NULL,
  313. PRIMARY KEY (`mailbox_id`)
  314. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
  315. -- --------------------------------------------------------
  316. --
  317. -- Table structure for table `messages`
  318. --
  319. CREATE TABLE `messages` (
  320. `message_id` int(4) NOT NULL auto_increment,
  321. `message_type` enum('admin','public','announcement','information') NOT NULL default 'public',
  322. `message_title` varchar(150) NOT NULL default '',
  323. `message_time` int(12) NOT NULL default '0',
  324. `message_body` text NOT NULL,
  325. PRIMARY KEY (`message_id`)
  326. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;
  327. -- --------------------------------------------------------
  328. --
  329. -- Table structure for table `packages`
  330. --
  331. CREATE TABLE `packages` (
  332. `package_id` int(5) NOT NULL auto_increment,
  333. `package_name` varchar(255) NOT NULL,
  334. `package_cost` int(5) NOT NULL,
  335. `package_duration` int(10) NOT NULL,
  336. `package_type` enum('hosting','dns','backup','ssh') NOT NULL,
  337. `package_description` text NOT NULL,
  338. `package_published` int(1) NOT NULL default '0',
  339. PRIMARY KEY (`package_id`)
  340. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
  341. --
  342. -- Dumping data for table `packages`
  343. --
  344. INSERT INTO `packages` (`package_id`, `package_name`, `package_cost`, `package_duration`, `package_type`, `package_description`, `package_published`) VALUES
  345. (1, 'Hosting - One Year', 3500, 31556736, 'hosting', 'Our standard hosting package. This package gives you a full year''s hosting for just £35. All of our hosting packages give you 3.5 GB of storage, and a massive 50 GB of data transfer per month. You also get basic DNS hosting and unlimited e-mail addresses, sites, subdomains and MySQL databases.', 1),
  346. (2, 'Hosting - Three Months', 1000, 7889184, 'hosting', 'A shorter hosting package, for those who don''t want to pay for a year''s hosting in advance. Three months hosting for just £10. All of our hosting packages give you 3.5 GB of storage, and a massive 50 GB of data transfer per month. You also get basic DNS hosting and unlimited e-mail addresses, sites, subdomains and MySQL databases.', 1),
  347. (3, 'DNS - One Year', 500, 31556736, 'dns', '', 0),
  348. (4, 'DNS - Three Months', 150, 7889184, 'dns', '', 0),
  349. (5, 'SSH access - One Year', 0, 31556736, 'ssh', '', 0),
  350. (6, 'SSH access - Three Months', 0, 7889184, 'ssh', '', 0);
  351. -- --------------------------------------------------------
  352. --
  353. -- Table structure for table `records`
  354. --
  355. CREATE TABLE `records` (
  356. `record_id` int(5) NOT NULL auto_increment,
  357. `domain_id` int(5) NOT NULL default '0',
  358. `record_type` char(5) NOT NULL,
  359. `record_value` varchar(200) NOT NULL default '',
  360. `record_ttl` int(10) NOT NULL default '86400',
  361. PRIMARY KEY (`record_id`),
  362. KEY `domain_id` (`domain_id`)
  363. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=155 ;
  364. -- --------------------------------------------------------
  365. --
  366. -- Table structure for table `sessions`
  367. --
  368. CREATE TABLE `sessions` (
  369. `session_id` int(3) NOT NULL auto_increment,
  370. `user_id` int(2) NOT NULL default '0',
  371. `session_ip` varchar(15) NOT NULL default '',
  372. `session_start` int(12) NOT NULL default '0',
  373. `session_last` int(12) NOT NULL default '0',
  374. `session_ident` varchar(32) NOT NULL default '',
  375. `session_spoof` int(5) NOT NULL default '0',
  376. PRIMARY KEY (`session_id`),
  377. KEY `session_ident` (`session_ident`)
  378. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=726 ;
  379. -- --------------------------------------------------------
  380. --
  381. -- Table structure for table `signups`
  382. --
  383. CREATE TABLE `signups` (
  384. `signup_id` int(5) NOT NULL auto_increment,
  385. `signup_ip` varchar(12) NOT NULL,
  386. `signup_time` int(11) NOT NULL,
  387. `signup_data` text NOT NULL,
  388. `signup_processed` int(1) NOT NULL default '0',
  389. `signup_checked` int(1) NOT NULL default '0',
  390. PRIMARY KEY (`signup_id`)
  391. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=19 ;
  392. -- --------------------------------------------------------
  393. --
  394. -- Table structure for table `sites`
  395. --
  396. CREATE TABLE `sites` (
  397. `site_id` int(3) NOT NULL auto_increment,
  398. `user_id` int(2) NOT NULL default '0',
  399. `site_name` varchar(100) NOT NULL default '',
  400. `site_bandin` bigint(12) NOT NULL default '0',
  401. `site_bandout` bigint(12) NOT NULL default '0',
  402. `site_docroot` text NOT NULL,
  403. `site_curdocroot` text NOT NULL,
  404. `site_logpos` int(10) NOT NULL default '0',
  405. `site_php` enum('stable','dev','legacy') NOT NULL default 'stable',
  406. `site_htaccess` smallint(1) NOT NULL default '1',
  407. `site_index` smallint(1) NOT NULL default '1',
  408. PRIMARY KEY (`site_id`)
  409. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=57 ;
  410. -- --------------------------------------------------------
  411. --
  412. -- Table structure for table `sshkeys`
  413. --
  414. CREATE TABLE `sshkeys` (
  415. `key_id` int(5) NOT NULL auto_increment,
  416. `user_id` int(5) NOT NULL,
  417. `key_comment` varchar(200) NOT NULL,
  418. `key_key` text NOT NULL,
  419. PRIMARY KEY (`key_id`)
  420. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;
  421. -- --------------------------------------------------------
  422. --
  423. -- Table structure for table `tickets`
  424. --
  425. CREATE TABLE `tickets` (
  426. `ticket_id` int(4) NOT NULL auto_increment,
  427. `user_id` int(2) NOT NULL default '0',
  428. `ticket_status` enum('new','assigned','closed','reopened','reply') NOT NULL default 'new',
  429. `ticket_thread` int(4) NOT NULL default '0',
  430. `ticket_title` varchar(200) NOT NULL default '',
  431. `ticket_body` text NOT NULL,
  432. `ticket_time` int(12) NOT NULL default '0',
  433. PRIMARY KEY (`ticket_id`),
  434. KEY `user_id` (`user_id`),
  435. KEY `ticket_thread` (`ticket_thread`)
  436. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=106 ;
  437. --
  438. -- Table structure for table `userdetails`
  439. --
  440. CREATE TABLE `userdetails` (
  441. `user_id` int(3) NOT NULL default '0',
  442. `ud_name` text NOT NULL,
  443. `ud_address` text NOT NULL,
  444. `ud_telephone` varchar(20) NOT NULL default '',
  445. UNIQUE KEY `user_id` (`user_id`)
  446. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  447. -- --------------------------------------------------------
  448. --
  449. -- Table structure for table `userpackages`
  450. --
  451. CREATE TABLE `userpackages` (
  452. `up_id` int(5) NOT NULL auto_increment,
  453. `package_id` int(5) NOT NULL,
  454. `user_id` int(5) NOT NULL,
  455. `up_expires` int(11) NOT NULL,
  456. `up_cost` int(5) NOT NULL,
  457. `up_invoice` int(1) NOT NULL default '1',
  458. `up_active` int(1) NOT NULL default '1',
  459. PRIMARY KEY (`up_id`),
  460. KEY `user_id` (`user_id`),
  461. KEY `up_active` (`up_active`)
  462. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
  463. -- --------------------------------------------------------
  464. --
  465. -- Table structure for table `users`
  466. --
  467. CREATE TABLE `users` (
  468. `user_id` int(3) NOT NULL auto_increment,
  469. `user_name` varchar(20) NOT NULL default '',
  470. `user_pass` varchar(33) NOT NULL,
  471. `user_email` varchar(255) NOT NULL default '',
  472. `user_admin` int(1) NOT NULL default '0',
  473. `user_tac` int(4) NOT NULL default '0',
  474. `user_ref` int(5) NOT NULL default '0',
  475. `user_signup` int(11) NOT NULL,
  476. `user_limitstarts` int(11) NOT NULL default '0',
  477. `user_limitends` int(11) NOT NULL default '0',
  478. `mail_announce` int(1) NOT NULL default '1',
  479. `mail_tickets` int(1) NOT NULL default '1',
  480. `mail_warning` int(1) NOT NULL default '1',
  481. `mail_over` int(1) NOT NULL default '1',
  482. `band_total` bigint(12) NOT NULL default '50000000000',
  483. `band_used` bigint(12) NOT NULL default '0',
  484. `hdd_total` bigint(12) NOT NULL default '3500000000',
  485. `hdd_used` bigint(12) NOT NULL default '0',
  486. PRIMARY KEY (`user_id`),
  487. UNIQUE KEY `user_name` (`user_name`)
  488. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=22 ;