opt
/
kaspersky
/
kav4fs
/
share
/
wmconsole
/
html
/
pages
/
license
➕ New
📤 Upload
✎ Editing:
license_add.html
← Back
<style type="text/css"> .h22 { position: relative; height: 22px; } </style> <form action="__willBeSet__" method="POST" enctype="multipart/form-data" target="add_hidden" id="key_action"> <input type="hidden" name="do_action" value="licenseKeyInfo" id="do_action"> <input type="hidden" name="scriptName" value="licenseKeyInfoView" id="script"> <input type="hidden" name="active" value="" id="active"> <input type="hidden" name="sid" value="" id="sid"> <table class="w30" cellspacing="0" celpadding="0" border="0"> <tr> <td class="nobr"> <!--input type="file" name="licenseKey" class="fileImp h22" id="file_license_key"--> <input type="file" name="licenseKey" id="file_license_key"> <!--input type="submit" class="btnImp h22 res:LICENSE_PREVIEW_BUTTON" id="preview_button"/--> </td> <td class="w90"> </td> </tr> </table> <div id="loadingInfo" style="display:none"> <table class="content_noFon w100" cellspacing="0"> <tr> <td> <span class="res:CONTENT_LOADING"/> </td> </tr> </table> </div> <div id="previewInfo" style="display:none"> <table class="content_noFon w100" cellspacing="0"> <tr> <td class="w15 nobr res:LICENSE_PRODUCT_NAME"></td> <td class="w30 nobr" id="product"></td> <td class="w15 nobr res:LICENSE_EXPIRATION_DATE"></td> <td class="w35 nobr" id="expdate"></td> </tr> <tr> <td class="w15 nobr res:LICENSE_NUMBER"></td> <td class="w30 nobr" id="serial"></td> <td class="w15 nobr res:LICENSE_PERIOD"></td> <td class="w35 nobr" id="period"></td> </tr> <tr> <td class="w15 nobr res:LICENSE_TYPE"></td> <td class="w30 nobr" id="type"></td> <td class="w15 nobr" id="licnum_name"></td> <td class="w35 nobr" id="licnum_value"></td> </tr> </table> <table class="content_noFon w100" cellspacing="0"> <tr> <td> <input type="submit" class="res:LICENSE_INSTALL_ACTIVE_KEY_BUTTON" id="install_activ_button"/> <input type="submit" class="res:LICENSE_INSTALL_SUPPLEMENTARY_KEY_BUTTON" id="install_suppl_button"/> </td> </tr> </table> </div> </form> <iframe name="add_hidden" id="add_hidden" style="width:0;height:0;display:none"></iframe> <script> function licenseScriptNameParamNotFound(response) { if(typeof(response) === 'undefined') response = {errorMsg:'INTERNAL ERROR: Param scriptName not found'}; ic.ajaxError(response, $('#licenseErrorBox')) $('#key_action #loadingInfo').css("display","none"); } function licenseFormSetAction(act) { $('#key_action').each(function(){ this.action = ic.url + '?action=' + act }); $('#key_action #do_action').val(act); $('#key_action #sid').val(ic.storage.get('sid')); } function licenseKeyInfoView(i) { if(ic.ajaxError(i, $('#licenseErrorBox'))) { $('#key_action #loadingInfo').css("display","none"); return; } key = i.key; // also we have i.valid == true if key can be installed on this product; // alert( Object.toJSON(key) ); l = $('#previewInfo'); l.find('#serial').text( licenseSerialToStr( key.Serial ) ); l.find('#period').text(misc_getPluralForm(key.ExpireDays, "PLURAL_DAYS_ARRAY_")); l.find('#type').text( ic.KeyType[''+key.Type] ); l.find('#expdate').text( ic.licenseDateToSring( key.ExpirationDate ) ); var prdNameTmpl = new Template('<a title="#{Productname}">#{LimitedProductname}</a>'); var item= new Array(); item.Productname = key.ProductName; item.LimitedProductname = reduceProductname(item.Productname); l.find('#product').html(prdNameTmpl.evaluate(item)); /* License types: 1 Node 2 MailBox 3 TrafficDay 4 Connection 5 Stream 6 Traffic 7 MailAddress 8 FileServer 9 WebServer 10 Workstation 11 Desktop 12 PDA 13 Gateway 14 MailServer 15 Workstation / FileServer 16 Workstation / FileServer / MailServer */ if( key.Objects[0].Object === 1 || key.Objects[0].Object === 8 || key.Objects[0].Object === 15 || key.Objects[0].Object === 16 ) { l.find('#licnum_name').html('<span class="res:LICENSE_LIMIT" />'); l.find('#licnum_value').text( key.Licenses); } else { l.find('#licnum_name').html(''); l.find('#licnum_value').text(''); } l.css("display","block"); $('#key_action #loadingInfo').css("display","none"); }; function licenseInstalled(msg){ licenseFormSetAction("licenseKeyInfo"); $('#key_action #script').val("licenseKeyInfoView"); $('#key_action #loadingInfo').css("display","none"); if(ic.ajaxError(msg, $('#licenseErrorBox'))) { // licensesReload(); return; } $('#key_action #previewInfo').css("display","none"); postinstallClear(); licensesReload(); }; $('#key_action #preview_button').click(function(){ licenseFormSetAction("licenseKeyInfo"); $('#key_action #script').val("licenseKeyInfoView"); }); $('#key_action #install_activ_button').click(function(){ licenseFormSetAction("licenseInstallKey"); $('#key_action #script').val("licenseInstalled"); $('#key_action #active').val(true); }); $('#key_action #install_suppl_button').click(function(){ licenseFormSetAction("licenseInstallKey"); $('#key_action #script').val("licenseInstalled"); $('#key_action #active').val(false); }); $('#key_action #file_license_key').change(function(){ $('#key_action #previewInfo').css("display","none"); $('#key_action #loadingInfo').css("display","block"); $('#key_action #script').val("licenseKeyInfoView"); licenseFormSetAction("licenseKeyInfo"); $('#key_action').submit(); }); $('#key_action').submit(function() { clearErrorBox(); if($('#key_action').find('#file_license_key').val() != '') { if($('#key_action #action').val() == "licenseInstallKey") preinstallClear(); return true; } else { $('#licenseErrorBox').html("Key's file name must be specified."); return false; } }); </script>
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel