???????? ????, ??????????, ???????????????? E-Kurt, ??, ???????:

??????? ??? ? ???????? ?????????????? ?????????? ????? ??
????? ???????: http://punbb.awardspace.us

?????? ?????? ?? ?????, ??????????? ??????: http://punbb.awardspace.us/viewtopic.php?id=1

?? ???? ??? ???? ?????? ?????? ?? ????????????? ???????, ????? ???????? ??? ?????????? ? ?????, ??????? ? ???. ??????? ????????? ?? http://punbb.awardspace.us/doku.php ????? ?????? ???????? ?? ?????? ?? ????????????? ? ???? ?????, ?? ? ? ????????? ??????, ?????????????? ?? http://www.punres.org

??? ?????????? ?? ??????? ?????.

?????? ? ????????, ??? ????? ?????? ?????????? ???????, ????? ???????? ????????? ???? ? ???? ? ???????? ?? ?????? ? ????????? ??????????? ?? ????????? ??.

???? ??? ????? ??????, ???? ? ???? ?? http://punbb.awardspace.us/doku.php ????? ?????????? ???????? ????? ?????????? ????????????!
smile

mikedilo

To my pity this mod have rather straightforward fetching engine,
so there is no way to use uploaded files as just to... download them through the mod. wink
Sorry.

????????? ????? ? ?????????? ????? ????????? ?????

???????? PunBB Migration Tool (??????? ? ??????? http://punbb.org/downloads.php )

The way is to re-write mod for the sake of that specise function.

?????????? ????? ?????? http://forum.mozilla.ru/, ???-?????? ?????, ??? ??? ?? ?????, ? URL ??? ??????????, ???? ?? ?????????

?? ??? ?????? ???? ?????? ??????????. ????????? ??? ? ???????????? ? Punbb... ? ??????? ???, ??? ????? ???????.
? ????? ?????? ??????, ??-????? ??? ? ?? ????????? ??? ?????????? (? ???? ??????? ????? ?????? ?????-?? ?????? ?????, ?? ??? ????????? ???????, ??? ?????????.) wink

panead
Write any script with phpinfo() command inside it, then run the script on the server.
And in the first lines of browser output you will see the location of php.ini file. Thjat is all!

Smartmonkey
In the sake of simplicity there are no mime types used in the mod. So, you just can get files through downloading them. But you can set your browser to open any kind of files in one click. Just choose to: open with... and choose any application (i.e. IrfanView for pictures and so on) to open such files.

franke
Sorry, but if you limit yourself up to 800 pixels wide, there is no way to  use this mod.
So consider upgrading your system up to 1000or more pixels wide,so you you can use this mod without any problems.

Thanx to all!
I've been aware of such vulnerability yesterday, and have had time to take some steps.

You must upgrade right now!
Patched file (if one can call it that) is placed here: http://www.punres.org/download.php?id=835
All you need is download, unzip and replace that file in your forum root directory.


I beg your pardon for all possible inconveniences.

PS ????? ?? ??? ?????? ?? Modern BB Code???

??????, ????? ??????????? cool

??? ?????????, ????? ? ?????, ?????????? ?????????, ? ????? ???????????? ?????, ??????? ???? ???????? ? ???????? search ??????.

? ???????? ???? ? ?? ??, ??? ?? ??? ??????? ?????? ?????

??? ?????, ??? ?? ???????, ??? ?? ?????-?? ??? ???? ????? ?????????...

?????????? ? ???????? ??? , ??????? ????????? ??????? HTML ???????????????.

?? ?????? ??????? ?????? ??? ????, ? ??? ????? ???? ?????? ?? punres.
???????? ??? ?????????, ??????? ??? ??? ????? ???? ??????????...

roopix wrote:

???????, ?? ??? jino-net ?? ???????, ??? ???..

????????? ? ? ?????, jino net ???????????? ?????????? ???????????, ??? ????
(????? ?????? ??????? ? ?????? ???????? ???????, ?? ???????????? ??-?. ????. wink)

Ok. So we need to approach it from another end.

This error (could not upload a file) can appear on one string only, string number 242, which is:

    if(!move_uploaded_file($temp_name, PUN_ROOT.'/uploaded/'.$file_name)  || filesize(PUN_ROOT.'/uploaded/'.$file_name)==0 ) 
        {
            error("{$file_name} - ".$lang_uploads['Err file couldnot'], __FILE__, __LINE__, $db->error());
        }

It seems to be not working command move_uploaded_file, which just moves uploaded file from tmp directory to our specified directory (forum/uploaded).

Oh, just one thought come to me -
try to set the next php setting -

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /tmp

(i.e. uncomment your default setting and add a new value)

I hope we will do this together... eventually

?? ???, ?????? ??? ?????????? ????? ?? ??????????

mikedilo

May I ask you a question?
What is the PHP setting  post_max_size in your php.ini file?

For the rest, your system seems to be ideal for this mod working.

mikedilo

That's  complicating all things.
But the mod does work on several hosts, at least. I just can't take it why it is not so in your particular case.

What's the version of your PHP, what kind of web server installed on your host? May be the problem hides in that?

Are there any files in your uploaded/ directory (even after errorneous uploads)?

mikedilo
Yes, I should accept that one can not upload files on your forum.
May be it's for the settings of your host's webserver.

Oh, what's the permissions of the directory uploaded/ in your forum? It should be 755.

nectere
Glad to help you. May be there is more neat solution to show file sizes that are less than 1Kb in bytes.

mikedilo

Have I taken it right, that you can not upload ANY file through the mod on your forum?
Please, give me a link to your forum, I just wish to see it myself.

I knew this fact (about file sizes = 0Kb) but never thought it could be a kind of problem to anyone.
To correct this just edit file uploads.php in your forum root directory, find  line #469, which should look like that:

<td class="puncon2" align="center"><?php echo round(@filesize('./uploaded/'.$info['file']) / 1024).' KB'; ?></td>

ok. Replace word 'round' with  'ceil'  (without quotes, of course).
It should work.

Ok, mikedilo.
One more question.
Please check your next php.ini setting:

; Whether to allow HTTP file uploads.
file_uploads = On

Is it the same?

mikedilo
nectere

Couldn't you be just more precise?
What kind of files you've tried to upload?
filename, size, etc.

zerok
????? ?? ?????? ????? ????????? ??? ????? ?????

KCEOH wrote:

> ???????? ?? moveuploaded()
? ?????? ?? move_uploaded_file() ?

> ????? ?????????? ?? ????? ??????.
??? ????? ????? ? ????????? ????? ????????????

> ??? ???????? ???????????? ?????????? MAX_DIR_UPLOAD
??????? ?? ??????? ??? ? ???????.

???????? ?? ????, ????? ???????. ?? ????? ??-?? ????? ?????? ?????? ??????? ?? ????? ???????????????. ???? ????????? ??? ? ??????? ????????? ??????? ???? ? ?????-???? ???????? ??, ? ?? ?????? ????????? ????? ??????? (AMP_Upload_Conf).
????? ????? ????? ?????????, ????? ????? ????? ??? ???????. ? ?????? 2.0 ???? ??? ?????.