Просмотр файла install/step3.php

Размер файла: 8.96Kb
  1. <?php
  2. include '../inc/db.php';
  3. ?>
  4. <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD HTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
  5. <html lang="ru">
  6. <head>
  7. <meta http-equiv="content-Type" content="text/html; charset=UTF-8">
  8. <title>Установка</title>
  9. <link rel="shortcut icon" href="/favicon.ico">
  10. <link rel="stylesheet" href="/style.css" type="text/css">
  11. </head>
  12. <body>
  13. <div class="title">Мастер установки</div>
  14. <div class="msg">
  15. <?php
  16. mysql_query("CREATE TABLE IF NOT EXISTS `ban` (
  17. `id` int(255) NOT NULL AUTO_INCREMENT,
  18. `user` int(255) NOT NULL,
  19. `time` int(255) NOT NULL,
  20. `why` text COLLATE utf8_unicode_ci NOT NULL,
  21. PRIMARY KEY (`id`)
  22. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  23. ");
  24. mysql_query("CREATE TABLE IF NOT EXISTS `chat` (
  25. `id` int(255) NOT NULL AUTO_INCREMENT,
  26. `user` int(255) NOT NULL,
  27. `msg` text COLLATE utf8_unicode_ci NOT NULL,
  28. `time` int(255) NOT NULL,
  29. `room` int(12) NOT NULL,
  30. PRIMARY KEY (`id`)
  31. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  32. ");
  33. mysql_query("CREATE TABLE IF NOT EXISTS `forum` (
  34. `id` int(255) NOT NULL AUTO_INCREMENT,
  35. `name` text COLLATE utf8_unicode_ci NOT NULL,
  36. `msg` text COLLATE utf8_unicode_ci NOT NULL,
  37. `user` int(255) NOT NULL,
  38. `time` int(255) NOT NULL,
  39. `open` int(1) NOT NULL DEFAULT '1',
  40. `up` int(1) NOT NULL,
  41. `razdel` int(255) NOT NULL DEFAULT '0',
  42. PRIMARY KEY (`id`)
  43. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  44. ");
  45. mysql_query("CREATE TABLE IF NOT EXISTS `forum_komm` (
  46. `id` int(255) NOT NULL AUTO_INCREMENT,
  47. `msg` text COLLATE utf8_unicode_ci NOT NULL,
  48. `user` int(255) NOT NULL,
  49. `time` int(255) NOT NULL,
  50. `theme` int(255) NOT NULL,
  51. PRIMARY KEY (`id`)
  52. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  53. ");
  54. mysql_query("CREATE TABLE IF NOT EXISTS `forum_t` (
  55. `id` int(255) NOT NULL AUTO_INCREMENT,
  56. `name` text COLLATE utf8_unicode_ci NOT NULL,
  57. `opis` text COLLATE utf8_unicode_ci NOT NULL,
  58. `razdel` int(15) NOT NULL,
  59. PRIMARY KEY (`id`)
  60. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  61. ");
  62. mysql_query("CREATE TABLE IF NOT EXISTS `guestbook` (
  63. `id` int(255) NOT NULL AUTO_INCREMENT,
  64. `user` int(255) NOT NULL,
  65. `msg` varchar(512) COLLATE utf8_unicode_ci DEFAULT '-',
  66. `time` int(255) NOT NULL,
  67. PRIMARY KEY (`id`)
  68. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  69. ");
  70. mysql_query("CREATE TABLE IF NOT EXISTS `guests` (
  71. `id` int(255) NOT NULL AUTO_INCREMENT,
  72. `ip` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  73. `tel` text COLLATE utf8_unicode_ci NOT NULL,
  74. `time` int(255) NOT NULL,
  75. `click` int(255) NOT NULL,
  76. PRIMARY KEY (`id`)
  77. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  78. ");
  79. mysql_query("CREATE TABLE IF NOT EXISTS `jurnal` (
  80. `id` int(255) NOT NULL AUTO_INCREMENT,
  81. `time` int(255) NOT NULL,
  82. `msg` text COLLATE utf8_unicode_ci NOT NULL,
  83. `user` int(255) NOT NULL,
  84. `read` int(1) NOT NULL DEFAULT '0',
  85. PRIMARY KEY (`id`)
  86. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  87. ");
  88. mysql_query("CREATE TABLE IF NOT EXISTS `mail` (
  89. `id` int(255) NOT NULL AUTO_INCREMENT,
  90. `from` int(255) NOT NULL,
  91. `to` int(255) NOT NULL,
  92. `msg` text COLLATE utf8_unicode_ci NOT NULL,
  93. `time` int(255) NOT NULL,
  94. `read` int(1) NOT NULL DEFAULT '0',
  95. PRIMARY KEY (`id`)
  96. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  97. ");
  98. mysql_query("CREATE TABLE IF NOT EXISTS `mnen` (
  99. `id` int(255) NOT NULL AUTO_INCREMENT,
  100. `user` int(255) NOT NULL,
  101. `msg` text COLLATE utf8_unicode_ci NOT NULL,
  102. `time` int(255) NOT NULL,
  103. PRIMARY KEY (`id`)
  104. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  105. ");
  106. mysql_query("CREATE TABLE IF NOT EXISTS `news` (
  107. `id` int(255) NOT NULL AUTO_INCREMENT,
  108. `user` int(255) NOT NULL,
  109. `msg` text COLLATE utf8_unicode_ci NOT NULL,
  110. `time` int(255) NOT NULL,
  111. PRIMARY KEY (`id`)
  112. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  113. ");
  114. mysql_query("CREATE TABLE IF NOT EXISTS `news_komm` (
  115. `id` int(255) NOT NULL AUTO_INCREMENT,
  116. `user` int(255) NOT NULL,
  117. `msg` text CHARACTER SET utf8 NOT NULL,
  118. `time` int(255) NOT NULL,
  119. `nid` int(255) NOT NULL,
  120. PRIMARY KEY (`id`)
  121. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  122. ");
  123. mysql_query("CREATE TABLE IF NOT EXISTS `obmen` (
  124. `id` int(255) NOT NULL AUTO_INCREMENT,
  125. `name` text COLLATE utf8_unicode_ci NOT NULL,
  126. `msg` text COLLATE utf8_unicode_ci NOT NULL,
  127. `user` int(255) NOT NULL,
  128. `time` int(255) NOT NULL,
  129. `ras` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
  130. `razdel` int(255) NOT NULL DEFAULT '0',
  131. `type` text COLLATE utf8_unicode_ci NOT NULL,
  132. `nameras` text COLLATE utf8_unicode_ci NOT NULL,
  133. `ds` int(255) NOT NULL,
  134. PRIMARY KEY (`id`)
  135. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  136. ");
  137. mysql_query("CREATE TABLE IF NOT EXISTS `obmen_komm` (
  138. `id` int(255) NOT NULL AUTO_INCREMENT,
  139. `msg` text COLLATE utf8_unicode_ci NOT NULL,
  140. `user` int(255) NOT NULL,
  141. `time` int(255) NOT NULL,
  142. `file` int(255) NOT NULL,
  143. PRIMARY KEY (`id`)
  144. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  145. ");
  146. mysql_query("CREATE TABLE IF NOT EXISTS `obmen_t` (
  147. `id` int(255) NOT NULL AUTO_INCREMENT,
  148. `name` text COLLATE utf8_unicode_ci NOT NULL,
  149. `opis` text COLLATE utf8_unicode_ci NOT NULL,
  150. `razdel` int(15) NOT NULL,
  151. PRIMARY KEY (`id`)
  152. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  153. ");
  154. mysql_query("CREATE TABLE IF NOT EXISTS `rekl` (
  155. `id` int(255) NOT NULL AUTO_INCREMENT,
  156. `name` text COLLATE utf8_unicode_ci NOT NULL,
  157. `href` text COLLATE utf8_unicode_ci NOT NULL,
  158. `img` text COLLATE utf8_unicode_ci NOT NULL,
  159. `time` int(255) NOT NULL,
  160. `where` int(3) NOT NULL,
  161. PRIMARY KEY (`id`)
  162. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  163. ");
  164. mysql_query("CREATE TABLE IF NOT EXISTS `room` (
  165. `id` int(255) NOT NULL AUTO_INCREMENT,
  166. `name` text COLLATE utf8_unicode_ci NOT NULL,
  167. PRIMARY KEY (`id`)
  168. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  169. ");
  170. mysql_query("CREATE TABLE IF NOT EXISTS `user` (
  171. `id` int(255) NOT NULL AUTO_INCREMENT,
  172. `name` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  173. `pass` text COLLATE utf8_unicode_ci NOT NULL,
  174. `reg` int(255) NOT NULL,
  175. `gorod` text COLLATE utf8_unicode_ci NOT NULL,
  176. `email` text COLLATE utf8_unicode_ci NOT NULL,
  177. `tel` varchar(11) COLLATE utf8_unicode_ci NOT NULL,
  178. `tsel` text COLLATE utf8_unicode_ci NOT NULL,
  179. `zhel` text COLLATE utf8_unicode_ci NOT NULL,
  180. `aname` text COLLATE utf8_unicode_ci NOT NULL,
  181. `click` int(255) NOT NULL,
  182. `admin` int(1) NOT NULL DEFAULT '0',
  183. `pol` int(1) NOT NULL DEFAULT '1',
  184. `news` int(1) NOT NULL DEFAULT '0',
  185. `vote` int(255) NOT NULL,
  186. `famous` double NOT NULL,
  187. `rplus` int(255) NOT NULL,
  188. `online` int(255) NOT NULL,
  189. `time_theme` int(255) NOT NULL,
  190. `time_komm` int(255) NOT NULL,
  191. `time_obmen` int(255) NOT NULL,
  192. `time_obmen_komm` int(255) NOT NULL,
  193. `gname` text COLLATE utf8_unicode_ci NOT NULL,
  194. `moder` int(1) NOT NULL,
  195. `osebe` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  196. `ICQ` int(9) NOT NULL,
  197. `avatar` int(255) NOT NULL,
  198. `reg_bot` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Приветствуем новичка: [url=/ank.php?id={id}]{nick}\\[/url\\] :)',
  199. `ball` int(255) NOT NULL DEFAULT '0',
  200. `ksort` int(1) NOT NULL DEFAULT '0',
  201. `reply` varchar(256) COLLATE utf8_unicode_ci NOT NULL DEFAULT '[b]Автоответчик:[/b] Здравствуй, {name}! Меня сейчас нет на месте, я отвечу тебе, как только зайду на сайт. Спасибо за внимание :)',
  202. `reply_on` int(1) NOT NULL DEFAULT '0',
  203. `hier` varchar(256) COLLATE utf8_unicode_ci NOT NULL,
  204. PRIMARY KEY (`id`)
  205. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  206. ");
  207. mysql_query("CREATE TABLE IF NOT EXISTS `user_vote` (
  208. `id` int(255) NOT NULL AUTO_INCREMENT,
  209. `msg` text COLLATE utf8_unicode_ci NOT NULL,
  210. `name` text COLLATE utf8_unicode_ci NOT NULL,
  211. `user` int(255) NOT NULL DEFAULT '1',
  212. `v1` text COLLATE utf8_unicode_ci NOT NULL,
  213. `v2` text COLLATE utf8_unicode_ci NOT NULL,
  214. `v3` text COLLATE utf8_unicode_ci NOT NULL,
  215. `v4` text COLLATE utf8_unicode_ci NOT NULL,
  216. `v5` text COLLATE utf8_unicode_ci NOT NULL,
  217. `v6` text COLLATE utf8_unicode_ci NOT NULL,
  218. `time` int(255) NOT NULL,
  219. PRIMARY KEY (`id`)
  220. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  221. ");
  222. mysql_query("CREATE TABLE IF NOT EXISTS `user_votes` (
  223. `id` int(255) NOT NULL AUTO_INCREMENT,
  224. `vote` int(255) NOT NULL,
  225. `num` int(6) NOT NULL DEFAULT '1',
  226. `user` int(255) NOT NULL,
  227. PRIMARY KEY (`id`)
  228. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
  229. ");
  230. echo mysql_error().'Данные залиты! Выше не должно быть ошибки.<br><a href="step4.php">Далее</a>';
  231. ?>
  232. </div>
  233. <div class="title">Шаг 3</div>
  234. </body>
  235. </html>