<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум PHP-MyAdmin.RU &mdash; Еще одна ошибка]]></title>
	<link rel="self" href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=740&amp;type=atom" />
	<updated>2008-04-06T13:17:26Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.php-myadmin.ru/viewtopic.php?id=740</id>
		<entry>
			<title type="html"><![CDATA[Re: Еще одна ошибка]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=4751#p4751" />
			<content type="html"><![CDATA[<p><strong>pellets-wood</strong><br />Поищите класс vbulletin3member и наличие функции eventinit() в нем.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2008-04-06T13:17:26Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=4751#p4751</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Еще одна ошибка]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=4750#p4750" />
			<content type="html"><![CDATA[<p>С чего начинать ее поиск?</p>]]></content>
			<author>
				<name><![CDATA[pellets-wood]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1211</uri>
			</author>
			<updated>2008-04-06T10:16:56Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=4750#p4750</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Еще одна ошибка]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=4749#p4749" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>pellets-wood сказал:</cite><blockquote><p>и в чем ошибка?</p></blockquote></div><p>Не знаю.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2008-04-06T09:01:18Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=4749#p4749</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Еще одна ошибка]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=4748#p4748" />
			<content type="html"><![CDATA[<p>Исходный код <br /></p><div class="codebox"><pre><code>&lt;?php
/*********************/
/*                   */
/*  Version : 5.1.0  */
/*  Author  : RM     */
/*  Comment : 071223 */
/*                   */
/*********************/

class exteriormember
{

    var $MOD_NAME = &quot;Member_&quot;;
    var $PROGRAM_FILE = &quot;&quot;;
    var $PROGRAM_TBL = &quot;&quot;;
    var $db;
    var $db1;
    var $MOD_CFG = array( );
    var $HW_MOD_DIR = &quot;&quot;;
    var $DESCR = &quot;&quot;;
    var $ACTIVE_URL = &quot;&quot;;
    var $LOGOUT_URL = &quot;&quot;;
    var $IS_DEMO = 0;
    var $GET_LOGOUT_VARS = &quot;&quot;;
    var $ADD_LOGOUT_URL = &quot;&quot;;
    var $VERSIONS = array( );
    var $ver_msg = &quot;Warning: software version %s was not tested with this module&quot;;
    var $err_msg = &quot;&quot;;

    function exteriormember( $mod_name, $program_file = &quot;&quot;, $program_tbl = &quot;&quot;, $active_url = &quot;&quot;, $logout_url = &quot;&quot;, $is_demo = 0, $versions = array( ) )
    {
        $this-&gt;MOD_NAME .= $mod_name;
        $info = explode( &quot;:&quot;, $program_file );
        if ( 1 &lt; count( $info ) )
        {
            array_shift( $info );
            $this-&gt;DESCR = implode( &quot;:&quot;, $info );
        }
        else
        {
            $this-&gt;PROGRAM_FILE = $program_file;
            $this-&gt;PROGRAM_TBL = $program_tbl;
        }
        $this-&gt;db =&amp; $GLOBALS[&#039;db&#039;];
        $this-&gt;ACTIVE_URL = $active_url;
        $this-&gt;LOGOUT_URL = $logout_url;
        $this-&gt;IS_DEMO = $is_demo;
        $this-&gt;HW_MOD_DIR = SITE_PATH.&quot;modules/&quot;.$this-&gt;MOD_NAME.&quot;/&quot;;
        $this-&gt;VERSIONS = $versions;
    }

    function info( &amp;$A_MOD, &amp;$A_CFG )
    {
        $A_MOD = array(
            &quot;dir&quot; =&gt; $this-&gt;MOD_NAME,
            &quot;descr&quot; =&gt; $this-&gt;DESCR
        );
        $a_v = array(
            &quot;TPREF&quot; =&gt; &quot;bb_&quot;,
            &quot;PURL&quot; =&gt; &quot;forum/&quot;,
            &quot;PDIR&quot; =&gt; str_replace( &quot;\\&quot;, &quot;/&quot;, $_SERVER[&#039;DOCUMENT_ROOT&#039;] ).&quot;/forum/&quot;,
            &quot;EN_OTHER_DB&quot; =&gt; 0,
            &quot;DB_SERVER&quot; =&gt; &quot;localhost&quot;,
            &quot;DB_NAME&quot; =&gt; &quot;&quot;,
            &quot;DB_USER&quot; =&gt; &quot;&quot;,
            &quot;DB_PWD&quot; =&gt; &quot;&quot;,
            &quot;custom_cfg&quot; =&gt; &quot;&quot;
        );
        foreach ( $a_v as $k =&gt; $v )
        {
            $A_CFG[$k] = $A_CFG[$k] != &quot;&quot; ? $A_CFG[$k] : $v;
        }
    }

    function setupvalidate( )
    {
        $err_msg = &quot;&quot;;
        if ( !$_POST[&#039;PURL&#039;] )
        {
            do
            {
                do
                {
                    $err_msg = &quot;Program URL is required&quot;;
                    if ( $_POST[&#039;PURL&#039;] )
                    {
                        break;
                        if ( $_POST[&#039;PURL&#039;] )
                        {
                            break;
                        }
                    }
                    else
                    {
                        $fname = str_replace( &quot;\\&quot;, &quot;/&quot;, $_SERVER[&#039;DOCUMENT_ROOT&#039;] ).&quot;/&quot;.$_POST[&#039;PURL&#039;].$this-&gt;PROGRAM_FILE;
                        $fp = @fopen( $fname, &quot;r&quot; );
                        if ( !$fp )
                        {
                            $err_msg = &quot;Incorrect program relative URL: &quot;.$_POST[&#039;PURL&#039;];
                        }
                        if ( $err_msg )
                        {
                            break;
                        }
                    }
                    if ( !$_POST[&#039;PDIR&#039;] )
                    {
                        $err_msg = &quot;Program dir is required&quot;;
                    }
                    else
                    {
                        if ( !is_file( $_POST[&#039;PDIR&#039;].$this-&gt;PROGRAM_FILE ) )
                        {
                            $err_msg = &quot;Incorrect program directory&quot;;
                        }
                        else
                        {
                            if ( $_POST[&#039;EN_OTHER_DB&#039;] )
                            {
                                if ( version_compare( PHP_VERSION, &quot;4.2&quot; ) &lt; 0 )
                                {
                                    $err_msg = &quot;\&quot;Use separate DB\&quot; option requires PHP 4.2 or later version. Your have PHP &quot;.PHP_VERSION.&quot; installed&quot;;
                                }
                                else if ( $link_id = @mysql_connect( $_POST[&#039;DB_SERVER&#039;], $_POST[&#039;DB_USER&#039;], $_POST[&#039;DB_PWD&#039;], true ) )
                                {
                                    if ( @mysql_select_db( $_POST[&#039;DB_NAME&#039;], $link_id ) )
                                    {
                                        $db1 =&amp; new database( );
                                        $db1-&gt;connect( $_POST[&#039;DB_SERVER&#039;], $_POST[&#039;DB_USER&#039;], $_POST[&#039;DB_PWD&#039;], $_POST[&#039;DB_NAME&#039;], true );
                                    }
                                    else
                                    {
                                        $err_msg = &quot;Database select failed: &quot;.htmlspecialchars( $_POST[&#039;DB_NAME&#039;], ENT_QUOTES, $CHARSET );
                                    }
                                }
                                else
                                {
                                    $err_msg = &quot;Database connection failed, please verify connection details: server, user and password&quot;;
                                }
                            }
                            if ( $err_msg )
                            {
                                break;
                            }
                            else
                            {
                                if ( $_POST[&#039;EN_OTHER_DB&#039;] )
                                {
                                    $sdb =&amp; $db1;
                                }
                                else
                                {
                                    $sdb = $this-&gt;db;
                                }
                                $a_v = $sdb-&gt;getcol( &quot;SHOW tables&quot; );
                                if ( in_array( $_POST[&#039;TPREF&#039;].$this-&gt;PROGRAM_TBL, $a_v ) )
                                {
                                    break;
                                }
                                $err_msg = &quot;Incorrect tables prefix. Table \&quot;&quot;.htmlspecialchars( $_POST[&#039;TPREF&#039;], ENT_QUOTES, $CHARSET ).$this-&gt;PROGRAM_TBL.&quot;\&quot; was not found in the database&quot;.( $_POST[&#039;EN_OTHER_DB&#039;] ? &quot; \&quot;&quot;.htmlspecialchars( $_POST[&#039;DB_NAME&#039;], ENT_QUOTES, $CHARSET ).&quot;\&quot;&quot; : &quot;&quot; );
                            }
                        }
                    }
                } while ( 0 );
                if ( $err_msg || $this-&gt;versioncompatible( ) )
                {
                    break;
                }
                $err_msg = sprintf( $this-&gt;ver_msg, $ver = $this-&gt;version( ) );
            } while ( 0 );
            return $err_msg;
        }

    function admin( )
    {
        $o_name = &quot;\$O_&quot;.strtoupper( str_replace( &quot;Member_&quot;, &quot;&quot;, $this-&gt;MOD_NAME ) );
        $hw_admin = &quot;function &quot;.$this-&gt;MOD_NAME.&quot;_main() {echo ShowModSetupPage(TPL_PATH.&#039;admin/u_setup.htm&#039;);}&quot;;
        $hw_admin .= &quot;function &quot;.$this-&gt;MOD_NAME.&quot;_SetupValidate(){global \$err_msg,&quot;.$o_name.&quot;;\$err_msg = &quot;.$o_name.&quot;-&gt;SetupValidate();return \$err_msg;}&quot;;
        eval( $hw_admin );
    }

    function eventhandler( )
    {
        if ( $_GET[&#039;p&#039;] == &quot;login&quot; )
        {
            global $O_HW;
            $this-&gt;MOD_CFG = $O_HW-&gt;getmodoptions( $this-&gt;MOD_NAME );
            if ( is_dir( $_SERVER[&#039;DOCUMENT_ROOT&#039;].&quot;/&quot;.$this-&gt;MOD_CFG[&#039;PURL&#039;] ) )
            {
                $v[&#039;i_url&#039;] = &quot;http://&quot;.$_SERVER[&#039;HTTP_HOST&#039;].&quot;/&quot;.$this-&gt;MOD_CFG[&#039;PURL&#039;];
                $v1 = $this-&gt;db-&gt;one_assoc( &quot;SELECT username, pwd FROM &quot;.TBL_USER.&quot; WHERE id=\&quot;&quot;.( integer )hwsessiongetvar( &quot;userid&quot; ).&quot;\&quot;&quot; );
                $v[&#039;login&#039;] = $v1[&#039;username&#039;];
                $v[&#039;pwd&#039;] = $v1[&#039;pwd&#039;];
                $v = array(
                    &quot;login_frm&quot; =&gt; evaladvtpl( $this-&gt;HW_MOD_DIR.&quot;tpl/login_frm.htm&quot;, $v )
                );
                evaladvtpl( TPL_PATH.&quot;admin/u_auto_login.htm&quot;, $v, 1 );
                exit( );
            }
            $this-&gt;jsalert( &quot;Incorrect program URL!&quot; );
            exit( );
        }
        if ( $_GET[&#039;p&#039;] == &quot;logout&quot; )
        {
            global $O_HW;
            $this-&gt;MOD_CFG = $O_HW-&gt;getmodoptions( $this-&gt;MOD_NAME );
            if ( is_dir( $_SERVER[&#039;DOCUMENT_ROOT&#039;].&quot;/&quot;.$this-&gt;MOD_CFG[&#039;PURL&#039;] ) )
            {
                $v[&#039;i_url&#039;] = &quot;http://&quot;.$_SERVER[&#039;HTTP_HOST&#039;].&quot;/&quot;.$this-&gt;MOD_CFG[&#039;PURL&#039;];
                if ( $this-&gt;ADD_LOGOUT_VARS )
                {
                    eval( $this-&gt;ADD_LOGOUT_VARS );
                }
                $v = array(
                    &quot;logout_url&quot; =&gt; evalbuffer( $this-&gt;MOD_CFG[&#039;LOGOUT_URL&#039;], $v )
                );
                evaladvtpl( TPL_PATH.&quot;admin/u_auto_logout.htm&quot;, $v, 1 );
                exit( );
            }
            $this-&gt;jsalert( &quot;Incorrect program URL!&quot; );
            exit( );
        }
        if ( $_GET[&#039;demo_mode&#039;] == 1 &amp;&amp; $this-&gt;IS_DEMO )
        {
            echo &quot; &lt;a href=&#039;http://www.esvon.com/pg/products/p_classifieds/&#039;&gt;&lt;font size=1 color=red face=\&quot;Verdana\&quot;&gt;The &quot;&quot;.$this-&gt;MOD_NAME.&quot;&quot; module is in the demo mode&lt;/font&gt;&lt;/a&gt;&quot;;
            exit( );
        }
        $o_name = str_replace( &quot;MEMBER_&quot;, &quot;&quot;, &quot;\$O_&quot;.strtoupper( $this-&gt;MOD_NAME ) );
        if ( hwmodgetstate( $this-&gt;MOD_NAME ) != &quot;A&quot; )
        {
            return;
        }
        $hw_event = &quot;function &quot;.$this-&gt;MOD_NAME.&quot;_Event(\$event,&amp;\$args){global &quot;.$o_name.&quot;;&quot;.$o_name.&quot;-&gt;EventInit(\$event);switch(\$event){case &#039;onUserAdd&#039;: case &#039;onUserUpdate&#039;: &quot;.$o_name.&quot;-&gt;AddUpdate(\$event,\$args); break;case &#039;onUserDelete&#039;: &quot;.$o_name.&quot;-&gt;UserDelete(\$args); break;case &#039;onUserLoginRedirect&#039;: &quot;.$o_name.&quot;-&gt;LoginRedirect(\$args); break;case &#039;onUserLogout&#039;: &quot;.$o_name.&quot;-&gt;UserLogout(\$args); break;case &#039;onUserAuthenticate&#039;: &quot;.$o_name.&quot;-&gt;UserAuthenticate(\$args); break;case &#039;onModuleActivate&#039;: &quot;.$o_name.&quot;-&gt;ModuleActivate(\$args); break;default: &quot;.$o_name.&quot;-&gt;CustomEvent(\$event,\$args);}}&quot;;
        eval( $hw_event );
    }
 
    function customevent( $event, &amp;$args )
    {
    }

    function moduleactivate( &amp;$args )
    {
        if ( $this-&gt;err_msg )
        {
            $args[&#039;ERR_MSG&#039;] = $this-&gt;MOD_NAME.&quot;: &quot;.$this-&gt;err_msg;
        }
    }

    function eventinit( $event = &quot;&quot; )
    {
        global $O_HW;
        if ( isset( $this-&gt;MOD_CFG, $this-&gt;db1 ) )
        {
            return;
        }
        $this-&gt;MOD_CFG = $O_HW-&gt;getmodoptions( $this-&gt;MOD_NAME );
        if ( $_SERVER[&#039;REQUEST_METHOD&#039;] == &quot;POST&quot; &amp;&amp; strpos( $_SERVER[&#039;REQUEST_URI&#039;], &quot;admin/modules.php?mod=Member_&quot; ) !== false )
        {
            $this-&gt;MOD_CFG = $_POST;
        }
        $a_events = array( &quot;onUserAdd&quot;, &quot;onUserUpdate&quot;, &quot;onUserDelete&quot;, &quot;onUserLoginRedirect&quot;, &quot;onUserLogout&quot;, &quot;init&quot; );
        if ( !in_array( $event, $a_events ) )
        {
            return;
        }
        $err_msg = &quot;&quot;;
        if ( $this-&gt;MOD_CFG[&#039;EN_OTHER_DB&#039;] )
        {
            if ( version_compare( PHP_VERSION, &quot;4.2&quot; ) &lt; 0 )
            {
                $err_msg = &quot;PHP version should be higher for me&quot;;
            }
            else if ( $link_id = @mysql_connect( $this-&gt;MOD_CFG[&#039;DB_SERVER&#039;], $this-&gt;MOD_CFG[&#039;DB_USER&#039;], $this-&gt;MOD_CFG[&#039;DB_PWD&#039;], true ) )
            {
                if ( @mysql_select_db( $this-&gt;MOD_CFG[&#039;DB_NAME&#039;], $link_id ) )
                {
                    $this-&gt;db1 =&amp; new database( );
                    $this-&gt;db1-&gt;connect( $this-&gt;MOD_CFG[&#039;DB_SERVER&#039;], $this-&gt;MOD_CFG[&#039;DB_USER&#039;], $this-&gt;MOD_CFG[&#039;DB_PWD&#039;], $this-&gt;MOD_CFG[&#039;DB_NAME&#039;], true );
                }
                else
                {
                    $err_msg = &quot;Incorrect DB name&quot;;
                }
            }
            else
            {
                $err_msg = &quot;Incorrect DB connection settings&quot;;
            }
            if ( !$err_msg )
            {
                break;
            }
            else
            {
                $this-&gt;jsalert( $err_msg, false );
                if ( $event == &quot;onUserAdd&quot; )
                {
                    exit( );
                }
            }
        }
        else
        {
            do
            {
                $this-&gt;db1 = $this-&gt;db;
            } while ( 0 );
            $a_events = array( &quot;onUserAdd&quot;, &quot;onUserUpdate&quot;, &quot;onUserDelete&quot; );
            if ( $this-&gt;GET_LOGOUT_VARS )
            {
                $a_events[] = &quot;onUserLogout&quot;;
            }
            if ( in_array( $event, $a_events ) )
            {
                $this-&gt;db1-&gt;ERR_EXIT = false;
                $this-&gt;db1-&gt;query( &quot;SELECT COUNT(*) FROM &quot;.$this-&gt;MOD_CFG[&#039;TPREF&#039;].$this-&gt;PROGRAM_TBL );
                if ( $this-&gt;db1-&gt;ERR_MSG )
                {
                    $this-&gt;jsalert( &quot;Incorrect tables prefix&quot;, false );
                    $this-&gt;db1-&gt;ERR_MSG = &quot;&quot;;
                    if ( $event == &quot;onUserAdd&quot; )
                    {
                        exit( );
                    }
                }
                else
                {
                    $this-&gt;db1-&gt;ERR_EXIT = true;
                }
            }
            if ( !$this-&gt;versioncompatible( ) )
            {
                $this-&gt;jsalert( sprintf( $this-&gt;ver_msg, $ver = $this-&gt;version( ) ) );
            }
        }
    }

    function addupdate( $event, &amp;$args )
    {
    }

    function userdelete( $event, &amp;$args )
    {
    }

    function userauthenticate( &amp;$args )
    {
        $args1 = array(
            &quot;EMAIL&quot; =&gt; $args[&#039;U_DATA&#039;][&#039;email&#039;],
            &quot;USERNAME&quot; =&gt; $args[&#039;U_DATA&#039;][&#039;username&#039;],
            &quot;PWD&quot; =&gt; $args[&#039;U_DATA&#039;][&#039;pwd&#039;]
        );
        $this-&gt;eventinit( &quot;onUserAdd&quot; );
        $this-&gt;addupdate( &quot;onUserAdd&quot;, $args1 );
    }

    function loginredirect( &amp;$args )
    {
        $args[&#039;rows&#039;] .= $this-&gt;IS_DEMO ? &quot;, 1, 30&quot; : &quot;, 1&quot;;
        $v[&#039;mod_num&#039;] = $args[&#039;mod_num&#039;] + 1;
        $v[&#039;MOD_URL&#039;] = SITE_URL.&quot;modules/&quot;.$this-&gt;MOD_NAME.&quot;/&quot;;
        $args[&#039;frames&#039;] .= &quot;&lt;frame name=\&quot;fr_dest&quot;.$v[&#039;mod_num&#039;].&quot;\&quot; src=\&quot;&quot;.$v[&#039;MOD_URL&#039;].&quot;hw_event.php?p=login\&quot; marginwidth=\&quot;0\&quot; marginheight=\&quot;0\&quot; frameborder=\&quot;0\&quot; noresize=1&gt;\n&quot;;
        if ( $this-&gt;IS_DEMO )
        {
            $args[&#039;frames&#039;] .= &quot;&lt;frame name=\&quot;fr_demo&quot;.$v[&#039;mod_num&#039;].&quot;\&quot; src=\&quot;{$v[&#039;MOD_URL&#039;]}hw_event.php?demo_mode=1\&quot; marginwidth=\&quot;0\&quot; marginheight=\&quot;0\&quot; frameborder=\&quot;0\&quot; noresize=1&gt;&quot;;
        }
        ++$args[&#039;mod_num&#039;];
        $args[&#039;a_url&#039;] .= $v[&#039;i_url&#039;].urlencode( $this-&gt;ACTIVE_URL.&quot;|&quot; );
    }

    function userlogout( &amp;$args )
    {
        $args[&#039;rows&#039;] .= $this-&gt;IS_DEMO ? &quot;, 1, 30&quot; : &quot;, 1&quot;;
        $v[&#039;mod_num&#039;] = $args[&#039;mod_num&#039;] + 1;
        $v[&#039;MOD_URL&#039;] = SITE_URL.&quot;modules/&quot;.$this-&gt;MOD_NAME.&quot;/&quot;;
        if ( $this-&gt;GET_LOGOUT_VARS )
        {
            eval( $this-&gt;GET_LOGOUT_VARS );
        }
        $args[&#039;frames&#039;] .= &quot;&lt;frame name=\&quot;fr_dest&quot;.$v[&#039;mod_num&#039;].&quot;\&quot; src=\&quot;&quot;.$v[&#039;MOD_URL&#039;].&quot;hw_event.php?p=logout&quot;;
        if ( $this-&gt;ADD_LOGOUT_URL )
        {
            eval( $this-&gt;ADD_LOGOUT_URL );
        }
        $args[&#039;frames&#039;] .= &quot;\&quot; marginwidth=\&quot;0\&quot; marginheight=\&quot;0\&quot; frameborder=\&quot;0\&quot; noresize=1&gt;&quot;;
        if ( $this-&gt;IS_DEMO )
        {
            $args[&#039;frames&#039;] .= &quot;&lt;frame name=\&quot;fr_demo&quot;.$v[&#039;mod_num&#039;].&quot;\&quot; src=\&quot;{$v[&#039;MOD_URL&#039;]}hw_event.php?demo_mode=1\&quot; marginwidth=\&quot;0\&quot; marginheight=\&quot;0\&quot; frameborder=\&quot;0\&quot; noresize=1&gt;&quot;;
        }
        ++$args[&#039;mod_num&#039;];
        $args[&#039;a_url&#039;] .= $v[&#039;i_url&#039;].urlencode( $this-&gt;LOGOUT_URL.&quot;|&quot; );
    }

    function jsalert( $msg, $wrap = true )
    {
        $this-&gt;err_msg = $msg;
        if ( $wrap )
        {
            echo &quot;&lt;!DOCTYPE HTML PUBLIC \&quot;-//W3C//DTD HTML 4.01 Transitional//EN\&quot;&gt;\r\n                     &lt;html&gt;\r\n                     &lt;head&gt;\r\n                       &lt;title&gt;&quot;.$this-&gt;MOD_NAME.&quot;: {$msg}&lt;/title&gt;\r\n                     &lt;/head&gt;\r\n                     &lt;body&gt;&quot;;
        }
        echo &quot;&lt;center&gt;&lt;font color=red&gt;&lt;b&gt;&quot;.$this-&gt;MOD_NAME.&quot;:&lt;/b&gt; {$msg}&lt;/font&gt;&lt;/center&gt;\r\n                     &lt;script language=\&quot;JavaScript\&quot;&gt;\r\n                     //&lt;!--\r\n                       alert(\&quot;{$this-&gt;MOD_NAME}: &quot;.addslashes( $msg ).&quot;\&quot;);\r\n                     //--&gt;\r\n                     &lt;/script&gt;&quot;;
        if ( $wrap )
        {
            echo &quot;&lt;/body&gt;\r\n                     &lt;/html&gt;&quot;;
        }
    }

    function version( )
    {
    }

    function versioncompatible( )
    {
        $ver = $this-&gt;version( );
        $ok = false;
        foreach ( $this-&gt;VERSIONS as $v )
        {
            if ( !( strpos( $ver, $v ) === 0 ) )
            {
                continue;
            }
            $ok = true;
            break;
        }
        return $ok;
    }

}
  }
?&gt;</code></pre></div><p>Запускаю - ошибка <br /></p><div class="quotebox"><blockquote><p>Fatal error: Call to undefined method vbulletin3member::eventinit() in Y:\home\localhost\www\mysite\modules\Member_vBulletin3\hw_event.php on line 440</p></blockquote></div><p>В скрипте определяется eventinit() где? и в чем ошибка?</p>]]></content>
			<author>
				<name><![CDATA[pellets-wood]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1211</uri>
			</author>
			<updated>2008-04-05T22:05:20Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=4748#p4748</id>
		</entry>
</feed>
