Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Including SQL for table

  • Loading branch information...
commit 1769a078d6be971c2eec81f8925e95209a890abd 1 parent 4dd47ca
@deepwinter authored
Showing with 19 additions and 0 deletions.
  1. +10 −0 classes/confirmation.php
  2. +9 −0 sql/confirmations.sql
View
10 classes/confirmation.php
@@ -0,0 +1,10 @@
+<?
+
+Class confirmation {
+
+ /*
+ * Sends an email with a link that calls action 'confirm' on the class matching 'confirmation name'
+ */
+ public static function email($emailAddress, $confirmationName){
+ }
+}
View
9 sql/confirmations.sql
@@ -0,0 +1,9 @@
+CREATE TABLE `confirmations` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `confirmation_id` varchar(100) CHARACTER SET latin1 NOT NULL,
+ `controller` varchar(100) CHARACTER SET latin1 NOT NULL,
+ `action` varchar(100) CHARACTER SET latin1 NOT NULL,
+ `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `timeouthours` int(11) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
Please sign in to comment.
Something went wrong with that request. Please try again.