191
GIJOE
Re: preventing multiple simultaneous logins *URGENT*
  • 2003/10/11 9:43

  • GIJOE

  • Quite a regular

  • Posts: 265

  • Since: 2003/8/13


It is not difficult hack, I think.
But this code is not tested.

line 42 in include/checklogin.php
$member_handler =& xoops_gethandler('member');
$myts =& MyTextsanitizer::getInstance();
$user =& $member_handler->loginUser(addslashes($myts->stripSlashesGPC($uname)), addslashes($myts->stripSlashesGPC($pass)));
[
color=ff0000]// start of hack for preventing from multiple logins by GIJ
if( is_object$user ) ) {
    
$online_handler =& xoops_gethandler('online');
    
$online_handler->gc300 ) ;
    
$onlines =& $online_handler->getAll();
    foreach( 
$onlines as $online ) {
p        if( $online['online_uid'] == $user->uid() ) {
            
$user false ;
        }
    }
    if( 
is_object$user ) ) {
        
$online_handler->write($user->uid(), $user->uname(), time(), 0$HTTP_SERVER_VARS['REMOTE_ADDR']);
    }
}
// end of hack by GIJ [/color]
if (false != $user) {
    if (
== $user->getVar('level')) {
        
redirect_header(XOOPS_URL.'/index.php'5_US_NOACTTPADM);
        exit();
    }

This hack doesn't work fine with auto login hack.
And don't forget logout.
If you leave the site by closing browser, You can't login 300 sec.



192
GIJOE
Re: Problems with MyAlbum-p
  • 2003/10/6 21:35

  • GIJOE

  • Quite a regular

  • Posts: 265

  • Since: 2003/8/13


I am sorry that I didnot think about 'safe mode restriction'.
I will refer this problem to my development.
Quote:

Thanks a lot, GIJOE. You have been very kind answering my questions.

It's my pleasure.



193
GIJOE
Re: Problems with MyAlbum-p
  • 2003/10/5 21:31

  • GIJOE

  • Quite a regular

  • Posts: 265

  • Since: 2003/8/13


The prolem might be caused by the setting of MIME-type of your browser.
Try another browser or another format of files.
eg) If you uploaded *.jpeg, try *.jpg,*.gif,*.png.



194
GIJOE
Re: Problems with MyAlbum-p
  • 2003/10/4 22:20

  • GIJOE

  • Quite a regular

  • Posts: 265

  • Since: 2003/8/13


There is no problem with environments nor configs.

No photos can't be uploaded yet?

If you can't do yet, check the size of photos and change "max file size","max photo height","max photo width" in preference of myAlbum-P.



195
GIJOE
Re: Problems with MyAlbum-p
  • 2003/10/3 21:18

  • GIJOE

  • Quite a regular

  • Posts: 265

  • Since: 2003/8/13


Quote:

Samhayne wrote:
I´m using version 2.02, it is the latest?

The latest is 2.03.
Some features for beginners added in this version.

Quote:

I´m totally newbie, so i don´t know where to look for initials.....neither i know what is 'check module'
Sorry for being so lame, and excuse my bad english (i´m spanish).

You can use 'Module Check' from XoopsAdmin -> myAlbum-P.
In spanish, this menu is named "Revisio'n del mo'dulo".



196
GIJOE
Re: Problems with MyAlbum-p
  • 2003/10/3 13:59

  • GIJOE

  • Quite a regular

  • Posts: 265

  • Since: 2003/8/13


Which version of myAlbum-P do you use?

In the latest version, you need not set permissions.
(Only XOOPS_ROOT_PATH."/uploads" should be set 777 or 707)
And, also checks php initials like file_uploads.

Try the latest.

If you've already used the latest, show me the result of 'check module'.




197
GIJOE
Re: Adding the group permission feature to your module
  • 2003/9/19 6:51

  • GIJOE

  • Quite a regular

  • Posts: 265

  • Since: 2003/8/13


This feature is very useful for module developpers.
Thanks!



198
GIJOE
Re: Fix for multiple blocks in Admin
  • 2003/9/18 7:17

  • GIJOE

  • Quite a regular

  • Posts: 265

  • Since: 2003/8/13


Quote:

Catzwolf wrote:
It is suggested that all users should only belong (added) to one group type and not belong (added) to multipule groups.

It is not a good idea.
The feature of group has many possibilities and purposes.

To avoid multiple icons being displayed, XOOPS core should be fixed at first.

I use a patch adding "$admin_mids = array_unique( $admin_mids ) ;" into cp_functions.php.

----------------
That's a obviously bug! It should be fixed.



199
GIJOE
Re: myalbum-p
  • 2003/9/17 10:45

  • GIJOE

  • Quite a regular

  • Posts: 265

  • Since: 2003/8/13


Perhaps you didnot set permission of the directory for photo storing.

Set permission 777(or 707) into
/home/xblgods/www/rf/modules/myalbum/photos
/home/xblgods/www/rf/modules/myalbum/photos/thumbs
by FTP or shell.

If you'd like to use "batch upload", see this thread.

https://xoops.org/modules/newbb/viewtopic.php?topic_id=11902&forum=4#47553



200
GIJOE
Re: myalbum-p
  • 2003/9/16 20:46

  • GIJOE

  • Quite a regular

  • Posts: 265

  • Since: 2003/8/13


At first, try "check module" in admin of myAlbum-P.
I'll help you after you tell me the result.




TopTop
« 1 ... 17 18 19 (20) 21 »



Login

Who's Online

231 user(s) are online (152 user(s) are browsing Support Forums)


Members: 0


Guests: 231


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