} if (!isset($_POST['update'])) { ?> <script> $(document).ready(function () { $("#installForm").validate(); }); $(document).ready(function () { $('#useLdap').change(function () { $('#ldapOptions').toggle(); }); }); </script> <?php if (!InstallUtils::configFileIsWriteable()) { ?> <h2><?php echo $string['updatefromversion'] . ' ' . $configObject->get('rogo_version') . ' to ' . $version; ?> </h2> <div><?php echo $string['warning1']; ?> </div> <div><?php echo $string['warning2']; ?> </div> <?php } elseif (!InstallUtils::configPathIsWriteable()) {