- md5
- e4413bbe9bb8982fd0136a9cd11e6543
- sha1
- 7c60de10dc5922c766607146a871db87d0c50ab4
- sha256
- d18bbb707baf8ff85aa413fd76da466a85ec05f23b00e7e1c10fa5ef54c0ab69
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
<?php
/**
* @version $Id: admin.installer.html.php 85 2005-09-15 23:12:03Z eddieajau $
* @package Joomla
* @subpackage Installer
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );
function writableCell( $folder ) {
echo '<tr>';
echo '<td class="item">' . $folder . '/</td>';
echo '<td align="left">';
echo is_writable( $GLOBALS['mosConfig_absolute_path'] . '/' . $folder ) ? '<b><font color="green">Writeable</font></b>' : '<b><font color="red">Unwriteable</font></b>' . '</td>';
echo '</tr>';
}
/**
* @package Joomla
*/
class HTML_installer {
function showInstallForm( $title, $option, $element, $client = "", $p_startdir = "", $backLink="" ) {
?>
<script language="javascript" type="text/javascript">
function submitbutton3(pressbutton) {
var form = document.adminForm_dir;
// do field validation
if (form.userfile.value == ""){
alert( "Please select a directory" );
} else {
form.submit();
}
}
</script>
<form enctype="multipart/form-data" action="index2.php" method="post" name="filename">
<table class="adminheading">
<tr>
<th class="install">
<?php echo $title;?>
</th>
<td align="right" nowrap="true">
<?php echo $backLink;?>
</td>
</tr>
</table>
<table class="adminform">
<tr>
<th>
Upload Package File
</th>
</tr>
<tr>
<td align="left">
Package File:
<input class="text_area" name="userfile" type="file" size="70"/>
<input class="button" type="submit" value="Upload File & Install" />
</td>
</tr>
</table>
<input type="hidden" name="task" value="uploadfile"/>
<input type="hidden" name="option" value="<?php echo $option;?>"/>
<input type="hidden" name="element" value="<?php echo $element;?>"/>
<input type="hidden" name="client" value="<?php echo $client;?>"/>
</form>
<br />
<form enctype="multipart/form-data" action="index2.php" method="post" name="adminForm_dir">
<table class="adminform">
<tr>
<th>
Install from directory
</th>
</tr>
<tr>
<td align="left">
Install directory:
<input type="text" name="userfile" class="text_area" size="65" value="<?php echo $p_startdir; ?>"/>
<input type="button" class="button" value="Install" onclick="submitbutton3()" />
</td>
</tr>
</table>
<input type="hidden" name="task" value="installfromdir" />
<input type="hidden" name="option" value="<?php echo $option;?>"/>
<input type="hidden" name="element" value="<?php echo $element;?>"/>
<input type="hidden" name="client" value="<?php echo $client;?>"/>
</form>
<?php
}
/**
* @param string
* @param string
* @param string
* @param string
*/
function showInstallMessage( $message, $title, $url ) {
global $PHP_SELF;
?>
<table class="adminheading">
<tr>
<th class="install">
<?php echo $title; ?>
</th>
</tr>
</table>
<table class="adminform">
<tr>
<td align="left">
<strong><?php echo $message; ?></strong>
</td>
</tr>
<tr>
<td colspan="2" align="center">
[ <a href="<?php echo $url;?>" style="font-size: 16px; font-weight: bold">Continue ...</a> ]
</td>
</tr>
</table>
<?php
}
}
?>
The same content is in 7 releases, Joomla 1.0.3 to 1.0.11. See them all, or every version of this file.