[Linpha-cvs] SF.net SVN: linpha: [4771] trunk/linpha2
Status: Inactive
Brought to you by:
bzrudi
From: <bz...@us...> - 2007-10-09 16:18:11
|
Revision: 4771 http://linpha.svn.sourceforge.net/linpha/?rev=4771&view=rev Author: bzrudi Date: 2007-10-09 09:18:08 -0700 (Tue, 09 Oct 2007) Log Message: ----------- "Add new Option to Installer 'Install Location'" Modified Paths: -------------- trunk/linpha2/ChangeLog trunk/linpha2/install/step10_postsettings.php trunk/linpha2/install/step11_finish.php Modified: trunk/linpha2/ChangeLog =================================================================== --- trunk/linpha2/ChangeLog 2007-10-09 15:35:23 UTC (rev 4770) +++ trunk/linpha2/ChangeLog 2007-10-09 16:18:08 UTC (rev 4771) @@ -1,5 +1,11 @@ 2007-10-09 bzrudi * Make Exiftool work with MAC OS!? ;-) + * Add new Option to Installer 'Install Location' from where you choose + if LinPHA will be installad public (Internet), or just local (Intranet). + This helps us to decide which operations to allow later. Think of image + tagging, rotating, deleting and so on. IMHO all this should be disabled + on public servers by default. + Config entry for this 'sys_public_installation' isn't used anywhere for now 2007-09-01 flo * worked some more on the maps plugin Modified: trunk/linpha2/install/step10_postsettings.php =================================================================== --- trunk/linpha2/install/step10_postsettings.php 2007-10-09 15:35:23 UTC (rev 4770) +++ trunk/linpha2/install/step10_postsettings.php 2007-10-09 16:18:08 UTC (rev 4771) @@ -78,7 +78,22 @@ </div> <br /> +<?php +echo "<h2>".i18n_install("Please Choose LinPHA2 Install Location")."</h2><hr>"; +echo i18n_install("Internet - Public available over the Internet.")."<br />"; +echo i18n_install("Intranet - Running In A Secure Local Network")."<br /><br />"; +?> +<div align="center"> + <div class="box4"> + <input type='radio' name='sys_public_installation' value='1' checked=checked> + <?php echo i18n_install("Internet"); ?> + <input type='radio' name='sys_public_installation' value='0' > + <?php echo i18n_install("Intranet"); ?> + </div> +</div> +<br /> + <?php $query = $linpha->db->Execute("SELECT option_value FROM ".LIN_PREFIX."config " . "WHERE option_name='sys_im_use_imagemagick'"); Modified: trunk/linpha2/install/step11_finish.php =================================================================== --- trunk/linpha2/install/step11_finish.php 2007-10-09 15:35:23 UTC (rev 4770) +++ trunk/linpha2/install/step11_finish.php 2007-10-09 16:18:08 UTC (rev 4771) @@ -79,7 +79,34 @@ echo success_msg(); } + /** + * save installation type internet/intranet + */ +echo "<br />".i18n_install("Saving Install Type (Internet/Intranet) To Database...").' '; +if( isset( $_POST['sys_public_installation'] ) ) +{ + $result = $linpha->db->Execute("INSERT INTO ".LIN_PREFIX."config " . + "(option_value, option_name) VALUES " . + "('".LinSql::linAddslashes('sys_public_installation')."', " . + "'".LinSql::linAddslashes($_POST['sys_public_installation'])."')"); + if(!$result) + { + echo failed_msg(); + } + else + { + echo success_msg(); + } +} +else +{ + echo failed_msg(); + echo "<br />".i18n_install("Error - No Value Specified!"); + $error_nr = 1; +} + +/** * save thumbnails default size */ echo "<br />".i18n_install("Saving Thumbnail Size To Database...").' '; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |