From: Steve Sutton Date: Wed, 25 Feb 2015 14:11:10 +0000 (-0500) Subject: for member login output X-Git-Tag: v1.0.0^2~72 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=dc76962319d84d24209b495b5e37248ab79871c0;p=web%2FGaylordGolfMecca.git for member login output --- diff --git a/static/54.phtml b/static/54.phtml new file mode 100644 index 0000000..f850078 --- /dev/null +++ b/static/54.phtml @@ -0,0 +1,30 @@ +parseConfig(BASE . 'Toolkit/Members/config.ini', 'IniFile'); + +$class = 'Toolkit_Members_Auth'; +$form = isset($_GET['forgot']) ? 'passwordForm' : 'loginForm'; + +$authContainer = new Toolkit_Members_AuthContainer( + Toolkit_Database::getInstance(), + array( + 'table' => 'member', + 'usernamecol' => 'member_login', + 'passwordcol' => 'member_passwd', + 'db_fields' => array('member_id', 'member_name'), + 'cryptType' => 'none', + 'db_where' => 'new_member <> true AND active = true', + ) +); + +$memberAuth = new Toolkit_Members_Auth( + $root, + $authContainer, + array($class, $form), + true +); +$memberAuth->start(); +if ($memberAuth->getAuth()) { + header('Location: ' . BASE_URL . 'members-only-area/'); +} diff --git a/static/8.phtml b/static/8.phtml deleted file mode 100644 index 2851e3e..0000000 --- a/static/8.phtml +++ /dev/null @@ -1,30 +0,0 @@ -parseConfig(BASE . 'Toolkit/Members/config.ini', 'IniFile'); - -$class = 'Toolkit_Members_Auth'; -$form = isset($_GET['forgot']) ? 'passwordForm' : 'loginForm'; - -$authContainer = new Toolkit_Members_AuthContainer( - Toolkit_Database::getInstance(), - array( - 'table' => 'member', - 'usernamecol' => 'member_login', - 'passwordcol' => 'member_passwd', - 'db_fields' => array('member_id', 'member_name'), - 'cryptType' => 'none', - 'db_where' => 'new_member <> true AND active = true', - ) -); - -$memberAuth = new Toolkit_Members_Auth( - $root, - $authContainer, - array($class, $form), - true -); -$memberAuth->start(); -if ($memberAuth->getAuth()) { - header('Location: ' . BASE_URL . 'members-only-area/'); -} diff --git a/templates/template.html b/templates/template.html index fe3073c..33bd14d 100644 --- a/templates/template.html +++ b/templates/template.html @@ -45,36 +45,7 @@
-
-

Page Header

-
- toolboxTMP (26K) -
This is the imagecaption
-
-

Located in the exact center of Northern Michigan on the 45th parallel, Gaylord is unique because of its stunning surroundings, up north ambience and easy commuting access.

-

Located in the exact center of Northern Michigan on the 45th parallel, Gaylord is unique because of its stunning surroundings, up north ambience and easy commuting access.

-

Located in the exact center of Northern Michigan on the 45th parallel, Gaylord is unique because of its stunning surroundings, up north ambience and easy commuting access.

-
-
-

Header

-
- toolboxTMP (26K) -
This is the imagecaption
-
-

Located in the exact center of Northern Michigan on the 45th parallel, Gaylord is unique because of its stunning surroundings, up north ambience and easy commuting access.

-

Located in the exact center of Northern Michigan on the 45th parallel, Gaylord is unique because of its stunning surroundings, up north ambience and easy commuting access.

-

Located in the exact center of Northern Michigan on the 45th parallel, Gaylord is unique because of its stunning surroundings, up north ambience and easy commuting access.

-
-
-

Header

-
- toolboxTMP (26K) -
This is the imagecaption
-
-

Located in the exact center of Northern Michigan on the 45th parallel, Gaylord is unique because of its stunning surroundings, up north ambience and easy commuting access.

-

Located in the exact center of Northern Michigan on the 45th parallel, Gaylord is unique because of its stunning surroundings, up north ambience and easy commuting access.

-

Located in the exact center of Northern Michigan on the 45th parallel, Gaylord is unique because of its stunning surroundings, up north ambience and easy commuting access.

-
+ {toolboxContent:h}