Skip to content

Commit

Permalink
MantisBT Modern UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
syncguru committed Jul 7, 2014
1 parent 5458f70 commit b795b25
Show file tree
Hide file tree
Showing 204 changed files with 21,102 additions and 17,729 deletions.
31 changes: 16 additions & 15 deletions account_delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,19 @@
# Only allow users to delete their own accounts if allow_account_delete = ON or
# the user has permission to manage user accounts.
if( OFF == config_get( 'allow_account_delete' ) &&
!access_has_global_level( config_get( 'manage_user_threshold' ) ) ) {
print_header_redirect( 'account_page.php' );
!access_has_global_level( config_get( 'manage_user_threshold' ) ) ) {
print_header_redirect( 'account_page.php' );
}

# check that we are not deleting the last administrator account
$t_admin_threshold = config_get_global( 'admin_site_threshold' );
if( current_user_is_administrator() &&
user_count_level( $t_admin_threshold ) <= 1 ) {
trigger_error( ERROR_USER_CHANGE_LAST_ADMIN, ERROR );
user_count_level( $t_admin_threshold ) <= 1 ) {
trigger_error( ERROR_USER_CHANGE_LAST_ADMIN, ERROR );
}

helper_ensure_confirmed( lang_get( 'confirm_delete_msg' ),
lang_get( 'delete_account_button' ) );
lang_get( 'delete_account_button' ) );

form_security_purge( 'account_delete' );

Expand All @@ -94,18 +94,19 @@

user_delete( $t_user_id );

html_page_top1();
html_page_top2a();
layout_page_header();

layout_page_begin();
?>

<br />
<div>
<?php
echo lang_get( 'account_removed_msg' ) . '<br />';
print_bracket_link( config_get( 'logout_redirect_page' ), lang_get( 'proceed' ) );
?>
</div>
<div class="col-md-12 col-sm-12">
<div class="space-10"></div>
<?php
echo lang_get( 'account_removed_msg' ) . '<br />';
print_link( config_get( 'logout_redirect_page' ), lang_get( 'proceed' ),
false, 'btn btn-primary btn-white btn-round');
?>
</div>

<?php
html_page_bottom1a();
layout_page_end();
6 changes: 4 additions & 2 deletions account_manage_columns_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
require_api( 'html_api.php' );
require_api( 'lang_api.php' );

html_page_top( lang_get( 'manage_columns_config' ) );
layout_page_header( lang_get( 'manage_columns_config' ) );

layout_page_begin();

current_user_ensure_unprotected();

Expand All @@ -56,4 +58,4 @@
define( 'MANAGE_COLUMNS_INC_ALLOW', true );
include ( dirname( __FILE__ ) . '/manage_columns_inc.php' );

html_page_bottom();
layout_page_end();
319 changes: 173 additions & 146 deletions account_page.php

Large diffs are not rendered by default.

566 changes: 322 additions & 244 deletions account_prefs_inc.php

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions account_prefs_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@
define( 'ACCOUNT_PREFS_INC_ALLOW', true );
include( dirname( __FILE__ ) . '/account_prefs_inc.php' );

html_page_top( lang_get( 'change_preferences_link' ) );
layout_page_header( lang_get( 'change_preferences_link' ) );

layout_page_begin();

edit_account_prefs();

html_page_bottom();
layout_page_end();
6 changes: 4 additions & 2 deletions account_prefs_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,10 @@

form_security_purge( 'account_prefs_update' );

html_page_top( null, $f_redirect_url );
layout_page_header( null, $f_redirect_url );

layout_page_begin();

html_operation_successful( $f_redirect_url );

html_page_bottom();
layout_page_end();
136 changes: 70 additions & 66 deletions account_prof_edit_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
require_api( 'string_api.php' );

if( !config_get( 'enable_profiles' ) ) {
trigger_error( ERROR_ACCESS_DENIED, ERROR );
trigger_error( ERROR_ACCESS_DENIED, ERROR );
}

auth_ensure_user_authenticated();
Expand All @@ -61,81 +61,85 @@
$f_profile_id = gpc_get_int( 'profile_id' );

if( profile_is_global( $f_profile_id ) ) {
access_ensure_global_level( config_get( 'manage_global_profile_threshold' ) );
access_ensure_global_level( config_get( 'manage_global_profile_threshold' ) );

$t_row = profile_get_row( ALL_USERS, $f_profile_id );
$t_row = profile_get_row( ALL_USERS, $f_profile_id );
} else {
$t_row = profile_get_row( auth_get_current_user_id(), $f_profile_id );
$t_row = profile_get_row( auth_get_current_user_id(), $f_profile_id );
}

extract( $t_row, EXTR_PREFIX_ALL, 'v' );

html_page_top();
layout_page_header();

layout_page_begin( 'manage_overview_page.php' );

if( profile_is_global( $f_profile_id ) ) {
print_manage_menu();
print_manage_menu( 'manage_prof_menu_page.php' );
}
?>

<?php # Edit Profile Form BEGIN ?>
<br />
<div>
<form method="post" action="account_prof_update.php">
<?php echo form_security_field( 'profile_update' )?>
<input type="hidden" name="action" value="update" />
<table class="width75" cellspacing="1">
<tr>
<td class="form-title">
<input type="hidden" name="profile_id" value="<?php echo $v_id ?>" />
<?php echo lang_get( 'edit_profile_title' ) ?>
</td>
<td class="right">
<?php
if( !profile_is_global( $f_profile_id ) ) {
print_account_menu();
}
?>
</td>
</tr>
<tr class="row-1">
<th class="category" width="25%">
<span class="required">*</span><?php echo lang_get( 'platform' ) ?>
</th>
<td width="75%">
<input type="text" name="platform" size="32" maxlength="32" value="<?php echo string_attribute( $v_platform ) ?>" />
</td>
</tr>
<tr class="row-2">
<th class="category">
<span class="required">*</span><?php echo lang_get( 'os' ) ?>
</th>
<td>
<input type="text" name="os" size="32" maxlength="32" value="<?php echo string_attribute( $v_os ) ?>" />
</td>
</tr>
<tr class="row-1">
<th class="category">
<span class="required">*</span><?php echo lang_get( 'os_version' ) ?>
</th>
<td>
<input type="text" name="os_build" size="16" maxlength="16" value="<?php echo string_attribute( $v_os_build ) ?>" />
</td>
</tr>
<tr class="row-2">
<th class="category">
<?php echo lang_get( 'additional_description' ) ?>
</th>
<td>
<textarea name="description" cols="60" rows="8"><?php echo string_textarea( $v_description ) ?></textarea>
</td>
</tr>
<tr>
<td class="center" colspan="2">
<input type="submit" class="button" value="<?php echo lang_get( 'update_profile_button' ) ?>" />
</td>
</tr>
</table>
</form>
</div>
<div class="col-md-12 col-sm-12">
<div class="space-10"></div>
<form method="post" action="account_prof_update.php">
<div class="widget-box widget-color-blue2">
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-user"></i>
<?php echo lang_get('edit_profile_title') ?>
</h4>
</div>

<div class="widget-body">
<div class="widget-main no-padding">
<div class="table-responsive">
<table class="table table-striped table-bordered table-condensed">
<?php echo form_security_field( 'profile_update' )?>
<input type="hidden" name="action" value="update" />
<input type="hidden" name="profile_id" value="<?php echo $v_id ?>" />
<tr>
<th class="category" width="25%">
<span class="required">*</span><?php echo lang_get( 'platform' ) ?>
</th>
<td width="75%">
<input type="text" name="platform" size="32" maxlength="32" value="<?php echo string_attribute( $v_platform ) ?>" />
</td>
</tr>
<tr>
<th class="category">
<span class="required">*</span><?php echo lang_get( 'os' ) ?>
</th>
<td>
<input type="text" name="os" size="32" maxlength="32" value="<?php echo string_attribute( $v_os ) ?>" />
</td>
</tr>
<tr>
<th class="category">
<span class="required">*</span><?php echo lang_get( 'os_version' ) ?>
</th>
<td>
<input type="text" name="os_build" size="16" maxlength="16" value="<?php echo string_attribute( $v_os_build ) ?>" />
</td>
</tr>
<tr>
<th class="category">
<?php echo lang_get( 'additional_description' ) ?>
</th>
<td>
<textarea class="form-control" name="description" cols="60" rows="8"><?php echo string_textarea( $v_description ) ?></textarea>
</td>
</tr>
</table>
</div>
</div>
<div class="widget-toolbox padding-8 clearfix">
<span class="required pull-right"> * <?php echo lang_get( 'required' ) ?></span>
<input type="submit" class="btn btn-primary btn-white btn-round" value="<?php echo lang_get( 'update_profile_button' ) ?>" />
</div>
</div>
</div>
</form>
</div>
<?php
html_page_bottom();
layout_page_end();
Loading

0 comments on commit b795b25

Please sign in to comment.