In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
235 [In-Portal CMS] Optimization task always 2009-08-20 20:34 2010-07-22 15:06
Dmitry  
alex  
normal  
closed 5.0.0  
fixed  
 
none 5.1.0-B1  
0
0000235: Redo "config.php" into PHP format
Redo "config.php" into PHP format so it can used / read without the Application.

This is good for security and optimization purposes.

Format:
<?php

$_CONFIG['Database']['DBName'] = 'test';
$_CONFIG['Database']['License'] = 'test2';
We should support reading of both formats for at least 2 versions to make sure everyone has correct config format.
related to 0000630closed  (5.1.0)alex Move Config.php and Debug.php from root to system/ folder 
patch phpized_config_php_file.patch (6,600) 2010-03-24 08:43
http://tracker.in-portal.org/file_download.php?file_id=404&type=bug
patch phpized_config_php_file_v2.patch (7,123) 2010-04-13 13:20
http://tracker.in-portal.org/file_download.php?file_id=465&type=bug
Issue History
2010-07-22 15:06 alex Note Added: 0002564
2010-07-22 15:06 alex Status resolved => closed
2010-04-24 15:33 alex Note Added: 0001912
2010-04-24 15:33 alex Status reviewed and tested => resolved
2010-04-24 15:33 alex Fixed in Version => 5.1.0-B1
2010-04-24 15:33 alex Resolution open => fixed
2010-04-24 15:33 alex Assigned To !COMMUNITY => alex
2010-04-24 15:33 alex Changeset attached 5.1.x r13393
2010-04-13 13:48 Dmitry Note Added: 0001882
2010-04-13 13:48 Dmitry Status needs testing => reviewed and tested
2010-04-13 13:20 alex Note Added: 0001881
2010-04-13 13:20 alex Assigned To alex => !COMMUNITY
2010-04-13 13:20 alex Status needs work => needs testing
2010-04-13 13:20 alex File Added: phpized_config_php_file_v2.patch
2010-04-12 18:17 Dmitry Note Added: 0001871
2010-04-12 18:17 Dmitry Assigned To !COMMUNITY => alex
2010-04-12 18:17 Dmitry Status needs testing => needs work
2010-03-24 08:44 alex Time Estimate Removed 3 =>
2010-03-24 08:44 alex Note Added: 0001743
2010-03-24 08:44 alex Assigned To alex => !COMMUNITY
2010-03-24 08:44 alex Developer => alex
2010-03-24 08:44 alex Status needs work => needs testing
2010-03-24 08:43 alex File Added: phpized_config_php_file.patch
2010-03-24 06:23 alex Description Updated bug_revision_view_page.php?rev_id=414#r414
2010-03-24 05:17 alex Description Updated bug_revision_view_page.php?rev_id=413#r413
2010-03-19 11:30 Dmitry Relationship added related to 0000630
2010-01-12 11:06 alex Time Estimate Added 3
2010-01-12 11:01 alex Status active => needs work
2010-01-12 11:01 alex Additional Information Updated bug_revision_view_page.php?rev_id=357#r357
2009-10-06 14:25 alex Type bug report => task
2009-10-03 07:54 administrator Status reviewed and tested => active
2009-08-20 20:34 Dmitry New Issue
2009-08-20 20:34 Dmitry Status active => reviewed and tested
2009-08-20 20:34 Dmitry Assigned To => alex

Notes
(0001743)
alex   
2010-03-24 08:44   
Please also test upgrade, when old format will be converted to new format.
(0001871)
Dmitry   
2010-04-12 18:17   
Tested 3 scenarios:

1. Clean 5.1.0 installation - PASSED

2. Re-install with OLD type of file (converted to new) - PASSED

3. Upgrade from 5.0.x (and pre-5.0.x) to 5.1.0 - FAILED

config.php did not get converted to the new format, but upgrade and site still worked.

I think we should converting to a new format BEFORE the time of AFTER the SQLs while config.php is still writable?


DA.
(0001881)
alex   
2010-04-13 13:20   
Fixed, please test.
(0001882)
Dmitry   
2010-04-13 13:48   
Tested Good!
(0001912)
alex   
2010-04-24 15:33   
Fix committed to 5.1.x branch. Commit Message:

Fixes 0000235: Redo "config.php" into PHP format
(0002564)
alex   
2010-07-22 15:06   
Closing, since 5.1.0 release has been released.