__SEND_MESG_DEBUG("alleeerrrtttt: cnx->par_area=%s",cnx->par_area)

__SQL_GET_INTEGER(id_start_page,"select r1.id_item from co_sec_role r1, co_sec_role r2
where r2.id=r1.id_parent
and r1.id_catalog_type=(select ct.id from co_sec_catalog_type ct where class_name='start_page')
         and r2.id_catalog_type=(select ct.id from co_sec_catalog_type ct where class_name='user')
         and r2.id_item=%d
         ",cnx->id_user)
if (!ok)
{
__SQL_GET_INTEGER(id_start_page,"select r1.id_item from co_sec_role r1, co_sec_role r2
where r2.id=r1.id_parent
and r1.id_catalog_type=(select ct.id from co_sec_catalog_type ct where class_name='start_page')
         and r2.id_catalog_type=(select ct.id from co_sec_catalog_type ct where class_name='role')
         and r2.id_item=%d
         ",cnx->id_role)
}

if (id_start_page)
{
@co_call('"sec"','"start_page"',"getProp",par_id=>id_start_page,par_area=>'"sec"',par_class=>'"start_page"',prop_name=>'"evaluation_mode"');
__GET_RETURNED_STRING(str_evaluation_mode)
__SEND_MESG_DEBUG("start_page being evaluated as %s",str_evaluation_mode);
if (strcmp(str_evaluation_mode,"ASP"))
{
@co_call('"sec"','"start_page"',"getFile",par_class=>'"start_page"',par_area=>'"sec"',par_id=>id_start_page);
}
else
{
@co_call('"sec"','"start_page"',"evalTextDocumentAsASP",par_class=>'"start_page"',par_area=>'"sec"',par_id=>id_start_page);
}
}
else
{
char *index_file = ap_psprintf(p,"%s/index.html",cou_getCORootPath(cnx));
__PUT_HTML_FROM_FILE(index_file)
}