Location: PHPKode > projects > Agile Toolkit > atk4-atk4-addons-efc6814/licensor/page/index.php
namespace licensor;
class page_index extends \Page {
    function init(){

        $this->add('View')->setHTML('Current license: <b>'.$this->api->license().'</b><br/>'.
                'Domain: <b>'.$_SERVER['HTTP_HOST'].'</b><br/>'.' Site fingerprint: <b>'.
                ->addClass('float-right atk-box ui-widget-content ui-corner-all');

        $this->add('H1')->set('License Management for Agile Toolkit');

            $this->add('P')->setHTML('<font color="red">Your PHP installation does not have openssl extension enabled. Please, enable OpenSSL support</font>');    


        $this->add('P')->set('Agile Toolkit is distributed under dual license. The same code-base is
        	available either under the terms of AGPL license or a commercial license. In either case,
        	for your copy to function properly, you need to register it. If any of the data will change after you
        		acquire your license, you can always re-issue a new one.');

        $p->add('H3')->set('Open-Source License');

        $p->add('P')->set('AGPL is a industry standard open-source license. When you are using Agile Toolkit
        	under AGPL license you must publish results of your work for your users to see. We recommend
        	you to publish your software through Github.com or a similar social coding site.');

        $p->add('P')->set('Once your code is available, you must fill out registration form below. This form will
        	send your data to www.agiletoolkit.org which will generate a "certificate" for your copy of Agile Toolkit.
        	With that certificate you can continue to use Agile Toolkit as long as you keep open-source repository


        // Detect repository location
        if(!$repo && is_readable(getcwd().'/.git/config')){
        	foreach($cf as $line){

        $f->addField('line','repo','Code Repository')->set($repo);

        $p->add('H3')->set('Commercial License');

        $p->add('P')->set('Commercial license allows you to continue using Agile Toolkit in commercial environment. You will
        	be able to use your web software publicly without disclosing your source code, however you must pay some
        	insignificant price to developers of Agile Toolkit so that we can continue to make Agile Toolkit even
        	better and more powerful for you.');

        $p->add('P')->set('If you are holder of developer license, you can "issue" additional certificate for this
        	installation, you do not need to pay anything extra.');

        $f->addField('dropdown','type','License Type')->setValueList(array(
        	'single'=>'Purchase license for this domain',
        	'devel'=>'Purchase multi-domain enterprise license',
        	'add'=>'Register under existing license'

Return current item: Agile Toolkit