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

