aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views/Users
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Views/Users')
-rwxr-xr-xh-source/Application/Views/Users/add.php72
-rw-r--r--h-source/Application/Views/Users/change.php30
-rw-r--r--h-source/Application/Views/Users/confirmation.php44
-rw-r--r--h-source/Application/Views/Users/forgot.php57
-rwxr-xr-xh-source/Application/Views/Users/login.php67
-rwxr-xr-xh-source/Application/Views/Users/logout.php27
-rw-r--r--h-source/Application/Views/Users/notice.php96
7 files changed, 0 insertions, 393 deletions
diff --git a/h-source/Application/Views/Users/add.php b/h-source/Application/Views/Users/add.php
deleted file mode 100755
index 3e8de61..0000000
--- a/h-source/Application/Views/Users/add.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php if (!defined('EG')) die('Direct access not allowed!'); ?>
-
-<?php
-// h-source, a web software to build a community of people that want to share their hardware information.
-// Copyright (C) 2010 Antonio Gallo (h-source-copyright.txt)
-//
-// This file is part of h-source
-//
-// h-source 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 3 of the License, or
-// (at your option) any later version.
-//
-// h-source 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 h-source. If not, see <http://www.gnu.org/licenses/>.
-?>
-
- <div id="left">
-
- <div class="position_tree_box">
- <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> &raquo; <?php echo gtext("create new account");?>
- </div>
-
- <div class="new_account_title">
- <?php echo gtext("create new account");?>
- </div>
-
- <?php echo $notice;?>
-
- <form class='formClass' action='<?php echo $this->baseUrl."/users/add/$lang";?>' method='POST'>
-
- <div class='formEntry'>
- <span class='entryLabel'><?php echo gtext("choose the username");?> (<?php echo gtext("characters allowed");?>: a-z A-Z 0-9):</span>
- <?php echo Html_Form::input('username',$values['username']);?>
- </div>
-
- <div class='formEntry'>
- <span class='entryLabel'><?php echo gtext("your e-mail address");?> (<?php echo gtext("necessary to confirm the registration");?>):</span>
- <?php echo Html_Form::input('e_mail',$values['e_mail']);?>
- </div>
-
- <div class='formEntry'>
- <span class='entryLabel'><?php echo gtext("choose the password");?> (<?php echo gtext("characters allowed");?>: a-z A-Z 0-9 - _ !):</span>
- <?php echo Html_Form::password('password',$values['password']);?>
- </div>
-
- <div class='formEntry'>
- <span class='entryLabel'><?php echo gtext("confirm the password");?>:</span>
- <?php echo Html_Form::password('confirmation',$values['confirmation']);?>
- </div>
-
- <div class="captcha_box">
- <img src="<?php echo $this->baseUrl?>/image/captcha">
- </div>
-
- <div class='formEntry'>
- <span class='entryLabel'><?php echo gtext("write the code above");?>:</span>
- <input type="input" name="captcha" value="">
- </div>
-
- <div class='inputEntry'>
- <input id='insertAction' type='submit' name='insertAction' value='<?php echo gtext("create new account");?>'>
- </div>
-
- </form>
-
- </div> \ No newline at end of file
diff --git a/h-source/Application/Views/Users/change.php b/h-source/Application/Views/Users/change.php
deleted file mode 100644
index c5fdb3b..0000000
--- a/h-source/Application/Views/Users/change.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php if (!defined('EG')) die('Direct access not allowed!'); ?>
-
-<?php
-// h-source, a web software to build a community of people that want to share their hardware information.
-// Copyright (C) 2010 Antonio Gallo (h-source-copyright.txt)
-//
-// This file is part of h-source
-//
-// h-source 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 3 of the License, or
-// (at your option) any later version.
-//
-// h-source 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 h-source. If not, see <http://www.gnu.org/licenses/>.
-?>
-
- <div id="left">
-
- <div class="confirm_notice">
- <p>The link has expired</p>
- <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p>
- </div>
-
- </div> \ No newline at end of file
diff --git a/h-source/Application/Views/Users/confirmation.php b/h-source/Application/Views/Users/confirmation.php
deleted file mode 100644
index 796fb1b..0000000
--- a/h-source/Application/Views/Users/confirmation.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php if (!defined('EG')) die('Direct access not allowed!'); ?>
-
-<?php
-// h-source, a web software to build a community of people that want to share their hardware information.
-// Copyright (C) 2010 Antonio Gallo (h-source-copyright.txt)
-//
-// This file is part of h-source
-//
-// h-source 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 3 of the License, or
-// (at your option) any later version.
-//
-// h-source 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 h-source. If not, see <http://www.gnu.org/licenses/>.
-?>
-
- <div id="left">
-
- <div class="position_tree_box">
- <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> &raquo; confirmation
- </div>
-
- <?php if ($status_confirm) { ?>
-
- <div class="confirm_notice">
- <p>The account has been confirmed successfully!</p>
- <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p>
- </div>
-
- <?php } else { ?>
-
- <div class="confirm_notice">
- <p>The confirmation link has expired</p>
- <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p>
- </div>
-
- <?php } ?>
- </div> \ No newline at end of file
diff --git a/h-source/Application/Views/Users/forgot.php b/h-source/Application/Views/Users/forgot.php
deleted file mode 100644
index ad9e046..0000000
--- a/h-source/Application/Views/Users/forgot.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php if (!defined('EG')) die('Direct access not allowed!'); ?>
-
-<?php
-// h-source, a web software to build a community of people that want to share their hardware information.
-// Copyright (C) 2010 Antonio Gallo (h-source-copyright.txt)
-//
-// This file is part of h-source
-//
-// h-source 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 3 of the License, or
-// (at your option) any later version.
-//
-// h-source 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 h-source. If not, see <http://www.gnu.org/licenses/>.
-?>
-
- <div id="left">
-
- <div class="position_tree_box">
- <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> &raquo; <?php echo gtext("request new password");?>
- </div>
-
- <div class="new_account_title">
- <?php echo gtext("request new password");?>
- </div>
-
- <?php echo $notice;?>
-
- <form class='formClass' action='<?php echo $this->currPage."/$lang";?>' method='POST'>
-
- <div class='formEntry'>
- <span class='entryLabel'><?php echo gtext("write your username");?>:</span>
- <input type="input" name="username" value="">
- </div>
-
- <div class="captcha_box">
- <img src="<?php echo $this->baseUrl?>/image/captcha">
- </div>
-
- <div class='formEntry'>
- <span class='entryLabel'><?php echo gtext("write the code above");?>:</span>
- <input type="input" name="captcha" value="">
- </div>
-
- <div class='inputEntry'>
- <input id='insertAction' type='submit' name='forgotAction' value='<?php echo gtext("request new password");?>'>
- </div>
-
- </form>
-
- </div> \ No newline at end of file
diff --git a/h-source/Application/Views/Users/login.php b/h-source/Application/Views/Users/login.php
deleted file mode 100755
index c0c129d..0000000
--- a/h-source/Application/Views/Users/login.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php if (!defined('EG')) die('Direct access not allowed!'); ?>
-
-<?php
-// h-source, a web software to build a community of people that want to share their hardware information.
-// Copyright (C) 2010 Antonio Gallo (h-source-copyright.txt)
-//
-// This file is part of h-source
-//
-// h-source 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 3 of the License, or
-// (at your option) any later version.
-//
-// h-source 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 h-source. If not, see <http://www.gnu.org/licenses/>.
-?>
-
- <?php if ( strcmp($updating_flag,'no') === 0 ) { ?>
-
- <?php if (isset($flag)) { ?>
- <div class="login_note">
- Sorry.. you have to be logged if you want to insert a new device in the archive or modify an existing one..
- </div>
- <?php } ?>
-
- <?php echo $notice; ?>
-
- <div class="login_box">
- <form action = '<?php echo $action;?>' method = 'POST'>
-
- <table>
- <tr>
- <td>Username</td>
- <td><input class="login_username_input" type='text' name='username'></td>
- </tr>
- <tr>
- <td>Password</td>
- <td><input class="login_username_input" type='password' name='password'></td>
- </tr>
- <tr>
- <td><input type = 'submit' value = 'login'></td>
- </tr>
- </table>
-
- </form>
-
- <div class="manage_account_link_box">
- <a href="<?php echo $this->baseUrl."/users/add/$lang";?>"><?php echo gtext("create new account");?></a>
- </div>
-
- <div class="manage_account_link_box">
- <a href="<?php echo $this->baseUrl."/users/forgot/$lang";?>"><?php echo gtext("request new password");?></a>
- </div>
- </div>
-
- <?php } else { ?>
-
- <div class="login_note">
- Sorry, we are updating the website... it is no possible to log-in, register new accounts or request a new password. You will be able to log-in or create a new account as soon as possible. Thanks!
- </div>
-
- <?php } ?>
diff --git a/h-source/Application/Views/Users/logout.php b/h-source/Application/Views/Users/logout.php
deleted file mode 100755
index 8916a8b..0000000
--- a/h-source/Application/Views/Users/logout.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php if (!defined('EG')) die('Direct access not allowed!'); ?>
-
-<?php
-// h-source, a web software to build a community of people that want to share their hardware information.
-// Copyright (C) 2010 Antonio Gallo (h-source-copyright.txt)
-//
-// This file is part of h-source
-//
-// h-source 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 3 of the License, or
-// (at your option) any later version.
-//
-// h-source 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 h-source. If not, see <http://www.gnu.org/licenses/>.
-?>
-
- <div class="logout_box">
- <div><?php echo $notice;?></div>
-
- <div><a href="<?php echo $this->baseUrl."/users/login/$lang";?>">login</a></div>
- </div> \ No newline at end of file
diff --git a/h-source/Application/Views/Users/notice.php b/h-source/Application/Views/Users/notice.php
deleted file mode 100644
index 9322adf..0000000
--- a/h-source/Application/Views/Users/notice.php
+++ /dev/null
@@ -1,96 +0,0 @@
-<?php if (!defined('EG')) die('Direct access not allowed!'); ?>
-
-<?php
-// h-source, a web software to build a community of people that want to share their hardware information.
-// Copyright (C) 2010 Antonio Gallo (h-source-copyright.txt)
-//
-// This file is part of h-source
-//
-// h-source 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 3 of the License, or
-// (at your option) any later version.
-//
-// h-source 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 h-source. If not, see <http://www.gnu.org/licenses/>.
-?>
-
- <div id="left">
-
- <div class="position_tree_box">
- <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> &raquo; notice
- </div>
-
- <?php if ( isset($_SESSION['status']) ) { ?>
-
- <?php if ( strcmp($_SESSION['status'],'sent') === 0 ) { ?>
- <div class="confirm_notice">
- <p>An e-mail has been sent to your mailbox.</p>
- <p>If you have received no mail, then check inside the spam too</p>
- <p>Click on the confirmation link in the e-mail in order to confirm the registration of the new account.</p>
- <p>The confirmation link will expire in a hour.</p>
- <p>If you don't want to confirm the account registration then wait one hour and your username and e-mail will be deleted from the database.</p>
- <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p>
- </div>
-
- <?php } else if (strcmp($_SESSION['status'],'regerror') === 0) { ?>
-
- <div class="confirm_notice">
- <p>Registration failed</p>
- <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p>
- </div>
-
- <?php } else if (strcmp($_SESSION['status'],'sent_new') === 0) { ?>
-
- <div class="confirm_notice">
- <p>An e-mail has been sent to your mailbox.</p>
- <p>If you have received no mail, then check inside the spam too</p>
- <p>Click on the confirmation link in the e-mail in order to change the password of your account.</p>
- <p>The confirmation link will expire in a hour.</p>
- <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p>
- </div>
-
- <?php } else if (strcmp($_SESSION['status'],'sent_new_error') === 0) { ?>
-
- <div class="confirm_notice">
- <p>Registration failed</p>
- <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p>
- </div>
-
- <?php } else if (strcmp($_SESSION['status'],'sent_new_password') === 0) { ?>
-
- <div class="confirm_notice">
- <p>The new password has been sent to you by mail!</p>
- <p>If you have received no mail, then check inside the spam too</p>
- <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p>
- </div>
-
- <?php } else if (strcmp($_SESSION['status'],'sent_new_password_error') === 0) { ?>
-
- <div class="confirm_notice">
- <p>Operation failed</p>
- <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p>
- </div>
-
- <?php } else if (strcmp($_SESSION['status'],'deleted') === 0) { ?>
-
- <div class="confirm_notice">
- <p>Your account has been successfully deleted</p>
- <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p>
- </div>
-
- <?php } ?>
-
- <?php } else { ?>
-
- <div class="confirm_notice">
- <p>go to the <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">homepage</a></p>
- </div>
-
- <?php } ?>
- </div> \ No newline at end of file