[Cs-cms-commits] SF.net SVN: cs-cms:[12] trunk/0.1/gacl
Status: Alpha
Brought to you by:
crazedsanity
From: <cra...@us...> - 2009-02-23 17:33:41
|
Revision: 12 http://cs-cms.svn.sourceforge.net/cs-cms/?rev=12&view=rev Author: crazedsanity Date: 2009-02-23 17:33:37 +0000 (Mon, 23 Feb 2009) Log Message: ----------- Some changes to "make it work" (yeah, it's still broken; the test just shows a blank screen). Modified Paths: -------------- trunk/0.1/gacl/admin/gacl_admin.inc.php trunk/0.1/gacl/gacl.class.php trunk/0.1/gacl/gacl.ini.php trunk/0.1/gacl/setup.php Modified: trunk/0.1/gacl/admin/gacl_admin.inc.php =================================================================== --- trunk/0.1/gacl/admin/gacl_admin.inc.php 2009-02-23 16:23:36 UTC (rev 11) +++ trunk/0.1/gacl/admin/gacl_admin.inc.php 2009-02-23 17:33:37 UTC (rev 12) @@ -51,7 +51,11 @@ } unset($config); } +else { + exit(__METHOD__ .": no config file (". $config_file .")"); +} + $gacl_api = new gacl_admin_api($gacl_options); $gacl = &$gacl_api; Modified: trunk/0.1/gacl/gacl.class.php =================================================================== --- trunk/0.1/gacl/gacl.class.php 2009-02-23 16:23:36 UTC (rev 11) +++ trunk/0.1/gacl/gacl.class.php 2009-02-23 17:33:37 UTC (rev 12) @@ -51,7 +51,7 @@ /* --- phpGACL Configuration path/file --- */ - var $config_file = './gacl.ini.php'; + var $config_file = 'gacl.ini.php'; /* --- Private properties --- @@ -108,7 +108,7 @@ * @param array An arry of options to oeverride the class defaults */ function gacl($options = NULL) { - + $this->config = dirname(__FILE__) .'/gacl.ini.php'; $available_options = array('db','debug','items_per_page','max_select_box_items','max_search_return_items','db_table_prefix','db_type','db_host','db_user','db_password','db_name','caching','force_cache_expire','cache_dir','cache_expire_time'); //Values supplied in $options array overwrite those in the config file. Modified: trunk/0.1/gacl/gacl.ini.php =================================================================== --- trunk/0.1/gacl/gacl.ini.php 2009-02-23 16:23:36 UTC (rev 11) +++ trunk/0.1/gacl/gacl.ini.php 2009-02-23 17:33:37 UTC (rev 12) @@ -14,11 +14,11 @@ ; ;Database ; -db_type = "mysql" +db_type = "postgres8" db_host = "localhost" -db_user = "root" +db_user = "postgres" db_password = "" -db_name = "gacl" +db_name = "buzzkill_cms" db_table_prefix = "" ; Modified: trunk/0.1/gacl/setup.php =================================================================== --- trunk/0.1/gacl/setup.php 2009-02-23 16:23:36 UTC (rev 11) +++ trunk/0.1/gacl/setup.php 2009-02-23 17:33:37 UTC (rev 12) @@ -1,8 +1,8 @@ <?php -$config_file = './gacl.ini.php'; +$config_file = dirname(__FILE__) .'/gacl.ini.php'; -require_once('./admin/gacl_admin.inc.php'); +require_once(dirname(__FILE__) .'/admin/gacl_admin.inc.php'); require_once(ADODB_DIR .'/adodb-xmlschema.inc.php'); $db_table_prefix = $gacl->_db_table_prefix; @@ -170,7 +170,7 @@ $schema->SetPrefix($db_table_prefix, FALSE); //set $underscore == FALSE // Build the SQL array -$schema->ParseSchema('schema.xml'); +$schema->ParseSchema(dirname(__FILE__) .'/schema.xml'); // maybe display this if $gacl->debug is true? if ($gacl->_debug) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |