segment the admin gui
[matches/MCTX3420.git] / testing / MCTXWeb / public_html / users / activate-account.php
diff --git a/testing/MCTXWeb/public_html/users/activate-account.php b/testing/MCTXWeb/public_html/users/activate-account.php
deleted file mode 100644 (file)
index 33bbd15..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php \r
-/*\r
-UserCake Version: 2.0.1\r
-http://usercake.com\r
-*/\r
-require_once("models/config.php");\r
-if (!securePage($_SERVER['PHP_SELF'])){die();}\r
-\r
-//Get token param\r
-if(isset($_GET["token"]))\r
-{      \r
-       $token = $_GET["token"];        \r
-       if(!isset($token))\r
-       {\r
-               $errors[] = lang("FORGOTPASS_INVALID_TOKEN");\r
-       }\r
-       else if(!validateActivationToken($token)) //Check for a valid token. Must exist and active must be = 0\r
-       {\r
-               $errors[] = lang("ACCOUNT_TOKEN_NOT_FOUND");\r
-       }\r
-       else\r
-       {\r
-               //Activate the users account\r
-               if(!setUserActive($token))\r
-               {\r
-                       $errors[] = lang("SQL_ERROR");\r
-               }\r
-       }\r
-}\r
-else\r
-{\r
-       $errors[] = lang("FORGOTPASS_INVALID_TOKEN");\r
-}\r
-\r
-if(count($errors) == 0) {\r
-       $successes[] = lang("ACCOUNT_ACTIVATION_COMPLETE");\r
-}\r
-\r
-require_once("models/header.php");\r
-\r
-echo "\r
-<body>\r
-<div id='wrapper'>\r
-<div id='top'><div id='logo'></div></div>\r
-<div id='content'>\r
-<h1>UserCake</h1>\r
-<h2>Activate Account</h2>\r
-\r
-<div id='left-nav'>";\r
-\r
-include("left-nav.php");\r
-\r
-echo "\r
-</div>\r
-<div id='main'>";\r
-\r
-echo resultBlock($errors,$successes);\r
-\r
-echo "\r
-</div>\r
-<div id='bottom'></div>\r
-</div>\r
-</body>\r
-</html>";\r
-\r
-?>\r

UCC git Repository :: git.ucc.asn.au