To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

English version - user spoof?

Dlugi - 04-05-2007, 15:43

that work for all but maybe only users look details ?
AuReUs ReCtoR - 04-05-2007, 15:56

dont understand me ..
when i put in ACP permision for users/guests/moderators or admins .. only work for that kind of user ...
exp. i put for moderators permisions and only catch user_agnet of moderators info.

understand? :)

[ Added: 06-05-2007, 15:30 ]
Dlugi? :)

[ Added: 09-05-2007, 00:45 ]
new problem when i try to edit some post:
Cytat:
SQL Error : 1054 Unknown column 'user_agent' in 'field list'

UPDATE rector_posts_edit SET post_edit_count = post_edit_count + 1, user_agent='Opera/9.20 (Windows NT 5.1; U; en)', post_edit_time = 1178664217 WHERE post_id = 54725 AND user_id = 74

Line : 318
File : functions_post.php


:s

Dlugi - 12-05-2007, 12:19

Kod:
ALTER TABLE phpbb_posts ADD user_agent VARCHAR(100);
your prefix is phpbb ? maybe rector ?
Kod:
ALTER TABLE rector_posts ADD user_agent VARCHAR(100);

AuReUs ReCtoR - 12-05-2007, 12:33

yeap and i have that table:

Cytat:
Error

SQL query:

ALTER TABLE rector_posts ADD user_agent VARCHAR( 100 ) ;


MySQL said:
#1060 - Duplicate column name 'user_agent'

Dlugi - 12-05-2007, 12:38

Kod:
ALTER TABLE rector_posts_edit ADD user_agent VARCHAR(100);

AuReUs ReCtoR - 12-05-2007, 13:53

hmm ok, edit now work ..
but how to setup now to display of all posters os and broswer infomations?

[ Added: 20-05-2007, 20:22 ]
? :(

[ Added: 31-05-2007, 22:42 ]
grrrr :) )))

pls. answer me :)

Dlugi - 01-06-2007, 09:18

Kod:
INSERT INTO `phpbb_config` VALUES ('ua_premiss', 'U_GUEST');
and all will see browser information

look at:
Kod:
switch($board_config['ua_premiss'])
        {
        case 'U_ADMIN' :
            if ( $userdata['user_level'] == 1 )
            {
                return $ua_show = graph_ua($user_agent, $images['images']);
            }
            else
            {
                return $ua_show = '';
            }
        break;
        case 'U_MOD' :
            if ( $userdata['user_level'] == 1 || $userdata['user_level'] == 2 )
            {
                return $ua_show = graph_ua($user_agent, $images['images']);
            }
            else
            {
                return $ua_show = '';
            }
        break;
        case 'U_USER' :
            if ( $userdata['user_level'] == 1 || $userdata['user_level'] == 2 || $userdata['user_level'] == 0 )
            {
                return $ua_show = graph_ua($user_agent, $images['images']);
            }
            else
            {
                return $ua_show = '';
            }
        break;
        case 'U_GUEST' :
            return $ua_show = graph_ua($user_agent, $images['images']);
        break;
        }


if you choose U_GUEST all users will see user agent

AuReUs ReCtoR - 02-06-2007, 00:15

hmmm, i have this in sql and i have same line like u type and in ACP put guests lever permisions.
but nothing ...



Powered by phpBB modified by Przemo © 2003 phpBB Group