mirror of
https://github.com/e107inc/e107.git
synced 2025-04-19 20:21:51 +02:00
Added lan definitions to snapshot creator
This commit is contained in:
parent
c973e27a49
commit
063e2260a5
@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_admin/fileinspector.php,v $
|
||||
| $Revision: 1.7 $
|
||||
| $Date: 2006-12-19 21:33:05 $
|
||||
| $Revision: 1.8 $
|
||||
| $Date: 2007-03-19 17:27:26 $
|
||||
| $Author: sweetas $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@ -656,8 +656,8 @@ class file_inspector {
|
||||
$data .= "| GNU General Public License (http://gnu.org).\n";
|
||||
$data .= "|\n";
|
||||
$data .= "| \$Source: /cvs_backup/e107_0.8/e107_admin/fileinspector.php,v $\n";
|
||||
$data .= "| \$Revision: 1.7 $\n";
|
||||
$data .= "| \$Date: 2006-12-19 21:33:05 $\n";
|
||||
$data .= "| \$Revision: 1.8 $\n";
|
||||
$data .= "| \$Date: 2007-03-19 17:27:26 $\n";
|
||||
$data .= "| \$Author: sweetas $\n";
|
||||
$data .= "+----------------------------------------------------------------------------+\n";
|
||||
$data .= "*/\n\n";
|
||||
@ -704,16 +704,16 @@ class file_inspector {
|
||||
<form action='".e_SELF."' method='post' id='main_page'>
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<tr>
|
||||
<td class='fcaption'>Snapshot Created</td>
|
||||
<td class='fcaption'>".FS_LAN_10."</td>
|
||||
</tr>";
|
||||
|
||||
$text .= "<tr>
|
||||
<td class='forumheader3' style='text-align:center'>
|
||||
The snapshot was successfully created.
|
||||
".FS_LAN_11."
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='text-align:center' class='forumheader'>".$rs -> form_button('submit', 'main_page', 'Return To Main Page')."</td>
|
||||
<td style='text-align:center' class='forumheader'>".$rs -> form_button('submit', 'main_page', '".FS_LAN_12."')."</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
@ -724,12 +724,12 @@ class file_inspector {
|
||||
<form action='".e_SELF."?".e_QUERY."' method='post' id='snapshot'>
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<tr>
|
||||
<td class='fcaption' colspan='2'>Create Snapshot</td>
|
||||
<td class='fcaption' colspan='2'>".FS_LAN_1."</td>
|
||||
</tr>";
|
||||
|
||||
$text .= "<tr>
|
||||
<td class='forumheader3' style='width:50%'>
|
||||
Absolute path of root directory to create image from:
|
||||
".FS_LAN_2.":
|
||||
</td>
|
||||
<td class='forumheader3' style='width:50%'>
|
||||
<input class='tbox' type='text' name='snapshot_path' size='60' value='".(isset($_POST['snapshot_path']) ? $_POST['snapshot_path'] : $this -> root_dir)."' />
|
||||
@ -737,11 +737,11 @@ class file_inspector {
|
||||
|
||||
<tr>
|
||||
<td class='forumheader3' style='width: 35%'>
|
||||
Create snapshot for plugin:
|
||||
".FS_LAN_3."
|
||||
</td>
|
||||
<td colspan='2' class='forumheader3' style='width: 65%'>
|
||||
<select name='plugin' class='tbox'>
|
||||
<option value='off' ".($_POST['plugin'] == 'off' ? "selected='selected'" : "").">Select...</option>";
|
||||
<option value='off' ".($_POST['plugin'] == 'off' ? "selected='selected'" : "").">".FS_LAN_4."</option>";
|
||||
|
||||
$handle = opendir(e_PLUGIN);
|
||||
while (false !== ($readdir = readdir($handle))) {
|
||||
@ -762,23 +762,23 @@ class file_inspector {
|
||||
|
||||
<tr>
|
||||
<td class='forumheader3' style='width: 35%'>
|
||||
Create snapshot of current or deprecated files:
|
||||
".FS_LAN_5.":
|
||||
</td>
|
||||
<td colspan='2' class='forumheader3' style='width: 65%'>
|
||||
<input type='radio' name='snaptype' value='current'".($_POST['snaptype'] == 'current' || !isset($_POST['snaptype']) ? " checked='checked'" : "")." /> Current
|
||||
<input type='radio' name='snaptype' value='deprecated'".($_POST['snaptype'] == 'deprecated' ? " checked='checked'" : "")." /> Deprecated
|
||||
<input type='radio' name='snaptype' value='current'".($_POST['snaptype'] == 'current' || !isset($_POST['snaptype']) ? " checked='checked'" : "")." /> ".FS_LAN_6."
|
||||
<input type='radio' name='snaptype' value='deprecated'".($_POST['snaptype'] == 'deprecated' ? " checked='checked'" : "")." /> ".FS_LAN_7."
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td class='forumheader' style='text-align:center' colspan='2'>".$rs -> form_button('submit', 'create_snapshot', 'Create Snapshot')."</td>
|
||||
<td class='forumheader' style='text-align:center' colspan='2'>".$rs -> form_button('submit', 'create_snapshot', FS_LAN_8)."</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>";
|
||||
|
||||
$ns -> tablerender('Snapshot', $text);
|
||||
$ns -> tablerender(FS_LAN_9, $text);
|
||||
|
||||
}
|
||||
|
||||
|
@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_languages/English/admin/help/fileinspector.php,v $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2007-03-19 17:03:14 $
|
||||
| $Revision: 1.4 $
|
||||
| $Date: 2007-03-19 17:27:38 $
|
||||
| $Author: sweetas $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@ -42,6 +42,9 @@ $ns -> tablerender("File Key", $text);
|
||||
$text = "The file inspector scans and analyses the files on your sites server. When the inspector encounters
|
||||
an e107 core file, it checks it for file consistency to make sure it isn't corrupted.";
|
||||
|
||||
$text .= "<br /><br />
|
||||
<a href='".e_SELF."?create'>Click here to create a snapshot of your own plugins files for use in file inspector.</a>";
|
||||
|
||||
if ($pref['developer']) {
|
||||
$text .= "<br /><br />
|
||||
The additional string matching tool (developer mode only) enables you to scan the files on your server for text strings
|
||||
|
@ -4,8 +4,8 @@
|
||||
| e107 website system - Language File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_languages/English/admin/lan_fileinspector.php,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2006-12-19 01:55:23 $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2007-03-19 17:27:38 $
|
||||
| $Author: sweetas $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@ -74,4 +74,18 @@ define("FR_LAN_28", "Known insecure files");
|
||||
define("FR_LAN_29", "Total files matched");
|
||||
define("FR_LAN_30", "Total lines matched");
|
||||
|
||||
|
||||
define("FS_LAN_1", "Create Snapshot");
|
||||
define("FS_LAN_2", "Absolute path of root directory to create image from");
|
||||
define("FS_LAN_3", "Create snapshot for plugin: (Your plugin will be listed when a writable e_inspect.php file exists in your plugins root directory.)");
|
||||
define("FS_LAN_4", "Select...");
|
||||
define("FS_LAN_5", "Create snapshot of current or deprecated files");
|
||||
define("FS_LAN_6", "Current");
|
||||
define("FS_LAN_7", "Deprecated");
|
||||
define("FS_LAN_8", "Create Snapshot");
|
||||
define("FS_LAN_9", "Snapshot");
|
||||
define("FS_LAN_10", "Snapshot Created");
|
||||
define("FS_LAN_11", "The snapshot was successfully created.");
|
||||
define("FS_LAN_12", "Return To Main Page");
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user