View of /mambo/trunk/administrator/components/com_installer/admin.installer.html.php
Parent Directory
|
Revision Log
Revision 1 -
(download)
(annotate)
Tue Dec 13 03:45:47 2005 UTC (7 years, 6 months ago) by root
File size: 3395 byte(s)
Tue Dec 13 03:45:47 2005 UTC (7 years, 6 months ago) by root
File size: 3395 byte(s)
Initial repository layout
<?php /** * @version $Id: admin.installer.html.php,v 1.1 2005/07/22 01:52:21 eddieajau Exp $ * @package Mambo * @subpackage Installer * @copyright (C) 2000 - 2005 Miro International Pty Ltd * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * Mambo is Free Software */ /** ensure this file is being included by a parent file */ defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 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 Mambo */ 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 } } ?>
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

