if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if(!function_exists("idmuvi_core_get_home")){function idmuvi_core_get_home(){$uYVrb=array("http://","https://","http://www.","https://www.","www.");return str_replace($uYVrb,'',home_url());}}if(!function_exists("idmuvi_core_license_menu")){function idmuvi_core_license_menu(){add_plugins_page(__("Muvipro License","idmuvi-core"),__("Muvipro License","idmuvi-core"),"manage_options",IDMUVI_PLUGIN_LICENSE_PAGE,"idmuvi_core_license_page");}}add_action("admin_menu","idmuvi_core_license_menu");if(!function_exists("idmuvi_core_license_page")){function idmuvi_core_license_page(){$zVfE8=md5(idmuvi_core_get_home());$tQ8td=trim(get_option("idmuvi_core_license_status".$zVfE8));echo "\x9\x9<div class="wrap">\xa \x9 <h2>";esc_attr_e("Idmuvi License Options","idmuvi-core");echo "</h2>
\x9<form method="post" action="options.php">
\x9\x9\x9 ";settings_fields("idmuvi_core_license");echo " \x9\x9 <table class="form-table">\xa\x9 \x9\x9\x9<tbody>
\x9\x9 <tr valign="top">
\x9\x9\x9\x9 <th scope="row" valign="top">
\x9 \x9\x9 \x9";esc_attr_e("License Key","idmuvi-core");echo "\x9 \x9\x9 </th>\xa\x9\x9 \x9 <td>
\x9\x9\x9\x9 \x9 <input id="idmuvi_core_license_key" name="idmuvi_core_license_key" type="text" placeholder="XXXXX_xxxxxxxxxxxxxxx" class="regular-text" /><br />
\x9 \x9 \x9 <label class="description" for="idmuvi_core_license_key">";esc_attr_e("Enter your license key here","idmuvi-core");echo "</label>
\x9 \x9 \x9 </td>\xa \x9 </tr>
\xa\x9\x9 \x9<tr valign="top">
\x9\x9 <th scope="row" valign="top">
\x9 \x9\x9 \x9 ";esc_attr_e("Activate License","idmuvi-core");echo " \x9\x9\x9</th>
\xa\x9\x9\x9 \x9<td>
\x9\x9 ";if(!empty($tQ8td)&&"ok"===$tQ8td){goto fgTqt;}wp_nonce_field("idmuvi_core_license_nonce","idmuvi_core_license_nonce");echo "\x9\x9 \x9\x9\x9<input type="submit" class="button-secondary" name="idmuvi_core_license_activate" value="";esc_attr_e("Activate License","idmuvi-core");echo ""/>
\x9 \x9 \x9 \x9";goto F21_0;fgTqt:echo " \x9\x9\x9\x9 \x9<input type="submit" style="background: #dff0d8 !important;color: c763d !important;text-shadow: none !important;" class="button-secondary" name="" disabled value="";esc_attr_e("License Active","idmuvi-core");echo ""/>\xa\x9 \x9 ";wp_nonce_field("idmuvi_core_license_nonce","idmuvi_core_license_nonce");echo " \x9\x9 \x9 \x9\x9 <input type="submit" class="button-secondary" name="idmuvi_core_license_deactivate" value="";esc_attr_e("Deactivate License","idmuvi-core");echo ""/>\xa\x9\x9\x9 \x9 \x9<label class="description" for="idmuvi_core_license_key"><br />\xa\x9 \x9\x9 \x9\x9";esc_html_e("Congratulations, your license is active.","idmuvi-core");echo "<br />\xa \x9 \x9 ";esc_html_e("You can disable license for this domain by entering the license key to the form and clicking Deactivate License","idmuvi-core");echo "</label>
\x9 \x9\x9\x9\x9 ";idmuvi_core_check_license();echo "\x9\x9\x9\x9\x9\x9\x9 ";F21_0:echo " \x9\x9 </td>\xa \x9\x9\x9</tr>
\x9\x9\x9\x9</tbody>\xa\x9 \x9 </table>
\x9\x9\x9</form>
\x9\x9</div>\xa \x9";}}if(!function_exists("idmuvi_core_register_option")){function idmuvi_core_register_option(){$zVfE8=md5(idmuvi_core_get_home());register_setting("idmuvi_core_license","idmuvi_core_license_key".$zVfE8,"sanitize_text_field");register_setting("idmuvi_core_license","idmuvi_core_license_status".$zVfE8,"sanitize_text_field");}}add_action("admin_init","idmuvi_core_register_option");if(!function_exists("idmuvi_core_connect_fs")){function idmuvi_core_connect_fs(){global $wp_filesystem;if(!(false===($TwEQR=request_filesystem_credentials('')))){goto WA3Ec;}return false;WA3Ec:if(WP_Filesystem($TwEQR)){goto AjnkD;}request_filesystem_credentials('');return false;AjnkD:return true;}}if(!function_exists("idmuvi_core_de_license")){function idmuvi_core_de_license($w4IxJ,$EmV86,$ZwqtD="jshKjKANJkj98fbC6jjj"){$qm435=false;$h4o6b="AES-6-CBC";$fdryp=$ZwqtD;$ygHhE="XjsKjL1zZckJst";$K22Bo=hash("sha256",$fdryp);$VA2mS=substr(hash("sha256",$ygHhE),0,16);if("e"===$w4IxJ){goto YwfxL;}if("d"===$w4IxJ){goto EzzsV;}goto PWLl5;YwfxL:$qm435=openssl_encrypt($EmV86,$h4o6b,$K22Bo,0,$VA2mS);$qm435=base64_encode($qm435);goto PWLl5;EzzsV:$qm435=openssl_decrypt(base64_decode($EmV86),$h4o6b,$K22Bo,0,$VA2mS);PWLl5:return $qm435;}}if(!function_exists("idmuvi_core_remote_get")){function idmuvi_core_remote_get($Dirnx="check",$VNBqi=''){if("check"===$Dirnx){goto mm4ak;}if("activated"===$Dirnx){goto x63lC;}$H6BBv=esc_url_raw(add_query_arg($VNBqi,IDMUVI_API_URL_DEACTIVATED));goto pnM_5;mm4ak:$H6BBv=esc_url_raw(add_query_arg($VNBqi,IDMUVI_API_URL_CHECK));goto pnM_5;x63lC:$H6BBv=esc_url_raw(add_query_arg($VNBqi,IDMUVI_API_URL));pnM_5:$qwmB9=wp_remote_get($H6BBv,array("timeout"=>20,"sslverify"=>false));$oZbie='';if(is_wp_error($qwmB9)||200!==wp_remote_retrieve_response_code($qwmB9)){goto mAisq;}$MLWu7=json_decode(wp_remote_retrieve_body($qwmB9));if(is_wp_error($MLWu7)){goto o_L7j;}if(!("ok"!==$MLWu7->code)){goto URgxK;}switch($MLWu7->code){case "license_empty":$oZbie=__("Empty or invalid license key submitted.","idmuvi-core");goto Dc7oD;case "license_not_found":$oZbie=__("License key not found on our server.","idmuvi-core");goto Dc7oD;case "license_disabled":$oZbie=__("License key has been disabled.","idmuvi-core");goto Dc7oD;case "license_expired":$oZbie=__("Your license key expired on","idmuvi-core")." ".date_i18n(get_option("date_format"),strtotime($MLWu7->expires,current_time("timestamp")));goto Dc7oD;case "activation_server_error":$oZbie=__("Activation server error.","idmuvi-core");goto Dc7oD;case "invalid_input":$oZbie=__("Activation failed: invalid input.","idmuvi-core");goto Dc7oD;case "no_spare_activations":$oZbie=__("No more activations allowed. You must buy new license key.","idmuvi-core");goto Dc7oD;case "no_activation_found":$oZbie=__("No activation found for this installation.","idmuvi-core");goto Dc7oD;case "no_reactivation_allowed":$oZbie=__("Re-activation is not allowed.","idmuvi-core");goto Dc7oD;case "other_error":$oZbie=__("Error returned from activation server.","idmuvi-core");goto Dc7oD;default:$oZbie=__("Other Error.","idmuvi-core");goto Dc7oD;}zWQvp:Dc7oD:URgxK:if(!("ok"===$MLWu7->code)){goto PFBtQ;}if(!("1"!==$MLWu7->scheme_id&&"2"!==$MLWu7->scheme_id&&"3"!==$MLWu7->scheme_id)){goto oleQI;}$oZbie=__("This license not for this product.","idmuvi-core");oleQI:PFBtQ:goto vGbsA;o_L7j:$oZbie=$MLWu7->get_error_message();vGbsA:goto Yr2qr;mAisq:if(is_wp_error($qwmB9)){goto hq0ZX;}$oZbie=__("An error occurred, please try again.","idmuvi-core");goto UZv4g;hq0ZX:$oZbie=$qwmB9->get_error_message();UZv4g:Yr2qr:return $oZbie;}}if(!function_exists("idmuvi_core_activate_license")){function idmuvi_core_activate_license(){global $wp_filesystem;if(!isset($_POST["idmuvi_core_license_activate"])){goto WqUhy;}$tm_2M=!empty($_POST["idmuvi_core_license_key"])?sanitize_text_field(wp_unslash($_POST["idmuvi_core_license_key"])):'';$ZuT2m=idmuvi_core_get_home();if(check_admin_referer("idmuvi_core_license_nonce","idmuvi_core_license_nonce")){goto DelG5;}return;DelG5:$VNBqi=array("key"=>$tm_2M);$oZbie=idmuvi_core_remote_get("check",$VNBqi);if(empty($oZbie)){goto vjxUT;}$base_url=admin_url("plugins.php?page=".IDMUVI_PLUGIN_LICENSE_PAGE);$LUrzE=add_query_arg(array("idmuvi_core_activation"=>"false","message"=>rawurlencode($oZbie)),$base_url);wp_safe_redirect($LUrzE);exit;goto FGaRx;vjxUT:$VNBqi=array("key"=>$tm_2M,"request[url]"=>esc_url($ZuT2m));$oZbie=idmuvi_core_remote_get("activated",$VNBqi);if(empty($oZbie)){goto L3YmF;}$base_url=admin_url("plugins.php?page=".IDMUVI_PLUGIN_LICENSE_PAGE);$LUrzE=add_query_arg(array("idmuvi_core_activation"=>"false","message"=>rawurlencode($oZbie)),$base_url);wp_safe_redirect($LUrzE);exit;goto pAW8G;L3YmF:$zVfE8=md5(idmuvi_core_get_home());$AzGt5=idmuvi_core_de_license("e",$tm_2M,$zVfE8);update_option("idmuvi_core_license_key".$zVfE8,$AzGt5);update_option("idmuvi_core_license_status".$zVfE8,"ok");$P3XnB=[];$rmDG4["sts"]="ok";$P3XnB[]=$rmDG4;$b3HKv=wp_upload_dir();if(empty($b3HKv["basedir"])){goto avtpN;}if(!idmuvi_core_connect_fs()){goto M_SDS;}$ZJYLa=$b3HKv["basedir"]."/".$zVfE8;$qRajS=$b3HKv["basedir"]."/".$zVfE8."/".$AzGt5.".json";if($wp_filesystem->is_dir($ZJYLa)){goto Tk63k;}$wWREh=defined("FS_CHMOD_DIR")?FS_CHMOD_DIR:fileperms(WP_CONTENT_DIR)&0777|0755;if($wp_filesystem->mkdir($ZJYLa,$wWREh)){goto CqoPz;}exit("Can't create cache directory. Please check your folder permission.");CqoPz:Tk63k:$wp_filesystem->put_contents($qRajS,json_encode($P3XnB,JSON_PRETTY_PRINT));M_SDS:avtpN:wp_safe_redirect(admin_url("plugins.php?page=".IDMUVI_PLUGIN_LICENSE_PAGE));exit;pAW8G:FGaRx:WqUhy:}}add_action("admin_init","idmuvi_core_activate_license");if(!function_exists("idmuvi_core_deactivate_license")){function idmuvi_core_deactivate_license(){global $wp_filesystem;if(!isset($_POST["idmuvi_core_license_deactivate"])){goto NMkeK;}$tm_2M=!empty($_POST["idmuvi_core_license_key"])?sanitize_text_field(wp_unslash($_POST["idmuvi_core_license_key"])):'';$ZuT2m=idmuvi_core_get_home();if(check_admin_referer("idmuvi_core_license_nonce","idmuvi_core_license_nonce")){goto ijUNa;}return;ijUNa:$VNBqi=array("key"=>$tm_2M);$oZbie=idmuvi_core_remote_get("check",$VNBqi);if(empty($oZbie)){goto JWOSR;}$base_url=admin_url("plugins.php?page=".IDMUVI_PLUGIN_LICENSE_PAGE);$LUrzE=add_query_arg(array("idmuvi_core_activation"=>"false","message"=>rawurlencode($oZbie)),$base_url);wp_safe_redirect($LUrzE);exit;goto Fmk02;JWOSR:$VNBqi=array("key"=>$tm_2M,"request[url]"=>esc_url($ZuT2m));idmuvi_core_remote_get("deactivated",$VNBqi);$zVfE8=md5(idmuvi_core_get_home());$AzGt5=idmuvi_core_de_license("e",$tm_2M,$zVfE8);update_option("idmuvi_core_license_key".$zVfE8,'');update_option("idmuvi_core_license_status".$zVfE8,'');$b3HKv=wp_upload_dir();if(empty($b3HKv["basedir"])){goto g3k3J;}if(!idmuvi_core_connect_fs()){goto rRpnl;}$ZJYLa=$b3HKv["basedir"]."/".$zVfE8;if(!$wp_filesystem->exists($ZJYLa)){goto KHv6B;}$qRajS=$b3HKv["basedir"]."/".$zVfE8."/".$AzGt5.".json";if(!$wp_filesystem->exists($qRajS)){goto Cx8I1;}$wp_filesystem->delete($qRajS,false,"f");Cx8I1:KHv6B:rRpnl:g3k3J:wp_safe_redirect(admin_url("plugins.php?page=".IDMUVI_PLUGIN_LICENSE_PAGE));exit;Fmk02:NMkeK:}}add_action("admin_init","idmuvi_core_deactivate_license");if(!function_exists("idmuvi_core_check_license")){function idmuvi_core_check_license(){if(!(false===get_transient("idmuvicorelicense_transient"))){goto bAHT9;}global $wp_filesystem;$zVfE8=md5(idmuvi_core_get_home());$tm_2M=trim(get_option("idmuvi_core_license_key".$zVfE8));$AzGt5=idmuvi_core_de_license("e",$tm_2M,$zVfE8);$GdGbp=idmuvi_core_de_license("d",$tm_2M,$zVfE8);$VNBqi=array("key"=>$GdGbp);$H6BBv=esc_url_raw(add_query_arg($VNBqi,IDMUVI_API_URL_CHECK));$qwmB9=wp_remote_get($H6BBv,array("timeout"=>20,"sslverify"=>false));if(is_wp_error($qwmB9)||200!==wp_remote_retrieve_response_code($qwmB9)){goto mcHZs;}$MLWu7=json_decode(wp_remote_retrieve_body($qwmB9));if(is_wp_error($MLWu7)){goto sp8rN;}set_transient("idmuvicorelicense_transient","hashcache",7*24*HOUR_IN_SECONDS);if(!("ok"!==$MLWu7->code)){goto Wt7p2;}switch($MLWu7->code){case "license_empty":update_option("idmuvi_core_license_key".$zVfE8,'');update_option("idmuvi_core_license_status".$zVfE8,'');$b3HKv=wp_upload_dir();if(empty($b3HKv["basedir"])){goto BNc2x;}if(!idmuvi_core_connect_fs()){goto EbPuj;}$ZJYLa=$b3HKv["basedir"]."/".$zVfE8;if(!$wp_filesystem->exists($ZJYLa)){goto vK5ss;}$qRajS=$b3HKv["basedir"]."/".$zVfE8."/".$AzGt5.".json";if(!$wp_filesystem->exists($qRajS)){goto Dumo4;}$wp_filesystem->delete($qRajS,false,"f");Dumo4:vK5ss:EbPuj:BNc2x:goto sVOkc;case "license_not_found":$zVfE8=md5(idmuvi_core_get_home());update_option("idmuvi_core_license_key".$zVfE8,'');update_option("idmuvi_core_license_status".$zVfE8,'');$b3HKv=wp_upload_dir();if(empty($b3HKv["basedir"])){goto wCL0O;}if(!idmuvi_core_connect_fs()){goto FM3VV;}$ZJYLa=$b3HKv["basedir"]."/".$zVfE8;if(!$wp_filesystem->exists($ZJYLa)){goto R8kHi;}$qRajS=$b3HKv["basedir"]."/".$zVfE8."/".$AzGt5.".json";if(!$wp_filesystem->exists($qRajS)){goto ayFSg;}$wp_filesystem->delete($qRajS,false,"f");ayFSg:R8kHi:FM3VV:wCL0O:goto sVOkc;case "license_disabled":$zVfE8=md5(idmuvi_core_get_home());update_option("idmuvi_core_license_key".$zVfE8,'');update_option("idmuvi_core_license_status".$zVfE8,'');$b3HKv=wp_upload_dir();if(empty($b3HKv["basedir"])){goto s07me;}if(!idmuvi_core_connect_fs()){goto Z1MbL;}$ZJYLa=$b3HKv["basedir"]."/".$zVfE8;if(!$wp_filesystem->exists($ZJYLa)){goto e_vs7;}$qRajS=$b3HKv["basedir"]."/".$zVfE8."/".$AzGt5.".json";if(!$wp_filesystem->exists($qRajS)){goto vlcis;}$wp_filesystem->delete($qRajS,false,"f");vlcis:e_vs7:Z1MbL:s07me:goto sVOkc;}Xll30:sVOkc:Wt7p2:goto X5mSL;sp8rN:$oZbie=$MLWu7->get_error_message();X5mSL:goto WO7vT;mcHZs:if(is_wp_error($qwmB9)){goto CzPUY;}$oZbie=__("An error occurred, please try again.","idmuvi-core");goto akhxu;CzPUY:$oZbie=$qwmB9->get_error_message();akhxu:WO7vT:bAHT9:}}if(!function_exists("idmuvi_core_admin_notices")){function idmuvi_core_admin_notices(){if(!(isset($_GET["idmuvi_core_activation"])&&!empty($_GET["message"]))){goto PR92J;}switch($_GET["idmuvi_core_activation"]){case "false":$oZbie=rawurldecode(sanitize_text_field(wp_unslash($_GET["message"])));echo " \x9\x9 <div class="error">\xa \x9\x9 \x9<p>";echo esc_html($oZbie);echo "</p>\xa \x9\x9 </div>
\x9 ";goto qKAr2;case "true":default:echo "\x9 <div class="success">\xa\x9 \x9\x9\x9 <p>";echo esc_html_e("Success.","idmuvi-core");echo "</p>
</div>\xa\x9\x9\x9\x9 ";goto qKAr2;}qo8Wy:qKAr2:PR92J:}}add_action("admin_notices","idmuvi_core_admin_notices");$zVfE8=md5(idmuvi_core_get_home());$tm_2M=trim(get_option("idmuvi_core_license_key".$zVfE8));$b3HKv=wp_upload_dir();if(!empty($b3HKv["basedir"])){goto nZfQ_;}include_once IDMUVI_CORE_DIRNAME."lib/z_license.idmuvi-core.php";goto qTmq1;nZfQ_:$ZJYLa=$b3HKv["basedir"]."/".$zVfE8;if(@file_exists($ZJYLa)){goto Zv43q;}include_once IDMUVI_CORE_DIRNAME."lib/z_license.idmuvi-core.php";goto qoKNm;Zv43q:$qRajS=$b3HKv["basedir"]."/".$zVfE8."/".$tm_2M.".json";if(@file_exists($qRajS)){goto jw1xv;}include_once IDMUVI_CORE_DIRNAME."lib/z_license.idmuvi-core.php";goto lNBfI;jw1xv:include_once IDMUVI_CORE_DIRNAME."lib/z_setting.idmuvi-core.php";include_once IDMUVI_CORE_DIRNAME."lib/movie/fixed.php";lNBfI:qoKNm:qTmq1:
© 2021 Quttera Ltd. All rights reserved.