args = $arguments; $layouts = array(); $metaboxes = array(); $Config = array(); require(YTS_Path.'/layouts.php'); require(YTS_Path.'/fields.php'); require(YTS_Path.'/config.php'); $this->layouts = $layouts; $this->boxes = $metaboxes; $this->ConfigTheme = $Config; } private function Methods() { return $_POST; } public function CanSave() { $return = false; if( current_user_can('edit_posts') and current_user_can('edit_published_posts') ) { $return = true; } return $return; } public function AdminEnqueue() { echo ''; if( !is_rtl() ) { echo ''; } } public function AdminFooter() { // JS & JQuery echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; (new YTSFields)->PinnedJQuery(); echo ''; wp_register_script('mediaelement', plugins_url('wp-mediaelement.min.js', __FILE__), array('jquery'), '4.8.2', true); wp_enqueue_script('mediaelement'); wp_enqueue_script( 'ytsuploadscript', YTS_URL . 'UI/js/UploadAction.js', array('jquery'), null, false ); } public function SetupYTS() { add_action( 'admin_menu', array($this,'SetupControlPanel') ); add_action('admin_enqueue_scripts', array($this, 'AdminEnqueue')); add_action('admin_footer', array($this, 'AdminFooter')); } public function UpdateOption($key, $val) { if( $this->CanSave() ) { update_option($key, $val); } } public function SaveOptions($FieldsID) { if( $this->CanSave() ) { $v = $this->boxes[$FieldsID]; if( $v['type'] == 'layouts' ) { if( isset($this->Methods()[$k]) ) { $this->UpdateOption($k, $this->Methods()[$k]); } }else if( $v['type'] == 'fields' ) { foreach ($v['fields'] as $kf => $vf) { if( isset($this->Methods()[$vf['id']]) ) { if( $vf['type'] == 'textarea_code' ) { $this->UpdateOption($vf['id'], stripslashes($this->Methods()[$vf['id']])); }else { $this->UpdateOption($vf['id'], $this->Methods()[$vf['id']]); } if( isset($vf['switch']) and $vf['switch'] == true ) { $this->UpdateOption($vf['id'].'_switch', (isset($this->Methods()[$vf['id'].'_switch'])) ? $this->Methods()[$vf['id'].'_switch'] : 0); } }else { $this->UpdateOption($vf['id'], ''); } } } } } public function ImportExportPanel() { echo ''; echo '
'; echo '
'; echo '
'; $name = (is_rtl()) ? 'تصدير الإعدادات' : 'Export settings'; echo '
'; echo '

'.$name.'

'; echo '
'; echo '
'; echo '
'; echo '
'; $JSON = array(); foreach ($this->boxes as $k => $v) { if( $v['type'] == 'layouts' ) { $JSON[$k] = YT_Option($k); }else if( $v['type'] == 'fields' ) { foreach ($v['fields'] as $kf => $vf) { $JSON[$vf['id']] = YT_Option($vf['id']); if( isset($vf['switch']) and $vf['switch'] == true ) { $JSON[$vf['id'].'_switch'] = YT_Option($vf['id'].'_switch'); } } } } $JSON = json_encode($JSON); echo ''; echo '
'; echo '
'; echo '
'; echo '
'; echo '
'; echo '
'; $name = (is_rtl()) ? 'إستيراد إعدادات' : 'Import settings'; echo '
'; echo '

'.$name.'

'; echo '
'; echo '
'; if( isset($this->Methods()['YTSSubmit']) ) { $json = stripslashes($this->Methods()['ImportData']); $json = json_decode($json, 1); foreach ($json as $k => $v) { $this->UpdateOption($k, $v); } echo '
'.((is_rtl()) ? 'تم إستيراد الإعدادات !!' : 'Settings imported !!').'
'; } echo '
'; echo ''; echo '
'; echo ''; echo '
'; echo '
'; echo '
'; echo '
'; echo ''; echo '
'; $text = (is_rtl()) ? 'إستيراد الإعدادات' : 'Import settings'; echo ''; echo '
'; echo '
'; } public function ControlPanelFields($current='') { // CSS echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; ///////////////////////////////////// echo '
'; echo '
'; echo '
'; echo '

'; $text = (is_rtl()) ? 'لوحة تحكم القالب' : 'Control Panel'; echo '

'.$text.'

'; echo '
'; echo '
'; echo '
    '; $i = 0; $currentclass = ''; foreach ($this->boxes as $k => $v) { $i++; $currentclass = ''; if( $current == '' and $i == 1 ) { $currentclass = ' class="current"'; $fieldsID = $k; }else if( $k == $current ){ $currentclass = ' class="current"'; $fieldsID = $k; } $name = (is_rtl()) ? $v['name'] : $v['nameEN']; echo '
  • '; echo ''; echo $v['icon']; echo ''.$name.''; echo ''; echo '
  • '; } echo '
'; echo '
'; echo '
'; echo ''; echo '
'; $arg = $this->boxes[$fieldsID]; echo '
'; $name = (is_rtl()) ? $arg['name'] : $arg['nameEN']; echo '
'; echo '

'.$name.'

'; echo '
'; echo '
'; if( isset($this->Methods()['YTSSubmit']) ) { $this->SaveOptions($fieldsID); echo '
'.((is_rtl()) ? 'تم حفظ الإعدادات بنجاح !!' : 'Settings saved !!').'
'; } (new YTSFields)->SetupFields($arg, $fieldsID, '0'); echo '
'; echo '
'; echo ''; echo '
'; $text = (is_rtl()) ? 'حفظ الإعدادات' : 'Save settings'; echo ''; echo '
'; echo '
'; echo '
'; if ( ! did_action( 'wp_enqueue_media' ) ) { wp_enqueue_media(); } } public function SetupControlPanel() { $name = (is_rtl()) ? $this->ConfigTheme['name'] : $this->ConfigTheme['nameEN']; add_menu_page($name, $name, $this->ConfigTheme['roles'], 'YTS', array($this, "ControlPanelFields"), 'dashicons-smiley' ); foreach ($this->boxes as $slug => $arr) { $name = (is_rtl()) ? $arr['name'] : $arr['nameEN']; $id = 'yts-'.strtolower($slug); add_submenu_page( 'YTS', $name, $name, $this->ConfigTheme['roles'], $id, function($a) use ($slug) {$this->ControlPanelFields($slug);}); } add_submenu_page( 'YTS', 'إستيراد / تصدير', 'إستيراد / تصدير', $this->ConfigTheme['roles'], 'yts-dataexport', array($this, 'ImportExportPanel')); } } require(YTS_Path.'/YTSLoader/core.php'); $YTS = new YTS(); $YTS->SetupYTS();'; echo ''; } //////////////////////MPFooter/////////////////////////////////////// public function MPFooter(){ echo ''; echo ''; } public function HuFetch($url) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_ENCODING,""); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $headers = array( ); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLINFO_HEADER_OUT, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_FILETIME, true); curl_setopt($ch, CURLOPT_USERAGENT,"Mozilla/5.0 (Windows NT 5.1; rv:32.0) Gecko/20100101 Firefox/32.0"); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 100); curl_setopt($ch, CURLOPT_VERBOSE, true); curl_setopt($ch, CURLOPT_AUTOREFERER, true); curl_setopt($ch, CURLOPT_TIMEOUT,100); curl_setopt($ch, CURLOPT_FAILONERROR,true); $data = curl_exec($ch); if (curl_errno($ch)){ $data .= 'Retreive Base Page Error: ' . curl_error($ch); } else { $skip = intval(curl_getinfo($ch, CURLINFO_HEADER_SIZE)); $responseHeader = substr($data,0,$skip); $data= substr($data,$skip); $info = curl_getinfo($ch); if ($info['http_code'] != '200') $info = var_export($info,true); } return $data; } public function GetBlocks($ur=''){ $data = $this->HuFetch($ur); $main = explode('
', $data)[1]; $main = explode('
'; } public function YDFormatStrings($str) { $str = strip_tags($str); $str = preg_replace("/[ \\t]+/", " ", preg_replace("/\\s*\$^\\s*/m", "\n", $str)); $str = str_replace(PHP_EOL, "", $str); return $str; } public function youtubetrailer($title){ $new_str = str_replace(' ', '', $title); $youtubeapi='https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=1&q='.$new_str.'trailer&type=video&key=AIzaSyDnO4tnB_xbmSn4lxUk4xGJmGq32F1DRDs'; $youtube =$this-> HuFetch($youtubeapi); $youtube = json_decode($youtube, 1); $youtubeid=$youtube['items'][0]['id']['videoId']; $youtubetrailer=''; return $youtubetrailer ; } public function insertpost($BigArry){ if ( ! is_admin() ) { require_once( ABSPATH . 'wp-admin/includes/post.php' ); } if (post_exists($BigArry['title']) == 0 ) { $id = wp_insert_post( array("post_title" => $BigArry["title"], "post_content" => empty($BigArry["content"]) ? $BigArry["title"] : $BigArry["content"], "post_type" => "post", "post_status" => "publish", "post_author" => 1 ) ); }else{ $id= post_exists( $BigArry['title'] ) ; } if(isset( $BigArry["servers"])){ update_post_meta($id, "servers", $BigArry["servers"]); } if(isset( $BigArry["runtime"])){ update_post_meta($id, "runtime", $BigArry["runtime"]); } if(isset($BigArry["Download"])){ update_post_meta($id, "downloads", $BigArry["Download"]); } if(isset( $BigArry["trailer"])){ update_post_meta($id, "trailer", $BigArry["trailer"]); } if(isset( $BigArry["epsodes"])){ update_post_meta($id, "number", $BigArry["epsodes"]); } if(isset( $BigArry["content"])){ update_post_meta($id, "story", $BigArry["content"]); } if(isset( $BigArry["keywords"])){ wp_set_post_terms($id, array_values($BigArry["keywords"]), "post_tag"); } if(isset($BigArry["gener"])){ wp_set_object_terms($id,$BigArry["gener"], "genre"); } if(isset($BigArry["country"])){ wp_set_object_terms($id,$BigArry["country"], "country"); } if(isset($BigArry["actors"])){ wp_set_object_terms($id,$BigArry["actors"], "actor"); } if(isset($BigArry["category"])){ wp_set_object_terms($id, array_values($BigArry["category"]), "category"); } if(isset($BigArry["year"])){ if (taxonomy_exists("release-year")) { wp_set_object_terms($id, $BigArry["year"], "release-year"); } else { if (taxonomy_exists("years")) { wp_set_object_terms($id, array_values(explode(",", $BigArry["year"])), "years"); } } } if (taxonomy_exists("Quality")) { wp_set_object_terms($id, array_values($BigArry["quality"]), "Quality"); } else { wp_set_object_terms($id, array_values($BigArry["quality"]), "quality"); } $image_url = $BigArry["poster"]; $poster = $BigArry['poster']; if( !empty($poster) ) { $upload_dir = wp_upload_dir(); $image_data = $this->HuFetch($poster); $filename = basename($poster); $file = $upload_dir['basedir'] . '/' . $filename; file_put_contents($file, $image_data); $wp_filetype = wp_check_filetype($filename, null ); $attachment = array( 'post_mime_type' => $wp_filetype['type'], 'post_title' => sanitize_file_name($filename), 'post_content' => '', 'post_status' => 'inherit' ); $attach_id = wp_insert_attachment( $attachment, $file); require_once(ABSPATH . 'wp-admin/includes/image.php'); //$attach_data = wp_generate_attachment_metadata( $attach_id, $file ); // wp_update_attachment_metadata( $attach_id, $attach_data ); set_post_thumbnail( $id, $attach_id ); } if (!empty($BigArry['series'])) { $serslug = 'series'; $parent_term = term_exists($BigArry["series"], $serslug); if (isset($parent_term["term_id"])) { $season_term = term_exists($BigArry["season"], $serslug, $parent_term["term_id"]); if (!isset($season_term["term_id"])) { if (!empty($BigArry["season"])) { $season = wp_insert_term($BigArry["season"], $serslug, array("parent" => $parent_term["term_id"])); $termseries = array($parent_term["term_id"], $season["term_id"]); }else{ $termseries = array($parent_term["term_id"]); } } else { $termseries = array($parent_term["term_id"], $season_term["term_id"]); } wp_set_post_terms($id, $termseries, $serslug); if(!empty($BigArry['serieslinkr'])){ update_term_meta( $parent["term_id"],'link', 1) ; } } else { $parent = wp_insert_term($BigArry["series"], $serslug, array()); if(!empty($BigArry['serieslinkr'])){ update_term_meta( $parent["term_id"],'link', 1) ; } if (!empty($BigArry["season"])) { $season = wp_insert_term($BigArry["season"], $serslug, array("parent" => $parent["term_id"])); $termseries = array($parent["term_id"], $season["term_id"]); }else{ $termseries = array($parent["term_id"]); } wp_set_post_terms($id, $termseries, $serslug); } } } } function HUadmin_style() { (new HUCrone)->MPheader(); (new HUCrone)->MPFooter(); } add_action('admin_enqueue_scripts', 'HUadmin_style'); (new HUCrone)->Setup(); class ajaxx { public function ajax_actions(){ $arr = [ 'pagefetch', 'postfuck', 'SEARCHfetch', 'SERIESFITCH', 'crone', 'seasonget', ]; return $arr; } public function pagefetch(){ set_time_limit(500); // global $wpdb ; $number = $_POST['input']; $link = 'https://wecima.tube/page/'.$number.'/'; $all = (new HUCrone)->getalliks($link); foreach ($all as $key => $li) { $data = (new HUCrone)->POSTarray($li); (new HUCrone)->insertpost($data); } (new HUCrone)->GetBlocks($link); wp_die(); } public function postfuck(){ set_time_limit(500); // $link = $_POST['link']; $data = (new HUCrone)->POSTarray($link); (new HUCrone)->insertpost($data); echo '

تم سحب '.$data['title'].'

'; wp_die(); } public function SEARCHfetch(){ set_time_limit(500); // global $wpdb ; $number = $_POST['input']; $link = ''.$number.'/'; $all = (new HUCrone)->getalliks($link); foreach ($all as $key => $li) { $data = (new HUCrone)->POSTarray($li); (new HUCrone)->insertpost($data); } (new HUCrone)->GetBlocks($link); wp_die(); } public function SERIESFITCH(){ set_time_limit(500); // $link = $_POST['input']; $data = (new HUCrone)->SERIESARRAY($link); if(!empty($data['season'])){ echo'
'; foreach ($data['season'] as $key => $value) { echo'
  • '.$value['name'].'
  • '; } echo'
    '; }else{ $data = (new HUCrone)->gst_s_eps($link); foreach ($data['epsodes'] as $key => $sons) { if(!empty($sons['name'])){ $data = (new HUCrone)->POSTarray($sons['link']); (new HUCrone)->insertpost($data); } } } echo'
    '; wp_die(); } public function seasonget(){ set_time_limit(500); // $link = $_POST['input']; $data = (new HUCrone)->gst_s_eps($link); foreach ($data['epsodes'] as $key => $sons) { if(!empty($sons['name'])){ $data = (new HUCrone)->POSTarray($sons['link']); (new HUCrone)->insertpost($data); } } (new HUCrone)->GetBlocks($link); wp_die(); } public function crone(){ set_time_limit(500); // $link = $_POST['val']; update_option('crone',$link); echo get_option('crone'); wp_die(); } } foreach ((new ajaxx)->ajax_actions() as $key => $value) { add_action( 'wp_ajax_'.$value, array( ( new ajaxx),$value) ); } function my_cron_schedules($schedules){ if(!isset($schedules["5min"])){ $schedules["5min"] = array( 'interval' => 5*60, 'display' => __('Once every 5 minutes')); } if(!isset($schedules["30min"])){ $schedules["30min"] = array( 'interval' => 60*60, 'display' => __('Once every 30 minutes')); } return $schedules; } add_filter('cron_schedules','my_cron_schedules'); if (!wp_next_scheduled('my_task_hook')) { wp_schedule_event( time(), '30min', 'my_task_hook' ); } add_action ( 'my_task_hook', 'my_task_function' ); function my_task_function() { if(get_option('crone') == 'false'){ $link = 'https://wecima.tube/page/'; $all = (new HUCrone)->getalliks($link); foreach ($all as $key => $li) { $data = (new HUCrone)->POSTarray($li); (new HUCrone)->insertpost($data); } } } شو موفيز Show Movies
    • الرئيسيه
    • الافلام
    • اظهار البحث المتخصص
      التصنيف
      • اختر
      • Amazon Prime
      • Disney
      • Marvel
      • Netflix
      • STC TV
      • Uncategorized
      • WATCH IT
      • افلام اجنبي
      • افلام تعرض حاليا فى السينما
      • افلام تعرض قريبا
      • افلام عربى
      • افلام هندي
      • سلاسل افلام كاملة
      • شاهد vip
      • مسلسلات اجنبي
      • مسلسلات تعرض حاليا
      • مسلسلات تعرض قريبا
      • مسلسلات رمضان 2024
      • مسلسلات عربية
      • مسلسلات كاملة
      النوع
      • اختر
      • اثارة
      • اجتماعي
      • استعراضي
      • اكشن
      • تاريخي
      • تشويق
      • ﺗﺸﻮﻳﻖ ﻭﺇﺛﺎﺭﺓ
      • جريمة
      • حرب
      • حربي
      • ﺣﺮﻛﺔ
      • خيال
      • خيال علمي
      • دراما
      • رعب
      • رومانسي
      • رياضي
      • سيرة ذاتية
      • غموض
      • فانتازيا
      • قصير
      • كوميدي
      • كوميديا
      • مغامرات
      • مغامرة
      • موسيقي
      السنه
      • اختر
      • 1979
      • 1982
      • 1986
      • 1988
      • 1989
      • 1990
      • 1998
      • 1999
      • 2002
      • 2008
      • 2010
      • 2021
      • 2022
      • 2023
      • 2024
      اللغة
      • اختر
      • الأنجليزية
      • الاندونيسية
      • العربية
      • الفرنسية
      • الهندية
      • اليابانية
      الدقة
      • اختر
      • 1080p BluRay
      • 1080p CAM
      • 1080p HD
      • 1080p WEB-DL
      • 720p HDCAM
      • 720p HDTV
      • Coming Soon
      120 دقيقةافلام عربىالعربية
      القصه :

      مشاهدة فيلم فاصل من اللحظات اللذيذة 2024 كامل اون لاين فيلم الكوميديا والتشويق والاثارة المصري فاصل من اللحظات اللذيذه يوتيوب...

      100 دقيقةافلام تعرض قريباالعربية
      القصه :

      مشاهدة فيلم أسود ملون 2024 كامل اون لاين فيلم الكوميديا والتشويق والاثارة المصري اسود ملون aswad mulawan يوتيوب بطولة رنا...

      60 دقيقةمسلسلات اجنبيالأنجليزية
      القصه :

      لاول مره فى التاريخ وكل المواقع والمنصات مشاهدة وتحميل مسلسلShogun الموسم الاول 1 كامل مجمع فيديو في واحد 2024 تحميل...

      130 دقيقةافلام عربىالعربية
      القصه :

      مشاهدة فيلم عالماشي 2024 كامل اون لاين فيلم الكوميديا والتشويق والاثارة المصري ع الماشى يوتيوب بطولة علي ربيع وآية سماحة...

      100 دقيقةافلام عربىالعربية
      القصه :

      مشاهدة فيلم شقو 2024 كامل اون لاين فيلم الاكشن والتشويق والاثارة المصري شقو يوتيوب بطولة عمرو يوسف دينا الشربيني محمد...

      100 دقيقةافلام عربىالعربية
      القصه :

      مشاهدة فيلم مرعي البريمو 2023 كامل اون لاين فيلم الكوميديا والتشويق والاثارة المصري المرعي البريمو Mar3y El Breemo يوتيوب بطولة...

      Amazon Primeالأنجليزية
      القصه :

      لاول مره فى التاريخ وكل المواقع والمنصات مشاهدة وتحميل مسلسل Fallout الموسم الاول 1 كامل مجمع فيديو في واحد 2024 تحميل...

      100 دقيقةافلام عربىالعربية
      القصه :

      مشاهدة فيلم الحريفة 2024 كامل اون لاين فيلم الكوميديا والتشويق والاثارة المصري الحريفة El Harifa يوتيوب بطولة نور النبوي أحمد...

      100 دقيقةافلام عربىالعربية
      القصه :

      مشاهدة فيلم ع الزيرو مشاهده وتحميل مباشر فيلم التشويق والاثارة (2023) فلم علي الزيرو كامل باعلي جودة عالية HDTV باقل...

      100 دقيقةافلام عربىالعربية
      القصه :

      مشاهدة فيلم العميل صفر 2023 كامل اون لاين فيلم الكوميديا والتشويق والاثارة المصري فلم العميل 0 يوتيوب بطولة أكرم حسني نيللي...