added the SQL and a minor comment change

This commit is contained in:
wclouser%mozilla.com 2006-07-18 05:15:43 +00:00
Родитель e7d6fa4475
Коммит 55185a63d4
4 изменённых файлов: 50 добавлений и 1 удалений

Просмотреть файл

@ -23,7 +23,9 @@ values.
2) Copy config/defines.php.default to defines.php and fill out appropriate
values.
3) If the app isn't installed on the root of the webserver (ie. it's in
3) Run config/sql/init.php
4) If the app isn't installed on the root of the webserver (ie. it's in
http://server.com/folder and not just http://server.com/) you may have to add
RewriteBase rules to /.htaccess and /webroot/.htaccess

Просмотреть файл

@ -0,0 +1,38 @@
-- MySQL dump 10.9
--
-- Host: localhost Database: firefox_survey
-- ------------------------------------------------------
-- Server version 4.1.20
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int(11) NOT NULL auto_increment,
`firstname` varchar(255) NOT NULL default '',
`lastname` varchar(255) NOT NULL default '',
`email` varchar(255) NOT NULL default '',
`enabled` int(1) NOT NULL default '1',
`created` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

Просмотреть файл

Просмотреть файл

@ -1,15 +1,24 @@
<?php
// Used to send mail
vendor('mail/mail');
class UsersController extends AppController {
var $name = 'Users';
var $helpers = array('html');
/**
* Nothing to see here
*/
function index()
{
}
/**
* Adding users to the database
*/
function add()
{
if (empty($this->params['data']))