Coinbase

Author Topic: Error displayng GoogleAds abd Bidster  (Read 7332 times)

0 Members and 1 Guest are viewing this topic.

Offline st2006

  • Jr. Member
  • **
  • Posts: 11
Error displayng GoogleAds abd Bidster
« on: December 16, 2006, 06:16:05 pm »
It is for Bidster

Parse error: syntax error, unexpected '<' in /home/prisonfo/public_html/Sources/Load.php(1724) : eval()'d code(15) : eval()'d code on line 1


    Ad Managment      2.0

http://www.PrisonForum.com

HTML ads are displayed properly.


BTW, I've clicked all of your banners!

$10 has been sent to the developer. Everybody are encorage to do the same.

If you ignoore Donate button on your forum to help this project, you not even suppose to be here!
« Last Edit: December 16, 2006, 07:13:09 pm by st2006 »

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Error displayng GoogleAds abd Bidster
« Reply #1 on: December 16, 2006, 09:32:54 pm »
Could you paste your Load.php file

Offline st2006

  • Jr. Member
  • **
  • Posts: 11
Re: Error displayng GoogleAds abd Bidster
« Reply #2 on: December 17, 2006, 09:40:50 am »
Thank you for the reply!


==

<?php
/**********************************************************************************
* Load.php                                                                        *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com)                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
   die('Hacking attempt...');

/*   This file has the hefty job of loading information for the forum.  It uses
   the following functions:

   void reloadSettings()
      - loads or reloads the $modSettings array.
      - takes care of mysql_set_mode, if set.
      - loads any integration settings, SMF_INTEGRATION_SETTINGS, etc.
      - optimizes tables based on autoOptDatabase, autoOptLastOpt, and
        autoOptMaxOnline.

   void loadUserSettings()
        - sets up the $user_info array
        - assigns $user_info['query_see_board'] for what boards the user can see.
        - first checks for cookie or intergration validation.
        - uses the current session if no integration function or cookie is found.
        - checks password length, if member is activated and the login span isn't over.
        - if validation fails for the user, $ID_MEMBER is set to 0.
        - updates the last visit time when needed.

    void loadBoard()
        - sets up the $board_info array for current board information.
        - if cache is enabled, the $board_info array is stored in cache.   
        - is only used when inside a topic or board.
        - determines the local moderators for the board.
        - adds group id 3 if the user is a local moderator for the board they are in.
        - prevents access if user is not in proper group nor a local moderator of the board.

   void loadPermissions()
      // !!!

   array loadMemberData(array members, bool is_name = false, string set = 'normal')
      // !!!

   bool loadMemberContext(int ID_MEMBER)
      // !!!

   void loadTheme(int ID_THEME = auto_detect)
      // !!!

   void loadTemplate(string template_name, bool fatal = true)
      - loads a template file with the name template_name from the current,
        default, or base theme.
      - uses the template_include() function to include the file.
      - detects a wrong default theme directory and tries to work around it.
      - if fatal is true, dies with an error message if the template cannot
        be found.

   void loadSubTemplate(string sub_template_name, bool fatal = false)
      - loads the sub template specified by sub_template_name, which must be
        in an already-loaded template.
      - if ?debug is in the query string, shows administrators a marker after
        every sub template for debugging purposes.

   string loadLanguage(string template_name, string language = default, bool fatal = true)
      // !!!

   array getBoardParents(int ID_PARENT)
      - finds all the parents of ID_PARENT, and that board itself.
      - additionally detects the moderators of said boards.
      - returns an array of information about the boards found.

   string &censorText(string &text)
      - censors the passed string.
      - if the theme setting allow_no_censored is on, and the theme option
        show_no_censored is enabled, does not censor.
      - caches the list of censored words to reduce parsing.

   void loadJumpTo()
      // !!!

   void template_include(string filename, bool only_once = false)
      - loads the template or language file specified by filename.
      - if once is true, only includes the file once (like include_once.)
      - uses eval unless disableTemplateEval is enabled.
      - outputs a parse error if the file did not exist or contained errors.
      - attempts to detect the error and line, and show detailed information.

   void loadSession()
      // !!!

   bool sessionOpen(string session_save_path, string session_name)
   bool sessionClose()
   bool sessionRead(string session_id)
   bool sessionWrite(string session_id, string data)
   bool sessionDestroy(string session_id)
   bool sessionGC(int max_lifetime)
      - implementations of PHP's session API.
      - handle the session data in the database (more scalable.)
      - use the databaseSession_lifetime setting for garbage collection.
      - set by loadSession().

   void cache_put_data(string key, mixed value, int ttl = 120)
      - puts value in the cache under key for ttl seconds.
      - may "miss" so shouldn't be depended on, and may go to any of many
        various caching servers.
      - supports eAccelerator, Turck MMCache, ZPS, and memcached.

   mixed cache_get_data(string key, int ttl = 120)
      - gets the value from the cache specified by key, so long as it is not
        older than ttl seconds.
      - may often "miss", so shouldn't be depended on.
      - supports the same as cache_put_data().

   void get_memcached_server(int recursion_level = 3)
      - used by cache_get_data() and cache_put_data().
      - attempts to connect to a random server in the cache_memcached
        setting.
      - recursively calls itself up to recursion_level times.
*/

// Load the $modSettings array.
function reloadSettings()
{
   global $modSettings, $db_prefix, $boarddir, $func, $txt, $db_character_set;
   global $mysql_set_mode, $context;

   // This makes it possible to have SMF automatically change the sql_mode and autocommit if needed.
   if (isset($mysql_set_mode) && $mysql_set_mode === true)
      db_query("SET sql_mode='', AUTOCOMMIT=1", false, false);

   // Most database systems have not set UTF-8 as their default input charset.
   if (isset($db_character_set) && preg_match('~^\w+$~', $db_character_set) === 1)
      db_query("
         SET NAMES $db_character_set", __FILE__, __LINE__);

   // Try to load it from the cache first; it'll never get cached if the setting is off.
   if (($modSettings = cache_get_data('modSettings', 90)) == null)
   {
      $request = db_query("
         SELECT variable, value
         FROM {$db_prefix}settings", false, false);
      $modSettings = array();
      if (!$request)
         db_fatal_error();
      while ($row = mysql_fetch_row($request))
         $modSettings[$row[0]] = $row[1];
      mysql_free_result($request);


      // Do a few things to protect against missing settings or settings with invalid values...
      if (empty($modSettings['defaultMaxTopics']) || $modSettings['defaultMaxTopics'] <= 0 || $modSettings['defaultMaxTopics'] > 999)
         $modSettings['defaultMaxTopics'] = 20;
      if (empty($modSettings['defaultMaxMessages']) || $modSettings['defaultMaxMessages'] <= 0 || $modSettings['defaultMaxMessages'] > 999)
         $modSettings['defaultMaxMessages'] = 15;
      if (empty($modSettings['defaultMaxMembers']) || $modSettings['defaultMaxMembers'] <= 0 || $modSettings['defaultMaxMembers'] > 999)
         $modSettings['defaultMaxMembers'] = 30;

      if (!empty($modSettings['cache_enable']))
         cache_put_data('modSettings', $modSettings, 90);
   }

   // UTF-8 in regular expressions is unsupported on PHP(win) versions < 4.2.3.
   $utf8 = (empty($modSettings['global_character_set']) ? $txt['lang_character_set'] : $modSettings['global_character_set']) === 'UTF-8' && (strpos(strtolower(PHP_OS), 'win') === false || @version_compare(PHP_VERSION, '4.2.3') != -1);

   // Set a list of common functions.
   $ent_list = empty($modSettings['disableEntityCheck']) ? '&(#\d{1,7}|quot|amp|lt|gt|nbsp);' : '&(#021|quot|amp|lt|gt|nbsp);';
   $ent_check = empty($modSettings['disableEntityCheck']) ? array('preg_replace(\'~(&#(\d{1,7}|x[0-9a-fA-F]{1,6});)~e\', \'$func[\\\'entity_fix\\\'](\\\'\\2\\\')\', ', ')') : array('', '');

   // Preg_replace can handle complex characters only for higher PHP versions.
   $space_chars = $utf8 ? ($context['server']['complex_preg_chars'] ? '\x{C2A0}\x{E28080}-\x{E2808F}\x{E280AF}\x{E2809F}\x{E38080}\x{EFBBBF}' : sprintf('%c%c%c%c%c-%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c', 0xC2, 0xA0, 0xE2, 0x80, 0x80, 0xE2, 0x80, 0x8F, 0xE2, 0x80, 0xAF, 0xE2, 0x80, 0x9F, 0xE3, 0x80, 0x80, 0xEF, 0xBB, 0xBF)) : '\xA0';
   
   $func = array(
      'entity_fix' => create_function('$string', '
         $num = substr($string, 0, 1) === \'x\' ? hexdec(substr($string, 1)) : (int) $string;
         return $num < 0x20 || $num > 0x10FFFF || ($num >= 0xD800 && $num <= 0xDFFF) ? \'\' : \'&#\' . $num . \';\';'),
      'substr' => create_function('$string, $start, $length = null', '
         global $func;
         $ent_arr = preg_split(\'~(&#' . (empty($modSettings['disableEntityCheck']) ? '\d{1,7}' : '021') . ';|&quot;|&amp;|&lt;|&gt;|&nbsp;|.)~' . ($utf8 ? 'u' : '') . '\', ' . implode('$string', $ent_check) . ', -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
         return $length === null ? implode(\'\', array_slice($ent_arr, $start)) : implode(\'\', array_slice($ent_arr, $start, $length));'),
      'strlen' => create_function('$string', '
         global $func;
         return strlen(preg_replace(\'~' . $ent_list . ($utf8 ? '|.~u' : '~') . '\', \'_\', ' . implode('$string', $ent_check) . '));'),
      'strpos' => create_function('$haystack, $needle, $offset = 0', '
         global $func;
         $haystack_arr = preg_split(\'~(&#' . (empty($modSettings['disableEntityCheck']) ? '\d{1,7}' : '021') . ';|&quot;|&amp;|&lt;|&gt;|&nbsp;|.)~' . ($utf8 ? 'u' : '') . '\', ' . implode('$haystack', $ent_check) . ', -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
         $haystack_size = count($haystack_arr);
         if (strlen($needle) === 1)
         {
            $result = array_search($needle, array_slice($haystack_arr, $offset));
            return is_int($result) ? $result + $offset : false;
         }
         else
         {
            $needle_arr = preg_split(\'~(&#' . (empty($modSettings['disableEntityCheck']) ? '\d{1,7}' : '021') . ';|&quot;|&amp;|&lt;|&gt;|&nbsp;|.)~' . ($utf8 ? 'u' : '') . '\',  ' . implode('$needle', $ent_check) . ', -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
            $needle_size = count($needle_arr);

            $result = array_search($needle_arr[0], array_slice($haystack_arr, $offset));
            while (is_int($result))
            {
               $offset += $result;
               if (array_slice($haystack_arr, $offset, $needle_size) === $needle_arr)
                  return $offset;
               $result = array_search($needle_arr[0], array_slice($haystack_arr, ++$offset));
            }
            return false;
         }'),
      'htmlspecialchars' => create_function('$string, $quote_style = ENT_COMPAT, $charset = \'ISO-8859-1\'', '
         global $func;
         return ' . strtr($ent_check[0], array('&' => '&amp;'))  . 'htmlspecialchars($string, $quote_style, ' . ($utf8 ? '\'UTF-8\'' : '$charset') . ')' . $ent_check[1] . ';'),
      'htmltrim' => create_function('$string', '
         global $func;
         return preg_replace(\'~^([ \t\n\r\x0B\x00' . $space_chars . ']|&nbsp;)+|([ \t\n\r\x0B\x00' . $space_chars . ']|&nbsp;)+$~' . ($utf8 ? 'u' : '') . '\', \'\', ' . implode('$string', $ent_check) . ');'),
      'truncate' => create_function('$string, $length', (empty($modSettings['disableEntityCheck']) ? '
         global $func;
         $string = ' . implode('$string', $ent_check) . ';' : '') . '
         preg_match(\'~^(' . $ent_list . '|.){\' . $func[\'strlen\'](substr($string, 0, $length)) . \'}~'.  ($utf8 ? 'u' : '') . '\', $string, $matches);
         $string = $matches[0];
         while (strlen($string) > $length)
            $string = preg_replace(\'~(' . $ent_list . '|.)$~'.  ($utf8 ? 'u' : '') . '\', \'\', $string);
         return $string;'),
      'strtolower' => $utf8 ? (function_exists('mb_strtolower') ? create_function('$string', '
         return mb_strtolower($string, \'UTF-8\');') : create_function('$string', '
         global $sourcedir;
         require_once($sourcedir . \'/Subs-Charset.php\');
         return utf8_strtolower($string);')) : 'strtolower',
      'strtoupper' => $utf8 ? (function_exists('mb_strtoupper') ? create_function('$string', '
         return mb_strtoupper($string, \'UTF-8\');') : create_function('$string', '
         global $sourcedir;
         require_once($sourcedir . \'/Subs-Charset.php\');
         return utf8_strtoupper($string);')) : 'strtoupper',
      'ucfirst' => $utf8 ? create_function('$string', '
         global $func;
         return $func[\'strtoupper\']($func[\'substr\']($string, 0, 1)) . $func[\'substr\']($string, 1);') : 'ucfirst',
      'ucwords' => $utf8 ? (function_exists('mb_convert_case') ? create_function('$string', '
         return mb_convert_case($string, MB_CASE_TITLE, \'UTF-8\');') : create_function('$string', '
         global $func;
         $words = preg_split(\'~([\s\r\n\t]+)~\', $string, -1, PREG_SPLIT_DELIM_CAPTURE);
         for ($i = 0, $n = count($words); $i < $n; $i += 2)
            $words[$i] = $func[\'ucfirst\']($words[$i]);
         return implode(\'\', $words);')) : 'ucwords',
   );

   // Setting the timezone is a requirement for some functions in PHP >= 5.1.
   if (isset($modSettings['default_timezone']) && function_exists('date_default_timezone_set'))
      date_default_timezone_set($modSettings['default_timezone']);

   // Check the load averages?
   if (!empty($modSettings['loadavg_enable']))
   {
      if (($modSettings['load_average'] = cache_get_data('loadavg', 90)) == null)
      {
         $modSettings['load_average'] = @file_get_contents('/proc/loadavg');
         if (!empty($modSettings['load_average']) && preg_match('~^([^ ]+?) ([^ ]+?) ([^ ]+)~', $modSettings['load_average'], $matches) != 0)
            $modSettings['load_average'] = (float) $matches[1];
         elseif (($modSettings['load_average'] = @`uptime`) != null && preg_match('~load average?: (\d+\.\d+), (\d+\.\d+), (\d+\.\d+)~i', $modSettings['load_average'], $matches) != 0)
            $modSettings['load_average'] = (float) $matches[1];
         else
            unset($modSettings['load_average']);

         if (!empty($modSettings['load_average']))
            cache_put_data('loadavg', $modSettings['load_average'], 90);
      }

      if (!empty($modSettings['loadavg_forum']) && !empty($modSettings['load_average']) && $modSettings['load_average'] >= $modSettings['loadavg_forum'])
         db_fatal_error(true);
   }

   // Integration is cool.
   if (defined('SMF_INTEGRATION_SETTINGS'))
      $modSettings = unserialize(SMF_INTEGRATION_SETTINGS) + $modSettings;
      
   if (isset($modSettings['integrate_pre_include']) && file_exists(strtr($modSettings['integrate_pre_include'], array('$boarddir' => $boarddir))))
      require_once(strtr($modSettings['integrate_pre_include'], array('$boarddir' => $boarddir)));
      
   if (isset($modSettings['integrate_pre_load']) && function_exists($modSettings['integrate_pre_load']))
      call_user_func($modSettings['integrate_pre_load']);

   // Is it time again to optimize the database?
   if (empty($modSettings['autoOptDatabase']) || $modSettings['autoOptLastOpt'] + $modSettings['autoOptDatabase'] * 3600 * 24 >= time() || SMF == 'SSI')
      return;

   if (!empty($modSettings['load_average']) && !empty($modSettings['loadavg_auto_opt']) && $modSettings['load_average'] >= $modSettings['loadavg_auto_opt'])
      return;

   if (!empty($modSettings['autoOptMaxOnline']))
   {
      $request = db_query("
         SELECT COUNT(*)
         FROM {$db_prefix}log_online", __FILE__, __LINE__);
      list ($dont_do_it) = mysql_fetch_row($request);
      mysql_free_result($request);

      if ($dont_do_it > $modSettings['autoOptMaxOnline'])
         return;
   }

   // Handle if things are prefixed with a database name.
   if (preg_match('~^`(.+?)`\.(.+?)$~', $db_prefix, $match) != 0)
   {
      $request = db_query("
         SHOW TABLES
         FROM `" . strtr($match[1], array('`' => '')) . "`
         LIKE '" . str_replace('_', '\_', $match[2]) . "%'", __FILE__, __LINE__);
   }
   else
   {
      $request = db_query("
         SHOW TABLES
         LIKE '" . str_replace('_', '\_', $db_prefix) . "%'", __FILE__, __LINE__);
   }

   $tables = array();
   while ($row = mysql_fetch_row($request))
      $tables[] = $row[0];
   mysql_free_result($request);

   updateSettings(array('autoOptLastOpt' => time()));

   // Don't bail if the user does.
   ignore_user_abort(true);

   // Do them one at a time for locking reasons...
   foreach ($tables as $table)
      db_query("
         OPTIMIZE TABLE `$table`", __FILE__, __LINE__);
}

// Load all the important user information...
function loadUserSettings()
{
   global $modSettings, $user_settings;
   global $ID_MEMBER, $db_prefix, $cookiename, $user_info, $language;

   // Check first the integration, then the cookie, and last the session.
   if (isset($modSettings['integrate_verify_user']) && function_exists($modSettings['integrate_verify_user']))
   {
      $ID_MEMBER = (int) call_user_func($modSettings['integrate_verify_user']);
      $already_verified = $ID_MEMBER > 0;
   }
   else
      $ID_MEMBER = 0;

   if (empty($ID_MEMBER) && isset($_COOKIE[$cookiename]))
   {
      $_COOKIE[$cookiename] = stripslashes($_COOKIE[$cookiename]);


==========
And on

The message exceeds the maximum allowed length (40000 characters).

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Error displayng GoogleAds abd Bidster
« Reply #3 on: December 17, 2006, 02:07:10 pm »
Could you put this instead [ code] [/ code] tags please.

Offline st2006

  • Jr. Member
  • **
  • Posts: 11
Re: Error displayng GoogleAds abd Bidster
« Reply #4 on: December 17, 2006, 04:57:34 pm »
Do you mean

not
<?php

but

[ code]

and [/ code]


at the end of the page?

Thank you!


Offline st2006

  • Jr. Member
  • **
  • Posts: 11
Re: Error displayng GoogleAds abd Bidster
« Reply #5 on: December 17, 2006, 05:00:13 pm »
PS. your banners are clicked!

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Error displayng GoogleAds abd Bidster
« Reply #6 on: December 17, 2006, 10:31:53 pm »
Attach your Load.php file.

Offline st2006

  • Jr. Member
  • **
  • Posts: 11
Re: Error displayng GoogleAds abd Bidster
« Reply #7 on: December 17, 2006, 11:07:27 pm »
Banners are clicked. Thank you!

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Error displayng GoogleAds abd Bidster
« Reply #8 on: December 18, 2006, 07:38:18 pm »
What is the ad code you are using?

Offline st2006

  • Jr. Member
  • **
  • Posts: 11
GoogleAds
« Reply #9 on: December 18, 2006, 09:48:14 pm »
script type="text/javascript"><!--
          google_ad_client = "pub-8198873437291416";
          google_ad_width = 728;
          google_ad_height = 90;
          google_ad_format = "728x90_as";
          google_ad_type = "text_image";
          google_ad_channel ="";
          //--></script>

Offline st2006

  • Jr. Member
  • **
  • Posts: 11
Bidster
« Reply #10 on: December 18, 2006, 09:49:00 pm »
 <!-- Begin BidVertiser code -->
<SCRIPT LANGUAGE="JavaScript1.1" SRC="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=45898&bid=107362"></SCRIPT>
<noscript><a href="http://www.bidvertiser.com">marketing</a></noscript>
<!-- End BidVertiser code -->

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Error displayng GoogleAds abd Bidster
« Reply #11 on: December 18, 2006, 10:03:48 pm »
You choose to display these as HTML code?

Offline st2006

  • Jr. Member
  • **
  • Posts: 11
Re: Error displayng GoogleAds abd Bidster
« Reply #12 on: December 18, 2006, 11:03:13 pm »
No, PHP, I'm sure I have tried both. Let me see.

Switched to HTML. Bidstar works, GoogleAds - trace on the page.

http://PrisonForum.com

« Last Edit: December 18, 2006, 11:06:45 pm by st2006 »

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Error displayng GoogleAds abd Bidster
« Reply #13 on: December 19, 2006, 10:17:05 am »
make sure your google ads are this:
<script type="text/javascript"><!--
          google_ad_client = "pub-8198873437291416";
          google_ad_width = 728;
          google_ad_height = 90;
          google_ad_format = "728x90_as";
          google_ad_type = "text_image";
          google_ad_channel ="";
          //--></script>

Offline st2006

  • Jr. Member
  • **
  • Posts: 11
Re: Error displayng GoogleAds abd Bidster
« Reply #14 on: December 19, 2006, 12:45:19 pm »
Attached file.

Thank you!

SMF Ads Support Forum

Re: Error displayng GoogleAds abd Bidster
« Reply #14 on: December 19, 2006, 12:45:19 pm »
.