New web inferface (Webif) for SamyGO
Re: New web inferface (Webif) for SamyGO 2012-04-21
Your script works excellently, just only missing to set chmod 755 for tar archive and this is important to do before to upload to forum. Else file becomes 0644 and it not being installed.
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]
DO NOT EVER INSTALL FIRMWARE UPGRADE
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]
DO NOT EVER INSTALL FIRMWARE UPGRADE
Re: New web inferface (Webif) for SamyGO 2012-04-21
just checked, all files i uploaded are 644, never cared about rights, will the preserved on upload? anyway for extracting it should not care, or?
nice style update looks realy great, just checked it, but not familiar with css, curently trying to get into php. maybe splitting of poor_webif into several modules is neccesary?
nice style update looks realy great, just checked it, but not familiar with css, curently trying to get into php. maybe splitting of poor_webif into several modules is neccesary?
Re: New web inferface (Webif) for SamyGO 2012-04-21
Yes, my fault. Not needed.DEUS wrote:just checked, all files i uploaded are 644, never cared about rights
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]
DO NOT EVER INSTALL FIRMWARE UPGRADE
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]
DO NOT EVER INSTALL FIRMWARE UPGRADE
Re: New web inferface (Webif) for SamyGO 2012-04-21
DEUS = Dark Energy Universe Simulation ? 

PN60F8500AFXZA
T-FXPAKUC 1206.3 + SamyGO
"BrickMaster 2015"
T-FXPAKUC 1206.3 + SamyGO
"BrickMaster 2015"
Re: New web inferface (Webif) for SamyGO
lol
just posted an update for moviemanager, comes still with the original, new one is 3 just for the moment, this is mainly for error checking
@spoza encoding should be better now, no additional files will be created, not neccesary anyway
drm detection slows it down maybe need to change this
@juuso found this link too but can't get it working, need to load another page in this with different encoding
still looks ugly and still do not really care
just posted an update for moviemanager, comes still with the original, new one is 3 just for the moment, this is mainly for error checking
@spoza encoding should be better now, no additional files will be created, not neccesary anyway
drm detection slows it down maybe need to change this
@juuso found this link too but can't get it working, need to load another page in this with different encoding
still looks ugly and still do not really care
Re: New web inferface (Webif) for SamyGO
Just a quick report: the encoding is still not correct... but you are on a good way 
@juuso: if the entire output of the PVR_File_Info.php is in UTF-16, it should say "UTF-16" also in the <meta> tag, not "UTF-8".
Or perhaps the other way around - keep the "UTF-8" in <meta> tag and make the entire output also in UTF-8, not UTF-16.
Anyway, the Name, Name2, Description, Genre are still displayed wrong here... Now when I know how you do it, I will do some experiments in the PHP script and post my findings.
EDIT: Okay, there something weird with IE9, it displays the INF data wrong although it detects correctly that the content is in Unicode... checked the same INF in old Seamonkey 1.19 and the extended characters are displayed correctly (except for the null characters 'padding'... is there some way to read zero-terminated string similarly to the "file_get_contents"?).

@juuso: if the entire output of the PVR_File_Info.php is in UTF-16, it should say "UTF-16" also in the <meta> tag, not "UTF-8".
Or perhaps the other way around - keep the "UTF-8" in <meta> tag and make the entire output also in UTF-8, not UTF-16.
Anyway, the Name, Name2, Description, Genre are still displayed wrong here... Now when I know how you do it, I will do some experiments in the PHP script and post my findings.
EDIT: Okay, there something weird with IE9, it displays the INF data wrong although it detects correctly that the content is in Unicode... checked the same INF in old Seamonkey 1.19 and the extended characters are displayed correctly (except for the null characters 'padding'... is there some way to read zero-terminated string similarly to the "file_get_contents"?).
PS59D6900 T-MST5DEUC-1023.0
Re: New web inferface (Webif) for SamyGO
@Spoza you where right UTF-8 was 1. try but need to use UTF-16, so wrong tag, browser detected UTF-16 all time so i did not mention. when you set encoding to UTF-16 it should be correct, is it?, maybe can you supply INF with wrong chars? and screenshot. get file contents just reads from to "offset" maybe was wrong with encoding because Inf is in LE and BE Unicode
Re: New web inferface (Webif) for SamyGO
Did a quick test with UTF-8 and it works fine for me. Just the dates/times are wrong, I will check it tomorrow, now I have to go to bed
Attached is the INF I'm testing with (it's original INF written by the TV, unmodified by other tools - to avoid eventual corruption by 3rd party tools).
You can check the dates, the correct recording date is 2012-04-13 16:36:11, duration 00:53:47.

Code: Select all
<?php
//usage http://"TV"/PVR_File_Info.php?/"full Path to inf File"
header('Content-Type: text/html; charset=UTF-8');
mb_http_output('UTF-8');
echo '<html>', PHP_EOL;
echo '<head>', PHP_EOL;
echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />', PHP_EOL;
echo '</head>', PHP_EOL;
echo '<body>', PHP_EOL;
$filename = $_SERVER["QUERY_STRING"];
echo 'Infos about '.$filename;
echo '<br />', PHP_EOL;
echo 'Station: ';
$station = file_get_contents($filename, NULL, NULL, -1, 256); //is UTF-16
echo mb_convert_encoding($station, 'UTF-8', 'UTF-16');
echo '<br />', PHP_EOL;
echo 'Name: ';
$name1 = file_get_contents($filename, NULL, NULL, 256, 256); //is UTF-16
echo mb_convert_encoding($name1, 'UTF-8', 'UTF-16');
echo '<br />', PHP_EOL;
echo 'Name 2: ';
$name2 = file_get_contents($filename, NULL, NULL, 792, 524); //is UTF-16LE
echo mb_convert_encoding($name2, 'UTF-8', 'UTF-16LE');
echo '<br />', PHP_EOL;
echo 'Description: ';
$description = file_get_contents($filename, NULL, NULL, 1782, 4600); //is UTF-16
echo mb_convert_encoding($description, 'UTF-8', 'UTF-16');
echo '<br />', PHP_EOL;
echo 'Language: ';
$language = file_get_contents($filename, NULL, NULL, 6416, 510); //is UTF-16LE
echo mb_convert_encoding($language, 'UTF-8', 'UTF-16LE');
echo '<br />', PHP_EOL;
echo 'Genre: ';
$type = file_get_contents($filename, NULL, NULL, 6926, 256); //is UTF-16LE
echo mb_convert_encoding($type, 'UTF-8', 'UTF-16LE');
echo '<br />', PHP_EOL;
echo 'Recording start: ';
$date1 = file_get_contents($filename, NULL, NULL, 772, 4); //is HEX reversed seconds
$date2 = str_split(bin2hex($date1), 2); //HEX Array
echo date('l, d-M-Y H:m:s', hexdec($date2[3].$date2[2].$date2[1].$date2[0]));
echo '<br />', PHP_EOL;
echo 'Recording duration: ';
$duration = file_get_contents($filename, NULL, NULL, 777, 3); //is HEX reversed seconds
$duration2 = str_split(bin2hex($duration), 2); //HEX Array
echo date('H:m:s', hexdec($duration2[2].$duration2[1].$duration2[0]));
echo '<br />', PHP_EOL;
echo 'Language code: ';
$lang = file_get_contents($filename, NULL, NULL, 1332, 3); //3Digit language code reversed
echo strrev($lang);
echo '<br />', PHP_EOL;
echo 'Channel: ';
$chan = file_get_contents($filename, NULL, NULL, 512, 4); //Channel Number
echo $chan;
echo '<br />', PHP_EOL;
// timer start stop /fav /lock /file info in head
echo '</body>', PHP_EOL;
echo '</html>', PHP_EOL;
?>
You can check the dates, the correct recording date is 2012-04-13 16:36:11, duration 00:53:47.
You do not have the required permissions to view the files attached to this post.
PS59D6900 T-MST5DEUC-1023.0
Re: New web inferface (Webif) for SamyGO

You do not have the required permissions to view the files attached to this post.
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]
DO NOT EVER INSTALL FIRMWARE UPGRADE
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]
DO NOT EVER INSTALL FIRMWARE UPGRADE
-
- Official SamyGO Developer
- Posts: 180
- Joined: Sun Feb 21, 2010 3:18 pm
- Location: Poland
- Contact:
Re: New web inferface (Webif) for SamyGO
It's look nice. Wish I have D-series device
I create new banner for this:



I create new banner for this:




TV LCD: Samsung LE40B651T3W (CI) | Internet@TV | fw: 2005 (patched: SamyGO v0.24 + GMT2, ArFIX2, ADFIX) | matrix: SQ04
BluRay: Samsung BD-D5300-ZF | SamsungApps | fw: 1013
Android-Box: Zidoo X8 | Realtek RTD1295 64bit (QuadCore), Mali-T820 GPU, 2 GB RAM, HDMI IN record, Android 6.0 | ZDMC 17.1
my projects: Remote LAN Control - Desktop app (v0.8) | Signal checker for DVB-T (v0.3)