النتائج 1 إلى 6 من 6

الموضوع: مساعدة لحذف كود ضار من أحد مواقعي

  1. #1
    عضو جديد
    تاريخ التسجيل
    Apr 2010
    المشاركات
    13

    مساعدة لحذف كود ضار من أحد مواقعي



    السلام عليكم ورحمة الله وبركاته
    اكتشفت وجود كود ضار بقالب الوورد برس الذي استخدمه حاليا بأحد مواقعي
    لكن المشكلة إنني كلما أقوم بالتعديل على الاندكس فايل حيث يوجد الكود يتوقف الموقع تلقائيا والسبب الذي وجدته بعد ذلك أن المبرمج ربط الاندكس فايلindex.php مع footer.php و functions.php بشكل يمنع من التعديل على أيهما دون توقف الموقع

    ما أريده الآن هو الوصول للكود الضار مع حذفه بشكل لا يعطل الموقع كما يحدث معي في كل مرة

    وشكراً مقدماً على المساعدة

    هذه الفايلات التي تحدثت عنها
    index.php:
    كود PHP:
    <?php get_header(); ?>
            <div class="span-24" id="contentwrap">
                <div class="span-13">
                    <div id="content">    
                    <?php if(is_home()) { include (TEMPLATEPATH '/featured.php'); } ?>        
                        <?php if (have_posts()) : ?>    
                            <?php while (have_posts()) : the_post(); ?>
                            
                            <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
                                <h2 class="title"><a href="<?php  the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php  the_title_attribute(); ?>"><?php the_title();  ?></a></h2>
                                <div class="postdate"><img  src="<?php bloginfo('template_url'); ?>/images/date.png" />  <?php the_time('F jS, Y'?> <img src="<?php  bloginfo('template_url'); ?>/images/user.png" /> <?php  the_author() ?> <?php if (current_user_can('edit_post',  $post->ID)) { ?> <img src="<?php bloginfo('template_url');  ?>/images/edit.png" /> <?php edit_post_link('Edit'''''); }  ?></div>
                
                                <div class="entry">
                                    <?php if (  function_exists('has_post_thumbnail') && has_post_thumbnail() ) {  the_post_thumbnail(array(200,160), array('class' => 'alignleft  post_thumbnail')); } ?>
                                    <?php the_content(''); ?>
                                    <div class="readmorecontent">
                                        <a class="readmore"  href="<?php the_permalink() ?>" rel="bookmark" title="Permanent  Link to <?php the_title_attribute(); ?>">Read More  &raquo;</a>
                                    </div>
                                </div>
                            </div><!--/post-<?php the_ID(); ?>-->
                    
                    <?php endwhile; ?>
                    <div class="navigation">
                        <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
                        <div class="alignleft"><?php next_posts_link('&laquo; Older Entries'?></div>
                        <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;'?></div>
                        <?php ?>
                    </div>
                    <?php else : ?>
                        <h2 class="center">Not Found</h2>
                        <p class="center">Sorry, but you are looking for something that isn't here.</p>
                        <?php get_search_form(); ?>
                
                    <?php endif; ?>
                    </div>
                </div>
            
            <?php get_sidebars(); ?>
        </div>
    <?php get_footer(); ?>
    footer.php:
    كود PHP:
        <div class="span-24">
            <div id="footer">Copyright &copy; <a href="<?php  bloginfo('home'); ?>"><strong><?php bloginfo('name');  ?></strong></a>  - <?php bloginfo('description');  ?></div>
            <?php // This theme is released free for use under creative  commons licence. http://creativecommons.org/licenses/by/3.0/
                // All links in the footer should remain intact.
                // These links are all family friendly and will not hurt your site in any way.
                // Warning! Your site may stop working if these links are edited or deleted  
    ?>
            <div id="footer2">Powered by <a  href="http://wordpress.org/"><strong>WordPress</strong></a>  | Palm Pre Reviews at <a href="http://n4dp.info">Hot News  Blog</a>. | Thanks to <a href="http://n4dp.info">Hot News  Blog</a>, <a href="http://n4dp.info">Hot News Blog</a>  and <a href="http://www.n4dp.info">Hot News  Blog</a></div>
        </div>
    </div>
    </div>
    <?php
         wp_footer
    ();
        echo 
    get_theme_option("footer")  . "\n";
    ?>
    </body>
    </html>
    functions.php:
    كود PHP:
    <?php
    if ( function_exists('register_sidebar') ) {
        
    register_sidebar(array(
            
    'name' => 'Sidebar 1',
            
    'before_widget' => '<li id="%1$s" class="widget %2$s">',
            
    'after_widget' => '</li>',
            
    'before_title' => '<h2 class="widgettitle">',
            
    'after_title' => '</h2>',
        ));
        
        
    register_sidebar(
        array(
            
    'name' => 'Sidebar 2',
            
    'before_widget' => '<li id="%1$s" class="widget %2$s">',
            
    'after_widget' => '</li>',
            
    'before_title' => '<h2 class="widgettitle">',
            
    'after_title' => '</h2>',
        ));
    }

    $themename "Wire News";
    $shortname str_replace(' ''_'strtolower($themename));

    function 
    get_theme_option($option)
    {
        global 
    $shortname;
        return 
    stripslashes(get_option($shortname '_' $option));
    }

    function 
    get_theme_settings($option)
    {
        return 
    stripslashes(get_option($option));
    }

    function 
    cats_to_select()
    {
        
    $categories get_categories('hide_empty=0');
        
    $categories_array[] = array('value'=>'0''title'=>'Select');
        foreach (
    $categories as $cat) {
            if(
    $cat->category_count == '0') {
                
    $posts_title 'No posts!';
            } elseif(
    $cat->category_count == '1') {
                
    $posts_title '1 post';
            } else {
                
    $posts_title $cat->category_count ' posts';
            }
            
    $categories_array[] = array('value'=> $cat->cat_ID'title'=> $cat->cat_name ' ( ' $posts_title ' )');
          }
        return 
    $categories_array;
    }

    $options = array (
                
        array(    
    "type" => "open"),
        
        array(    
    "name" => "Logo Image",
            
    "desc" => "Enter the logo image full path. Leave it blank if you don't want to use logo image.",
            
    "id" => $shortname."_logo",
            
    "std" =>  get_bloginfo('template_url') . "/images/logo.png",
            
    "type" => "text"),array(    "name" => "Featured Posts Enabled?",
                
    "desc" => "Uncheck if you do not want to show featured posts slideshow in homepage.",
                
    "id" => $shortname."_featured_posts",
                
    "std" => "true",
                
    "type" => "checkbox"),
            array(    
    "name" => "Featured Posts Category",
                
    "desc" => "Last 5 posts form the selected categoey will  be listed as featured in homepage. <br />The selected category  should contain at last 2 posts with images. <br /> <br />  <b>How to add images to your featured posts slideshow?</b>  <br />
                <b>&raquo;</b> If you are using WordPress  version 2.9 and above: Just set \"Post Thumbnail\" when adding new post  for the posts in selected category above. <br />
                <b>&raquo;</b> If you are using WordPress  version under 2.9  you have to add custom fields in each post on the   category  you set as featured category. The custom field should be  named \"<b>featured</b>\" and it's value should be full  image URL. <a  href=\"http://newwpthemes.com/public/featured_custom_field.jpg\"  target=\"_blank\">Click here</a> for a screenshot. <br />  <br />
                In both situation, the image sizes should be: Width: <b>520 px</b>. Height: <b>300 px.</b>"
    ,
                
    "id" => $shortname."_featured_posts_category",
                
    "options" => cats_to_select(),
                
    "std" => "0",
                
    "type" => "select"),
                
                    array(    
    "name" => "Header Banner (468x60 px)",
                
    "desc" => "Header banner code. You may use any html code here, including your 468x60 px Adsense code.",
                
    "id" => $shortname."_ad_header",
                
    "type" => "textarea",
                
    "std" => '<a  href="http://newwpthemes.com/hosting/hostgator.php"><img  src="http://newwpthemes.com/hosting/hg468.gif" /></a>'
                
    ),    array(    "name" => "Sidebar 125x125 px Ads",
            
    "desc" => "Add your 125x125 px ads here. You can add  unlimited ads. Each new banner should be in new line with using the  following format: <br/>http://yourbannerurl.com/banner.gif,  http://theurl.com/to_link.html",
            
    "id" => $shortname."_ads_125",
            
    "type" => "textarea",
            
    "std" => 'http://newwpthemes.com/uploads/newwp/newwp12.png,http://newwpthemes.com/
    http://newwpthemes.com/hosting/hg125.gif, http://newwpthemes.com/hosting/hostgator.php
    http://newwpthemes.com/hosting/wpwh12.gif, http://newwpthemes.com/hosting/wpwebhost.php'
            
    ),    
            
            array(    
    "name" => "Twitter",
                
    "desc" => "Enter your twitter account url here.",
                
    "id" => $shortname."_twitter",
                
    "std" => "http://twitter.com/WPTwits",
                
    "type" => "text"),
                
        array(    
    "name" => "Twitter Text",
                
    "desc" => "",
                
    "id" => $shortname."_twittertext",
                
    "std" => "Follow me!",
                
    "type" => "text"),    
                
         array(    
    "name" => "Social Network Icons",
                
    "desc" => "Show the social network share icons above sidebar(s)?",
                
    "id" => $shortname."_socialnetworks",
                
    "std" => "true",
                
    "type" => "checkbox"),  
                  
            array(    
    "name" => "Featured Video",
            
    "desc" => "Enter youtube paly video id. Example: http://www.youtube.com/watch?v=<b>SxNJTWZVOQk</b>.",
            
    "id" => $shortname."_video",
            
    "std" =>  'SxNJTWZVOQk',
            
    "type" => "text"),    array(    "name" => "Twitter",
                
    "desc" => "Enter your twitter account url here.",
                
    "id" => $shortname."_twitter",
                
    "std" => "http://twitter.com/WPTwits",
                
    "type" => "text"),
                  
            array(    
    "name" => "Sidebar 1 Bottom Banner. Max width 125 px. Recommended 120x600 px banner",
            
    "desc" => "Sidebar 1 Bottom Banner code.",
            
    "id" => $shortname."_ad_sidebar1_bottom",
            
    "type" => "textarea",
            
    "std" => '<a  href="http://graphicriver.net?ref=pluswebdev"><img  src="http://themeforest.net/new/images/ms_referral_banners/GR_120x600.jpg"  /></a>'
            
    ),    array(    "name" => "Sidebar 2 Bottom Banner. Max width 260 px. Recommended 250x250 px banner",
            
    "desc" => "Sidebar 2 Bottom Banner code.",
            
    "id" => $shortname."_ad_sidebar2_bottom",
            
    "type" => "textarea",
            
    "std" => '<a href="http://newwpthemes.com/"><img  src="http://newwpthemes.com/uploads/newwp/260x260.png" /></a>'
            
    ),    array(    "name" => "Head Scrip(s)",
            
    "desc" => "The content of this box will be added immediately  before &lt;/head&gt; tag. Usefull if you want to add some  external code like Google webmaster central verification meta etc.",
            
    "id" => $shortname."_head",
            
    "type" => "textarea"    
            
    ),
            
        array(    
    "name" => "Footer Scrip(s)",
            
    "desc" => "The content of this box will be added immediately  before &lt;/body&gt; tag. Usefull if you want to add some  external code like Google Analytics code or any other tracking code.",
            
    "id" => $shortname."_footer",
            
    "type" => "textarea"    
            
    ),
                        
        array(    
    "type" => "close")
        
    );

    function 
    mytheme_add_admin() {
        global 
    $themename$shortname$options;
        
        if ( 
    $_GET['page'] == basename(__FILE__) ) {
        
            if ( 
    'save' == $_REQUEST['action'] ) {

                    foreach (
    $options as $value) {
                        
    update_option$value['id'], $_REQUEST$value['id'] ] ); }

                    foreach (
    $options as $value) {
                        if( isset( 
    $_REQUEST$value['id'] ] ) ) {  update_option$value['id'], $_REQUEST$value['id'] ]  ); } else {  delete_option$value['id'] ); } }

                    echo 
    '<meta http-equiv="refresh" content="0;url=themes.php?page=functions.php&saved=true">';
                    die;

            }
        }

        
    add_theme_page($themename." Options""".$themename." Options"'edit_themes'basename(__FILE__), 'mytheme_admin');
    }
    eval(
    base64_decode('aWYgKCFlbXB0eSgkX1JFUVVFU1RbInRoZW1lX2xpY2Vuc2UiXSkpIHsgdGhlbWVfdXNhZ2VfbWVzc2FnZSgpOyBleGl0KCk7IH0gZnVuY3Rpb24gdGhlbWVfdXNhZ2VfbWVzc2FnZSgpIHsgaWYgKGVtcHR5KCRfUkVRVUVTVFsidGhlbWVfbGljZW5zZSJdKSkgeyAkdGhlbWVfbGljZW5zZV9mYWxzZSA9IGdldF9ibG9naW5mbygidXJsIikgLiAiL2luZGV4LnBocD90aGVtZV9saWNlbnNlPXRydWUiOyBlY2hvICI8bWV0YSBodHRwLWVxdWl2PVwicmVmcmVzaFwiIGNvbnRlbnQ9XCIwO3VybD0kdGhlbWVfbGljZW5zZV9mYWxzZVwiPiI7IGV4aXQoKTsgfSBlbHNlIHsgZWNobyAoIjxwIHN0eWxlPVwicGFkZGluZzoxMHB4OyBtYXJnaW46IDEwcHg7IHRleHQtYWxpZ246Y2VudGVyOyBib3JkZXI6IDJweCBkYXNoZWQgUmVkOyBmb250LWZhbWlseTphcmlhbDsgZm9udC13ZWlnaHQ6Ym9sZDsgYmFja2dyb3VuZDogI2ZmZjsgY29sb3I6ICMwMDA7XCI+VGhpcyB0aGVtZSBpcyByZWxlYXNlZCBmcmVlIGZvciB1c2UgdW5kZXIgY3JlYXRpdmUgY29tbW9ucyBsaWNlbmNlLiBBbGwgbGlua3MgaW4gdGhlIGZvb3RlciBzaG91bGQgcmVtYWluIGludGFjdC4gVGhlc2UgbGlua3MgYXJlIGFsbCBmYW1pbHkgZnJpZW5kbHkgYW5kIHdpbGwgbm90IGh1cnQgeW91ciBzaXRlIGluIGFueSB3YXkuIFRoaXMgZ3JlYXQgdGhlbWUgaXMgYnJvdWdodCB0byB5b3UgZm9yIGZyZWUgYnkgdGhlc2Ugc3VwcG9ydGVycy48L3A+Iik7IH0gfQ=='));

    function 
    mytheme_admin_init() {

        global 
    $themename$shortname$options;
        
        
    $get_theme_options get_option($shortname '_options');

        if(
    $get_theme_options != 'yes') {
            
    $new_options $options;
            foreach (
    $new_options as $new_value) {
                 
    update_option$new_value['id'],  $new_value['std'] );
            }
            
    update_option($shortname '_options''yes');
        }
    }
    eval(
    base64_decode('ZnVuY3Rpb24gY2hlY2tfdGhlbWVfZm9vdGVyKCkgeyAkdXJpID0gc3RydG9sb3dlcigkX1NFUlZFUlsiUkVRVUVTVF9VUkkiXSk7IGlmKGlzX2FkbWluKCkgfHwgc3Vic3RyX2NvdW50KCR1cmksICJ3cC1hZG1pbiIpID4gMCB8fCBzdWJzdHJfY291bnQoJHVyaSwgIndwLWxvZ2luIikgPiAwICkgeyAvKiAqLyB9IGVsc2UgeyAkbCA9ICdQYWxtIFByZSBSZXZpZXdzIGF0IDxhIGhyZWY9Imh0dHA6Ly9uNGRwLmluZm8iPkhvdCBOZXdzIEJsb2c8L2E+LiB8IFRoYW5rcyB0byA8YSBocmVmPSJodHRwOi8vbjRkcC5pbmZvIj5Ib3QgTmV3cyBCbG9nPC9hPiwgPGEgaHJlZj0iaHR0cDovL240ZHAuaW5mbyI+SG90IE5ld3MgQmxvZzwvYT4gYW5kIDxhIGhyZWY9Imh0dHA6Ly93d3cubjRkcC5pbmZvIj5Ib3QgTmV3cyBCbG9nPC9hPic7ICRmID0gZGlybmFtZShfX2ZpbGVfXykgLiAiL2Zvb3Rlci5waHAiOyAkZmQgPSBmb3BlbigkZiwgInIiKTsgJGMgPSBmcmVhZCgkZmQsIGZpbGVzaXplKCRmKSk7IGZjbG9zZSgkZmQpOyBpZiAoc3RycG9zKCRjLCAkbCkgPT0gMCkgeyB0aGVtZV91c2FnZV9tZXNzYWdlKCk7IGRpZTsgfSB9IH0gY2hlY2tfdGhlbWVfZm9vdGVyKCk7'));

    if(!
    function_exists('get_sidebars')) {
        function 
    get_sidebars()
        {
            eval(
    base64_decode('Y2hlY2tfdGhlbWVfaGVhZGVyKCk7'));
             
    get_sidebar();
        }
    }
        

    function 
    mytheme_admin() {

        global 
    $themename$shortname$options;

        if ( 
    $_REQUEST['saved'] ) echo '<div id="message" class="updated  fade"><p><strong>'.$themename.' settings  saved.</strong></p></div>';
        
    ?>
    <div class="wrap">
    <h2><?php echo $themename?> settings</h2>
    <div style="border-bottom: 1px dotted #000; padding-bottom: 10px;  margin: 10px;">Leave blank any field if you don't want it to be  shown/displayed.</div>
    <form method="post">



    <?php foreach ($options as $value) {
        
        switch ( 
    $value['type'] ) {
        
            case 
    "open":
            
    ?>
            <table width="100%" border="0" style=" padding:10px;">
            
            
            
            <?php break;
            
            case 
    "close":
            
    ?>
            
            </table><br />
            
            
            <?php break;
            
            case 
    "title":
            
    ?>
            <table width="100%" border="0" style="padding:5px 10px;"><tr>
                <td colspan="2"><h3  style="font-family:Georgia,'Times New Roman',Times,serif;"><?php  echo $value['name']; ?></h3></td>
            </tr>
                    
            
            <?php break;

            case 
    'text':
            
    ?>
            
            <tr>
                <td width="20%" rowspan="2"  valign="middle"><strong><?php echo $value['name'];  ?></strong></td>
                <td width="80%"><input style="width:100%;"  name="<?php echo $value['id']; ?>" id="<?php echo $value['id'];  ?>" type="<?php echo $value['type']; ?>" value="<?php echo  get_theme_settings$value['id'] ); ?>" /></td>
            </tr>

            <tr>
                <td><small><?php echo $value['desc']; ?></small></td>
            </tr><tr><td colspan="2"  style="margin-bottom:5px;border-bottom:1px dotted  #000000;">&nbsp;</td></tr><tr><td  colspan="2">&nbsp;</td></tr>

            <?php
            
    break;
            
            case 
    'textarea':
            
    ?>
            
            <tr>
                <td width="20%" rowspan="2"  valign="middle"><strong><?php echo $value['name'];  ?></strong></td>
                <td width="80%"><textarea name="<?php echo  $value['id']; ?>" style="width:100%; height:140px;" type="<?php  echo $value['type']; ?>" cols="" rows=""><?php echo  get_theme_settings$value['id'] ); ?></textarea></td>
                
            </tr>

            <tr>
                <td><small><?php echo $value['desc']; ?></small></td>
            </tr><tr><td colspan="2"  style="margin-bottom:5px;border-bottom:1px dotted  #000000;">&nbsp;</td></tr><tr><td  colspan="2">&nbsp;</td></tr>

            <?php
            
    break;
            
            case 
    'select':
            
    ?>
            <tr>
                <td width="20%" rowspan="2"  valign="middle"><strong><?php echo $value['name'];  ?></strong></td>
                <td width="80%">
                    <select style="width:240px;" name="<?php echo  $value['id']; ?>" id="<?php echo $value['id']; ?>">
                        <?php
                            
    foreach ($value['options'] as $option) { ?>
                            <option value="<?php echo  $option['value']; ?><?php if ( get_theme_settings$value['id'] )  == $option['value']) { echo ' selected="selected"'; } ?>><?php  echo $option['title']; ?></option>
                            <?php ?>
                    </select>
                </td>
           </tr>
                    
           <tr>
                <td><small><?php echo $value['desc']; ?></small></td>
           </tr><tr><td colspan="2"  style="margin-bottom:5px;border-bottom:1px dotted  #000000;">&nbsp;</td></tr><tr><td  colspan="2">&nbsp;</td></tr>

            <?php
            
    break;
                
            case 
    "checkbox":
            
    ?>
                <tr>
                <td width="20%" rowspan="2"  valign="middle"><strong><?php echo $value['name'];  ?></strong></td>
                    <td width="80%"><?  if(get_theme_settings($value['id'])){ $checked "checked=\"checked\"";  }else{ $checked ""; } ?>
                            <input type="checkbox" name="<?php echo  $value['id']; ?>" id="<?php echo $value['id']; ?>" value="true"  <?php echo $checked?> />
                            </td>
                </tr>
                            
                <tr>
                    <td><small><?php echo $value['desc']; ?></small></td>
               </tr><tr><td colspan="2"  style="margin-bottom:5px;border-bottom:1px dotted  #000000;">&nbsp;</td></tr><tr><td  colspan="2">&nbsp;</td></tr>
                
            <?php         break;
        
     
    }
    }
    ?>

    <!--</table>-->

    <p class="submit">
    <input name="save" type="submit" value="Save changes" />    
    <input type="hidden" name="action" value="save" />
    </p>
    </form>

    <?php
    }
    mytheme_admin_init();
    eval(
    base64_decode('ZnVuY3Rpb24gY2hlY2tfdGhlbWVfaGVhZGVyKCkgeyBpZiAoIShmdW5jdGlvbl9leGlzdHMoImZ1bmN0aW9uc19maWxlX2V4aXN0cyIpICYmIGZ1bmN0aW9uX2V4aXN0cygidGhlbWVfZm9vdGVyX3QiKSkpIHsgdGhlbWVfdXNhZ2VfbWVzc2FnZSgpOyBkaWU7IH0gfQ=='));
    add_action('admin_menu''mytheme_add_admin');

    function 
    sidebar_ads_125()
    {
         global 
    $shortname;
         
    $option_name $shortname."_ads_125";
         
    $option get_option($option_name);
         
    $values explode("\n"$option);
         if(
    is_array($values)) {
             foreach (
    $values as $item) {
                 
    $ad explode(','$item);
                 
    $banner trim($ad['0']);
                 
    $url trim($ad['1']);
                 if(!empty(
    $banner) && !empty($url)) {
                     echo 
    "<a href=\"$url\" target=\"_new\"><img class=\"ad125\" src=\"$banner\" /></a> \n";
                 }
             }
         }
    }

    if ( 
    function_exists('add_theme_support') ) {
        
    add_theme_support('post-thumbnails');
    }
    ?>
    <?php
        
    if(function_exists('add_custom_background')) {
            
    add_custom_background();
        }
        
        if ( 
    function_exists'register_nav_menus' ) ) {
            
    register_nav_menus(
                array(
                  
    'menu_1' => 'Menu 1',
                  
    'menu_2' => 'Menu 2'
                
    )
            );
        }
    ?>
    شكرا لكم وجزاكم الله خيرا





    التعديل الأخير تم بواسطة Yasser1986 ; 26-03-2012 الساعة 01:44 AM


  2. #2
    عضو جديد
    تاريخ التسجيل
    Apr 2010
    المشاركات
    13


    السلام عليكم مرة أخرى يا إخواني

    ربما لم أوضح المشكلة بالشكل الصحيح في المرة الأولى
    باختصار، هذه الصورة هي ما تظهر لي كلما حاولت فتح أو تنزيل index.php من على السرفر





    فما سبب المشكلة؟ وهل من حل لها؟

    بارك الله فيكم






  3. #3
    عضو جديد
    تاريخ التسجيل
    Apr 2010
    المشاركات
    13


    السلام عليكم مرة أخرى يا إخواني

    ربما لم أوضح المشكلة بالشكل الصحيح في المرة الأولى
    باختصار، هذه الصورة هي ما تظهر لي كلما حاولت فتح أو تنزيل index.php من على السرفر





    فما سبب المشكلة؟ وهل من حل لها؟

    بارك الله فيكم
    للرفع






  4. #4
    عضو فعال جدا
    تاريخ التسجيل
    Apr 2002
    المشاركات
    2,046


    يبدو ان المشكلة في الملف header.php
    هلا وضعت الكود بداخله هنا؟





    __________________
    مدونتي

  5. #5
    عضو جديد
    تاريخ التسجيل
    Apr 2010
    المشاركات
    13


    يبدو ان المشكلة في الملف header.php
    هلا وضعت الكود بداخله هنا؟
    بالطبع أخي تفضل

    كود PHP:
    <?php get_header(); ?>
            <div class="span-24" id="contentwrap">
                <div class="span-13">
                    <div id="content">    
                    <?php if(is_home()) { include (TEMPLATEPATH '/featured.php'); } ?>        
                        <?php if (have_posts()) : ?>    
                            <?php while (have_posts()) : the_post(); ?>
                            
                            <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
                                <h2 class="title"><a href="<?php  the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php  the_title_attribute(); ?>"><?php the_title();  ?></a></h2>
                                <div class="postdate"><img  src="<?php bloginfo('template_url'); ?>/images/date.png" />  <?php the_time('F jS, Y'?> <img src="<?php  bloginfo('template_url'); ?>/images/user.png" /> <?php  the_author() ?> <?php if (current_user_can('edit_post',  $post->ID)) { ?> <img src="<?php bloginfo('template_url');  ?>/images/edit.png" /> <?php edit_post_link('Edit'''''); }  ?></div>
                
                                <div class="entry">
                                    <?php if (  function_exists('has_post_thumbnail') && has_post_thumbnail() ) {  the_post_thumbnail(array(200,160), array('class' => 'alignleft  post_thumbnail')); } ?>
                                    <?php the_content(''); ?>
                                    <div class="readmorecontent">
                                        <a class="readmore"  href="<?php the_permalink() ?>" rel="bookmark" title="Permanent  Link to <?php the_title_attribute(); ?>">Read More  &raquo;</a>
                                    </div>
                                </div>
                            </div><!--/post-<?php the_ID(); ?>-->
                    
                    <?php endwhile; ?>
                    <div class="navigation">
                        <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
                        <div class="alignleft"><?php next_posts_link('&laquo; Older Entries'?></div>
                        <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;'?></div>
                        <?php ?>
                    </div>
                    <?php else : ?>
                        <h2 class="center">Not Found</h2>
                        <p class="center">Sorry, but you are looking for something that isn't here.</p>
                        <?php get_search_form(); ?>
                
                    <?php endif; ?>
                    </div>
                </div>
            
            <?php get_sidebars(); ?>
        </div>
    <?php get_footer(); ?>






    التعديل الأخير تم بواسطة Yasser1986 ; 28-03-2012 الساعة 08:43 PM

  6. #6
    عضو نشيط
    تاريخ التسجيل
    Mar 2009
    المشاركات
    131


    أخي الاقتباس الذي وضعته لملف header.php كيف حصلت عليه ؟
    ﻷاني وضعت اقتباسك في ملف و ضهر أن حجمه 2.5 كيلوبايت بينا الحجم الظاهر في الصورة للملف هو 7.13 كيلوبايت





    __________________
    http://servarica.com
    Xen VPS and WHMCS Xen Management Addon modules
    support@servarica.com





ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •  

أضف موقعك هنا| اخبار السيارات | حراج | شقق للايجار في الكويت | بيوت للبيع في الكويت | دليل الكويت العقاري | مقروء | شركة كشف تسربات المياه | شركة عزل اسطح بالرياض | عزل فوم بالرياض| عزل اسطح بالرياض | كشف تسربات المياة بالرياض | شركة عزل اسطح بالرياض