[ Index ] |
|
Code source de Mantis 1.1.0rc3 |
1 <?php 2 # Mantis - a php based bugtracking system 3 4 # Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org 5 # Copyright (C) 2002 - 2007 Mantis Team - mantisbt-dev@lists.sourceforge.net 6 7 # Mantis is free software: you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation, either version 2 of the License, or 10 # (at your option) any later version. 11 # 12 # Mantis is distributed in the hope that it will be useful, 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # GNU General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License 18 # along with Mantis. If not, see <http://www.gnu.org/licenses/>. 19 20 # -------------------------------------------------------- 21 # $Id: system_utils.php,v 1.9.2.1 2007-10-13 22:34:56 giallu Exp $ 22 # -------------------------------------------------------- 23 ?> 24 <?php 25 require_once ( dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'core.php' ); 26 ?> 27 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 28 <html> 29 <head> 30 <title>Mantis Administration - System Utilities</title> 31 <link rel="stylesheet" type="text/css" href="admin.css" /> 32 </head> 33 <body> 34 35 <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff"> 36 <tr class="top-bar"> 37 <td class="links"> 38 [ <a href="index.php">Back to Mantis Administration</a> ] 39 </td> 40 <td class="title"> 41 System Utilities 42 </td> 43 </tr> 44 </table> 45 <br /><br /> 46 47 <table width="80%" bgcolor="#222222" border="0" cellpadding="10" cellspacing="1"> 48 <tr><td bgcolor=\"#e8e8e8\" colspan=\"2\"><span class=\"title\">Upgrade Utilities</span></td></tr> 49 50 <!-- # Headings --> 51 <tr bgcolor="#ffffff"><th width="70%">Description</th><th width="30%">Execute</th></tr> 52 53 <!-- each row links to an upgrade 54 move database bug attachments to disk --> 55 <tr bgcolor="#ffffff"><td>Move attachments stored in database schema to disk files.</td><td><center> 56 <?php html_button( 'move_db2disk.php', 'Move Attachments to Disk', array( 'doc' => 'attachment') ); ?> 57 </center></td></tr> 58 59 <!-- move database project files to disk --> 60 <tr bgcolor="#ffffff"><td>Move project files stored in database schema to disk.</td><td><center> 61 <?php html_button( 'move_db2disk.php', 'Move Project Files to Disk', array( 'doc' => 'project') ); ?> 62 </center></td></tr> 63 64 <!-- move custom field content to standard field --> 65 <tr bgcolor="#ffffff"><td>Copy Custom Field to Standard Field.</td><td><center> 66 <form method="post" action="copy_field.php"> 67 From 68 <SELECT name="source_id"> 69 <?php 70 $t_custom_ids = custom_field_get_ids(); 71 foreach ( $t_custom_ids as $t_id ) { 72 printf("<OPTION VALUE=\"%d\">%s", $t_id, custom_field_get_field($t_id, 'name' ) ); 73 } 74 ?> 75 </SELECT> to 76 <SELECT name="dest_id"> 77 <?php 78 # @@@ should be expanded and configurable 79 # list matches exact field name from database 80 $t_dest_ids = array('fixed_in_version'); 81 foreach ( $t_dest_ids as $t_id ) { 82 printf("<OPTION VALUE=\"%s\">%s", $t_id, $t_id ); 83 } 84 ?> 85 </SELECT> 86 <input type="submit" class="button" value="Copy" /> 87 </form> 88 </center></td></tr> 89 90 <!-- Database Statistics --> 91 <tr bgcolor="#ffffff"><td>Show database statistics.</td><td><center> 92 <?php html_button( 'db_stats.php', 'Display', array() ); ?> 93 </center></td></tr> 94 95 </table> 96 </body> 97 </html>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 09:42:17 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |