diff options
| author | Antonio Gallo <tonicucoz@gmail.com> | 2011-12-05 18:42:44 +0000 | 
|---|---|---|
| committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-12-05 18:42:44 +0000 | 
| commit | a1d2d486dc66ef10e8a26249e598eaf0670b2c9b (patch) | |
| tree | 8405b4cb8173f4eda5d2ae29581ea1bd073dd7a5 /h-source/Application/Views/Desktop/Users | |
| parent | e35ffa87229981ffa882963b1089a9493a00f1cd (diff) | |
prepared the system for mobile version
Diffstat (limited to 'h-source/Application/Views/Desktop/Users')
| -rwxr-xr-x | h-source/Application/Views/Desktop/Users/add.php | 72 | ||||
| -rw-r--r-- | h-source/Application/Views/Desktop/Users/change.php | 30 | ||||
| -rw-r--r-- | h-source/Application/Views/Desktop/Users/confirmation.php | 44 | ||||
| -rw-r--r-- | h-source/Application/Views/Desktop/Users/forgot.php | 57 | ||||
| -rwxr-xr-x | h-source/Application/Views/Desktop/Users/login.php | 67 | ||||
| -rwxr-xr-x | h-source/Application/Views/Desktop/Users/logout.php | 27 | ||||
| -rw-r--r-- | h-source/Application/Views/Desktop/Users/notice.php | 96 | 
7 files changed, 393 insertions, 0 deletions
| diff --git a/h-source/Application/Views/Desktop/Users/add.php b/h-source/Application/Views/Desktop/Users/add.php new file mode 100755 index 0000000..3e8de61 --- /dev/null +++ b/h-source/Application/Views/Desktop/Users/add.php @@ -0,0 +1,72 @@ +<?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> » <?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/Desktop/Users/change.php b/h-source/Application/Views/Desktop/Users/change.php new file mode 100644 index 0000000..c5fdb3b --- /dev/null +++ b/h-source/Application/Views/Desktop/Users/change.php @@ -0,0 +1,30 @@ +<?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/Desktop/Users/confirmation.php b/h-source/Application/Views/Desktop/Users/confirmation.php new file mode 100644 index 0000000..796fb1b --- /dev/null +++ b/h-source/Application/Views/Desktop/Users/confirmation.php @@ -0,0 +1,44 @@ +<?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> » 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/Desktop/Users/forgot.php b/h-source/Application/Views/Desktop/Users/forgot.php new file mode 100644 index 0000000..ad9e046 --- /dev/null +++ b/h-source/Application/Views/Desktop/Users/forgot.php @@ -0,0 +1,57 @@ +<?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> » <?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/Desktop/Users/login.php b/h-source/Application/Views/Desktop/Users/login.php new file mode 100755 index 0000000..c0c129d --- /dev/null +++ b/h-source/Application/Views/Desktop/Users/login.php @@ -0,0 +1,67 @@ +<?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/Desktop/Users/logout.php b/h-source/Application/Views/Desktop/Users/logout.php new file mode 100755 index 0000000..8916a8b --- /dev/null +++ b/h-source/Application/Views/Desktop/Users/logout.php @@ -0,0 +1,27 @@ +<?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/Desktop/Users/notice.php b/h-source/Application/Views/Desktop/Users/notice.php new file mode 100644 index 0000000..9322adf --- /dev/null +++ b/h-source/Application/Views/Desktop/Users/notice.php @@ -0,0 +1,96 @@ +<?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> » 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 | 
