|
From: <ken...@us...> - 2008-10-25 23:03:35
|
Revision: 794
http://andro.svn.sourceforge.net/andro/?rev=794&view=rev
Author: kendowns
Date: 2008-10-25 23:03:30 +0000 (Sat, 25 Oct 2008)
Log Message:
-----------
Small Change. The file generated/appinfo.php is written during a build. I added the key "group_login" to identify the effective group ID of anonymous users. Normally that id is generated when people login. If they do not login, it is blank, and there is no way to find it. Now there is a place to find it.
Modified Paths:
--------------
trunk/andro/application/androBuild.php
Modified: trunk/andro/application/androBuild.php
===================================================================
--- trunk/andro/application/androBuild.php 2008-10-25 18:40:34 UTC (rev 793)
+++ trunk/andro/application/androBuild.php 2008-10-25 23:03:30 UTC (rev 794)
@@ -8564,18 +8564,28 @@
function CodeGenerate_Info() {
$this->LogStage("Generating Application information files.");
$this->LogEntry("Generating Info file: generated/appinfo.php");
- global $parm;
- $localhost_suffix=$this->zzArraySafe($parm,'LOCALHOST_SUFFIX');
+ global $parm;
+ # KFD 10/25/08, write out name of effective group for the
+ # $LOGIN group
+ $app = $parm['APP'];
+ if(isset($parm['INST'])) $app.='_'.$parm['INST'];
+ $dbres = $this->SQLRead("Select group_id_eff from zdd.groups_eff
+ where grouplist = '$app'");
+ $row = pg_fetch_all($dbres);
+ $group_eff = $row[0]['group_id_eff'];
+
+ $localhost_suffix=$this->zzArraySafe($parm,'LOCALHOST_SUFFIX');
$text =
"<?php\n".
"\$AG['application']='".$parm["APP"]."';\n".
+ "\$AG['group_login']='".$group_eff."';\n".
"\$AG['app_desc']='".$parm["APPDSC"]."';\n".
- "\$AG['localhost_suffix']='".$localhost_suffix."';\n".
- "\$AG['template']='".$this->zzArraySafe($parm,'TEMPLATE')."';\n".
- "\$AG['flag_pwmd5']='".$parm['FLAG_PWMD5']."';\n".
- "?>";
+ "\$AG['localhost_suffix']='".$localhost_suffix."';\n".
+ "\$AG['template']='".$this->zzArraySafe($parm,'TEMPLATE')."';\n".
+ "\$AG['flag_pwmd5']='".$parm['FLAG_PWMD5']."';\n".
+ "?>";
$this->zzFileWriteGenerated($text,'appinfo.php');
- return true;
+ return true;
}
// =====================================================================
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|