Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F772184
select_license.tpl
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Feb 1, 5:34 AM
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Feb 3, 5:34 AM (35 m, 3 s)
Engine
blob
Format
Raw Data
Handle
555247
Attached To
rINP In-Portal
select_license.tpl
View Options
<?php
$
license_found =
$
this->toolkit->getSystemConfig('Intechnic', 'License');
$
license_source =
$
this->GetVar('license_source');
if ( (
$
license_source === false) &&
$
license_found ) {
$
license_source = 3;
}
if ( !
$
license_found && (!
$
license_source ||
$
license_source == 3) ) {
// when disabled option is selected -> select 1st available - open source
$
license_source = 4;
}
?>
<
tr
class
=
"table-color2"
>
<
td
class
=
"text"
>
<
input
type
=
"radio"
name
=
"license_source"
id
=
"license_source_4"
value
=
"4"
<?
php
if
($
license_source
=
=
4
)
echo
'
checked
';
?
>
>
<
label
for
=
"license_source_4"
>
GPL / Open Source License (
<
a
href
=
"http://www.in-portal.org/license"
target
=
"_blank"
>
http://www.in-portal.org/license
</
a
>
)
</
label
>
</
td
>
</
tr
>
<
tr
class
=
"table-color2"
>
<
td
class
=
"text"
>
<
input
type
=
"radio"
name
=
"license_source"
id
=
"license_source_2"
value
=
"2"
<?
php
if
($
license_source
=
=
2
)
echo
'
checked
';
?
>
>
<
label
for
=
"license_source_2"
>
Upload License File:
</
label
>
<
input
type
=
"file"
class
=
"button"
name
=
"license_file"
onclick
=
"document.getElementById('license_source_2').checked = true;"
>
</
td
>
</
tr
>
<!--
<tr class="table-color2">
<td class="text">
<input type="radio" name="license_source" id="license_source_1" value="1"<?php if (
$
license_source == 1) echo ' checked'; ?>><label for="license_source_1">Download from Intechnic Servers</label>
</td>
</tr>
-->
<
tr
class
=
"table-color2"
>
<?php
?>
<
td
class
=
"text"
>
<
input
<?
php
if
(!$
license_found
)
echo
'
disabled
=
"disabled"
';
?
>
type="radio" name="license_source" id="license_source_3" value="3"
<?php if (
$
license_source == 3) echo ' checked'; ?>
>
<
label
for
=
"license_source_3"
>
Use Existing License
</
label
>
</
td
>
</
tr
>
Event Timeline
Log In to Comment