1
siwilkins
Expiring tokens when uploading avatars
  • 2005/12/12 17:35

  • siwilkins

  • Just popping in

  • Posts: 2

  • Since: 2005/9/19


Hi there,

One of our users has complained of lots of error messages when uploading avatars. Upon investigation I have found that if a user uploads an image which exceeds the size limits and then clicks back to the avatar upload form then they will always get a "Sorry, you don't have the right to edit this user's info." error when they try to upload again.

Now, I have resolved this by changing the if statement in the edituser.php "avatarupload" section to call the XoopsSecurity.check function with false rather than the default true parameter, thus:

if (!$GLOBALS['xoopsSecurity']->check(false)) {

...

}

and it now works fine. I just wanted to check that this isn't going to leave a gaping hole. Anyone's thoughts would be very much appreciated.

Cheers,
Si



2
siwilkins
"/smarty/core" directory ignored by cvs
  • 2005/9/19 10:30

  • siwilkins

  • Just popping in

  • Posts: 2

  • Since: 2005/9/19


Hi there,

I imported my XOOPS (2.0.13.1) site to cvs and when I came to check it out, I got the error

"Fatal error: _parse_resource_name(): Failed opening required '/home/si/www/plugxoops/html/class/smarty/core/core.load_resource_plugin.php' (include_path='.:/usr/local/lib/php') in /home/si/www/plugxoops/html/class/smarty/Smarty.class.php on line 1651"

when I tried to load the site. I have since discovered that cvs ignores directories called core (aside from cvsignore settings - see <a href="http://www.phpinsider.com/smarty-forum/viewtopic.php?t=3331&highlight=core+directory+cvs">here</a>).

I'm surprised I haven't been able to find any posts about this in any of the XOOPS forums. Has this been a problem for anyone else? Does anyone know any magic workarounds (I've had to rename the directory before importing it and then rename it back after checking it out)? I'm surprised it hasn't caused headaches for the core developers.

Cheers,
Si




TopTop



Login

Who's Online

241 user(s) are online (137 user(s) are browsing Support Forums)


Members: 0


Guests: 241


more...

Donat-O-Meter

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

Latest GitHub Commits