mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
Your reaction to this commit were remarkable. You demanded with an imperious kind to revert this commit. You spoke about any rules only, and I didn't hear evidencing explanations from you. Admittedly, my commit wasn't very pretty and not the best style because everything was squashed in a single commit with some customizations, but which is ultimately just a formality... that's about it, and was quite compliant with license conditions. In additional, your name was noted on the commit. I'm just reminding you, until a few years ago, you didn't care about licenses. The general copyright mainly lies with yjogol and a lot of changes of the origin yweb code has been coming in by several committers since yweb exists. I won't judge, whether any unique selling points play a role, but such restrictions are exactly what the license should prevent. Especially as, many creeped in brandings in some code parts (not only yweb) do suggest that. Besides neutralizing such things, mainly it was the purpose to get more compatibility, even though some functionalities were removed or switched off. Related to yweb I have decided to take back this commit for the sake of peace, and I hope you are happy with it. However, I still reserve to continue using and adopting yweb.
66 lines
2.5 KiB
Plaintext
66 lines
2.5 KiB
Plaintext
{=var-set:extension={=if-file-exists:%(CONFIGDIR)/extentions.txt~%(CONFIGDIR)/extentions.txt~{=if-file-exists:%(PUBLIC_HTTPDDIR)/extentions.txt~%(PUBLIC_HTTPDDIR)/extentions.txt~%(PRIVATE_HTTPDDIR)/extentions.txt=}=}=}
|
|
{=var-set:management={=if-equal:{=func:get_request_data client_addr=}~{=ini-get:%(CONFIGDIR)/Y-Web.conf;management_ip;{=func:get_request_data client_addr=}=}~1~=}{=if-equal:{=func:get_request_data client_addr=}~{=ini-get:%(CONFIGDIR)/Y-Web.conf;management_ip2=}~1~=}=}
|
|
{=include-block:Y_Blocks.txt;head=}
|
|
<script type="text/javascript" src="/prototype.js"></script>
|
|
<script type="text/javascript" src="/Y_Baselib.js"></script>
|
|
<script type="text/javascript" src="/Y_yweb.js"></script>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
|
|
function build_menu(){
|
|
// ext.read_items();
|
|
var ext_normal=ext.select_type("n");
|
|
ext_normal.each(function(e){
|
|
var item="<a target=\"work\" title=\""+e.get('desc')+"\" href=\""+e.get('file')+"\">"+e.get('menuitem')+"</a>";
|
|
y_add_li_to_ul(id("ext_normal"),"ext",item);
|
|
});
|
|
|
|
var ext_management=ext.select_type("m");
|
|
ext_management.each(function(e){
|
|
var item='<a {=if-empty:{=var-get:management=}~class="restricted" title="{=L:restriced_by_management_ip=}" href="javascript:void(0);"~title="'+e.get("desc")+'" href="'+e.get("file")+'" target="work"=}>'+e.get("menuitem")+'</a>';
|
|
y_add_li_to_ul(id("ext_management"),"ext",item);
|
|
});
|
|
}
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
<body onload="build_menu()">
|
|
<div class="y_menu_sec_box">
|
|
<div class="y_menu_sec_box_head"><h2>{=L:main.extensions=}</h2></div>
|
|
<div class="y_menu_sec_box_body">
|
|
<div class="y_menu_sec_section">{=L:normal=}</div>
|
|
<div class="y_menu_sec">
|
|
<ul id="ext_normal">
|
|
</ul>
|
|
</div>
|
|
<div class="y_menu_sec_section">{=L:management=}</div>
|
|
<div class="y_menu_sec" id="ext_management2">
|
|
<ul id="ext_management">
|
|
</ul>
|
|
</div>
|
|
<div class="y_menu_sec_section">{=L:administration=}</div>
|
|
<div class="y_menu_sec">
|
|
<ul>
|
|
<li>
|
|
{=var-set:m_link_href=Y_Ext_Settings.yhtm=}
|
|
{=var-set:m_link_text={=L:main.settings=}=}
|
|
{=include-block:Y_Blocks.txt;management_link=}
|
|
</li>
|
|
<li>
|
|
{=var-set:m_link_href=Y_Ext_Update.yhtm=}
|
|
{=var-set:m_link_text={=L:ext.installer_updater=}=}
|
|
{=include-block:Y_Blocks.txt;management_link=}
|
|
</li>
|
|
<li>
|
|
{=var-set:m_link_href=Y_Ext_Uninstall.yhtm=}
|
|
{=var-set:m_link_text={=L:uninstaller=}=}
|
|
{=include-block:Y_Blocks.txt;management_link=}
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|