Skip to content
This repository was archived by the owner on Jun 1, 2024. It is now read-only.

Commit aa81597

Browse files
author
Erik Frèrejean
committed
[stk/ascraeus] re-add STK installation contrib files
1 parent 395763d commit aa81597

File tree

6 files changed

+178
-0
lines changed

6 files changed

+178
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
# Pimple
1414
/stk/core/DI/Pimple.php
1515

16+
# MODX
17+
/contrib/modx.prosilver.en.xsl
18+
1619
# STK files
1720
/stk/local_config.php
1821

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
[submodule "stk/vendor/Pimple"]
88
path = stk/vendor/Pimple
99
url = git://github.com/fabpot/Pimple.git
10+
[submodule "stk/vendor/MODX"]
11+
path = stk/vendor/MODX
12+
url = git://github.com/phpbb/modx.git

contrib/acp_link.xml

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
2+
<?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?>
3+
<!--
4+
For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD.
5+
Although MODs are checked before being allowed in the MODs Database there is no guarantee that there
6+
are no security problems within the MOD. No support will be given for MODs not found within the MODs
7+
Database which can be found at http://www.phpbb.com/mods/
8+
-->
9+
<!-- @id $Id$ -->
10+
<mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.2.5.xsd">
11+
<header>
12+
<license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>
13+
<title lang="en">Support Toolkit ACP link</title>
14+
<description lang="en">Adds a link in the ACP to the Support Toolkit</description>
15+
16+
<author-group>
17+
<author>
18+
<username>Erik Frèrerejean</username>
19+
<realname>Erik Frèrerejean</realname>
20+
<homepage>http://www.erikfrerejean.nl</homepage>
21+
<email>[email protected]</email>
22+
<contributions-group>
23+
<contributions status="current" from="2009-01-21" position="Developer" />
24+
</contributions-group>
25+
</author>
26+
<author>
27+
<username>iWisdom</username>
28+
<realname>Phil Crumm</realname>
29+
<homepage>http://p3net.net</homepage>
30+
<email>[email protected]</email>
31+
<contributions-group>
32+
<contributions status="current" from="2010-01-19" position="Developer" />
33+
</contributions-group>
34+
</author>
35+
<author>
36+
<username>EXreaction</username>
37+
<realname>Nathan Guse</realname>
38+
<homepage>http://www.lithiumstudios.org/</homepage>
39+
<email>[email protected]</email>
40+
<contributions-group>
41+
<contributions status="past" from="2009-01-21" to="2009-10-31" position="Developer" />
42+
</contributions-group>
43+
</author>
44+
</author-group>
45+
46+
<mod-version>2.0.0-dev</mod-version>
47+
48+
<installation>
49+
<level>easy</level>
50+
<time>60</time>
51+
<target-version>3.1.0</target-version>
52+
</installation>
53+
</header>
54+
55+
<action-group>
56+
<open src="adm/index.php">
57+
<edit>
58+
<find><![CDATA['S_CONTENT_FLOW_END' => ($user->]]></find>
59+
<action type="after-add"><![CDATA[ //-- Support Toolkit
60+
//-- Add:
61+
'U_STK_INDEX' => ($user->data['user_type'] == USER_FOUNDER) ? append_sid("{$phpbb_root_path}stk/index.$phpEx", false, true, $user->session_id) : '',
62+
//-- End Support Toolkit]]></action>
63+
</edit>
64+
</open>
65+
66+
<open src="adm/style/overall_header.html">
67+
<edit>
68+
<find><![CDATA[<p><a href="{U_ADM_INDEX}">{L_ADMIN_INDEX}</a>]]></find>
69+
<inline-edit>
70+
<inline-find><![CDATA[<p>]]></inline-find>
71+
<inline-action type="after-add"><![CDATA[<!-- IF U_STK_INDEX --><a href="{U_STK_INDEX}">{L_SUPPORT_TOOL_KIT_INDEX}</a> &bull; <!-- ENDIF -->]]></inline-action>
72+
</inline-edit>
73+
</edit>
74+
</open>
75+
76+
<open src="language/en/acp/common.php">
77+
<edit>
78+
<find><![CDATA['WARNING' => 'Warning',]]></find>
79+
<action type="after-add"><![CDATA[ //-- Support Toolkit
80+
//-- Add:
81+
'SUPPORT_TOOL_KIT_INDEX' => 'Support Toolkit Index',
82+
//-- End Support Toolkit]]></action>
83+
</edit>
84+
</open>
85+
</action-group>
86+
</mod>

contrib/forum_link.xml

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
2+
<?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?>
3+
<!--
4+
For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD.
5+
Although MODs are checked before being allowed in the MODs Database there is no guarantee that there
6+
are no security problems within the MOD. No support will be given for MODs not found within the MODs
7+
Database which can be found at http://www.phpbb.com/mods/
8+
-->
9+
<!-- @id $Id$ -->
10+
<mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.2.5.xsd">
11+
<header>
12+
<license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>
13+
<title lang="en">Support Toolkit forum link</title>
14+
<description lang="en">Adds a link in the footer (under the ACP link) that points to the Support Toolkit</description>
15+
16+
<author-group>
17+
<author>
18+
<username>Erik Frèrerejean</username>
19+
<realname>Erik Frèrerejean</realname>
20+
<homepage>http://www.erikfrerejean.nl</homepage>
21+
<email>[email protected]</email>
22+
<contributions-group>
23+
<contributions status="current" from="2009-01-21" position="Developer" />
24+
</contributions-group>
25+
</author>
26+
<author>
27+
<username>iWisdom</username>
28+
<realname>Phil Crumm</realname>
29+
<homepage>http://p3net.net</homepage>
30+
<email>[email protected]</email>
31+
<contributions-group>
32+
<contributions status="current" from="2010-01-19" position="Developer" />
33+
</contributions-group>
34+
</author>
35+
<author>
36+
<username>EXreaction</username>
37+
<realname>Nathan Guse</realname>
38+
<homepage>http://www.lithiumstudios.org/</homepage>
39+
<email>[email protected]</email>
40+
<contributions-group>
41+
<contributions status="past" from="2009-01-21" to="2009-10-31" position="Developer" />
42+
</contributions-group>
43+
</author>
44+
</author-group>
45+
46+
<mod-version>2.0.0-dev</mod-version>
47+
48+
<installation>
49+
<level>easy</level>
50+
<time>60</time>
51+
<target-version>3.1.0</target-version>
52+
</installation>
53+
</header>
54+
55+
<action-group>
56+
<open src="includes/functions.php">
57+
<edit>
58+
<find><![CDATA['U_ACP' =>]]></find>
59+
<action type="before-add"><![CDATA[ //-- Support Toolkit
60+
//-- Add:
61+
'U_STK' => ($user->data['user_type'] == USER_FOUNDER) ? append_sid("{$phpbb_root_path}stk/index.$phpEx", false, true, $user->session_id) : '',
62+
//-- End Support Toolkit]]></action>
63+
</edit>
64+
</open>
65+
66+
<open src="language/en/common.php">
67+
<edit>
68+
<find><![CDATA['ASCENDING']]></find>
69+
<action type="after-add"><![CDATA[ //-- Support Toolkit
70+
//-- Add:
71+
'STK' => 'Support Toolkit',
72+
//-- End Support Toolkit]]></action>
73+
</edit>
74+
</open>
75+
76+
<open src="styles/prosilver/template/overall_footer.html">
77+
<edit>
78+
<find><![CDATA[<!-- IF U_ACP --><br /><strong><a href="{U_ACP}">{L_ACP}</a></strong><!-- ENDIF -->]]></find>
79+
<action type="after-add"><![CDATA[<!-- IF U_STK --><br /><strong><a href="{U_STK}" title="{L_STK}">{L_STK}</a></strong><!-- ENDIF -->]]></action>
80+
</edit>
81+
</open>
82+
</action-group>
83+
</mod>

stk/vendor/MODX

Submodule MODX added at 22ee531

stk/vendor/vendor.py

+2
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ def main():
123123
# Pimple
124124
_copy ('./stk/vendor/Pimple/lib/Pimple.php', './stk/core/DI/Pimple.php', True);
125125

126+
# MODX
127+
_copy ('./stk/vendor/MODX/modx.prosilver.en.xsl', './contrib/modx.prosilver.en.xsl', True);
126128

127129
if __name__ == "__main__":
128130
main();

0 commit comments

Comments
 (0)