Page MenuHomeIn-Portal Phabricator

in-portal
No OneTemporary

File Metadata

Created
Thu, Sep 18, 10:41 PM

in-portal

Index: branches/unlabeled/unlabeled-1.9.4/kernel/units/custom_data/custom_data_config.php
===================================================================
--- branches/unlabeled/unlabeled-1.9.4/kernel/units/custom_data/custom_data_config.php (nonexistent)
+++ branches/unlabeled/unlabeled-1.9.4/kernel/units/custom_data/custom_data_config.php (revision 5451)
@@ -0,0 +1,83 @@
+<?php
+
+ $config = Array(
+ 'Prefix' => 'cdata',
+
+ 'Clones' => Array(
+ 'u-cdata' => Array(
+ 'TableName' => TABLE_PREFIX.'PortalUserCustomData',
+ 'ParentPrefix' => 'u',
+ ),
+
+ 'c-cdata' => Array(
+ 'TableName' => TABLE_PREFIX.'CategoryCustomData',
+ 'ParentPrefix' => 'c',
+ ),
+
+ 'l-cdata' => Array(
+ 'TableName' => TABLE_PREFIX.'LinkCustomData',
+ 'ParentPrefix' => 'l',
+ ),
+
+ 'n-cdata' => Array(
+ 'TableName' => TABLE_PREFIX.'NewsCustomData',
+ 'ParentPrefix' => 'n',
+ ),
+
+ 'bb-cdata' => Array(
+ 'TableName' => TABLE_PREFIX.'TopicCustomData',
+ 'ParentPrefix' => 'bb',
+ ),
+
+ 'p-cdata' => Array(
+ 'TableName' => TABLE_PREFIX.'ProductsCustomData',
+ 'ParentPrefix' => 'p',
+ ),
+ ),
+
+ 'QueryString' => Array(
+ 1 => 'id',
+ 2 => 'event',
+ ),
+
+ 'ItemClass' => Array('class' => 'kDBItem', 'file' => '','build_event' => 'OnItemBuild'),
+ 'ListClass' => Array('class' => 'kDBList', 'file' => '','build_event' => 'OnListBuild'),
+ 'EventHandlerClass' => Array('class' => 'kDBEventHandler', 'file' => '', 'build_event' => 'OnBuild'),
+ 'TagProcessorClass' => Array('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'),
+ 'AutoLoad' => true,
+
+ 'Hooks' => Array(
+ Array(
+ 'Mode' => hAFTER,
+ 'Conditional' => false,
+ 'HookToPrefix' => '#PARENT#', //self
+ 'HookToSpecial' => '*',
+ 'HookToEvent' => Array('OnAfterConfigRead'),
+ 'DoPrefix' => '',
+ 'DoSpecial' => '',
+ 'DoEvent' => 'OnCreateCustomFields',
+ ),
+ ),
+
+ 'IDField' => 'CustomDataId',
+
+ 'ParentTableKey' => 'ResourceId',
+ 'ForeignKey' => 'ResourceId',
+ 'AutoDelete' => true,
+ 'AutoClone' => false,
+
+ 'CalculatedFields' => Array(
+ '' => Array(),
+ ),
+
+ 'ListSQLs' => Array('' => 'SELECT %1$s.* %2$s FROM %1$s'),
+ 'ItemSQLs' => Array('' => 'SELECT %1$s.* %2$s FROM %1$s'),
+
+ 'Fields' => Array(
+ 'CustomDataId' => Array(),
+ 'ResourceId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0),
+ ),
+ );
+
+
+?>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.9.4/kernel/units/custom_data/custom_data_config.php
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.9
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.9.4/core/units/custom_data/custom_data_config.php
===================================================================
--- branches/unlabeled/unlabeled-1.9.4/core/units/custom_data/custom_data_config.php (nonexistent)
+++ branches/unlabeled/unlabeled-1.9.4/core/units/custom_data/custom_data_config.php (revision 5451)
@@ -0,0 +1,83 @@
+<?php
+
+ $config = Array(
+ 'Prefix' => 'cdata',
+
+ 'Clones' => Array(
+ 'u-cdata' => Array(
+ 'TableName' => TABLE_PREFIX.'PortalUserCustomData',
+ 'ParentPrefix' => 'u',
+ ),
+
+ 'c-cdata' => Array(
+ 'TableName' => TABLE_PREFIX.'CategoryCustomData',
+ 'ParentPrefix' => 'c',
+ ),
+
+ 'l-cdata' => Array(
+ 'TableName' => TABLE_PREFIX.'LinkCustomData',
+ 'ParentPrefix' => 'l',
+ ),
+
+ 'n-cdata' => Array(
+ 'TableName' => TABLE_PREFIX.'NewsCustomData',
+ 'ParentPrefix' => 'n',
+ ),
+
+ 'bb-cdata' => Array(
+ 'TableName' => TABLE_PREFIX.'TopicCustomData',
+ 'ParentPrefix' => 'bb',
+ ),
+
+ 'p-cdata' => Array(
+ 'TableName' => TABLE_PREFIX.'ProductsCustomData',
+ 'ParentPrefix' => 'p',
+ ),
+ ),
+
+ 'QueryString' => Array(
+ 1 => 'id',
+ 2 => 'event',
+ ),
+
+ 'ItemClass' => Array('class' => 'kDBItem', 'file' => '','build_event' => 'OnItemBuild'),
+ 'ListClass' => Array('class' => 'kDBList', 'file' => '','build_event' => 'OnListBuild'),
+ 'EventHandlerClass' => Array('class' => 'kDBEventHandler', 'file' => '', 'build_event' => 'OnBuild'),
+ 'TagProcessorClass' => Array('class' => 'kDBTagProcessor', 'file' => '', 'build_event' => 'OnBuild'),
+ 'AutoLoad' => true,
+
+ 'Hooks' => Array(
+ Array(
+ 'Mode' => hAFTER,
+ 'Conditional' => false,
+ 'HookToPrefix' => '#PARENT#', //self
+ 'HookToSpecial' => '*',
+ 'HookToEvent' => Array('OnAfterConfigRead'),
+ 'DoPrefix' => '',
+ 'DoSpecial' => '',
+ 'DoEvent' => 'OnCreateCustomFields',
+ ),
+ ),
+
+ 'IDField' => 'CustomDataId',
+
+ 'ParentTableKey' => 'ResourceId',
+ 'ForeignKey' => 'ResourceId',
+ 'AutoDelete' => true,
+ 'AutoClone' => false,
+
+ 'CalculatedFields' => Array(
+ '' => Array(),
+ ),
+
+ 'ListSQLs' => Array('' => 'SELECT %1$s.* %2$s FROM %1$s'),
+ 'ItemSQLs' => Array('' => 'SELECT %1$s.* %2$s FROM %1$s'),
+
+ 'Fields' => Array(
+ 'CustomDataId' => Array(),
+ 'ResourceId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0),
+ ),
+ );
+
+
+?>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.9.4/core/units/custom_data/custom_data_config.php
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.9
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.9.4/core/admin_templates/groups/permissions_selector.tpl
===================================================================
--- branches/unlabeled/unlabeled-1.9.4/core/admin_templates/groups/permissions_selector.tpl (nonexistent)
+++ branches/unlabeled/unlabeled-1.9.4/core/admin_templates/groups/permissions_selector.tpl (revision 5451)
@@ -0,0 +1,80 @@
+<inp2:m_RequireLogin permissions="in-portal:user_groups.advanced:manage_permissions" system="1"/>
+<inp2:m_include t="incs/header" nobody="yes"/>
+
+<body topmargin="0" leftmargin="8" marginheight="0" marginwidth="8" bgcolor="#FFFFFF">
+
+<inp2:m_ParseBlock name="section_header" prefix="g" icon="icon46_usergroups" module="in-portal" title="!la_title_Groups!"/>
+
+<inp2:m_ParseBlock name="blue_bar" prefix="g" title_preset="groups_edit_additional_permissions" module="in-portal" icon="icon46_usergroups"/>
+
+<!-- ToolBar --->
+<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0">
+ <tbody>
+ <tr>
+ <td>
+ <script type="text/javascript">
+ a_toolbar = new ToolBar();
+ a_toolbar.AddButton( new ToolBarButton('select', '<inp2:m_phrase label="la_ToolTip_Save" escape="1"/>', function() {
+ set_hidden_field('advanced_save', 1);
+ submit_event('g-perm','OnGroupSavePermissions');
+ }
+ ) );
+ a_toolbar.AddButton( new ToolBarButton('cancel', '<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>', function() {
+ window.close();
+ }
+ ) );
+
+ a_toolbar.Render();
+ </script>
+
+ </td>
+ </tr>
+ </tbody>
+</table>
+
+<inp2:g_SaveWarning name="grid_save_warning"/>
+
+<inp2:m_DefineElement name="permission_element" prefix="g-perm">
+ <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
+ <td>
+ <inp2:m_param name="section_name"/>.<inp2:m_param name="perm_name"/>
+ </td>
+ <td>
+ <input type="hidden" id="<inp2:m_param name="prefix"/>[<inp2:m_param name="section_name"/>][<inp2:m_param name="perm_name"/>]" name="<inp2:m_param name="prefix"/>[<inp2:m_param name="section_name"/>][<inp2:m_param name="perm_name"/>]" value="<inp2:$prefix_PermissionValue section_name="$section_name" perm_name="$perm_name"/>">
+ <input type="checkbox" align="absmiddle" id="_cb_<inp2:m_param name="prefix"/>[<inp2:m_param name="section_name"/>][<inp2:m_param name="perm_name"/>]" name="_cb_<inp2:m_param name="prefix"/>[<inp2:m_param name="section_name"/>][<inp2:m_param name="perm_name"/>]" <inp2:m_if check="{$prefix}_PermissionValue" section_name="$section_name" perm_name="$perm_name" value="1">checked</inp2:m_if> onchange="update_checkbox(this, document.getElementById('<inp2:m_param name="prefix"/>[<inp2:m_param name="section_name"/>][<inp2:m_param name="perm_name"/>]'));">
+ </td>
+ </tr>
+</inp2:m_DefineElement>
+
+
+<inp2:m_DefineElement name="old_permission_element" prefix="g-perm">
+ <tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
+ <td>
+ <inp2:m_phrase name="$label"/>
+ </td>
+ <td>
+ <input type="hidden" id="<inp2:m_param name="prefix"/>[<inp2:m_param name="section_name"/>][<inp2:m_param name="perm_name"/>]" name="<inp2:m_param name="prefix"/>[<inp2:m_param name="section_name"/>][<inp2:m_param name="perm_name"/>]" value="<inp2:$prefix_PermissionValue section_name="$section_name" perm_name="$perm_name"/>">
+ <input type="checkbox" align="absmiddle" id="_cb_<inp2:m_param name="prefix"/>[<inp2:m_param name="section_name"/>][<inp2:m_param name="perm_name"/>]" name="_cb_<inp2:m_param name="prefix"/>[<inp2:m_param name="section_name"/>][<inp2:m_param name="perm_name"/>]" <inp2:m_if check="{$prefix}_PermissionValue" section_name="$section_name" perm_name="$perm_name" value="1">checked</inp2:m_if> onchange="update_checkbox(this, document.getElementById('<inp2:m_param name="prefix"/>[<inp2:m_param name="section_name"/>][<inp2:m_param name="perm_name"/>]'));">
+ </td>
+ </tr>
+</inp2:m_DefineElement>
+
+<inp2:g-perm_LoadPermissions/>
+
+<table width="100%" border="0" cellspacing="0" cellpadding="4" class="tableborder">
+ <inp2:m_set {$PrefixSpecial}_sequence="1" odd_even="table_color1"/>
+
+ <tr class="subsectiontitle">
+ <td><inp2:m_phrase label="la_col_PermissionName"/></td>
+ <td><inp2:m_phrase label="la_col_PermissionValue"/></td>
+ </tr>
+ <inp2:m_if check="m_GetEquals" name="section_name" value="in-portal:root">
+ <inp2:m_RenderElement name="old_permission_element" section_name="in-portal:root" perm_name="LOGIN" label="lu_PermName_Login_desc"/>
+ <inp2:m_RenderElement name="old_permission_element" section_name="in-portal:root" perm_name="ADMIN" label="lu_PermName_Admin_desc"/>
+ <inp2:m_RenderElement name="old_permission_element" section_name="in-portal:root" perm_name="SYSTEM_ACCESS.READONLY" label="la_PermName_SystemAccess.ReadOnly_desc"/>
+ <inp2:m_else/>
+ <inp2:adm_ListSectionPermissions render_as="permission_element" type="1"/>
+ </inp2:m_if>
+</table>
+
+<inp2:m_include t="incs/footer"/>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.9.4/core/admin_templates/groups/permissions_selector.tpl
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.9
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property

Event Timeline