Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revises Exponent menu and adds some additional methods to clear cache…
…s individually or all at once. Adds methods/menu items to try to fix some common database problems. Also moves ALL functions (found in Exponent menu) from the administration module to the controller. [#208 state:resolved][#179 state:resolved][#143]
- Loading branch information
Showing
10 changed files
with
666 additions
and
48 deletions.
There are no files selected for viewing
392 changes: 390 additions & 2 deletions
392
framework/modules/administration/controllers/administrationController.php
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
framework/modules/administration/views/administration/install_tables.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{* | ||
* Copyright (c) 2004-2011 OIC Group, Inc. | ||
* Written and Designed by James Hunt | ||
* | ||
* This file is part of Exponent | ||
* | ||
* Exponent 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. | ||
* | ||
* GPL: http://www.gnu.org/licenses/gpl.txt | ||
* | ||
*} | ||
|
||
{css unique="install-tables" corecss="tables"} | ||
|
||
{/css} | ||
|
||
<div class="form_header"> | ||
<h1>Installing and Upgrading Database Tables</h1> | ||
<p> | ||
{$_TR.form_header} | ||
</p> | ||
</div> | ||
<table cellpadding="2" cellspacing="0" width="100%" border="0" class="exp-skin-table"> | ||
<thead> | ||
<tr> | ||
<th>Table Name</th> | ||
<th>Status</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{foreach from=$status key=table item=statusnum} | ||
<tr class="{cycle values='odd,even'}"> | ||
<td> | ||
{$table} | ||
</td> | ||
<td> | ||
{if $statusnum == $smarty.const.TMP_TABLE_EXISTED} | ||
<div style="color: blue; font-weight: bold"> | ||
Exists | ||
</div> | ||
{elseif $statusnum == $smarty.const.TMP_TABLE_INSTALLED} | ||
<div style="color: green; font-weight: bold"> | ||
Succeeded | ||
</div> | ||
{elseif $statusnum == $smarty.const.TMP_TABLE_FAILED} | ||
<div style="color: red; font-weight: bold"> | ||
Failed | ||
</div> | ||
{elseif $statusnum == $smarty.const.TMP_TABLE_ALTERED} | ||
<div style="color: green; font-weight: bold"> | ||
Altered Existing | ||
</div> | ||
{elseif $statusnum == $smarty.const.TABLE_ALTER_FAILED} | ||
<div style="color: red; font-weight: bold"> | ||
Altering Failed | ||
</div> | ||
{/if} | ||
</td> | ||
</tr> | ||
{/foreach} | ||
<tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
framework/modules/administration/views/administration/optimize_database.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{* | ||
* Copyright (c) 2004-2011 OIC Group, Inc. | ||
* Written and Designed by James Hunt | ||
* | ||
* This file is part of Exponent | ||
* | ||
* Exponent 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. | ||
* | ||
* GPL: http://www.gnu.org/licenses/gpl.txt | ||
* | ||
*} | ||
|
||
{css unique="optimize-database" corecss="tables"} | ||
|
||
{/css} | ||
|
||
<h1>Optimized the Database Tables</h1> | ||
<table class="exp-skin-table" cellspacing="0" cellpadding="0" border="0" width="100%"> | ||
<thead> | ||
<tr> | ||
<th>Table Name</th> | ||
<th>Size of Data (kb)</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{foreach from=$before key=table item=info} | ||
<tr class="{cycle values="even, odd"}"> | ||
<td>{$table}</td> | ||
<td align="right">{math format="%.3f" equation="x / 1024" x=$info->data_total} {$_TR.kb}</td> | ||
</tr> | ||
{/foreach} | ||
</tbody> | ||
</table> |
24 changes: 24 additions & 0 deletions
24
framework/modules/administration/views/administration/upload_extension.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{* | ||
* Copyright (c) 2004-2011 OIC Group, Inc. | ||
* Written and Designed by James Hunt | ||
* | ||
* This file is part of Exponent | ||
* | ||
* Exponent 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. | ||
* | ||
* GPL: http://www.gnu.org/licenses/gpl.txt | ||
* | ||
*} | ||
|
||
<div class="info-header"> | ||
<div class="related-actions"> | ||
{help text="Get Help Uploading New Extensions" module="upload-extension"} | ||
</div> | ||
<h1>Upload new Extension</h1> | ||
</div> | ||
<div class="form_header"><h3>This form allows you to upload modules, themes, plugins, and views to the website. After you upload an archive containing an extension (or more) you will be shown a pre-installation summary page, outlining exactly what files will be installed where, and what each file contains (for security reasons).</h3></div> | ||
{$form_html} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.