yWeb: move data from /src to /data

Origin commit data
------------------
Commit: 29847283ad
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-12-15 (Thu, 15 Dec 2016)

Origin message was:
------------------
- yWeb: move data from /src to /data
This commit is contained in:
vanhofen
2016-12-15 14:00:45 +01:00
parent efaa271c55
commit 0a874ca762
235 changed files with 8 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
SUBDIRS = yhttpd_core yhttpd_mods tuxboxapi web
SUBDIRS = yhttpd_core yhttpd_mods tuxboxapi
AM_CPPFLAGS = -fno-rtti -fno-exceptions -D_FILE_OFFSET_BITS=64

View File

@@ -1,111 +0,0 @@
SUBDIRS = images scripts languages styles
installdir = $(PRIVATE_HTTPDDIR)
install_DATA = channels.js \
channels.txt \
extentions.txt \
favicon.ico \
index.html \
prototype.js \
robots.txt \
Y_About.yhtm \
Y_Baselib.js \
Y_blank.htm \
Y_Blocks.txt \
Y_Boxcontrol_Bouquet_Editor_Edit.yhtm \
Y_Boxcontrol_Bouquet_Editor_Main.yhtm \
Y_Boxcontrol_Bouquetlist.yhtm \
Y_Boxcontrol_Bouquets.yhtm \
Y_Boxcontrol_Channellist.yhtm \
Y_Boxcontrol_Menue.yhtm \
Y_Boxcontrol_Messages.yhtm \
Y_Dist.css \
Y_Dyn_Pages.yhtm \
Y_EPG.js \
Y_EPG_Plus.yhtm \
Y_Ext_Menue.yhtm \
Y_Ext_Settings.yhtm \
Y_Ext_Uninstall.yhtm \
Y_Ext_Update.js \
Y_Ext_Update_refresh.yhtm \
Y_Ext_Update.yhtm \
Y_Flash.js \
Y_Info_Help.yhtm \
Y_Info_Menue.yhtm \
Y_Info_Updates.yhtm \
Y_Live_DoubleView.yhtm \
Y_Live_EPG_Info.yhtm \
Y_Live_EPG.yhtm \
Y_Live.js \
Y_Live_Menue.yhtm \
Y_Live_Msg.yhtm \
Y_Live_Record.yhtm \
Y_Live_Transcode.yhtm \
Y_LiveViewFull.yhtm \
Y_Live.yhtm \
Y_Main.css \
Y_Menue.yhtm \
Y_neutrino_Blocks.txt \
Y_Refresh.yhtm \
Y_Settings_automount_liste.yhtm \
Y_Settings_automount.yhtm \
Y_Settings_Backup.yhtm \
Y_Settings_buttons.yhtm \
Y_Settings_lcd.yhtm \
Y_Settings_Live.yhtm \
Y_Settings_Menue.yhtm \
Y_Settings_mount_liste.yhtm \
Y_Settings_mount.yhtm \
Y_Settings_neutrino_forms.yhtm \
Y_Settings_nhttpd.yhtm \
Y_Settings_personalize.yhtm \
Y_Settings_Timer.yhtm \
Y_Settings_umount_liste.yhtm \
Y_Settings_video_audio.yhtm \
Y_Settings_VNC.yhtm \
Y_Settings_wol.yhtm \
Y_Settings_yWeb.yhtm \
Y_Settings_zapit.yhtm \
Y_StreamInfo.yhtm \
Y_Timer_Edit.yhtm \
Y_Timer_List.yhtm \
Y_Tools_Bootlogo.yhtm \
Y_Tools_Boxcontrol.yhtm \
Y_Tools_Check_Install.yhtm \
Y_Tools_Cmd.yhtm \
Y_Tools_Flash_Menue.yhtm \
Y_Tools_Flash_Upload.yhtm \
Y_Tools_Info_Menue.yhtm \
Y_Tools_Installer.yhtm \
Y_Tools_lcshot.yhtm \
Y_Tools_Menue.yhtm \
Y_Tools_Rcsim.yhtm \
Y_Tools_Screenshot.yhtm \
Y_Tools_Timer_Sync.js \
Y_Tools_Timer_Sync.yhtm \
Y_Tools_tvshot.yhtm \
Y_User.css \
Y_Version.txt \
Y_VLC.js \
Y_Wait.yhtm \
ywidget.css \
ywidget.js \
Y_yweb.js
# file manager
install_DATA += accordion.js \
effects.js \
Y_Filemgr.yhtm \
Y_Filemgr_Edit.yhtm \
Y_Filemgr_blocks.txt
install-data-hook:
@# Badass hack, I know. If anyone knows a better way -- please send patch!
find $(DESTDIR)$(PRIVATE_HTTPDDIR)/ -type f -print0 | xargs --no-run-if-empty -0 \
sed -i \
-e 's|%(CONFIGDIR)|$(CONFIGDIR)|g' \
-e 's|%(PLUGINDIR_VAR)|$(PLUGINDIR_VAR)|g' \
-e 's|%(PRIVATE_HTTPDDIR)|$(PRIVATE_HTTPDDIR)|g' \
-e 's|%(PUBLIC_HTTPDDIR)|$(PUBLIC_HTTPDDIR)|g' \
;

View File

@@ -1,43 +0,0 @@
{=var-set:cancache=yPConf=}
{=include-block:Y_Blocks.txt;head=}
</head>
{=var-set:alt_httpd={=ini-get:%(CONFIGDIR)/nhttpd.conf;WebsiteMain.override_directory;%(PUBLIC_HTTPDDIR)=}=}
{=var-set:vf={=if-file-exists:{=var-get:alt_httpd=}/Y_Version.txt~{=var-get:alt_httpd=}/Y_Version.txt~Y_Version.txt=}=}
<body>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Info-About=}{=var-set:menu={=L:info.About=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<table border="0" cellpadding="2" cellspacing="4">
<tr>
<td valign="bottom" width="144"></td>
<td valign="bottom"><img border="0" src="images/tux-yweb.png" alt="yWeb by yjogol"/></td>
</tr><tr>
<td valign="top">&nbsp;</td>
<td valign="top">
v{=ini-get:{=var-get:vf=};version=} - {=ini-get:{=var-get:vf=};date=} - {=ini-get:{=var-get:vf=};type=} - {=ini-get:{=var-get:vf=};info=}
<br/><br/>
</td>
</tr>
<tr>
<td valign="top">COPYRIGHTS</td>
<td>
yWeb (this Web interface) is licensed under the terms of the Open Source GPL 2 license.<br/>
<a href="http://www.gnu.org/licenses/gpl.html" target="_new" class="exlink">http://www.gnu.org/licenses/old-licenses/gpl-2.0.html</a>
<br/><br/>
yWeb uses Icons from famfamfam (<a href="http://www.famfamfam.com" target="_new" class="exlink">http://www.famfamfam.com</a>) which are
licensed under Creative Common Attribution License 2.5
</td>
</tr>
<tr>
<td valign="top">IMPORTANT</td>
<td>
Do not make yWeb accessible to untrusted networks!<br/>
Otherwise someone else can access your Box.
</td>
</tr>
</table>
</div>
</div>
</body>
</html>

View File

@@ -1,502 +0,0 @@
/* yWeb Baselib by yjogol
$Date$
$Revision$
*/
var baselib_version="2.0.0";
var tmp = document.documentMode, e, isIE;
// Try to force this property to be a string.
try{document.documentMode = "";}
catch(e){ };
// If document.documentMode is a number, then it is a read-only property, and so
// we have IE 8+.
// Otherwise, if conditional compilation works, then we have IE < 11.
// Otherwise, we have a non-IE browser.
isIE = typeof document.documentMode == "number" || new Function("return/*@cc_on!@*/!1")( );
// Switch back the value to be unobtrusive for non-IE browsers.
try{document.documentMode = tmp;}
catch(e){ };
/*DHTML-Basics*/
function $yN(_obj_name)
{
return $(document.getElementsByName(_obj_name));
}
function id(obj_id)
{
return document.getElementById(obj_id);
}
function obj_update(obj_id, html)
{
var obj = id(obj_id);
if(obj)
obj.innerHTML = html;
}
function yClientHeight()
{
if(window.innerHeight)
return window.innerHeight;
else if (document.documentElement && document.documentElement.clientHeight)
return document.documentElement.clientHeight;
else if (document.body)
return document.body.clientHeight;
}
function yClientWidth()
{
if(window.innerWidth)
return window.innerWidth;
else if (document.documentElement && document.documentElement.clientWidth)
return document.documentElement.clientWidth;
else if (document.body)
return document.body.clientWidth;
}
function obj_create(_typ, _class)
{
var __obj = document.createElement(_typ);
var __class = document.createAttribute("class");
__class.nodeValue = _class;
__obj.setAttributeNode(__class);
return __obj;
}
function obj_createAt(_parent, _typ, _class)
{
var __obj = obj_create(_typ, _class);
_parent.appendChild(__obj);
return __obj;
}
function obj_get_radio_value(_obj_name)
{
var _obj = document.getElementsByName(_obj_name);
if(_obj)
{
for(i=0;i<_obj.length;i++)
if(_obj[i].checked)
return _obj[i].value;
}
return "";
}
function obj_set_radio_value(_obj_name, _value)
{
var _obj = document.getElementsByName(_obj_name);
if(_obj)
{
for(i=0;i<_obj.length;i++)
_obj[i].checked = (_obj[i].value == _value);
}
}
function obj_clear_all_childs(_obj)
{
while(_obj.childNodes.length > 0)
{
var aChild = _obj.firstChild;
if(aChild)
_obj.removeChild(aChild);
}
}
/*DHTML-Table*/
function y_add_row_to_table(_table, _class)
{
var __row=document.createElement("tr");
var __class = document.createAttribute("class");
__class.nodeValue = _class;
__row.setAttributeNode(__class);
_table.appendChild(__row);
return __row;
}
function y_add_plain_cell_to_row(_row, _name)
{
var __cell=document.createElement("td");
__cell.setAttribute("name", _name);
_row.appendChild(__cell);
return __cell;
}
function y_add_text_cell_to_row(_row, _name, _value)
{
var __cell=y_add_plain_cell_to_row(_row, _name);
var __text=document.createTextNode(_value);
__cell.appendChild(__text);
return __cell;
}
function y_add_html_cell_to_row(_row, _name, _value)
{
var __cell=y_add_plain_cell_to_row(_row, _name);
__cell.innerHTML = _value;
return __cell;
}
function y_add_li_to_ul(_ul, _class, _value){
var __li=document.createElement("li");
var __class = document.createAttribute("class");
__class.nodeValue = _class;
_ul.setAttributeNode(__class);
_ul.appendChild(__li);
__li.innerHTML=_value;
return __li;
}
function getXMLNodeItemValue(node, itemname)
{
var item = node.getElementsByTagName(itemname);
if(item.length>0)
if(item[0].firstChild)
return item[0].firstChild.nodeValue;
return "";
}
function setInnerHTML(_id, _html)
{
var item = document.getElementById(_id);
if(item)
item.innerHTML = _html;
}
function obj_addAttributeNode(_obj, _attr, _value)
{
var __attr = document.createAttribute(_attr);
__attr.nodeValue = _value;
_obj.setAttributeNode(__attr);
}
/*XMLHttpRequest AJAX*/
var g_req;
function loadXMLDoc(_url, _processReqChange)
{
if (window.XMLHttpRequest)
{
g_req = new XMLHttpRequest();
g_req.onreadystatechange = _processReqChange;
if(g_req.overrideMimeType)
{ g_req.overrideMimeType('text/xml');}
g_req.open("GET", _url, true);
g_req.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
g_req.send(null);
}
else if (window.ActiveXObject)
{
g_req = new ActiveXObject("Microsoft.XMLHTTP");
if (g_req)
{
g_req.onreadystatechange = _processReqChange;
g_req.open("GET", _url, true);
g_req.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
g_req.send();
}
}
else
alert("No Browser-support for XMLHttpRequest");
}
function loadSyncURL2(_url)
{
var myAjax = new Ajax.Request(
_url,
{
method: 'post',
asynchronous: false
});
return myAjax.responseText;
}
function loadSyncURL(_url)
{
var _req;
if (window.XMLHttpRequest)
{
_req = new XMLHttpRequest();
_req.open("GET", _url, false);
_req.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
_req.send(null);
}
else if (window.ActiveXObject)
{
_req = new ActiveXObject("Microsoft.XMLHTTP");
if(_req)
{
_req.open("GET", _url, false);
_req.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
_req.send();
}
}
else
alert("No Browser-support for XMLHttpRequest");
if (_req.readyState == 4 && _req.status == 200)
return _req.responseText;
else
return "";
}
function loadSyncURLxml(_url)
{
var _req;
if (window.XMLHttpRequest)
{
_req = new XMLHttpRequest();
_req.open("GET", _url, false);
_req.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
_req.send(null);
}
else if (window.ActiveXObject)
{
_req = new ActiveXObject("Microsoft.XMLHTTP");
if(_req)
{
_req.open("GET", _url, false);
_req.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
_req.send();
}
}
else
alert("No Browser-support for XMLHttpRequest");
if (_req.readyState == 4 && _req.status == 200)
return _req.responseXML;
else
return "";
}
/*visibility*/
function obj_disable(_obj_name, _disable)
{
var __obj = document.getElementById(_obj_name);
__obj.disabled = _disable;
}
function obj_enable(_obj_name, _disable)
{
obj_disable(_obj_name, !_disable);
}
function show_obj(_obj_name, _show)
{
var __obj = document.getElementById(_obj_name);
__obj.style.visibility= (_show) ? "visible" : "hidden";
}
function display_obj(_obj_name, _display)
{
var __obj = document.getElementById(_obj_name);
__obj.style.display = (_display) ? "block" : "none";
}
function show_waitbox(_show)
{
show_obj("wait", _show);
}
/*Strings*/
function l_trim(_str)
{
return _str.replace(/\s*((\S+\s*)*)/, "$1");
}
function r_trim(_str)
{
return _str.replace(/((\s*\S+)*)\s*/, "$1");
}
function trim(_str)
{
return l_trim(r_trim(_str));
}
function split_one(_str, _delimiter)
{
var __p = _str.indexOf(_delimiter);
var __left = _str.substring(0, __p);
var __right = _str.substring(__p+_delimiter.length);
return new Array(__left, __right);
}
function split_left(_str, _delimiter)
{
var res = split_one(_str, _delimiter);
return res[0];
}
function split_right(_str, _delimiter)
{
var res = split_one(_str, _delimiter);
return res[1];
}
function de_qout(_str)
{
_str = _str.replace(/\"/g,"&quot;");
_str = _str.replace(/'/g,"&quot;");
return _str;
}
function epg_de_qout(_str)
{
_str = de_qout(_str);
_str = _str.replace(/\x8A/g,"<br/>");
return _str;
}
function split_version(vstring,v){
var l=vstring.split(".");
v.set('major', (l.length>0)?l[0]:"0");
v.set('minor', (l.length>1)?l[1]:"0");
v.set('patch', (l.length>2)?l[2]:"0");
v.set('pre', (l.length>3)?l[3]:"0");
}
function version_less(l, r) /* l<= r?*/{
return (l.get('major') < r.get('major'))||
((l.get('major') == r.get('major')) && (l.get('minor') < r.get('minor'))) ||
((l.get('major') == r.get('major')) && (l.get('minor') == r.get('minor')) && (l.get('patch') < r.get('patch'))) ||
((l.get('major') == r.get('major')) && (l.get('minor') == r.get('minor')) && (l.get('patch') == r.get('patch')) && (l.get('pre') < r.get('pre')));
}
function version_le(l, r) /* l<= r?*/{
return (l.get('major') < r.get('major'))||
((l.get('major') == r.get('major')) && (l.get('minor') < r.get('minor'))) ||
((l.get('major') == r.get('major')) && (l.get('minor') == r.get('minor')) && (l.get('patch') < r.get('patch'))) ||
((l.get('major') == r.get('major')) && (l.get('minor') == r.get('minor')) && (l.get('patch') == r.get('patch')) && (l.get('pre') <= r.get('pre')));
}
function version_str_less(l, r) /* l<= r?*/{
var lh=$H();
split_version(l,lh);
var rh=$H();
split_version(r,rh);
return version_less(lh,rh);
}
function str_to_hash(str){
var h=new Hash();
var items=str.split(",");
items.each(function(e){
pair=split_one(e,":");
if(pair.length==2)
h.set((pair[0]).gsub("\"","").gsub("'","").strip(),(pair[1]).strip().gsub("\"","").gsub("'",""));
});
return h;
}
function hash_to_str(h){
var str="";
h.each(function(e){
if(str!="")str+=",";
str+=e.key+":"+e.value;
});
return str;
}
/*etc*/
function format_time(_t)
{
var hour = _t.getHours();
var min = _t.getMinutes();
if(hour < 10)
hour = "0" + hour;
if(min < 10)
min = "0" + min;
return hour + ":" + min;
}
function bt_get_value(_bt_name)
{
var __button = document.getElementById(_bt_name);
if(__button)
return __button.firstChild.nodeValue;
else
return "";
}
function bt_set_value(_bt_name, _text)
{
var __button = document.getElementById(_bt_name);
__button.firstChild.nodeValue = _text;
}
/*dbox*/
/*expermental*/
function reload_neutrino_conf() {
loadSyncURL("/control/reloadsetup");
}
function dbox_rcsim(_key){
loadSyncURL("/control/rcem?" + _key);
}
function dbox_reload_neutrino(){
var sc=dbox_exec_tools("restart_neutrino");
}
function dbox_exec_command(_cmd)
{
alert("Function dbox_exec_command is deactivated for security reasons");
var __cmd = _cmd.replace(/ /g, "&");
// return loadSyncURL("/control/exec?Y_Tools&exec_cmd&"+__cmd);
}
function dbox_exec_tools(_cmd)
{
var __cmd = _cmd.replace(/ /g, "&");
return loadSyncURL("/control/exec?Y_Tools&"+__cmd);
}
function dbox_message(_msg)
{
return loadSyncURL("/control/message?nmsg="+_msg);
}
function dbox_popup(_msg)
{
return loadSyncURL("/control/message?popup="+_msg);
}
function dbox_set_timer(_channel_id, _start, _stop)
{
var _url = "/control/timer?action=new&type=5&alarm="+_start+"&stop="+_stop+"&announce="+_start+"&channel_id="+_channel_id+"&rs=1";
return loadSyncURL(_url);
}
function dbox_zapto(_channel_id)
{
var _url = "/control/zapto?"+_channel_id;
return loadSyncURL(_url);
}
function dbox_spts_status()
{
return (trim(loadSyncURL("/control/system?getAViAExtPlayBack")) == "1");
}
function dbox_spts_set(_on)
{
return loadSyncURL("/control/system?setAViAExtPlayBack=" + (_on ? "spts" : "pes") );
}
function dbox_getmode()
{
return trim( loadSyncURL("/control/getmode") );
}
function dbox_setmode(_mode)
{
return loadSyncURL("/control/setmode?" + _mode);
}
/*live*/
function live_kill_streams()
{
dbox_exec_command("killall streamts");
dbox_exec_command("killall streampes");
}
function live_switchto(_mode)
{
//live_kill_streams();
var _actual_spts = dbox_spts_status();
if(_mode == "tv" && !_actual_spts)
dbox_spts_set(true);
else if(_mode == "radio" && _actual_spts)
dbox_spts_set(false);
var _actual_mode = dbox_getmode();
if(_actual_mode != _mode)
dbox_setmode(_mode);
}
function live_lock()
{
loadSyncURL("/control/lcd?lock=1&clear=1&rect=10,10,110,50,1,0&xpos=20&ypos=27&size=22&font=2&text=%20%20%20%20yWeb%0A%20%20LiveView&update=1");
loadSyncURL("/control/rc?lock");
loadSyncURL("/control/zapto?stopplayback");
}
function live_unlock()
{
loadSyncURL("/control/lcd?lock=0");
loadSyncURL("/control/rc?unlock");
loadSyncURL("/control/zapto?startplayback");
}
function yhttpd_cache_clear(category)
{
if(category == "")
loadSyncURL("/y/cache-clear");
else
loadSyncURL("/y/cache-clear?category="+category);
}
function saveTextAsFile(content, filename, filetype)
{
var textFileAsBlob = new Blob([content], { type: filetype });
var downloadLink = document.createElement("a");
downloadLink.download = filename;
downloadLink.innerHTML = "Download File";
if (window.webkitURL != null)
{
// Chrome allows the link to be clicked
// without actually adding it to the DOM.
downloadLink.href = window.webkitURL.createObjectURL(textFileAsBlob);
}
else
{
// Firefox requires the link to be added to the DOM
// before it can be clicked.
downloadLink.href = window.URL.createObjectURL(textFileAsBlob);
downloadLink.onclick = function() { this.parentNode.removeChild(this); };
downloadLink.style.display = "none";
document.body.appendChild(downloadLink);
}
downloadLink.click();
}

View File

@@ -1,937 +0,0 @@
start-block~timer
{=include-block:Y_Blocks.txt;head=}
</head>
<body>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Neutrino:yWeb:Live_Timer#Timer=}{=var-set:menu=Timer=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<iframe src="/fb/timer.dbox2" scrolling="auto" marginheight="1" marginwidth="1" frameborder="0" name="bouquets" style="height : 600px;width:90%;"></iframe>
</div>
</div>
</body>
end-block~timer
# ------- build live url
start-block~build_live_url
{=var-set:mrl={=if-equal:{=mode=}~tv~http://{=func:get_header_data Host=}:31339/0,{=func:get_video_pids {=if-empty:{=audiopid=}~00000~{=audiopid=}=}=}~http://{=func:get_header_data Host=}:31338/{=func:get_audio_pid=}=}=}
end-block~build_live_url
# ------- yWeb save Settings
start-block~yWeb_save_settings
{=ini-set:%(CONFIGDIR)/Y-Web.conf;management_ip;{=managementIP=}~open=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;management_ip2;{=managementIP2=}~cache=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;wol_mac_1;{=wol_mac_1=}~cache=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;wol_mac_2;{=wol_mac_2=}~cache=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;wol_mac_3;{=wol_mac_3=}~cache=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;wol_desc_1;{=wol_desc_1=}~cache=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;wol_desc_2;{=wol_desc_2=}~cache=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;wol_desc_3;{=wol_desc_3=}~cache=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;fb;{=fb=}~cache=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;start_page;{=start_page=}~cache=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;style;{=style=}~cache=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;yweb_box_name;{=yweb_box_name=}~cache=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;yweb_box_color;{=yweb_box_color=}~save=}
end-block~yWeb_save_settings
# ------- Live save Settings
start-block~Live_save_settings
{=ini-set:%(CONFIGDIR)/Y-Web.conf;slavebox;{=slavebox=}~open=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;vlc_record_path;{=vlc_record_path=}~cache=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;deinterlace;{=deinterlace=}~cache=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;deinterlace_filter;{=v=}~cache=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;udp;{=udp=}~cache=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;http_caching;{=http_caching=}~save=}
end-block~Live_save_settings
# ------- nhttpd save Settings
start-block~nhttpd_save_settings
{=ini-set:%(CONFIGDIR)/nhttpd.conf;mod_auth.username;{=authuser=}~open=}
{=ini-set:%(CONFIGDIR)/nhttpd.conf;mod_auth.password;{=authpassword=}~cache=}
{=ini-set:%(CONFIGDIR)/nhttpd.conf;mod_auth.no_auth_client;{=noauthclient=}~cache=}
{=ini-set:%(CONFIGDIR)/nhttpd.conf;mod_auth.authenticate;{=authenticate=}~cache=}
{=ini-set:%(CONFIGDIR)/nhttpd.conf;WebsiteMain.port;{=port=}~cache=}
{=ini-set:%(CONFIGDIR)/nhttpd.conf;webserver.threading;{=threading=}~cache=}
{=ini-set:%(CONFIGDIR)/nhttpd.conf;server.no_keep-alive_ips;{=no_keep_alive_ips=}~cache=}
{=ini-set:%(CONFIGDIR)/nhttpd.conf;WebsiteMain.hosted_directory;{=hosted_directory=}~cache=}
{=ini-set:%(CONFIGDIR)/nhttpd.conf;WebsiteMain.override_directory;{=override_directory=}~cache=}
{=ini-set:%(CONFIGDIR)/nhttpd.conf;mod_sendfile.mime_types;{=mod_sendfile_mime_types=}~cache=}
{=ini-set:%(CONFIGDIR)/nhttpd.conf;mod_sendfile.sendAll;{=mod_sendfile_sendAll=}~cache=}
{=ini-set:%(CONFIGDIR)/nhttpd.conf;Language.selected;{=language=}~cache=}
{=ini-set:%(CONFIGDIR)/nhttpd.conf;Tuxbox.DisplayLogos;{=Tuxbox_DisplayLogos=}~cache=}
{=ini-set:%(CONFIGDIR)/nhttpd.conf;Tuxbox.LogosURL;{=Tuxbox_LogosURL=}~save=}
{=func:do_reload_httpd_config=}
end-block~nhttpd_save_settings
# ------- Video / Audio save Settings
start-block~video_audio_save_settings
{=ini-set:%(CONFIGDIR)/neutrino.conf;video_Format;{=video_Format=}~open=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;video_backgroundFormat;{=video_backgroundFormat=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;video_csync;{=h_video_csync=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;vcr_AutoSwitch;{=vcr_AutoSwitch=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;audio_AnalogMode;{=audio_AnalogMode=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;audiochannel_up_down_enable;{=audiochannel_up_down_enable=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;audio_left_right_selectable;{=audio_left_right_selectable=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;audio_avs_Control;{=h_audio_avs_Control=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;audio_DolbyDigital;{=audio_DolbyDigital=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;audio_step;{=audio_step=}~save=}
{=ini-set:%(CONFIGDIR)/controld.conf;vcroutput;{=h_vcroutput=}~open=}
{=ini-set:%(CONFIGDIR)/controld.conf;videooutput;{=h_videooutput=}~save=}
end-block~video_audio_save_settings
# ------- LCD save Settings
start-block~lcd_save_settings
{=ini-set:%(CONFIGDIR)/neutrino.conf;lcd_power;{=lcd_power=}~open=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;lcd_inverse;{=lcd_inverse=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;lcd_dim_time;{=lcd_dim_time=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;lcd_dim_brightness;{=lcd_dim_brightness=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;lcd_epgmode;{=lcd_epgmode=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;lcd_show_volume;{=lcd_show_volume=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;lcd_contrast;{=lcd_contrast=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;lcd_brightness;{=lcd_brightness=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;lcd_standbybrightness;{=lcd_standbybrightness=}~save=}
end-block~lcd_save_settings
# ------- Buttons save Settings
start-block~buttons_save_settings
{=ini-set:%(CONFIGDIR)/neutrino.conf;bouquetlist_mode;{=bouquetlist_mode=}~open=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;key_bouquet_down;{=key_bouquet_down=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;key_bouquet_up;{=key_bouquet_up=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;key_channelList_addrecord;{=key_channelList_addrecord=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;key_channelList_addremind;{=key_channelList_addremind=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;key_channelList_cancel;{=key_channelList_cancel=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;key_channelList_pagedown;{=key_channelList_pagedown=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;key_channelList_pageup;{=key_channelList_pageup=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;key_channelList_reload;{=key_channelList_reload=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;key_channelList_search;{=key_channelList_search=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;key_channelList_sort;{=key_channelList_sort=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;key_lastchannel;{=key_lastchannel=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;key_quickzap_down;{=key_quickzap_down=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;key_quickzap_up;{=key_quickzap_up=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;key_subchannel_down;{=key_subchannel_down=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;key_subchannel_toggle;{=key_subchannel_toggle=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;key_subchannel_up;{=key_subchannel_up=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;key_tvradio_mode;{=key_tvradio_mode=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;key_zaphistory;{=key_zaphistory=}~save=}
end-block~buttons_save_settings
# ------- Personalize save Settings
start-block~personalize_save_settings
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_tvmode;{=p_tv=}~open=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_radiomode;{=p_radio=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_scartmode;{=p_scart=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_games;{=p_games=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_audioplayer;{=p_audioplayer=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_inetradio;{=p_inetradio=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_movieplayer;{=p_movieplayer=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_pictureviewer;{=p_picviewer=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_pincode;{=p_pincode=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_upnpbrowser;{=p_upnp=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_sleeptimer;{=p_sleeptimer=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_reboot;{=p_reboot=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_shutdown;{=p_shutdown=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_settings;{=p_settings=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_video;{=p_video=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_audio;{=p_audio=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_youth;{=p_youth=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_network;{=p_network=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_recording;{=p_recording=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_language;{=p_language=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_colors;{=p_colors=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_lcd;{=p_lcd=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_keybinding;{=p_keybinding=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_mediaplayer;{=p_mediaplayer=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_driver;{=p_driver=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_misc;{=p_misc=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_service;{=p_service=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_bouqueteditor;{=p_bouqueteditor=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_scants;{=p_scants=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_reload;{=p_reload=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_getplugins;{=p_getplugins=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_restart;{=p_restart=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_epgrestart;{=p_epgrestart=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_chan_epg_stat;{=p_chan_epg_stat=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_imageinfo;{=p_imageinfo=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_update;{=p_update=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_bluebutton;{=p_bluebutton=}~cache=}
{=ini-set:%(CONFIGDIR)/neutrino.conf;personalize_redbutton;{=p_redbutton=}~save=}
end-block~personalize_save_settings
# ------- VNC save Settings
start-block~vnc_save_settings
{=ini-set:%(CONFIGDIR)/vnc.conf;server;{=server=}~open=}
{=ini-set:%(CONFIGDIR)/vnc.conf;port;{=port=}~cache=}
{=ini-set:%(CONFIGDIR)/vnc.conf;passwd;{=password=}~cache=}
{=ini-set:%(CONFIGDIR)/vnc.conf;scale;{=scale=}~save=}
end-block~vnc_save_settings
# ------- Timer save Settings
start-block~timer_save_settings
{=ini-set:%(CONFIGDIR)/Y-Web.conf;tvinfo_username;{=tvinfo_username=}=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;tvinfo_password;{=tvinfo_password=}=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;klack_url;{=klack_url=}=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;klack_securitycode;{=klack_securitycode=}=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;live_resolution_w;{=ini-get:%(CONFIGDIR)/Y-Web.conf;live_resolution_w;384=}=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;live_resolution_h;{=ini-get:%(CONFIGDIR)/Y-Web.conf;live_resolution_h;288=}=}
{=file-action:%(CONFIGDIR)/channels.txt;add;{=channels=}=}
end-block~timer_save_settings
# ------- Ext save Settings
start-block~ext_save_settings
{=file-action:%(CONFIGDIR)/extentions.txt;add;{=extentions=}=}
end-block~ext_save_settings
# ------- No Managemant Error
start-block~no_management
{=include-block:Y_Blocks.txt;head=}
</head>
<body>
<br />
<div class="y_head">Error</div>
<div class="y_work_box" title="This page could be used for management proposes only">
This page could be used for management proposes only.
</div>
</body>
</html>
end-block~no_management
# ------- Managemant Check : insert at Top of Page
start-block~management_check_top
{=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~=}=}
{=if-empty:{=var-get:management=}
~
{=include-block:Y_Blocks.txt;no_management=}
~
end-block~management_check_top
# ------- Managemant Check : insert at End of Page
start-block~management_check_bottom
=}
end-block~management_check_bottom
# ------- Managemant Link
start-block~management_link
<a {=if-empty:{=var-get:management=}~class="restricted" title="{=L:restriced_by_management_ip=}" href="javascript:void(0);"~title="{=var-get:m_link_desc=}" href="{=var-get:m_link_href=}" target="work"=}>{=var-get:m_link_text=}</a>
end-block~management_link
# ------- Snip: Wait Message Layer-div hidden
start-block~snip_wait
<div class="y_wait_box" id="wait">
<div class="y_wait_box_head"><h2>{=if-empty:{=var-get:wait_text=}~Inquiry is worked on~{=var-get:wait_text=}=}</h2></div>
<div class="y_wait_box_body">
<p align="center">
<span class="y_wait_box_Main">
{=if-empty:{=var-get:wait_text=}~Inquiry is worked on~{=var-get:wait_text=}=}</span><br/>
<img border="0" src="/images/wait.gif" width="20" height="20" alt="wait"/><br/><br/>
Please wait<br/>
</p>
</div>
</div>
end-block~snip_wait
# ------- Snip: Wait Message Layer-div shown
start-block~snip_show_wait
<div class="y_wait_box_visible" id="wait">
<div class="y_wait_box_head"><h2>{=if-empty:{=var-get:wait_text=}~Inquiry is worked on~{=var-get:wait_text=}=}</h2></div>
<div class="y_wait_box_body">
<p align="center">
<span class="y_wait_box_Main">
{=if-empty:{=var-get:wait_text=}~Inquiry is worked on~{=var-get:wait_text=}=}</span><br/>
<img border="0" src="/images/wait.gif" width="20" height="20" alt="wait"/><br/><br/>
Please wait<br/>
</p>
</div>
</div>
end-block~snip_show_wait
# ------- Wiki Help display
#<img src="/images/help.gif" align="bottom" />
start-block~wiki_help
<!--
<a href="http://www.yjogol.com/{=var-get:help_url=}" target="_blank" title="get help from www.yjogol.com">?</a>
-->
end-block~wiki_help
# ------- work menu
start-block~work_menu
<div class="work_box_help">{=include-block:Y_Blocks.txt;wiki_help=}</div><div style="margin-right:4em;">{=var-get:menu=}</div>
end-block~work_menu
# ============= LAYOUT
# ------- Lay-HEAD
start-block~head
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<title>yWeb</title>
<link rel="stylesheet" type="text/css" href="/Y_Main.css" />
<link rel="stylesheet" type="text/css" href="/Y_Dist.css" />
<link rel="stylesheet" type="text/css" href="/Y_User.css" />
end-block~head
# ------- Lay-HEAD
start-block~headCache
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>yWeb</title>
<link rel="stylesheet" type="text/css" href="/Y_Main.css" />
<link rel="stylesheet" type="text/css" href="/Y_Dist.css" />
<link rel="stylesheet" type="text/css" href="/Y_User.css" />
end-block~headCache
# ------- Lay-HEAD without charset
start-block~head_no_charset
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>yWeb</title>
<link rel="stylesheet" type="text/css" href="/Y_Main.css" />
<link rel="stylesheet" type="text/css" href="/Y_Dist.css" />
<link rel="stylesheet" type="text/css" href="/Y_User.css" />
end-block~head_no_charset
# ------- Lay-Frame HEAD
start-block~frame_head
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/Y_Main.css" />
<link rel="stylesheet" type="text/css" href="/Y_Dist.css" />
<link rel="stylesheet" type="text/css" href="/Y_User.css" />
<title>yWeb</title>
end-block~frame_head
# ------- Lay-Frame HEAD
start-block~frame_iso_head
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="/Y_Main.css" />
<link rel="stylesheet" type="text/css" href="/Y_Dist.css" />
<link rel="stylesheet" type="text/css" href="/Y_User.css" />
<title>yWeb</title>
end-block~frame_iso_head
# ------- nhttpd save Settings
start-block~start_wizard_save_settings
{=ini-set:%(CONFIGDIR)/Y-Web.conf;start_page;{=start_page=}~open=}
{=ini-set:%(CONFIGDIR)/Y-Web.conf;startup;true~save=}
{=ini-set:%(CONFIGDIR)/nhttpd.conf;Language.selected;{=language=}=}
{=func:do_reload_httpd_config=}
end-block~start_wizard_save_settings
# ------- Start Wizard
start-block~start_wizard_page
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_submit()
{
show_waitbox(true);
yhttpd_cache_clear("");
document.f.submit();
}
//]]>
</script>
</head>
<body">
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Settings-StartWizard=}{=var-set:menu={=L:start.head=}Start Wizard=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form name="f" class="y_form" action="/y/cgi">
<table border="0" width="100%">
<tr><td colspan="2" class="y_form_header">Welcome to yWeb</td></tr>
<tr>
<td>{=L:language=}</td>
<td colspan="3"> <select name="language" title="{=L:language=}">
{=func:get_languages_as_dropdown=}
</select>
</tr>
<tr>
<td>{=L:set.yweb.start_page=}</td>
<td> <select name="start_page" title="{=L:set.yweb.start_page=}">
<option value="bouquets" selected="selected">{=L:bc.menue.bouquets=}</option>
<option value="control">{=L:bc.menue.control=}</option>
<option value="none">{=L:empty=}</option>
</td>
</tr>
</table>
<br/>
<input type="hidden" name="tmpl" value="Y_Refresh.yhtm"/>
<input type="hidden" name="execute" value="include-block:Y_Blocks.txt;start_wizard_save_settings;nix"/>
<button type="button" ytype="save" title="{=L:save_values_desc=}" onclick="do_submit()">{=L:save=}</button>
</form>
</div>
</div>
</body>
</html>
end-block~start_wizard_page
# ------- Lay-Frame MAIN
start-block~frame_main
{=if-empty:{=ini-get:%(CONFIGDIR)/Y-Web.conf;startup=}~
{=include-block:Y_Blocks.txt;start_wizard_page=}
~
{=include-block:Y_Blocks.txt;frame_head=}
<title>yWeb</title>
</head>
<frameset rows="70,*" frameborder="0" framespacing="0">
<frame name="prim_menu" src="Y_Menue.yhtm" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" noresize="noresize" />
<frame name="base" src="Y_Dyn_Pages.yhtm?page=frame_boxcontrol" marginwidth="0" marginheight="0" frameborder="0" style="height:100%"; />
</frameset>
<noframes>
<body>
<p>Your Browser does not support Frames.</p>
</body>
</noframes>
</html>
=}
end-block~frame_main
# ------- Lay-Frame MAIN
start-block~page_frame_rest
{=include-block:Y_Blocks.txt;head=}
</head>
<body>
</body>
</html>
end-block~page_frame_rest
# ------- Lay-Frame Secondary-Menu
start-block~frame_secondary
{=include-block:Y_Blocks.txt;frame_iso_head=}
</head>
<frameset cols="175,*" frameborder="0" framespacing="0">
<frame name="sec_menu" src="{=var-get:sec_menu=}" scrolling="no" noresize="noresize" frameborder="0" />
<frame name="work" src="{=var-get:work=}" scrolling="auto" frameborder="0" />
</frameset>
<noframes>
<body>
<p>Your Browser does not support Frames.</p>
</body>
</noframes>
</html>
end-block~frame_secondary
# ------- Lay-Frame Boxcontrol-Menu
start-block~frame_boxcontrol
{=var-set:sec_menu=Y_Boxcontrol_Menue.yhtm=}
{=var-set:startpage={=ini-get:%(CONFIGDIR)/Y-Web.conf;start_page;bouquets=}=}
{=var-set:work=
{=if-equal:{=var-get:startpage=}~bouquets~Y_Boxcontrol_Bouquets.yhtm
~
{=if-equal:{=var-get:startpage=}~control~Y_Tools_Boxcontrol.yhtm~Y_blank.htm=}
=}=}
{=include-block:Y_Blocks.txt;frame_secondary=}
end-block~frame_boxcontrol
# ------- Lay-Frame Live-Menu
start-block~frame_live
{=var-set:sec_menu=Y_Live_Menue.yhtm?start={=dostart=}=}
{=var-set:work=Y_blank.htm=}
{=include-block:Y_Blocks.txt;frame_secondary=}
end-block~frame_live
# ------- Lay-Frame Live-Menu
start-block~frame_live_directtv
{=var-set:sec_menu=Y_Live_Menue.yhtm=}
{=var-set:work=Y_LiveViewFull.yhtm?mode=tv&amp;typ=live=}
{=include-block:Y_Blocks.txt;frame_secondary=}
end-block~frame_live_directtv
# ------- Lay-Frame Tools-Menu
start-block~frame_tools
{=var-set:sec_menu=Y_Tools_Menue.yhtm=}
{=var-set:work=Y_blank.htm=}
{=include-block:Y_Blocks.txt;frame_secondary=}
end-block~frame_tools
# ------- Lay-Frame Settings-Menu
start-block~frame_settings
{=var-set:sec_menu=Y_Settings_Menue.yhtm=}
{=var-set:work=Y_blank.htm=}
{=include-block:Y_Blocks.txt;frame_secondary=}
end-block~frame_settings
# ------- Lay-Frame Extentions-Menu
start-block~frame_ext
{=var-set:sec_menu=Y_Ext_Menue.yhtm=}
{=var-set:work=Y_blank.htm=}
{=include-block:Y_Blocks.txt;frame_secondary=}
end-block~frame_ext
# ------- Lay-Frame Info-Menu
start-block~frame_info
{=var-set:sec_menu=Y_Info_Menue.yhtm=}
{=var-set:work=Y_About.yhtm=}
{=include-block:Y_Blocks.txt;frame_secondary=}
end-block~frame_info
# ==== LIVE
# ------- Lay-Frame Live-EPG Frameset
start-block~frame_live_epg
{=include-block:Y_Blocks.txt;frame_head=}
</head>
<frameset rows="100,*" frameborder="0" framespacing="0">
<frame name="epg_info" src="Y_Live_EPG_Info.yhtm" scrolling="auto" frameborder="0" />
<frame name="epg_list" src="Y_Live_EPG.yhtm?channel={=channel=}&logoid={=logoid=}" scrolling="auto" frameborder="0" style="height:100%" />
</frameset>
<noframes>
<body>
<p>Your Browser does not support Frames.</p>
</body>
</noframes>
</html>
end-block~frame_live_epg
# ------- Remote
start-block~remote
{=var-set:nfbtype={=ini-get:%(CONFIGDIR)/neutrino.conf;remote_control_hardware=}=}
{=var-set:yfbtype={=ini-get:%(CONFIGDIR)/Y-Web.conf;fb;0=}=}
{=var-set:boxtype={=func:get_boxtype=}=}
{=if-equal:{=var-get:yfbtype=}~0~
{=if-equal:{=var-get:nfbtype=}~2~ {=include-block:Y_Blocks.txt;rc_dbox_philips=}~
{=if-equal:{=var-get:nfbtype=}~1~ {=include-block:Y_Blocks.txt;rc_dbox_nokia_old=}~
{=if-equal:{=var-get:boxtype=}~CST Neo~ {=include-block:Y_Blocks.txt;rc_cst_v2=}~
{=if-equal:{=var-get:boxtype=}~CST Zee~ {=include-block:Y_Blocks.txt;rc_cst_v3=}~
{=if-equal:{=var-get:boxtype=}~CST Neo Twin~ {=include-block:Y_Blocks.txt;rc_cst_v4=}~
{=if-equal:{=var-get:boxtype=}~CST Tank~ {=include-block:Y_Blocks.txt;rc_cst_v5=}~
{=if-equal:{=var-get:boxtype=}~CST Trinity~ {=include-block:Y_Blocks.txt;rc_cst_v6=}~
{=if-equal:{=var-get:boxtype=}~CST Zee2~ {=include-block:Y_Blocks.txt;rc_cst_v6=}~
{=if-equal:{=var-get:boxtype=}~CST Link~ {=include-block:Y_Blocks.txt;rc_cst_v4=}~
{=if-equal:{=var-get:boxtype=}~CST Trinity Duo~ {=include-block:Y_Blocks.txt;rc_cst_v6=}~
{=comment:fallback~=} {=include-block:Y_Blocks.txt;rc_cst_v1=}
=}=}=}=}=}=}=}=}
=}=}
~
{=if-equal:{=var-get:yfbtype=}~-2~ {=include-block:Y_Blocks.txt;rc_dbox_philips=}~
{=if-equal:{=var-get:yfbtype=}~-1~ {=include-block:Y_Blocks.txt;rc_dbox_nokia_old=}~
{=if-equal:{=var-get:yfbtype=}~1~ {=include-block:Y_Blocks.txt;rc_cst_v1=}~
{=if-equal:{=var-get:yfbtype=}~2~ {=include-block:Y_Blocks.txt;rc_cst_v2=}~
{=if-equal:{=var-get:yfbtype=}~3~ {=include-block:Y_Blocks.txt;rc_cst_v3=}~
{=if-equal:{=var-get:yfbtype=}~4~ {=include-block:Y_Blocks.txt;rc_cst_v4=}~
{=if-equal:{=var-get:yfbtype=}~5~ {=include-block:Y_Blocks.txt;rc_cst_v5=}~
{=if-equal:{=var-get:yfbtype=}~6~ {=include-block:Y_Blocks.txt;rc_cst_v6=}~
{=if-equal:{=var-get:yfbtype=}~7~ {=include-block:Y_Blocks.txt;rc_cst_v4=}~
{=if-equal:{=var-get:yfbtype=}~8~ {=include-block:Y_Blocks.txt;rc_cst_v6=}~
{=comment:fallback~=} {=include-block:Y_Blocks.txt;rc_cst_v1=}
=}=}=}=}=}=}=}=}=}=}
=}
end-block~remote
# ------ Remote CST V1 (HD1 / BSE)
start-block~rc_cst_v1
<img src="images/rc_cst_v1.jpg" usemap="#rc" alt="remote" />
<map name="rc" id="rc">
<area shape="rect" href="javascript:rcsim('KEY_POWER')" coords="134, 38, 159, 68" />
<area shape="rect" href="javascript:rcsim('KEY_MUTE')" coords="29, 37, 56, 66" />
<area shape="rect" href="javascript:rcsim('KEY_1')" coords="24, 85, 63, 119" />
<area shape="rect" href="javascript:rcsim('KEY_2')" coords="77, 79, 117, 104" />
<area shape="rect" href="javascript:rcsim('KEY_3')" coords="134, 85, 169, 120" />
<area shape="rect" href="javascript:rcsim('KEY_4')" coords="24, 125, 63, 160" />
<area shape="rect" href="javascript:rcsim('KEY_5')" coords="77, 120, 117, 145" />
<area shape="rect" href="javascript:rcsim('KEY_6')" coords="134, 125, 169, 160" />
<area shape="rect" href="javascript:rcsim('KEY_7')" coords="24, 170, 63, 200" />
<area shape="rect" href="javascript:rcsim('KEY_8')" coords="77, 160, 117, 185" />
<area shape="rect" href="javascript:rcsim('KEY_9')" coords="134, 170, 169, 200" />
<area shape="rect" href="javascript:rcsim('KEY_0')" coords="77, 200, 117, 230" />
<area shape="rect" href="javascript:rcsim('KEY_INFO')" coords="134, 210, 169, 245" />
<area shape="rect" href="javascript:rcsim('KEY_SETUP')" coords="19, 282, 44, 310" />
<area shape="rect" href="javascript:rcsim('KEY_EPG')" coords="59, 247, 84, 275" />
<area shape="rect" href="javascript:rcsim('KEY_FAVORITES')" coords="110, 247, 134, 275" />
<area shape="rect" href="javascript:rcsim('KEY_HOME')" coords="144, 282, 169, 310" />
<area shape="rect" href="javascript:rcsim('KEY_UP')" coords="69, 280, 124, 304" />
<area shape="rect" href="javascript:rcsim('KEY_LEFT')" coords="47, 300, 66, 360" />
<area shape="rect" href="javascript:rcsim('KEY_OK')" coords="80, 316, 111, 350" />
<area shape="rect" href="javascript:rcsim('KEY_RIGHT')" coords="124, 304, 144, 365" />
<area shape="rect" href="javascript:rcsim('KEY_DOWN')" coords="68, 360, 124, 385" />
<area shape="rect" href="javascript:rcsim('KEY_VOLUMEUP')" coords="24, 367, 51, 396" />
<area shape="rect" href="javascript:rcsim('KEY_VOLUMEDOWN')" coords="61, 396, 86, 425" />
<area shape="rect" href="javascript:rcsim('KEY_PAGEUP')" coords="140, 367, 164, 396" />
<area shape="rect" href="javascript:rcsim('KEY_PAGEDOWN')" coords="104, 396, 131, 425" />
<area shape="rect" href="javascript:rcsim('KEY_TV')" coords="28, 422, 64, 455" />
<area shape="rect" href="javascript:rcsim('KEY_TEXT')" coords="78, 439, 111, 463" />
<area shape="rect" href="javascript:rcsim('KEY_RADIO')" coords="28, 422, 64, 455" />
<area shape="rect" href="javascript:rcsim('KEY_RED')" coords="29, 468, 50, 492" />
<area shape="rect" href="javascript:rcsim('KEY_GREEN')" coords="64, 480, 87, 505" />
<area shape="rect" href="javascript:rcsim('KEY_YELLOW')" coords="99, 480, 122, 505" />
<area shape="rect" href="javascript:rcsim('KEY_BLUE')" coords="137, 470, 158, 492" />
<area shape="rect" href="javascript:rcsim('KEY_SAT')" coords="24, 526, 63, 548" />
<area shape="rect" href="javascript:rcsim('KEY_HELP')" coords="72, 530, 115, 550" />
<area shape="rect" href="javascript:rcsim('KEY_NEXT')" coords="124, 530, 164, 548" />
<area shape="rect" href="javascript:rcsim('KEY_PREVIOUS')" coords="123, 561, 160, 580" />
<area shape="rect" href="javascript:rcsim('KEY_TIME')" coords="27, 558, 64, 580" />
<area shape="rect" href="javascript:rcsim('KEY_AUDIO')" coords="71, 562, 115, 583" />
<area shape="rect" href="javascript:rcsim('KEY_REWIND')" coords="28, 589, 63, 612" />
<area shape="rect" href="javascript:rcsim('KEY_FORWARD')" coords="70, 592, 114, 612" />
<area shape="rect" href="javascript:rcsim('KEY_PAUSE')" coords="122, 592, 156, 612" />
<area shape="rect" href="javascript:rcsim('KEY_RECORD')" coords="28, 620, 63, 645" />
<area shape="rect" href="javascript:rcsim('KEY_STOP')" coords="69, 625, 114, 645" />
<area shape="rect" href="javascript:rcsim('KEY_PLAY')" coords="119, 625, 154, 645" />
<area shape="rect" href="javascript:rcsim('KEY_GAMES')" coords="122, 422, 164, 455" />
</map>
end-block~rc_cst_v1
# ------- Remote CST V2 (NEO)
start-block~rc_cst_v2
<img src="images/rc_cst_v2.png" usemap="#rc" alt="remote" />
<map name="rc" id="rc">
<area shape="rect" href="javascript:rcsim('KEY_POWER')" coords="22, 28, 45, 50" />
<area shape="rect" href="javascript:rcsim('KEY_MUTE')" coords="133, 29, 153, 50" />
<area shape="rect" href="javascript:rcsim('KEY_1')" coords="28, 161, 55, 187" />
<area shape="rect" href="javascript:rcsim('KEY_2')" coords="75, 161, 102, 187" />
<area shape="rect" href="javascript:rcsim('KEY_3')" coords="118, 161, 146, 187" />
<area shape="rect" href="javascript:rcsim('KEY_4')" coords="28, 196, 55, 221" />
<area shape="rect" href="javascript:rcsim('KEY_5')" coords="74, 196, 101, 221" />
<area shape="rect" href="javascript:rcsim('KEY_6')" coords="118, 196, 146, 221" />
<area shape="rect" href="javascript:rcsim('KEY_7')" coords="28, 233, 55, 258" />
<area shape="rect" href="javascript:rcsim('KEY_8')" coords="74, 233, 101, 258" />
<area shape="rect" href="javascript:rcsim('KEY_9')" coords="118, 233, 146, 258" />
<area shape="rect" href="javascript:rcsim('KEY_0')" coords="74, 270, 101, 297" />
<area shape="rect" href="javascript:rcsim('KEY_INFO')" coords="134, 398, 157, 422" />
<area shape="rect" href="javascript:rcsim('KEY_SETUP')" coords="17, 520, 39, 543" />
<area shape="rect" href="javascript:rcsim('KEY_EPG')" coords="17, 398, 41, 422" />
<area shape="rect" href="javascript:rcsim('KEY_FAVORITES')" coords="118, 270, 146, 297" />
<area shape="rect" href="javascript:rcsim('KEY_HOME')" coords="133, 518, 157, 542" />
<area shape="rect" href="javascript:rcsim('KEY_UP')" coords="70, 422, 105, 450" />
<area shape="rect" href="javascript:rcsim('KEY_LEFT')" coords="37, 450, 70, 490" />
<area shape="rect" href="javascript:rcsim('KEY_OK')" coords="75, 456, 100, 485" />
<area shape="rect" href="javascript:rcsim('KEY_RIGHT')" coords="105, 454, 141, 490" />
<area shape="rect" href="javascript:rcsim('KEY_DOWN')" coords="70, 488, 105, 520" />
<area shape="rect" href="javascript:rcsim('KEY_VOLUMEUP')" coords="18, 317, 59, 350" />
<area shape="rect" href="javascript:rcsim('KEY_VOLUMEDOWN')" coords="18, 350, 59, 385" />
<area shape="rect" href="javascript:rcsim('KEY_PAGEUP')" coords="118, 317, 158, 350" />
<area shape="rect" href="javascript:rcsim('KEY_PAGEDOWN')" coords="118, 350, 155, 385" />
<area shape="rect" href="javascript:rcsim('KEY_TV')" coords="21, 59, 42, 80" />
<area shape="rect" href="javascript:rcsim('KEY_TEXT')" coords="28, 270, 55, 297" />
<area shape="rect" href="javascript:rcsim('KEY_RADIO')" coords="21, 59, 42, 80" />
<area shape="rect" href="javascript:rcsim('KEY_RED')" coords="11, 560, 45, 580" />
<area shape="rect" href="javascript:rcsim('KEY_GREEN')" coords="52, 560, 85, 580" />
<area shape="rect" href="javascript:rcsim('KEY_YELLOW')" coords="91, 560, 125, 580" />
<area shape="rect" href="javascript:rcsim('KEY_BLUE')" coords="132, 560, 165, 580" />
<area shape="rect" href="javascript:rcsim('KEY_SAT')" coords="20, 94, 41, 113" />
<area shape="rect" href="javascript:rcsim('KEY_HELP')" coords="134, 93, 155, 114" />
<area shape="rect" href="javascript:rcsim('KEY_NEXT')" coords="59, 59, 80, 80" />
<area shape="rect" href="javascript:rcsim('KEY_PREVIOUS')" coords="96, 59, 117, 80" />
<area shape="rect" href="javascript:rcsim('KEY_TIME')" coords="135, 628, 158, 650" />
<area shape="rect" href="javascript:rcsim('KEY_AUDIO')" coords="96, 93, 117, 113" />
<area shape="rect" href="javascript:rcsim('KEY_REWIND')" coords="16, 593, 40, 614" />
<area shape="rect" href="javascript:rcsim('KEY_FORWARD')" coords="95, 593, 120, 614" />
<area shape="rect" href="javascript:rcsim('KEY_PAUSE')" coords="58, 628, 81, 651" />
<area shape="rect" href="javascript:rcsim('KEY_RECORD')" coords="17, 628, 42, 651" />
<area shape="rect" href="javascript:rcsim('KEY_STOP')" coords="135, 593, 158, 614" />
<area shape="rect" href="javascript:rcsim('KEY_PLAY')" coords="57, 593, 80, 614" />
<area shape="rect" href="javascript:rcsim('KEY_WWW')" coords="21, 128, 42, 150" />
<area shape="rect" href="javascript:rcsim('KEY_GAMES')" coords="95, 628, 120, 651" />
</map>
end-block~rc_cst_v2
# ------ Remote CST V3 (ZEE, NEO2)
start-block~rc_cst_v3
{=var-set:rcu=rc_cst_v3=}
<img src="images/rc_cst_v3.png" usemap="#rc" alt="remote" />
{=include-block:Y_Blocks.txt;map_rc_cst_v3_v4=}
end-block~rc_cst_v3
# ------ Remote CST V4 (NEO TWIN)
start-block~rc_cst_v4
{=var-set:rcu=rc_cst_v4=}
<img src="images/rc_cst_v4.png" usemap="#rc" alt="remote" />
{=include-block:Y_Blocks.txt;map_rc_cst_v3_v4=}
end-block~rc_cst_v4
# ------ Map for Remote CST V3 (ZEE, NEO2) and V4 (NEO TWIN)
start-block~map_rc_cst_v3_v4
<map name="rc" id="rc">
<area shape="circle" href="javascript:rcsim('KEY_POWER')" coords="46,42,14" alt="standby" title="{=L:rc.key_power=}" />
<area shape="circle" href="javascript:rcsim('KEY_MUTE')" coords="123,42,11" alt="mute" title="{=L:rc.key_mute=}" />
<area shape="circle" href="javascript:rcsim('KEY_RADIO')" coords="36,87,11" alt="tv/radio" title="{=L:rc.key_radio=}" />
<area shape="circle" href="javascript:rcsim('KEY_NEXT')" coords="67,87,11" alt="skip-" title="{=L:rc.key_next=}" />
<area shape="circle" href="javascript:rcsim('KEY_PREVIOUS')" coords="97,87,11" alt="skip+" title="{=L:rc.key_previous=}" />
<!-- area shape="circle" coords="128,87,11" alt="stb/tv" / -->
<area shape="circle" href="javascript:rcsim('KEY_MODE')" coords="36,120,11" alt="vformat" title="{=L:rc.key_mode=}" />
<area shape="circle" href="javascript:rcsim('KEY_SLEEP')" coords="67,120,11" alt="sleep" title="{=L:rc.key_sleep=}" />
<area shape="circle" href="javascript:rcsim('KEY_AUDIO')" coords="97,120,11" alt="audio" title="{=L:rc.key_audio=}" />
<area shape="circle" href="javascript:rcsim('KEY_HELP')" coords="128,120,11" alt="help" title="{=L:rc.key_help=}" />
<area shape="rect" href="javascript:rcsim('KEY_1')" coords="28,145,54,160" alt="1" title="{=L:rc.key_1=}" />
<area shape="rect" href="javascript:rcsim('KEY_2')" coords="69,145,95,160" alt="2" title="{=L:rc.key_2=}" />
<area shape="rect" href="javascript:rcsim('KEY_3')" coords="110,145,136,160" alt="3" title="{=L:rc.key_3=}" />
<area shape="rect" href="javascript:rcsim('KEY_4')" coords="28,171,54,186" alt="4" title="{=L:rc.key_4=}" />
<area shape="rect" href="javascript:rcsim('KEY_5')" coords="69,171,95,186" alt="5" title="{=L:rc.key_5=}" />
<area shape="rect" href="javascript:rcsim('KEY_6')" coords="110,171,136,186" alt="6" title="{=L:rc.key_6=}" />
<area shape="rect" href="javascript:rcsim('KEY_7')" coords="28,197,54,212" alt="7" title="{=L:rc.key_7=}" />
<area shape="rect" href="javascript:rcsim('KEY_8')" coords="69,197,95,212" alt="8" title="{=L:rc.key_8=}" />
<area shape="rect" href="javascript:rcsim('KEY_9')" coords="110,197,136,212" alt="9" title="{=L:rc.key_9=}" />
<area shape="rect" href="javascript:rcsim('KEY_0')" coords="69,222,95,237" alt="0" title="{=L:rc.key_0=}" />
<area shape="rect" href="javascript:rcsim('KEY_TEXT')" coords="28,222,54,237" alt="txt" title="{=L:rc.key_text=}" />
<area shape="rect" href="javascript:rcsim('KEY_FAVORITES')" coords="110,222,136,237" alt="fav" title="{=L:rc.key_favorites=}" />
<area shape="circle" href="javascript:rcsim('KEY_EPG')" coords="36,260,11" alt="epg" title="{=L:rc.key_epg=}" />
<area shape="circle" href="javascript:rcsim('KEY_INFO')" coords="128,260,11" alt="info" title="{=L:rc.key_info=}" />
<area shape="poly" href="javascript:rcsim('KEY_UP')" coords="51,267,65,280,82,275,100,280,113,267,82,255" alt="up" title="{=L:rc.key_up=}" />
<area shape="poly" href="javascript:rcsim('KEY_DOWN')" coords="51,343,65,330,82,335,100,330,113,343,82,355" alt="down" title="{=L:rc.key_down=}" />
<area shape="poly" href="javascript:rcsim('KEY_LEFT')" coords="57,287,44,274,33,305,44,336,57,323,53,305" alt="left" title="{=L:rc.key_left=}" />
<area shape="poly" href="javascript:rcsim('KEY_RIGHT')" coords="105,287,120,274,131,305,120,336,105,323,111,305" alt="right" title="{=L:rc.key_right=}" />
<area shape="circle" href="javascript:rcsim('KEY_OK')" coords="82,305,20" alt="ok" title="{=L:rc.key_ok=}" />
<area shape="circle" href="javascript:rcsim('KEY_SETUP')" coords="36,350,11" alt="menu" title="{=L:rc.key_setup=}" />
<area shape="circle" href="javascript:rcsim('KEY_HOME')" coords="128,350,11" alt="exit" title="{=L:rc.key_home=}" />
<area shape="rect" href="javascript:rcsim('KEY_VOLUMEUP')" coords="28,372,63,392" alt="vol+" title="{=L:rc.key_volumeup=}" />
<area shape="rect" href="javascript:rcsim('KEY_VOLUMEDOWN')" coords="28,404,63,424" alt="vol-" title="{=L:rc.key_volumedown=}" />
<area shape="rect" href="javascript:rcsim('KEY_PAGEUP')" coords="101,372,136,392" alt="page+" title="{=L:rc.key_pageup=}" />
<area shape="rect" href="javascript:rcsim('KEY_PAGEDOWN')" coords="101,404,136,424" alt="page-" title="{=L:rc.key_pagedown=}" />
<area shape="circle" href="javascript:rcsim('KEY_SAT')" coords="82,398,11" alt="sat" title="{=L:rc.key_sat=}" />
<area shape="circle" href="javascript:rcsim('KEY_RED')" coords="35,447,11" alt="red" title="{=L:rc.key_red=}" />
<area shape="circle" href="javascript:rcsim('KEY_GREEN')" coords="66,447,11" alt="green" title="{=L:rc.key_green=}" />
<area shape="circle" href="javascript:rcsim('KEY_YELLOW')" coords="98,447,11" alt="yellow" title="{=L:rc.key_yellow=}" />
<area shape="circle" href="javascript:rcsim('KEY_BLUE')" coords="129,447,11" alt="blue" title="{=L:rc.key_blue=}" />
<area shape="circle" href="javascript:rcsim('KEY_WWW')" coords="39,487,9" alt="w" title="{=L:rc.key_www=}" />
<!-- area shape="circle" coords="68,487,9" alt="sub" / -->
<!-- area shape="circle" coords="96,487,9" alt="recall" / -->
<!-- area shape="circle" coords="125,487,9" alt="pos" / -->
<area shape="circle" href="javascript:rcsim('KEY_REWIND')" coords="39,514,9" alt="rew" title="{=L:rc.key_rewind=}" />
<area shape="circle" href="javascript:rcsim('KEY_PLAY')" coords="68,514,9" alt="play" title="{=L:rc.key_play=}" />
<area shape="circle" href="javascript:rcsim('KEY_FORWARD')" coords="96,514,9" alt="ff" title="{=L:rc.key_forward=}" />
<area shape="circle" href="javascript:rcsim('KEY_STOP')" coords="125,514,9" alt="stop" title="{=L:rc.key_stop=}" />
<area shape="circle" href="javascript:rcsim('KEY_RECORD')" coords="39,541,9" alt="rec" title="{=L:rc.key_record=}" />
<area shape="circle" href="javascript:rcsim('KEY_PAUSE')" coords="68,541,9" alt="pause" title="{=L:rc.key_pause=}" />
<area shape="circle" href="javascript:rcsim('KEY_GAMES')" coords="96,541,9" alt="m/s" title="{=L:rc.key_games=}" />
<area shape="circle" href="javascript:rcsim('KEY_TIME')" coords="125,541,9" alt="t/s" title="{=L:rc.key_time=}" />
<area shape="circle" href="javascript:rcsim('KEY_NEXT')" coords="39,568,9" alt="picsize" title="{=L:rc.key_picsize=}" />
{=if-equal:{=var-get:rcu=}~rc_cst_v3~
<area shape="circle" href="javascript:rcsim('KEY_PREVIOUS')" coords="125,568,9" alt="picmode" title="{=L:rc.key_picmode=}" />~
{=if-equal:{=var-get:rcu=}~rc_cst_v4~
<area shape="circle" href="javascript:rcsim('KEY_PREVIOUS')" coords="68,568,9" alt="picmode" title="{=L:rc.key_picmode=}" />~
=}=}
</map>
end-block~map_rc_cst_v3_v4
# ------- Remote CST V5 (TANK)
start-block~rc_cst_v5
<img src="images/rc_cst_v5.png" usemap="#rc" alt="remote" />
<map name="rc" id="rc">
<area shape="circle" href="javascript:rcsim('KEY_POWER')" coords="50,42,14" alt="standby" title="{=L:rc.key_power=}" />
<area shape="rect" href="javascript:rcsim('KEY_1')" coords="24,66,66,94" alt="1" title="{=L:rc.key_1=}" />
<area shape="rect" href="javascript:rcsim('KEY_2')" coords="76,66,118,94" alt="2" title="{=L:rc.key_2=}" />
<area shape="rect" href="javascript:rcsim('KEY_3')" coords="128,66,170,94" alt="3" title="{=L:rc.key_3=}" />
<area shape="rect" href="javascript:rcsim('KEY_4')" coords="24,103,66,131" alt="4" title="{=L:rc.key_4=}" />
<area shape="rect" href="javascript:rcsim('KEY_5')" coords="76,103,118,131" alt="5" title="{=L:rc.key_5=}" />
<area shape="rect" href="javascript:rcsim('KEY_6')" coords="128,103,170,131" alt="6" title="{=L:rc.key_6=}" />
<area shape="rect" href="javascript:rcsim('KEY_7')" coords="24,140,66,168" alt="7" title="{=L:rc.key_7=}" />
<area shape="rect" href="javascript:rcsim('KEY_8')" coords="76,140,118,168" alt="8" title="{=L:rc.key_8=}" />
<area shape="rect" href="javascript:rcsim('KEY_9')" coords="128,140,170,168" alt="9" title="{=L:rc.key_9=}" />
<area shape="rect" href="javascript:rcsim('KEY_MODE')" coords="24,177,66,205" alt="vformat" title="{=L:rc.key_mode=}" />
<area shape="rect" href="javascript:rcsim('KEY_0')" coords="76,177,118,205" alt="0" title="{=L:rc.key_0=}" />
<area shape="rect" href="javascript:rcsim('KEY_RADIO')" coords="128,177,170,205" alt="tv/radio" title="{=L:rc.key_radio=}" />
<area shape="rect" href="javascript:rcsim('KEY_OK')" coords="74,248,120,276" alt="ok" title="{=L:rc.key_ok=}" />
<area shape="rect" href="javascript:rcsim('KEY_UP')" coords="76,218,118,246" alt="up" title="{=L:rc.key_up=}" />
<area shape="rect" href="javascript:rcsim('KEY_DOWN')" coords="76,278,118,306" alt="down" title="{=L:rc.key_down=}" />
<area shape="rect" href="javascript:rcsim('KEY_LEFT')" coords="30,248,72,276" alt="left" title="{=L:rc.key_left=}" />
<area shape="rect" href="javascript:rcsim('KEY_RIGHT')" coords="122,248,164,276" alt="right" title="{=L:rc.key_right=}" />
<area shape="rect" href="javascript:rcsim('KEY_EPG')" coords="28,216,70,244" alt="epg" title="{=L:rc.key_epg=}" />
<area shape="rect" href="javascript:rcsim('KEY_SETUP')" coords="28,280,70,308" alt="menu" title="{=L:rc.key_setup=}" />
<area shape="rect" href="javascript:rcsim('KEY_INFO')" coords="124,216,166,244" alt="info" title="{=L:rc.key_info=}" />
<area shape="rect" href="javascript:rcsim('KEY_HOME')" coords="124,280,166,308" alt="exit" title="{=L:rc.key_home=}" />
<!-- area shape="rect" coords="24,321,66,349" alt="sub" / -->
<area shape="rect" href="javascript:rcsim('KEY_PREVIOUS')" coords="76,321,118,349" alt="picmode" title="{=L:rc.key_picmode=}" />
<area shape="rect" href="javascript:rcsim('KEY_FAVORITES')" coords="128,321,170,349" alt="fav" title="{=L:rc.key_favorites=}" />
<area shape="rect" href="javascript:rcsim('KEY_RED')" coords="26,358,58,386" alt="red" title="{=L:rc.key_red=}" />
<area shape="rect" href="javascript:rcsim('KEY_GREEN')" coords="63,358,95,386" alt="green" title="{=L:rc.key_green=}" />
<area shape="rect" href="javascript:rcsim('KEY_YELLOW')" coords="100,358,132,386" alt="yellow" title="{=L:rc.key_yellow=}" />
<area shape="rect" href="javascript:rcsim('KEY_BLUE')" coords="137,358,169,386" alt="blue" title="{=L:rc.key_blue=}" />
<area shape="rect" href="javascript:rcsim('KEY_VOLUMEUP')" coords="28,396,70,431" alt="vol+" title="{=L:rc.key_volumeup=}" />
<area shape="rect" href="javascript:rcsim('KEY_VOLUMEDOWN')" coords="28,441,70,476" alt="vol-" title="{=L:rc.key_volumedown=}" />
<area shape="rect" href="javascript:rcsim('KEY_MUTE')" coords="76,399,118,427" alt="mute" title="{=L:rc.key_mute=}" />
<area shape="rect" href="javascript:rcsim('KEY_TEXT')" coords="76,446,118,474" alt="text" title="{=L:rc.key_text=}" />
<area shape="rect" href="javascript:rcsim('KEY_PAGEUP')" coords="124,396,166,431" alt="page+" title="{=L:rc.key_pageup=}" />
<area shape="rect" href="javascript:rcsim('KEY_PAGEDOWN')" coords="124,441,166,476" alt="page-" title="{=L:rc.key_pagedown=}" />
<area shape="rect" coords="24,485,66,513" alt="trsp" href="javascript:rcsim('KEY_GAMES')" title="{=L:rc.key_trsp=}" />
<!-- area shape="rect" coords="76,485,118,513" alt="stb/tv" / -->
<!-- area shape="rect" coords="128,485,170,513" alt="recall" / -->
<area shape="rect" href="javascript:rcsim('KEY_AUDIO')" coords="24,523,66,551" alt="audio" title="{=L:rc.key_audio=}" />
<area shape="rect" href="javascript:rcsim('KEY_SAT')" coords="76,523,118,551" alt="sat" title="{=L:rc.key_sat=}" />
<area shape="rect" href="javascript:rcsim('KEY_HELP')" coords="128,523,170,551" alt="help" title="{=L:rc.key_help=}" />
<area shape="rect" href="javascript:rcsim('KEY_REWIND')" coords="24,560,66,588" alt="rew" title="{=L:rc.key_rewind=}" />
<area shape="rect" href="javascript:rcsim('KEY_PLAY')" coords="76,560,118,588" alt="play" title="{=L:rc.key_play=}" />
<area shape="rect" href="javascript:rcsim('KEY_FORWARD')" coords="128,560,170,588" alt="ff" title="{=L:rc.key_forward=}" />
<area shape="rect" href="javascript:rcsim('KEY_RECORD')" coords="24,596,66,624" alt="rec" title="{=L:rc.key_record=}" />
<area shape="rect" href="javascript:rcsim('KEY_PAUSE')" coords="76,596,118,624" alt="pause" title="{=L:rc.key_pause=}" />
<area shape="rect" href="javascript:rcsim('KEY_STOP')" coords="128,596,170,624" alt="stop" title="{=L:rc.key_stop=}" />
</map>
end-block~rc_cst_v5
# ------- Remote CST V6 (TRINITY)
start-block~rc_cst_v6
<img src="images/rc_cst_v6.png" usemap="#rc" alt="remote" />
<map name="rc" id="rc">
<area shape="circle" coords="94,50,16" alt="standby" href="javascript:rcsim('KEY_POWER')" title="{=L:rc.key_power=}" />
<area shape="circle" coords="150,68,13" alt="mute" href="javascript:rcsim('KEY_MUTE')" title="{=L:rc.key_mute=}" />
<area shape="circle" coords="38,68,13" alt="sat" href="javascript:rcsim('KEY_SAT')" title="{=L:rc.key_sat=}" />
<area shape="rect" coords="72,89,114,106" alt="tv-radio" href="javascript:rcsim('KEY_RADIO')" title="{=L:rc.key_radio=}" />
<area shape="rect" coords="72,116,114,133" alt="vformat" href="javascript:rcsim('KEY_MODE')" title="{=L:rc.key_mode=}" />
<area shape="rect" coords="19,93,60,110" alt="skip+" href="javascript:rcsim('KEY_NEXT')" title="{=L:rc.key_next=}" />
<area shape="rect" coords="19,120,60,137" alt="skip-" href="javascript:rcsim('KEY_PREVIOUS')" title="{=L:rc.key_previous=}" />
<area shape="rect" coords="126,93,167,110" alt="picsize" href="javascript:rcsim('KEY_NEXT')" title="{=L:rc.key_next=}" />
<area shape="rect" coords="126,120,167,137" alt="picmode" href="javascript:rcsim('KEY_PREVIOUS')" title="{=L:rc.key_previous=}" />
<area shape="circle" coords="73,171,14" alt="fav" href="javascript:rcsim('KEY_FAVORITES')" title="{=L:rc.key_favorites=}" />
<area shape="circle" coords="73,204,14" alt="t/s" href="javascript:rcsim('KEY_TIME')" title="{=L:rc.key_time=}" />
<area shape="circle" coords="114,171,14" alt="audio" href="javascript:rcsim('KEY_AUDIO')" title="{=L:rc.key_audio=}" />
<area shape="circle" coords="114,204,14" alt="text" href="javascript:rcsim('KEY_TEXT')" title="{=L:rc.key_text=}" />
<!-- area shape="circle" coords="34,183,14" alt="sub" / -->
<area shape="circle" coords="34,217,14" alt="trsp" href="javascript:rcsim('KEY_GAMES')" title="{=L:rc.key_trsp=}" />
<area shape="circle" coords="154,183,14" alt="help" href="javascript:rcsim('KEY_HELP')" title="{=L:rc.key_help=}" />
<!-- area shape="circle" coords="154,217,14" alt="recall" / -->
<area shape="circle" coords="65,247,12" alt="epg" href="javascript:rcsim('KEY_EPG')" title="{=L:rc.key_epg=}" />
<area shape="circle" coords="122,247,12" alt="info" href="javascript:rcsim('KEY_INFO')" title="{=L:rc.key_info=}" />
<area shape="circle" coords="46,369,12" alt="menu" href="javascript:rcsim('KEY_SETUP')" title="{=L:rc.key_setup=}" />
<area shape="circle" coords="141,369,12" alt="exit" href="javascript:rcsim('KEY_HOME')" title="{=L:rc.key_home=}" />
<area shape="circle" coords="93,312,16" alt="ok" href="javascript:rcsim('KEY_OK')" title="{=L:rc.key_ok=}" />
<area shape="rect" coords="18,266,42,297" alt="vol+" href="javascript:rcsim('KEY_VOLUMEUP')" title="{=L:rc.key_volumeup=}" />
<area shape="rect" coords="145,266,169,297" alt="page+" href="javascript:rcsim('KEY_PAGEUP')" title="{=L:rc.key_pageup=}" />
<area shape="rect" coords="13,310,37,341" alt="vol-" href="javascript:rcsim('KEY_VOLUMEDOWN')" title="{=L:rc.key_volumedown=}" />
<area shape="rect" coords="150,310,174,341" alt="page-" href="javascript:rcsim('KEY_PAGEDOWN')" title="{=L:rc.key_pagedown=}" />
<area shape="rect" coords="71,267,116,285" alt="up" href="javascript:rcsim('KEY_UP')" title="{=L:rc.key_up=}" />
<area shape="rect" coords="71,338,116,356" alt="down" href="javascript:rcsim('KEY_DOWN')" title="{=L:rc.key_down=}" />
<area shape="rect" coords="50,289,68,334" alt="left" href="javascript:rcsim('KEY_LEFT')" title="{=L:rc.key_left=}" />
<area shape="rect" coords="119,289,137,334" alt="right" href="javascript:rcsim('KEY_RIGHT')" title="{=L:rc.key_right=}" />
<area shape="rect" coords="72,370,114,392" alt="rec" href="javascript:rcsim('KEY_RECORD')" title="{=L:rc.key_record=}" />
<area shape="rect" coords="71,406,115,423" alt="w" href="javascript:rcsim('KEY_WWW')" title="{=L:rc.key_www=}" />
<area shape="rect" coords="71,436,115,453" alt="pause" href="javascript:rcsim('KEY_PAUSE')" title="{=L:rc.key_pause=}" />
<area shape="rect" coords="125,400,158,419" alt="ff" href="javascript:rcsim('KEY_FORWARD')" title="{=L:rc.key_forward=}" />
<area shape="rect" coords="28,400,61,419" alt="rew" href="javascript:rcsim('KEY_REWIND')" title="{=L:rc.key_rewind=}" />
<area shape="rect" coords="125,432,158,451" alt="stop" href="javascript:rcsim('KEY_STOP')" title="{=L:rc.key_stop=}" />
<area shape="rect" coords="28,432,61,451" alt="play" href="javascript:rcsim('KEY_PLAY')" title="{=L:rc.key_play=}" />
<area shape="circle" coords="38,481,9" alt="red" href="javascript:rcsim('KEY_RED')" title="{=L:rc.key_red=}" />
<area shape="circle" coords="74,492,9" alt="green" href="javascript:rcsim('KEY_GREEN')" title="{=L:rc.key_green=}" />
<area shape="circle" coords="111,492,9" alt="yellow" href="javascript:rcsim('KEY_YELLOW')" title="{=L:rc.key_yellow=}" />
<area shape="circle" coords="148,481,9" alt="blue" href="javascript:rcsim('KEY_BLUE')" title="{=L:rc.key_blue=}" />
<area shape="rect" coords="25,516,61,534" alt="1" href="javascript:rcsim('KEY_1')" title="{=L:rc.key_1=}" />
<area shape="rect" coords="72,518,112,536" alt="2" href="javascript:rcsim('KEY_2')" title="{=L:rc.key_2=}" />
<area shape="rect" coords="124,516,160,534" alt="3" href="javascript:rcsim('KEY_3')" title="{=L:rc.key_3=}" />
<area shape="rect" coords="29,549,61,567" alt="4" href="javascript:rcsim('KEY_4')" title="{=L:rc.key_4=}" />
<area shape="rect" coords="72,551,112,569" alt="5" href="javascript:rcsim('KEY_5')" title="{=L:rc.key_5=}" />
<area shape="rect" coords="125,549,157,567" alt="6" href="javascript:rcsim('KEY_6')" title="{=L:rc.key_6=}" />
<area shape="rect" coords="33,583,61,601" alt="7" href="javascript:rcsim('KEY_7')" title="{=L:rc.key_7=}" />
<area shape="rect" coords="72,585,112,603" alt="8" href="javascript:rcsim('KEY_8')" title="{=L:rc.key_8=}" />
<area shape="rect" coords="125,583,153,601" alt="9" href="javascript:rcsim('KEY_9')" title="{=L:rc.key_9=}" />
<area shape="rect" coords="72,619,112,637" alt="0" href="javascript:rcsim('KEY_0')" title="{=L:rc.key_0=}" />
<!-- area shape="rect" coords="126,616,152,634" alt="pos" / -->
<area shape="rect" coords="35,616,61,634" alt="sleep" href="javascript:rcsim('KEY_SLEEP')" title="{=L:rc.key_sleep=}" />
</map>
end-block~rc_cst_v6
# ------- Remote d-Box Nokia old
start-block~rc_dbox_nokia_old
<img src="images/rc_dbox_nokia_old.png" usemap="#rc" alt="remote" />
<map name="rc" id="rc">
<area shape="rect" href="javascript:rcsim('KEY_SETUP')" coords="7,95,45,109" />
<area shape="circle" href="javascript:rcsim('KEY_7')" coords="60,102,10" />
<area shape="circle" href="javascript:rcsim('KEY_4')" coords="60,78,10" />
<area shape="circle" href="javascript:rcsim('KEY_9')" coords="102,92,10" />
<area shape="circle" href="javascript:rcsim('KEY_8')" coords="82,95,10" />
<area shape="circle" href="javascript:rcsim('KEY_6')" coords="102,71,10" />
<area shape="circle" href="javascript:rcsim('KEY_5')" coords="80,73,10" />
<area shape="circle" href="javascript:rcsim('KEY_3')" coords="102,49,10" />
<area shape="circle" href="javascript:rcsim('KEY_2')" coords="82,51,10" />
<area shape="circle" href="javascript:rcsim('KEY_1')" coords="60,55,10" />
<area shape="circle" href="javascript:rcsim('KEY_0')" coords="59,126,11" />
<area shape="poly" href="javascript:rcsim('KEY_LEFT')" coords="35,264,51,252,45,238,50,222,39,210,27,239" />
<area shape="poly" href="javascript:rcsim('KEY_RIGHT')" coords="97,265,87,255,91,241,85,223,98,210,108,240" />
<area shape="poly" href="javascript:rcsim('KEY_UP')" coords="83,216,95,206,69,195,41,206,53,220,69,214" />
<area shape="poly" href="javascript:rcsim('KEY_DOWN')" coords="95,271,85,255,71,262,51,256,41,268,68,283" />
<area shape="rect" href="javascript:rcsim('KEY_HOME')" coords="7,72,45,86" />
<area shape="circle" href="javascript:rcsim('KEY_MUTE')" coords="61,321,10" />
<area shape="circle" href="javascript:rcsim('KEY_OK')" coords="66,237,18" />
<area shape="circle" href="javascript:rcsim('KEY_BLUE')" coords="100,139,12" />
<area shape="circle" href="javascript:rcsim('KEY_YELLOW')" coords="60,153,11" />
<area shape="circle" href="javascript:rcsim('KEY_GREEN')" coords="37,171,12" />
<area shape="circle" href="javascript:rcsim('KEY_RED')" coords="21,196,11" />
<area shape="circle" href="javascript:rcsim('KEY_HELP')" coords="101,333,10" />
<area shape="circle" href="javascript:rcsim('KEY_VOLUMEUP')" coords="17,270,10" />
<area shape="circle" href="javascript:rcsim('KEY_VOLUMEDOWN')" coords="30,293,9" />
<area shape="rect" href="javascript:rcsim('KEY_POWER')" coords="7,49,46,64" />
</map>
end-block~rc_dbox_nokia_old
# ------- Remote d-Box Philips/Sagem
start-block~rc_dbox_philips
<img src="images/rc_dbox_philips.png" usemap="#rc" alt="remote" />
<map name="rc" id="rc">
<area shape="poly" href="javascript:rcsim('KEY_RIGHT')" coords="100,117,100,180,67,146,100,116" />
<area shape="poly" href="javascript:rcsim('KEY_DOWN')" coords="36,181,101,180,66,146" />
<area shape="poly" href="javascript:rcsim('KEY_UP')" coords="101,116,36,116,66,146" />
<area shape="poly" href="javascript:rcsim('KEY_LEFT')" coords="66,147,36,117,35,182" />
<area shape="circle" href="javascript:rcsim('KEY_SETUP')" coords="105,100,15" />
<area shape="circle" href="javascript:rcsim('KEY_HELP')" coords="32,100,16" />
<area shape="circle" href="javascript:rcsim('KEY_POWER')" coords="108,33,15" />
<area shape="circle" href="javascript:rcsim('KEY_MUTE')" coords="69,255,13" />
<area shape="circle" href="javascript:rcsim('KEY_VOLUMEUP')" coords="92,225,17" />
<area shape="circle" href="javascript:rcsim('KEY_VOLUMEDOWN')" coords="47,225,17" />
<area shape="circle" href="javascript:rcsim('KEY_OK')" coords="37,196,11" />
<area shape="circle" href="javascript:rcsim('KEY_HOME')" coords="103,195,11" />
<area shape="circle" href="javascript:rcsim('KEY_BLUE')" coords="108,72,11" />
<area shape="circle" href="javascript:rcsim('KEY_RED')" coords="30,72,11" />
<area shape="circle" href="javascript:rcsim('KEY_GREEN')" coords="54,57,11" />
<area shape="circle" href="javascript:rcsim('KEY_YELLOW')" coords="85,57,11" />
<area shape="circle" href="javascript:rcsim('KEY_0')" coords="69,363,12" />
<area shape="circle" href="javascript:rcsim('KEY_9')" coords="102,336,12" />
<area shape="circle" href="javascript:rcsim('KEY_8')" coords="69,337,12" />
<area shape="circle" href="javascript:rcsim('KEY_7')" coords="37,336,12" />
<area shape="circle" href="javascript:rcsim('KEY_6')" coords="102,310,12" />
<area shape="circle" href="javascript:rcsim('KEY_5')" coords="69,310,12" />
<area shape="circle" href="javascript:rcsim('KEY_4')" coords="37,310,12" />
<area shape="circle" href="javascript:rcsim('KEY_3')" coords="102,284,12" />
<area shape="circle" href="javascript:rcsim('KEY_2')" coords="69,284,12" />
<area shape="circle" href="javascript:rcsim('KEY_1')" coords="37,284,12" />
</map>
end-block~rc_dbox_philips

View File

@@ -1,91 +0,0 @@
{=func:set_bouquet_edit_form=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_submit(){
show_waitbox(true);
for (i=document.getElementById('channels').bchannels.length-1; i >= 0 ; i--) {
document.getElementById('channels').bchannels.options[i].selected=true;
}
document.getElementById('channels').submit();
}
function do_abort(){
document.location.href="/Y_Boxcontrol_Bouquet_Editor_Main.yhtm?selected={=selected=}";
}
function movechannels(source, destination){
for (i=0; i < source.length; i++) {
if (source.options[i].selected==true) {
destination.options[destination.length] = new Option(source.options[i].text, source.options[i].value);
}
}
for (i=source.length-1; i >= 0 ; i--) {
if (source.options[i].selected==true) {
source.options[i] = null;
}
}
}
function poschannel(box, direction){
if (direction==0) {
for (i=1; i < box.length ; i++) {
if (box.options[i].selected==true) {
buffer = new Option(box.options[i].text, box.options[i].value);
box.options[i].selected=false;
box.options[i]= new Option(box.options[i-1].text, box.options[i-1].value);
box.options[i-1]=buffer;
box.options[i-1].selected=true;
}
}
} else {
for (i=box.length-2; i >= 0 ; i--) {
if (box.options[i].selected==true) {
buffer = new Option(box.options[i].text, box.options[i].value);
box.options[i].selected=false;
box.options[i]=new Option(box.options[i+1].text, box.options[i+1].value);
box.options[i+1]=buffer;
box.options[i+1].selected=true;
}
}
}
}
//]]>
</script>
</head>
<body>
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-BoxControl-Bouquet-Editor=}{=var-set:menu={=L:bou.bouquet=} &quot;{=name=}&quot;=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form action="/control/changebouquet" method="post" id="channels" enctype="x-www-form-urlencoded">
<p><input type="hidden" name="selected" value="{=selected=}" /></p>
<table cellspacing="5">
<tr>
<td>
<select multiple="multiple" size="20" name="bchannels">
{=bouquet_channels=}
</select>
</td>
<td align="center">
<button type="button" title="{=L:bou.move_up=}" onclick="poschannel(document.getElementById('channels').bchannels, 0);">&nbsp;<img src="/images/arrowup.png"/>&nbsp;</button><br /><br />
<button type="button" title="{=L:bou.move_down=}" onclick="poschannel(document.getElementById('channels').bchannels, 1);">&nbsp;<img src="/images/arrowdown.png"/>&nbsp;</button><br /><br />
<button type="button" title="{=L:bou.remove=}" onclick="movechannels(document.getElementById('channels').bchannels, document.getElementById('channels').achannels);">&nbsp;<img src="/images/arrowright.png"/>&nbsp;</button><br /><br />
<button type="button" title="{=L:bou.add=}" onclick="movechannels(document.getElementById('channels').achannels, document.getElementById('channels').bchannels);">&nbsp;<img src="/images/arrowleft.png"/>&nbsp;</button><br /><br />
</td>
<td>
<select multiple="multiple" size="20" name="achannels">
{=all_channels=}
</select>
</td>
</tr>
</table>
<input type="hidden" name="redirect" value="/Y_Boxcontrol_Bouquet_Editor_Main.yhtm"/>
<p><button type="button" ytype="save" onclick="do_submit();">{=L:save=}</button>
<button type="button" ytype="cancel" onclick="do_abort();">{=L:cancel=}</button></p>
{=L:bouquets_must_be_saved=}
</form>
</div>
</div>
</body>
</html>

View File

@@ -1,181 +0,0 @@
{=include-block:Y_Blocks.txt;head_no_charset=}
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
var gurl= "";
var gurl_last= "";
function hide_forms(){
show_obj("add",false);
show_obj("rename",false);
}
function do_reload(){
if((document.location.pathname+document.location.search+document.location.hash) == gurl)
document.location.reload();
else
document.location.href = gurl;
}
function do_set(bouquetnr, action){
loadSyncURL("/control/setbouquet?selected="+bouquetnr+"&action="+action);
gurl = "/Y_Boxcontrol_Bouquet_Editor_Main.yhtm?selected=" + bouquetnr+ "#akt";
window.setTimeout('do_reload()',50);
}
function do_save(){
hide_forms();
loadSyncURL("/control/savebouquet");
alert("{=L:bou.bouqets_saved=}");
}
function do_update(){
hide_forms();
loadSyncURL("/control/updatebouquet");
}
function do_move(bouquetnr, action){
var sel = parseInt(String(bouquetnr));
loadSyncURL("/control/movebouquet?selected="+bouquetnr+"&action="+action);
if(action=="up") sel--;
else sel++;
gurl = "/Y_Boxcontrol_Bouquet_Editor_Main.yhtm?selected=" + sel+ "#akt";
window.setTimeout('do_reload()',50);
}
function do_delete(bouquetnr, bouquet_name){
if (confirm("{=L:bou.delete1=} \""+bouquet_name+"\" {=L:bou.delete2=}?")==true){
loadSyncURL("/control/deletebouquet?selected="+bouquetnr);
gurl = "/Y_Boxcontrol_Bouquet_Editor_Main.yhtm?selected=" + bouquetnr+ "#akt";
window.setTimeout('do_reload()',50);
}
}
function do_add_start(){
hide_forms();
show_obj("add",true);
document.add.bouquet_name.focus();
}
function do_add_abort(){
show_obj("add",false);
}
function do_add(){
if(document.add.bouquet_name.value != ""){
res=loadSyncURL("/control/addbouquet?name="+document.add.bouquet_name.value);
/*if(res != "Ok\r\n")
alert("Bouquet-Name existiert schon!");
else*/
gurl = "/Y_Boxcontrol_Bouquet_Editor_Main.yhtm#akt";
// gurl = "/Y_Boxcontrol_Bouquet_Editor_Main.yhtm?selected=" + bouquetnr+ "#akt";
show_obj("add",false);
window.setTimeout('do_reload()',200);
}
else
alert("{=L:bou.no_bouquet_name=}!");
}
function do_rename_start(bouquetnr, bouquet_name){
hide_forms();
document.rename.bouquetnr.value = bouquetnr;
document.rename.bouquet_name.value = bouquet_name;
show_obj("rename",true);
document.rename.bouquet_name.focus();
}
function do_rename_abort(){
show_obj("rename",false);
}
function do_rename(){
if(document.rename.bouquet_name.value != ""){
res=loadSyncURL("/control/renamebouquet?selected="+document.rename.bouquetnr.value+"&nameto="+document.rename.bouquet_name.value);
/* if(res != "Ok\r\n")
alert("Bouquet-Name existiert schon!");
else{
*/
gurl = "/Y_Boxcontrol_Bouquet_Editor_Main.yhtm?selected=" + document.rename.bouquetnr.value+ "#akt";
show_obj("rename",false);
window.setTimeout('do_reload()',200);
// }
}
else
alert("{=L:bou.no_bouquet_name=}!");
}
//]]>
</script>
<style type="text/css">
.fly_form
{
visibility: hidden;
z-index: 4;
position: absolute;
left: 100px;
top: 100px;
border: 1px solid #2188e0;
border-collapse: collapse;
background-color: white;
padding: 1em;
}
</style>
</head>
<body>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-BoxControl-Bouquet-Editor=}{=var-set:menu={=L:set.menue.bouquet_editor=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<div id="add" class="fly_form">
<form name="add" accept-charset="UTF-8" action="">
<p><b>{=L:bou.bouquet_add=}</b><br/>
{=L:bou.name_of_bouquet=}:
<input type="text" size="30" name="bouquet_name" />
<br/>
<button type="button" ytype="save" onclick="do_add()">{=L:save=}</button>
<button type="button" ytype="cancel" onclick="do_add_abort()">{=L:cancel=}</button>
</p>
</form>
</div>
<div id="rename" class="fly_form">
<form name="rename" accept-charset="UTF-8" action="">
<p><b>{=L:bou.rename_bouquet=}</b><br/>
{=L:bou.name_of_bouquet=}:
<input type="text" size="30" name="bouquet_name" />
<input type="hidden" name="bouquetnr" value="" />
<br/>
<button type="button" ytype="save" onclick="do_rename()">{=L:save=}</button>
<button type="button" ytype="cancel" onclick="do_rename_abort()">{=L:cancel=}</button>
</p>
</form>
</div>
<table width="100%" cellspacing="0" id="bouqueteditorlist">
<!-- line template -->
{=var-set:row=
<tr class="%c">
<td align="center" width="30px">
%s
<a href="javascript:do_set('%d','%s');">
<img src="/images/%s.png" title="%s" style="border: 0px" /></a>
</td>
<td align="center" width="30px">
<a href="javascript:do_set('%d','%s');">
<img src="/images/%s.png" title="%s" style="border: 0px" />
</a>
</td>
<td><a href="/Y_Boxcontrol_Bouquet_Editor_Edit.yhtm?selected=%d&amp;name=%s">%s</a></td>
<td width="100" style="white-space: nowrap; font-weight:normal;">
<a href="javascript:do_rename_start('%d','%s');">
<img src="/images/modify.png" title="{=L:bou.rename=}" style="border: 0px" /></a>&nbsp;
<a href="javascript:do_delete('%d','%s');">
<img src="/images/remove.png" title="{=L:bou.delete=}" style="border: 0px" /></a>&nbsp;
<span style="visibility:%s;"><a href="javascript:do_move('%d','down');">
<img src="/images/arrowdown.png" title="{=L:bou.move_down=}" style="border: 0px" /></a>&nbsp;</span>
<span style="visibility:%s;"><a href="javascript:do_move('%d','up');">
<img src="/images/arrowup.png" title="{=L:bou.move_up=}" style="border: 0px" /></a>&nbsp;</span>
</td>
</tr>
=}
{=func:bouquet_editor_main {=var-get:row=}=}
</table>
<p>
<button type="button" ytype="add" onclick="javascript:do_add_start()">{=L:bou.bouquet_add=}</button>
<button type="button" ytype="saveall" onclick="javascript:do_save()">{=L:save_all=}</button>
</p>
</div>
</div>
</body>
</html>

View File

@@ -1,11 +0,0 @@
{=include-block:Y_Blocks.txt;head_no_charset=}
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
</head>
<body class="iframe">
<table class="bouquetlist" width="100%">
<tr class="blist"><td><a href="Y_Boxcontrol_Channellist.yhtm#akt" target="content">{=L:bc.channels=}</a></td></tr>
<tr><td><hr/></td></tr>
{=func:get_bouquets_as_templatelist <tr class="blist"><td><a href="Y_Boxcontrol_Channellist.yhtm?bouquet=%d#akt" target="content">%s</a></td></tr>=}
</table>
</body>
</html>

View File

@@ -1,19 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
</head>
<body>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-BoxControl-Bouquet=}{=var-set:menu=Bouquet=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<iframe src="Y_Boxcontrol_Bouquetlist.yhtm?bouquet=#akt"
scrolling="auto" marginheight="1" marginwidth="1" frameborder="0" name="bouquets"
style="height: 600px; width: 24%;">
</iframe>
<iframe src="Y_Boxcontrol_Channellist.yhtm?bouquet={=func:get_actual_bouquet_number=}"
scrolling="auto" marginheight="1" marginwidth="1" frameborder="0" name="content"
style="height: 600px; width: 74%;">
</iframe>
</div>
</div>
</body>
</html>

View File

@@ -1,33 +0,0 @@
{=include-block:Y_Blocks.txt;head_no_charset=}
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_zap(channelid) {
dbox_zapto(channelid);
window.location.reload();
}
function do_epg(channelid,logoid) {
window.location.href="Y_Dyn_Pages.yhtm?page=frame_live_epg&channel="+channelid+"&logoid="+logoid;
}
function do_stream(channelid, channelname)
{
var title = "livestream.m3u"
var type = "application/octet-stream"
var plist = "#EXTM3U\n";
plist += "#EXTINF:-1," + channelname + "\n";
plist += "http://" + window.location.hostname + ":31339/id=" + channelid + "\n";
saveTextAsFile(plist, title, type);
}
function do_streaminfo() {
window.open("Y_StreamInfo.yhtm", "stream", "width=400");
}
//]]>
</script>
</head>
<body class="iframe">
<table class="bouquetitemlist">
{=func:get_bouquets_with_epg {=bouquet=}=}
</table>
</body>
</html>

View File

@@ -1,256 +0,0 @@
{=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[
var g_sig = 100;
function set_sigbar(_sig){
var l = $("sigbar_left");
var r = $("sigbar_right");
/*IE: width=0 -> =""*/
if(_sig > 0)
l.width = _sig.toString()+"%";
else
l.width = "";
if(_sig >= 100)
r.width = "";
else
r.width = (100-_sig).toString()+"%";
}
function sig_get(){
var __sig_str = loadSyncURL("/control/signal?sig");
var __sig = parseInt(__sig_str,10);
if(isNaN(__sig)) __sig=100;
set_sigbar(__sig);
g_sig = __sig;
$('sig_value').update(g_sig);
return __sig;
}
var g_snr = 100;
function set_snrbar(_snr){
var l = $("snrbar_left");
var r = $("snrbar_right");
/*IE: width=0 -> =""*/
if(_snr > 0)
l.width = _snr.toString()+"%";
else
l.width = "";
if(_snr >= 100)
r.width = "";
else
r.width = (100-_snr).toString()+"%";
}
function snr_get(){
var __snr_str = loadSyncURL("/control/signal?snr");
var __snr = parseInt(__snr_str,10);
if(isNaN(__snr)) __snr=100;
set_snrbar(__snr);
g_snr = __snr;
$('snr_value').update(g_snr);
return __snr;
}
var g_ber = 0;
function ber_get(){
var __ber_str = loadSyncURL("/control/signal?ber");
var __ber = parseInt(__ber_str,10);
if(isNaN(__ber)) __ber=100;
g_ber = __ber;
$('ber_value').update(g_ber);
//return __ber;
}
var g_volumen = 100;
function volumen_set_audiobar(_volumen){
var l = $("audiobar_left");
var r = $("audiobar_right");
/*IE: width=0 -> =""*/
if(_volumen > 0)
l.width = _volumen.toString()+"%";
else
l.width = "";
if(_volumen >= 100)
r.width = "";
else
r.width = (100-_volumen).toString()+"%";
}
function volumen_get(){
var __volumen_str = loadSyncURL("/control/volume");
var __volumen = parseInt(__volumen_str,10);
if(isNaN(__volumen)) __volumen=100;
volumen_set_audiobar(__volumen);
g_volumen = __volumen;
return __volumen;
}
function volumen_set(_volumen){
_volumen = Math.min(100, _volumen);
_volumen = Math.max(0, _volumen);
loadSyncURL("/control/volume?"+_volumen);
volumen_set_audiobar(_volumen);
g_volumen = _volumen;
}
function set_mute_button(){
var status = loadSyncURL("/control/volume?status");
$('btMute').update( (status==1) ? "<img src=\"/images/volumeunmute.png\">" : "<img src=\"/images/volumemute.png\">");
return status;
}
function toggle_mute(){
var status = loadSyncURL("/control/volume?status");
if(status==0)//aus
loadSyncURL("/control/volume?mute");
else
loadSyncURL("/control/volume?unmute");
set_mute_button();
}
function set_mode(_mode){
var actual_mode = loadSyncURL("/control/getmode");
if(actual_mode != _mode)
loadSyncURL("/control/setmode?" + _mode);
parent.work.location.reload();
}
function init(){
volumen_set_audiobar(volumen_get());
set_mute_button();
add_yExtensions('boxcontrol', 'secmenu_boxcontrol');
set_sigbar(sig_get());
set_snrbar(snr_get());
ber_get();
}
function get_data(){
volumen_set_audiobar(volumen_get());
set_sigbar(sig_get());
set_snrbar(snr_get());
ber_get();
}
//]]>
</script>
</head>
{=var-set:lcshot={=find-exec:lcshot=}=}
<body>
<div class="y_menu_sec_box">
<div class="y_menu_sec_box_head"><h2>{=L:main.boxcontrol=}</h2></div>
<div class="y_menu_sec_box_body">
<div class="y_menu_sec">
<ul id="secmenu_boxcontrol">
<li>
<a target="work" title="{=L:bc.menue.bouquets_desc=}" href="Y_Boxcontrol_Bouquets.yhtm">{=L:bc.menue.bouquets=}</a>
</li>
<li>
<a target="work" title="{=L:bc.menue.control_desc=}" href="Y_Tools_Boxcontrol.yhtm">{=L:bc.menue.control=}</a>
</li>
<li>
<a target="work" title="{=L:bc.menue.messages_desc=}" href="Y_Boxcontrol_Messages.yhtm">{=L:bc.menue.messages=}</a>
</li>
<li>
<a target="work" title="{=L:bc.menue.remote_desc=}" href="Y_Tools_Rcsim.yhtm">{=L:bc.menue.remote=}</a>
</li>
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<li>
{=if-empty:{=var-get:lcshot=}~
<a target="work" title="{=L:bc.menue.lcd_screenshot_desc=}" href="Y_Tools_lcshot.yhtm">{=L:bc.menue.lcd_screenshot=}</a>
~
<a href="javascript:void(0)" class="disabled" title="{=L:bc.menue.lcd_screenshot_desc_ni=}">{=L:bc.menue.lcd_screenshot=}</a>
=}
</li>
~=}
<li>
<a target="work" title="OSD-{=L:bc.menue.screenshot=}" href="Y_Tools_Screenshot.yhtm?osd=1&noremote=1">OSD-{=L:bc.menue.screenshot=}</a>
</li>
<li>
<a target="work" title="TV-{=L:bc.menue.screenshot=}" href="Y_Tools_Screenshot.yhtm?video=1&noremote=1">TV-{=L:bc.menue.screenshot=}</a>
</li>
</ul>
</div>
</div>
</div>
<div class="y_menu_sec_box">
<div class="y_menu_sec_box_head"><h2>{=L:bc.menue.control=}</h2></div>
<div class="y_menu_sec_box_body">
<center>
<table class="y_text_boxcontrol_table" cellspacing="0" cellpadding="0" title="{=L:bc.menue.volumen_display=}">
<tr>
<td id="audiobar_left" width="100%"><img src="/images/blank.gif" height="1" width="0" alt="."/></td>
<td id="audiobar_right" width="0%"><img src="/images/blank.gif" height="1" width="0" alt="."/></td>
</tr>
</table>
<br/>
<span class="control_icon" title="{=L:bc.menue.decrease_volume=}">
<a href="javascript:volumen_set(g_volumen-10);">
<img src="/images/volumedown.png">
</a>
</span>
<span class="control_icon" title="{=L:bc.menue.increase_volume=}">
<a href="javascript:volumen_set(g_volumen+10);">
<img src="/images/volumeup.png">
</a>
</span>
<span class="control_icon" title="{=L:bc.menue.mute_volume=}">
<a id="btMute" href="javascript:toggle_mute();">
<img src="/images/volumemute.png">
</a>
</span>
<span class="control_icon" title="{=L:bc.menue.switch_to_tv=}">
<a href="javascript:set_mode('tv');">
<img src="/images/live.png">
</a>
</span>
<span class="control_icon" title="{=L:bc.menue.switch_to_radio=}">
<a href="javascript:set_mode('radio');">
<img src="/images/radio.png">
</a>
</span>
</center>
</div>
</div>
<div class="y_menu_sec_box">
<div class="y_menu_sec_box_head"><h2>{=L:bc.menue.signal=}</h2></div>
<div class="y_menu_sec_box_body">
<center>
<div class="y_text_boxcontrol_div_progress">SIG <span id="sig_value"></span>%</div>
<table class="y_text_boxcontrol_table_progress" cellspacing="0" cellpadding="0" title="{=L:bc.menue.sig_display=}">
<tr>
<td id="sigbar_left" width="100%"><img src="/images/blank.gif" height="1" width="0" alt="." /></td>
<td id="sigbar_right" width="0%"><img src="/images/blank.gif" height="1" width="0" alt="." /></td>
</tr>
</table>
</center>
<center>
<div class="y_text_boxcontrol_div_progress">SNR <span id="snr_value"></span>%</div>
<table class="y_text_boxcontrol_table_progress" cellspacing="0" cellpadding="0" title="{=L:bc.menue.snr_display=}">
<tr>
<td id="snrbar_left" width="100%"><img src="/images/blank.gif" height="1" width="0" alt="." /></td>
<td id="snrbar_right" width="0%"><img src="/images/blank.gif" height="1" width="0" alt="." /></td>
</tr>
</table>
</center>
<center>
<div class="y_text_boxcontrol_div_progress">BER <span id="ber_value"></span></div>
</center>
</div>
</div>
{=if-empty:{=ini-get:%(CONFIGDIR)/Y-Web.conf;slavebox=}~~
<div class="y_menu_sec_box">
<div class="y_menu_sec_box_head"><h2>Switch to</h2></div>
<div class="y_menu_sec_box_body">
<div class="y_menu_sec">
<ul>
<li>
<a target="_top" title="{=L:bc.menue.webinf_slavebox=}" href="http://{=ini-get:%(CONFIGDIR)/Y-Web.conf;slavebox=}/">{=ini-get:%(CONFIGDIR)/Y-Web.conf;slavebox=}</a>
</li>
</ul>
</div>
</div>
</div>
=}
<script type="text/javascript">
//<![CDATA[
init();
window.setInterval("get_data();",5000);
//]]>
</script>
</body>
</html>

View File

@@ -1,47 +0,0 @@
{=var-set:cancache=yPyes=}
{=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 do_send(mode) {
var msg = document.getElementById(mode);
var res = "error";
if (msg != "")
res = trim(loadSyncURL("/control/message?"+mode+"="+msg.value));
$("out").update(res);
$(mode).setValue("");
}
//]]>
</script>
</head>
<body>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-BoxControl-Message=}{=var-set:menu={=L:bc.menue.messages=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<table class="y_invisible_table" cellpadding="5" width="100%">
<tr><td class="y_form_header">{=L:bc.msg.message_to_screen=}</td></tr>
<tr><td>
<input id="nmsg" type="text" size="50" maxlength="255" title="{=L:bc.msg.message_to_screen_desc=}"/>
<button type="button" ytype="go" onclick="do_send('nmsg')" title="{=L:bc.msg.send_message=}">{=L:send=}</button>
</td></tr>
<tr><td class="y_form_header">{=L:bc.msg.popup_to_screen=}</td></tr>
<tr><td>
<input id="popup" type="text" size="50" maxlength="255" title="{=L:bc.msg.message_to_screen_desc=}"/>
<button type="button" ytype="go" onclick="do_send('popup')" title="{=L:bc.msg.send_message=}">{=L:send=}</button>
</td></tr>
</table>
<br/>
</div>
</div>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-BoxControl-Message=}{=var-set:menu={=L:answer=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<div id="out"></div>
</div>
</div>
</body>
</html>

View File

@@ -1,6 +0,0 @@
/*
Tuxbox yWeb Style - Do not modify.
When you're a distributor, use your own styles/Y_Dist-<name>.css file.
When you're a user, use Y_User.css.
*/

View File

@@ -1 +0,0 @@
{=include-block:Y_Blocks.txt;{=page=}=}

View File

@@ -1,268 +0,0 @@
/* yWeb EPG by yjogol
$Date$
$Revision$
*/
/*EPG+*/
var g_width_px=0; /*display width*/
//var g_cols_to_display=0; /*minutes to display*/
var g_number_of_cols=0; /*nr of cols*/
var g_width_all_items=0; /*width without bouquet*/
var c_width_px_per_min=3; /* px per minute */
var c_min_per_col=15;/*minutes per col*/
var c_width_px_bouquet=100; /* width of bouquet*/
var c_slider_width=25;
var epg_data; /* all EPG Data in 2-dim Array*/
var epg_data_index=0;
var g_timer_eventids = new Array();
var g_selected=0;
//var epg_diag= new Y.Dialog('epg_info');
/* calc the dimension px and mins to display */
function epg_plus_calc_dimensions(){
var show_dim=$('epg_plus').getDimensions();
var usable_width_px = show_dim.width-c_slider_width; /*get display width*/
var max_minutes_to_display = Math.round((usable_width_px-c_width_px_bouquet-c_width_px_per_min)/c_width_px_per_min); /* calc display minutes*/
g_number_of_cols = Math.round(max_minutes_to_display/c_min_per_col);
g_width_px = g_number_of_cols * c_width_px_per_min * c_min_per_col + c_width_px_bouquet + c_width_px_per_min;
g_width_all_items=g_width_px-c_width_px_bouquet-c_width_px_per_min;
$('epg_plus').style.cssText = "width:"+g_width_px;
}
function epg_zapto(){
dbox_zapto($('d_channel_id').innerHTML);
}
function epg_set_timer(){
dbox_set_timer($("d_channel_id").innerHTML, $("d_start").innerHTML, $("d_stop").innerHTML);
}
function set_zapit(){
var rec = "/control/timer?action=new&type=3&alarm="+$("d_start").innerHTML+"&channel_id="+$("d_channel_id").innerHTML;
var res = loadSyncURL(rec);
}
function build_epg_clear(){
var ep = $("epg_plus");
obj_clear_all_childs(ep);
}
/*set a layout box and content*/
function build_epg_setbox(_item, _starttime, _stoptime, _start, _stop){
var d_start = Math.max(_start, _starttime);
var d_stop = Math.min(_stop, _stoptime);
var d_left = c_width_px_bouquet+c_width_px_per_min+ Math.round((d_start-_starttime) * c_width_px_per_min / 60);
var d_width = Math.max(0,Math.round((d_stop-d_start) * c_width_px_per_min / 60)-3);
d_width= Math.min(d_width,g_width_px-d_left);
if(d_start<_stoptime)
_item.style.cssText = "position:absolute; top:0px; left:"+d_left+"px; width:"+d_width+"px;";
}
/*show epg details*/
function show_epg_item(_index){
g_selected=_index;
//epg_diag.show();
$("d_desc").update(epg_data[_index][4]+" "+epg_data[_index][0]);
$("d_info1").update(epg_data[_index][1]);
$("d_info2").update(epg_data[_index][2]);
$("d_start").update(epg_data[_index][3]);
$("d_stop").update(epg_data[_index][5]);
$("d_channel_id").update(epg_data[_index][6]);
var logo =epg_data[_index][7];
$('d_logo').update( (logo!="")?"<img class=\"channel_logos\" src=\""+logo+"\">":"" );
var imdb_link = '<a target="_blank" class="exlink" href="http://german.imdb.com/find?s=all&q='+(epg_data[_index][0]).gsub(" ","+")+'">IMDb</a>';
var klack_link = '<a target="_blank" class="exlink" href="http://www.klack.de/programmsuche.html?search=1&title='+(epg_data[_index][0]).gsub(" ","+")+'">klack.de</a>';
var tvinfo_link = '<a target="_blank" class="exlink" href="http://www.tvinfo.de/exe.php3?quicksearch=1&volltext='+(epg_data[_index][0]).gsub(" ","+")+'&tpk=&showall=&genretipp=&target=list.inc">tvinfo.de</a>';
$('d_lookup').update(imdb_link+" "+klack_link+" "+tvinfo_link);
var off=$('epg_plus').cumulativeScrollOffset();
// alert(off.inspect());
$('epg_info').setStyle({
'left':off.left+50+'px',
'top':off.top+50+'px',
'position': 'absolute'
// 'background-color': 'white'
});
show_obj("epg_info",true);
}
/* build one channel row*/
function build_epg_bouquet(__bdiv, __channel_id, _starttime, _stoptime, _logo)
{
var xml = loadSyncURLxml("/control/epg?xml=true&channelid="+__channel_id+"}&details=true&stoptime="+_stoptime);
if(xml){
var prog_list = xml.getElementsByTagName('prog');
for(var i=0;i<prog_list.length;i++){
var prog = prog_list[i];
var _stop = getXMLNodeItemValue(prog, "stop_sec");
_stop = parseInt(_stop);
if(_stop > _starttime){
var _start_t = getXMLNodeItemValue(prog, "start_t");
var _start = getXMLNodeItemValue(prog, "start_sec");
_start = parseInt(_start);
var _stop_t = getXMLNodeItemValue(prog, "stop_t");
var _desc = epg_de_qout(getXMLNodeItemValue(prog, "description"));
var _info1 = epg_de_qout(getXMLNodeItemValue(prog, "info1"));
var _info2 = epg_de_qout(getXMLNodeItemValue(prog, "info2"));
var __item = obj_createAt(__bdiv, "div", "ep_bouquet_item");
var epg_obj= new Array(_desc, _info1, _info2, _start, _start_t, _stop.toString(), __channel_id, _logo);
epg_data.push(epg_obj);
__item.innerHTML = "<span onclick=\"show_epg_item('"+epg_data_index+"');\" title=\""+_start_t+" "+_desc+" (click for details)\">"+_desc+"</span>";
build_epg_setbox(__item, _starttime, _stoptime, _start, _stop);
epg_data_index++;
}
}
/* look for Timers*/
var fou= g_timer_eventids.findAll(function(e){
return e.get('channelid')==__channel_id;
});
if(fou){
fou.each(function(e){
var stTime="0";
var tclass="";
if (e.get('eventType') == 3) {
stTime=e.get('alarmTime');
stTime = parseInt(stTime, 10) + 200;
stTime = stTime.toString();
tclass="ep_bouquet_zap";
}
else if (e.get('eventType') == 5) {/*record*/
stTime=e.get('stopTime');
tclass="ep_bouquet_rec";
}
var __item = obj_createAt(__bdiv, "div", tclass);
build_epg_setbox(__item, _starttime, _stoptime, e.get('alarmTime'), stTime);
});
}
}
}
/* build time row*/
function build_epg_time_bar(_tdiv, _starttime, _stoptime){
var _start = _starttime;
for(var i=0;i<g_number_of_cols;i++){
var __item = obj_createAt(_tdiv, "div", "ep_time_bar_item");
__item.innerHTML = format_time(new Date(_start*1000));
var _stop = _start + (c_min_per_col * 60);
build_epg_setbox(__item, _starttime, _stoptime, _start, _stop);
_start = _stop;
}
}
function get_timer(){
g_timer_eventids = new Array();
var timer = loadSyncURL("/control/timer?format=id");
var lines=timer.split("\n");
lines.each(function(e){
var vals=e.split(" ");
if(vals.length>=8 && (vals[1]==3||vals[5])){ /*record and zap*/
var aTimer=$H({
'eventID': vals[0],
'eventType': vals[1],
'eventRepeat': vals[2],
'repcount': vals[3],
'announceTime': vals[4],
'alarmTime': vals[5],
'stopTime': vals[6],
'channelid': vals[7]
});
g_timer_eventids.push(aTimer);
}
},this);
}
/* main */
var g_i = 0;
var g_bouquet_list;
var g_display_logos="";
function build_epg_plus(_bouquet, _starttime)
{
build_epg_clear();
epg_data = new Array();
epg_data_index=0;
var _bouquets_xml = loadSyncURLxml("/control/getbouquet?bouquet="+_bouquet+"&xml=true");
if(_bouquets_xml){
g_bouquet_list = _bouquets_xml.getElementsByTagName("channel");
var ep = $("epg_plus");
var _stoptime = _starttime + c_min_per_col * 60 * g_number_of_cols;
var __tdiv = obj_createAt(ep, "div", "ep_time_bar");
var __tname_div = obj_createAt(__tdiv, "div", "ep_time_bar_item");
__tname_div.innerHTML = "Uhrzeit";
__tname_div.style.cssText = "width:"+c_width_px_bouquet+"px;";
build_epg_time_bar(__tdiv, _starttime, _stoptime);
__tdiv.style.cssText = "width:"+g_width_px;
var __ediv = obj_createAt(ep, "div", "epg_plus_container");
__ediv.setAttribute("id", "epg_plus_container")
g_i=0;
window.setTimeout("build_epg_plus_loop("+_starttime+","+_stoptime+")",100);
}
}
function build_epg_plus_loop(_starttime, _stoptime)
{
if(g_i<g_bouquet_list.length){
var _bouquet = g_bouquet_list[g_i];
var __channel_name = getXMLNodeItemValue(_bouquet, "name");
var __channel_id = getXMLNodeItemValue(_bouquet, "id");
var __short_channel_id = getXMLNodeItemValue(_bouquet, "short_id");
var __logo = getXMLNodeItemValue(_bouquet, "logo");
var ep = $("epg_plus_container");
var __bdiv = obj_createAt(ep, "div", "ep_bouquet");
var __bname_div = obj_createAt(__bdiv, "div", "ep_bouquet_name");
var ch_name_with_logo= (g_display_logos=="true")?"<img class=\"channel_logos\" src=\""+__logo+"\" title=\""+__channel_name+"\" alt=\""+__channel_name+"\" >":__channel_name;
$(__bname_div).style.cssText = "width:"+c_width_px_bouquet+"px;";
$(__bname_div).update("<a href=\"javascript:do_zap('"+__channel_id+"');\">"+ch_name_with_logo+"</a>");
build_epg_bouquet(__bdiv, __channel_id, _starttime, _stoptime, __logo);
window.setTimeout("build_epg_plus_loop("+_starttime+","+_stoptime+")",100);
g_i++;
}
else{
show_waitbox(false);
obj_disable("btGet", false);
}
}
/* main: build epg+ */
function build_epg_plus_main(){
epg_plus_calc_dimensions();
get_timer();
show_obj("epg_info",false);
show_waitbox(true);
obj_disable("btGet", true);
var sel=document.e.bouquets.selectedIndex;
if(sel != -1)
bou = document.e.bouquets[sel].value;
else
bou = 1;
_secs=document.e.epg_time.value;
_secs=parseInt(_secs);
build_epg_plus(bou, _secs);
/*document.getElementById("epg_plus").width = g_width_px;*/
}
/* change time offset and build epg+*/
function build_epg_plus_delta(_delta){
if(document.e.epg_time.selectedIndex + _delta < document.e.epg_time.length && document.e.epg_time.selectedIndex + _delta >= 0)
document.e.epg_time.selectedIndex += _delta;
build_epg_plus_main();
}
/* time delta dropdown-list*/
function build_time_list(_delta){
var now = new Date();
now.setMinutes(0);
now.setSeconds(0);
now.setMilliseconds(0);
now = new Date(now.getTime()+_delta*60*60*1000);
var _secs = now/1000;
var _hour = now.getHours();
var et = document.getElementById("epg_time");
for(i=0;i<24;i++){
var _time = (_hour + i) % 24;
if(_time < 10)
_time = "0"+_time;
_time += ":00";
var _time_t = _secs + i * 3600;
var __item = obj_createAt(et, "option", "ep_bouquet_item");
__item.text = _time;
__item.value = _time_t;
}
}
/*init call*/
function epg_plus_init(_display_logos){
g_display_logos = _display_logos;
window.onresize=epg_plus_calc_dimensions;
build_time_list(0);
}
/* ---*/
function do_zap(channelid){
dbox_zapto(channelid);
}

View File

@@ -1,75 +0,0 @@
{=include-block:Y_Blocks.txt;head_no_charset=}
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript" src="/prototype.js"></script>
<script type="text/javascript" src="/Y_EPG.js"></script>
<script type="text/javascript">
function epg_imdb(){
}
</script>
</head>
<body>
{=var-set:wait_text={=L:epg.get_epg=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Live_Timer-EPG_Plus=}{=var-set:menu={=L:epg.epg_plus=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form name="e">
<select size="1" class="y_live_bouquets" name="bouquets" title="{=L:epg.select_bouquet=}">
{=func:get_bouquets_as_dropdown {=if-empty:{=bouquets=}~{=func:get_actual_bouquet_number=}~{=bouquets=}=}=}
</select>
<select id="epg_time" size="1" name="epg_time">
</select>
<button id="btGet" type="button" ytype="refresh" title="{=L:epg.refresh=}" onclick="build_epg_plus_main()">{=L:refresh=}</button>
<button id="btPast" type="button" ytype="timedown" title="{=L:epg.past_hours=}" onclick="build_epg_plus_delta(-2)">-2</button>
<button id="btNext" type="button" ytype="timeup" title="{=L:epg.next_hours=}" onclick="build_epg_plus_delta(2)">+2</button>
</form>
<div id="epg_plus">&nbsp;</div>
</div>
</div>
<div id="epg_info" style="visible:hidden;">
<table cellpadding="2" cellspacing="2">
<tr valign="top">
<td width="50" valign="middle"><div id="d_logo"></div></td>
<td>
<div id="d_desc" class="ep_info_desc">&nbsp;</div>
<div id="d_info1" class="ep_info_info1">&nbsp;</div>
</td>
<td width="20"><a href="javascript:show_obj('epg_info',false);"><img src="/images/cross.png"/></a></td>
</tr>
<tr>
<td colspan="3">
<div id="d_info2" class="ep_info_info2">&nbsp;</div>
<div id="d_start" style="display:none"></div>
<div id="d_stop" style="display:none"></div>
<div id="d_channel_id" style="display:none"><div>
<br/>
</td>
</tr>
<tr>
<td colspan="3">
{=L:lookup=}:
<span id="d_lookup"></span>
</td>
</tr>
<tr>
<td colspan="3">
<br/>
<button ytype="record" title="{=L:epg.set_timer=}" onclick="epg_set_timer();show_obj('epg_info',false);">{=L:record=}</button>
<button ytype="zap" title="{=L:epg.zap_to=}" onclick="set_zapit();show_obj('epg_info',false);">{=L:zap=}</button>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
//<![CDATA[
epg_plus_init("{=ini-get:%(CONFIGDIR)/nhttpd.conf;Tuxbox.DisplayLogos=}");
//]]>
</script>
</body>
</html>

View File

@@ -1,65 +0,0 @@
{=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>

View File

@@ -1,38 +0,0 @@
{=include-block:Y_Blocks.txt;management_check_top=}
{=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" src="/Y_Ext_Update.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_submit(){
show_waitbox(true);
document.f.submit();
}
//]]>
</script>
</head>
<body>
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Extensions-Settings=}{=var-set:menu={=L:main.settings=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form name="f" accept-charset="UTF-8" action="/y/cgi">
<table border="0" class="y_form_table" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;</td>
<td><textarea name="extentions" id="ext" cols="90" rows="30" title="extention list">{=if-file-exists:%(CONFIGDIR)/extentions.txt~{=include:%(CONFIGDIR)/extentions.txt=}~{=if-file-exists:%(PUBLIC_HTTPDDIR)/extentions.txt~{=include:%(PUBLIC_HTTPDDIR)/extentions.txt=}~{=include:%(PRIVATE_HTTPDDIR)/extentions.txt=}=}=}</textarea></td>
</tr>
</table>
<br/>
<input type="hidden" name="tmpl" value="Y_Ext_Update_refresh.yhtm"/>
<input type="hidden" name="execute" value="include-block:Y_Blocks.txt;ext_save_settings;nix"/>
<button type="button" ytype="save" title="{=L:save_values_desc=}" onclick="do_submit()">{=L:save=}</button>
</form>
</div>
</div>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}

View File

@@ -1,78 +0,0 @@
{=include-block:Y_Blocks.txt;management_check_top=}
{=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" src="/Y_Ext_Update.js"></script>
<script type="text/javascript">
//<![CDATA[
function init(){
window.setTimeout("uninstall_build_list();",300);
}
//]]>
</script>
<style>
.type, .uninstall{
text-align:center;;
}
</style>
</head>
<body onload="init()">
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Extensions-Uninstall=}{=var-set:menu={=L:ext.uninstaller=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<div id="statusline"><img border="0" src="/images/wait.gif" width="20" height="20" alt="wait"/>
<span id="status">{=L:ext.search_for_ext=}</span></div>
<form method="post" name="update" action="">
<br/>
<div class="y_form_header_oline">{=L:ext.installed_extensions=}</div>
<table class="lt_table" cellspacing="0" cellpadding="2">
<thead align="left">
<tr valign="bottom">
<th>{=L:ext.type=}</th><th>{=L:ext.extension=}</th>
<th>{=L:ext.tag=}</th><th>{=L:ext.version=}</th><th>{=L:ext.size=}</th><th>{=L:ext.uninstall=}</th><th>{=L:ext.info=}</th>
</tr>
</thead>
<tbody id="update_list">
<tr><td></td></tr>
</tbody>
</table>
</form>
<br/>
<div id="free">?</div>
{=L:ext.free=}:&nbsp;<span id="avaiable">?</span>k
<form method="post" name="log" action="">
<div class="y_form_header_oline">Log</div>
<table class="lt_table" cellspacing="0" cellpadding="4">
<thead align="left">
<tr>
<th>&nbsp;</th><th>{=L:ext.action=}</th><th>{=L:ext.status=}</th>
</tr>
</thead>
<tbody id="slog_list">
<tr><td></td></tr>
</tbody>
</table>
<br/>
</form>
<br/>
<div class="y_form_header">{=L:ext.preview=}</div>
<form name="f" accept-charset="UTF-8" action="/y/cgi">
<table border="0" class="y_form_table" cellspacing="0" cellpadding="0">
<tr>
<td><textarea name="extentions" cols="90" rows="5" title="extention list"></textarea></td>
</tr>
</table>
<br/>
<input type="hidden" name="tmpl" value="Y_Ext_Update_refresh.yhtm"/>
<input type="hidden" name="execute" value="include-block:Y_Blocks.txt;ext_save_settings;nix"/>
</form>
</div>
</div>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}

View File

@@ -1,244 +0,0 @@
function do_submit()
{
show_waitbox(true);
document.f.submit();
}
/*sLog*/
var sLog_body;
var sLog_line_number;
function sLog_init(){
sLog_line_number = 0;
sLog_body=$("slog_list");
}
function sLog_clear(){
sLog_body.update();
sLog_line_number = 0;
}
function sLog_addRow(_body, state, action_text, state_text){
sLog_line_number++;
var mycurrent_row = y_add_row_to_table(_body, ((sLog_line_number % 2) ==0)?"a":"b" );
var __img ="/images/info.png";
switch (state)
{
case "green": __img = "/images/accept.png"; break;
case "yellow": __img = "/images/alert.gif"; break;
case "ok": __img = "/images/info.png"; break;
case "red": __img = "/images/remove.png"; break;
}
y_add_html_cell_to_row(mycurrent_row, "icon", "<img src='"+__img+"'>");
y_add_html_cell_to_row(mycurrent_row, "action_text", action_text);
y_add_text_cell_to_row(mycurrent_row, "state_text", state_text);
}
/*update_list*/
var update_body;
/*<upd_site>,<type=n|m>,<link text>,<link helptext>,<url>,<unique tag>,<version>,<url of installer>*/
/*<type=n|m>,<link text>,<link helptext>,<url>,<unique tag>,<version>*/
/*<type=u>,<update site name>,<update site helptext>,<url of extention list>*/
function list_init(){
update_body=$("update_list");
}
function list_clear(){
update_body.update();
}
function update_list_addRow(_body, i, your_version, ext_item)
{
var mycurrent_row = y_add_row_to_table(_body, ((i % 2) ==0)?"a":"b" );
var check='<input type="checkbox" name="setupdate" id="ch'+i+'" ysize="'+ext_item.get('size')+'" onchange="changeitem(ch'+i+')">';
var info="&nbsp;";
var etype="";
switch (ext.upd_version){
case "1":
yweb_version = "%";
break;
case "2":
var yweb_version=ext_item.get('yweb_version');
if (!yweb.require(yweb_version))
check = "";
if (typeof(ext_item.get('info_url')) != 'undefined')
info="<a href=\""+ext_item.get('info_url')+"\" target=\"_blank\"><img src=\"/images/info.png\"/></a>";
break;
}
switch(ext_item.get('type')){
case "m": etype="<img src=\"/images/ext_mgr.png\" alt=\"m\" title=\"Extension: Management\"/>";break;
case "n": etype="<img src=\"/images/ext_normal.png\" alt=\"n\" title=\"Extension: Normal\"/>";break;
case "s": etype="<img src=\"/images/ext_script.png\" alt=\"s\" title=\"Script\"/>";break;
case "p": etype="<img src=\"/images/ext_plugin.png\" alt=\"p\" title=\"Plugin\"/>";break;
case "x": etype="<img src=\"/images/ext_menu.png\" alt=\"x\" title=\"Menu Extension\"/>";break;
case "o": etype="<img src=\"/images/ext_ex.png\" alt=\"o\" title=\"One Time Run\"/>";break;
}
var upd_version = ext_item.get('version');
if(version_str_less(your_version,upd_version))
upd_version="<b>"+upd_version+"</b>";
y_add_html_cell_to_row(mycurrent_row, "setupdate", check);
y_add_text_cell_to_row(mycurrent_row, "site", ext_item.get('site'));
y_add_html_cell_to_row(mycurrent_row, "type", etype);
y_add_text_cell_to_row(mycurrent_row, "menu", ext_item.get('menuitem'));
y_add_text_cell_to_row(mycurrent_row, "tag", ext_item.get('tag'));
y_add_text_cell_to_row(mycurrent_row, "your_version", your_version);
y_add_html_cell_to_row(mycurrent_row, "update_version", upd_version);
y_add_html_cell_to_row(mycurrent_row, "yweb_version", yweb_version);
y_add_html_cell_to_row(mycurrent_row, "size", ext_item.get('size'));
y_add_html_cell_to_row(mycurrent_row, "info", info);
}
function changeitem(e){
var avail=0;
try{
var a=$('avaiable').innerHTML;
avail=parseInt(a,10);
var siz=parseInt($(e).readAttribute('ysize'),10);
if($(e).checked)
avail-=siz;
else
avail+=siz;
$('avaiable').update(avail);
}
catch(e){};
}
function build_list(){
$('statusline').show();
window.setTimeout("build_list2()",300);
}
function build_list2()
{
show_free();
sLog_init();
list_init();
list_clear();
ext.read_items();
sLog_addRow(sLog_body, "green", "installed Extensions: "+ext.installed_extensions.length, "ok");
ext.on_get_updates=function(site,isError){
if(isError)
sLog_addRow(sLog_body, "red", "cannot get list from: "+site, "error");
else
sLog_addRow(sLog_body, "green", "get list from: "+site, "ok");
};
ext.get_updates();
/*build_list*/
i=0;
ext.upd_extensions.each(function(e){
var your_version="%";
var have=ext.installed_extensions.find(function(ex){
try { return ex.get('tag')==e.get('tag');}
catch(e){return false;}
});
if(have)
your_version = have.get('version');
update_list_addRow(update_body,++i,your_version,e);
});
$('statusline').hide();
}
function do_set_updates(){
show_waitbox(true);
window.setTimeout("do_set_updates2()",300);
}
function do_set_updates2(){
var _rows = update_body.getElementsByTagName("tr");
for(var i=0; i< _rows.length; i++){
var rowNode = _rows.item(i);
if(rowNode.firstChild.firstChild && rowNode.firstChild.firstChild.checked == true){
var res=ext.install(ext.upd_extensions[i]);
res=res.gsub("\n","<br/>");
if(res.search(/error/)!=-1)
sLog_addRow(sLog_body, "red", "update error: "+res, "error");
else
sLog_addRow(sLog_body, "green", "installed/updates: "+ext.upd_extensions[i].get('tag')+" "+ext.upd_extensions[i].get('version')+"<br>"+res, "ok");
}
}
sLog_addRow(sLog_body, "green", "updating local extension list. Starting ...", "ok");
var extfile=ext.build_extension_file();
document.f.extentions.value=extfile;
show_waitbox(false);
alert("Update finished. Menue reload.");
do_submit();
}
var avaiable=0;
function show_free(){
var res=dbox_exec_tools("mtd_space");
var Ausdruck = /([^ ]*)[ ]*([^ ]*)[ ]*([^ ]*)[ ]*([^ ]*)[ ]*([^ ]*)[ ]*([^ ]*).*$/;
Ausdruck.exec(res);
var mtd = RegExp.$1;
var total = RegExp.$2;
var used = RegExp.$3;
avaiable = RegExp.$4;
var percentage = RegExp.$5;
var mtpt = RegExp.$6;
if (total != "") {
str = "Space in " + mtd + " (mounted on " + mtpt + ") Total: " + total + "kB; Used: " + used + "kB; Free: " + avaiable + "kB (" + percentage + ")";
$('avaiable').update(avaiable);
}
else
str = "Can not determine free space.";
$("free").update(str);
}
/*uninstall*/
function uninstall_list_addRow(_body, i, ext_item, has_uninstall)
{
var mycurrent_row = y_add_row_to_table(_body, ((i % 2) ==0)?"a":"b" );
// var check='<input type="checkbox" name="setupdate" id="ch'+i+'" ysize="'+ext_item.get('size')+'" onchange="changeitem(ch'+i+')">';
var etype="";
var info="&nbsp;";
if (typeof(ext_item.get('info_url')) != 'undefined')
info="<a href=\""+ext_item.get('info_url')+"\" target=\"_blank\"><img src=\"/images/info.png\"/></a>";
var uninst="<a href=\'javascript:do_uninstall(\""+ext_item.get('tag')+"\")\' title=\"uninstall\"><img src=\"/images/cross.png\"/></a>";
if(!has_uninstall) uninst="&nbsp;";
switch(ext_item.get('type')){
case "m": etype="<img src=\"/images/ext_mgr.png\" alt=\"m\" title=\"Extension: Management\"/>";break;
case "n": etype="<img src=\"/images/ext_normal.png\" alt=\"n\" title=\"Extension: Normal\"/>";break;
case "s": etype="<img src=\"/images/ext_script.png\" alt=\"s\" title=\"Script\"/>";break;
case "p": etype="<img src=\"/images/ext_plugin.png\" alt=\"p\" title=\"Plugin\"/>";break;
case "x": etype="<img src=\"/images/ext_menu.png\" alt=\"x\" title=\"Menu Extension\"/>";break;
case "o": etype="<img src=\"/images/ext_ex.png\" alt=\"o\" title=\"One Time Run\"/>";break;
}
y_add_html_cell_to_row(mycurrent_row, "type", etype);
y_add_text_cell_to_row(mycurrent_row, "menu", ext_item.get('menuitem'));
y_add_text_cell_to_row(mycurrent_row, "tag", ext_item.get('tag'));
y_add_text_cell_to_row(mycurrent_row, "version", ext_item.get('version'));
y_add_html_cell_to_row(mycurrent_row, "size", ext_item.get('size'));
y_add_html_cell_to_row(mycurrent_row, "uninstall", uninst);
y_add_html_cell_to_row(mycurrent_row, "info", info);
}
function do_uninstall(tag){
if (confirm("Delete " + tag)) {
show_waitbox(true);
window.setTimeout("do_uninstall2(\"" + tag + "\")", 300);
}
}
function do_uninstall2(tag){
var res=ext.uninstall(tag);
res=res.gsub("\n","<br/>");
if(res.search(/error/)!=-1)
sLog_addRow(sLog_body, "red", "uninstall error: "+res, "error");
else
sLog_addRow(sLog_body, "green", "uninstalled: "+tag+"<br/>"+res, "ok");
sLog_addRow(sLog_body, "green", "updating local extension list. Starting ...", "ok");
var extfile=ext.build_extension_file();
document.f.extentions.value=extfile;
show_waitbox(false);
alert("Update finished. Menue reload.");
do_submit();
}
function uninstall_build_list(){
$('statusline').show();
window.setTimeout("uninstall_build_list2()",300);
}
function uninstall_build_list2(){
show_free();
sLog_init();
list_init();
list_clear();
sLog_addRow(sLog_body, "green", "installed Extensions: "+ext.installed_extensions.length, "ok");
/*build_list*/
i=0;
ext.installed_extensions.sortBy(function(e){return e.get('tag');}).each(function(e){
res=loadSyncURL("/y/cgi?execute=if-file-exists:%(CONFIGDIR)/ext/"+e.get('tag')+"_uninstall.inc~1~0");
uninstall_list_addRow(update_body,++i,e,res=="1");
});
$('statusline').hide();
}

View File

@@ -1,75 +0,0 @@
{=include-block:Y_Blocks.txt;management_check_top=}
{=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" src="/Y_Ext_Update.js"></script>
</head>
<body>
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Extensions-Update=}{=var-set:menu={=L:ext.installer_updater=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body" style="width:100%">
<div id="statusline"><img border="0" src="/images/wait.gif" width="20" height="20" alt="wait"/>
<span id="status">{=L:ext.search_for_ext=}</span></div>
<form method="post" name="update" action="">
<br/>
<div class="y_form_header_oline">{=L:ext.update_preview=}</div>
<table class="lt_table" cellspacing="0" cellpadding="2">
<thead align="left">
<tr valign="bottom">
<th>&nbsp;</th>
<th>{=L:ext.site=}</th><th>{=L:ext.type=}</th><th>{=L:ext.extension=}</th>
<th>{=L:ext.tag=}</th><th>{=L:ext.your=}<br/>{=L:ext.version=}</th><th>{=L:ext.update=}<br/>{=L:ext.version=}</th>
<th title="minimal yWeb version">yWeb</th><th>{=L:ext.size=}</th><th>{=L:ext.info=}</th>
</tr>
</thead>
<tbody id="update_list">
<tr><td></td></tr>
</tbody>
</table>
<button type="button" ytype="go" title="" name="set_updates" onclick="do_set_updates()">{=L:ext.update_install=}</button>&nbsp;
</form>
<br/>
<div id="free">?</div>
{=L:ext.free=}: <span id="avaiable">?</span>k
<form method="post" name="log" action="">
<div class="y_form_header_oline">Log</div>
<table class="lt_table" cellspacing="0" cellpadding="4">
<thead align="left">
<tr>
<th>&nbsp;</th><th>{=L:ext.action=}</th><th>{=L:ext.status=}</th>
</tr>
</thead>
<tbody id="slog_list">
<tr><td></td></tr>
</tbody>
</table>
<br/>
</form>
<br/>
<div class="y_form_header">{=L:ext.preview=}</div>
<form name="f" accept-charset="UTF-8" action="/y/cgi">
<table border="0" class="y_form_table" cellspacing="0" cellpadding="0">
<tr>
<td><textarea name="extentions" cols="90" rows="5" title="extention list"></textarea></td>
</tr>
</table>
<br/>
<input type="hidden" name="tmpl" value="Y_Ext_Update_refresh.yhtm"/>
<input type="hidden" name="execute" value="include-block:Y_Blocks.txt;ext_save_settings;nix"/>
</form>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
window.setTimeout("build_list();",500);
yversion_str="{=ini-get:Y_Version.txt;version=}";
//]]>
</script>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}

View File

@@ -1,26 +0,0 @@
{=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 do_onload() {
yhttpd_cache_clear('');
ext.read_items();
parent.sec_menu.location.reload();
}
//]]>
</script>
</head>
<body onload="do_onload()">
{=var-set:wait_text={=L:refreshing=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Extensions-Update=}{=var-set:menu={=L:ext.ext_saved=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body" width="100%s">
{=L:ext.refresh_now=}
</div>
</div>
</body>
</html>

View File

@@ -1,724 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript" src="/prototype.js"></script>
<script type="text/javascript" src="/effects.js"></script>
<script type="text/javascript" src="/accordion.js"></script>
<script type="text/javascript">
//<![CDATA[
/* yWeb Extension: Filemgr (by yjogol)
* yCVS: $Date: 2008-01-08 09:50:32 $
* yCVS: $Revision: 1.3 $
*/
/* --------------------------------------------------------------*/
/* in development */
/* --------------------------------------------------------------*/
var CyExplorer = function(_id,_root) {
this.initialize(_id, _root);
};
CyExplorer.prototype = {
id : "explorer",
ac_path: "",
ac_item: "",
ac_prop: null,
root: "/",
el: null,
line_number: 0,
on_before_dirview: null,
on_after_dirview: null,
initialize : function(_id, _root) {
this.id = _id;
if(typeof(_root) != "undefined")
this.root = _root;
},
/* widget wd*/
wg_init : function() {
this.line_number = 0;
this.el=$(this.id);
},
wg_clear : function() {
this.el.update();
this.line_number = 0;
},
wg_addRow: function(fp, golink, editlink) {
this.line_number++;
var mycurrent_row = new Element( 'tr', {'class': ((this.line_number % 2) ==0)?"a":"b"} );
$(this.el).insert(mycurrent_row);
/* icon */
var __img ="/images/ftype_file.gif";
switch (fp.get('type')){
case "folder": __img = "/images/ftype_folder.png"; break;
case "link": __img = "/images/ftype_link.png"; break;
case "file": __img = "/images/ftype_file.png";
switch (fp.get('ext')){
case "ts": case "ps": case "pes": case "avi":
__img = "/images/film.png"; break;
case "jpg": case "jpeg": case "bmp": case "gif": case "ico": case "png":
__img = "/images/picture.png"; break;
case "file": case "tar": case "zip": case "tar.gz":
__img = "/images/package.png";
case "file": case "txt": case "ini": case "conf":
__img = "/images/text.png";
break;
}
break;
}
if(editlink != "")
iconstr = "<a href='javascript:do_prop(\""+editlink+"\")'><img src='"+__img+"'></a>";
else
iconstr = "<img src='"+__img+"'>";
var icon_cell = new Element( 'td',{name: 'icon'}).update(iconstr);
mycurrent_row.insert(icon_cell);
/* file */
if(golink != "")
fnamestr = "<a href='"+golink+"'>"+fp.get('fname')+"</a>";
else
fnamestr = "<a href='javascript:do_prop(\""+editlink+"\")'>"+fp.get('fname')+"</a>";
/* if(editlink != "")
fdate = "<a href='' edit='"+editlink+"' ycontextmenu=\"imgmenu\"><img src=\"/images/properties.png\"></a>"+fp.get('date');
*/
var file_cell = new Element( 'td',{name: 'file'}).update(fnamestr);
mycurrent_row.insert(file_cell);
},
parse_dirline : function(_line){
/* this may be overridden for different OSs */
var Ausdruck = /([^ ]*)[ ]*([^ ]*)[ ]*([^ ]*)[ ]*([^ ]*)[ ]*([^ ]*)[ ]*([^ ]*)[ ]*([^ ]*)[ ]*([^ ]*)[ ]*([^ ]*).*$/;
Ausdruck.exec(_line);
var fileprops = new Hash();
var fname = RegExp.$9;
fileprops.set('fname', fname);
fileprops.set('access', RegExp.$1);
switch ( (RegExp.$1).charAt(0) ){
case "d": fileprops.set('type', 'folder'); break;
case "l": fileprops.set('type', 'link'); break;
default: fileprops.set('type', 'file'); break;
}
fileprops.set('user', RegExp.$3);
fileprops.set('group', RegExp.$4);
fileprops.set('size', RegExp.$5);
fileprops.set('date', RegExp.$6+" "+RegExp.$7+" "+RegExp.$8);
var pos = fname.lastIndexOf(".");
fileprops.set('ext', fname.substring(pos+1));
return fileprops;
},
// dirview: function(path) {
// window.setTimeout("_do_dirview2(\""+path+"\")",100);
dirview: function(path) {
this.ac_path = path;
this.ac_item = "";
this.ac_prop=null;
this.wg_init();
this.wg_clear();
if(this.on_before_dirview) this.on_before_dirview();
var res = loadSyncURL("/y/cgi?execute=script:Y_NAS%20filemgr_list%20"+path);
var files = res.split("\n");
/*every ls row*/
for(i=0;i<files.length;i++){
var fp=this.parse_dirline(files[i]);
if(fp.get('fname') != "" && fp.get('fname') != "." && !(fp.get('fname') == ".." && path == "/")){
var xpath = path;
var golink = "";
var editlink = "";
if(fp.get('type') == "folder"){
if(fp.get('fname') == "..") /* folder back link*/
{
xpath=build_up_dir(path);
golink = "javascript:do_dirview(\""+xpath+"\")";
}
else{ /* folder */
if(path != "/") xpath += "/";
golink = "javascript:do_dirview(\""+xpath+fp.get('fname')+"\");";
editlink = files[i];
}
}
else{ /* file */
editlink = files[i];
}
this.wg_addRow(fp, golink, editlink);
}
}
if(this.on_after_dirview) this.on_after_dirview();
work_indikator(false);//TODO
},
/* --- filelist operations --------------------- */
refresh: function() {
this.dirview(this.ac_path);
},
go_up_dir: function() {
if(this.ac_path != "/") {
p=build_up_dir(this.ac_path);
this.dirview(p);
}
},
/* tools */
_build_fname: function(_path,_fname) {
if(_path != "/")
_path += "/";
var file = _path + _fname;
return file;
},
build_fname: function(_fname) {
var fname = _fname;
if(typeof(_root) == "undefined")
fname = this.ac_item;
return this._build_fname(this.ac_path,fname);
},
/* file operations */
select: function(_line){
this.ac_prop=this.parse_dirline(_line);
this.ac_item=this.ac_prop.get('fname');
},
add_folder: function(rel_path) {
var path = this.ac_path;
if(path != "/") path += "/";
path += rel_path;
var res= loadSyncURL("/y/cgi?execute=script:Y_NAS%20filemgr_mkdir%20"+path);
if(res.length)
alert(res);
this.refresh();
},
chmod: function(_octal,_recusive){
var cmd="";
var file = this.build_fname();
if(typeof(_recursive) != "undefined" && _recursive)
cmd+= "-R%20";
cmd+=_octal+"%20"+file;
var res = loadSyncURL("/y/cgi?execute=script:Y_NAS%20filemgr_chmod%20"+cmd);
if(res.length)
alert(res);
this.refresh();
},
remove: function() {
if(!this.ac_prop)return;
var fname = this.build_fname();
var ftype = this.ac_prop.get('type');
if(ftype == "file"){
var msg = "Really delete file \""+fname+"\" ?";
if(confirm(msg)==true){
var res = loadSyncURL("/y/cgi?execute=script:Y_NAS%20filemgr_rm%20"+fname);
if(res.length)
alert(res);
this.refresh();
}
}
else if(ftype == "folder"){
var msg = "Really delete directory \""+fname+"\" ? All sub-directories will be deleted too!";
if(confirm(msg)==true){
var res = loadSyncURL("/y/cgi?execute=script:Y_NAS%20filemgr_rmdir%20"+fname);
if(res.length)
alert(res);
this.refresh();
}
}
},
rename: function(newfname) {
if(newfname != "" && newfname != this.ac_item){
var path = explorer.ac_path;
if(path != "/") path += "/";
var filenew = path + newfname;
var fileorg = this.build_fname();
var res = loadSyncURL("/y/cgi?execute=script:Y_NAS%20filemgr_ren%20"
+fileorg+
"%20"+ filenew);
if(res.length)
alert(res);
this.refresh();
}
},
/* cut, copy, past */
source_prop: null,
sourcefname: "",
isCut: false,
cut: function() {
this.isCut=true;
this.source_prop = this.ac_prop;
this.sourcefname = this.build_fname(this.source_prop.get('fname'));
},
copy: function() {
this.isCut=false;
this.source_prop = this.ac_prop;
this.sourcefname = this.build_fname(this.source_prop.get('fname'));
},
paste: function(){
if(this.source_prop) {
var dest = (this.ac_prop && this.ac_prop.get('type') == "folder") ? this.build_fname() : this.ac_path;
var source=this._build_fname()
var msg = (this.isCut) ? "verschiebe " : "kopiere ";
msg += (this.source_prop.get('type') == "folder") ? "Verzeichnis " : "Datei ";
msg += this.sourcefname + " nach Verzeichnis " + dest;
if (confirm(msg) == true) {
var cmd = "/y/cgi?execute=script:Y_NAS%20";
cmd += (this.isCut) ? "filemgr_ren" : "filemgr_copy";
cmd += "%20" + this.sourcefname + "%20" + dest;
var res = loadSyncURL(cmd);
this.source_prop = null;
this.sourcefname = "";
this.refresh();
}
}
else
alert("nothing to paste");
}
};
/* --------------------------------------------------------------*/
/* INIT */
/* --------------------------------------------------------------*/
var explorer=null;
function init(){
explorer= new CyExplorer('slog_list','/');
explorer.on_before_dirview=on_before_dirview;
explorer.on_after_dirview=on_after_dirview;
new Accordion('details',{
toggler: '.detail_title',
togglee: '.detail_content',
activeClassName: 'detail_title_active',
defaultTogglee: 'fprop'});
do_dirview("/");
}
//alert($('adetails'));
//alert($('work'));
//var arc = new accordion('adetails');
//new Control.Tabs('tab_group_one');
/* --------------------------------------------------------------*/
function on_before_dirview(){
show_path_and_item();
work_indikator(true);
}
function on_after_dirview(){
work_indikator(false);
msg("&nbsp;");
}
/* --- panel elements -------------------------- */
function work_indikator(show){
(show)?$('work').show():$('work').hide();
}
function msg(str){
$('msg').update(str);
}
function show_path_and_item(){
$('path').update(explorer.ac_path);
show_prop();
}
function hide_diags(){
//TODO? $('prop').hide();
_hide_diags();
}
function _hide_diags(){
$('add_folder_diag').hide();
$('upload_diag').hide();
$('ext_diag').hide();
}
function show_prop(){
if (explorer.ac_item != "") {
$('item').update(explorer.ac_item);
// $('prop','prop_toolbar').invoke('show');
$('prop_toolbar').show();
$('details').show();
// $$('.detail_title','.detail_content').invoke('show');
}
else {
$('item').update("nothing selected");
// $('prop','prop_toolbar').invoke('hide');
$('prop_toolbar').hide();
$('details').hide();
// $$('.detail_title','.detail_content').invoke('hide');
}
_hide_diags();
}
/* --- some tools ------------------------------ */
function build_up_dir(path){
var xpath=path;
for(j=path.length-1;j>=0;j--)
if(path.charAt(j) == "/"){
xpath = path.slice(0, j);
break;
}
if(xpath == "") xpath += "/";
return xpath;
}
function extract_filename(fname){
var extractfname = "";
for(j=fname.length-1;j>=0;j--)
if(fname.charAt(j) == "/" ||fname.charAt(j) == "\\"){
extractfname = fname.slice(j+1, fname.length);
break;
}
return extractfname;
}
/* --- filelist operations --------------------- */
function do_dirview(path){
work_indikator(true);
window.setTimeout("_do_dirview2(\""+path+"\")",100);
}
function _do_dirview2(path){
explorer.dirview(path);
}
function refresh_dirview(){
explorer.refresh();
}
function do_go_up_dir(){
explorer.go_up_dir();
}
/* --- detail operations ----------------------- */
/* add folder */
function add_folder_dialog(){
hide_diags();
$('add_folder_diag').show();
document.add_folder.folder.focus();
}
function do_add_folder(){
if($F('folder') != ""){
var res= explorer.add_folder($F('folder'));
hide_diags();
}
else
alert("No foldername given!");
}
/* upload */
function upload_dialog(){
hide_diags();
$('upload_diag').show();
document.upload.file.focus();
}
function do_upload(){
if (document.upload.file.value != "") {
msg("upload file: " + document.upload.file.value);
work_indikator(true);
window.setTimeout("_do_upload()", 100);
}
else
alert("No file given!");
}
function _do_upload(){
var path =explorer.ac_path;
var fname = extract_filename(document.upload.file.value);
document.upload.path.value = path;
document.upload.dummy.value = path;
document.upload.execute.value = "script:Y_NAS filemgr_upload "+path+" "+fname;
document.upload.submit();
}
/* show properties */
function do_prop(prop){
explorer.select(prop);
$('fdate').update(explorer.ac_prop.get('date'));
$('fsize').update(explorer.ac_prop.get('size'));
$('fuser').update(explorer.ac_prop.get('user'));
$('fgroup').update(explorer.ac_prop.get('group'));
show_prop();
document.edit.fitem.value = explorer.ac_item;
// Fileextention handling
var fullfname = explorer.build_fname();
switch(explorer.ac_prop.get('ext')){
case "xml":
var res = loadSyncURL("/y/cgi?execute=script:Y_NAS%20filemgr_check_movieplayer_xml%20"+fullfname);
if(res){
prop_plugin_mpxml(fullfname);
}
break;
case "jpg":
case "png":
case "bmp":
case "gif":
case "ico":
prop_plugin_img(fullfname);
break;
case "ts":
var server="{=func:get_header_data Host=}";
var res = loadSyncURL("/y/cgi?execute=script:Y_NAS%20filemgr_vlc_file%20http://"+server+fullfname);
prop_plugin_ts(fullfname);
break;
}
// set chmod parameters
var access = explorer.ac_prop.get('access');
document.edit.ftype.value = explorer.ac_prop.get('type');
document.edit.ur.checked = (access.charAt(1) == "r");
document.edit.uw.checked = (access.charAt(2) == "w");
document.edit.ux.checked = (access.charAt(3) == "x");
document.edit.gr.checked = (access.charAt(4) == "r");
document.edit.gw.checked = (access.charAt(5) == "w");
document.edit.gx.checked = (access.charAt(6) == "x");
document.edit.or.checked = (access.charAt(7) == "r");
document.edit.ow.checked = (access.charAt(8) == "w");
document.edit.ox.checked = (access.charAt(9) == "x");
calc_chmod();
}
/* properties plugins*/
function mpxml_processReqChange()
{
if(g_req.readyState == 4 && g_req.status == 200){
var xml = g_req.responseXML;
$('ext_title').update("Movieplayer XML");
var html="<div class='epgtitle'>"+getXMLNodeItemValue(xml, 'epgtitle')+"</div>";
html+="<div class='epginfo1'>"+getXMLNodeItemValue(xml, 'info1')+"</div>";
html+="<div class='epginfo2'>"+getXMLNodeItemValue(xml, 'info2')+"</div>";
$('ext_content').update(html);
$('ext_diag').show();
}
}
function prop_plugin_mpxml(fullfname)
{
loadXMLDoc(fullfname, mpxml_processReqChange);
}
function prop_plugin_img(fullfname)
{
$('ext_title').update("Image Thumb");
var html="<img class='detail_img' src='"+fullfname+"'>";
$('ext_content').update(html);
$('ext_diag').show();
}
function prop_plugin_ts(fullfname)
{
$('ext_title').update("Stream File");
var html="<a href='/tmp/vlc.m3u?"+Math.random()+"' target='_blank'><img src='/images/vlc.png'>start vlc</a>";
$('ext_content').update(html);
$('ext_diag').show();
}
/* chmod */
Conversor = {
h: '0123456789abcdefghijklmnopqrstuvwxyz',
int2base: function( n, base ){
if( base < 2 || base > this.h.length )
throw new Error( "base invalid" );
for( var n = parseInt( n ) || 0, result = ""; n; result = this.h.charAt( n % base ) + result, n = Math.floor( n / base ) );
return result;
},
base2int: function( s, base ){
for( var i = -1, l = s.length, result = 0; ++i < l; result = result * base + this.h.indexOf( s.charAt( i ) ) );
return result;
}
}
function calc_chmod(){
var c=0;
if(document.edit.ur.checked) c |= 0400;
if(document.edit.uw.checked) c |= 0200;
if(document.edit.ux.checked) c |= 0100;
if(document.edit.gr.checked) c |= 0040;
if(document.edit.gw.checked) c |= 0020;
if(document.edit.gx.checked) c |= 0010;
if(document.edit.or.checked) c |= 0004;
if(document.edit.ow.checked) c |= 0002;
if(document.edit.ox.checked) c |= 0001;
document.edit.chmod.value = Conversor.int2base(c,8);
}
function do_chmod(){
var res= explorer.chmod($F('chmod'), document.edit.rec.checked);
}
/* delete */
function do_delete(){
msg("delete file: " + explorer.ac_item);
work_indikator(true);
window.setTimeout("_do_delete()", 100);
}
function _do_delete(){
explorer.remove();
}
/* rename */
function do_rename(){
if($F('fitem') != "")
explorer.rename($F('fitem'));
else
alert("Rename: nothing entered!");
}
function do_cut(){
explorer.cut();
}
function do_copy(){
explorer.copy();
}
function do_paste(){
explorer.paste();
}
/* download */
function do_download(){
var res = loadSyncURL("/y/cgi?execute=script:Y_NAS%20nhttpd_can_sendall");
if(res=="")
alert("Um aller Dateitypen senden zu können, muss unter Settings->Webserver die Option >alle Dateiendungen erlauben< aktiviert werden!");
else
window.open(explorer.build_fname());
}
function do_edit(){
if($F('ftype') != "d")
window.open("/Y_Filemgr_Edit.yhtm?file="+explorer.build_fname(),"edit", "width=800,height=600,resizable=yes");
else
alert("you can not edit a directory");
}
function ni() {
alert("not implemented");
}
//]]>
</script>
</head>
<body onload="init()">
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Extensions-filemgr=}{=var-set:menu=File Manager (1.0.0)=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<table class="mform" width="100%" border="0">
<!-- toolbars -->
<tr>
<td width="60%" class="box">
<table class="toolbar" cellspacing="1" cellpadding="1">
<tr>
<td title="go to top dir"><a href='javascript:do_dirview("/")'><img src="/images/home.png"/></a></td>
<td title="go one dir up"><a href='javascript:do_go_up_dir()'><img src="/images/dir_up.png"/></a></td>
<td title="refresh"><a href='javascript:refresh_dirview()'><img src="/images/reload.png"/></a></td>
<td title="add folder here"><a href='javascript:add_folder_dialog()'><img src="/images/folder_add.png"/></a></td>
<td title="upload"><a href='javascript:upload_dialog()'><img src="/images/upload.png"/></a></td>
<td title="paste item"><a href="javascript:do_paste()"><img src="/images/paste.gif"/></a></td>
</tr>
</table>
</td>
<td class="box">
<table id="prop_toolbar" class="toolbar" cellspacing="1" cellpadding="1" style="display:none">
<tr>
<td title="delete item"><a href="javascript:do_delete()"><img src="/images/cross.png"/></a></td>
<td title="copy item"><a href="javascript:do_copy()"><img src="/images/copy.gif"/></a></td>
<td title="cut item"><a href="javascript:do_cut()"><img src="/images/cut.png"/></a></td>
<td title="download item"><a href="javascript:do_download()"><img src="/images/download.png"/></a></td>
<td title="Edit item"><a href="javascript:do_edit()"><img src="/images/page_edit.png"/></a></td>
</tr>
</table>
</td>
</tr>
<!-- path and item -->
<tr>
<td class="box" title="path"><div id="path"></div></td>
<td class="box" title="selected item"><div id="item" style="overflow:hidden"></div></td>
</tr>
<!-- filelist and props -->
<tr>
<td class="box" valign="top">
<form method="post" name="log" action="">
<div style="text-align:left;min-height:300px;max-height:600px;overflow:auto">
<table class="filelist" width="100%" cellpadding="2" cellspacing=0 >
<tr><td width="22px"></td></tr>
<tbody id="slog_list">
</tbody>
</table>
</div>
</form>
</td>
<td class="box" valign="top">
<!-- detail view -->
<!-- properties -->
<div id="details">
<div class="detail_title">File properties</div>
<div class="detail_content" id="fprop">
<table cellspacing="0" cellpadding="1" border="0">
<tr><td>Date:</td><td colspan="3"><div id="fdate"></div></td></tr>
<tr><td>Size:</td><td colspan="3"><div id="fsize"></div></td></tr>
<tr><td>User:</td><td colspan="3"><div id="fuser"></div></td></tr>
<tr><td>Group:</td><td colspan="3"><div id="fgroup"></div></td></tr>
</table>
</div>
<div class="detail_title">File permissions</div>
<div class="detail_content">
<!-- permissions -->
<form method="" name="edit" action="" >
<input type="hidden" id="ftype" name="ftype" value=""/>
<table cellspacing="0" cellpadding="1" border="0">
<tr><td>Permission</td><td>read</td><td>write</td><td>exe</td></tr>
<tr><td>Owner:</td>
<td><input type="checkbox" name="ur" value="" onclick="calc_chmod()"/></td>
<td><input type="checkbox" name="uw" value="" onclick="calc_chmod()"/></td>
<td><input type="checkbox" name="ux" value="" onclick="calc_chmod()"/></td>
</tr>
<tr><td>Group:</td>
<td><input type="checkbox" name="gr" value="" onclick="calc_chmod()"/></td>
<td><input type="checkbox" name="gw" value="" onclick="calc_chmod()"/></td>
<td><input type="checkbox" name="gx" value="" onclick="calc_chmod()"/></td>
</tr>
<tr><td>Others:</td>
<td><input type="checkbox" name="or" value="" onclick="calc_chmod()"/></td>
<td><input type="checkbox" name="ow" value="" onclick="calc_chmod()"/></td>
<td><input type="checkbox" name="ox" value="" onclick="calc_chmod()"/></td>
</tr>
<tr><td>chmod:</td><td colspan="3"><input type="text" id="chmod" name="chmod" value="" size="3"/>
<input type="checkbox" name="rec" value="">recursiv
<span class="button" title="change permissions" onclick="do_chmod()"><img src="/images/chmod.png"></span>
</td></tr>
<tr><td>Item:</td><td colspan="3"><input type="text" size="20" id="fitem" name="fitem" />
<span class="button" title="rename"><a href='javascript:do_rename()'><img src="/images/rename.gif"/></a></span>
</td></tr>
<tr><td colspan="4" align="right">
&nbsp;
</td></tr>
</table>
</form>
</div>
<!-- extension dialog -->
<div id="ext_diag" style="display:none">
<div id="ext_title" class="detail_title"></div>
<div id="ext_content" class="detail_content"></div>
</div>
</div><!--end details-->
<!-- add folder -->
<div id="add_folder_diag" style="display:none">
<form name="add_folder" accept-charset="UTF-8" action="">
<table class="diag" cellspacing="0" cellpadding="1" border="0">
<tr><td>
Add folder:<br/>
<input type="text" size="30" id="folder" name="folder" />
</td></tr>
<tr><td align="right">
<input type="button" value="save" onclick="do_add_folder()" />
<input type="button" value="cancel" onclick="show_prop()" />
</td></tr>
</table>
</form>
</div>
<!-- File Upload Dialogue -->
<div id="upload_diag" style="display:none">
<form method="post" name="upload" enctype="multipart/form-data" action="/y/cgi">
<table class="diag" cellspacing="0" cellpadding="1" border="0">
<tr><td>Upload Filename:</td></tr>
<tr><td><input type="file" name="file" size="20"/></td></tr>
<tr><td align="right">
<input type="hidden" name="dummy" value="/"/>
<input type="hidden" name="path" value="/"/>
<input type="hidden" name="tmpl" value="/Y_Filemgr.yhtm"/>
<input type="hidden" name="execute" value=""/>
<input type="button" value="upload" name="su" onclick="do_upload()"/>
<input type="button" value="cancel" onclick="show_prop();" />
</td></tr>
</table>
</form>
</div>
</td>
</tr>
<!-- statusline -->
<tr>
<td colspan="2" class="box">
<table border="0" cellspacing="1" cellpadding="1" width="100%">
<tr>
<td title="work indicator" width="20px"><div id="work" style="display:none"><img src="/images/work.gif"/></div></td>
<td title="statusline"><div id="msg">message in statusline</div></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>

View File

@@ -1,68 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript" src="/prototype.js"></script>
<script type="text/javascript">
//<![CDATA[
/* yWeb Extension: Filemgr (by yjogol)
* yCVS: $Date: 2008-01-08 09:50:32 $
* yCVS: $Revision: 1.2 $
*/
var Window_delta_w=0;;
var Window_delta_h=0;
function init(){
/*
var t=document.getElementsByName("editfile");
// var dim= $('txt').dimensions();
Window_delta_w=yClientWidth()- t.clientWidth;
Window_delta_h=yClientHeight()- t.clientHeight;
alert("WH"+t.clientWidth+"-"+Window_delta_h);
window.onresize=do_onresize;
*/
}
function do_onresize(){
window.onresize=null;
var t=document.getElementsByName("editfile");
// do_resize();
window.onresize=do_onresize;
}
function do_submit(){
show_waitbox(true);
document.f.submit();
}
function do_reload(){
location.reload();
}
function ni(){
alert("not implemented");
}
//]]>
</script>
</head>
<body onload="init()">
{=var-set:wait_text=Speichern (Save).=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Extensions-filemgr=}{=var-set:menu=File Manager: Editor=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<table id="prop_toolbar" class="toolbar" cellspacing="1" cellpadding="1">
<tr>
<td title="save"><a href="javascript:do_submit()"><img src="/images/save.png"/></a></td>
<!-- <td title="copy text"><a href="javascript:ni()"><img src="/images/copy.gif"/></a></td>
<td title="cut text"><a href="javascript:ni()"><img src="/images/cut.gif"/></a></td>
<td title="paste item"><a href="javascript:ni()"><img src="/images/paste.gif"/></a></td>
-->
<td title="reload"><a href='javascript:do_reload()'><img src="/images/reload.png"/></a></td>
<td title="close without save"><a href='javascript:window.close()'><img src="/images/cross.png"/></a></td>
</tr>
</table>
<form name="f" accept-charset="UTF-8" action="/y/cgi?execute=include-block:Y_Filemgr_blocks.txt;edit_save_settings;nix" method="POST">
<textarea id="txt" name="editfile" cols="100" rows="31" wrap="off" title="Editor" style="width: 100%;">{=include:{=file=}=}</textarea>
<input type="hidden" name="tmpl" value="Y_Filemgr_Edit.yhtm"/>
<input type="hidden" name="file" value="{=file=}"/>
</form>
</div>
</div>
</script>
</body>
</html>

View File

@@ -1,3 +0,0 @@
start-block~edit_save_settings
{=file-action:{=file=};add;{=editfile=}=}
end-block~edit_save_settings

View File

@@ -1,117 +0,0 @@
/* yWeb Flash by yjogol
$Date$
$Revision$
*/
function do_image_upload_dialog()
{
var nr=obj_get_radio_value('R1');
nr = (nr=="")?0:nr;
document.f.mtd_text.value = document.f.elements[nr].title;
document.f.mtd.value = nr;
document.f.execute.value = "script:Y_Tools image_flash_free_tmp";
document.f.tmpl.value = "Y_Tools_Flash_Upload.yhtm";
document.f.submit();
}
function do_image_download()
{
show_waitbox(true);
$('f').disable();
window.setTimeout("do_image_download_2()",100);
/*setTimeout:refresh output*/
}
function do_image_download_2()
{
var nr=obj_get_radio_value('R1');
nr = (nr=="")?0:nr;
var res = loadSyncURL("/control/exec?Y_Tools&image_backup&"+nr);
$('download_link').href = res;
$('f').enable();
show_waitbox(false);
$('download_box').show();
}
function goConfirmUrl(_meld, _url)
{
if (confirm(_meld)==true)
loadSyncURL(_url);
}
function image_delete()
{
var res = loadSyncURL("/control/exec?Y_Tools&image_delete");
$('download_box').hide();
}
/*flashing*/
var aktiv;
var flashing = false;
var flash_diag = null;
function show_progress(_msg,_type,_proz)
{
var __msg = $("msg");
__msg.value = _msg;
var tmsg="";
if(_type == 1){
tmsg="erasing";
$("erasing_left").width = _proz;
}
else if(_type == 2){
tmsg="writing";
$("erasing_left").width = "100%";
$("writing_left").width = _proz;;
}
else if(_type == 3){
tmsg="verifying";
$("writing_left").width = "100%";
$("verifying_left").width = _proz;;
}
loadSyncURL("/control/lcd?lock=1&clear=1&xpos=10&ypos=27&size=20&font=2&text=yWeb%20flashing%0A"+tmsg+"%20"+encodeURI(_proz)+"&update=1");
}
/* load fcp status from /tmp/e.txt*/
function progress_onComplete(_req)
{
var last = _req.responseText.lastIndexOf("\r");
var last_line = _req.responseText.slice(last+1, _req.responseText.length);
var _type = 0;
if(last_line.search(/Erasing/)!=-1)
_type = 1;
if(last_line.search(/Writing/)!=-1)
_type = 2;
if(last_line.search(/Verifying/)!=-1)
_type = 3;
var Ausdruck = /\((.*)\)/;
var e=Ausdruck.exec(last_line);
var p = RegExp.$1;
show_progress(last_line, _type, p);
}
function progress_get()
{
var myAjax = new Ajax.Request(
"/tmp/e.txt",
{
method: 'post',
onComplete: progress_onComplete
});
}
function do_submit()
{
var msg = "Flash Image?";
if(document.f.demo.checked)
msg = "DEMO: "+msg;
if(confirm(msg)==true){
show_waitbox(true);
document.f.submit();
$('f').disable();
}
}
function do_image_upload_ready_error()
{
$('f').enable();
show_waitbox(false);
}
function do_image_flash_ready()
{
window.clearInterval(aktiv);
$('flash_diag').hide();
loadSyncURL("/control/lcd?lock=0");
alert("Image flashed. Press OK after reboot");
top.location.href="/";
}

View File

@@ -1,19 +0,0 @@
{=var-set:cancache=yPConf=}
{=include-block:Y_Blocks.txt;head=}
</head>
<body>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Info-Hilfe=}{=var-set:menu={=L:info.help=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<ul>
<li><a href="http://wiki.tuxbox.org/Neutrino:yWeb" class="exlink" title="yWeb Help from Tuxbox Wiki" target="_blank">Tuxbox-Wiki Help</a></li>
<li><a href="http://forum.tuxbox.org/forum" class="exlink" title="Tuxbox Dicussion Forum" target="_blank">Tuxbox Forum</a></li>
<li><a href="http://www.cstworld.net" class="exlink" title="CST User Forum" target="_blank">CST User Forum</a></li>
<li><a href="http://www.dbox2world.net/board329-development/" class="exlink" title="CST Dev Forum" target="_blank">CST Developer Forum</a></li>
</ul>
</div>
</div>
</body>
</html>

View File

@@ -1,37 +0,0 @@
{=var-set:cancache=yPConf=}
{=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">
function init(){
add_yExtensions('info', 'secmenu_info');
}
</script>
</head>
{=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~=}=}
<body onload="init()">
<div class="y_menu_sec_box">
<div class="y_menu_sec_box_head"><h2>{=L:main.info=}</h2></div>
<div class="y_menu_sec_box_body">
<div class="y_menu_sec">
<ul id="secmenu_info">
<li>
<a target="work" href="Y_About.yhtm">{=L:info.About=}</a>
</li>
<li>
<a target="work" href="Y_Info_Help.yhtm">{=L:info.help=}</a>
</li>
<li>
{=var-set:m_link_href=Y_Info_Updates.yhtm=}
{=var-set:m_link_text={=L:info.check_for_updates=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
</ul>
</div>
</div>
</div>
</body>
</html>

View File

@@ -1,47 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function check_updates()
{
loadSyncURL("/control/exec?Y_Tools&get_update_version");
location.reload();
}
//]]>
</script>
</head>
<body>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Info-Auf_Updates_pruefen=}{=var-set:menu={=L:info.check_for_updates=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<table border="0" cellpadding="2" cellspacing="4">
<tr>
<td valign="top" width="30%">
<b>{=L:info.your_version=}</b>
<p>
{=ini-get:Y_Version.txt;version=}<br/>
{=ini-get:Y_Version.txt;date=}<br/>
{=ini-get:Y_Version.txt;type=}<br/><br/>
{=ini-get:Y_Version.txt;info=}<br/>
</p>
</td>
<td valign="top" width="30%">
<b>{=L:info.actual_version=}</b>
<p>
{=ini-get:/tmp/version.txt;version=}<br/>
{=ini-get:/tmp/version.txt;date=}<br/>
{=ini-get:/tmp/version.txt;type=}<br/><br/>
{=ini-get:/tmp/version.txt;info=}<br/>
{=if-empty:{=ini-get:/tmp/version.txt;url=}~~
<a href="{=ini-get:/tmp/version.txt;url=}" target="_blank">{=L:download=}</a><br/>
=}
</p>
</td>
</tr>
<tr><td><input type="button" onclick="check_updates()" value="{=L:check=}"/></td></tr>
</table>
</div>
</div>
</body>
</html>

View File

@@ -1,338 +0,0 @@
/* yWeb Live by yjogol
$Date$
$Revision$
*/
/*globals*/
var V2 = null;
var isUDP = false;
var IsTimeshift = true; //TEST
var IsLocked = false;
var IsMute = false;
var vlc_width = 384;
var vlc_height = 288;
var Window_delta_w = 0;
var Window_delta_h = 0;
var Mode = "tv";
var AudioChannel = 0;
var isSubs=false;
var g_intervall=null;
var current_channel = 0;
/*resize,init*/
function do_onload(){
if(Mode != "tv" && Mode != "radio")
Mode = "tv";
set_controls("disable");
if(isUDP && Mode == "tv")
change_button_img('udp',"udp_switch_off");
else if(Mode == "tv")
change_button_img('udp',"udp_switch_on");
window.setTimeout("do_init()",100);
}
function do_onresize(){
if((vlc_width+Window_delta_w != window.innerWidth) || (vlc_height+Window_delta_h != window.innerHeight)){
window.onresize=null;
do_resize_vlc(yClientWidth()-Window_delta_w,yClientHeight()-Window_delta_h);
window.onresize=do_onresize;
}
}
function do_resize_vlc(width, height){
vlc_width = width;
vlc_height = height;
V2.set_resolution(width, height);
}
function do_resize(){
var dd = id('resolution');
var sel = dd.selectedIndex;
var w = -1;
var h = -1;
if(sel != -1){
switch(sel.toString()) {
case "0": w=384; h=288; break;
case "1": w=768; h=576; break;
case "2": w=960; h=720; break;
case "3": w=1152; h=864; break;
}
}
if(w != -1)
window.resizeTo(w+Window_delta_w, h+Window_delta_h);
}
function do_init(){
live_switchto(Mode);
// vlc_width = 384;
// vlc_height = 288;
Window_delta_w = yClientWidth() - vlc_width;
Window_delta_h = yClientHeight() - vlc_height;
if(Mode == "tv")
window.onresize=do_onresize;
insert_vlc_control();
build_bouquet_list(-1);
set_controls("play");
// do_play();
change_channel_play();
// g_intervall = window.setInterval('i_interval()', 20000);
}
function i_interval(){
obj_update('bouquets_div', "<img src=\"/images/smallwait.gif\"/> "+Lgetting_bouquets);
window.setTimeout("i_interval2()",100);
}
function i_interval2(){
build_bouquet_list(-1);
}
function always_on_top() { window.focus();
window.setTimeout("always_on_top()",100);
}
function insert_vlc_control(){
if(Mode == "radio") {
var radio_html="<div style=\"width:"+vlc_width+"px;height:"+vlc_height+"px;text-align:center;\">"
+"<br/><br/><br/><br/><br/><br/><div id=\"vlc_radio\"></div><br/><h1>Radio</h1></div>";
obj_update('vlc_view',radio_html);
V2 = new CyVLC('vlc', 'vlc_radio', 1, 1);
} else
V2 = new CyVLC('vlc', 'vlc_view', vlc_width, vlc_height);
}
function insert_message_control(msg){
var wait_html="<div style=\"width:"+vlc_width+"px;height:"+vlc_height+"px;text-align:center;\">"
+"<br/><br/><br/><br/><br/><br/><img src=\"/images/wait.gif\"><br/>"+msg+"</div>";
obj_update('vlc_view',wait_html);
}
function change_button_img(id,img){
var imgstr = "<img src=\"/images/"+img+".png\" width=\"16\" height=\"16\">";
obj_update(id, imgstr);
}
/*controls*/
function set_controls(state){
var go=false;
var play=false;
var opt=false;
if(V2 && V2.have_options())
opt=true;
var plugin="";
if(V2) plugin=V2.plugin;
switch(state){
case "disable":
go=false;
play=false;
break;
case "play":
go=true;
play=true;
break;
case "stop":
go=true;
play=false;
break;
}
obj_enable('go', go);
obj_enable('epg', go);
obj_enable('PlayOrPause', go);
obj_enable('stop', go);
obj_enable('mute', play);
obj_enable('volumeup', play);
obj_enable('volumedown', play);
obj_enable('livelock', go);
if(LiveTyp!="popup"){
show_obj('rec',opt);
obj_enable('rec', play && opt);
show_obj('transcode',opt);
obj_enable('transcode', play && opt);
}
if(Mode == "tv"){
show_obj('udp',haveUDP);
obj_enable('udp', go);
obj_enable('fullscreen', play);
show_obj('snapshot',(plugin != "moz3"));
obj_enable('snapshot', play && (plugin != "moz3"));
}
}
/*vlc control*/
function do_play(){
var options = new Array();
if(Mode == "tv"){
if(isDeinterlace){
options.push(":vout-filter=deinterlace");
options.push(":deinterlace-mode=bob");
}
if(isUDP && Mode == "tv"){
options.push(":access-filter=timeshift");
}
else
if(cachetime > 0)
options.push(":http-caching="+cachetime);
if(AudioChannel != 0)
options.push(":audio-track="+AudioChannel);
}
do_play_state(0, options);
}
function start_udp_server(){
var pids = loadSyncURL("/control/yweb?video_stream_pids=0&no_commas=true");
var args = ClientAddr+" 31330 0 "+pids;
var _cmd = "udp_stream start "+args;
var __cmd = _cmd.replace(/ /g, "&");
loadXMLDoc("/control/exec?Y_Live&"+__cmd, dummy);
}
function do_stop(){
V2.stop();
while(V2.is_playing())
;
change_button_img('PlayOrPause',"play");
set_controls("stop");
}
function dummy()
{
}
// VCL does not work with prototype.js!
function do_play_bystring(_str){
do_play_state(1,[_str]);
}
function do_play_state(_state, _options){
change_button_img('PlayOrPause',"pause");
_options.push(":input-repeat=1");
// alert("options:"+_options);
V2.options = _options;
var mrl = "";
if(Mode == "tv" && isUDP)
mrl = "udp://@:31330";
else
if(current_channel)
mrl = "http://" + window.location.host + ":31339/id=" + current_channel;
else
mrl = loadSyncURL("/control/build_live_url");
V2.set_actual_mrl(mrl);
V2.play();
V2.next();
set_controls("play");
if(isDeinterlace && V2.plugin=="moz2"){
V2.vlc.video.deinterlace.enable("bob");
}
if(Mode == "tv" && isUDP)
window.setTimeout("start_udp_server()",1000);
}
function do_play_or_pause(){
if(V2.is_playing()) {
change_button_img('PlayOrPause',"play");
V2.pause();
set_controls("stop");
} else {
change_button_img('PlayOrPause',"pause");
V2.play();
set_controls("play");
if(isUDP)
window.setTimeout("start_udp_server()",1000);
}
}
/* bouquet & channel panel */
function change_bouquet(){
var dd = id('bouquets');
var bouquet = -1;
var channel = -1;
var sel = dd.selectedIndex;
if(sel != -1){
bouquet = dd[sel].value;
channel = 0;
}
obj_update('channels_div', "<img src=\"/images/smallwait.gif\"/> "+Lgetting_channels);
window.setTimeout("build_channel_list("+bouquet+", "+channel+")",2000);
}
function change_channel(){
isSubs=false;
var dd = id('channels');
var channel = -1;
var sel = dd.selectedIndex;
if(sel != -1){
channel = dd[sel].value;
current_channel = channel;
}
do_stop();
AudioChannel = 0;
window.setTimeout("change_channel_zapto(\""+channel+"\")",100);
}
function change_sub_channel(){
var dd = id('subs');
var channel = -1;
var sel = dd.selectedIndex;
if(sel != -1){
channel = dd[sel].value;
current_channel = channel;
}
do_stop();
AudioChannel = 0;
window.setTimeout("change_channel_zapto(\""+channel+"\")",100);
}
function change_channel_zapto(channel){
//dbox_zapto(channel);
window.setTimeout("change_channel_play()",500);
}
function build_subchannels(){
var subs = loadSyncURL("/control/zapto?getallsubchannels");
if (subs != "") {
var optlist="";
var list = subs.split("\n");
for(i=0;i<list.length;i++){
var sc=split_one(list[i], " ");
optlist+="<option value=\""+sc[0]+"\">"+sc[1]+"</option>\n";
}
optlist="<select id='subs' class='y_live_channels'>"+optlist+"</select>";
id('subs_div').innerHTML = optlist;
display_obj("subsRow", true);
isSubs=true;
}
else
display_obj("subsRow", false);
}
function change_channel_play(){
insert_vlc_control();
do_play();
if (V2.have_options() && Mode == "tv") {
build_audio_pid_list();
if(!isSubs)
build_subchannels();
}
}
/*other buttons*/
function do_show_version(){
alert("Version:"+V2.version_string+" Generation:"+V2.plugin+"\nlevel1:"+V2.version_level1+" 2:"+V2.version_level2
+" 3:"+V2.version_level3+" 4:"+V2.version_level4);
}
function do_lock_toggle(){
if( !IsLocked ) {
change_button_img('livelock',"liveunlock");
IsLocked = true;
live_lock();
} else {
change_button_img('livelock',"livelock");
IsLocked = false;
live_unlock();
}
}
function do_mute_toggle(){
change_button_img('mute', (IsMute)?"volumemute":"volumeunmute");
IsMute = !IsMute;
V2.toggle_mute();
}
function do_udp_toggle(){
change_button_img('udp', (isUDP)?"udp_switch_on":"udp_switch_off");
isUDP = !isUDP;
do_stop();
do_play();
}
function view_streaminfo(){
window.open("/fb/info.dbox2","streaminfo","width=400,height=400");
}
function doChangeAudioPid(){
var dd = id('audiopid');
AudioChannel = dd.selectedIndex;
do_stop();
// insert_message_control("... zapping ...");
window.setTimeout("change_channel_play()",100);
}
function build_audio_pid_list(){
var audio_pids_url = "/y/cgi?execute=func:get_audio_pids_as_dropdown%20channel="+current_channel+":audio="+AudioChannel+":";
var audio_pid_list = loadSyncURL(audio_pids_url);
audio_pid_list = "<select size=\"1\" class=\"y_live_audio_pids\" id=\"audiopid\" onChange=\"doChangeAudioPid()\">"
+ audio_pid_list
+ "</select>";
obj_update('audio_pid_list', audio_pid_list);
}

View File

@@ -1,173 +0,0 @@
{=var-set:must_management={=if-equal:{=func:get_request_data client_addr=}~{=ini-get:%(CONFIGDIR)/Y-Web.conf;management_ip=}~1~=}{=if-equal:{=func:get_request_data client_addr=}~{=ini-get:%(CONFIGDIR)/Y-Web.conf;management_ip2=}~1~=}=}
{=include-block:Y_Blocks.txt;head_no_charset=}
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript" src="/Y_VLC.js"></script>
<script type="text/javascript" src="/Y_Live.js"></script>
<script type="text/javascript">
//<![CDATA[
function build_bouquet_list(bouquet){
var used_bouquet = bouquet;
if(used_bouquet == -1)
used_bouquet = loadSyncURL("/y/cgi?execute=func:get_actual_bouquet_number");
var bouquet_dropdown_url = "/y/cgi?execute=func:get_bouquets_as_dropdown%20" + used_bouquet + "{=if-empty:{=var-get:must_management=}~~%20true=}";
var bouquet_dropdown = "<select size=\"1\" class=\"y_live_bouquets\" id=\"bouquets\" onchange=\"change_bouquet()\" title=\"{=L:live.select_bouquet=}\">";
bouquet_dropdown += loadSyncURL(bouquet_dropdown_url);
bouquet_dropdown += "<\/select>";
obj_update('bouquets_div', bouquet_dropdown);
build_channel_list(used_bouquet, -1);
}
function build_channel_list(bouquet, channel){
set_controls("disable");
var used_channel = channel;
if(used_channel == -1)
used_channel = loadSyncURL("/y/cgi?execute=func:get_actual_channel_id");
var channel_dropdown_url = "/y/cgi?execute=func:get_channels_as_dropdown%20" + bouquet;
channel_dropdown_url += "%20" + used_channel;
var channel_dropdown = "<select size=\"1\" class=\"y_live_channels\" id=\"channels\" title=\"{=L:live.select_channel=}\">";
channel_dropdown += loadSyncURL(channel_dropdown_url);
channel_dropdown += "</select>";
obj_update('channels_div', channel_dropdown);
set_controls("play");
}
function view_epg(){
var sel=document.x.channels.selectedIndex;
if(sel != -1){
channel = document.x.channels[sel].value;
{=if-equal:{=typ=}~live~
var f = parent.col2;
f.location.href = "Y_Dyn_Pages.yhtm?page=frame_live_epg&channel="+channel;
~
window.open("Y_Dyn_Pages.yhtm?page=frame_live_epg&channel="+channel, "epg");
=}
}
}
function view_epg_reload(){
build_bouquet_list(-1);
}
function view_expert_mode(){
parent.col2.location.href = "/Y_Live_Expert.yhtm?browser={=browser=}&mode={=mode=}&typ={=typ=}";
}
function view_record_mode(){
parent.col2.location.href = "/Y_Live_Record.yhtm?browser={=browser=}&mode={=mode=}&typ={=typ=}";
}
function view_settings_mode(){
parent.col2.location.href = "/Y_Settings_Live.yhtm?browser={=browser=}&mode={=mode=}&typ={=typ=}";
}
function view_transcode_mode(){
parent.col2.location.href = "/Y_Live_Transcode.yhtm?browser={=browser=}&mode={=mode=}&typ=transcode";
}
//]]>
</script>
</head>
<body>
{=var-set:wait_text={=L:live.get_stream_info=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div id="live_panel">
<form name="x" action="" method="get" style="margin:0;padding:0;">
<table class="y_live_table" cellspacing="0" cellpadding="0" style="margin:0">
<tr><td>
<div id="bouquets_div"><div class="y_live_channels" style="border:1px solid #555555;">
<img src="/images/smallwait.gif"/> {=L:live.getting_bouquets=}</div>
</div>
</td><td>
{=if-equal:{=typ=}~popup~
{=if-equal:{=mode=}~tv~
<select id="resolution" onchange="do_resize()" title="{=L:live.select_resolution=}">
<option value="1">384x288</option>
<option value="2">768x576</option>
<option value="2">960x720</option>
<option value="4">1152x864</option>
</select>
~&nbsp;=}=}
</td></tr>
<tr><td>
<div id="channels_div"><div class="y_live_bouquets" style="border:1px solid #555555;">
<img src="/images/smallwait.gif"/> {=L:live.getting_channels=}</div>
</div>
</td><td>
<button id="go" class="y_live_button" type="button" title="{=L:live.change_channel=}" onclick="change_channel()" disabled="disabled">
<img src="/images/play.png"/></button>
<button id="epg" class="y_live_button" type="button" title="{=L:live.view_epg=}" onclick="view_epg()" disabled="disabled">
<img src="/images/epg.png"/></button>
<button id="epg_reload" class="y_live_button" type="button" title="{=L:live.reload=}" onclick="view_epg_reload()">
<img src="/images/reload.png"/></button>
</td></tr>
<tr id="subsRow" style="display:none">
<td>
<div id="subs_div"><div class="y_live_channels" style="border:1px solid #555555;">
<img src="/images/smallwait.gif"/> {=L:live.getting_subchannels=}</div>
</div>
</td><td>
<button class="y_live_button" type="button" title="{=L:live.change_channel=}" onclick="change_sub_channel()">
<img src="/images/play.png"/></button>
</td>
</tr>
</table>
</form>
</div>
<div id="vlc_view">
</div>
<div id="live_controls">
<form name="v" action="" method="get" style="margin:0;padding:0;">
<button id="PlayOrPause" class="y_live_button" type="button" title="{=L:live.play_or_pause=}"
onclick="do_play_or_pause()"><img src="/images/pause.png"/></button>
<button id="stop" type="button" title="{=L:live.stop=}" onclick="do_stop()" class="y_live_button">
<img src="/images/stop.png"/></button>
<button id="mute" class="y_live_button" type="button" value="Mute" title="{=L:live.mute=}" onclick="do_mute_toggle()">
<img src="/images/volumemute.png"/></button>
<button id="volumedown" class="y_live_button" type="button" value="-" title="{=L:live.lower_volume=}" onclick="V2.set_volume_delta(-10);">
<img src="/images/volumedown.png"/></button>
<button id="volumeup" class="y_live_button" type="button" value="+" title="{=L:live.higher_volume=}" onclick="V2.set_volume_delta(+10);">
<img src="/images/volumeup.png"/></button>
{=if-equal:{=mode=}~tv~
<button id="fullscreen" class="y_live_button" type="button" value="F"
title="{=L:live.fullscreen=}" onclick="V2.toggle_fullscreen()">
<img src="/images/fullscreen.png"/></button>
=}
<button id="livelock" class="y_live_button" type="button" value="Lock" title="{=L:live.lock_unlock=}" name="lock" onclick="do_lock_toggle()">
<img src="/images/livelock.png"/></button>
{=if-equal:{=mode=}~tv~
<button class="y_live_button" style="visibility:hidden" type="button" value="set" title="{=L:live.toggle_udp=}" id="udp" onclick="do_udp_toggle()">
<img src="/images/udp_switch_on.png"/></button>
<button class="y_live_button" type="button" value="set" title="{=L:live.settings=}" id="settings" onclick="view_settings_mode()">
<img src="/images/properties.png"/></button>
<button class="y_live_button" type="button" value="S" title="{=L:live.snapshot=}" id="snapshot" onclick="V2.snapshot()" style="visibility:hidden">
<img src="/images/snapshot.png"/></button>
=}
{=if-equal:{=typ=}~popup~~
{=if-equal:{=typ=}~transcode~~
<button id="rec" class="y_live_button" type="button" value="Rec" title="{=L:live.record=}" name="record_mode" onclick="view_record_mode()" style="visibility:hidden">
<img src="/images/record.png"/></button>
=}
<button id="transcode" class="y_live_button" type="button" value="Transcode" title="{=L:live.transcode=}" onclick="view_transcode_mode()" style="visibility:hidden">
<img src="/images/transcode.png"/></button>
=}
<span id="audio_pid_list"></span>
</form>
</div>
<script type="text/javascript">
//<![CDATA[
haveUDP = ("{=find-exec:udpstreamts=}" != "");
isUDP = ("{=ini-get:%(CONFIGDIR)/Y-Web.conf;udp;false=}" == "true");
Mode = "{=mode=}";
LiveTyp = "{=typ=}";
ClientAddr = "{=func:get_request_data clientaddr=}";
insert_message_control("{=L:live.build_vlc=}");
isDeinterlace = ("{=ini-get:%(CONFIGDIR)/Y-Web.conf;deinterlace;false=}" == "true");
cachetime = {=ini-get:%(CONFIGDIR)/Y-Web.conf;http_caching;0=};
Lgetting_channels="{=L:live.getting_channels=}";
Lgetting_bouquets="{=L:live.getting_bouquets=}";
/* {=if-equal:{=typ=}~popup~
always_on_top();
=}
*/
do_onload();
//]]>
</script>
</body>
</html>

View File

@@ -1,45 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function init()
{
{=if-equal:{=typ=}~transcode~
window.setTimeout("setTranscode()",500);
=}
}
function setTranscode()
{
window.col2.location.href = "/Y_Live_Transcode.yhtm";
}
//]]>
</script>
</head>
<body>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Live_Timer-LiveView=}{=var-set:menu={=typ=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<table cellpadding="0" cellspacing="0" border="0">
<tr><td valign="top">
<iframe name="live" src="Y_Live.yhtm?mode={=mode=}&amp;typ={=typ=}" height="400" width="390" scrolling="no" align="left" marginheight="0" marginwidth="0" frameborder="0">
Ihr Browser unterst&uuml;tzt Inlineframes nicht oder zeigt sie in der derzeitigen Konfiguration nicht an.
</iframe>
</td>
<td>
<iframe name="col2" src="Y_blank.htm" height="400" width="350" scrolling="auto" marginheight="0" marginwidth="0" frameborder="0">
Ihr Browser unterst&uuml;tzt Inlineframes nicht oder zeigt sie in der derzeitigen Konfiguration nicht an.
</iframe>
</td>
</tr>
</table>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
init();
//]]>
</script>
</body>
</html>

View File

@@ -1,19 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
</head>
<body>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Live_Timer-Double_View=}{=var-set:menu=Live - DoubleView=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<iframe name="I1" src="Y_Live_View.yhtm" target="Hauptframe" width="400" height="360" scrolling="no">
Ihr Browser unterst&uuml;tzt Inlineframes nicht oder zeigt sie in der derzeitigen Konfiguration nicht an.
</iframe>
{=if-empty:{=ini-get:%(CONFIGDIR)/Y-Web.conf;slavebox=}~<div><font color="Red">Kein IP f<>r Slave Box angegeben!<br>Einstellen unter Settings->yWeb.</font></div>~
<iframe name="I2" src="http://{=ini-get:%(CONFIGDIR)/Y-Web.conf;slavebox=}/Y_Live_View.yhtm" width="400" height="360" scrolling="no">
Ihr Browser unterst&uuml;tzt Inlineframes nicht oder zeigt sie in der derzeitigen Konfiguration nicht an.
</iframe>
=}
</div>
</div>
</body>
</html>

View File

@@ -1,132 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
/*sLog*/
var sLog_body;
var sLog_line_number;
var epg_data;
var epg_data_index=0;
function sLog_init()
{
sLog_line_number = 0;
sLog_body=document.getElementById("slog_list");
}
function sLog_clear()
{
while(sLog_body.childNodes.length > 0){
aChild=sLog_body.firstChild;
sLog_body.removeChild(aChild);
}
sLog_line_number = 0;
}
function sLog_addRow(_body, _date, _rec, _zapit, _start, _end, _title)
{
sLog_line_number++;
var mycurrent_row = y_add_row_to_table(_body, ((sLog_line_number % 2) ==0)?"a":"b" );
y_add_html_cell_to_row(mycurrent_row, "rec", _rec);
y_add_html_cell_to_row(mycurrent_row, "zap", _zapit);
y_add_html_cell_to_row(mycurrent_row, "date", _date);
y_add_html_cell_to_row(mycurrent_row, "starttime", _start);
y_add_html_cell_to_row(mycurrent_row, "endtime", _end);
y_add_html_cell_to_row(mycurrent_row, "epgtitle", _title);
}
function set_timer(_channel_id, _start, _stop)
{
var rec = "/control/timer?action=new&type=5&alarm="+_start+"&stop="+_stop+"&announce="+_start+"&channel_id="+_channel_id+"&rs=1";
var res = loadSyncURL(rec);
alert("{=L:epg.set_timer=}");
}
function set_zapit(_channel_id, _start)
{
var rec = "/control/timer?action=new&type=3&alarm="+_start+"&channel_id="+_channel_id;
var res = loadSyncURL(rec);
alert("{=L:epg.zap_to=}");
}
function show_info(_index)
{
parent.epg_info.show_info(epg_data[_index][0], epg_data[_index][1], epg_data[_index][2]);
}
function check_logo()
{
{=if-empty:{=logoid=}~~
show_obj("logo",true);
=}
}
function show_epg() {
show_waitbox(true);
window.setTimeout("_show_epg()",100);
}
function _show_epg()
{
check_logo();
sLog_init();
sLog_clear();
epg_data = new Array();
epg_data_index=0;
var weekday = new Array(7);
weekday[0]= "{=L:date.su=}";
weekday[1] = "{=L:date.mo=}";
weekday[2] = "{=L:date.tu=}";
weekday[3] = "{=L:date.we=}";
weekday[4] = "{=L:date.th=}";
weekday[5] = "{=L:date.fr=}";
weekday[6] = "{=L:date.sa=}";
var now = new Date();
var __d = new Date();
var _starttime = Math.round(now/1000);
var epg_xml = loadSyncURLxml("/control/epg?xml=true&channelid={=channel=}&details=true");
if(epg_xml){
var prog_list = epg_xml.getElementsByTagName('prog');
for(i=0;i<prog_list.length;i++){
var prog = prog_list[i];
var _stop = getXMLNodeItemValue(prog, "stop_sec");
if(_stop > _starttime){
var _start_t = getXMLNodeItemValue(prog, "start_t");
var _date = getXMLNodeItemValue(prog, "date");
var _start = getXMLNodeItemValue(prog, "start_sec");
var _stop_t = getXMLNodeItemValue(prog, "stop_t");
var _desc = epg_de_qout(getXMLNodeItemValue(prog, "description"));
var _info1 = epg_de_qout(getXMLNodeItemValue(prog, "info1"));
var _info2 = epg_de_qout(getXMLNodeItemValue(prog, "info2"));
__d.setTime(_start*1000);
var _dow = weekday[__d.getDay()];
_date = _dow + ", " + _date;
var epg_obj= new Array(_desc, _info1, _info2, _start, _start_t, _stop.toString(), "{=channel=}");
epg_data.push(epg_obj);
var _rec = "<a title=\"record\" href=\"javascript:set_timer('{=channel=}',"+_start+","+_stop+");\"><img src=\"images/record.png\"/></a>";
var _zapit = "<a title=\"zapping\" href=\"javascript:set_zapit('{=channel=}',"+_start+");\"><img src=\"images/zap.png\"/></a>";
var _tit = "<span onmouseover=\"show_info('"+epg_data_index+"')\">"+_desc+"</span>";
sLog_addRow(sLog_body, _date, _rec, _zapit, _start_t, _stop_t, _tit);
epg_data_index++;
}
}
}
show_waitbox(false);
}
//]]>
</script>
</head>
<body onload="show_epg()" class="iframe">
{=var-set:wait_text={=L:epg.get_epg=}=}{=include-block:Y_Blocks.txt;snip_show_wait=}
<table id="epglist" class="y_invisible_table" cellpadding="4" cellspacing="0" width="100%">
<thead align="left">
<tr>
<th colspan="2"><img id="logo" src="{=func:get_logo_name {=channel=}=}" style="visibility:hidden; max-width: 50px;"/></th>
<th>{=L:date=}</th><th>{=L:from=}</th><th>{=L:to=}</th><th>{=L:program=}</th>
</tr>
</thead>
<tbody id="slog_list">
</tbody>
</table>
<br />
</body>
</html>

View File

@@ -1,21 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function show_info(_desc, _info1, _info2){
document.getElementById("description").innerHTML = _desc;
document.getElementById("info1").innerHTML = _info1;
document.getElementById("info2").innerHTML = _info2;
}
//]]>
</script>
</head>
<a href="javascript:window.history.back()"><u>{=L:back=}</u></a>
<body class="iframe">
<div class="y_epg_info">
<div id="description">&nbsp;</div>
<div id="info1">&nbsp;</div>
<div id="info2">{=L:epg.hover_for_details=}</div>
</div>
</body>
</html>

View File

@@ -1,86 +0,0 @@
{=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[
var live_window;
function go_live_popup(_url){
res_w=384;
res_h=288+120;
var par = "width="+res_w+",height="+res_h+",resizable=yes";
tv = window.open(_url,'tv',par);
parent.frames[1].location.href = "Y_Live_Msg.yhtm";
}
function go_live_popup_tv(){
live_window = go_live_popup("/Y_Live.yhtm?typ=popup&mode=tv");
}
function go_live_popup_radio(){
live_window = go_live_popup("/Y_Live.yhtm?typ=popup&mode=radio");
}
function epg_plus_popup() {
window.open("Y_EPG_Plus.yhtm","_blank","resizable=yes,scrollbars=yes");
}
function init(){
add_yExtensions('live', 'secmenu_live');
add_yExtensions('epg', 'secmenu_epg');
add_yExtensions('timer', 'secmenu_timer');
}
//]]>
</script>
</head>
{=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~=}=}
<body>
<div class="y_menu_sec_box">
<div class="y_menu_sec_box_head"><h2>{=L:live.heading=}</h2></div>
<div class="y_menu_sec_box_body">
<div class="y_menu_sec_section">{=L:live.live=}</div>
<div class="y_menu_sec">
<ul id="secmenu_live">
<li>
<a target="work" href="Y_LiveViewFull.yhtm?mode=tv&amp;typ=live">{=L:live.tv=}</a>
<a class="y_menu_popup_link" title="{=L:live.tv_popup_desc=}" href="javascript:go_live_popup_tv()"><img src="/images/popup.png"/></a>
</li>
<li>
<a target="work" href="Y_LiveViewFull.yhtm?mode=radio&amp;typ=live">{=L:live.radio=}</a>
<a class="y_menu_popup_link" title="{=L:live.radio_popup_desc=}" href="javascript:go_live_popup_radio()"><img src="/images/popup.png"/></a>
</li>
<!-- <li><a target="work" title="use LiveView with 2 boxes" href="Y_Live_DoubleView.yhtm">{=L:live.double_view=}</a></li> -->
</ul>
</div>
<div class="y_menu_sec_section">{=L:live.epg=}</div>
<div class="y_menu_sec">
<ul id="secmenu_epg">
<li>
<a target="work" href="Y_Boxcontrol_Bouquets.yhtm">{=L:live.epg=}</a>
</li>
<li>
<a target="work" href="Y_EPG_Plus.yhtm">{=L:live.epg_plus=}</a>
<a class="y_menu_popup_link" title="{=L:live.epg_plus_popup_desc=}" href="javascript:epg_plus_popup()"><img src="/images/popup.png"/></a>
</li>
</ul>
</div>
<div class="y_menu_sec_section">{=L:live.timer=}</div>
<div class="y_menu_sec">
<ul id="secmenu_timer">
<li>
<a target="work" href="Y_Timer_List.yhtm">{=L:live.timer=}</a>
</li>
<li>
<a target="work" href="Y_Tools_Timer_Sync.yhtm">{=L:live.timer_sync=}</a>
</li>
</ul>
</div>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
{=if-empty:{=start=}~~
go_live_popup_tv();
=}
init();
//]]>
</script>
</body>
</html>

View File

@@ -1,14 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
</head>
<body>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Live_Timer-LiveView=}{=var-set:menu={=L:live.tv_popup_desc=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
{=L:live.live_popup_msg=}<br/>
<a href="Javascript:live_unlock();"><u>{=L:live.unlock=}</u></a>
</div>
</div>
</body>
</html>

View File

@@ -1,314 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript" src="/prototype.js"></script>
<script type="text/javascript">
//<![CDATA[
/*0=normal, 1=record*/
var isRecord=false;
function setControls(state)
{
switch(state) {
case 1:
$('record_filename','tdisplay', 'transon').invoke('disable');
break;
default:
$('record_filename','tdisplay', 'transon').invoke('enable');
break;
}
}
/*0=custom, 1=off*/
function setControlsCustom(state)
{
switch(state){
case 1:
{=if-equal:{=mode=}~tv~
$('twidth','theight', 'vcodec', 'vb', 'scale').invoke('disable');
=}
$('acodec','ab', 'channels', 'tmux').invoke('disable');
break;
default:
{=if-equal:{=mode=}~tv~
$('twidth','theight', 'vcodec', 'vb', 'scale').invoke('enable');
=}
$('acodec','ab', 'channels', 'tmux').invoke('enable');
break;
}
}
function on_profile_change()
{
if($F('profile') == "custom")
setControlsCustom(0);
else
setControlsCustom(1);
}
function on_transon_change()
{
if($('transon').checked){
$('profile').enable();
on_profile_change();
}
else {
$('profile').disable();
setControlsCustom(1);
}
}
function doRecord()
{
var _live = parent.live;
if(!isRecord)
{
var transcode = "";
var stream = "";
if($('transon').checked)
{
switch($F('profile'))
{
case "custom":
transcode = "transcode{"+
{=if-equal:{=mode=}~tv~
"width=" +$F('twidth')+
",height=" +$F('theight')+
",vcodec=" +$F('vcodec')+
",vb=" +$F('vb')+
",scale=" +$F('scale')+
","+
=}
"acodec=" +$F('acodec')+
",ab=" +$F('ab')+
",channels=" +$F('channels')+
",deinterlace}:";
break;
case "ipod":
transcode = "transcode{width=320,height=240,vcodec=mp4v,vb=768,acodec=mp4a,ab=128}:";
break;
case "divx3":
transcode = "transcode{vcodec=DIV3,vb=1024,scale=1,acodec=mp3,ab=192,channels=2}:";
break;
case "mp3":
transcode = "transcode{acodec=mp3,ab=192}:";
break;
case "ipoda":
transcode = "transcode{acodec=mp4a,ab=192}:";
break;
}
}
switch($F('profile'))
{
case "mp3":
stream = "dst=std{"+
"access=file"+
",mux=raw"+
",url=\""+$F('record_filename')+"\""+
"}";
break;
case "mp4":
stream = "dst=std{"+
"access=file"+
",mux=mp4"+
",url=\""+$F('record_filename')+"\""+
"}";
break;
case "divx3":
stream = "dst=std{"+
"access=file"+
",mux=asf"+
",url=\""+$F('record_filename')+"\""+
"}";
break;
default:
stream = "dst=std{"+
"access=file"+
",mux="+$F('tmux')+
",url=\""+$F('record_filename')+"\""+
"}";
break;
}
if($('tdisplay').checked)
stream = stream+",dst=display";
var __vlc_cmd = ":sout=#"+transcode+"duplicate{"+stream+"}";
setControls(1);
_live.do_play_bystring(__vlc_cmd);
}
else
{
setControls(0);
_live.do_play();
}
isRecord=!isRecord;
$('record').update( (isRecord)? "{=L:live.rec.stop_record=}": "{=L:live.rec.record=}");
}
//]]>
</script>
</head>
<body>
<form id="v" class="y_form" action="" method="get">
<table cellspacing="0" width="100%">
<tr><td class="y_form_header" colspan="4">{=L:live.rec.record_mode=}</td></tr>
<tr>
<td>{=L:live.rec.filename=}:</td>
<td colspan="3"><input type="text" id="record_filename" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;vlc_record_path=}"/></td>
</tr>
<tr>
<td colspan="4">
<input type="checkbox" id="tdisplay" value="1" title="Display on while transcoding" checked="checked"/>{=L:live.rec.display_on=}&nbsp;
<input type="checkbox" id="transon" value="1" title="use transcoding" onclick="on_transon_change()"/>{=L:live.rec.transcoding_on=}
</td>
</tr>
<tr>
<td colspan="4">
<br/>
<button class="y_live_button" type="button" value="Record" title="record stream to file" onclick="doRecord()">
<img src="/images/record.png"/>&nbsp;<span id="record">{=L:live.rec.record=}</span></button>
</td>
</tr>
<tr><td class="y_form_header" colspan="4"><br/>{=L:live.rec.tanscode=}</td></tr>
<tr>
<td>{=L:live.rec.profile=}:</td>
<td colspan="3">
<select id="profile" class="y_live_button" onchange="on_profile_change()">
{=if-equal:{=mode=}~tv~
<option value="ipod" selected="selected">iPod Video</option>
<option value="divx3">DivX</option>
=}
<option value="custom">custom</option>
<option value="ipoda">iPod Audio</option>
<option value="mp3">mp3 Audio</option>
</select>
</td>
</tr>
{=if-equal:{=mode=}~tv~
<tr><td class="y_form_section"><br/>{=L:live.rec.video=}</td><td class="y_form_section" colspan="3">&nbsp;</td></tr>
<tr>
<td>{=L:live.rec.width=}:</td>
<td><input type="text" id="twidth" size="4" value="720" class="y_live_button"/></td>
<td>{=L:live.rec.height=}:</td>
<td><input type="text" id="theight" size="4" value="576" class="y_live_button"/></td>
</tr>
<tr>
<td>{=L:live.rec.codec=}:</td>
<td>
<select id="vcodec" class="y_live_button">
<option value="mp4v" selected="selected">mp4v</option>
<option value="mp1v">mp1v</option>
<option value="mp2v">mp2v</option>
<option value="DIV3">DIV3</option>
<option value="h264">h264</option>
<option value="H263">h263</option>
<option value="h264">h264</option>
<option value="WMV1">WMV1</option>
<option value="WMV1">WMV2</option>
</select>
</td>
<td>{=L:live.rec.bitrate=}:</td>
<td>
<select id="vb" class="y_live_button">
<option value="1024">1024</option>
<option value="786">786</option>
<option value="512">512</option>
<option value="384" selected="selected">384</option>
<option value="256">256</option>
<option value="128">128</option>
<option value="96">96</option>
<option value="64">64</option>
</select>
</td>
</tr>
<tr>
<td>{=L:live.rec.scale=}:</td>
<td>
<select id="scale" class="y_live_button">
<option value="0.25">0.25</option>
<option value="0.50">0.50</option>
<option value="0.75">0.75</option>
<option value="1.00" selected="selected">1.00</option>
<option value="1.25">1.25</option>
<option value="1.50">1.50</option>
<option value="1.75">1.75</option>
<option value="2.00">2.00</option>
</select>
</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
=}
<tr><td class="y_form_section">{=L:live.rec.audio=}</td><td class="y_form_section" colspan="3">&nbsp;</td></tr>
<tr>
<td>{=L:live.rec.codec=}:</td>
<td>
<select id="acodec" class="y_live_button">
<option value="mp4a" selected="selected">mp4a</option>
<option value="mp3">mp3</option>
<option value="mp2a">mp2a</option>
<option value="a52">a52</option>
<option value="vorb">vorb</option>
<option value="flac">flac</option>
<option value="fl32">fl32</option>
</select>
</td>
<td>{=L:live.rec.bitrate=}:</td>
<td>
<select id="ab" class="y_live_button">
<option value="192">192</option>
<option value="128">128</option>
<option value="96">96</option>
<option value="64">64</option>
<option value="32" selected="selected">32</option>
<option value="16">16</option>
</select>
</td>
</tr>
<tr>
<td>{=L:live.rec.channels=}:</td>
<td>
<select id="channels" class="y_live_button">
<option value="1">1</option>
<option value="2 selected="selected"">2</option>
<option value="6">6</option>
</select>
</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr><td class="y_form_section">Mux</td><td class="y_form_section" colspan="3">&nbsp;</td></tr>
<tr>
<td>Mux:</td>
<td>
<select id="tmux" class="y_live_button">
{=if-equal:{=mode=}~tv~
<option value="ts" selected="selected">ts</option>
<option value="ps">ps</option>
<option value="mp4">mp4</option>
<option value="mov">mov</option>
<option value="ogg">ogg</option>
<option value="asf">asf</option>
<option value="mpeg1">mpeg1</option>
<option value="wav">wav</option>
~
<option value="raw" selected>raw</option>
<option value="mp4">mp4</option>
<option value="ogg">ogg</option>
=}
</select>
</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</form>
<script type="text/javascript">
//<![CDATA[
on_transon_change();
//]]>
</script>
</body>
</html>

View File

@@ -1,178 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function doTranscode()
{
var _live = parent.live;
if(document.v.transcode.value == "Transcode")
{
var transcode = "transcode{"+
"width=" +document.v.twidth.value+
",height=" +document.v.theight.value+
",vcodec=" +document.v.vcodec.value+
",vb=" +document.v.vb.value+
",scale=" +document.v.scale.value+
",acodec=" +document.v.acodec.value+
",ab=" +document.v.ab.value+
",channels=" +document.v.channels.value+
"}:";
var stream = "dst=std{"+
"access="+document.v.access.value+
",mux="+document.v.tmux.value+
",url="+document.v.tip.value+
"}";
if(document.v.tdisplay.checked)
stream = stream+",dst=display";
var __vlc_cmd = ":sout=#"+transcode+"duplicate{"+stream+"}";
var options = new Array(__vlc_cmd,":input-repeat=1");
document.v.transcode.value = "Stop Transcode";
_live.do_play_state(1, options);
}
else
{
document.v.transcode.value = "Transcode";
_live.do_play();
}
}
//]]>
</script>
</head>
<body>
<form class="y_form" name="v" action="" method="get">
<table cellspacing="0">
<tr><td class="y_form_header" colspan="5">{=L:live.rec.trans_broadcast=}</td></tr>
<tr><td class="y_form_section"><br/>{=L:live.rec.video=}</td><td class="y_form_section" colspan="3">&nbsp;</td></tr>
<tr>
<td>{=L:live.rec.width=}:</td>
<td><input type="text" name="twidth" size="4" value="384" class="y_live_button"/></td>
<td>{=L:live.rec.height=}:</td>
<td><input type="text" name="theight" size="4" value="288" class="y_live_button"/></td>
</tr>
<tr>
<td>{=L:live.rec.codec=}:</td>
<td>
<select name="vcodec" class="y_live_button">
<option value="mp4v" selected="selected">mp4v</option>
<option value="mp1v">mp1v</option>
<option value="mp2v">mp2v</option>
<option value="DIV3">DIV3</option>
<option value="h264">h264</option>
<option value="H263">h263</option>
<option value="h264">h264</option>
<option value="WMV1">WMV1</option>
<option value="WMV1">WMV2</option>
</select>
</td>
<td>{=L:live.rec.bitrate=}:</td>
<td>
<select name="vb" class="y_live_button">
<option value="1024">1024</option>
<option value="786">786</option>
<option value="512">512</option>
<option value="384" selected="selected">384</option>
<option value="256">256</option>
<option value="128">128</option>
<option value="96">96</option>
<option value="64">64</option>
</select>
</td>
</tr>
<tr>
<td>{=L:live.rec.scale=}:</td>
<td>
<select name="scale" class="y_live_button">
<option value="0.25">0.25</option>
<option value="0.50">0.50</option>
<option value="0.75">0.75</option>
<option value="1.00" selected="selected">1.00</option>
<option value="1.25">1.25</option>
<option value="1.50">1.50</option>
<option value="1.75">1.75</option>
<option value="2.00">2.00</option>
</select>
</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr><td class="y_form_section"><br/>{=L:live.rec.audio=}</td><td class="y_form_section" colspan="3">&nbsp;</td></tr>
<tr>
<td>{=L:live.rec.codec=}:</td>
<td>
<select name="acodec" class="y_live_button">
<option value="mp4a" selected="selected">mp4a</option>
<option value="mp3">mp3</option>
<option value="mp2a">mp2a</option>
<option value="a52">a52</option>
<option value="vorb">vorb</option>
<option value="flac">flac</option>
<option value="fl32">fl32</option>
</select>
</td>
<td>{=L:live.rec.bitrate=}:</td>
<td>
<select name="ab" class="y_live_button">
<option value="192">192</option>
<option value="128">128</option>
<option value="96">96</option>
<option value="64">64</option>
<option value="32" selected="selected">32</option>
<option value="16">16</option>
</select>
</td>
</tr>
<tr>
<td>{=L:live.rec.channels=}:</td>
<td>
<select name="channels" class="y_live_button">
<option value="1">1</option>
<option value="2 selected="selected"">2</option>
<option value="6">6</option>
</select>
</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr><td class="y_form_section"><br/>{=L:live.rec.access=}</td><td class="y_form_section" colspan="3">&nbsp;</td></tr>
<tr>
<td>{=L:live.rec.type=}:</td>
<td>
<select name="access" class="y_live_button">
<option value="udp" selected="selected">udp</option>
<option value="http">http</option>
<option value="RTP">RTP</option>
</select>
</td>
<td>Mux:</td>
<td>
<select name="tmux" class="y_live_button">
<option value="ts" selected="selected">ts</option>
<option value="ps">ps</option>
<option value="mp4">mp4</option>
<option value="mov">mov</option>
<option value="ogg">ogg</option>
<option value="asf">asf</option>
<option value="mpeg1">mpeg1</option>
<option value="wav">wav</option>
</select>
</td>
</tr>
<tr>
<td>{=L:live.rec.ip_port=}:</td>
<td colspan="3">
<input type="text" name="tip" size="18" value="localhost:1234" class="y_live_button"/>
</td>
</tr>
<tr>
<td colspan="3">
<br/>
<input type="checkbox" name="tdisplay" value="1" title="Display on while transcoding" checked="checked"/>{=L:live.rec.display_on=}
&nbsp;<button class="y_live_button" type="button" value="transcode" title="transcode stream" name="transcode" onclick="doTranscode()"><img src="/images/transcode.png"/>&nbsp;Transcode</button>
</td>
</tr>
</table>
</form>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@@ -1,137 +0,0 @@
{=global-var-set:boxtype=coolstream=}
{=global-var-set:alpha=true=}
{=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[
/*Indicator*/
var g_i_active = false;
var g_i_counter = 0;
var g_i_rec_state = new Array("&nbsp;&nbsp;&nbsp;REC&nbsp;&nbsp;&nbsp;", "&nbsp;&nbsp;(REC)&nbsp;&nbsp;", " ((REC)) ", "(((REC)))");
var g_i_recording = false;
function i_state_check(){
var res = "";
//var res = loadSyncURL("/control/setmode?status");
g_i_recording = (res.search(/on/)!=-1);
}
function i_state_view(){
if(g_i_recording)
document.getElementById('state').innerHTML = g_i_rec_state[g_i_active %4];
else
document.getElementById('state').innerHTML = "";
}
function i_clock(){
now = new Date();
var hour = now.getHours();
var min = now.getMinutes();
if(hour < 10)
hour = "0" + hour;
if(min < 10)
min = "0" + min;
document.getElementById('clock').innerHTML = hour + ":" + min;
}
function i_interval(){
if(g_i_active<12)
g_i_active++;
else{
g_i_active=0;
i_clock();
i_state_check();
}
i_state_view();
}
function i_start(){
g_i_counter = 0;
i_clock();
g_i_active = window.setInterval('i_interval()', 1000);
add_yExtensions('main', 'menu_prim');
}
function i_stop(){
window.clearInterval(g_i_active);
}
/* frame navigation */
function nav_prim(_prim){
top.top_main.base.location.href="Y_Dyn_Pages.yhtm?page=frame_"+_prim;
}
function nav_work(_work){
top.top_main.base.work.location.href=_work;
}
var g_work="";
function _nav_work(){
top.top_main.base.work.location.href=g_work;
}
function nav(_prim, _work){
g_work=_work;
nav_prim(_prim);
window.setTimeout("_nav_work()",300);
}
function vlc() {
var vlc_url = loadSyncURL("/control/build_live_url?vlc_link=true");
window.open("/tmp/vlc.m3u?"+Math.random(),"_blank");
}
//]]>
</script>
<style>
#prim{
background: url(/images/tux-yweb.png) no-repeat left top;
height:38px;
}
</style>
</head>
{=var-set:alt_httpd={=ini-get:%(CONFIGDIR)/nhttpd.conf;WebsiteMain.override_directory;%(PUBLIC_HTTPDDIR)=}=}
{=var-set:vf={=if-file-exists:{=var-get:alt_httpd=}/Y_Version.txt~{=var-get:alt_httpd=}/Y_Version.txt~Y_Version.txt=}=}
<body>
<div class="y_menu_prim_box">
<div class="y_menu_prim_box_head"><div class="y_menu_prim_box_head_h2"></div></div>
<div class="y_menu_prim_box_body">
<table border="0" width="100%">
<tr>
<td width="150" id="prim">
<span style="font-size: 8pt;position:relative;left:45px;top:10px;">v{=ini-get:{=var-get:vf=};version=}</span>
</td>
<td>
<ul id="menu_prim" class="y_menu_prim">
<li><a target="base" href="Y_Dyn_Pages.yhtm?page=frame_boxcontrol"
title="{=L:main.boxcontrol_desc=}">{=L:main.boxcontrol=}</a></li>
<li><a target="base" href="Y_Dyn_Pages.yhtm?page=frame_live"
title="{=L:main.live_desc=}">{=L:main.live=}</a></li>
<li><a target="base" href="Y_Dyn_Pages.yhtm?page=frame_tools"
title="{=L:main.tools_desc=}">{=L:main.tools=}</a></li>
<li><a target="base" href="Y_Dyn_Pages.yhtm?page=frame_settings"
title="{=L:main.settings_desc=}">{=L:main.settings=}</a></li>
<!-- unused
<li><a target="base" href="Y_Dyn_Pages.yhtm?page=frame_ext"
title="{=L:main.extensions_desc=}">{=L:main.extensions=}</a></li>
-->
<li><a target="base" href="Y_Dyn_Pages.yhtm?page=frame_info"
title="{=L:main.info_desc=}">{=L:main.info=}</a></li>
</ul>
</td>
<td>
<span class="control_icon">
<a target="base" href="Y_Dyn_Pages.yhtm?page=frame_live_directtv" title={=L:main.live_tv_desc=}><img src="/images/live.png"></a>
<a target="base" href="Y_Dyn_Pages.yhtm?page=frame_live&dostart=live_tv_popup" title="{=L:main.live_tv_popup_desc=}"><img src="/images/live_popup.png"></a>
<a target="base" href="Y_Tools_Screenshot.yhtm?osd=1" title="{=L:main.remote_full_desc=}"><img src="/images/fb.png"></a>
<a href="javascript:vlc()" title="{=L:main.stream_to_vlc_client_desc=}"><img src="/images/vlc.png"></a>
</span>
</td>
<td align="right">
<span id="state" style="color : red;font-family: Courier New, Courier, monospace;">&nbsp;</span>
<span id="box_name" {=if-empty:{=ini-get:%(CONFIGDIR)/Y-Web.conf;yweb_box_color=}~~style="color : #{=ini-get:%(CONFIGDIR)/Y-Web.conf;yweb_box_color=};"=}>
{=ini-get:%(CONFIGDIR)/Y-Web.conf;yweb_box_name=}</span>
<span id="clock">00:00</span>
</td>
</tr>
</table>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
i_start();
//]]>
</script>
</body>
</html>

View File

@@ -1,14 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript">
//<![CDATA[
function do_onload()
{
top.location.href="/";
}
//]]>
</script>
</head>
<body onload="do_onload()">
refreshing...
</body>
</html>

View File

@@ -1,72 +0,0 @@
{=var-set:cancache=yPConf=}
{=include-block:Y_Blocks.txt;management_check_top=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_submit()
{
if(document.f.filename.value != "")
{
show_waitbox(true);
document.f.su.disabled=true;
window.setTimeout("document.f.submit()",1000);
document.f.su.disabled=false;
}
}
function do_backup()
{
show_waitbox(true);
obj_disable("btBackup", true);
window.setTimeout("do_backup2()",500);
}
function do_backup2()
{
var _url = loadSyncURL("/control/exec?Y_Tools&settings_backup_restore&backup");
var _down = document.getElementById("down");
_down.href = _url;
show_obj("down_box", true);
show_waitbox(false);
obj_disable("btBackup", false);
}
//]]>
</script>
</head>
<body>
{=var-set:wait_text=Settings=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Settings-Backup_Restore=}{=var-set:menu={=L:set.menue.backup_restore=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<p><div style="border: 1px solid #cccccc; margin-top:20px; padding: 10px;">
<img src="/images/cross.png">
<span><font size="2" color="Red"><b>{=L:attention=}</b></font> {=L:set.settings.warning=}</span>
</div></p>
<table class="y_invisible_table" cellspacing="0" width="100%">
<tr><td class="y_form_header">{=L:set.settings.backup=}</td></tr>
<tr>
<td>
<input id="btBackup" type="button" value ="{=L:set.settings.backup=}" title="{=L:set.settings.backup_desc=}" onclick="do_backup()"/>
<div id="down_box" style="visibility: hidden;">
<br/><a id="down" href="" type="application/octet-stream"><u>Download</u></a>
</div>
</td>
</tr>
<tr><td class="y_form_header">{=L:set.settings.restore=}</td></tr>
<tr>
<td>
<form name="f" method="post" enctype="multipart/form-data" action="/control/exec?Y_Tools&amp;settings_backup_restore&amp;restore">
tar-File:&nbsp;<input type="file" name="filename" size="70"/>&nbsp;<br/>
<input type="button" name="su" value="{=L:set.settings.restore=}" title="{=L:set.settings.restore_desc=}" onclick="do_submit()"/>
<br/><br/>
</form>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}

View File

@@ -1,83 +0,0 @@
{=include-block:Y_Blocks.txt;management_check_top=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_refresh_liveview()
{
parent.live.location.reload();
}
//]]>
</script>
</head>
<body>
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<form class="y_form" name="f" action="/y/cgi">
<table border="0" cellspacing="0">
<tr><td class="y_form_header" colspan="2"><br/>{=L:live.set.vlc_settings=}</td></tr>
<tr>
<td>{=L:live.set.deinterlace=}</td>
<td>
<input type="radio" name="deinterlace" value="false"/>{=L:off=}&nbsp;
<input type="radio" name="deinterlace" value="true"/>{=L:on=}
</td>
</tr>
<tr>
<td>{=L:live.set.http_caching=}</td>
<td><input type="text" name="http_caching" size="5" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;http_caching;1000=}"/></td>
</tr>
<tr>
<td>{=L:live.set.udp_defaul=}</td>
<td>
<input type="radio" name="udp" value="false"/>{=L:off=}&nbsp;
<input type="radio" name="udp" value="true"/>{=L:on=}
</td>
</tr>
<tr>
<td>{=L:live.set.slavebox_ip=}</td>
<td><input type="text" name="slavebox" size="15" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;slavebox=}" title="{=L:live.set.enter_ip=}"/></td>
</tr>
<tr>
<td>{=L:live.set.vlc_rec_dir=}</td>
<td><input type="text" name="vlc_record_path" size="17" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;vlc_record_path=}"/></td>
</tr>
<!--- <tr>
<td>VLC Aufnahmetyp</td>
<td><input type="text" name="vlc_record_mux_type" size="17" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;vlc_record_mux_type=}" title="VLC record mux type"/></td>
</tr>
-->
</table>
<br/>
<input type="hidden" name="tmpl" value="Y_Settings_Live.yhtm"/>
<input type="hidden" name="execute" value="include-block:Y_Blocks.txt;Live_save_settings;nix"/>
<button type="button" ytype="save" title="{=L:save_values_desc=}" onclick="do_submit()">{=L:save=}</button>
<button type="button" ytype="refresh" onclick="do_refresh_liveview()">{=L:live.set.refresh_liveview=}</button>
</form>
<script type="text/javascript">
//<![CDATA[
function form_init()
{
val = "{=ini-get:%(CONFIGDIR)/Y-Web.conf;deinterlace;false=}";
if(val == "true")
document.f.deinterlace[1].checked = true;
else
document.f.deinterlace[0].checked = true;
val = "{=ini-get:%(CONFIGDIR)/Y-Web.conf;udp;false=}";
if(val == "true")
document.f.udp[1].checked = true;
else
document.f.udp[0].checked = true;
}
function do_submit()
{
show_waitbox(true);
document.f.submit();
}
form_init();
//]]>
</script>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}

View File

@@ -1,137 +0,0 @@
{=var-set:cancache=yPConf=}
{=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">
function init(){
add_yExtensions('settings_general', 'secmenu_general');
add_yExtensions('settings_neutrino', 'secmenu_neutrino');
add_yExtensions('settings_plugins', 'secmenu_plugins');
}
</script>
</head>
<body onload="init()">
{=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~=}=}
<div class="y_menu_sec_box">
<div class="y_menu_sec_box_head"><h2>{=L:main.settings=}</h2></div>
<div class="y_menu_sec_box_body">
<div class="y_menu_sec_section">{=L:general=}</div>
<div class="y_menu_sec">
<ul id="secmenu_general">
<li>
{=var-set:m_link_href=Y_Settings_yWeb.yhtm=}
{=var-set:m_link_text=yWeb=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
<li>
{=var-set:m_link_href=Y_Settings_nhttpd.yhtm=}
{=var-set:m_link_text={=L:set.menue.webserver=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
<li>
{=var-set:m_link_href=Y_Settings_zapit.yhtm=}
{=var-set:m_link_text={=L:set.menue.zapit=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
<li>
{=var-set:m_link_href=Y_Settings_Backup.yhtm=}
{=var-set:m_link_text={=L:set.menue.backup_restore=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
<li>
{=var-set:m_link_href=Y_Settings_Timer.yhtm=}
{=var-set:m_link_text={=L:set.menue.timer_settings=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
</ul>
</div>
<div class="y_menu_sec_section">Neutrino</div>
<div class="y_menu_sec">
<ul id="secmenu_neutrino">
<li>
{=var-set:m_link_href=Y_Boxcontrol_Bouquet_Editor_Main.yhtm=}
{=var-set:m_link_text={=L:set.menue.bouquet_editor=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
<li>
{=var-set:m_link_href=Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_parental=}
{=var-set:m_link_text={=L:set.menue.parental=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
<li>
{=var-set:m_link_href=Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_epg=}
{=var-set:m_link_text={=L:set.menue.epg=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
<li>
{=var-set:m_link_href=Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_record=}
{=var-set:m_link_text={=L:set.menue.recording=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
<li>
{=var-set:m_link_href=Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_movieplayer=}
{=var-set:m_link_text={=L:set.menue.movieplayer=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
<li>
{=var-set:m_link_href=Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_audioplayer=}
{=var-set:m_link_text={=L:set.menue.audio_player=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
<li>
{=var-set:m_link_href=Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_pictureviewer=}
{=var-set:m_link_text={=L:set.menue.pictureviewer=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<li>
{=var-set:m_link_href=Y_Settings_video_audio.yhtm=}
{=var-set:m_link_text={=L:set.menue.video_audio=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
<li>
{=var-set:m_link_href=Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_direct_recording=}
{=var-set:m_link_text={=L:set.menue.direct_recording=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
<li>
{=var-set:m_link_href=Y_Settings_lcd.yhtm=}
{=var-set:m_link_text={=L:set.menue.lcd_display=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
<li>
{=var-set:m_link_href=Y_Settings_buttons.yhtm=}
{=var-set:m_link_text={=L:set.menue.key_settings=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
<li>
{=var-set:m_link_href=Y_Settings_neutrino_forms.yhtm?form=neutrino_form-data_diverse=}
{=var-set:m_link_text={=L:set.menue.others=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
<li>
{=var-set:m_link_href=Y_Settings_personalize.yhtm=}
{=var-set:m_link_text={=L:set.menue.peronalization=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
~=}
</ul>
</div>
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<div class="y_menu_sec_section">{=L:plugins=}</div>
<div class="y_menu_sec">
<ul id="secmenu_plugins">
<li>
{=var-set:m_link_href=Y_Settings_VNC.yhtm=}
{=var-set:m_link_text=VNC=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
</ul>
</div>
~=}
</div>
</div>
</body>
</html>

View File

@@ -1,65 +0,0 @@
{=include-block:Y_Blocks.txt;management_check_top=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_submit() {
show_waitbox(true);
// var t = document.f.klack_url.value.replace(/&/gi,";");
// document.f.klack_url.value = t;
document.f.submit();
}
//]]>
</script>
</head>
<body>
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Settings-Timer_Settings=}{=var-set:menu={=L:set.timer.header=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form name="f" class="y_form" accept-charset="UTF-8" action="/y/cgi?execute=include-block:Y_Blocks.txt;timer_save_settings;nix" method="POST">
<table border="0" width="100%">
<tr>
<td colspan="2" class="y_form_header">tvinfo.de</td>
</tr>
<tr>
<td>{=L:set.timer.username=}</td>
<td><input type="text" name="tvinfo_username" size="15" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;tvinfo_username=}"/></td>
</tr>
<tr>
<td>{=L:set.timer.password=}</td>
<td><input type="password" name="tvinfo_password" size="15" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;tvinfo_password=}"/></td>
</tr>
<!--
<tr>
<td colspan="2" class="y_form_header">klack.de (V2)</td>
</tr>
<tr>
<td>{=L:set.timer.klack.url=}</td>
<td><input type="text" name="klack_url" size="60" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;klack_url=}"/>
<br/>{=L:set.timer.klack.url_desc=}</td>
</tr>
<tr>
<td>{=L:set.timer.klack.security_code=}</td>
<td><input type="password" name="klack_securitycode" size="15" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;klack_securitycode=}" title="{=L:set.timer.klack.security_code_desc=}"/></td>
</tr>
// -->
<tr>
<td colspan="2" class="y_form_header">{=L:set.timer.channel_name_replacelist=}</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><textarea name="channels" cols="60" rows="10">{=if-file-exists:%(CONFIGDIR)/channels.txt~{=include:%(CONFIGDIR)/channels.txt=}~{=if-file-exists:%(PUBLIC_HTTPDDIR)/channels.txt~{=include:%(PUBLIC_HTTPDDIR)/channels.txt=}~{=include:%(PRIVATE_HTTPDDIR)/channels.txt=}=}=}</textarea></td>
</tr>
</table>
<br/>
<input type="hidden" name="tmpl" value="Y_Settings_Timer.yhtm"/>
<button type="button" ytype="save" title="submit and save values" onclick="do_submit()">{=L:save=}</button>
</form>
</div>
</div>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}

View File

@@ -1,58 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function form_init()
{
var val = {=ini-get:%(CONFIGDIR)/vnc.conf;scale;1=};
document.f.scale[val-1].selected = true;
}
function do_submit()
{
show_waitbox(true);
document.f.submit();
}
//]]>
</script>
</head>
<body onload="form_init()">
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Settings-VNC=}{=var-set:menu=VNC=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form name="f" action="">
<table border="0">
<tr>
<td>Server</td>
<td><input type="text" name="server" size="20" value="{=ini-get:%(CONFIGDIR)/vnc.conf;server=}" title="enter IP (xxx.xxx.xxx.xxx)"/></td>
</tr>
<tr>
<td>Port</td>
<td><input type="text" name="port" size="5" value="{=ini-get:%(CONFIGDIR)/vnc.conf;port=}"/></td>
</tr>
<tr>
<td>Passwort</td>
<td><input type="password" name="password" size="20" value="{=ini-get:%(CONFIGDIR)/vnc.conf;passwd=}"/></td>
</tr>
<tr>
<td>Skalierung</td>
<td>
<select name="scale" title="enter scale for Screen">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</td>
</tr>
</table>
<br/>
<input type="hidden" name="tmpl" value="Y_Settings_nhttpd.yhtm"/>
<input type="hidden" name="execute" value="include-block:Y_Blocks.txt;vnc_save_settings;nix"/>
<button type="button" ytype="save" title="submit and save values" onclick="do_submit()">Speichern</button>
</form>
</div>
</div>
</body>
</html>

View File

@@ -1,182 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function automount_edit()
{
var mstr = loadSyncURL("/control/exec?Y_Tools&automount_getline&{=if-file-exists:/var/etc/auto.net~/var/etc/auto.net~/etc/auto.net=}&{=R1=}");
mstr = mstr.replace(/\t/gi," ");
mstr = mstr.replace(/[ ]+/gi," ");
var _mount = mstr.split(" ");
document.f.mountname.value = _mount[0];
var _ops_right = split_right(_mount[1],"=");
var _ops_list = _ops_right.split(",");
var fstype = _ops_list[0];
switch(fstype)
{
case "nfs":
obj_set_radio_value("type", "nfs");
document.f.opt1.value = split_right(_ops_right, ",");
var share_list = _mount[2].split(":");
document.f.ip.value = share_list[0];
document.f.dir.value = share_list[1];
break;
case "cifs":
obj_set_radio_value("type", "cifs");
var _options = "";
for(i=1;i < _ops_list.length;i++)
{
var _sub_ops = _ops_list[i].split("=");
if(_sub_ops.length > 1)
switch (_sub_ops[0])
{
case "user":
document.f.username.value = _sub_ops[1];
break;
case "password":
document.f.password.value = _sub_ops[1];
break;
}
else
{
if(_options != "")
_options += ",";
_options += _ops_list[i];
}
}
document.f.opt1.value = _options;
var Ausdruck = /\/\/(.*)\/(.*).*/;
Ausdruck.exec(_mount[2]);
document.f.ip.value = RegExp.$1;
document.f.dir.value = RegExp.$2;
break;
default:
alert("not implemented yet");
break;
}
}
function form_init()
{
obj_set_radio_value("type", "nfs");
{=if-equal:{=cmd=}~edit~
automount_edit();
=}
change_type();
}
function do_save()
{
show_waitbox(true);
window.setTimeout("do_save2()",10);
}
function do_save2()
{
var mountname = document.f.mountname.value;
mountname = mountname.replace(/#/gi,"---");
var fstype = obj_get_radio_value("type")
var mstr = mountname + "%20";
if(fstype == "nfs")
{
mstr += "-fstype=nfs";
mstr += ((document.f.opt1.value!="")?","+document.f.opt1.value:",ro,nolock");
var dir = document.f.dir.value;
if(dir.indexOf("/") != 0)
dir = "/"+dir;
mstr += "%20" + document.f.ip.value + ":" + dir;
}
else if(fstype == "cifs")
{
mstr += "-fstype=cifs";
if(document.f.opt1.value != "")
mstr += ((mstr!="")?",":",ro,soft")+document.f.opt1.value;
if(document.f.username.value != "")
mstr += ((mstr!="")?",":"")+"user="+document.f.username.value;
if(document.f.password.value != "")
mstr += ((mstr!="")?",":"")+"password="+document.f.password.value;
var dir = document.f.dir.value;
if(dir.indexOf("/") == 0)
dir = dir.substr(1);
mstr += ((mstr!="")?",":"")+"unc="+"//"+document.f.ip.value+"/"+dir;
mstr += "%20//"+document.f.ip.value+"/"+dir;
}
show_waitbox(false);
mstr = mstr.replace(/=/gi,",,");
var _url ="/control/exec?Y_Tools&automount_setline&/var/etc/auto.net&"+mountname+"&"+mstr;
var res = loadSyncURL(_url);
window.document.location.href="/Y_Settings_automount_liste.yhtm";
}
function change_type()
{
var fstype = obj_get_radio_value("type")
if(fstype == "nfs")
{
show_obj("vusername",false);
show_obj("vpassword",false);
}
else
{
show_obj("vusername",true);
show_obj("vpassword",true);
}
}
//]]>
</script>
</head>
<body onLoad="form_init()">
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head">
<div class="work_box_head_h2">{=var-set:help_url=Help-Tools-AutoMount=}{=var-set:menu=AutoMount=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form name="f" action="/y/cgi">
<input type="hidden" name="nr" value="{=R1=}"/>
<table border="0" class="y_form_table">
<tr>
<td>Mountname</td>
<td><input type="text" name="mountname" size="20" value="" {=if-equal:{=cmd=}~add~~disabled="disabled"=}/></td>
</tr>
<tr>
<td>Typ</td>
<td>
<input type="radio" name="type" value="nfs" onclick="change_type()"/>NFS&nbsp;
<input type="radio" name="type" value="cifs" onclick="change_type()"/>CIFS&nbsp;
<!-- <input type="radio" name="type" value="2" onchange="change_type()"/>FTPFS-->
</td>
</tr>
<tr>
<td>IP</td>
<td><input type="text" name="ip" size="20" value=""/></td>
</tr>
<tr>
<td>Verzeichnis</td>
<td><input type="text" name="dir" size="30" value="" title="remote directory"/></td>
</tr>
<tr>
<td>Optionen</td>
<td><input type="text" name="opt1" size="30" value="" title="mount options 1"/></td>
</tr>
<tr id="vusername" style="visibility:hidden">
<td>Benutzername</td>
<td><input type="text" name="username" size="30" value="" title="username"/></td>
</tr>
<tr id="vpassword" style="visibility:hidden">
<td>Passwort</td>
<td><input type="password" name="password" size="30" value="" title="password"/></td>
</tr>
</table>
<br/>
<button type="button" ytype="save" title="submit and save values" onClick="do_save()">Speichern</button>
<button type="button" ytype="cancel" title="cancel" name="abort" onClick='window.document.location.href="/Y_Settings_automount_liste.yhtm"'>Abbrechen</button>
</form>
</div>
</div>
</body>
</html>

View File

@@ -1,56 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_submit()
{
show_waitbox(true);
document.f.submit();
}
function do_edit()
{
document.f.cmd.value = "edit";
do_submit();
}
function do_add()
{
document.f.cmd.value = "add";
do_submit();
}
function do_delete()
{
if(confirm("Mount wirklich loeschen?") == true)
{
var mountname = obj_get_radio_value("R1");
var _url ="/control/exec?Y_Tools&automount_setline&{=if-file-exists:/var/etc/auto.net~/var/etc/auto.net~/etc/auto.net=}&"+mountname+"&";
var res = loadSyncURL(_url);
alert("geloescht!");
location.reload();
}
}
//]]>
</script>
</head>
<body>
{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head">
<div class="work_box_head_h2">{=var-set:help_url=Help-Tools-AutoMount=}{=var-set:menu=AutoMount=}{=include-block:Y_Blocks.txt;work_menu=}</div>
</div>
<div class="work_box_body">
<form action="/y/cgi" name="f" id="f">
{=script:Y_Tools automount_list {=if-file-exists:/var/etc/auto.net~/var/etc/auto.net~/etc/auto.net=}=}
<br/>
<input type="hidden" name="tmpl" value="Y_Settings_automount.yhtm"/>
<input type="hidden" name="execute" value=""/>
<input type="hidden" name="cmd" value=""/>
<button type="button" ytype="edit" title="edit mount settings" onclick="do_edit()">&auml;ndern</button>
<button type="button" ytype="add" title="add new mount" onclick="do_add()">hinzuf&uuml;gen</button>
<button type="button" ytype="delete" title="delete mount" onclick="do_delete()">l&ouml;schen</button>
</form>
</div>
</div>
{=include-block:Y_neutrino_Blocks.txt;neutrino_form_helpbox=}
</body>
</html>

View File

@@ -1,341 +0,0 @@
{=include-block:Y_Blocks.txt;management_check_top=}
{=include-block:Y_Blocks.txt;head=}
<style type="text/css">
/*<![CDATA[*/
.alink {
text-decoration: underline;
}
input[type="text"],select {
font-weight: bold;
background-color: #FF9;
width: 145px;
}
.butnokey {
visibility: hidden;
vertical-align: middle;
font-size: 9px;
}
/*]]>*/
</style>
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_init()
{
var val = "";
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;bouquetlist_mode;0~open=}";
document.f.bouquetlist_mode.selectedIndex = val;
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;key_bouquet_down;105~cache=}";
document.f.key_bouquet_down.value = itoKey(val);
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;key_bouquet_up;106~cache=}";
document.f.key_bouquet_up.value = itoKey(val);
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;key_channelList_addrecord;398~cache=}";
document.f.key_channelList_addrecord.value = itoKey(val);
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;key_channelList_addremind;400~cache=}";
document.f.key_channelList_addremind.value = itoKey(val);
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;key_channelList_cancel;102~cache=}";
document.f.key_channelList_cancel.value = itoKey(val);
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;key_channelList_pagedown;115~cache=}";
document.f.key_channelList_pagedown.value = itoKey(val);
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;key_channelList_pageup;114~cache=}";
document.f.key_channelList_pageup.value = itoKey(val);
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;key_channelList_reload;141~cache=}";
document.f.key_channelList_reload.value = itoKey(val);
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;key_channelList_search;399~cache=}";
document.f.key_channelList_search.value = itoKey(val);
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;key_channelList_sort;401~cache=}";
document.f.key_channelList_sort.value = itoKey(val);
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;key_lastchannel;11~cache=}";
document.f.key_lastchannel.value = itoKey(val);
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;key_quickzap_down;108~cache=}";
document.f.key_quickzap_down.value = itoKey(val);
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;key_quickzap_up;103~cache=}";
document.f.key_quickzap_up.value = itoKey(val);
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;key_subchannel_down;105~cache=}";
document.f.key_subchannel_down.value = itoKey(val);
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;key_subchannel_toggle;11~cache=}";
document.f.key_subchannel_toggle.value = itoKey(val);
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;key_subchannel_up;106~cache=}";
document.f.key_subchannel_up.value = itoKey(val);
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;key_tvradio_mode;-2~cache=}";
document.f.key_tvradio_mode.value = itoKey(val);
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;key_zaphistory;102~cache=}";
document.f.key_zaphistory.value = itoKey(val);
}
function rcsim(_key)
{
var radioLength = document.f.but.length;
for(var i=0; i<radioLength; i++)
if(document.f.but[i].checked) {
document.getElementById('id'+(100+i)).value = _key;
break;
}
}
function setFocus()
{
hideAll();
var radioLength = document.f.but.length;
for(var i=0; i<radioLength; i++)
if(document.f.but[i].checked) {
document.getElementById('id'+(100+i)).focus();
document.getElementById('id'+(200+i)).style.visibility = "visible";
break;
}
}
function setradio(_i)
{
hideAll();
document.f.but[_i].checked = "checked";
document.getElementById('id'+(200+_i)).style.visibility = "visible";
}
function hideAll()
{
var radioLength = document.f.but.length;
for(var t=0; t<radioLength; t++)
document.getElementById('id'+(200+t)).style.visibility = "hidden";
}
function killkey()
{
var radioLength = document.f.but.length;
for(var i=0; i<radioLength; i++)
if(document.f.but[i].checked) {
document.getElementById('id'+(100+i)).value = "KEY_NONE";
break;
}
}
function keytoi(_key)
{
var i;
switch(_key) {
case "KEY_NONE": i="-2"; break;
case "KEY_1": i="2"; break;
case "KEY_2": i="3"; break;
case "KEY_3": i="4"; break;
case "KEY_4": i="5"; break;
case "KEY_5": i="6"; break;
case "KEY_6": i="7"; break;
case "KEY_7": i="8"; break;
case "KEY_8": i="9"; break;
case "KEY_9": i="10"; break;
case "KEY_0": i="11"; break;
case "KEY_HOME": i="102"; break;
case "KEY_UP": i="103"; break;
case "KEY_LEFT": i="105"; break;
case "KEY_RIGHT": i="106"; break;
case "KEY_DOWN": i="108"; break;
case "KEY_MUTE": i="113"; break;
case "KEY_VOLUMEDOWN": i="114"; break;
case "KEY_VOLUMEUP": i="115"; break;
case "KEY_POWER": i="116"; break;
case "KEY_HELP": i="138"; break;
case "KEY_SETUP": i="141"; break;
case "KEY_OK": i="352"; break;
case "KEY_RED": i="398"; break;
case "KEY_GREEN": i="399"; break;
case "KEY_YELLOW": i="400"; break;
case "KEY_BLUE": i="401"; break;
default: i="-2"; break;
}
return i;
}
function itoKey(_val)
{
var _key;
switch(_val) {
case "-2": _key="KEY_NONE"; break;
case "2": _key="KEY_1"; break;
case "3": _key="KEY_2"; break;
case "4": _key="KEY_3"; break;
case "5": _key="KEY_4"; break;
case "6": _key="KEY_5"; break;
case "7": _key="KEY_6"; break;
case "8": _key="KEY_7"; break;
case "9": _key="KEY_8"; break;
case "10": _key="KEY_9"; break;
case "11": _key="KEY_0"; break;
case "102": _key="KEY_HOME"; break;
case "103": _key="KEY_UP"; break;
case "105": _key="KEY_LEFT"; break;
case "106": _key="KEY_RIGHT"; break;
case "108": _key="KEY_DOWN"; break;
case "113": _key="KEY_MUTE"; break;
case "114": _key="KEY_VOLUMEDOWN"; break;
case "115": _key="KEY_VOLUMEUP"; break;
case "116": _key="KEY_POWER"; break;
case "138": _key="KEY_HELP"; break;
case "141": _key="KEY_SETUP"; break;
case "352": _key="KEY_OK"; break;
case "398": _key="KEY_RED"; break;
case "399": _key="KEY_GREEN"; break;
case "400": _key="KEY_YELLOW"; break;
case "401": _key="KEY_BLUE"; break;
default: _key="KEY_NONE"; break;
}
return _key;
}
function setDefault()
{
document.f.bouquetlist_mode.selectedIndex = 0;
document.f.key_bouquet_down.value = "KEY_LEFT"; //105
document.f.key_bouquet_up.value = "KEY_RIGHT"; //106
document.f.key_channelList_addrecord.value = "KEY_RED"; //398
document.f.key_channelList_addremind.value = "KEY_YELLOW"; //400
document.f.key_channelList_cancel.value = "KEY_HOME"; //102
document.f.key_channelList_pagedown.value = "KEY_VOLUMEUP"; //115
document.f.key_channelList_pageup.value = "KEY_VOLUMEDOWN"; //114
document.f.key_channelList_reload.value = "KEY_SETUP"; //141
document.f.key_channelList_search.value = "KEY_GREEN"; //399
document.f.key_channelList_sort.value = "KEY_BLUE"; //401
document.f.key_lastchannel.value = "KEY_0"; //11
document.f.key_quickzap_down.value = "KEY_DOWN"; //108
document.f.key_quickzap_up.value = "KEY_UP"; //103
document.f.key_subchannel_down.value = "KEY_LEFT"; //105
document.f.key_subchannel_toggle.value = "KEY_0"; //11
document.f.key_subchannel_up.value = "KEY_RIGHT"; //106
document.f.key_tvradio_mode.value = "KEY_NONE"; //-2
document.f.key_zaphistory.value = "KEY_HOME"; //102
}
function do_submit()
{
show_waitbox(true);
var radioLength = document.f.but.length;
for(var i=0; i<radioLength; i++) {
document.getElementById('id'+(100+i)).value = keytoi(document.getElementById('id'+(100+i)).value);
}
document.f.submit();
}
//]]>
</script>
</head>
<body onload="do_init()">
{=var-set:wait_text=Werte werden &uuml;bernommen (Save).=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Settings-Buttons=}{=var-set:menu=Tastenbelegung=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form name="f" class="y_form" action="">
<table cellspacing="0" border="0" cellpadding="2" width="100%">
<tr>
<td width="25%">&nbsp;</td>
<td colspan="2" class="y_form_header">Modus wechsel</td>
</tr>
<tr>
<td rowspan="20">{=include-block:Y_Blocks.txt;remote=}</td>
<td><input type="radio" name="but" onclick="setFocus()" />TV-/Radio-Modus</td>
<td><input type="text" name="key_tvradio_mode" id="id100" onclick="setradio(0)" readonly="readonly" />
&nbsp;<input type="button" class="butnokey" id="id200" value="Keine Taste" onclick="killkey()" /></td>
</tr>
<tr>
<td colspan="2" class="y_form_header">Kanalliste</td>
</tr>
<tr>
<td>&nbsp;OK-Taste f&uuml;r</td>
<td>
<select name="bouquetlist_mode" title="OK-Button for...">
<option value="0" selected="selected">Bouquet-Kan&auml;le</option>
<option value="1">Bouquetliste</option>
<option value="2">Kanalliste</option>
</select>
</td>
</tr>
<tr>
<td><input type="radio" name="but" onclick="setFocus()" /> Seite hochbl&auml;ttern</td>
<td><input type="text" name="key_channelList_pageup" id="id101" onclick="setradio(1)" readonly="readonly" />
&nbsp;<input type="button" class="butnokey" id="id201" onclick="killkey()" value="Keine Taste" /></td>
</tr>
<tr>
<td><input type="radio" name="but" onclick="setFocus()" /> Seite runterbl&auml;ttern</td>
<td><input type="text" name="key_channelList_pagedown" id="id102" onclick="setradio(2)" readonly="readonly" />
&nbsp;<input type="button" class="butnokey" id="id202" onclick="killkey()" value="Keine Taste" /></td>
</tr>
<tr>
<td><input type="radio" name="but" onclick="setFocus()" /> Kanalliste schlie&szlig;en</td>
<td><input type="text" name="key_channelList_cancel" id="id103" onclick="setradio(3)" readonly="readonly" />
&nbsp;<input type="button" class="butnokey" id="id203" onclick="killkey()" value="Keine Taste" /></td>
</tr>
<tr>
<td><input type="radio" name="but" onclick="setFocus()" /> Sortierreihenfolge &auml;ndern</td>
<td><input type="text" name="key_channelList_sort" id="id104" onclick="setradio(4)" readonly="readonly" />
&nbsp;<input type="button" class="butnokey" id="id204" onclick="killkey()" value="Keine Taste" /></td>
</tr>
<tr>
<td><input type="radio" name="but" onclick="setFocus()" /> Stichwortsuche im EPG</td>
<td><input type="text" name="key_channelList_search" id="id105" onclick="setradio(5)" readonly="readonly" />
&nbsp;<input type="button" class="butnokey" id="id205" onclick="killkey()" value="Keine Taste" /></td>
</tr>
<tr>
<td><input type="radio" name="but" onclick="setFocus()" /> Aufnahme-Timer hinzuf&uuml;gen</td>
<td><input type="text" name="key_channelList_addrecord" id="id106" onclick="setradio(6)" readonly="readonly" />
&nbsp;<input type="button" class="butnokey" id="id206" onclick="killkey()" value="Keine Taste" /></td>
</tr>
<tr>
<td><input type="radio" name="but" onclick="setFocus()" /> Umschalt-Timer hinzuf&uuml;gen</td>
<td><input type="text" name="key_channelList_addremind" id="id107" onclick="setradio(7)" readonly="readonly" />
&nbsp;<input type="button" class="butnokey" id="id207" onclick="killkey()" value="Keine Taste" /></td>
</tr>
<tr>
<td><input type="radio" name="but" onclick="setFocus()" /> EPG aktualisieren</td>
<td><input type="text" name="key_channelList_reload" id="id108" onclick="setradio(8)" readonly="readonly" />
&nbsp;<input type="button" class="butnokey" id="id208" onclick="killkey()" value="Keine Taste" /></td>
</tr>
<tr>
<td colspan="2" class="y_form_header">Schnellumschaltung</td>
</tr>
<tr>
<td><input type="radio" name="but" onclick="setFocus()" /> Kanal hoch</td>
<td><input type="text" name="key_quickzap_up" id="id109" onclick="setradio(9)" readonly="readonly" />
&nbsp;<input type="button" class="butnokey" id="id209" onclick="killkey()" value="Keine Taste" /></td>
</tr>
<tr>
<td><input type="radio" name="but" onclick="setFocus()" /> Kanal runter</td>
<td><input type="text" name="key_quickzap_down" id="id110" onclick="setradio(10)" readonly="readonly" />
&nbsp;<input type="button" class="butnokey" id="id210" onclick="killkey()" value="Keine Taste" /></td>
</tr>
<tr>
<td><input type="radio" name="but" onclick="setFocus()" /> Bouquet weiter</td>
<td><input type="text" name="key_bouquet_down" id="id111" onclick="setradio(11)" readonly="readonly" />
&nbsp;<input type="button" class="butnokey" id="id211" onclick="killkey()" value="Keine Taste" /></td>
</tr>
<tr>
<td><input type="radio" name="but" onclick="setFocus()" /> Bouquet zur&uuml;ck</td>
<td><input type="text" name="key_bouquet_up" id="id112" onclick="setradio(12)" readonly="readonly" />
&nbsp;<input type="button" class="butnokey" id="id212" onclick="killkey()" value="Keine Taste" /></td>
</tr>
<tr>
<td><input type="radio" name="but" onclick="setFocus()" /> Unterkanal weiter</td>
<td><input type="text" name="key_subchannel_down" id="id113" onclick="setradio(13)" readonly="readonly" />
&nbsp;<input type="button" class="butnokey" id="id213" onclick="killkey()" value="Keine Taste" /></td>
</tr>
<tr>
<td><input type="radio" name="but" onclick="setFocus()" /> Unterkanal zur&uuml;ck</td>
<td><input type="text" name="key_subchannel_up" id="id114" onclick="setradio(14)" readonly="readonly" />
&nbsp;<input type="button" class="butnokey" id="id214" onclick="killkey()" value="Keine Taste" /></td>
</tr>
<tr>
<td><input type="radio" name="but" onclick="setFocus()" /> Unterkanal wechseln</td>
<td><input type="text" name="key_subchannel_toggle" id="id115" onclick="setradio(15)" readonly="readonly" />
&nbsp;<input type="button" class="butnokey" id="id215" onclick="killkey()" value="Keine Taste" /></td>
</tr>
<tr>
<td><input type="radio" name="but" onclick="setFocus()" /> Zapping-History Bouquet</td>
<td><input type="text" name="key_zaphistory" id="id116" onclick="setradio(16)" readonly="readonly" />
&nbsp;<input type="button" class="butnokey" id="id216" onclick="killkey()" value="Keine Taste" /></td>
</tr>
<tr>
<td><a href="javascript:setDefault()" class="alink">Vorbelegung benutzen</a></td>
<td><input type="radio" name="but" onclick="setFocus()" /> Letzter Kanal</td>
<td><input type="text" name="key_lastchannel" id="id117" onclick="setradio(17)" readonly="readonly" />
&nbsp;<input type="button" class="butnokey" id="id217" onclick="killkey()" value="Keine Taste" /></td>
</tr>
</table>
<br />
<input type="hidden" name="execute" value="include-block:Y_Blocks.txt;buttons_save_settings;nix" />
<button type="button" ytype="save" title="submit and save values" onclick="do_submit()">Speichern</button>
&nbsp;<button type="button" ytype="refresh" onclick="dbox_reload_neutrino()">reload Neutrino</button>
&nbsp;<a href="javascript:top.top_main.prim_menu.nav('info', 'Y_Info_Help.yhtm');" class="inlink">Hilfe</a>
</form>
</div>
</div>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}

View File

@@ -1,168 +0,0 @@
{=include-block:Y_Blocks.txt;management_check_top=}
{=include-block:Y_Blocks.txt;head=}
<style type="text/css">
/*<![CDATA[*/
.alink {
text-decoration: underline;
}
/*]]>*/
</style>
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
function do_init()
{
var val = "";
obj_set_radio_value('lcd_power', "{=ini-get:%(CONFIGDIR)/neutrino.conf;lcd_power;1~open=}");
obj_set_radio_value('lcd_inverse', "{=ini-get:%(CONFIGDIR)/neutrino.conf;lcd_inverse;0~cache=}");
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;lcd_dim_time;0~cache=}";
document.f.lcd_dim_time.value = val;
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;lcd_dim_brightness;0~cache=}";
document.f.lcd_dim_brightness.value = val;
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;lcd_contrast;15~cache=}";
document.f.lcd_contrast.value = val;
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;lcd_brightness;255~cache=}";
document.f.lcd_brightness.value = val;
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;lcd_standbybrightness;170~cache=}";
document.f.lcd_standbybrightness.value = val;
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;lcd_epgmode;1~cache=}";
var sel = 0;
if(val=="2") sel=1;
if(val=="3") sel=2;
if(val=="7") sel=3;
if(val=="11") sel=4;
if(val=="15") sel=5;
document.f.lcd_epgmode.selectedIndex = sel;
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;lcd_show_volume;0~cache=}"
document.f.lcd_show_volume.value = val;
}
function setDefault()
{
document.f.lcd_contrast.value = 15;
document.f.lcd_brightness.value = 255;
document.f.lcd_standbybrightness.value = 170;
}
function do_submit()
{
show_waitbox(true);
if (document.f.lcd_contrast.value > 63)
document.f.lcd_contrast.value = 63;
else if (document.f.lcd_contrast.value < 0)
document.f.lcd_contrast.value = 0;
if (document.f.lcd_brightness.value > 255)
document.f.lcd_brightness.value = 255;
else if (document.f.lcd_brightness.value < 0)
document.f.lcd_brightness.value = 0;
if (document.f.lcd_standbybrightness.value > 255)
document.f.lcd_standbybrightness.value = 255;
else if (document.f.lcd_standbybrightness.value < 0)
document.f.lcd_standbybrightness.value = 0;
document.f.submit();
}
/*]]>*/
</script>
</head>
<body onload="do_init()">
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Settings-LCD=}{=var-set:menu=LCD Einstellungen=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form name="f" class="y_form" action="">
<table cellspacing="0" border="0" cellpadding="2" width="100%">
<tr>
<td colspan="2" class="y_form_header">LCD</td>
</tr>
<tr>
<td title="lcd: off/on" width="35%">Power</td>
<td>
<input type="radio" name="lcd_power" value="0" />AUS&nbsp;
<input type="radio" name="lcd_power" value="1" />EIN
</td>
</tr>
<tr>
<td title="inverse lcd: off/on">Invertieren</td>
<td>
<input type="radio" name="lcd_inverse" value="0" />AUS&nbsp;
<input type="radio" name="lcd_inverse" value="1" />EIN
</td>
</tr>
<tr>
<td title="dimm-timeout">Dimm-Timeout</td>
<td>
<input type="text" name="lcd_dim_time" size="3" maxlength="3" />
</td>
</tr>
<tr>
<td title="brightness after dimm-timeout">Helligkeit nach dimm-Timeout</td>
<td>
<input type="text" name="lcd_dim_brightness" size="3" maxlength="3" />
</td>
</tr>
<tr>
<td colspan="2" class="y_form_header">Kontrast / Helligkeit</td>
</tr>
<tr>
<td title="lcd contrast 0-63">Kontrast</td>
<td>
<input type="text" name="lcd_contrast" size="3" maxlength="3" />
</td>
</tr>
<tr>
<td title="lcd brightness normal 0-255">normale Helligkeit</td>
<td>
<input type="text" name="lcd_brightness" size="3" maxlength="3" />
</td>
</tr>
<tr>
<td title="lcd brightness standby 0-255">Standby Helligkeit</td>
<td>
<input type="text" name="lcd_standbybrightness" size="3" maxlength="3" />
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><a href="javascript:setDefault()" class="alink">Voreinstellung benutzen</a></td>
</tr>
<tr>
<td colspan="2" class="y_form_header">Anzeige-Modi</td>
</tr>
<tr><td>EPG-Anzeige</td>
<td>
<select name="lcd_epgmode" title="select visualisation of LCD">
<option value="1" selected="selected">Standard (Kanal)</option>
<option value="2">Sendung</option>
<option value="3">Kanal / Sendung</option>
<option value="7">Kanal / Trennl. / Sendung</option>
<option value="11">Kanal (kurz) / Sendung</option>
<option value="15">Kanal (kurz) / Trennl. / Sendung</option>
</select>
</td>
</tr>
<tr><td>Statuszeile</td>
<td>
<select name="lcd_show_volume" title="select visualisation of LCD">
<option value="0" selected="selected">Sendungsfortschritt</option>
<option value="1">Lautst&auml;rke</option>
<option value="2">Lautst&auml;rke / Fortschritt</option>
<option value="3">Laut. / Fort. / Audio</option>
</select>
</td>
</tr>
</table>
<br />
<input type="hidden" name="execute" value="include-block:Y_Blocks.txt;lcd_save_settings;nix" />
<button type="button" ytype="save" title="submit and save values" onclick="do_submit()">Speichern</button>&nbsp;
<button type="button" ytype="refresh" onclick="dbox_reload_neutrino()">reload Neutrino</button>&nbsp;
<a href="javascript:top.top_main.prim_menu.nav('info', 'Y_Info_Help.yhtm');" class="inlink">Hilfe</a>
</form>
</div>
</div>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}

View File

@@ -1,86 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function form_init()
{
var check = {=ini-get:%(CONFIGDIR)/neutrino.conf;network_nfs_type_{=R1=}=};
document.f.type[check].checked = true;
check = {=ini-get:%(CONFIGDIR)/neutrino.conf;network_nfs_automount_{=R1=}=};
document.f.automount[check].checked = true;
}
function do_submit()
{
show_waitbox(true);
document.f.submit();
}
//]]>
</script>
</head>
<body onLoad="form_init()">
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head">
<div class="work_box_head_h2">{=var-set:help_url=Help-Tools-Mounts=}{=var-set:menu=Mount {=R1=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form name="f" action="/y/cgi">
<input type="hidden" name="nr" value="{=R1=}"/>
<table border="0" class="y_form_table">
<tr>
<td>Typ</td>
<td>
<input type="radio" name="type" value="0"/>NFS&nbsp;
<input type="radio" name="type" value="1"/>CIFS&nbsp;
</td>
</tr>
<tr>
<td>IP</td>
<td><input type="text" name="ip" size="20" value="{=ini-get:%(CONFIGDIR)/neutrino.conf;network_nfs_ip_{=R1=}=}"/></td>
</tr>
<tr>
<td>Verzeichnis</td>
<td><input type="text" name="dir" size="30" value="{=ini-get:%(CONFIGDIR)/neutrino.conf;network_nfs_dir_{=R1=}=}" title="remote directory. For CIFS do not use a leading slash."/></td>
</tr>
<tr>
<td>Lokales Verzeichnis</td>
<td><input type="text" name="localdir" size="30" value="{=ini-get:%(CONFIGDIR)/neutrino.conf;network_nfs_local_dir_{=R1=}=}" title="local directory to by mounted"/></td>
</tr>
<tr>
<td>MAC</td>
<td><input type="text" name="mac" size="30" value="{=ini-get:%(CONFIGDIR)/neutrino.conf;network_nfs_mac_{=R1=}=}"/></td>
</tr>
<tr>
<td>Optionen 1</td>
<td><input type="text" name="opt1" size="30" value="{=ini-get:%(CONFIGDIR)/neutrino.conf;network_nfs_mount_options1_{=R1=}=}" title="mount options 1"/></td>
</tr>
<tr>
<td>Optionen 2</td>
<td><input type="text" name="opt2" size="30" value="{=ini-get:%(CONFIGDIR)/neutrino.conf;network_nfs_mount_options2_{=R1=}=}" title="mount options 2"/></td>
</tr>
<tr>
<td>Automount</td>
<td>
<INPUT type="radio" name="automount" value="0" title="off"/>AUS&nbsp;
<INPUT type="radio" name="automount" value="1" title="on"/>AN
</td>
</tr>
<tr>
<td>Benutzername</td>
<td><input type="text" name="username" size="30" value="{=ini-get:%(CONFIGDIR)/neutrino.conf;network_nfs_username_{=R1=}=}" title="username"/></td>
</tr>
<tr>
<td>Passwort</td>
<td><input type="password" name="password" size="30" value="{=ini-get:%(CONFIGDIR)/neutrino.conf;network_nfs_password_{=R1=}=}" title="password"/></td>
</tr>
</table>
<br/>
<input type="hidden" name="tmpl" value="Y_Settings_mount_liste.yhtm"/>
<input type="hidden" name="execute" value="func:mount-set-values"/>
<button type="button" ytype="save" title="submit and save values" onClick="do_submit()">Speichern</button>
<button type="button" ytype="cancel" title="cancel" name="abort" onClick='window.document.location.href="/Y_Settings_mount_liste.yhtm"'>Abbrechen</button>
</form>
</div>
</div>
</body>
</html>

View File

@@ -1,45 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_mount()
{
show_waitbox(true);
var nr = 0;
for(i=0; i<8;i++)
{
if(document.f.R1[i].checked == true)
nr = i;
}
document.f.execute.value = "script:Y_Tools domount "+nr;
document.f.tmpl.value = "Y_Settings_umount_liste.yhtm";
document.f.submit();
}
function do_edit()
{
show_waitbox(true);
document.f.submit();
}
//]]>
</script>
</head>
<body>
{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head">
<div class="work_box_head_h2">{=var-set:help_url=Help-Tools-Mounts=}{=var-set:menu=Mount=}{=include-block:Y_Blocks.txt;work_menu=}</div>
</div>
<div class="work_box_body">
<form action="/y/cgi" name="f" id="f">
{=func:mount-get-list=}
<input type="hidden" name="tmpl" value="Y_Settings_mount.yhtm"/>
<input type="hidden" name="execute" value=""/>
<button type="button" ytype="edit" title="edit mount settings" onclick="do_edit()">&Auml;ndern</button>
<button type="button" ytype="no" title="mount selected directory" onclick="do_mount()">Mount</button>
<button type="button" ytype="no" title="view unmount list" onclick='window.document.location.href="/Y_Settings_umount_liste.yhtm"'>Unmount list</button>
</form>
</div>
</div>
{=include-block:Y_neutrino_Blocks.txt;neutrino_form_helpbox=}
</body>
</html>

View File

@@ -1,2 +0,0 @@
{=var-set:neutrino={=form=}=}
{=include-block:Y_neutrino_Blocks.txt;neutrino_form=}

View File

@@ -1,146 +0,0 @@
{=include-block:Y_Blocks.txt;management_check_top=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function form_init()
{
obj_set_radio_value('authenticate', "{=ini-get:%(CONFIGDIR)/nhttpd.conf;mod_auth.authenticate;false=}");
obj_set_radio_value('threading', "{=ini-get:%(CONFIGDIR)/nhttpd.conf;webserver.threading;false=}");
obj_set_radio_value('mod_sendfile_sendAll', "{=ini-get:%(CONFIGDIR)/nhttpd.conf;mod_sendfile.sendAll;false=}");
obj_set_radio_value('Tuxbox_DisplayLogos', "{=ini-get:%(CONFIGDIR)/nhttpd.conf;Tuxbox.DisplayLogos;true=}"); // MARTII
do_check_input_LogosURL()
}
function do_submit()
{
if(document.f.authpassword.value.length < 5)
alert("{=L:set.nhttpd.check_password=}");
else
if(document.f.port.value == "")
alert("{=L:set.nhttpd.check_port=}");
else{
show_waitbox(true);
yhttpd_cache_clear("");
document.f.submit();
}
}
function do_check_input_LogosURL()
{
if(document.getElementById('Tuxbox_DisplayLogos').checked == true)
document.f.Tuxbox_LogosURL.readOnly = false;
else
document.f.Tuxbox_LogosURL.readOnly = true;
}
//]]>
</script>
</head>
<body onload="form_init()">
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Settings-WebServer=}{=var-set:menu={=L:set.nhttpd.webserver=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form name="f" class="y_form" action="/y/cgi">
<table border="0" width="100%">
<tr><td colspan="2" class="y_form_header">{=L:set.nhttpd.authentication=}</td></tr>
<tr>
<td>{=L:user=}</td>
<td><input type="text" name="authuser" size="20" value="{=ini-get:%(CONFIGDIR)/nhttpd.conf;mod_auth.username;root~open=}" title="{=L:user=}"/></td>
</tr>
<tr>
<td>{=L:password=}</td>
<td><input type="password" name="authpassword" size="20" value="{=ini-get:%(CONFIGDIR)/nhttpd.conf;mod_auth.password;dbox2~cache=}" title="{=L:password=}"/></td>
</tr>
<tr>
<td>{=L:set.nhttpd.client_without_authentication=}</td>
<td><input type="text" name="noauthclient" size="20" value="{=ini-get:%(CONFIGDIR)/nhttpd.conf;mod_auth.no_auth_client~cache=}" title="{=L:set.nhttpd.client_without_authentication_desc=}"/></td>
</tr>
<tr>
<td>{=L:set.nhttpd.authentication=}</td>
<td>
<input type="radio" name="authenticate" value="false" />{=L:off=}&nbsp;
<input type="radio" name="authenticate" value="true" />{=L:on=}
</td>
</tr>
<tr><td colspan="2" class="y_form_header">{=L:general=}</td></tr>
<tr>
<td>{=L:language=}</td>
<td colspan="3"> <select name="language" title="{=L:language=}">
{=func:get_languages_as_dropdown=}
</select></td>
</tr>
<tr>
<td>{=L:set.nhttpd.port=}</td>
<td><input type="text" name="port" size="20" value="{=ini-get:%(CONFIGDIR)/nhttpd.conf;WebsiteMain.port;80~cache=}" title="{=L:set.nhttpd.port=}"/>&nbsp;{=L:set.nhttpd.active_after_boot=}
</td>
</tr>
<tr>
<td>{=L:set.nhttpd.threading=}</td>
<td>
<input type="radio" name="threading" value="false" />{=L:off=}&nbsp;
<input type="radio" name="threading" value="true" />{=L:on=}
</td>
</tr>
<tr>
<td>{=L:set.nhttpd.alternate_web_folder=}</td>
<td>
<input type="text" name="override_directory" size="20" value="{=ini-get:%(CONFIGDIR)/nhttpd.conf;WebsiteMain.override_directory~cache=}" title="{=L:set.nhttpd.alternate_web_folder=}"/>&nbsp;{=L:set.nhttpd.active_after_boot=}
</td>
</tr>
<tr>
<td>{=L:set.nhttpd.hosted_folder=}</td>
<td>
<input type="text" name="hosted_directory" size="20" value="{=ini-get:%(CONFIGDIR)/nhttpd.conf;WebsiteMain.hosted_directory~cache=}" title="Root of hosted Web. Enter mount directory."/>&nbsp;{=L:set.nhttpd.active_after_boot=}
</td>
</tr>
<tr>
<td>{=L:set.nhttpd.allowed_file_extensions=}</td>
<td><input type="text" name="mod_sendfile_mime_types" size="60" value="{=ini-get:%(CONFIGDIR)/nhttpd.conf;mod_sendfile.mime_types~cache=}"/></td>
</tr>
<tr>
<td>{=L:set.nhttpd.allow_all_file_extensions=}</td>
<td>
<input type="radio" name="mod_sendfile_sendAll" value="false" />{=L:off=}&nbsp;
<input type="radio" name="mod_sendfile_sendAll" value="true" />{=L:on=}
</td>
</tr>
<tr><td colspan="2" class="y_form_header">{=L:logos=}</td></tr>
<tr>
<td>{=L:set.nhttpd.display_logos=}</td>
<td>
<input type="radio" name="Tuxbox_DisplayLogos" value="false" onClick="do_check_input_LogosURL()" />{=L:off=}&nbsp;
<input type="radio" name="Tuxbox_DisplayLogos" value="true" onClick="do_check_input_LogosURL()" id="Tuxbox_DisplayLogos" />{=L:on=}
</td>
</tr>
<tr>
<td>{=L:set.nhttpd.url_of_logos=}</td>
<td><input type="text" name="Tuxbox_LogosURL" size="60" value="{=ini-get:%(CONFIGDIR)/nhttpd.conf;Tuxbox.LogosURL~cache=}" title="{=L:set.nhttpd.url_of_logos_desc=}"/></td>
</tr>
<tr><td colspan="2" class="y_form_header">{=L:set.nhttpd.server=}</td></tr>
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<tr>
<td>{=L:set.nhttpd.ips_without_keep_alive=}<br/>{=L:set.nhttpd.ips_without_keep_alive_desc=} </td>
<td><input type="text" name="no_keep_alive_ips" size="30" maxsize="254" value="{=ini-get:%(CONFIGDIR)/nhttpd.conf;server.no_keep-alive_ips;~cache=}" />
</td>
</tr>
=}
<tr>
<td>{=L:set.nhttpd.cache=}</td>
<td><a href="/y/cache-info" target="_blank"><u>{=L:set.nhttpd.cache_info=}</u>&nbsp;</a><button type="button" ytype="clear" name="clearcache" onclick="javascript:yhttpd_cache_clear('');">{=L:set.nhttpd.clear_cache=}</button></td>
</tr>
<tr>
<td>{=L:set.nhttpd.server_configuration=}</td>
<td><a href="/y/server-config" target="_blank"><u>{=L:set.nhttpd.server_configuration=}</u></a></td>
</tr>
</table>
<br/>
<input type="hidden" name="tmpl" value="/Y_Refresh.yhtm"/>
<input type="hidden" name="execute" value="include-block:Y_Blocks.txt;nhttpd_save_settings;nix"/>
<button type="button" ytype="save" title="{=L:save_values_desc=}" onclick="do_submit()">{=L:save=}</button>
</form>
</div>
</div>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}

View File

@@ -1,350 +0,0 @@
{=include-block:Y_Blocks.txt;management_check_top=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_submit()
{
if(document.f.p_pincode.value.length < 4)
alert("PIN Code muss 4-stellig sein");
else{
show_waitbox(true);
document.f.submit();
}
}
function do_init()
{
obj_set_radio_value('p_tv', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_tvmode;1~open=}");
obj_set_radio_value('p_radio', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_radiomode;1~cache=}");
obj_set_radio_value('p_scart', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_scartmode;1~cache=}");
obj_set_radio_value('p_games', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_games;1~cache=}");
obj_set_radio_value('p_audioplayer', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_audioplayer;1~cache=}");
obj_set_radio_value('p_inetradio', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_inetradio;1~cache=}");
obj_set_radio_value('p_movieplayer', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_movieplayer;1~cache=}");
obj_set_radio_value('p_picviewer', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_pictureviewer;1~cache=}");
obj_set_radio_value('p_pinstatus', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_pinstatus;0~cache=}");
obj_set_radio_value('p_upnp', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_upnpbrowser;1~cache=}");
obj_set_radio_value('p_sleeptimer', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_sleeptimer;1~cache=}");
obj_set_radio_value('p_reboot', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_reboot;1~cache=}");
obj_set_radio_value('p_shutdown', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_shutdown;1~cache=}");
obj_set_radio_value('p_settings', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_settings;0~cache=}");
obj_set_radio_value('p_video', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_video;1~cache=}");
obj_set_radio_value('p_audio', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_audio;1~cache=}");
obj_set_radio_value('p_youth', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_youth;1~cache=}");
obj_set_radio_value('p_network', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_network;1~cache=}");
obj_set_radio_value('p_recording', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_recording;1~cache=}");
obj_set_radio_value('p_language', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_language;1~cache=}");
obj_set_radio_value('p_colors', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_colors;1~cache=}");
obj_set_radio_value('p_lcd', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_lcd;1~cache=}");
obj_set_radio_value('p_keybinding', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_keybinding;1~cache=}");
obj_set_radio_value('p_mediaplayer', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_mediaplayer;1~cache=}");
obj_set_radio_value('p_driver', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_driver;1~cache=}");
obj_set_radio_value('p_misc', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_misc;1~cache=}");
obj_set_radio_value('p_service', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_service;0~cache=}");
obj_set_radio_value('p_bouqueteditor', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_bouqueteditor;1~cache=}");
obj_set_radio_value('p_scants', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_scants;1~cache=}");
obj_set_radio_value('p_reload', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_reload;1~cache=}");
obj_set_radio_value('p_getplugins', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_getplugins;1~cache=}");
obj_set_radio_value('p_restart', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_restart;1~cache=}");
obj_set_radio_value('p_epgrestart', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_epgrestart;1~cache=}");
obj_set_radio_value('p_chan_epg_stat', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_chan_epg_stat;1~cache=}");
obj_set_radio_value('p_imageinfo', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_imageinfo;1~cache=}");
obj_set_radio_value('p_update', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_update;1~cache=}");
obj_set_radio_value('p_bluebutton', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_bluebutton;1~cache=}");
obj_set_radio_value('p_redbutton', "{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_redbutton;1~cache=}");
}
//]]>
</script>
</head>
<body onload="do_init()">
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Settings-Personalize=}{=var-set:menu=Personalisierung=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form name="f" class="y_form" action="">
<table cellspacing="0" border="0" cellpadding="2" width="100%">
<tr><td colspan="2" class="y_form_header">Zugang Personalisierung</td></tr>
<tr><td width="35%">PIN ben&ouml;tigt</td>
<td>
<input type="radio" name="p_pinstatus" value="1"/>JA&nbsp;
<input type="radio" name="p_pinstatus" value="0"/>NEIN
</td>
</tr>
<tr>
<td>PIN Code</td>
<td>&nbsp;<input type="text" name="p_pincode" size="4" maxlength="4" value="{=ini-get:%(CONFIGDIR)/neutrino.conf;personalize_pincode~open=}" title="PIN code"/></td>
</tr>
<tr><td colspan="2" class="y_form_header">Farbtasten</td></tr>
<tr><td>Taste Blau (Features)</td>
<td>
<input type="radio" name="p_bluebutton" value="1"/>AKTIVIERT&nbsp;
<input type="radio" name="p_bluebutton" value="0"/>DEAKTIVIERT
</td>
</tr>
<tr><td>Taste Rot (EPG/Info)</td>
<td>
<input type="radio" name="p_redbutton" value="1"/>AKTIVIERT&nbsp;
<input type="radio" name="p_redbutton" value="0"/>DEAKTIVIERT
</td>
</tr>
<tr><td colspan="2" class="y_form_header">Hauptmen&uuml;</td></tr>
<tr><td>TV-Modus</td>
<td>
<input type="radio" name="p_tv" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_tv" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_tv" value="2"/>PIN
</td>
</tr>
<tr><td>Radio-Modus</td>
<td>
<input type="radio" name="p_radio" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_radio" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_radio" value="2"/>PIN
</td>
</tr>
<tr><td>Scart-Eingang</td>
<td>
<input type="radio" name="p_scart" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_scart" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_scart" value="2"/>PIN
</td>
</tr>
<tr><td>Spiele</td>
<td>
<input type="radio" name="p_games" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_games" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_games" value="2"/>PIN
</td>
</tr>
<tr><td>Audioplayer</td>
<td>
<input type="radio" name="p_audioplayer" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_audioplayer" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_audioplayer" value="2"/>PIN
</td>
</tr>
</tr><td>Internetradio</td>
<td>
<input type="radio" name="p_inetradio" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_inetradio" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_inetradio" value="2"/>PIN
</td>
</tr>
<tr><td>Movieplayer</td>
<td>
<input type="radio" name="p_movieplayer" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_movieplayer" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_movieplayer" value="2"/>PIN
</td>
</tr>
<tr><td>Bildbetrachter</td>
<td>
<input type="radio" name="p_picviewer" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_picviewer" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_picviewer" value="2"/>PIN
</td>
</tr>
<tr><td>UPNP Browser</td>
<td>
<input type="radio" name="p_upnp" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_upnp" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_upnp" value="2"/>PIN
</td>
</tr>
<tr><td>SleepTimer</td>
<td>
<input type="radio" name="p_sleeptimer" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_sleeptimer" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_sleeptimer" value="2"/>PIN
</td>
</tr>
<tr><td>Neu starten</td>
<td>
<input type="radio" name="p_reboot" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_reboot" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_reboot" value="2"/>PIN
</td>
</tr>
<tr><td>Ausschalten</td>
<td>
<input type="radio" name="p_shutdown" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_shutdown" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_shutdown" value="2"/>PIN
</td>
</tr>
<tr><td colspan="2" class="y_form_header">Einstellungen</td></tr>
<tr><td>Einstellungen-Men&uuml; mit PIN</td>
<td>
<input type="radio" name="p_settings" value="1"/>JA&nbsp;
<input type="radio" name="p_settings" value="0"/>NEIN
</td>
</tr>
<tr><td>Video</td>
<td>
<input type="radio" name="p_video" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_video" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_video" value="2"/>PIN
</td>
</tr>
<tr><td>Audio</td>
<td>
<input type="radio" name="p_audio" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_audio" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_audio" value="2"/>PIN
</td>
</tr>
<tr><td>Jugendschutz</td>
<td>
<input type="radio" name="p_youth" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_youth" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_youth" value="2"/>PIN
</td>
</tr>
<tr><td>Netzwerk</td>
<td>
<input type="radio" name="p_network" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_network" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_network" value="2"/>PIN
</td>
</tr>
<tr><td>Aufnahme</td>
<td>
<input type="radio" name="p_recording" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_recording" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_recording" value="2"/>PIN
</td>
</tr>
<tr><td>Sprache</td>
<td>
<input type="radio" name="p_language" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_language" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_language" value="2"/>PIN
</td>
</tr>
<tr><td>Farben / Themes / Schrift</td>
<td>
<input type="radio" name="p_colors" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_colors" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_colors" value="2"/>PIN
</td>
</tr>
<tr><td>LCD-Display</td>
<td>
<input type="radio" name="p_lcd" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_lcd" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_lcd" value="2"/>PIN
</td>
</tr>
<tr><td>Tasten Einstellungen</td>
<td>
<input type="radio" name="p_keybinding" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_keybinding" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_keybinding" value="2"/>PIN
</td>
</tr>
<tr><td>Medienwiedergabe</td>
<td>
<input type="radio" name="p_mediaplayer" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_mediaplayer" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_mediaplayer" value="2"/>PIN
</td>
</tr>
<tr><td>Treiber- und Bootoptionen</td>
<td>
<input type="radio" name="p_driver" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_driver" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_driver" value="2"/>PIN
</td>
</tr>
<tr><td>Diverse Einstellungen</td>
<td>
<input type="radio" name="p_misc" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_misc" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_misc" value="2"/>PIN
</td>
</tr>
<tr><td colspan="2" class="y_form_header">Service</td></tr>
<tr><td>Service-Men&uuml; mit PIN</td>
<td>
<input type="radio" name="p_service" value="1"/>JA&nbsp;
<input type="radio" name="p_service" value="0"/>NEIN
</td>
</tr>
<tr><td>Bouquet-Verwaltung</td>
<td>
<input type="radio" name="p_bouqueteditor" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_bouqueteditor" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_bouqueteditor" value="2"/>PIN
</td>
</tr>
<tr><td>Kanalsuche</td>
<td>
<input type="radio" name="p_scants" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_scants" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_scants" value="2"/>PIN
</td>
</tr>
<tr><td>Kanallisten neu laden</td>
<td>
<input type="radio" name="p_reload" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_reload" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_reload" value="2"/>PIN
</td>
</tr>
<tr><td>Plugins neu laden</td>
<td>
<input type="radio" name="p_getplugins" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_getplugins" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_getplugins" value="2"/>PIN
</td>
</tr>
<tr><td>Neutrino neu starten</td>
<td>
<input type="radio" name="p_restart" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_restart" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_restart" value="2"/>PIN
</td>
</tr>
<tr><td>EPG neu starten</td>
<td>
<input type="radio" name="p_epgrestart" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_epgrestart" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_epgrestart" value="2"/>PIN
</td>
</tr>
<tr><td>Sender/EPG Statistik</td>
<td>
<input type="radio" name="p_chan_epg_stat" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_chan_epg_stat" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_chan_epg_stat" value="2"/>PIN
</td>
</tr>
<tr><td>Image Informationen</td>
<td>
<input type="radio" name="p_imageinfo" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_imageinfo" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_imageinfo" value="2"/>PIN
</td>
</tr>
<tr><td>Software-Aktualisierung</td>
<td>
<input type="radio" name="p_update" value="0"/>nicht sichtbar&nbsp;
<input type="radio" name="p_update" value="1"/>sichtbar&nbsp;
<input type="radio" name="p_update" value="2"/>PIN
</td>
</tr>
</table>
<br />
<input type="hidden" name="execute" value="include-block:Y_Blocks.txt;personalize_save_settings;nix"/>
<button type="button" ytype="save" title="submit and save values" onclick="do_submit()">Speichern</button>
&nbsp;<button type="button" ytype="refresh" onclick="dbox_reload_neutrino()">reload Neutrino</button>
&nbsp;<a href="javascript:top.top_main.prim_menu.nav('info', 'Y_Info_Help.yhtm');" class="inlink">Hilfe</a>
</form>
</div>
</div>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}

View File

@@ -1,38 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_unmount()
{
var local_dir="";
for(i=0; i<document.f.length;i++)
if(document.f.elements[i].name == "R1")
if(document.f.elements[i].checked == true)
local_dir = document.f.elements[i].value;
if(local_dir != "")
{
show_waitbox(true);
document.f.execute.value = "script:Y_Tools dounmount "+local_dir;
document.f.submit();
}
}
//]]>
</script>
</head>
<body>
{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head">
<div class="work_box_head_h2">{=var-set:help_url=Help-Tools-Mounts=}{=var-set:menu=UnMount=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form action="/y/cgi" name="f" id="f">
{=func:umount_get_list=}
<input type="hidden" name="tmpl" value="/Y_Settings_umount_liste.yhtm"/>
<input type="button" value="Unmount" title="unmount selected directory" name="B1" onClick='do_unmount()'/>
<input type="button" value="Mount list" title="view mount list" name="B1" onClick='window.document.location.href="/Y_Settings_mount_liste.yhtm"'/>
<input type="hidden" name="execute" value=""/>
</form>
</div>
</div>
</body>
</html>

View File

@@ -1,182 +0,0 @@
{=include-block:Y_Blocks.txt;management_check_top=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_init()
{
var val = "";
//video
val = "{=ini-get:%(CONFIGDIR)/controld.conf;videooutput;1~open=}";
document.f.videooutput.selectedIndex = val;
obj_set_radio_value('vcroutput', "{=ini-get:%(CONFIGDIR)/controld.conf;vcroutput;0~cache=}");
document.f.h_vcroutput.value = obj_get_radio_value("vcroutput");
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;video_Format;2~open=}";
document.f.video_Format.selectedIndex = val;
val = "{=ini-get:%(CONFIGDIR)/controld.conf;video_backgroundFormat;2~cache=}";
var sel = 0;
if(val=="2") sel=1;
if(val=="3") sel=2;
document.f.video_backgroundFormat.selectedIndex = sel;
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;video_csync;0~cache=}"
document.f.video_csync.value = val;
obj_set_radio_value('vcr_AutoSwitch', "{=ini-get:%(CONFIGDIR)/neutrino.conf;vcr_AutoSwitch;true~cache=}");
//audio
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;audio_AnalogMode;0~cache=}";
document.f.audio_AnalogMode.selectedIndex = val;
obj_set_radio_value('audiochannel_up_down_enable', "{=ini-get:%(CONFIGDIR)/neutrino.conf;audiochannel_up_down_enable;false~cache=}");
obj_set_radio_value('audio_left_right_selectable', "{=ini-get:%(CONFIGDIR)/neutrino.conf;audio_left_right_selectable;false~cache=}");
obj_set_radio_value('audio_DolbyDigital', "{=ini-get:%(CONFIGDIR)/neutrino.conf;audio_DolbyDigital;false~cache=}");
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;audio_avs_Control;1~cache=}";
document.f.audio_avs_Control.selectedIndex = val;
val = "{=ini-get:%(CONFIGDIR)/neutrino.conf;audio_step;5~cache=}"
document.f.audio_step.value = val;
}
function set_hidden_values()
{
document.f.h_videooutput.value = document.f.videooutput.selectedIndex;
document.f.h_video_csync.value = document.f.video_csync.value;
document.f.h_vcroutput.value = obj_get_radio_value("vcroutput");
document.f.h_audio_avs_Control.value = document.f.audio_avs_Control.selectedIndex;
}
function do_submit()
{
if(document.f.video_csync.value < 0 || document.f.video_csync.value > 31)
alert("Erlaubte Werte: 0 - 31");
else{
set_hidden_values();
show_waitbox(true);
document.f.submit();
}
}
//]]>
</script>
</head>
<body onload="do_init()">
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Settings-Video-Audio=}{=var-set:menu=Video und Audio Einstellungen=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form name="f" class="y_form" action="">
<table cellspacing="0" border="0" cellpadding="2" width="100%">
<tr>
<td colspan="2" class="y_form_header">Video</td>
</tr>
<tr><td width="35%">Video Signalart</td>
<td>
<select name="videooutput" title="select videooutput" disabled="disabled">
<option value="0" selected="selected">CVBS</option>
<option value="1">RGB + CVBS</option>
<option value="2">S-Video</option>
<option value="3">YUV + VBS</option>
<option value="4">YUV + CVBS</option>
</select>
<input type="hidden" name="h_videooutput"/>(*)
</td>
</tr>
<tr>
<td>Bildschirmformat</td>
<td>
<select name="video_Format" title="select videoformat">
<option value="0" selected="selected">automatisch</option>
<option value="1">16:9</option>
<option value="2">4:3 (LB)</option>
<option value="3">4:3 (PS)</option>
</select>
</td>
</tr>
<tr>
<td>Hintergrundbildformat</td>
<td>
<select name="video_backgroundFormat" title="select backgroundformat">
<option value="1" selected="selected">16:9</option>
<option value="2">4:3 (LB)</option>
<option value="3">4:3 (PS)</option>
</select>
</td>
</tr>
<tr>
<td>RGB-Zentrierung</td>
<td>
<input type="text" name="video_csync" size="2" maxlength="2" disabled="disabled" title="set rgb-sync"/>
<input type="hidden" name="h_video_csync"/>(*)
</td>
</tr>
<tr>
<td title="select vcr_output">VCR-Ausgang Signalart</td>
<td>
<input type="radio" name="vcroutput" value="0" disabled="disabled"/>CVBS&nbsp;
<input type="radio" name="vcroutput" value="2" disabled="disabled"/>S-Video
<input type="hidden" name="h_vcroutput"/>(*)
</td>
</tr>
<tr>
<td title="vcr_AutoSwitch: off/on">Scart-Eingang automatisch</td>
<td>
<input type="radio" name="vcr_AutoSwitch" value="false"/>NEIN&nbsp;
<input type="radio" name="vcr_AutoSwitch" value="true"/>JA
</td>
</tr>
<tr><td colspan="2" class="y_form_header">Audio</td></tr>
<tr>
<td>Analog-Ausgang</td>
<td>
<select name="audio_AnalogMode" title="select audio analogMode">
<option value="0" selected="selected">Stereo</option>
<option value="1">Mono links</option>
<option value="2">Mono rechts</option>
</select>
</td>
</tr>
<tr>
<td title="audiochannel selectable in menu: off/on">in Tonwahl w&auml;hlbar</td>
<td>
<input type="radio" name="audiochannel_up_down_enable" value="false"/>AUS&nbsp;
<input type="radio" name="audiochannel_up_down_enable" value="true"/>EIN
</td>
</tr>
<tr>
<td title="enable audioselect with left/right: off/on">Audio mit Links/Rechts w&auml;hlbar</td>
<td>
<input type="radio" name="audio_left_right_selectable" value="false"/>AUS&nbsp;
<input type="radio" name="audio_left_right_selectable" value="true"/>EIN
</td>
</tr>
<tr><td title="dolby digital default: off/on">Dolby Digital Default</td>
<td>
<input type="radio" name="audio_DolbyDigital" value="false"/>AUS&nbsp;
<input type="radio" name="audio_DolbyDigital" value="true"/>EIN
</td>
</tr>
<tr><td>Volume Steuerung</td>
<td>
<select name="audio_avs_Control" title="select volume control" disabled="disabled">
<option value="0" selected="selected">ost</option>
<option value="1">avs</option>
<option value="2">lirc</option>
</select>
<input type="hidden" name="h_audio_avs_Control"/>(*)
</td>
</tr>
<tr><td>Lautst&auml;rke Schrittweite</td>
<td>
<input type="text" name="audio_step" size="2" maxlength="2" title="audio step"/>
</td>
</tr>
</table>
<br/>
<input type="hidden" name="execute" value="include-block:Y_Blocks.txt;video_audio_save_settings;nix"/>
<button type="button" ytype="save" title="submit and save values" onclick="do_submit()">Speichern</button>&nbsp;
<button type="button" ytype="refresh" onclick="dbox_reload_neutrino()">reload Neutrino</button>&nbsp;
<a href="javascript:top.top_main.prim_menu.nav('info', 'Y_Info_Help.yhtm');" class="inlink">Hilfe</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(* diese Einstellungen sind nur lesbar)
</form>
</div>
</div>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}

View File

@@ -1,57 +0,0 @@
{=include-block:Y_Blocks.txt;management_check_top=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
var g_wol = new Array(
"{=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_mac_1=}",
"{=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_mac_2=}",
"{=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_mac_3=}");
function do_wol(_nr)
{
var nhttpd_version = loadSyncURL("/control/exec?Y_Tools&wol&"+g_wol[_nr-1]);
}
function init_wol()
{
for(i=1;i<=3;i++)
document.getElementById("wol"+i).disabled = (g_wol[i-1] == "");
}
function goto_settings(){
top.top_main.prim_menu.nav("settings", "Y_Settings_yWeb.yhtm");
}
//]]>
</script>
</head>
<body>
<div class="work_box">
<div class="work_box_head">
<div class="work_box_head_h2">{=var-set:help_url=Help-Tools-Wake_on_LAN=}{=var-set:menu=Wake on LAN=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form name="f" action="/y/cgi">
<table border="0" class="y_form_table">
<tr>
<td>Wake on Lan MAC 1 ({=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_mac_1=}) {=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_desc_1=}</td>
<td><input id="wol1" type="button" name="wol_mac_1" value="wake up" title="wake up that MAC" onclick='do_wol(1)'/></td>
</tr>
<tr>
<td>Wake on Lan MAC 2 ({=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_mac_2=}) {=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_desc_2=}</td>
<td><input id="wol2" type="button" name="wol_mac_2" value="wake up" title="wake up that MAC" onclick='do_wol(2)'/></td>
</tr>
<tr>
<td>Wake on Lan MAC 3 ({=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_mac_3=}) {=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_desc_3=}</td>
<td><input id="wol3" type="button" name="wol_mac_3" value="wake up" title="wake up that MAC" onclick='do_wol(3)'/></td>
</tr>
<tr><td colspan="2"><a href="javascript:goto_settings()" class="inlink">{=L:main.settings=}</a></td></tr>
</table>
</form>
<!--<a href="Y_Settings_yWeb.yhtm" title="WOL Settings">{=L:settings=}</a>-->
</div>
</div>
<script type="text/javascript">
//<![CDATA[
init_wol();
//]]>
</script>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}

View File

@@ -1,162 +0,0 @@
{=include-block:Y_Blocks.txt;management_check_top=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_submit(){
show_waitbox(true);
do_reload = false;
style_new = document.f.style.value;
if (style_old != style_new)
{
do_reload = true;
loadSyncURL("/control/exec?Y_Tools&style_set&" + style_new);
}
yhttpd_cache_clear("");
document.f.submit();
if (do_reload == true)
{
alert("Style changed. Maybe you'll have to reload this site.");
/* ugly mess */
top.top_main.prim_menu.location.reload();
top.top_main.base.sec_menu.location.reload();
//FIXME top.top_main.base.work.location.reload();
top.top_left.location.reload();
top.top_right.location.reload();
}
}
function do_init(){
val = "{=ini-get:%(CONFIGDIR)/Y-Web.conf;fb;0~open=}";
var sel=2;
switch(val){
case "-2": // d-box philips
case "-1": // d-box nokia old
case "0": // auto
case "1": // cst hd1/bse
case "2": // cst neo
case "3": // cst zee/neo2
case "4": // cst neo twin
case "5": // cst tank
case "6": // cst trinity
case "7": // cst link
case "8": // cst trinity duo
sel=(sel*1+val*1);
break;
default:
break;
}
document.f.fb.selectedIndex = sel;
val = "{=ini-get:%(CONFIGDIR)/Y-Web.conf;start_page;bouquets~cache=}";
var sel=2;
switch(val){
case "bouquets": sel=0; break;
case "control": sel=1; break;
}
document.f.start_page.selectedIndex = sel;
style_old = "{=ini-get:%(CONFIGDIR)/Y-Web.conf;style~cache=}";
}
//]]>
</script>
<style type="text/css">
input[type="text"],
select {
width: 220px;
}
</style>
</head>
<body onload="do_init()">
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Settings-yWeb=}{=var-set:menu=yWeb=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form name="f" class="y_form" action="/y/cgi">
<table border="0" class="y_form_table">
<tr><td class="y_form_header" colspan="4">{=L:set.yweb.management_IPs=}</td></tr>
<tr>
<td>IP 1</td>
<td colspan="3"><input type="text" name="managementIP" size="15" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;management_ip=}" title="{=L:set.yweb.enter_ip_desc=}"/></td>
</tr>
<tr>
<td>IP 2</td>
<td colspan="3"><input type="text" name="managementIP2" size="15" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;management_ip2=}" title="{=L:set.yweb.enter_ip_desc=}"/></td>
</tr>
<tr><td class="y_form_header" colspan="4">{=L:set.yweb.wake_on_lan=}</td></tr>
<tr>
<td>MAC 1</td>
<td><input type="text" name="wol_mac_1" size="17" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_mac_1=}" title="{=L:set.yweb.enter_mac_desc=}"/></td>
<td>{=L:set.yweb.description=}</td>
<td><input type="text" name="wol_desc_1" size="17" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_desc_1=}" title="{=L:set.yweb.enter_description_desc=}"/></td>
</tr>
<tr>
<td>MAC 2</td>
<td><input type="text" name="wol_mac_2" size="17" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_mac_2=}" title="{=L:set.yweb.enter_mac_desc=}"/></td>
<td>{=L:set.yweb.description=}</td>
<td><input type="text" name="wol_desc_2" size="17" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_desc_2=}" title="{=L:set.yweb.enter_description_desc=}"/></td>
</tr>
<tr>
<td>MAC 3</td>
<td><input type="text" name="wol_mac_3" size="17" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_mac_3=}" title="{=L:set.yweb.enter_mac_desc=}"/></td>
<td>{=L:set.yweb.description=}</td>
<td><input type="text" name="wol_desc_3" size="17" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;wol_desc_3=}" title="{=L:set.yweb.enter_description_desc=}"/></td>
</tr>
<tr><td class="y_form_header" colspan="4">{=L:set.yweb.box_tag=}</td></tr>
<tr>
<td>{=L:set.yweb.box_tag=}</td>
<td colspan="3"><input type="text" name="yweb_box_name" size="8" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;yweb_box_name=}"
title="{=L:box_tag_desc=}"/></td>
</tr>
<tr>
<td>{=L:set.yweb.box_color=}</td>
<td colspan="3"><input type="text" name="yweb_box_color" size="8" value="{=ini-get:%(CONFIGDIR)/Y-Web.conf;yweb_box_color=}"
title="{=L:box_color_desc=}"/></td>
</tr>
<tr><td class="y_form_header" colspan="4">{=L:others=}</td></tr>
<tr>
<td>{=L:set.yweb.remote=}</td>
<td colspan="3">
<select name="fb" title="{=L:remote=}">
<option value="-2">d-Box | Philips</option>
<option value="-1">d-Box | Nokia (alt)</option>
<option value="0" selected="selected">{=L:automatic=}</option>
<option value="1">CST HD-1 | BSE</option>
<option value="2">CST HD-1plus | Neo</option>
<option value="3">CST HD-1plus | Zee/Neo2</option>
<option value="4">CST HD-1plus | Neo Twin</option>
<option value="5">CST HD-2 | Tank</option>
<option value="6">CST HD-2 | Trinity</option>
<option value="7">CST HD-2 | Link</option>
<option value="8">CST HD-2 | Trinity Duo</option>
</select>
</td>
</tr>
<tr>
<td>{=L:set.yweb.start_page=}</td>
<td colspan="3">
<select name="start_page" title="{=L:start_page=}">
<option value="bouquets" selected="selected">{=L:bc.menue.bouquets=}</option>
<option value="control">{=L:bc.menue.control=}</option>
<option value="none">{=L:empty=}</option>
</select>
</td>
</tr>
<tr>
<td>Styles</td>
<td>
<select name="style" title="Style">
{=script:Y_Tools style_get=}
</select>
</td>
</tr>
</table>
<br/>
<input type="hidden" name="tmpl" value="Y_Settings_yWeb.yhtm"/>
<input type="hidden" name="execute" value="include-block:Y_Blocks.txt;yWeb_save_settings;nix"/>
<button type="button" ytype="save" title="{=L:save_values_desc=}" onclick="do_submit()">{=L:save=}</button>
</form>
</div>
</div>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}

View File

@@ -1,56 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript">
//<![CDATA[
function do_submit()
{
document.f.su.disabled=true;
if (document.f.R1[0].checked == true)
_url="/control/exec?Y_Tools&zapit_upload&bouquets.xml";
else if (document.f.R1[1].checked == true)
_url="/control/exec?Y_Tools&zapit_upload&services.xml";
else if (document.f.R1[2].checked == true)
_url="/control/exec?Y_Tools&zapit_upload&ubouquets.xml";
else if (document.f.R1[3].checked == true)
_url="/control/exec?Y_Tools&zapit_upload&myservices.xml";
else
alert("Please make a selection.\nBitte eine Auswahl treffen.");
document.f.action=_url;
document.f.submit();
}
//]]>
</script>
</head>
<body>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Settings-zapit=}{=var-set:menu=zapit=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<table border="0" cellpadding="5" width="100%">
<tr><td width="50%" class="y_form_header">Upload</td><td class="y_form_header">Download</td></tr>
<tr>
<td valign="top">
<form name="f" method="post" enctype="multipart/form-data" action="">
<input type="radio" name="R1" value="bouquets.xml"/>bouquets.xml<br/>
<input type="radio" name="R1" value="services.xml"/>services.xml<br/>
<input type="radio" name="R1" value="ubouquets.xml"/>ubouquets.xml<br/>
<input type="radio" name="R1" value="myservices.xml"/>myservices.xml<br/>
<p>
<input type="file" name="F1" size="20"/><br/>
</p>
<p>
<button type="button" id="su" ytype="save" name="B1" title="upload selected file" onclick="do_submit()">Absenden</button>
</p>
</form>
</td>
<td valign="top">
<a type="application/octet-stream" href="%(CONFIGDIR)/zapit/bouquets.xml">bouquets.xml</a><br/>
<a type="application/octet-stream" href="%(CONFIGDIR)/zapit/services.xml">services.xml</a><br/>
<a type="application/octet-stream" href="%(CONFIGDIR)/zapit/ubouquets.xml">ubouquets.xml</a><br/>
<a type="application/octet-stream" href="%(CONFIGDIR)/zapit/myservices.xml">myservices.xml</a><br/>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>

View File

@@ -1,113 +0,0 @@
{=include-block:Y_Blocks.txt;head_no_charset=}
<style>
.y_work_box {
border-spacing: 1px;
padding-left: 20px;
padding-right: 20px;
padding-top: 10px;
padding-bottom: 10px;
float:left;
width: auto;
color: #555555;
display:block;
}
.y_head {
font-weight: bold;
color: #555555;
font-size: 14pt;
clear:both;
}
</style>
</head>
<body>
<br/>
{=func:get_current_stream_info=}
<div class="y_head">{=L:epg.si.streaminfo=} ({=ServiceName=})</div>
<div class="y_work_box">
<table cellspacing="2" cellpadding="3" class="tableborder" width="300px">
<tr>
<td class="set"><b>{=L:epg.si.resolution=}:</b></td>
<td width="30">&nbsp;</td>
<td class="set">{=VideoFormat=}</td>
</tr>
<tr>
<td class="set"><b>{=L:epg.si.ratio=}:</b></td>
<td>&nbsp;</td>
<td class="set"> <div align="left">{=AspectRatio=}</div></td>
</tr>
<!-- <tr>
<td class="set"><b>Bitrate:</b></td>
<td>&nbsp;</td>
<td class="set"> <div align="left">{=BitRate=} bit/sec</div></td>
</tr>
-->
<tr>
<td class="set"><b>{=L:epg.si.fps=}:</b></td>
<td>&nbsp;</td>
<td class="set"> <div align="left">{=FPS=}</div></td>
</tr>
<tr>
<td class="set"><b>{=L:epg.si.audiotype=}:</b></td>
<td>&nbsp;</td>
<td class="set"> <div align="left">{=AudioType=}</div></td>
</tr>
<tr>
<td class="set"><b>{=L:epg.si.frequence=}:</b></td>
<td>&nbsp;</td>
<td class="set"> <div align="left">{=tsfrequency=} ({=polarisation=})</div></td>
</tr>
<tr>
<td class="set" colspan="3">&nbsp;</td>
</tr>
<tr>
<td class="set"><b>{=L:epg.si.onid=}:</b></td>
<td>&nbsp;</td>
<td class="set"> <div align="left">{=onid=}</div></td>
</tr>
<tr>
<td class="set"><b>{=L:epg.si.sid=}:</b></td>
<td>&nbsp;</td>
<td class="set"> <div align="left">{=sid=}</div></td>
</tr>
<tr>
<td class="set"><b>{=L:epg.si.tsid=}:</b></td>
<td>&nbsp;</td>
<td class="set"> <div align="left">{=tsid=}</div></td>
</tr>
<tr>
<td class="set"><b>{=L:epg.si.vpid=}:</b></td>
<td>&nbsp;</td>
<td class="set"> <div align="left">{=vpid=}</div></td>
</tr>
<tr>
<td class="set"><b>{=L:epg.si.pcrpid=}:</b></td>
<td>&nbsp;</td>
<td class="set"> <div align="left">{=pcrpid=}</div></td>
</tr>
<tr>
<td class="set"><b>{=L:epg.si.pmtpid=}:</b></td>
<td>&nbsp;</td>
<td class="set"> <div align="left">{=pmtpid=}</div></td>
</tr>
<tr>
<td class="set"><b>{=L:epg.si.apid=}:</b></td>
<td>&nbsp;</td>
<td class="set"> <div align="left">{=apid=}</div></td>
</tr>
<tr>
<td class="set"><b>{=L:epg.si.vtxtpid=}:</b></td>
<td>&nbsp;</td>
<td class="set"> <div align="left">{=vtxtpid=}</div></td>
</tr>
<tr>
<td class="set" colspan="3">&nbsp;</td>
</tr>
<tr>
<td class="set"><b>{=L:epg.si.crypt=}:</b></td>
<td>&nbsp;</td>
<td class="set"> <div align="left">{=Crypt=}</div></td>
</tr>
</table>
</div>
</body>
</html>

View File

@@ -1,180 +0,0 @@
{=func:set_timer_form {=typ=} {=tid=}=}
{=include-block:Y_Blocks.txt;head_no_charset=}
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<script type="text/javascript" src="/prototype.js"></script>
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function my_display(id,state) {(state)?$(id).show():$(id).hide();}
function focusNMark()
{
document.f.ad.select();
document.f.ad.focus();
}
function onEventChange()
{
tType=document.f.type.value;
my_display("StopDateRow",(tType == "5"));
my_display("StandbyRow",(tType == "4"));
my_display("ProgramRow",(tType == "5" || tType=="2" || tType=="3"));
my_display("ApidRow",(tType == "5"));
my_display("MessageRow",(tType == "6"));
my_display("PluginNameRow",(tType == "8"));
my_display("RecDirRow",(tType == "5"));
my_display("ValuesRow",(tType != "1" && tType!="7"));
focusNMark();
}
function onEventChange2()
{
tType=document.f.rep.value;
my_display("WeekdaysRow",(tType == "256"));
my_display("repcountRow",!(tType == "0"));
}
function onApidDefChange()
{
if(document.f.apcf.checked == true)
{
document.f.apst.checked=false;
document.f.apal.checked=false;
document.f.apac.checked=false;
}
}
function onApidChange()
{
if(document.f.apst.checked == true ||
document.f.apal.checked == true ||
document.f.apac.checked == true)
document.f.apcf.checked=false;
}
function do_submit()
{
show_waitbox(true);
document.f.submit();
}
function obj_set_select_value(_obj_name, _value)
{
var _obj = document.getElementById(_obj_name);
if(_obj){
for(i=0;i<_obj.length;i++)
if(_obj.options[i].value == _value)
_obj.selectedIndex=i;
}
}
function init()
{
onEventChange();
onEventChange2();
var rd="{=timer_recordingDir=}";
obj_set_select_value("rec_dir", rd);
}
//]]>
</script>
</head>
<body onload="init()">
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Live_Timer-Timer=}{=var-set:menu={=L:live.timer_edit.timer=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form method="get" class="y_form" name="f" action="/fb/timer.dbox2">
<input type="hidden" name="action" value="{=typ=}"/>
<input name="id" type="hidden" value="{=timerId=}"/>
<table border="0" width="100%">
<tr><td colspan="2" class="y_form_header">{=L:live.timer_edit.timer=}</td></tr>
<tr>
<td>{=L:live.timer_edit.type=}</td>
<td> <select name="type" onchange="onEventChange();">
{=timertype=}
</select>
</td>
</tr>
<tr><td colspan="2" class="y_form_header">{=L:live.timer_edit.times=}</td></tr>
<tr>
<td>{=L:live.timer_edit.alarm_date=}</td>
<td><input type="text" name="ad" value="{=alarm_mday=}" size="2" maxlength="2"/>
.&nbsp;<input type="text" name="amo" value="{=alarm_mon=}" size="2" maxlength="2"/>
.&nbsp;<input type="text" name="ay" value="{=alarm_year=}" size="4" maxlength="4"/>
&nbsp;{=L:live.timer_edit.time=}&nbsp;<input type="text" name="ah" value="{=alarm_hour=}" size="2" maxlength="2"/>
&nbsp;:&nbsp;<input type="text" name="ami" value="{=alarm_min=}" size="2" maxlength="2"/>
</td>
</tr>
<tr id="StopDateRow">
<td>{=L:live.timer_edit.stop_date=}</td>
<td><input type="text" name="sd" value="{=stop_mday=}" size="2" maxlength="2"/>
.&nbsp;<input type="text" name="smo" value="{=stop_mon=}" size="2" maxlength="2"/>
.&nbsp;<input type="text" name="sy" value="{=stop_year=}" size="4" maxlength="4"/>
&nbsp;{=L:live.timer_edit.time=}&nbsp;<input type="text" name="sh" value="{=stop_hour=}" size="2" maxlength="2"/>
&nbsp;:&nbsp;<input type="text" name="smi" value="{=stop_min=}" size="2" maxlength="2"/>
</td>
</tr>
<tr>
<td>{=L:live.timer_edit.repeat=}</td>
<td><select name="rep" onchange="onEventChange2();">
{=repeat=}
</select>
</td>
</tr>
<tr id="repcountRow" style="display:none;">
<td>{=L:live.timer_edit.repeat1=}</td>
<td><input type="text" name="repcount" id="repcount" value="{=timer_repeatCount=}" size="4" maxlength="3"/>
</td>
</tr>
<tr id="WeekdaysRow" style="display:none;">
<td>{=L:live.timer_edit.weekdays=}</td>
<td><input type="text" name="wd" value="{=weekdays=}" size="7" maxlength="7"/> {=L:live.timer_edit.weekdays.format=}
</td>
</tr>
<tr id="ValuesRow" style="display:none"><td colspan="2" class="y_form_header">{=L:live.timer_edit.values=}</td></tr>
<tr id="ProgramRow" style="display:none">
<td>{=L:live.timer_edit.channel=}</td>
<td><select name="channel_id">
{=program_row=}
</select>
</td>
</tr>
<tr id="ApidRow" style="display:none">
<td>{=L:live.timer_edit.apids=}:</td>
<td><input type="checkbox" name="apcf" onchange="onApidDefChange();" {=if-equal:{=TIMERD_APIDS_CONF=}~y~checked="checked"=}/>{=L:live.timer_edit.apids.default=}
<input type="checkbox" name="apst" onchange="onApidChange();" {=if-equal:{=TIMERD_APIDS_STD=}~y~checked="checked"=}/>{=L:live.timer_edit.apids.standard=}
<input type="checkbox" name="apal" onchange="onApidChange();" {=if-equal:{=TIMERD_APIDS_ALT=}~y~checked="checked"=}/>{=L:live.timer_edit.apids.alt=}
<input type="checkbox" name="apac" onchange="onApidChange();" {=if-equal:{=TIMERD_APIDS_AC3=}~y~checked="checked"=}/>{=L:live.timer_edit.apids.ac3=}
</td>
</tr>
<tr id="StandbyRow" style="display:none">
<td>{=L:live.timer_edit.standby=}</td>
<td><input type="radio" name="sbon" value="1" {=if-equal:{=standby=}~1~~checked="checked"=}/>{=L:on=}
<input type="radio" name="sbon" value="0" {=if-equal:{=standby=}~0~~checked="checked"=}/>{=L:off=}
</td>
</tr>
<tr id="MessageRow" style="display:none">
<td>{=L:live.timer_edit.message=}</td>
<td><input type="text" name="msg" value="{=message=}" size="20" maxlength="30"/> ('/'=NL)
</td>
</tr>
<tr id="PluginNameRow" style="display:none">
<td>{=L:live.timer_edit.plugin=}</td>
<td><input type="text" name="PluginName" value="{=pluginname=}" size="20" maxlength="30"/>
</td>
</tr>
<tr id="RecDirRow" style="display:none">
<td>{=L:live.timer_edit.rec_dir=}:</td>
<td>
{=include-block:Y_neutrino_Blocks.txt;neutrino_list_record_dirs=}
</td>
</tr>
</table>
<br/>
<!-- <input type="button" value="speichern" title="submit and save values" onclick="do_submit()"/>-->
<button type="button" ytype="save" title="submit and save values" onclick="do_submit()">{=L:save=}</button>
<button type="button" ytype="cancel" title="cancel" onclick='window.document.location.href="/Y_Timer_List.yhtm"'>{=L:cancel=}</button>
</form>
</div>
</div>
</body>
</html>

View File

@@ -1,56 +0,0 @@
{=include-block:Y_Blocks.txt;head_no_charset=}
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
</head>
<body>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Live_Timer-Timer=}{=var-set:menu={=L:live.timer_edit.timer=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<table class="timer">
<tr class="timer_header">
<td>{=L:live.timer_edit.alarm_date=}</td>
<td>{=L:live.timer_edit.stop_date=}</td>
<td>{=L:live.timer_edit.repeat=}</td>
<td>{=L:live.timer_edit.repeat1=}</td>
<td>{=L:live.timer_edit.type=}</td>
<td>{=L:live.timer_edit.description=}</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
{=var-set:row=
<tr class="%ctimer">
<td>%s</td>
<td>%s</td>
<td>%s</td>
<td>%s</td>
<td>%s</td>
<td>%s</td>
<td>
<a href="/fb/timer.dbox2?action=remove&amp;id=%d">
<img src="/images/remove.png" alt="Timer l&ouml;schen"/></a>
</td>
<td>
<a href="/Y_Timer_Edit.yhtm?typ=modify&amp;tid=%d">
<img src="/images/modify.png" alt="Timer &auml;ndern"/></a>
</td>
</tr>
=}
{=func:get_timer_list {=var-get:row=}=}
<tr class="timer_footer">
<td colspan="6"><img src="/images/blank.gif" width="1" height="1"/></td>
<td>
<a href="/Y_Timer_Edit.yhtm?typ=new">
<img src="/images/new.png" alt="neuer Timer"/></a>
</td>
<td>
<a href="javascript:location.reload()">
<img src="/images/reload.png" alt="Aktualisieren"/></a>
</td>
</tr>
</table>
</div>
</div>
</body>

View File

@@ -1,40 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_submit()
{
show_waitbox(true);
document.f.su.disabled=true;
if(document.f.logotype[0].checked == true)
document.f.action="/control/exec?Y_Tools&bootlogo_upload";
else
document.f.action="/control/exec?Y_Tools&bootlogo_lcd_upload";
document.f.submit();
}
//]]>
</script>
</head>
<body>
{=var-set:wait_text=Logo wird hochgeladen (Upload).=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Settings-Boot_Logo=}{=var-set:menu=Bootlogo / LCD=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form name="f" method="post" enctype="multipart/form-data" action="/control/exec?Y_Tools&amp;bootlogo_upload">
<p>
<div style="border: 1px solid #cccccc">
<img src="/images/cross.png">&nbsp;<span><font size="2" color="Red"><b>Achtung</b>&nbsp;</font>Das Boot-Logo muss schon im Zielformat vorliegen!
</span></div>
<br />
<input type="radio" checked="checked" name="logotype" value="bootlogo_upload"/>Boot Logo<br/>
<input type="radio" name="logotype" value="bootlogo_lcd_upload"/>Boot LCD Logo<br/><br/>
<input type="file" name="F1" size="30"/>&nbsp;
<input type="button" name="su" value="hochladen" title="upload" onclick="do_submit()"/>
</p>
</form>
<br />
</div>
</div>
</body>
</html>

View File

@@ -1,95 +0,0 @@
{=var-set:cancache=yPyes=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript" src="/prototype.js"></script>
<script type="text/javascript">
//<![CDATA[
function goConfirmUrl(_meld, _url){
if (confirm(_meld)==true) goUrl(_url);
}
function goUrl(_url){
var res = trim(loadSyncURL(_url));
switch(res){
case "1": res="on"; break;
case "0": res="off"; break;
}
$("out").update(res);
}
function standby(_standby){
var _cec = (document.getElementById('checkCEC').checked == true) ? "on" : "off";
goUrl("/control/standby?"+_standby+"&cec="+_cec);
}
//]]>
</script>
</head>
<body>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-BoxControl-Control=}{=var-set:menu={=L:bc.menue.control=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form action="">
<table class="y_invisible_table" cellpadding="5" width="100%">
<tr><td class="y_form_header">{=L:bc.control.box=}</td><td class="y_form_header">{=L:bc.control.standby_mode=}</td></tr>
<tr>
<td>
<input type="button" value="{=L:bc.control.reboot=}" onclick='goUrl("/control/exec?Y_Tools&amp;yreboot");'/>
<input type="button" value="{=L:bc.control.shutdown=}" onclick='goConfirmUrl("{=L:bc.control.shutdown.ask=}","/control/shutdown");'/>
</td>
<td>
<input type="button" value="{=L:on=}" onclick='standby("on");'/>
<input type="button" value="{=L:off=}" onclick='standby("off");'/>
<input type="button" value="{=L:bc.control.status=}" onclick='goUrl("/control/standby");'/>
CEC: <input id="checkCEC" name="checkCEC" type="checkbox" checked="checked"/>
</td>
</tr>
<tr><td class="y_form_header">{=L:bc.control.playback=}</td><td class="y_form_header">{=L:bc.control.recording_mode=}</td></tr>
<tr>
<td>
<input type="button" value="{=L:on=}" onclick='goUrl("/control/zapto?startplayback");'/>
<input type="button" value="{=L:off=}" onclick='goUrl("/control/zapto?stopplayback");'/>
<input type="button" value="{=L:bc.control.status=}" onclick='goUrl("/control/zapto?statusplayback");'/>
</td>
<td>
<input type="button" value="{=L:on=}" onclick='goUrl("/control/setmode?record=start");'/>
{=comment:disable non-working rec off button~
<input type="button" value="{=L:off=}" onclick='goUrl("/control/setmode?record=stop");'/>
=}
<input type="button" value="{=L:bc.control.status=}" onclick='goUrl("/control/setmode?status");'/>
</td>
</tr>
<tr><td class="y_form_header">{=L:bc.control.epg_sectiond=}</td><td class="y_form_header">&nbsp; <!-- just a placeholder --></td></tr>
<tr>
<td>
<input type="button" value="{=L:on=}" onclick='goUrl("/control/zapto?startsectionsd");'/>
<input type="button" value="{=L:off=}" onclick='goUrl("/control/zapto?stopsectionsd");'/>
<input type="button" value="{=L:bc.control.status=}" onclick='goUrl("/control/zapto?statussectionsd");'/>
</td>
<td>
&nbsp; <!-- just a placeholder -->
</td>
</tr>
<tr><td class="y_form_header">{=L:bc.control.remote=}</td><td class="y_form_header">{=L:bc.control.live_lock=}</td></tr>
<tr>
<td>
<input type="button" value="{=L:on=}" onclick='goUrl("/control/rc?unlock");'/>
<input type="button" value="{=L:off=}" onclick='goUrl("/control/rc?lock");'/>
<input type="button" value="{=L:bc.control.status=}" onclick='goUrl("/control/rc?status");'/>
</td>
<td>
<input type="button" value="{=L:bc.control.lock=}" onclick='live_lock();' />
<input type="button" value="{=L:bc.control.unlock=}" onclick='live_unlock();' />
</td>
</tr>
</table>
</form>
</div>
</div>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-BoxControl-Control=}{=var-set:menu={=L:answer=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<div id="out"></div>
</div>
</div>
</body>
</html>

View File

@@ -1,160 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript" src="/prototype.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_start(){
$('statusline').show();
do_check();
}
function do_stop(){
$('statusline').hide();
}
/*sLog*/
var sLog_body;
var sLog_line_number;
function sLog_init(){
sLog_line_number = 0;
sLog_body=document.getElementById("slog_list");
}
function sLog_clear(){
while(sLog_body.childNodes.length > 0) {
aChild=sLog_body.firstChild;
sLog_body.removeChild(aChild);
}
sLog_line_number = 0;
}
function sLog_addRow(_body, state, action_text, state_text){
sLog_line_number++;
var mycurrent_row = y_add_row_to_table(_body, ((sLog_line_number % 2) ==0)?"a":"b" );
var __img ="/images/ok.gif";
switch (state) {
case "green": __img = "/images/accept.png"; break;
case "yellow": __img = "/images/alert.gif"; break;
case "ok": __img = "/images/accept.png"; break;
case "red": __img = "/images/remove.png"; break;
}
y_add_html_cell_to_row(mycurrent_row, "icon", "<img src='"+__img+"'>");
y_add_html_cell_to_row(mycurrent_row, "action_text", action_text);
y_add_text_cell_to_row(mycurrent_row, "state_text", state_text);
}
/*check*/
function wiki_url(_page){
return "<a href=\"http://wiki.dbox2-tuning.net/"+_page+"\" target='_blank'><b>[Help]<\/b><\/a>"
}
function do_check(){
sLog_init();
sLog_clear();
sLog_addRow(sLog_body, "ok", "yWeb Version is: {=ini-get:Y_Version.txt;version=} {=ini-get:Y_Version.txt;date=}", "ok");
/*webserver*/
var needed_nhttpd_version = "3.2.7";
var nhttpd_version = loadSyncURL("/control/info?nhttpd_version");
if(nhttpd_version.search(/error/)!=-1)
nhttpd_version = "0.0.0-unknown";
if(nhttpd_version < needed_nhttpd_version)
sLog_addRow(sLog_body, "red", "WebServer: version: "+nhttpd_version+" version needed: "+needed_nhttpd_version+" ", "fail");
else
sLog_addRow(sLog_body, "green", "WebServer: version is "+nhttpd_version, "ok");
{=if-equal:{=ini-get:%(CONFIGDIR)/nhttpd.conf;mod_auth.authenticate;false=}~false~~
sLog_addRow(sLog_body, "yellow", "WebServer: Authentication is on. ", "notice");
=}
{=if-equal:{=ini-get:%(CONFIGDIR)/nhttpd.conf;WebsiteMain.port;80=}~80~~
sLog_addRow(sLog_body, "yellow",
"WebServer: not set to Standard-Port. Actual: {=ini-get:%(CONFIGDIR)/nhttpd.conf;WebsiteMain.port;80=} "+wiki_url("Neutrino:yWeb#Webserver"), "notice");
=}
/*settings*/
{=if-empty:{=ini-get:%(CONFIGDIR)/Y-Web.conf;management_ip=}~~
sLog_addRow(sLog_body, "yellow",
"Settings: Management IP(1) is set to {=ini-get:%(CONFIGDIR)/Y-Web.conf;management_ip=} ! Your IP is {=func:get_request_data client_addr=}. "
+wiki_url("Help-Settings-yWeb"), "notice");
=}
{=if-empty:{=ini-get:%(CONFIGDIR)/Y-Web.conf;management_ip2=}~~
sLog_addRow(sLog_body, "yellow",
"Settings: Management IP(2) is set to {=ini-get:%(CONFIGDIR)/Y-Web.conf;management_ip2=} ! Your IP is {=func:get_request_data client_addr=}. "
+wiki_url("Neutrino:yWeb#yWeb"), "notice");
=}
/*programs*/
{=var-set:fbshot={=find-exec:fbshot=}=}
{=if-empty:{=var-get:fbshot=}~
sLog_addRow(sLog_body, "red", "Programs: fbshot is not installed. OSD Screenshot is disabled. ", "failed");
~
sLog_addRow(sLog_body, "green", "Programs: fbshot is installed at: {=var-get:fbshot=}. OSD Screenshot is enabled.", "ok");
=}
{=var-set:dboxshot={=find-exec:dboxshot=}=}
{=if-empty:{=var-get:dboxshot=}~
sLog_addRow(sLog_body, "red", "Programs: dboxshot is not installed. Remote &amp; OSD is disabled.", "failed");
~
sLog_addRow(sLog_body, "green", "Programs: dboxshot is installed at: {=var-get:dboxshot=}. Remote &amp; OSD is enabled.", "ok");
=}
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
{=var-set:fcp={=find-exec:fcp=}=}
{=if-empty:{=var-get:fcp=}~
sLog_addRow(sLog_body, "red", "Programs: fcp is not installed. Image flashing is disabled. ", "failed");
~
sLog_addRow(sLog_body, "green", "Programs: fcp is installed at: {=var-get:fcp=}. Image flashing is enabled.", "ok");
=}
~=}
{=var-set:ether-wake={=find-exec:ether-wake=}=}
{=if-empty:{=var-get:ether-wake=}~
sLog_addRow(sLog_body, "red", "Programs: ether-wake is not installed. Wake on LAN is disabled. ", "failed");
~
sLog_addRow(sLog_body, "green", "Programs: ether-wake is installed at: {=var-get:ether-wake=}. Wake on LAN is enabled.", "ok");
=}
/*automount*/
{=var-set:automount={=find-exec:automount=}=}
{=if-empty:{=var-get:automount=}~
sLog_addRow(sLog_body, "red", "Programs: automount is not installed. AutoMount is disabled. ", "failed");
~
sLog_addRow(sLog_body, "green", "Programs: automount is installed at: {=var-get:automount=}. AutoMount is enabled.", "ok");
=}
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
/* udp */
{=var-set:udpstreamts={=find-exec:udpstreamts=}=}
{=if-empty:{=var-get:udpstreamts=}~
sLog_addRow(sLog_body, "red", "Programs: udpstreamts is not installed. udp-streaming is disabled. ", "failed");
~
sLog_addRow(sLog_body, "green", "Programs: udpstreamts is installed at: {=var-get:udpstreamts=}. udp-streaming is enabled.", "ok");
=}
~=}
do_stop();
}
//]]>
</script>
</head>
<body>
<div class="work_box">
<div class="work_box_head">
<div class="work_box_head_h2">
{=var-set:help_url=Help-Tools-Check_Install=}{=var-set:menu={=L:tools.check_install=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<br />
<div id="statusline"><img border="0" src="/images/wait.gif" width="20" height="20" alt="wait"/>
<span id="status">collecting information</span></div>
<form method="post" name="log" action="">
<table border="0" cellspacing="0" cellpadding="4" width="100%">
<thead align="left">
<tr>
<th class="y_form_header">&nbsp;</th><th class="y_form_header">{=L:action=}</th><th class="y_form_header">{=L:status=}</th>
</tr>
</thead>
<tbody id="slog_list">
<tr><td></td></tr>
</tbody>
</table>
<br />
</form>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
window.setTimeout("do_start();",500);
//]]>
</script>
</body>
</html>

View File

@@ -1,89 +0,0 @@
{=var-set:cancache=yPConf=}
{=include-block:Y_Blocks.txt;management_check_top=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_submit()
{
if(document.f.cmd.value != "")
{
var app="false";
if(document.f.appendx.checked == true)
app="true";
_url="/control/exec?Y_Tools&cmd&"+document.f.pwd.value +"&"+app+"&'"+ document.f.cmd.value +"'";
out.location.href = _url;
document.f.cmd.value="";
}
}
function set_pwd(_pwd)
{
document.f.pwd.value = _pwd;
}
function do_clear()
{
document.co.cmds.value = "";
}
/* Cursor to end . works only with IE */
function setCaretToEnd(control)
{
if (control.createTextRange) {
var range = control.createTextRange();
range.collapse(false);
range.select();
}
else if (control.setSelectionRange) {
control.focus();
var l = control.value.length;
control.setSelectionRange(l, l);
}
}
function doUpload()
{
upload = window.open('Y_Tools_Cmd_Upload.yhtm?path='+document.f.pwd.value,'upload',"width=500,height=400,scrollbars=yes");
}
//]]>
</script>
</head>
<body>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Tools-Command_Shell=}{=var-set:menu={=L:tools.command_shell=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form name="co" action="">
<textarea name="cmds" cols="80" rows="18" title="shell output window"></textarea>
</form>
<form name="f" target="tmp" onsubmit="do_submit();return false;" action="">
<table>
<tr>
<td><input type="button" name="clear" value="{=L:clear=}" onclick="do_clear()"/></td>
<td><input type="checkbox" name="appendx" value="1" title="append output (only IE)"/>&nbsp;{=L:tools.cmd_shell.output_desc=}
<!--<input type="button" value="Upload" title="upload a file to current directory" onClick="doUpload()">-->
</td>
</tr><tr>
<td>{=L:tools.path=}:&nbsp;</td>
<td><input name="pwd" type="text" size="60" maxlength="255" value="/"/></td>
</tr><tr>
<td>{=L:tools.command=}:</td>
<td><input name="cmd" type="text" size="60" maxlength="255" title="{=L:tools.cmd.enter_command=}"/>
<input type="submit" name="submit" value="{=L:submit=}" title="{=L:tools.cmd.execute_command=}"/></td>
</tr>
</table>
</form>
</div>
</div>
<iframe height="0" width="0" scrolling="no" align="left" frameborder="0" name="out" id="out">Your Browser does not support IFrames.</iframe>
<iframe height="0" width="0" scrolling="no" align="left" frameborder="0" name="tmp" id="tmp">Your Browser does not support IFrames.</iframe>
<script language="JavaScript" type="text/javascript" >
//<![CDATA[
if(isIE)
document.f.appendx.checked = true;
window.document.f.cmd.focus();
//]]>
</script>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}

View File

@@ -1,47 +0,0 @@
{=include-block:Y_Blocks.txt;management_check_top=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript" src="/prototype.js"></script>
<script type="text/javascript" src="/Y_Flash.js"></script>
</head>
<body>
{=var-set:wait_text=Image wird erstellt (create image).=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head">
<div class="work_box_head_h2">{=var-set:help_url=Help-Tools-Image=}{=var-set:menu=Image=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<b><font size="2">Partition</font></b><br/>
<form action="/y/cgi" name="f" id="f">
{=func:get_partition_list=}
<input type="hidden" name="tmpl" value="Y_Settings_mount.yhtm"/>
<input type="hidden" name="execute" value=""/>
<input type="hidden" name="mtd_text" value=""/>
<input type="hidden" name="mtd" value=""/>
<button type="button" ytype="download" name="download" title="Generate Image for download" onclick="do_image_download()">Download</button>
<button type="button" ytype="flash" name="upload" title="go to Upload Dialog" onclick="do_image_upload_dialog()">Flash ...</button>
</form>
</div>
</div>
<div style="clear:both">&nbsp;</div>
<div class="work_box">
<div class="work_box_head"><h2>Hinweis</h2></div>
<div class="work_box_body" title="You should reboot the box before flashing">
Es ist sinnvoll die Box vor dem flashen frisch zu booten.<br/>
<button type=button ytype="reboot" title="reboot" onclick='goConfirmUrl("dbox wirklich neu starten?","/control/reboot");'>Neu starten</button>
</div>
</div>
<div style="clear:both">&nbsp;</div>
<div class="work_box" id="download_box" style="display: none;">
<div class="work_box_head"><h2>Download</h2></div>
<div class="work_box_body" title="Download your image">
<b>Das Image wurde erstellt.</b>
<p>
1) <a id="download_link" type="application/octet-stream" href=""><u>Download</u></a><br/><br/>
2) <a href='javascript:image_delete();'><u>Download fertig. Image in /tmp loeschen.</u></a>
</p>
</div>
</div>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}

View File

@@ -1,93 +0,0 @@
{=include-block:Y_Blocks.txt;management_check_top=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript" src="/prototype.js"></script>
<script type="text/javascript" src="/Y_Flash.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_image_upload_ready()
{
show_waitbox(false);
$('wait_flash').show();
loadSyncURL("/control/lcd?lock=1&clear=1&xpos=10&ypos=27&size=20&font=2&text=yWeb%20flashing&update=1");
aktiv = window.setInterval('progress_get()', 3000);
var simulate = "true";
if(!document.f.demo.checked)
simulate = "false";
window.setTimeout("out.location.href = \"/control/exec?Y_Tools&image_flash&{=mtd=}&"+simulate+"\"",1000);
}
//]]>
</script>
</head>
<body>
{=var-set:fcp={=find-exec:fcp=}=}
{=var-set:wait_text=Image wird hochgeladen (upload image).=}{=include-block:Y_Blocks.txt;snip_wait=}
<div id="wait_flash" class="ydiagfree" style="left: 100px; position: absolute; top: 100px; display: none;">
<div class="y_wait_box_visible">
<div class="y_wait_box_head"><h2>Flashing</h2></div>
<div class="y_wait_box_body">
<div style="text-align:center;white-space:nowrap;">
<div style="font-weight:bold;color:#666666;">Image wird geflasht. Nicht unterbrechen!<br/>Image will be flashed. Do not interrupt!</div>
<br/>
<input type="text" id="msg" value="" size="40" readonly="readonly" disabled="disabled"/><br/>
<img border="0" src="/images/wait.gif" width="20" height="20" alt="wait"/><br/>
</div>
<table border="0" style="margin-left:30px;margin-right:30px;">
<tr><td>Erasing</td>
<td>
<table width="250" style="border: 1px solid #0066cc;" cellspacing="0" cellpadding="0">
<tr>
<td width="0%" bgcolor="#2188e0" id="erasing_left" height="10"><img src="/images/blank.gif" height="1" width="0" alt="blank"/></td>
<td id="erasing_right" width="100%"><img src="/images/blank.gif" height="1" width="0" alt="blank"/></td>
</tr>
</table>
</td></tr>
<tr><td>Writing</td>
<td>
<table width="250" style="border: 1px solid #0066cc;" cellspacing="0" cellpadding="0">
<tr>
<td id="writing_left" width="0%" bgcolor="#2188e0" height="10"><img src="/images/blank.gif" height="1" width="0" alt="blank"/></td>
<td id="writing_right" width="100%"><img src="/images/blank.gif" height="1" width="0" alt="blank"/></td>
</tr>
</table>
</td></tr>
<tr><td>Verifying</td>
<td>
<table width="250" style="border: 1px solid #0066cc;" cellspacing="0" cellpadding="0">
<tr>
<td id="verifying_left" width="0%" bgcolor="#2188e0" height="10"><img src="/images/blank.gif" height="1" width="0" alt="blank"/></td>
<td id="verifying_right" width="100%"><img src="/images/blank.gif" height="1" width="0" alt="blank"/></td>
</tr>
</table>
</td></tr>
</table>
<div style="text-align:center;white-space:nowrap;">
Bitte warten<br/>
Please wait
</div>
</div>
</div>
</div>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Tools-Image=}{=var-set:menu=Image flashen=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<b><font size="2">Partition mtd {=mtd=}</font><br/>{=mtd_text=}</b>
{=if-empty:{=var-get:fcp=}~
<h2><br/><br/><br/><b><font color="#FF0000">fcp ist nicht installiert!</font></b></h2>
~
<form method="post" name="f" id="f" enctype="multipart/form-data" action="/control/exec?Y_Tools&amp;image_upload" target="out">
<p>
<input type="file" name="file" size="40"/><br/>
<span style="margin:0; padding:0;" title="Switch on Demo-Modus. Flashing will be simulated."><input type="checkbox" name="demo"/> Demomodus&nbsp;</span>
<button type="button" ytype="flash" title="upload and flash" name="su" onclick="do_submit()">Image flashen</button><br/>
</p>
</form>
=}
</div>
</div>
<iframe name="out" id="out" width="100%" height="200" align="left" frameborder="0">Your Browser does not support IFrames.</iframe>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}

View File

@@ -1,40 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function goUrl(_url){
var res = loadSyncURL(_url);
id("out").innerHTML = res;
}
//]]>
</script>
</head>
<body>
<div class="work_box">
<div class="work_box_head">
<div class="work_box_head_h2">{=var-set:help_url=Help-Tools-Info=}{=var-set:menu=Info=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form action="">
<table class="y_invisible_table" cellpadding="5" width="100%">
<tr><td class="y_form_header">Linux</td></tr>
<tr><td>
<input type="button" value="{=L:tools.info.show_messages=}" onclick='goUrl("/control/exec?Y_Tools&amp;kernel-stack");'/>
<input type="button" value="{=L:tools.info.processes=}" onclick='goUrl("/control/exec?Y_Tools&amp;ps");'/>
<input type="button" value="{=L:tools.info.memory=}" onclick='goUrl("/control/exec?Y_Tools&amp;free");'/>
</td></tr>
<tr><td class="y_form_header">proc</td></tr>
<tr><td>
<input type="button" value="{=L:tools.info.cpu_info=}" onclick='goUrl("/control/exec?Y_Tools&amp;proc&amp;cpuinfo");'/>
<input type="button" value="{=L:tools.info.mem_info=}" onclick='goUrl("/control/exec?Y_Tools&amp;proc&amp;meminfo");'/>
<input type="button" value="{=L:tools.info.partitions=}" onclick='goUrl("/control/exec?Y_Tools&amp;proc&amp;partitions");'/>
<input type="button" value="{=L:tools.info.mtd=}" onclick='goUrl("/control/exec?Y_Tools&amp;proc&amp;mtd");'/>
<input type="button" value="{=L:tools.info.stat=}" onclick='goUrl("/control/exec?Y_Tools&amp;proc&amp;stat");'/>
<input type="button" value="{=L:tools.info.version=}" onclick='goUrl("/control/exec?Y_Tools&amp;proc&amp;version");'/>
</td></tr>
</table>
</form>
</div>
</div>
<div id="out"></div>
</body>
</html>

View File

@@ -1,57 +0,0 @@
{=var-set:cancache=yPConf=}
{=include-block:Y_Blocks.txt;management_check_top=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_submit()
{
if(document.f.filename.value != "")
{
out.location.href = "Y_Wait.yhtm";
document.f.su.disabled=true;
yhttpd_cache_clear("yPInstall");
yhttpd_cache_clear('');
window.setTimeout("document.f.submit()",1000);
document.f.su.disabled=false;
}
else
alert("{=L:tools.yinstaller.no_file_given=}");
}
function init(){
var res=dbox_exec_tools("mtd_space");
var Ausdruck = /([^ ]*)[ ]*([^ ]*)[ ]*([^ ]*)[ ]*([^ ]*)[ ]*([^ ]*)[ ]*([^ ]*).*$/;
Ausdruck.exec(res);
var total = RegExp.$2;
var used = RegExp.$3;
var avaiable = RegExp.$4;
var percentage = RegExp.$5;
if(total != "")
str="{=L:tools.yinstaller.space.mtd=}: "+total+"kB; {=L:tools.yinstaller.space.used=}: "+used+"kB; {=L:tools.yinstaller.space.free=}: "+avaiable+"kB; {=L:tools.yinstaller.space.percentage=}: "+percentage;
else
str="{=L:tools.yinstaller.not_determine=}";
id("free").innerHTML=str;
}
//]]>div
</script>
</head>
<body onload="init()">
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Tools-yInstaller=}{=var-set:menu={=L:tools.yinstaller.head=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form name="f" method="post" enctype="multipart/form-data" action="/control/exec?Y_Tools&amp;installer" target="out">
{=L:tools.yinstaller.tar_file=}:&nbsp;<input type="file" name="filename" size="70"/>&nbsp;<br/>
<input type="button" name="su" value="{=L:tools.yinstaller.upload_install=}" onclick="do_submit()"/>
<br/><br/>
</form>
<div id="free"></div>
<div style="height:290px;width:740px;">
<iframe height="250" width="750" scrolling="auto" align="left" frameborder="0" name="out" id="out">{=L:global.no_iframes=}</iframe>
</div>
</div>
</div>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}

View File

@@ -1,107 +0,0 @@
{=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">
function cmd_popup(){
window.open('Y_Tools_Cmd.yhtm','cmd','width=720,height=470,resizable=yes');
}
function init(){
add_yExtensions('tools', 'secmenu_tools');
add_yExtensions('expert', 'secmenu_expert');
add_yExtensions('yweb', 'secmenu_yweb');
}
</script>
</head>
{=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~=}=}
{=var-set:automount={=find-exec:automount=}=}
{=var-set:ether-wake={=find-exec:ether-wake=}=}
<body onload="init()">
<div class="y_menu_sec_box">
<div class="y_menu_sec_box_head"><h2>{=L:main.tools=}</h2></div>
<div class="y_menu_sec_box_body">
<div class="y_menu_sec_section">{=L:main.tools=}</div>
<div class="y_menu_sec">
<ul id="secmenu_tools">
<li>
{=if-empty:{=var-get:automount=}~
<a href="javascript:void(0)" class="disabled" title="{=L:tools.not_installed=}">{=L:tools.automount=}</a>
~
{=var-set:m_link_href=Y_Settings_automount_liste.yhtm=}
{=var-set:m_link_desc==}
{=var-set:m_link_text={=L:tools.automount=}=}
{=include-block:Y_Blocks.txt;management_link=}
=}
</li>
<li>
{=var-set:m_link_href=Y_Settings_mount_liste.yhtm=}
{=var-set:m_link_desc={=L:tools.mounts_desc=}=}
{=var-set:m_link_text={=L:tools.mounts=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
<li>
{=var-set:m_link_href=Y_Filemgr.yhtm=}
{=var-set:m_link_desc={=L:tools.filemgr_desc=}=}
{=var-set:m_link_text={=L:tools.filemgr=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
<li>
{=if-empty:{=var-get:ether-wake=}~
<a href="javascript:void(0)" class="disabled" title="{=L:tools.not_installed=}">{=L:tools.wake_on_lan=}</a>
~
{=var-set:m_link_href=Y_Settings_wol.yhtm=}
{=var-set:m_link_desc==}
{=var-set:m_link_text={=L:tools.wake_on_lan=}=}
{=include-block:Y_Blocks.txt;management_link=}
=}
</li>
</ul>
</div>
<div class="y_menu_sec_section">{=L:tools.expert=}</div>
<div class="y_menu_sec">
<ul id="secmenu_expert">
<li>
<a target="work" title="get box infos" href="Y_Tools_Info_Menue.yhtm">{=L:main.info=}</a>
</li>
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
<li>
{=var-set:m_link_href=Y_Tools_Bootlogo.yhtm=}
{=var-set:m_link_desc==}
{=var-set:m_link_text={=L:tools.boot_logo=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
<li>
{=var-set:m_link_href=Y_Tools_Flash_Menue.yhtm=}
{=var-set:m_link_desc==}
{=var-set:m_link_text={=L:tools.image=}=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
~=}
<li>
{=var-set:m_link_href=Y_Tools_Cmd.yhtm=}
{=var-set:m_link_desc==}
{=var-set:m_link_text={=L:tools.command_shell=}=}
{=include-block:Y_Blocks.txt;management_link=}
<a class="y_menu_popup_link" title="{=L:tools.command_shell=} (popup)" href="javascript:cmd_popup()"><img src="/images/popup.png"/></a>
</li>
</ul>
</div>
<div class="y_menu_sec_section">yWeb</div>
<div class="y_menu_sec">
<ul id="secmenu_yweb">
<li>
<a target="work" href="Y_Tools_Check_Install.yhtm">{=L:tools.check_install=}</a>
</li>
<li>
{=var-set:m_link_href=Y_Tools_Installer.yhtm=}
{=var-set:m_link_desc==}
{=var-set:m_link_text=yInstaller=}
{=include-block:Y_Blocks.txt;management_link=}
</li>
</ul>
</div>
</div>
</div>
</body>
</html>

View File

@@ -1,29 +0,0 @@
{=var-set:cancache=yPyes=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function rcsim(_key)
{
if(_key == "KEY_POWER"){
var __result = trim(loadSyncURL("/control/standby"));
if (__result == "off") {
if(confirm("{=L:bc.control.shutdown.ask=}") != true)
return;
}
}
loadSyncURL("/control/rcem?"+_key);
}
//]]>
</script>
</head>
<body>
<div class="work_box" id="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url==}{=var-set:menu={=L:bc.menue.remote=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
{=include-block:Y_Blocks.txt;remote=}
</div>
</div>
</body>
</html>

View File

@@ -1,126 +0,0 @@
{=var-set:fbshot={=find-exec:fbshot=}=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript" src="/prototype.js"></script>
<script type="text/javascript">
//<![CDATA[
var enableOSD;
var enableVideo;
function checkEnable() {
enableOSD = (document.getElementById('checkOSD').checked == true) ? 1 : 0;
enableVideo = (document.getElementById('checkVideo').checked == true) ? 1 : 0;
if (enableOSD == 0 && enableVideo == 0) {
alert("{=L:bc.screenshot.checkenable=}");
return false;
}
return true;
}
function rcsim(_key) {
if(!checkEnable()) return;
if(_key == "KEY_POWER"){
var __result = trim(loadSyncURL("/control/standby"));
if (__result == "off") {
if(confirm("{=L:bc.control.shutdown.ask=}") != true)
return;
}
}
loadSyncURL("/control/rcem?" + _key);
window.setTimeout("do_snapshot()", 750);
}
function do_snapshot() {
if(!checkEnable()) return;
$('shot').hide();
$('shot').src = "";
$('buttons').hide();
$('status').show();
var filename = "screenshot";
if (id("filename").value != "") {
filename = id("filename").value;
}
if ("{=var-get:fbshot=}" != "" && enableVideo == 0)
dbox_exec_tools("fbshot fb /tmp/"+filename+".png");
else
loadSyncURL("/control/screenshot?name="+filename+"&osd="+enableOSD+"&video="+enableVideo);
do_showshot(filename);
}
function do_showshot(_filename) {
if (_filename == "")
_filename = "screenshot";
$('status').hide();
$('buttons').show();
$('shot').src = "/tmp/"+_filename+".png?"+Math.random();
$('shot').show();
}
function do_clearshot(){
$('shot').hide();
$('shot').src = "";
loadSyncURL("/control/exec?Y_Tools&screenshot_clear");
}
function do_switchrc(){
if (id('remote').style.display == 'none')
$('remote').show();
else
$('remote').hide();
do_switchrc_txt();
}
function do_switchrc_txt(){
if (id('remote').style.display == 'none')
$('switchrc').update("{=L:bc.control.remote=} {=L:show=}");
else
$('switchrc').update("{=L:bc.control.remote=} {=L:hide=}");
}
//]]>
</script>
</head>
<body onload="do_switchrc_txt(); do_snapshot();">
<div class="work_box" id="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url==}{=var-set:menu={=L:bc.menue.screenshot=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<div id="screenshot_header">
<div id="buttons" style="display: block">
<div class="left">
<button name="snapshot" ytype="snapshot" onclick="do_snapshot()">{=L:bc.screenshot.create=}</button>&nbsp;
<button name="clearshot" ytype="clearshot" onclick="do_clearshot()">{=L:bc.screenshot.delete=}</button>&nbsp;
<button name="switchrc" ytype="switchrc" onclick="do_switchrc()" id="switchrc">{=L:bc.control.remote=}</button>&nbsp;
</div>
<div class="right">
<form onsubmit="do_snapshot(); return false">
{=L:filename=}: <input type="text" value="screenshot" id="filename" size="16" />
OSD: <input id="checkOSD" name="checkOSD" type="checkbox" {=if-empty:{=osd=}~~checked="checked"=} />
TV: <input id="checkVideo" name="checkVideo" type="checkbox" {=if-empty:{=video=}~~checked="checked"=} />
</form>
</div>
<div class="clear"></div>
</div>
<div id="status" style="display: none">
<img src="/images/wait.gif" alt="{=L:bc.screenshot.wait_text=}"/>
{=L:bc.screenshot.wait_text=}
</div>
</div>
<table cellpadding="0" class="screenshot">
<tr>
<td id="remote" {=if-empty:{=noremote=}~~style="display: none"=}>
{=include-block:Y_Blocks.txt;remote=}
</td>
<td class="shot">
<img id="shot" src="" onclick="do_switchrc()" style="display: none" />
</td>
</tr>
</table>
</div>
</div>
</body>
</html>

View File

@@ -1,294 +0,0 @@
function wiki_url(_page)
{
return "<a href=\"http://wiki.dbox2-tuning.net/"+_page+"\"' target=\"_blank\"><b>[Help]<\/b><\/a>";
}
/*timer_list*/
var timer_body;
function timer_list_init()
{
timer_body=document.getElementById("timer_list");
}
function timer_list_clear()
{
while(timer_body.childNodes.length > 0)
{
aChild=timer_body.firstChild;
timer_body.removeChild(aChild);
}
document.getElementById("checkall").checked = true;
}
function timer_list_addRow(_body, i, alDate, alTime, stDate, stTime, channel_name, progName, origin)
{
var mycurrent_row = y_add_row_to_table(_body, ((i % 2) ==0)?"a":"b" );
y_add_html_cell_to_row(mycurrent_row, "settimer", '<input type="checkbox" checked="true" name="settimer">');
y_add_text_cell_to_row(mycurrent_row, "alDate", alDate);
y_add_text_cell_to_row(mycurrent_row, "alTime", alTime);
y_add_text_cell_to_row(mycurrent_row, "stDate", stDate);
y_add_text_cell_to_row(mycurrent_row, "stTime", stTime);
y_add_html_cell_to_row(mycurrent_row, "channel_name", channel_name);
y_add_html_cell_to_row(mycurrent_row, "progName", progName);
y_add_text_cell_to_row(mycurrent_row, "origin", origin);
}
/*sLog*/
var sLog_body;
var sLog_line_number;
function sLog_init()
{
sLog_line_number = 0;
sLog_body=document.getElementById("slog_list");
}
function sLog_clear()
{
while(sLog_body.childNodes.length > 0)
{
aChild=sLog_body.firstChild;
sLog_body.removeChild(aChild);
}
sLog_line_number = 0;
}
function sLog_addRow(_body, state, action_text, state_text)
{
sLog_line_number++;
var mycurrent_row = y_add_row_to_table(_body, ((sLog_line_number % 2) ==0)?"a":"b" );
var __img ="/images/info.png";
switch (state)
{
case "green": __img = "/images/accept.png"; break;
case "yellow": __img = "/images/alert.gif"; break;
case "ok": __img = "/images/info.png"; break;
case "red": __img = "/images/remove.png"; break;
}
y_add_html_cell_to_row(mycurrent_row, "icon", "<img src='"+__img+"'>");
y_add_html_cell_to_row(mycurrent_row, "action_text", action_text);
y_add_text_cell_to_row(mycurrent_row, "state_text", state_text);
}
/*request*/
function processReqChange()
{
if (g_req.readyState == 4) {
if (g_req.status == 200)
{
if (document.f.planer[0].checked == true)
{
var xml = g_req.responseXML;
var recProg_NodeList = xml.getElementsByTagName('epg_schedule')[0].childNodes;
var counter = 0;
for(i = 0; i < recProg_NodeList.length; i++)
{
var recProg_Node = recProg_NodeList[i];
if ((recProg_Node.nodeName == 'epg_schedule_entry') && (recProg_Node.getAttribute('eventtype') == 'rec'))
{
var sender = recProg_Node.getAttribute('channel');
var progStartTime = recProg_Node.getAttribute('starttime');
var progEndTime = recProg_Node.getAttribute('endtime');
var progName = getXMLNodeItemValue(recProg_Node, 'title');
progName = decodeURI(progName);
var Ausdruck = /(.*)-(.*)-(.*) (.*):(.*):(.*) +(.*)*$/;
/*convert startdate*/
Ausdruck.exec(progStartTime);
var alDate = RegExp.$3+"."+RegExp.$2+"."+RegExp.$1;
var alTime = RegExp.$4+":"+RegExp.$5;
/*convert enddate*/
Ausdruck.exec(progEndTime);
var stDate = RegExp.$3+"."+RegExp.$2+"."+RegExp.$1;
var stTime = RegExp.$4+":"+RegExp.$5;
timer_list_addRow(timer_body, i, alDate, alTime, stDate, stTime, sender, progName, "TVInfo");
if(document.f.debug.checked == true)
sLog_addRow(sLog_body, "green", "- Timer "+i+": "+alDate+" "+alTime+" "+sender+" "+progName, "analyzed");
counter++;
}
}
if(counter > 0)
sLog_addRow(sLog_body, "green", "Analyze "+counter+" Timers", "finished");
else
sLog_addRow(sLog_body, "yellow", "No Timers found", "finished");
}
else if (document.f.planer[1].checked == true)
{
var xml = g_req.responseXML;
var recProg_NodeList = xml.getElementsByTagName('item');
for(i=0;i<recProg_NodeList.length;i++)
{
var recProg_Node = recProg_NodeList[i];
var progName = getXMLNodeItemValue(recProg_Node, 'title');
var description = getXMLNodeItemValue(recProg_Node, 'description');
//FF3?Probs if(isIE)
{
var sDate = getXMLNodeItemValue(recProg_Node, 'dc:date');
var sender = getXMLNodeItemValue(recProg_Node, 'dc:subject');
}
/* else
{
var sDate = getXMLNodeItemValue(recProg_Node, 'date');
var sender = getXMLNodeItemValue(recProg_Node, 'subject');
}
*/
var tmp = progName.replace(/(.*):/,"");
progName = tmp;
var stDate ="";
/*convert startdate*/
var Ausdruck = /(.*)-(.*)-(.*)T.*$/;
Ausdruck.exec(sDate);
var alYear = RegExp.$1;
var Ausdruck = /^(.*)\.(.*) (.*):(.*) Uhr -.*$/;
Ausdruck.exec(description);
alDate = RegExp.$1+"."+RegExp.$2+"."+alYear;
alTime = RegExp.$3+":"+RegExp.$4;
var Ausdruck = /Ende (.*):(.*) Uhr.*$/;
Ausdruck.exec(description);
stTime = RegExp.$1+":"+RegExp.$2;
timer_list_addRow(timer_body, i, alDate, alTime, stDate, stTime, sender, progName, "Klack");
if(document.f.debug.checked == true)
sLog_addRow(sLog_body, "green", "- Timer "+i+": "+alDate+" "+alTime+" "+sender+" "+progName, "analyzed");
}
if(recProg_NodeList.length>0)
sLog_addRow(sLog_body, "green", "Analyze "+recProg_NodeList.length+" Timers", "finished");
else
sLog_addRow(sLog_body, "yellow", "No Timers found", "finished");
}
}
}
}
function do_analyze_tvinfo()
{
loadXMLDoc("/tmp/tvinfo.xml", processReqChange);
}
function do_analyze_klack()
{
loadXMLDoc("/tmp/klack.xml", processReqChange);
}
function do_get_tvinfo()
{
sLog_addRow(sLog_body, "ok", "TVinfo: Sync Timer", "started");
var _url = "/control/exec?Y_Tools&timer_get_tvinfo&"+_username+"&"+_password;
if(_username != "")
if(_password != "")
{
var res = loadSyncURL(_url);
if(res.search(/Connecting/)!=-1)
{
sLog_addRow(sLog_body, "green", "TVinfo: connecting "+res, "ok");
if(res.search(/empty/)!=-1)
sLog_addRow(sLog_body, "red", "TVinfo: Username and/or Password wrong. "+wiki_url("Neutrino:yWeb#Timer_Sync"), "failed");
else
sLog_addRow(sLog_body, "green", "TVinfo: Username / Password ok", "ok");
}
else
sLog_addRow(sLog_body, "red", "TVinfo: connecting. "+wiki_url("Neutrino:yWeb#Timer_Sync"), "failed");
}
else
sLog_addRow(sLog_body, "red", "TVinfo: no password given. "+wiki_url("Neutrino:yWeb#Timer_Sync"), "failed");
else
sLog_addRow(sLog_body, "red", "TVinfo: no username given. "+wiki_url("Neutrino:yWeb#Timer_Sync"), "failed");
}
function do_get_klack()
{
sLog_addRow(sLog_body, "ok", "Klack: Sync Timer", "started");
var _url = "/control/exec?Y_Tools&timer_get_klack";
var res = loadSyncURL(_url);
if(res.search(/Connecting/)!=-1)
sLog_addRow(sLog_body, "green", "Klack: connecting: "+res, "ok");
else
sLog_addRow(sLog_body, "red", "Klack: connecting. "+wiki_url("Neutrino:yWeb#Timer_Sync"), "failed");
}
function do_clear_all()
{
sLog_clear();
timer_list_clear();
}
function do_get_selected()
{
document.getElementById("wait").style.visibility="visible";
if (document.f.planer[0].checked == true)
{
do_get_tvinfo();
do_analyze_tvinfo();
}
else if (document.f.planer[1].checked == true)
{
do_get_klack();
do_analyze_klack();
}
document.getElementById("wait").style.visibility="hidden";
}
function doToogleCheckboxes()
{
var state = document.timer.checkall.checked;
var _rows = timer_body.getElementsByTagName("tr");
for(var i=0; i< _rows.length; i++)
{
var rowNode = _rows.item(i);
rowNode.firstChild.firstChild.checked = state;
}
}
/*set timer*/
function do_set_timer()
{
sLog_addRow(sLog_body, "green", "Sync Timer to box", "started");
var channel_replace = loadSyncURL("/control/exec?Y_Tools&get_synctimer_channels&" + Math.random());
if(channel_replace.length > 0)
sLog_addRow(sLog_body, "green", "Channel-Replace-List loaded "+channel_replace.length+" bytes", "ok");
else
sLog_addRow(sLog_body, "yellow", "Channel-Replace-List is empty", "notify");
var channels=0;
if(typ != "tv")
{
loadSyncURL("/control/setmode?tv");
sLog_addRow(sLog_body, "green", "Switsch to TV-Mode", "ok");
}
var _rows = timer_body.getElementsByTagName("tr");
for(var i=0; i< _rows.length; i++)
{
var rowNode = _rows.item(i);
if(rowNode.firstChild.firstChild.checked == true)
{
var channel_name = rowNode.childNodes[5].firstChild.nodeValue;
if(rowNode.childNodes[7].firstChild.nodeValue == "TVInfo")
var Ausdruck = new RegExp("(.*);"+rowNode.childNodes[5].firstChild.nodeValue+";.*","i");
else if(rowNode.childNodes[7].firstChild.nodeValue == "Klack")
var Ausdruck = new RegExp("(.*);.*;"+rowNode.childNodes[5].firstChild.nodeValue+".*","i");
else
var Ausdruck ="";
if(Ausdruck != "")
{
Ergebnis=Ausdruck.exec(channel_replace);
if(Ergebnis)
channel_name = RegExp.$1;
}
var tmpTime = rowNode.childNodes[2].firstChild.nodeValue;
var alTime = tmpTime.replace(/:/gi,".");
tmpTime = rowNode.childNodes[4].firstChild.nodeValue;
var stTime = tmpTime.replace(/:/gi,".");
var _urlt = "/control/timer?action=new&alDate="+rowNode.childNodes[1].firstChild.nodeValue
+"&alTime="+alTime
+"&stDate="+rowNode.childNodes[3].firstChild.nodeValue
+"&stTime="+stTime
+"&channel_name="+channel_name
+"&rec_dir="+document.f.rec_dir.value
+"&rs=1"
+"&update=1";
_url = encodeURI(_urlt);
loadSyncURL(_url);
channels++;
if(document.f.debug.checked)
sLog_addRow(sLog_body, "green", "Sync Timer to box url: "+_url, "added");
}
}
if(channels > 0)
sLog_addRow(sLog_body, "green", "Sync Timer to box: "+channels+" Timers added", "finished");
else
sLog_addRow(sLog_body, "yellow", "Sync Timer to box: No Timers to add", "finished");
}

View File

@@ -1,86 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript" src="/prototype.js"></script>
<script type="text/javascript" src="/Y_Tools_Timer_Sync.js"></script>
</head>
<body>
{=var-set:wait_text={=L:live.timer-sync.get_timer=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Live_Timer-Timer_Sync=}{=var-set:menu={=L:live.timer-sync.header=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form method="post" name="f" action="">
<div class="y_form_header">{=L:live.timer-sync.timer_source=}</div>
<table border="0" cellspacing="0" cellpadding="4" width="100%">
<tr>
<td>
<input type="radio" name="planer" value="TVInfo" checked="checked" {=if-empty:{=ini-get:%(CONFIGDIR)/Y-Web.conf;tvinfo_username=}~disabled~=}/>TVInfo<br/>
<input type="radio" name="planer" value="Klack" disabled="disabled" style="display: none;" {=if-empty:{=ini-get:%(CONFIGDIR)/Y-Web.conf;klack_url=}~disabled~=}/><!--Klack// -->&nbsp;
</td>
<td>
<!--
<input type="radio" name="planer" value="slave" disabled="disabled"/>Slave box<br/>
<input type="radio" name="planer" value="slave" disabled="disabled"/>Test<br/> -->
{=L:live.timer-sync.rec_dir=}:
{=include-block:Y_neutrino_Blocks.txt;neutrino_list_record_dirs=}
<br/><a href="javascript:top.top_main.prim_menu.nav('settings', 'Y_Settings_Timer.yhtm');" class="inlink">{=L:live.timer-sync.settings=}</a>&nbsp;<input type="checkbox" name="debug" value="1"/>{=L:live.timer-sync.debugging=}</td>
</tr>
</table>
<button type="button" ytype="download" name="get_selected" onclick="do_get_selected()">{=L:live.timer-sync.get_selected=}</button>
&nbsp;
<button type="button" ytype="clear" name="clear_all" onclick="do_clear_all()">{=L:live.timer-sync.clear_all=}</button>
</form>
<br/>
<form method="post" name="timer" action="">
<div class="y_form_header_oline">{=L:live.timer-sync.timer_preview=}</div>
<table class="lt_table" border="0" cellspacing="0" cellpadding="4">
<thead align="left">
<tr>
<th><input type="checkbox" checked="checked" name="checkall" onclick="doToogleCheckboxes();" id="checkall"/></th>
<th colspan="2">{=L:live.timer-sync.start_time=}</th><th colspan="2">{=L:live.timer-sync.end_time=}</th>
<th>{=L:live.timer-sync.channel=}</th><th>{=L:live.timer-sync.programm=}</th><th>{=L:live.timer-sync.source=}</th>
</tr>
</thead>
<tbody id="timer_list">
<tr><td></td></tr>
</tbody>
</table>
<div style="padding-top:2px">
<button type="button" ytype="timeadd" onclick="do_set_timer()">{=L:live.timer-sync.set_timer=}</button>&nbsp;
<button type="button" ytype="clear" name="clear_log" onclick="sLog_clear()">{=L:live.timer-sync.clear_log=}</button>
</div>
</form>
<br/>
<form method="post" name="log" action="">
<div class="y_form_header_oline">{=L:live.timer-sync.log=}</div>
<table class="lt_table" border="0" cellspacing="0" cellpadding="4">
<thead align="left">
<tr>
<th>&nbsp;</th><th>{=L:live.timer-sync.action=}</th><th>{=L:live.timer-sync.status=}</th>
</tr>
</thead>
<tbody id="slog_list">
<tr><td></td></tr>
</tbody>
</table>
<br/>
</form>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
var _username = "{=ini-get:%(CONFIGDIR)/Y-Web.conf;tvinfo_username=}";
var _password = "{=ini-get:%(CONFIGDIR)/Y-Web.conf;tvinfo_password=}";
var typ = "{=func:get_mode=}";
timer_list_init();
sLog_init();
do_clear_all();
if (document.f.planer[0].disabled == false)
document.f.planer[0].checked = true;
else if (document.f.planer[1].disabled == false)
document.f.planer[1].checked = true;
//]]>
</script>
</body>
</html>

View File

@@ -1,132 +0,0 @@
{=var-set:cancache=yPInstall=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_init(){
document.getElementById("colorBox").style.background = "#99FF33";
document.getElementById("colorBox").value = "99FF33";
document.f.zooming.selectedIndex = 1;
}
function setcolorbox(hexString){
document.getElementById("colorBox").style.background = "#"+hexString;
document.getElementById("colorBox").value = hexString;
}
function do_lcshot(){
show_waitbox(true);
window.setTimeout("do_lcshot2()", 500);
}
function do_lcshot2(){
var _shot = document.getElementById("shot");
var filename = id("file").value;
var color = document.getElementById("colorBox").value;
color = " -c "+color;
var zoom = document.f.zooming.value;
zoom = " -z "+zoom;
var comp = " -u";
if(document.f.compress.checked)
comp = "";
var gscale = "";
if(document.f.grayscale.checked)
gscale = " -g";
dbox_exec_tools("lcshot"+gscale+comp+zoom+color+" /tmp/"+filename+".png");
show_waitbox(false);
show_obj("shot", true);
_shot.src = "/tmp/"+filename+".png?"+Math.random();
}
function do_clearshot(){
window.setTimeout("do_clearshot2()", 500);
}
function do_clearshot2(){
dbox_exec_tools("fbshot_clear");
}
//]]>
</script>
</head>
<body onload="do_init()">
{=var-set:wait_text=Schnappschuss wird erstellt (take snapshot)=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-BoxControl-LCD_Screenshot=}{=var-set:menu=LCD Screenshot=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<button name="lcshot" ytype="shot" onclick="do_lcshot()">LCD-Shot</button>
<button name="clearshot" ytype="clearshot" onclick="do_clearshot()">Delete Shot</button>
&nbsp;Filename:<input value="lcd" id="file" size="16" type="text" />.png
<br />
<form name="f" class="y_form" action="">
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td colspan="3" class="y_form_header">Optionen</td>
</tr>
<tr>
<td width="30%">Displayfarbe</td>
<td width="20%">
<input type="text" id="colorBox" size="7" readonly="readonly" />
</td>
<td rowspan="4"><div id="colorTable" style="height:98px;">
<table border="0" cellpadding="0" cellspacing="1">
<tr>
<td colspan="18"></td>
</tr>
<script type="text/javascript">
//<![CDATA[
clr = new Array('00','33','66','99','CC','FF');
for(k=0;k<6;++k){
for(j=0;j<6;){
document.write('<tr>\n');
for(m=0;m<3;++m){
for(i=0;i<6;++i){
document.write('<td bgcolor=#'+clr[k]+clr[j+m]+clr[i]+'>');
document.write('<a href="javascript:void(null)" ');
document.write('onClick="setcolorbox(\''+clr[k]+clr[j+m]+clr[i]+'\')\;">');
document.write('<img src="../images/blank.gif" width="12" height="8" border="0"></a></td>\n');
}
}
j+=3;
document.write('</tr>\n');
}
}
//]]>
</script>
</table>
</div></td>
</tr>
<tr>
<td>Zoommodus</td>
<td><select name="zooming" title="zoomfactor">
<option value="1">100%</option>
<option value="2">200%</option>
<option value="3">300%</option>
<option value="4">400%</option>
</select></td>
</tr>
<tr>
<td>Dateiausgabe</td>
<td><input name="compress" type="checkbox" checked="checked" />
komprimiert</td>
</tr>
<tr>
<td>Farbausgabe</td>
<td><input name="grayscale" type="checkbox" />
Grauskalenbild</td>
</tr>
<tr>
<td colspan="3" class="y_form_header">Ausgabe</td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td colspan="3"><img src="" id="shot" style="visibility:hidden;" alt="" /></td>
</tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html>

View File

@@ -1,51 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript" src="/prototype.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_snapshot(){
loadSyncURL("/control/screenshot");
window.setTimeout("do_showshot();", 3500);
}
function do_showshot(){
$('statusline').hide();
$('buttons').show();
$('shot').src = "/tmp/screenshot.png?"+Math.random();
$('shot').show();
}
function do_snapshot_again(){
$('buttons').hide();
$('statusline').show();
window.setTimeout('do_snapshot()', 100);
}
function do_clearshot(){
$('shot').hide();
loadSyncURL("/control/exec?Y_Tools&tvshot_clear");
}
//]]>
</script>
</head>
<body onload="do_snapshot();">
<div class="work_box">
<div class="work_box_head">
<div class="work_box_head_h2">
{=var-set:menu={=L:bc.menue.tv_screenshot=}=}
{=include-block:Y_Blocks.txt;work_menu=}
</div>
</div>
<div class="work_box_body">
<div style="height:30px;">
<span id="buttons" style="display: none;">
<button name="snapshot" ytype="shot" onclick="do_snapshot_again();">{=L:bc.tv.shot=}</button>
<button name="clearshot" ytype="clearshot" onclick="do_clearshot();">{=L:bc.tv.delete_shot=}</button>
</span>
<span id="statusline">
<img border="0" src="/images/wait.gif" width="20" height="20" alt="wait"/>
{=L:bc.tv.shap_wait_text=}
</span>
</div>
<img id="shot" src="" style="display: none; width: 100%; margin: 1em 0"/>
</div>
</div>
</body>
</html>

View File

@@ -1,10 +0,0 @@
/* Y_User.css - User style sheet for yWeb */
/*
body {
background-color: #eee;
}
body.iframe {
background-color: #fff;
}
*/

View File

@@ -1,275 +0,0 @@
/* VLC abstraction by yjogol
$Date: $
$Revision: $
*/
/*ie1=ActiveC, moz1=Mozilla<0.8.5.1, moz2>= 0.8.5.1*/
var CyVLC = function(_id, masterid, width, height) {
this.initialize(_id, masterid, width, height);
};
CyVLC.prototype = {
id : "vlc",
vlc : "",
plugin : "ie1",
version_string : "",
version_level1 : 0,
version_level2 : 0,
version_level3 : 0,
version_level4 : 0,
options : [],
c_masterid : "vlc_view",
c_width : 384,
c_height: 288,
c_loop : false,
c_show_display : true,
c_auto_play : false,
initialize : function(_id, masterid, width, height) {
this.id = _id;
this.c_masterid = masterid;
this.c_width = width;
this.c_height = height;
if(!isIE) {
this.version_string = this._get_version();
this._generate_sub_versions();
this._determine_plugin_generation();
}
this.insert_control();
this.vlc = id(_id);
if(isIE) {
this.version_string = this._get_version();
this._generate_sub_versions();
this._determine_plugin_generation();
}
this.set_resolution(this.c_width, this.c_height);
},
_get_version : function() {
if(isIE)
{
var vstr = this.vlc.VersionInfo;
var words = vstr.split(" ");
return words[0];
}
else if (navigator.plugins && (navigator.plugins.length > 0)) {
var numPlugins = navigator.plugins.length;
var plug_version = "0.0.0";
for(var i = 0; i < numPlugins; i++) {
var plugin = navigator.plugins[i];
var numTypes = plugin.length;
for (var j = 0; j < numTypes; j++)
{
var mimetype = plugin[j];
if (mimetype) {
if (mimetype.type.indexOf("application/x-vlc-plugin") != -1) {
if(plugin.version != 0){
plug_version = plugin.version;
break;
}
else
{
var Suche = /(PLUGIN)/gi;
var Ergebnis = Suche.test(plugin.description);
if (Ergebnis == true){
var ex = /^.*[pP]lugin [\"]*([^ \"]*)[\"]*.*$/;
var ve = ex.exec(plugin.description);
}else{
var ex = /^.*[vV]ersion [\"]*([^ \"]*)[\"]*.*$/;
var ve = ex.exec(plugin.description);
}
var Suche = /([0-9])/g;
var Ergebnis = Suche.test(ve);
if (Ergebnis == true)
plug_version = ve[1];
break;
}
}
}
}
}
return plug_version;
}
else
return "0.0.0";
},
_generate_sub_versions : function() {
if(this.version_string === "")
return;
var ex = /([^\.]*)[\.]*([^\.]*)[\.]*([^\.-]*)[\.-]*([^\.]*).*$/;
var ve = ex.exec(this.version_string);
if(ve.length >1) this.version_level1 = ve[1];
if(ve.length >2) this.version_level2 = ve[2];
if(ve.length >3 && ve[3] !== "") this.version_level3 = ve[3];
if(ve.length >4 && ve[4] !== "") this.version_level4 = ve[4];
},
_determine_plugin_generation : function() {
if(isIE)
this.plugin = "ie1";
else
if(this.version_level1 <= 0 && this.version_level2 <= 8 && this.version_level3 <= 5)
this.plugin = "moz1";
else
this.plugin = "moz2";
},
set_actual_mrl : function(mrl) {
switch(this.plugin) {
case "ie1":
this.vlc.playlistClear();
this.vlc.addTarget(mrl, this.options, 4+8, -666);
break;
case "moz2":
this.vlc.playlist.clear();
this.vlc.playlist.add(mrl, null, this.options);
break;
default:
this.vlc.clear_playlist();
this.vlc.add_item(mrl);
break;
}
},
play : function() {
switch(this.plugin) {
case "moz2": this.vlc.playlist.play();break;
default: this.vlc.play();break;
}
},
stop : function() {
switch(this.plugin) {
case "moz2": this.vlc.playlist.stop();break;
default: this.vlc.stop();break;
}
},
pause : function() {
switch(this.plugin) {
case "moz2":
if(this.vlc.playlist.isPlaying)
this.vlc.playlist.togglePause();
break;
default: this.vlc.pause(); break;
}
},
next : function() {
switch(this.plugin) {
case "moz1": this.vlc.next();break;
case "moz2": this.vlc.playlist.next();break;
default: this.vlc.playlistNext();break;
}
},
prev : function() {
switch(this.plugin) {
case "moz1": this.vlc.playlist.previous();break;
case "moz2": this.vlc.playlist.prev();break;
default: this.vlc.playlistPrev();break;
}
},
is_playing : function() {
switch(this.plugin) {
case "ie1": return this.vlc.Playing;break;
case "moz2": return this.vlc.playlist.isPlaying;break;
default: return this.vlc.isplaying();break;
}
},
toggle_fullscreen : function() {
switch(this.plugin) {
case "moz2": this.vlc.video.toggleFullscreen();break;
default: this.vlc.fullscreen();break;
}
},
set_volume : function(vol) {
switch(this.plugin) {
case "ie1": this.vlc.volume = vol;break;
case "moz2": this.vlc.audio.volume = vol;break;
default: this.vlc.set_volume(vol);break;
}
},
get_volume : function() {
switch(this.plugin) {
case "ie1": return this.vlc.volume;break;
case "moz2": return this.vlc.audio.volume;break;
default: return this.vlc.get_volume();break;
}
},
set_volume_delta : function(delta) {
var new_vol = this.get_volume() + delta;
new_vol = (new_vol >= 0) ? new_vol : 0;
new_vol = (new_vol <= 200) ? new_vol : 200;
this.set_volume(new_vol);
},
toggle_mute : function() {
switch(this.plugin) {
case "ie1": this.vlc.toggleMute();break;
case "moz2": this.vlc.audio.toggleMute();break;
default: this.vlc.mute();break;
}
},
press_key : function(key) {
switch(this.plugin) {
case "ie1":
var keyvalue = this.vlc.getVariable(key);
this.vlc.setVariable("key-pressed", keyvalue);
break;
case "moz2":
var keyvalue = this.vlc.get_int_variable(key);
this.vlc.set_int_variable("key-pressed", keyvalue);
// alert("not implemented for this version of vlc");
break;
default:
var keyvalue = this.vlc.get_int_variable(key);
this.vlc.set_int_variable("key-pressed", keyvalue);
break;
}
},
snapshot : function() {
this.press_key("key-snapshot");
},
change_audio_channel : function() {
this.press_key("key-audio-track");
},
direct_record : function() {
this.press_key("key-record");
},
set_resolution : function (w,h) {
this.vlc.width = w;
this.vlc.height = h;
this.vlc.style.width = w;
this.vlc.style.height = h;
},
have_options : function() {
switch(this.plugin) {
case "ie1":
case "moz2": return true;break;
default: return false;break;
}
},
insert_control : function()
{
var vlc_control_html = "";
if(isIE) {
vlc_control_html =
"<object classid=\"clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8\" " +
/* "<object classid=\"clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921\" " +*/
"width=\""+this.c_width+"\" height=\""+this.c_height+"\" id=\""+this.id+"\" events=\"True\">" +
"<param name='ShowDisplay' value='"+this.c_show_display+"' />" +
"<param name='Loop' value='"+this.c_loop+"' />" +
"<param name='AutoPlay' value='"+this.c_auto_play+"' />" +
/* "<param name=\"Visible\" value=\"-1\"/>" + */
"<param name='ShowDisplay' value='True'/>" +
"The VideoLan Client ActiveX is not installed.<br/>"+
"You need <a href='http://www.videolan.org' target='_blank'>VideoLan Client</a> V0.8.5 or higher.<br/>" +
"Install with Option ActiveX." +
"</object>";
}
else {
vlc_control_html = "<embed type='application/x-vlc-plugin'";
if(this.plugin == "moz2")
vlc_control_html += "version=\"VideoLAN.VLCPlugin.2\"";
vlc_control_html +=
"id='"+this.id+"'"+
"autoplay='"+this.c_auto_play+"' loop='"+this.c_loop+"' width='"+this.c_width+"' height='"+this.c_height+"'" +
"target='' >" +
"</embed>";
}
obj_update(this.c_masterid,vlc_control_html);
this.vlc = id(this.id);
}
};

View File

@@ -1,4 +0,0 @@
version=2.9.0.39
date=26.08.2016
type=Release
info=Port Tuxbox-Neutrino

View File

@@ -1,18 +0,0 @@
{=var-set:cancache=yPyes=}
{=include-block:Y_Blocks.txt;head=}
</head>
<body>
<br/>
<table class="y_wait_box_visible" cellpadding="8">
<tr>
<td>
<font color="#666666"><b>Anfrage wird bearbeitet</b></font><p align="center">
<img border="0" src="images/wait.gif"/></p>
<p align="center"><font size="2">
Bitte warten ...</font>
</td>
</tr>
</table>
</body>
</html>

View File

@@ -1,13 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>yWeb</title>
<link rel="stylesheet" type="text/css" href="/Y_Main.css" />
<link rel="stylesheet" type="text/css" href="/Y_Dist.css" />
<link rel="stylesheet" type="text/css" href="/Y_User.css" />
</head>
<body>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@@ -1,213 +0,0 @@
/* yWeb by yjogol
internal organisation of yweb
$Date$
$Revision$
*/
/* define namespace */
if(typeof(Y) == "undefined")
Y = {};
/* Class Y.yweb */
Y.yweb = new Class.create();
Object.extend(Y.yweb.prototype, {
ver_file_prop : new Hash(),
yweb_version: $H({major:'0', minor:'0', patch:'0', pre:'0'}),
yweblib_version: $H({major:'1', minor:'0', patch:'0', pre:'0'}),
prototype_version: $H({major:'0', minor:'0', patch:'0', pre:'0'}),
baselib_version: $H({major:'1', minor:'0', patch:'0', pre:'0'}),
initialize: function(){
this.ver_file_get();
split_version(this.ver_file_prop.get('version'),this.yweb_version);
split_version(Prototype.Version,this.prototype_version);
if(typeof(baselib_version)!="undefined")
split_version(baselib_version,this.baselib_version);
},
ver_file_get: function(){
var v_file=loadSyncURL("/Y_Version.txt");
var lines=v_file.split("\n");
lines.each(function(e){
var x=e.split("=");
if(x.length==2 && (x[0]!=""))
this.ver_file_prop.set(x[0],x[1]);
},this);
},
_require: function(min_version_str,check_version,is_msg,msg_text){
var v=$H();
split_version(min_version_str,v);
if (!version_le(v, check_version)) {
if (typeof(is_msg) != "undefined") alert(msg_text + min_version_str + " required");
return false;
}
else
return true;
},
require_prototype:function(min_version_str,is_msg){
return this._require(min_version_str,this.prototype_version,is_msg,"prototype-library version: ");
},
require_baselib:function(min_version_str,is_msg){
return this._require(min_version_str,this.baselib_version,is_msg,"baselib-library version: ");
},
require_yweblib:function(min_version_str,is_msg){
return this._require(min_version_str,this.yweblib_version,is_msg,"yweb-library version: ");
},
require:function(min_version_str,is_msg){
return this._require(min_version_str,this.yweb_version,is_msg,"yweb version: ");
}
});
/* main instance */
if (window == top.top_main.prim_menu) {
var yweb = new Y.yweb();
yweb.require_prototype("1.6");
}
else
if(top.top_main.prim_menu && top.top_main.prim_menu.yweb)
var yweb = top.top_main.prim_menu.yweb;
else { // should not happen!
var yweb = new Y.yweb();
yweb.require_prototype("1.6");
}
/* n/m= type, menuitem, desc, file, tag, version, url, yweb_version, info_url
* x= type, menuitem, ymenu, file, tag, version, url, yweb_version, info_url
* u=type,site,description,url
*/
/* Class Y.extension */
Y.extension = new Class.create();
Object.extend(Y.extension.prototype, {
ext_version: 1, /* ver of Y.extention*/
conf_version: 2,/* ver of local conf file */
upd_version: 2, /* ver of upd file */
file: "",
installed_extensions: [],
update_sites: [],
upd_extensions: [],
on_get_updates: null,
get_file: function(){
this.file = loadSyncURL("/control/exec?Y_Tools&get_extension_list&" + Math.random());
},
read_items: function(){
this.installed_extensions=[];
this.update_sites=[];
this.conf_version=2;
this.get_file();
if(this.file!=""){
var list = this.file.split("\n");
list.each(function(line){
var p=str_to_hash(line);
switch(p.get('type')){
case "m": case "n": case "p": case "x": case "s": case "o":
this.installed_extensions.push(p);
break;
case "u":
this.update_sites.push(p);
break;
case "v":
this.conf_version=p.get('version');
break;
}
},this);
}
},
get_updates: function(){
this.upd_extensions=[];
this.upd_version=2;
this.update_sites.each(function(e){
var update_file = loadSyncURL("/control/exec?Y_Tools&url_get&"+e.get('url')+"&ext_upt.txt&" + Math.random());
if(this.on_get_updates) this.on_get_updates(e.get('url'), (update_file.search(/wget: cannot/)!=-1) );
var list = update_file.split("\n");
list.each(function(line){
var p=str_to_hash(line);
switch(p.get('type')){
case "m": case "n": case "p": case "x": case "s": case "o":
p.set('site', e.get('site'));
this.upd_extensions.push(p);
break;
case "v":
this.upd_version=p.get('version');
break;
}
},this);
},this);
this.upd_extensions = this.upd_extensions.sortBy(function(e){return e.get('tag');});
},
build_extension_file: function(){
var ext="version:"+this.conf_version+"\n";
for (i = 0; i < this.installed_extensions.length; i++)
ext+=hash_to_str(this.installed_extensions[i])+"\n";
for(i=0;i<this.update_sites.length;i++)
ext+=hash_to_str(this.update_sites[i])+"\n";
return ext;
},
add_extension_to_installed: function(props) {
var allready_installed = false;
for(i=0;i<this.installed_extensions.length;i++){
if(this.installed_extensions[i].get('tag')==props.get('tag')){
allready_installed = true;
this.installed_extensions[i]=props;
}
}
if(!allready_installed)
this.installed_extensions.push(props);
},
install: function(item){
var res = loadSyncURL("/control/exec?Y_Tools&ext_installer&"+item.get('url'));
if(res.search(/error/)==-1)
this.add_extension_to_installed(item);
return res;
},
get_item_by_tag:function(tag){
return this.installed_extensions.find(function(e){
return e.get('tag')==tag;
},this);
},
uninstall: function(tag){
var res = loadSyncURL("/control/exec?Y_Tools&ext_uninstaller&"+tag);
if(res.search(/error/)==-1)
this.installed_extensions = this.installed_extensions.without(this.get_item_by_tag(tag));
return res;
},
select_menu: function(menu_name){
return this.installed_extensions.findAll(function(e){
return e.get('type')=="x" && e.get('ymenu')==menu_name;
},this);
},
select_type: function(_type){
return this.installed_extensions.findAll(function(e){
return e.get('type')==_type;
},this);
}
});
function add_yExtensions(_ymenu, _id) {
var menu=ext.select_menu(_ymenu);
menu.each(function(e){
var el=new Element('li').update(
new Element('a', {
'class': (_ymenu == 'main') ? 'y_menu_prim_ext' : 'y_menu_sec_ext',
'target': (_ymenu == 'main') ? 'base' : 'work',
'title': e.get('desc'),
'href': e.get('file')
}).update(e.get('menuitem'))
);
$(_id).insert({'bottom':el});
});
}
/* singleton pattern*/
if (window == top.top_main.prim_menu) {
var ext = new Y.extension();
ext.read_items();
}
else
if(top.top_main.prim_menu && top.top_main.prim_menu.ext)
var ext = top.top_main.prim_menu.ext;
else { // should not happen!
var ext = new Y.extension();
ext.read_items();
}

View File

@@ -1,55 +0,0 @@
/*
MIT-style license ...
Author: Mats Lindblad <mats[dot]lindblad[at]gmail[dot]com>
Inspiration: accordion.js found at script.aculo.us
*/
var Accordion = Class.create();
Accordion.prototype = {
initialize: function(container, options){
this.container = $(container);
this.setOptions(options);
this.togglers = this.container.select(this.options.toggler);
this.togglees = this.container.select(this.options.togglee);
this.togglees.invoke("hide");
this.togglers.each(function(t, idx){
t.observe('click', this.show.bindAsEventListener(this, idx));
}.bind(this));
this.setCurrent();
},
show: function(event, index) {
var element = Event.element(event);
if (this.open.toggler == element) return;
var current = this.open;
var next = {toggler: element, togglee: this.togglees[index]};
new Effect.Parallel([new Effect.BlindUp(current.togglee), new Effect.BlindDown(next.togglee)], {duration: 0.5});
current.toggler.removeClassName(this.options.activeClassName);
next.toggler.addClassName(this.options.activeClassName);
this.open = next;
},
setOptions: function(options){
this.options = {
toggler: '.toggler', // className of the element you click
togglee: '.togglee', // className of the element you toggle
activeClassName: 'visible', // className to put on the open elements
defaultTogglee: null
};
Object.extend(this.options, options || {});
},
setCurrent: function(){
if (this.options.defaultTogglee != null) {
this.togglees.each(function(t, idx){
if (t.id == this.options.defaultTogglee) {
t.show();
this.open = {toggler: this.togglers[idx], togglee: this.togglees[idx]};
this.togglers[idx].addClassName(this.options.activeClassName);
return;
}
}.bind(this));
}
else {
this.open = {toggler: this.togglers.first(), togglee: this.togglees.first()};
this.togglers.first().addClassName(this.options.activeClassName);
this.togglees.first().show();
}
}
};

View File

@@ -1,46 +0,0 @@
function fertig()
{
for (i=document.getElementById('channels').bchannels.length-1; i >= 0 ; i--) {
document.getElementById('channels').bchannels.options[i].selected=true;
}
document.getElementById('channels').submit();
}
function movechannels(source, destination)
{
for (i=0; i < source.length; i++) {
if (source.options[i].selected==true) {
destination.options[destination.length] = new Option(source.options[i].text, source.options[i].value);
}
}
for (i=source.length-1; i >= 0 ; i--) {
if (source.options[i].selected==true) {
source.options[i] = null;
}
}
}
function poschannel(box, direction)
{
if (direction==0) {
for (i=1; i < box.length ; i++) {
if (box.options[i].selected==true) {
buffer = new Option(box.options[i].text, box.options[i].value);
box.options[i].selected=false;
box.options[i]= new Option(box.options[i-1].text, box.options[i-1].value);
box.options[i-1]=buffer;
box.options[i-1].selected=true;
}
}
} else {
for (i=box.length-2; i >= 0 ; i--) {
if (box.options[i].selected==true) {
buffer = new Option(box.options[i].text, box.options[i].value);
box.options[i].selected=false;
box.options[i]=new Option(box.options[i+1].text, box.options[i+1].value);
box.options[i+1]=buffer;
box.options[i+1].selected=true;
}
}
}
}

View File

@@ -1,25 +0,0 @@
dbox;tvinfo;klack
#ARDx
Das Erste;ARD;ARD
Bayerisches FS;Bayern;Bayern
WDR Köln;WDR;WDR
hr-fernsehen;HR;HR
BR-alpha;Alpha;BR Alpha
SÜWEST Ferns. BW;SWR;SWR BW
#Free
Pro Sieben;Pro7;Pro7
terranova;Terra Nova;Terra Nova
Kabel 1;Kabel1;Kabel1
RTL II;RTL2;RTL2
RTL Television;RTL;RTL
Sat. 1;SAT1;Sat1
9Live;9 Live;9Live
#Kabel Deutschland
History Channel;;The History Channel
SciFi (KD);Sci Fi;SciFi
13th Street (KD);13th Street;13th Street
Wetter Fernsehen;;Wetterfernsehen
Disney Toon;;Toon Disney
Disney Toon + 1;;Toon Disney Plus

File diff suppressed because it is too large Load Diff

View File

@@ -1 +0,0 @@
type:u,site:Tuxbox-Neutrino,desc:yWeb extentions,url:https://raw.githubusercontent.com/tuxbox-neutrino/gui-yweb/master/Y_Extentions.txt

View File

@@ -1,20 +0,0 @@
# ===========================================================
# yWeb SDK: Extention Unnstaller Include
# Extention Name: boxinfo
# by yjogol
# -----------------------------------------------------------
# $Date: 2007-12-29 17:08:16 $
# $Revision: 1.2 $
# ===========================================================
yI_updatename="yWeb-Extension boxinfo (08.01.2008)"
yI_Ext_Tag="boxinfo"
yI_Ext_Version="1-0-1"
yI_uninstall_log="$y_path_tmp/uninstall_boxinfo.log"
yI_uninstaller="boxinfo_uninstall.inc"
uninstall()
{
rm $y_ywebover_dir/Y_Ext_BoxInfo.yhtm
rm $y_ywebover_dir/scripts/Y_Ext_BoxInfo.sh
}

View File

@@ -1,150 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<link rel="STYLESHEET" type="text/css" href="/ywidget.css"/>
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript" src="/prototype.js"></script>
<script type="text/javascript">
//<![CDATA[
function dbox_exec_bi(_cmd)
{
var __cmd = _cmd.replace(/ /g, "&");
return loadSyncURL("/control/exec?Y_Ext_BoxInfo&"+__cmd);
}
function dbox_exec_bi2(_cmd)
{
var __cmd = _cmd.replace(/ /g, "&");
var res=loadSyncURL("/control/exec?Y_Ext_BoxInfo&"+__cmd);
return res.gsub("\n","<br/>")
}
function do_start()
{
$('statusline').show();
do_mem();
}
function str2A(_str)
{
_str=_str.strip();
_str=_str.replace(/[\t\n]/gi," ");
_str=_str.replace(/[ ]+/gi," ");
return _str.split(" ");
}
function do_mem()
{
var yfree=dbox_exec_bi('free');
yfree=yfree.strip();
yfree = yfree.replace(/[\t\n]/gi,"");
yfree = yfree.replace(/[ ]+/gi," ");
var yfreeA=yfree.split(" ");
$('mtotal').update(yfreeA[6]);
$('mused').update(yfreeA[7]);
$('mfree').update(yfreeA[8]);
$('mswap').update(yfreeA[13]);
$('status').update("getting hardware information");
window.setTimeout("do_hardware()",100)
}
function do_hardware()
{
var res=dbox_exec_bi('avia_version');
$('aviachip').update(res);
$('box').update(dbox_exec_bi('tuxinfo -M'));
$('model').update(dbox_exec_bi('tuxinfo -V'));
var res=dbox_exec_bi('i2c');
var i2cA=res.split("\t");
$('i2c').update(i2cA[2]);
$('avswitch').update(split_left(dbox_exec_bi('avswitch')," "));
var resA=str2A(dbox_exec_bi('cpuinfo'));
$('cpu').update(resA[5]);
$('cpuclock').update(resA[8]);
$('bongomips').update(resA[21]);
$('fb').update(dbox_exec_bi('fb'));
$('status').update("getting OS and Software information");
window.setTimeout("do_sw()",100)
}
function do_sw()
{
// $('linux').update(dbox_exec_command('cat /proc/version'));
$('os').update(dbox_exec_bi('uname -s'));
$('kernel').update(dbox_exec_bi('uname -r'));
$('kerneldate').update(dbox_exec_bi('uname -v'));
$('arch').update(dbox_exec_bi('uname -m'));
var res=dbox_exec_bi('busybox_help');
$('busybox').update(split_left(res,"\n"));
$('busyboxcmd').update(split_right(res,"functions:\n"));
var res=dbox_exec_bi('proc_version');
$('status').update("Filesystem information");
window.setTimeout("do_fs()",100)
}
function do_fs()
{
$('mounts').update(dbox_exec_bi2('do_proc mounts'));
$('mtd').update(dbox_exec_bi('do_proc mtd').gsub("\n","<br/>"));
var res=dbox_exec_bi('do_proc filesystems');
res=res.gsub("nodev","");
res=res.strip();
res=res.gsub("\n",",");
$('filesystems').update(res);
$('mods').update(dbox_exec_bi2('do_proc modules'));
$('statusline').hide();
}
//]]>
</script>
<style>
.line {border-bottom: 1px solid #6D96A9;font-weight:bold}
.y_form tr {vertical-align:top;}
</style>
</head>
<body>
<div class="work_box">
<div class="work_box_head">
<div class="work_box_head_h2">{=var-set:help_url=Help-Extensions-boxinfo=}{=var-set:menu=Box Information [1.0.1]=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<div id="statusline"><img border="0" src="/images/wait.gif" width="20" height="20" alt="wait"/>
<span id="status">getting memory information</span></div>
<table class="y_form" cellpadding="1" width="100%" style="margin-right:20px">
<tr><td class="y_form_header" colspan="2">Speicher</td></tr>
<tr><td>total:</td><td><span id="mtotal">...</span></td></tr>
<tr><td>used:</td><td><span id="mused">...</span></td></tr>
<tr><td>free:</td><td><span id="mfree">...</span></td></tr>
<tr><td>swap:</td><td><span id="mswap">...</span></td></tr>
<tr><td class="y_form_header" colspan="2">Hardware</td></tr>
<tr><td>avia chip:</td><td><span id="aviachip">...</span></td></tr>
<tr><td>AV chip:</td><td><span id="avswitch">...</span></td></tr>
<tr><td>i2c:</td><td><span id="i2c">...</span></td></tr>
<tr><td>CPU:</td><td><span id="cpu">...</span></td></tr>
<tr><td>CPU Clock:</td><td><span id="cpuclock">...</span></td></tr>
<tr><td>bongomips:</td><td><span id="bongomips">...</span></td></tr>
<tr><td>Box:</td><td><span id="box">...</span></td></tr>
<tr><td>Hersteller:</td><td><span id="model">...</span></td></tr>
<tr><td>Framebuffer:</td><td><span id="fb">...</span></td></tr>
<tr><td class="y_form_header" colspan="2">OS &amp; Software</td></tr>
<tr><td>OS:</td><td><span id="os">...</span></td></tr>
<tr><td>Kernel:</td><td><span id="kernel">...</span></td></tr>
<tr><td>Kernel Date:</td><td><span id="kerneldate">...</span></td></tr>
<tr><td>Architecture:</td><td><span id="arch">...</span></td></tr>
<tr><td>Busybox Version:</td><td><span id="busybox">...</span></td></tr>
<tr><td>Busybox Commands:</td><td><span id="busyboxcmd">...</span></td></tr>
<tr><td class="y_form_header" colspan="2">Filesystem &amp; Modules</td></tr>
<tr><td>Mounts:</td><td><span id="mounts">...</span></td></tr>
<tr><td>mtd:</td><td><span id="mtd">...</span></td></tr>
<tr><td>filesystems:</td><td><span id="filesystems">...</span></td></tr>
<tr><td>modules &amp; dependencies:</td><td><span id="mods">...</span></td></tr>
</table>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
window.setTimeout("do_start();",500);
//]]>
</script>
</body>
</html>

View File

@@ -1,76 +0,0 @@
#!/bin/sh
# -----------------------------------------------------------
# BoxInfo (yjogol)
# $Date: 2007-12-29 17:08:16 $
# $Revision: 1.1 $
# -----------------------------------------------------------
do_line()
{
echo "------------------------------------------------------------------------------------"
}
do_dline()
{
echo "===================================================================================="
}
do_header()
{
do_line
echo " $1"
do_line
}
do_proc()
{
do_header "$1"
cat /proc/$2
}
do_cmd()
{
do_header "$1"
shift 1
$*
}
case "$1" in
# $2=l (long)
proc)
do_proc Kernel version
if [ "$2" == "l" ]; then
do_proc CPU cpuinfo
do_proc 'Memory usage overview' meminfo
do_proc Partitions partitions
do_proc 'mtd list' mtd
do_proc 'installed Filesystems' filesystems
do_proc 'loaded modules' modules
do_proc 'system uptime' uptime
do_cmd "kernel stack" dmesg
fi
do_cmd 'free space' df
do_cmd 'running processes' ps
do_cmd 'busybox version and installed commands' busybox --help
if [ "$2" == "l" ]; then
do_cmd 'Commands in /bin' ls /bin
do_cmd 'Commands in /sbin' ls /sbin
do_cmd 'mounts' cat /etc/fstab
if [ -e /etc/smb.conf ]; then
do_cmd 'Samba Server configuration' cat /etc/smb.conf
fi
if [ -e /etc/auto.net ]; then
do_cmd 'auto mounter configuration' cat /etc/auto.net
fi
fi
;;
avia_version) cat /proc/bus/avia_version ;;
tuxinfo) shift 1; tuxinfo $* ;;
i2c) cat /proc/bus/i2c ;;
free) free ;;
avswitch) /bin/switch ;;
cpuinfo) cat /proc/cpuinfo ;;
fb) cat /proc/fb ;;
uname) shift 1; uname $* ;;
busybox_help) busybox --help ;;
proc_version) cat /proc/version ;;
do_proc) cat /proc/$2 ;;
*)
echo "[Y_BoxInfo.sh] Parameter falsch: $*" ;;
esac

View File

@@ -1,20 +0,0 @@
# ===========================================================
# yWeb SDK: Extention Installer Include
# Extention Name: boxinfo
# by yjogol
# -----------------------------------------------------------
# $Date: 2007-12-29 10:11:37 $
# $Revision: 1.1 $
# ===========================================================
yI_updatename="yWeb-Extension boxinfo (08.01.2008)"
yI_Ext_Tag="boxinfo"
yI_Ext_Version="1-0-1"
yI_install_log="$y_path_tmp/install_boxinfo.log"
yI_uninstaller="boxinfo_uninstall.sh"
install()
{
cp -r /tmp/files/httpd/* $y_ywebover_dir
chmod 755 $y_ywebover_dir/scripts/*.sh
}

View File

@@ -1,143 +0,0 @@
# ===========================================================
# yWeb Extension: Install an Extension
# by yjogol
# -----------------------------------------------------------
# $Date: 2007-12-29 10:11:37 $
# $Revision: 1.3 $
# -----------------------------------------------------------
# Script starts in /tmp
# ===========================================================
# -----------------------------------------------------------
# Installer Configs
# -----------------------------------------------------------
yI_Version="$Revision: 1.3 $"
# -----------------------------------------------------------
# Dirs
# -----------------------------------------------------------
y_path_varbin="/var/bin"
y_path_config="%(CONFIGDIR)"
y_path_tmp="/tmp"
y_ywebover_dir="%(PUBLIC_HTTPDDIR)"
y_ext_conf_dir="$y_path_config/ext"
# -----------------------------------------------------------
# Files
# -----------------------------------------------------------
y_config_Y_Web="$y_path_config/Y-Web.conf"
y_config_nhttpd="$y_path_config/nhttpd.conf"
y_config_neutrino="$y_path_config/neutrino.conf"
y_upload_file="$y_path_tmp/upload.tmp"
# ===========================================================
# config-Dateien - lesen / schreiben
# (Zeilenformat: VarName=VarValue)
# ===========================================================
cfg=""
# -----------------------------------------------------------
# config-Datei lesen/cachen (Inhalt in $cfg)
# $1=config-Filename
# -----------------------------------------------------------
config_open()
{
cfg=""
cfg=`cat $1`
}
# -----------------------------------------------------------
# config-Datei schreiben (Inhalt in $cfg)
# $1=config-Filename
# -----------------------------------------------------------
config_write()
{
echo "$cfg" >$1
}
# -----------------------------------------------------------
# Variablenwert zurueckgeben (vorher open)
# $1=VarName
# -----------------------------------------------------------
config_get_value()
{
cmd="sed -n /^$1=/p"
tmp=`echo "$cfg" | $cmd`
cmd="sed -e s/^$1=//1"
tmp=`echo "$tmp" | $cmd`
echo $tmp
}
# -----------------------------------------------------------
# Variablenwert zurueckgeben (ohne open)
# $1=config-Filename
# $2=VarName
# -----------------------------------------------------------
config_get_value_direct()
{
config_open $1
config_get_value $2
}
# -----------------------------------------------------------
# Variablenwert setzen (vorher open)
# $1=VarName)
# $2=VarValue
# -----------------------------------------------------------
config_set_value()
{
tmp=`echo "$cfg" | sed -n "/^$1=.*/p"`
if [ "$tmp" = "" ]
then
cfg=`echo -e "$cfg\n$1=$2"`
else
cmd="sed -e s/^$1=.*/$1=$2/g"
cfg=`echo "$cfg" | $cmd`
fi
}
# -----------------------------------------------------------
# Variablenwert zurueckgeben (ohne open)
# $1=config-Filename
# $2=VarName)
# $3=VarValue
# -----------------------------------------------------------
config_set_value_direct()
{
config_open $1
config_set_value $2 $3
config_write $1
}
# ===========================================================
# Initialization
# ===========================================================
. ./install.inc
hp=`config_get_value_direct "$y_config_nhttpd" "WebsiteMain.override_directory"`
if [ "$hp" != "" ]; then
y_ywebover_dir=`echo "$hp"`
fi
mkdir -p $y_ywebover_dir
chmod -R oug+rw $y_ywebover_dir
# -----------------------------------------------------------
# prepare log
# -----------------------------------------------------------
date +%y%m%d_%H%M%S >"$yI_install_log"
echo "" >>yI_install_log
echo "installing $yI_updatename [$yI_Ext_Tag/$yI_Ext_Version]" >>"yI_install_log"
echo "installdir: $y_ywebover_dir"
# -----------------------------------------------------------
# Install (from install.inc)
# -----------------------------------------------------------
install
# -----------------------------------------------------------
# finishing
# -----------------------------------------------------------
mkdir -p $y_ext_conf_dir
chmod oug+rw $y_ext_conf_dir
chmod 755 ./uninstall*
cp ./uninstall.sh "$y_ext_conf_dir/"
cp ./*uninstall.inc "$y_ext_conf_dir/"
# -----------------------------------------------------------
# Clean Up
# -----------------------------------------------------------
cd /tmp
rm -r /tmp/files

View File

@@ -1,136 +0,0 @@
# ===========================================================
# yWeb Extension: Unnstall an Extension
# by yjogol
# -----------------------------------------------------------
# $Date: 2007-12-29 17:08:16 $
# $Revision: 1.4 $
# -----------------------------------------------------------
# Script starts in /tmp
# ===========================================================
# -----------------------------------------------------------
# Installer Configs
# -----------------------------------------------------------
yI_Version="$Revision: 1.4 $"
# -----------------------------------------------------------
# Dirs
# -----------------------------------------------------------
y_path_varbin="/var/bin"
y_path_config="%(CONFIGDIR)"
y_path_tmp="/tmp"
y_ywebover_dir="%(PUBLIC_HTTPDDIR)"
y_ext_conf_dir="$y_path_config/ext"
# -----------------------------------------------------------
# Files
# -----------------------------------------------------------
y_config_Y_Web="$y_path_config/Y-Web.conf"
y_config_nhttpd="$y_path_config/nhttpd.conf"
y_config_neutrino="$y_path_config/neutrino.conf"
y_upload_file="$y_path_tmp/upload.tmp"
# ===========================================================
# config-Dateien - lesen / schreiben
# (Zeilenformat: VarName=VarValue)
# ===========================================================
cfg=""
# -----------------------------------------------------------
# config-Datei lesen/cachen (Inhalt in $cfg)
# $1=config-Filename
# -----------------------------------------------------------
config_open()
{
cfg=""
cfg=`cat $1`
}
# -----------------------------------------------------------
# config-Datei schreiben (Inhalt in $cfg)
# $1=config-Filename
# -----------------------------------------------------------
config_write()
{
echo "$cfg" >$1
}
# -----------------------------------------------------------
# Variablenwert zurueckgeben (vorher open)
# $1=VarName
# -----------------------------------------------------------
config_get_value()
{
cmd="sed -n /^$1=/p"
tmp=`echo "$cfg" | $cmd`
cmd="sed -e s/^$1=//1"
tmp=`echo "$tmp" | $cmd`
echo $tmp
}
# -----------------------------------------------------------
# Variablenwert zurueckgeben (ohne open)
# $1=config-Filename
# $2=VarName
# -----------------------------------------------------------
config_get_value_direct()
{
config_open $1
config_get_value $2
}
# -----------------------------------------------------------
# Variablenwert setzen (vorher open)
# $1=VarName)
# $2=VarValue
# -----------------------------------------------------------
config_set_value()
{
tmp=`echo "$cfg" | sed -n "/^$1=.*/p"`
if [ "$tmp" = "" ]
then
cfg=`echo -e "$cfg\n$1=$2"`
else
cmd="sed -e s/^$1=.*/$1=$2/g"
cfg=`echo "$cfg" | $cmd`
fi
}
# -----------------------------------------------------------
# Variablenwert zurueckgeben (ohne open)
# $1=config-Filename
# $2=VarName)
# $3=VarValue
# -----------------------------------------------------------
config_set_value_direct()
{
config_open $1
config_set_value $2 $3
config_write $1
}
# ===========================================================
# Initialization
# ===========================================================
. $y_ext_conf_dir/$1
hp=`config_get_value_direct "$y_config_nhttpd" "WebsiteMain.override_directory"`
if [ "$hp" != "" ]; then
y_ywebover_dir=`echo "$hp"`
fi
mkdir -p $y_ywebover_dir
# -----------------------------------------------------------
# prepare log
# -----------------------------------------------------------
date +%y%m%d_%H%M%S >"$yI_uninstall_log"
echo "" >>"$yI_uninstall_log"
echo "uninstalling $yI_updatename [$yI_Ext_Tag/$yI_Ext_Version]" >>"$yI_uninstall_log"
#echo "installdir: $y_ywebover_dir"
# -----------------------------------------------------------
# Uninstall (from uninstal_<tag>.inc)
# -----------------------------------------------------------
uninstall
# -----------------------------------------------------------
# finishing
# -----------------------------------------------------------
rm $y_ext_conf_dir/$1
# -----------------------------------------------------------
# Clean Up
# -----------------------------------------------------------

View File

@@ -1,45 +0,0 @@
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript" src="/prototype.js"></script>
<script type="text/javascript">
//<![CDATA[
function goUrl(_cmd){
$('out').update(dbox_exec_hdd(_cmd));
}
function dbox_exec_hdd(_cmd){
var __cmd = _cmd.replace(/ /g, "&");
return loadSyncURL("/control/exec?Y_Ext_hddtools&"+__cmd);
}
//]]>
</script>
</head>
<body>
<div class="work_box">
<div class="work_box_head">
<div class="work_box_head_h2">{=var-set:help_url=Help-Extensions-hddtools=}{=var-set:menu=HDD Tools [1.0.1]=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form action="">
<table class="y_invisible_table" cellpadding="5">
<tr><td class="y_form_header">IDE Information</td></tr>
<tr><td>
<input type="button" value="Info Boot" title="show drive info from boot" onclick='goUrl("hdd_hdparm&amp;-i&amp;Info boot time");'/>
<input type="button" value="Info Drive" title="show drive info" onclick='goUrl("hdd_hdparm&amp;-I&amp;Info Drive");'/>
<input type="button" value="Identity" title="show hdd model name" onclick='goUrl("hdd_proc&amp;model&amp;Model");'/>
<input type="button" value="Settings" title="show ide settings" onclick='goUrl("hdd_proc&amp;settings&amp;IDE Settings");'/>
<input type="button" value="Driver" title="show ide settings" onclick='goUrl("hdd_proc&amp;driver&amp;IDE Driver");'/>
<input type="button" value="Settings" title="show ide settings" onclick='goUrl("hdd_proc&amp;cache&amp;IDE Cache");'/>
<input type="button" value="Geometrie" title="show ide settings" onclick='goUrl("hdd_proc&amp;geometry&amp;Disk Geometrie");'/>
</td></tr>
<tr><td class="y_form_header">Commands</td></tr>
<tr><td>
<input type="button" value="hdd sleep" title="put drive to sleep mode" onclick='goUrl("hdd_sleep");'/>
</td></tr>
</table>
</form>
</div>
</div>
<div id="out"></div>
</body>
</html>

View File

@@ -1,51 +0,0 @@
#!/bin/sh
# -----------------------------------------------------------
# HDD (yjogol)
# $Date: 2007-12-29 10:11:37 $
# $Revision: 1.1 $
# -----------------------------------------------------------
# -----------------------------------------------------------
hdd_proc1="/proc/ide/ide0/hda"
hdd_model1="$hdd_proc1/model"
hdd_settings1="$hdd_proc1/settings"
disc1="/dev/ide/host0/bus0/target0/lun0/disc"
# -----------------------------------------------------------
y_format_message_html()
{
tmp="<html><head><meta http-equiv='Content-Type' content='text/html; charset=windows-1252'>"
tmp="$tmp <link rel='stylesheet' type='text/css' href='/Y_Main.css'>"
tmp="$tmp <link rel='stylesheet' type='text/css' href='/Y_User.css'></head>"
tmp="$tmp <body><div class='work_box'><div class='work_box_head'><div class='work_box_head_h2'>Results</div></div><div class='work_box_body' style='overflow:auto'>"
tmp="$tmp <pre>\n$msg\n</pre></div></div></body></html>"
# tmp="$tmp <body><div class='y_work_box'><pre>\n$msg\n</pre></div></body></html>"
echo -e "$tmp"
}
# -----------------------------------------------------------
# Main
# -----------------------------------------------------------
case "$1" in
hdd_proc)
msg=`cat $hdd_proc1/$2`
msg="<b>$3</b><br><br>$msg"
y_format_message_html
;;
hdd_sleep)
msg=`hdparm -Y $disc1`
msg="<b>Sleep</b><br><br>$msg"
y_format_message_html
;;
hdd_hdparm)
msg=`hdparm $2 $disc1`
msg="<b>$3</b><br><br>$msg"
y_format_message_html
;;
*)
echo "[Y_HDD.sh] Parameter falsch: $*" ;;
esac

View File

@@ -1,20 +0,0 @@
# ===========================================================
# yWeb SDK: Extention Unnstaller Include
# Extention Name: hddtools
# by yjogol
# -----------------------------------------------------------
# $Date: 2007-12-29 10:11:37 $
# $Revision: 1.1 $
# ===========================================================
yI_updatename="yWeb-Extension hddtools (08.01.2008)"
yI_Ext_Tag="hddtools"
yI_Ext_Version="1-0-1"
yI_uninstall_log="$y_path_tmp/uninstall_hddtools.log"
yI_uninstaller="hddtools_uninstall.inc"
uninstall()
{
rm $y_ywebover_dir/Y_Ext_hddtools.yhtm
rm $y_ywebover_dir/scripts/Y_Ext_hddtools.sh
}

Some files were not shown because too many files have changed in this diff Show More