1
robekras
Agenda-X picture upload hack
  • 2004/2/1 21:27

  • robekras

  • Documentation Writer

  • Posts: 187

  • Since: 2002/12/10


Picture upload within a Agenda-X event do not work always.
That's because of wrong access rights of uploaded (and moved) picture files.

In file agendax/admin/index.php search for move_uploaded_file:
After the first occurrence insert the following line:
@chmod("../uploads/".$_FILES['foto']['name'].""0644);

After the second occurrence insert:
@chmod(XOOPS_ROOT_PATH."/uploads/".$_FILES['foto']['name']."",0644);


In file agendax/addevent.inc.php search for move_uploaded_file
again. There is only one place... Insert the following:
@chmod (XOOPS_ROOT_PATH."/uploads/".$_FILES['foto']['name'], 0644);




Login

Who's Online

240 user(s) are online (159 user(s) are browsing Support Forums)


Members: 0


Guests: 240


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits