Cocktail Audio™ UK Support Forum

|| www.facebook.com/CocktailAudioUK || www.cocktailaudio.co.uk || www.trustpilot.com/review/cocktailaudio.co.uk ||
It is currently Sat Sep 23, 2017 9:29 am

All times are UTC


Untitled Document

Forum rules


Please don't create ANOTHER topic of a question that already exists look for an akin posts/forum.
For example 'App streaming' will be best posted under 'Supported Apps: '.
Any duplicate posts will be deleted without a reply.
This will make it easier for other users' to find solutions to their queries.



Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Tue Aug 26, 2014 1:22 pm 
Offline

Joined: Sat Aug 23, 2014 10:09 am
Posts: 8
The WebUI manual (X10 Webinterface User Guide_ver0.9_1644.pdf) encourages users to look at its source:

> The Webinterface was made in PHP with SQLite and is open to each user.
> Find the codes on your device at the dir-folder /mnt/hdd1/.http/htdocs.
> Users' can change/add and modify the web interface


It also shows that it's released under the GPLv3. This is reflected also on the "settings / hint" page on version 0.9.8.2a and on the "Settings/note" page on version 0.9.6.7.

So I was wondering, if users are encouraged to modify the web interface and it is licensed as GPL then why is the code obfuscated with Source Guardian ?

Or, should I be looking somewhere else than (hdd1/.http/htdocs) for it?


Top
 Profile  
Reply with quote  
PostPosted: Tue Aug 26, 2014 7:44 pm 
Offline
User avatar

Joined: Wed Oct 05, 2011 1:32 am
Posts: 268
You can modify the code for your device.
If it works then post it here :)
Cocktail Audio UK/GER made that clear .


Top
 Profile  
Reply with quote  
PostPosted: Wed Aug 27, 2014 10:59 am 
Offline

Joined: Sat Aug 23, 2014 10:09 am
Posts: 8
You can't modify it because it is protected with source guardian. Here is an exmple

Code:
[color=#0000FF]<?php @"SourceGuardian"; //v9.0.3
if(!function_exists('sg_load')){$__v=phpversion();$__x=explode('.',$__v);$__v2=$__x[0].'.'.(int)$__x[1];$__u=strtolower(substr(php_uname(),0,3));$__ts=(@constant('PHP_ZTS') || @constant('ZEND_THREAD_SAFE')?'ts':'');$__f=$__f0='ixed.'.$__v2.$__ts.'.'.$__u;$__ff=$__ff0='ixed.'.$__v2.'.'.(int)$__x[2].$__ts.'.'.$__u;$__ed=@ini_get('extension_dir');$__e=$__e0=@realpath($__ed);$__dl=function_exists('dl') && function_exists('file_exists') && @ini_get('enable_dl') && !@ini_get('safe_mode');if($__dl && $__e && version_compare($__v,'5.2.5','<') && function_exists('getcwd') && function_exists('dirname')){$__d=$__d0=getcwd();if(@$__d[1]==':') {$__d=str_replace('\\','/',substr($__d,2));$__e=str_replace('\\','/',substr($__e,2));}$__e.=($__h=str_repeat('/..',substr_count($__e,'/')));$__f='/ixed/'.$__f0;$__ff='/ixed/'.$__ff0;while(!file_exists($__e.$__d.$__ff) && !file_exists($__e.$__d.$__f) && strlen($__d)>1){$__d=dirname($__d);}if(file_exists($__e.$__d.$__ff)) dl($__h.$__d.$__ff); else if(file_exists($__e.$__d.$__f)) dl($__h.$__d.$__f);}if(!function_exists('sg_load') && $__dl && $__e0){if(file_exists($__e0.'/'.$__ff0)) dl($__ff0); else if(file_exists($__e0.'/'.$__f0)) dl($__f0);}if(!function_exists('sg_load')){$__ixedurl='http://www.sourceguardian.com/loaders/download.php?php_v='.urlencode($__v).'&php_ts='.($__ts?'1':'0').'&php_is='.@constant('PHP_INT_SIZE').'&os_s='.urlencode(php_uname('s')).'&os_r='.urlencode(php_uname('r')).'&os_m='.urlencode(php_uname('m'));$__sapi=php_sapi_name();if(!$__e0) $__e0=$__ed;if(function_exists('php_ini_loaded_file')) $__ini=php_ini_loaded_file(); else $__ini='php.ini';if((substr($__sapi,0,3)=='cgi')||($__sapi=='cli')||($__sapi=='embed')){$__msg="\nPHP script '".__FILE__."' is protected by SourceGuardian and requires a SourceGuardian loader '".$__f0."' to be installed.\n\n1) Download the required loader '".$__f0."' from the SourceGuardian site: ".$__ixedurl."\n2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="\n3) Edit ".$__ini." and add 'extension=".$__f0."' directive";}}$__msg.="\n\n";}else{$__msg="<html><body>PHP script '".__FILE__."' is protected by <a href=\"http://www.sourceguardian.com/\">SourceGuardian</a> and requires a SourceGuardian loader '".$__f0."' to be installed.<br><br>1) <a href=\"".$__ixedurl."\" target=\"_blank\">Click here</a> to download the required '".$__f0."' loader from the SourceGuardian site<br>2) Install the loader to ";if(isset($__d0)){$__msg.=$__d0.DIRECTORY_SEPARATOR.'ixed';}else{$__msg.=$__e0;if(!$__dl){$__msg.="<br>3) Edit ".$__ini." and add 'extension=".$__f0."' directive<br>4) Restart the web server";}}$msg.="</body></html>";}   die($__msg);exit();}}return sg_load('3CE67C0D0F7836A6AAQAAAASAAAABJAAAACABAAAAAAAAAD/Dy11se34cXotiLfI0Dw/lKFSMUWl/c4D7nmpJKBvTiDUHlQOquZmLaZiWPQ+u9vAS13JUkxL5
...cut...
/NEsIAczwTnQ1HYzfChL7NSed8NdzzSG43vrbyLDFXEAoZkNyKWhqH4ovs3hRHKKp67atvqf7AVrHpz9WuTvPQrsct2sBgP4uGKJ9wn41UWPU1SIw7qCpSWs1O6oPOw4yhqR80ZEofwao0zJCxUJMG6VAZBZtPXNOEZqEMFDb5m25f2+wAAAAA');
?>
index.php (END)[/color]


Top
 Profile  
Reply with quote  
PostPosted: Wed Aug 27, 2014 12:26 pm 
Offline
User avatar

Joined: Wed Oct 05, 2011 1:32 am
Posts: 268
Yes, @SG some but you can contact them if you want to make any changes for your own.
Or email any improvements you have & they will add them...
Older firmwares had all the php files available.
I personally prefer ionCube .


Top
 Profile  
Reply with quote  
PostPosted: Wed Aug 27, 2014 4:02 pm 
Offline

Joined: Sat Aug 23, 2014 10:09 am
Posts: 8
I can't improve the code if I can't access the source ;)

Do you know why this change was made if user changes are still encouraged? Surely this goes against it being GPL?
Are you saying email CA and they'll make a clean set of sources available ?
It seems very odd that GPL'd code will be blocked in this way.

I have a set of old firmware sources but there are more recent changes, especially the "new look" nov_new.


Top
 Profile  
Reply with quote  
PostPosted: Wed Aug 27, 2014 7:48 pm 
Offline
User avatar

Joined: Wed Oct 05, 2011 1:32 am
Posts: 268
Not really else there wouldn't be OEMs many companies use the same libs eg in C/C++ & repackage
The general Libs will always be there.
Also when you install the old FW the newly generated files don't get overwritten.
A user posted their own version on the forum 2-3 yrs ago my sql/php management stuff.

See old notes last page:
http://cocktailaudio.co.uk/firmware/X10 ... 9_1644.pdf


Top
 Profile  
Reply with quote  
PostPosted: Thu Nov 20, 2014 12:36 pm 
Offline

Joined: Sun Nov 16, 2014 12:29 pm
Posts: 5
From the GPL License "General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.

The GPL licence requires that "The “source code” for a work means the preferred form of the work for making modifications to it.".

Obfuscated code is the not the preferred form of the work for making modifications to it so please tell mewhere are the compliant versions of the PHP code?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron