diff --git a/root/adm/style/acp_portal_modules.html b/root/adm/style/acp_portal_modules.html new file mode 100644 index 00000000..977d85a9 --- /dev/null +++ b/root/adm/style/acp_portal_modules.html @@ -0,0 +1,149 @@ + + + + + +

{L_ACP_PORTAL_MODULES}

+

{L_ACP_PORTAL_MODULES_EXPLAIN}

+ +
+
+ {L_GENERAL_OPTIONS} +
+

{L_CHOOSE_MODULE_EXPLAIN}
+
+
+ +

+   + + {S_FORM_TOKEN}{S_HIDDEN_FIELDS} +

+
+
+ + + +

{L_ACP_PORTAL_MODULES}

+

{L_ACP_PORTAL_MODULES_EXPLAIN}

+ +
+
+ {L_ACP_PORTAL_MODULES} + + + + + + + + + + +
{L_MODULE_POS_TOP}
+ {modules_top.MODULE_IMAGE} {modules_top.MODULE_NAME}
+
+ {ICON_MOVE_UP_DISABLED}{ICON_MOVE_UP}  + {ICON_MOVE_DOWN_DISABLED}{ICON_MOVE_DOWN}  + {ICON_EDIT} {ICON_DELETE} +
+

+ +

+ + + + + + + +
+ + + + + + + + + +
{L_MODULE_POS_LEFT}
+ {modules_left.MODULE_IMAGE} {modules_left.MODULE_NAME}
+
+ {ICON_MOVE_UP_DISABLED}{ICON_MOVE_UP}  + {ICON_MOVE_DOWN_DISABLED}{ICON_MOVE_DOWN}  + {ICON_EDIT} {ICON_DELETE} +
+

+ +

+
+ + + + + + + + + +
{L_MODULE_POS_CENTER}
+ {modules_center.MODULE_IMAGE} {modules_center.MODULE_NAME}
+
+ {ICON_MOVE_UP_DISABLED}{ICON_MOVE_UP}  + {ICON_MOVE_DOWN_DISABLED}{ICON_MOVE_DOWN}  + {ICON_EDIT} {ICON_DELETE} +
+

+ +

+
+ + + + + + + + + +
{L_MODULE_POS_RIGHT}
+ {modules_right.MODULE_IMAGE} {modules_right.MODULE_NAME}
+
+ {ICON_MOVE_UP_DISABLED}{ICON_MOVE_UP}  + {ICON_MOVE_DOWN_DISABLED}{ICON_MOVE_DOWN}  + {ICON_EDIT} {ICON_DELETE} +
+

+ +

+
+
+ + + + + + + + + + +
{L_MODULE_POS_BOTTOM}
+ {modules_bottom.MODULE_IMAGE} {modules_bottom.MODULE_NAME}
+
+ {ICON_MOVE_UP_DISABLED}{ICON_MOVE_UP}  + {ICON_MOVE_DOWN_DISABLED}{ICON_MOVE_DOWN}  + {ICON_EDIT} {ICON_DELETE} +
+

+ +

+ + {S_FORM_TOKEN} +
+
+ + + + \ No newline at end of file diff --git a/root/portal.php b/root/portal.php index a356a00e..82fef4c3 100644 --- a/root/portal.php +++ b/root/portal.php @@ -6,8 +6,6 @@ * @license http://opensource.org/licenses/gpl-license.php GNU Public License */ -// DO NOT TOUCH YET! - /** * @ignore */ @@ -17,7 +15,7 @@ define('IN_PORTAL', true); $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); -require($phpbb_root_path . 'common.' . $phpEx); +include($phpbb_root_path . 'common.' . $phpEx); $portal_root_path = PORTAL_ROOT_PATH; $portal_icons_path = PORTAL_ICONS_PATH; include($phpbb_root_path . $portal_root_path . 'includes/functions_modules.' . $phpEx); @@ -28,6 +26,7 @@ $user->session_begin(); $auth->acl($user->data); $user->setup('mods/portal'); + $sql = 'SELECT * FROM ' . PORTAL_MODULES_TABLE; $result = $db->sql_query($sql);