[Ищу] Oxy Classifieds Доска объявлений

до переезда форума были группы, в группе Oxy (вроде так называлась) просто было пару полезных исправлений, если можно вытащи плз контент.
 
групы не доступны, уже..
 
goodvin
Первая ссылка не пашет,и что там скрыто нельзя уменьшить до 90 сообщений
 
Вот дезендинная папка классы, но во время установки выбивается ошибка, как ее убрать?



PHP:
    public function restoredb( $fname, $replace = "" )
    {
        global $config_demo;
        if ( $config_demo == 1 )
        {
        }
        else if ( !$fname )
        {
            return 0;
        }
        else
        {
            $ext = getextension( $fname );
            if ( $ext == "gz" )
            {
                $this->compress = true;
            }
            else
            {
                $this->compress = false;
            }
            if ( !openFileToRead( $fname ) )
            {
                return 0;
            }
            $query = "";
            while ( !_eof( ) )
            {
                $line = _gets( );
                $first = substr( $line, 0, 1 );
                if ( !empty( "line" ) && $first != "-" && $first != "" && $first != "#" )
                {
                    if ( $replace )
                    {
                        $line = str_replace( "PREFIX", $replace, $line );
                    }
                    if ( oneQueryStr( $line ) )
                    {
                        executeQuery( $query );
                        $query = "";
                        $query .= trim( $line );
                    }
                    else
                    {
                        $query .= trim( $line );
                    }
                    if ( substr( $query, 0 - 1, 1 ) == ";" )
                    {
                        $ans = executeQuery( $query );
                        $query = "";
                    }
                }
            }
            closeFile( );
            return 1;
        }
    }
 
    public function installdb( $fname, $replace, $default_lang = "", $charset = "" )
    {
        if ( !$fname )
        {
            return 0;
        }
        $ext = getextension( $fname );
        if ( $ext == "gz" )
        {
            $this->compress = true;
        }
        else
        {
            $this->compress = false;
        }
        if ( !openFileToRead( $fname ) )
        {
            return 0;
        }
        $query = "";
        while ( !_eof( ) )
        {
            $line = _gets( );
            $first = substr( $line, 0, 1 );
            if ( !empty( "line" ) && $first != "-" && $first != "" && $first != "#" )
            {
                $line = str_replace( "PREFIX", $replace, $line );
                if ( $default_lang )
                {
                    $line = str_replace( "DEF_LANG", $default_lang, $line );
                }
                if ( $charset )
                {
                    $line = str_replace( "::CHARSET::", $charset, $line );
                }
                if ( oneQueryStr( $line ) )
                {
                    executeQuery( $query );
                    $query = "";
                    $query .= trim( $line );
                }
                else
                {
                    $query .= trim( $line );
                }
                if ( substr( $query, 0 - 1, 1 ) == ";" )
                {
                    $ans = executeQuery( $query );
                    $query = "";
                }
            }
        }
        closeFile( );
        return 1;
    }
 
    public function executebulk( $query_str )
    {
        global $config_demo;
        if ( $config_demo == 1 )
        {
        }
        else
        {
            global $config_table_prefix;
            $lines = explode( "\n", $query_str );
            $query = "";
            foreach ( $lines as $line )
            {
                $first = substr( $line, 0, 1 );
                if ( !empty( "line" ) && $first != "-" && $first != "" && $first != "#" )
                {
                    $line = str_replace( "PREFIX", $config_table_prefix, $line );
                    if ( oneQueryStr( $line ) )
                    {
                        executeQuery( $query );
                        $query = "";
                        $query .= trim( $line );
                    }
                    else
                    {
                        $query .= trim( $line );
                    }
                    if ( !( substr( $query, 0 - 1, 1 ) == ";" ) )
                    {
                        continue;
                    }
                    else if ( strstr( $query, "##LANG##" ) )
                    {
                        global $languages;
                        if ( empty( "languages" ) )
                        {
                            $languages = languages::getActiveLanguages( );
                        }
                        $final_query = "";
                        foreach ( $languages as $lang )
                        {
                            $lang_id = $lang['id'];
                            $final_query = trim( str_replace( "##LANG##", $lang_id, $query ) );
                            $ans = executeQuery( $final_query );
                        }
                        $query = "";
                    }
                    else
                    {
                        $ans = executeQuery( $query );
                        $query = "";
                    }
                }
            }
            return 1;
        }
    }

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING or T_VARIABLE or '$' in /home/u484770400/public_html/classes/database.php on line 339
 

Вложения

  • classes.rar
    176,8 KB · Просмотры: 35
Вот дезендинная папка классы, но во время установки выбивается ошибка, как ее убрать?



PHP:
    public function restoredb( $fname, $replace = "" )
    {
        global $config_demo;
        if ( $config_demo == 1 )
        {
        }
        else if ( !$fname )
        {
            return 0;
        }
        else
        {
            $ext = getextension( $fname );
            if ( $ext == "gz" )
            {
                $this->compress = true;
            }
            else
            {
                $this->compress = false;
            }
            if ( !openFileToRead( $fname ) )
            {
                return 0;
            }
            $query = "";
            while ( !_eof( ) )
            {
                $line = _gets( );
                $first = substr( $line, 0, 1 );
                if ( !empty( "line" ) && $first != "-" && $first != "" && $first != "#" )
                {
                    if ( $replace )
                    {
                        $line = str_replace( "PREFIX", $replace, $line );
                    }
                    if ( oneQueryStr( $line ) )
                    {
                        executeQuery( $query );
                        $query = "";
                        $query .= trim( $line );
                    }
                    else
                    {
                        $query .= trim( $line );
                    }
                    if ( substr( $query, 0 - 1, 1 ) == ";" )
                    {
                        $ans = executeQuery( $query );
                        $query = "";
                    }
                }
            }
            closeFile( );
            return 1;
        }
    }
 
    public function installdb( $fname, $replace, $default_lang = "", $charset = "" )
    {
        if ( !$fname )
        {
            return 0;
        }
        $ext = getextension( $fname );
        if ( $ext == "gz" )
        {
            $this->compress = true;
        }
        else
        {
            $this->compress = false;
        }
        if ( !openFileToRead( $fname ) )
        {
            return 0;
        }
        $query = "";
        while ( !_eof( ) )
        {
            $line = _gets( );
            $first = substr( $line, 0, 1 );
            if ( !empty( "line" ) && $first != "-" && $first != "" && $first != "#" )
            {
                $line = str_replace( "PREFIX", $replace, $line );
                if ( $default_lang )
                {
                    $line = str_replace( "DEF_LANG", $default_lang, $line );
                }
                if ( $charset )
                {
                    $line = str_replace( "::CHARSET::", $charset, $line );
                }
                if ( oneQueryStr( $line ) )
                {
                    executeQuery( $query );
                    $query = "";
                    $query .= trim( $line );
                }
                else
                {
                    $query .= trim( $line );
                }
                if ( substr( $query, 0 - 1, 1 ) == ";" )
                {
                    $ans = executeQuery( $query );
                    $query = "";
                }
            }
        }
        closeFile( );
        return 1;
    }
 
    public function executebulk( $query_str )
    {
        global $config_demo;
        if ( $config_demo == 1 )
        {
        }
        else
        {
            global $config_table_prefix;
            $lines = explode( "\n", $query_str );
            $query = "";
            foreach ( $lines as $line )
            {
                $first = substr( $line, 0, 1 );
                if ( !empty( "line" ) && $first != "-" && $first != "" && $first != "#" )
                {
                    $line = str_replace( "PREFIX", $config_table_prefix, $line );
                    if ( oneQueryStr( $line ) )
                    {
                        executeQuery( $query );
                        $query = "";
                        $query .= trim( $line );
                    }
                    else
                    {
                        $query .= trim( $line );
                    }
                    if ( !( substr( $query, 0 - 1, 1 ) == ";" ) )
                    {
                        continue;
                    }
                    else if ( strstr( $query, "##LANG##" ) )
                    {
                        global $languages;
                        if ( empty( "languages" ) )
                        {
                            $languages = languages::getActiveLanguages( );
                        }
                        $final_query = "";
                        foreach ( $languages as $lang )
                        {
                            $lang_id = $lang['id'];
                            $final_query = trim( str_replace( "##LANG##", $lang_id, $query ) );
                            $ans = executeQuery( $final_query );
                        }
                        $query = "";
                    }
                    else
                    {
                        $ans = executeQuery( $query );
                        $query = "";
                    }
                }
            }
            return 1;
        }
    }

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING or T_VARIABLE or '$' in /home/u484770400/public_html/classes/database.php on line 339


Poprobui:

if ( !empty( $line ) && $first != "-" && $first != "" && $first != "#" )
 
вот теперь другая ошибка выбилась

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING or T_VARIABLE or '$' in /home/u484770400/public_html/classes/languages.php on line 13

if ( isset( "crt_lang" ) && $crt_lang && languages::languageExistsEnabled( $crt_lang ) )
 
вот теперь другая ошибка выбилась

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING or T_VARIABLE or '$' in /home/u484770400/public_html/classes/languages.php on line 13

if ( isset( "crt_lang" ) && $crt_lang && languages::languageExistsEnabled( $crt_lang ) )

isset( "crt_lang" )
pominiai na:
isset( $crt_lang )

no ja neuverin, eto li bilo zakodiravono, pomoemy if isset( "crt_lang" ) i if $crt_lang eto toze samoe. Zacem avtory pisat toze yclovie dvazdi, nilagicno. Izvini, noecen ja silion v php :)

I voobshe, zacem tebe rackodiravonij sckipt nuzen, nyzno ctoto v kode pominiat? Y menia zakodiravonij prikrasno rabotaet, pokacto.
 
у меня закодированный выбивал такую ошибку, может я не тот шо надо скрипт ставил? У тебя какой нормально работает или как сделать, чтоб он заработал, можешь подсказать?
public_html/classes/mysql.php has expired. in Unknown on line 0

Исправил isset( "crt_lang" )

pominiai na:

isset( $crt_lang )
теперь вылезла ошибка в Parse error: syntax error, unexpected T_RETURN, expecting T_WHILE in /home/u484770400/public_html/classes/common.php on line 154
return $result;

<-------------- добавлено через 43 сек. -------------->
PHP:
    public function getnavbarlinks( $type )
    {
        global $db;
        global $crt_lang;
        $result = fetchAssocList( "select ".TABLE_CUSTOM_PAGES.".*, ".TABLE_CUSTOM_PAGES."_lang.title from ".TABLE_CUSTOM_PAGES." LEFT JOIN ".TABLE_CUSTOM_PAGES."_lang on ".TABLE_CUSTOM_PAGES.".`id` = ".TABLE_CUSTOM_PAGES."_lang.`id` where ".TABLE_CUSTOM_PAGES.".navlink='{$type}' and read_only=0 and active=1 and `lang_id`='{$crt_lang}' order by `order_no`" );
        $no = count( $result );
        $i = 0;
        while ( $i < $no )
        {
            $result[$i]['moved'] = 0;
            $result[$i]['parent'] = 0;
            $result[$i]['str'] = "";
            $result[$i]['title'] = clean( $result[$i]['title'] );
            $result[$i]['url_title'] = _urlencode( $result[$i]['title'] );
            $result[$i]['level'] = 1;
            ++$i;
        }
        $found = 1;
        do
        {
            if ( $found )
            {
                $found = 0;
                $i = 0;
                do
                {
                } while ( !( $i < $no ) );
                if ( $result[$i]['parent_id'] && !$result[$i]['moved'] )
                {
                    $found = 1;
                    $element = $result[$i];
                    array_splice( $result, $i, 1 );
                    $found = 0;
                    $level = 1;
                    $j = 0;
                    while ( $j < $no - 1 && !$found )
                    {
                        if ( $result[$j]['id'] == $element['parent_id'] )
                        {
                            $pos_parent = $j;
                            $pos = $j + 1;
                            while ( $pos < $no - 1 && $result[$pos]['parent_id'] == $element['parent_id'] && $result[$pos]['order_no'] < $element['order_no'] )
                            {
                                ++$pos;
                                if ( $pos < $no - 1 && $result[$pos]['parent_id'] == $result[$pos - 1]['id'] )
                                {
                                    $p = $result[$pos]['parent_id'];
                                    do
                                    {
                                        if ( $pos < $no - 1 && $result[$pos]['parent_id'] == $p )
                                        {
                                            ++$pos;
                                        }
                                    } while ( 1 );
                                }
                            }
                            $ss = $result[$pos_parent]['str'];
                            $result[$pos_parent]['parent'] = 1;
                            $found = 1;
                            $level = $result[$pos_parent]['level'];
                        }
                        ++$j;
                    }
                    array_splice( $result, $pos, 0, array( $element ) );
                    $result[$pos]['str'] = $ss."&nbsp;&nbsp;&nbsp;";
                    $result[$pos]['moved'] = 1;
                    $result[$pos]['level'] = $level + 1;
                    $j = 0;
                    while ( $j < $no )
                    {
                        if ( $result[$j]['parent_id'] == $element['id'] )
                        {
                            $result[$j]['moved'] = 0;
                        }
                        ++$j;
                    }
                }
                if ( $result[$i]['parent_id'] == 0 )
                {
                    $result[$i]['str'] = "";
                }
                ++$i;
            } while ( 1 );
        }
        return $result;
    }
 
у меня закодированный выбивал такую ошибку, может я не тот шо надо скрипт ставил? У тебя какой нормально работает или как сделать, чтоб он заработал, можешь подсказать?
public_html/classes/mysql.php has expired. in Unknown on line 0

Исправил isset( "crt_lang" )

pominiai na:

isset( $crt_lang )
теперь вылезла ошибка в Parse error: syntax error, unexpected T_RETURN, expecting T_WHILE in /home/u484770400/public_html/classes/common.php on line 154
return $result;
<-------------- добавлено через 43 сек. -------------->
PHP:
    public function getnavbarlinks( $type )
    {
        global $db;
        global $crt_lang;
        $result = fetchAssocList( "select ".TABLE_CUSTOM_PAGES.".*, ".TABLE_CUSTOM_PAGES."_lang.title from ".TABLE_CUSTOM_PAGES." LEFT JOIN ".TABLE_CUSTOM_PAGES."_lang on ".TABLE_CUSTOM_PAGES.".`id` = ".TABLE_CUSTOM_PAGES."_lang.`id` where ".TABLE_CUSTOM_PAGES.".navlink='{$type}' and read_only=0 and active=1 and `lang_id`='{$crt_lang}' order by `order_no`" );
        $no = count( $result );
        $i = 0;
        while ( $i < $no )
        {
            $result[$i]['moved'] = 0;
            $result[$i]['parent'] = 0;
            $result[$i]['str'] = "";
            $result[$i]['title'] = clean( $result[$i]['title'] );
            $result[$i]['url_title'] = _urlencode( $result[$i]['title'] );
            $result[$i]['level'] = 1;
            ++$i;
        }
        $found = 1;
        do
        {
            if ( $found )
            {
                $found = 0;
                $i = 0;
                do
                {
                } while ( !( $i < $no ) );
                if ( $result[$i]['parent_id'] && !$result[$i]['moved'] )
                {
                    $found = 1;
                    $element = $result[$i];
                    array_splice( $result, $i, 1 );
                    $found = 0;
                    $level = 1;
                    $j = 0;
                    while ( $j < $no - 1 && !$found )
                    {
                        if ( $result[$j]['id'] == $element['parent_id'] )
                        {
                            $pos_parent = $j;
                            $pos = $j + 1;
                            while ( $pos < $no - 1 && $result[$pos]['parent_id'] == $element['parent_id'] && $result[$pos]['order_no'] < $element['order_no'] )
                            {
                                ++$pos;
                                if ( $pos < $no - 1 && $result[$pos]['parent_id'] == $result[$pos - 1]['id'] )
                                {
                                    $p = $result[$pos]['parent_id'];
                                    do
                                    {
                                        if ( $pos < $no - 1 && $result[$pos]['parent_id'] == $p )
                                        {
                                            ++$pos;
                                        }
                                    } while ( 1 );
                                }
                            }
                            $ss = $result[$pos_parent]['str'];
                            $result[$pos_parent]['parent'] = 1;
                            $found = 1;
                            $level = $result[$pos_parent]['level'];
                        }
                        ++$j;
                    }
                    array_splice( $result, $pos, 0, array( $element ) );
                    $result[$pos]['str'] = $ss."&nbsp;&nbsp;&nbsp;";
                    $result[$pos]['moved'] = 1;
                    $result[$pos]['level'] = $level + 1;
                    $j = 0;
                    while ( $j < $no )
                    {
                        if ( $result[$j]['parent_id'] == $element['id'] )
                        {
                            $result[$j]['moved'] = 0;
                        }
                        ++$j;
                    }
                }
                if ( $result[$i]['parent_id'] == 0 )
                {
                    $result[$i]['str'] = "";
                }
                ++$i;
            } while ( 1 );
        }
        return $result;
    }

Ja decodirovat nerechilsa, slishkam mnoga debug nado delat. Vozmi 7.05 versiju katoraja est v etom forume. A vot v classes.zip naidiosh vse /classes faili katorie ja skacial prama iz Oxy demo servera. Perezaishi ix na 7.05 versiju, zapyskai install i naslozdaisia
 
Назад
Сверху