diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-30 09:32:18 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-30 09:32:18 -0700 |
| commit | 59b5a0549635aa5c8320707cec75612746debdd0 (patch) | |
| tree | d1a6294420d028fe327a82b2213cbd744ce6fab4 /modules/gallery/helpers/login.php | |
| parent | ddf8734a414e4d426232e6dec9137eac8dcf0bb7 (diff) | |
Rename the login helper to auth. Create a login and logout helper function to allow for programmically login in and out.
Diffstat (limited to 'modules/gallery/helpers/login.php')
| -rw-r--r-- | modules/gallery/helpers/login.php | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/modules/gallery/helpers/login.php b/modules/gallery/helpers/login.php deleted file mode 100644 index cb961604..00000000 --- a/modules/gallery/helpers/login.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php defined("SYSPATH") or die("No direct script access."); -/** - * Gallery - a web based photo album viewer and editor - * Copyright (C) 2000-2009 Bharat Mediratta - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. - */ -class login_Core { - static function get_form($url) { - $form = new Forge($url, "", "post", array("id" => "g-login-form")); - $form->set_attr('class', "g-narrow"); - $group = $form->group("login")->label(t("Login")); - $group->input("name")->label(t("Username"))->id("g-username")->class(null); - $group->password("password")->label(t("Password"))->id("g-password")->class(null); - $group->inputs["name"]->error_messages("invalid_login", t("Invalid name or password")); - $group->submit("")->value(t("Login")); - return $form; - } -}
\ No newline at end of file |
