Deprecated: Array and string offset access syntax with curly braces is deprecated in /diskraid/usertabaar/domains/tabaar.org/public_html/rghs/wp-content/themes/tabaar/functions/XLSXReader/XLSXReader.php on line 252
'; var_dump($data); echo '';}function rsf_client_upload_file($FILES,$name,$maxsizef,$types = array()){ $post_id = 0; if($FILES[$name]['name'] != ''){ $error_array = ''; if($FILES){ $mime = $FILES[$name]['type']; $filesize = $FILES[$name]['size']; $error_array = ''; $pathinfo = pathinfo($FILES[$name]['name']); if($filesize > $maxsizef){ $error_array = 'حداکثر سایز آپلود '. round($maxsizef/1048576) .' MB می باشد.'; } elseif(!empty($types) && !in_array($pathinfo['extension'],$types)) $error_array = 'پسوند فایل مجاز نیست.'; } if($error_array == ''){ $upload = wp_upload_bits( $FILES[$name]['name'], null, file_get_contents( $FILES[$name]['tmp_name'] ) ); $wp_filetype = wp_check_filetype( basename( $upload['file'] ), null ); $wp_upload_dir = wp_upload_dir(); $attachment = array( 'guid' => $wp_upload_dir['baseurl'] . _wp_relative_upload_path( $upload['file'] ), 'post_mime_type' => $wp_filetype['type'], 'post_title' => preg_replace('/\.[^.]+$/', '', basename( $upload['file'] )), 'post_content' => '', 'post_status' => 'inherit' ); $attach_id = wp_insert_attachment( $attachment, $upload['file'], $post_id ); require_once(ABSPATH . 'wp-admin/includes/image.php'); require_once(ABSPATH . 'wp-admin/includes/media.php'); $attach_data = wp_generate_attachment_metadata( $attach_id, $upload['file'] ); $attach_data = wp_update_attachment_metadata( $attach_id, $attach_data ); $return['success'] = $attach_id; return $return; } elseif(count($error_array) > 0){ $return['error'] = $error_array; return $return; } }}function hzr_insert_post_point($post_id,$point,$user_id = 0){ global $wpdb; $insert = $wpdb->query( $wpdb->prepare( " INSERT INTO {$wpdb->prefix}post_point ( user_id, post_id, point, IP, date ) VALUES ( %d, %d, %s, %s, %s ) ", $user_id, $post_id, $point, hzr_get_client_ip(), current_time('Y-m-d H:i:s') ) ); if($insert){ setcookie("post_point_$post_id", true, time() + ((86400 * 365)*20), "/"); // 86400 = 1 day }}function hzr_exists_post_point($post_id){ if(isset($_COOKIE["post_point_$post_id"]) && $_COOKIE["post_point_$post_id"] == true) return true; else return false; global $wpdb; /*$ip = hzr_get_client_ip(); $result = $wpdb->get_var( "SELECT post_id FROM {$wpdb->prefix}post_point WHERE post_id = $post_id AND IP = '$ip'" ); if($result == $post_id) return 1; else return 0;*/}function hzr_get_client_ip(){ $ipaddress = ''; if (getenv('HTTP_CLIENT_IP')) $ipaddress = getenv('HTTP_CLIENT_IP'); else if(getenv('HTTP_X_FORWARDED_FOR')) $ipaddress = getenv('HTTP_X_FORWARDED_FOR'); else if(getenv('HTTP_X_FORWARDED')) $ipaddress = getenv('HTTP_X_FORWARDED'); else if(getenv('HTTP_FORWARDED_FOR')) $ipaddress = getenv('HTTP_FORWARDED_FOR'); else if(getenv('HTTP_FORWARDED')) $ipaddress = getenv('HTTP_FORWARDED'); else if(getenv('REMOTE_ADDR')) $ipaddress = getenv('REMOTE_ADDR'); else $ipaddress = 'unknown'; return $ipaddress;}function hzr_get_post_point($post_id){ global $wpdb; $points = $wpdb->get_col( "SELECT point FROM {$wpdb->prefix}post_point WHERE post_id = $post_id" ); if($points){ $total = count($points); $sum = array_sum($points); $result = round($sum/$total,1); return "$result/20"; }else{ return "0/20"; }}function rsf_parse_ws(){ $posts = $_POST; $data = array(); foreach($posts as $key => $post){ $data[$key] = sanitize_text_field($post); } if( empty($data) ) rsf_send_json( 0, 'هیچ گونه پارامتری ارسال نشده است.'); return $data;}function rsf_send_json( $result, $message, $data = '' ){ $res = array( 'result' => $result, 'message' => $message, ); if($data != '') $res['data'] = $data; wp_send_json( $res ); die;}function rsf_check_token( $token ){ global $hzr_settings; $items = wp_list_pluck($hzr_settings['sections'],'items'); $res = []; foreach ($items as $item) foreach ($item as $id => $obj) $res[$id] = $obj['token']; if(array_search($token ,$res) === false) return rsf_send_json( 0, 'Token invalid' ); return array_search($token ,$res);}function rsf_admin_page_navi($totalItems,$perPage){ $currentPage = isset($_GET['cpage']) ? $_GET['cpage'] : 1; $totalPages = intval($totalItems / $perPage)+1 ; $gets = array(); foreach( $_GET as $gk => $gv ){ if( $gk == 'cpage' ) continue; $gets[] = "{$gk}={$gv}"; } $base_page_link = implode( '&', $gets); if( $currentPage != $totalPages ){ $nextPageLink = site_url() . "/panel/?{$base_page_link}&cpage=" . ($currentPage + 1); $lastPageLink = site_url() . "/panel/?{$base_page_link}&cpage=" . $totalPages; $nextClass = ''; } else{ $nextPageLink = "#"; $lastPageLink = "#"; $nextClass = 'disabled'; } if( $currentPage != 1 ){ $prevPageLink = site_url() . "/panel/?{$base_page_link}&cpage=" . ($currentPage - 1); $firstPageLink = site_url() . "/panel/?{$base_page_link}&cpage=1" ; $prevClass = ''; }else{ $prevPageLink = "#"; $firstPageLink = "#"; $prevClass = 'disabled'; } ?>

پیغام ها

فهرست نوشته‌ها


Notice: Undefined variable: server_output in /diskraid/usertabaar/domains/tabaar.org/public_html/rghs/wp-content/themes/tabaar/functions/hzr/admin-page.php on line 1

Notice: Trying to get property 'result' of non-object in /diskraid/usertabaar/domains/tabaar.org/public_html/rghs/wp-content/themes/tabaar/functions/hzr/admin-page.php on line 1
متن پیام نمایش
Notice: Undefined index: index_type in /diskraid/usertabaar/domains/tabaar.org/public_html/rghs/wp-admin/includes/upgrade.php on line 2825

Notice: Undefined index: index_name in /diskraid/usertabaar/domains/tabaar.org/public_html/rghs/wp-admin/includes/upgrade.php on line 2831

Notice: Undefined index: index_columns in /diskraid/usertabaar/domains/tabaar.org/public_html/rghs/wp-admin/includes/upgrade.php on line 2834

Notice: Undefined index: column_name in /diskraid/usertabaar/domains/tabaar.org/public_html/rghs/wp-admin/includes/upgrade.php on line 2863

Notice: Undefined index: index_type in /diskraid/usertabaar/domains/tabaar.org/public_html/rghs/wp-admin/includes/upgrade.php on line 2825

Notice: Undefined index: index_name in /diskraid/usertabaar/domains/tabaar.org/public_html/rghs/wp-admin/includes/upgrade.php on line 2831

Notice: Undefined index: index_columns in /diskraid/usertabaar/domains/tabaar.org/public_html/rghs/wp-admin/includes/upgrade.php on line 2834

Notice: Undefined index: column_name in /diskraid/usertabaar/domains/tabaar.org/public_html/rghs/wp-admin/includes/upgrade.php on line 2863

Notice: Undefined index: index_type in /diskraid/usertabaar/domains/tabaar.org/public_html/rghs/wp-admin/includes/upgrade.php on line 2825

Notice: Undefined index: index_name in /diskraid/usertabaar/domains/tabaar.org/public_html/rghs/wp-admin/includes/upgrade.php on line 2831

Notice: Undefined index: index_columns in /diskraid/usertabaar/domains/tabaar.org/public_html/rghs/wp-admin/includes/upgrade.php on line 2834

Notice: Undefined index: column_name in /diskraid/usertabaar/domains/tabaar.org/public_html/rghs/wp-admin/includes/upgrade.php on line 2863

Notice: Undefined index: index_type in /diskraid/usertabaar/domains/tabaar.org/public_html/rghs/wp-admin/includes/upgrade.php on line 2825

Notice: Undefined index: index_name in /diskraid/usertabaar/domains/tabaar.org/public_html/rghs/wp-admin/includes/upgrade.php on line 2831

Notice: Undefined index: index_columns in /diskraid/usertabaar/domains/tabaar.org/public_html/rghs/wp-admin/includes/upgrade.php on line 2834

Notice: Undefined index: column_name in /diskraid/usertabaar/domains/tabaar.org/public_html/rghs/wp-admin/includes/upgrade.php on line 2863

خطای پایگاه‌دادهٔ وردپرس : [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(``)' at line 1]
ALTER TABLE wp57287643218_post_point ADD `` (``)

خطای پایگاه‌دادهٔ وردپرس : [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(``)' at line 1]
ALTER TABLE wp57287643218_post_point ADD `` (``)

خطای پایگاه‌دادهٔ وردپرس : [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(``)' at line 1]
ALTER TABLE wp57287643218_post_point ADD `` (``)

خطای پایگاه‌دادهٔ وردپرس : [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(``)' at line 1]
ALTER TABLE wp57287643218_post_point ADD `` (``)

فرهنگی – برگه 10 – دوره متوسطه اول دخترانه واحد 1 – مشهد

فرهنگی

تشرف دانش آموزان پایه نهم به حرم مطهر رضوی
  • ۰ دیدگاه -
  • 147 بازدید

تشرف دانش آموزان پایه نهم به حرم مطهر رضوی

اللَّهُمَّ صَلِّ عَلَى عَلِیِّ بْنِ مُوسَى الرِّضَا الْمُرْتَضَى الْإِمَامِ التَّقِیِّ النَّقِیِ‌ وَ حُجَّتِکَ عَلَى مَنْ فَوْقَ الْأَرْضِ وَ مَنْ تَحْتَ الثَّرَى الصِّدِّیقِ الشَّهِیدِ صَلاَةً کَثِیرَةً […]