Annotation of /mambo/branches/4.6/installation/install.php
Parent Directory
|
Revision Log
Revision 154 - (view) (download)
| 1 : | root | 1 | <?php |
| 2 : | /** | ||
| 3 : | * @version $Id: install.php,v 1.5 2005/11/27 07:02:11 cauld Exp $ | ||
| 4 : | * @package Mambo | ||
| 5 : | * @copyright (C) 2000 - 2005 Miro International Pty Ltd | ||
| 6 : | * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL | ||
| 7 : | * Mambo is Free Software | ||
| 8 : | */ | ||
| 9 : | |||
| 10 : | if (file_exists( '../configuration.php' ) && filesize( '../configuration.php' ) > 10) { | ||
| 11 : | header( 'Location: ../index.php' ); | ||
| 12 : | exit(); | ||
| 13 : | } | ||
| 14 : | /** Include common.php */ | ||
| 15 : | include_once( 'common.php' ); | ||
| 16 : | function writableCell( $folder ) { | ||
| 17 : | echo "<tr>"; | ||
| 18 : | echo "<td class=\"item\">" . $folder . "/</td>"; | ||
| 19 : | echo "<td align=\"left\">"; | ||
| 20 : | csouza | 154 | echo is_writable( "../$folder" ) ? '<b><span class="green">'.T_('Writeable').'</span></b>' : '<b><span class="red">'.T_('Unwriteable').'</span></b>' . "</td>"; |
| 21 : | root | 1 | echo "</tr>"; |
| 22 : | } | ||
| 23 : | ?> | ||
| 24 : | <?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?> | ||
| 25 : | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
| 26 : | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
| 27 : | <head> | ||
| 28 : | csouza | 149 | <title><?php echo T_('Mambo - Web Installer') ?></title> |
| 29 : | root | 1 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> |
| 30 : | <link rel="shortcut icon" href="../../images/favicon.ico" /> | ||
| 31 : | <link rel="stylesheet" href="install.css" type="text/css" /> | ||
| 32 : | <script type="text/javascript"> | ||
| 33 : | <!-- | ||
| 34 : | var checkobj; | ||
| 35 : | |||
| 36 : | function agreesubmit(el){ | ||
| 37 : | checkobj=el; | ||
| 38 : | if (document.all||document.getElementById){ | ||
| 39 : | for (i=0;i<checkobj.form.length;i++){ //hunt down submit button | ||
| 40 : | var tempobj=checkobj.form.elements[i]; | ||
| 41 : | if(tempobj.type.toLowerCase()=="submit") | ||
| 42 : | tempobj.disabled=!checkobj.checked; | ||
| 43 : | } | ||
| 44 : | } | ||
| 45 : | } | ||
| 46 : | |||
| 47 : | function defaultagree(el){ | ||
| 48 : | if (!document.all&&!document.getElementById){ | ||
| 49 : | if (window.checkobj&&checkobj.checked) | ||
| 50 : | return true; | ||
| 51 : | else{ | ||
| 52 : | alert("Please read/accept license to continue installation"); | ||
| 53 : | return false; | ||
| 54 : | } | ||
| 55 : | } | ||
| 56 : | } | ||
| 57 : | //--> | ||
| 58 : | </script> | ||
| 59 : | </head> | ||
| 60 : | <body onload="document.adminForm.next.disabled=true;"> | ||
| 61 : | <div id="wrapper"> | ||
| 62 : | <div id="header"> | ||
| 63 : | <div id="mambo"><img src="header_install.png" alt="Mambo Installation" /></div> | ||
| 64 : | </div> | ||
| 65 : | </div> | ||
| 66 : | <div id="ctr" align="center"> | ||
| 67 : | <form action="install1.php" method="post" name="adminForm" id="adminForm" onSubmit="return defaultagree(this)"> | ||
| 68 : | <div class="install"> | ||
| 69 : | <div id="stepbar"> | ||
| 70 : | csouza | 149 | <div class="step-off"><?php echo T_('pre-installation check') ?></div> |
| 71 : | <div class="step-on"><?php echo T_('license') ?></div> | ||
| 72 : | <div class="step-off"><?php echo T_('step 1') ?></div> | ||
| 73 : | <div class="step-off"><?php echo T_('step 2') ?></div> | ||
| 74 : | <div class="step-off"><?php echo T_('step 3') ?></div> | ||
| 75 : | <div class="step-off"><?php echo T_('step 4') ?></div> | ||
| 76 : | root | 1 | </div> |
| 77 : | <div id="right"> | ||
| 78 : | csouza | 149 | <div id="step"><?php echo T_('license') ?></div> |
| 79 : | root | 1 | <div class="far-right"> |
| 80 : | <input class="button" type="submit" name="next" value="Next >>" disabled="disabled"/> | ||
| 81 : | </div> | ||
| 82 : | <div class="clr"></div> | ||
| 83 : | csouza | 149 | <h1><?php echo T_('GNU/GPL License:') ?></h1> |
| 84 : | root | 1 | <div class="licensetext"> |
| 85 : | csouza | 149 | <?php echo T_('<a href="http://www.mamboserver.com">Mambo </a> is Free Software released under the <a href="http://www.gnu.org/copyleft/gpl.html">GNU/GPL License </a>. |
| 86 : | <div class="error">*** To continue installing Mambo you must check the box under the license ***</div>') ?> | ||
| 87 : | |||
| 88 : | root | 1 | |
| 89 : | </div> | ||
| 90 : | <div class="clr"></div> | ||
| 91 : | <div class="license-form"> | ||
| 92 : | <div class="form-block" style="padding: 0px;"> | ||
| 93 : | <iframe src="gpl.txt" class="license" frameborder="0" scrolling="auto"></iframe> | ||
| 94 : | </div> | ||
| 95 : | </div> | ||
| 96 : | <div class="clr"></div> | ||
| 97 : | <div class="ctr"> | ||
| 98 : | <input type="checkbox" name="agreecheck" id="agreecheck" class="inputbox" onClick="agreesubmit(this)" /> | ||
| 99 : | <label for="agreecheck"> | ||
| 100 : | csouza | 149 | <?php echo T_('I understand that this software is released under the GNU/GPL License') ?></label> |
| 101 : | root | 1 | </div> |
| 102 : | <div class="clr"></div> | ||
| 103 : | </div> | ||
| 104 : | <div id="break"></div> | ||
| 105 : | <div class="clr"></div> | ||
| 106 : | <div class="clr"></div> | ||
| 107 : | </div> | ||
| 108 : | </form> | ||
| 109 : | </div> | ||
| 110 : | </body> | ||
| 111 : | </html> |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

