xoops forums

Forum Index


Board index » All Posts




fabou78

Friend of XOOPS
Posted on: 9/26 15:59
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#31

How is IP filtering/ban done in XOOPS protector?

My provider have upgraded their platform and now we sit behind a load balancer or firewall. This has the consequences that the web server we are on will always the same IP address.

During testing I wanted to open access only to me and was forced to use XFF in .htaccess rather that the traditional require ip.

SetEnvIF X-Forwarded-For "1.1.1.1" AllowIP

<RequireAny>
    Require 
env AllowIP
</RequireAny>


Would the IP filtering mechanism in XOOPS based on XFF by any chances?


Mamba

Moderator
Posted on: 9/26 5:09
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#32

Re: 500 Internal Server Error

You should update to XOOPS 2.5.10

But I would suggest to do it on your old server, and then transfer to your new server.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs


vina

Just popping in
Posted on: 9/26 3:07
vina
vina (Show more)
Just popping in
Posts: 5
Since: 2018/3/16
#33

500 Internal Server Error

I have error (500 Internal Server Error) after transfer to new server.

My xoops site:
version: 2.5.6

version PHP site in old server was 5.6 but this new server support version 7.3 only

please help me for solve this problem


Mage

Core Developer
Posted on: 9/25 19:32
Mage
Mage (Show more)
Core Developer
Posts: 181
Since: 2009/8/2 1
#34

Re: XOOPS France

Xoops is no longer available at the moment. We will inform you when we have more information


fabou78

Friend of XOOPS
Posted on: 9/21 7:40
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#35

Re: Issue with synchronize buttons in user admin panel

Issue #695 created on github https://github.com/XOOPS/XoopsCore25/issues/695


fabou78

Friend of XOOPS
Posted on: 9/20 18:35
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#36

Issue with synchronize buttons in user admin panel

There is an issue with the synchronize option in admin->users as if you click on synchronize button at the top or any synchronize button associated with a particular user it will reset the NewBB count to zero even if a user has tons of posts in the forums.

I found out that the issue is related to SQL calls to table “bb_posts” while the correct table name is “newbb_posts” (it seem to me that this table has been renamed to “newbb_posts” at some point).

I have made the following changes in /modules/system/admin/users/jquery.php at line 53
-            $tables[] = array('table_name' => 'bb_posts''uid_column' => 'uid');
+            
$tables[] = array('table_name' => 'newbb_posts''uid_column' => 'uid');

for the per user synchronize option

And the following changes in /modules/system/admin/users/users.php at line 232
-        $tables[] = array('table_name' => 'bb_posts''uid_column' => 'uid');
+        
$tables[] = array('table_name' => 'newbb_posts''uid_column' => 'uid');

for the general (all users) synchronize option

Both corrections seem to work.


Can someone confirm if this is good enough?

I don’t know PHP and XOOPS so I can’t judge it would not introduce another issue somewhere else nor if there is somewhere else in the code that would need similar corrections.

The file modules/newbb/include/config.php seem to have quite a few more references to the old naming convention ( from line 81) can’t really figure out what this is doing.

I am happy to raise issue and submit corrections on github if that’s all needed to be done.


fabou78

Friend of XOOPS
Posted on: 9/19 10:54
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#37

XOOPS France

Anyone knows what happened to the XOOPS France website? It has been down for quite some time now.

DNS issues?

dig +noall +answer www.frxoops.org
;; connection timed out; no servers could be reached


Lupin

Just popping in
Posted on: 9/16 23:08
Lupin
Lupin (Show more)
Just popping in
Posts: 50
Since: 2007/6/1 2
#38

Re: NewBB 5.0 Final and 4.34 Final are released

Sorry Mamba , I had probs with internet service last week ... Ok , I will read an reply ...

Pino


fabou78

Friend of XOOPS
Posted on: 9/16 11:40
fabou78
fabou78 (Show more)
Friend of XOOPS
Posts: 37
Since: 2012/6/16
#39

Small display issue in date for yesterday and today

I was looking at an issue where dates for posts from yesterday or today would not display correctly in my language (French).

I found an error in our locale file language/french/locale.php ;

define('_TODAY', "\A\u\j\o\u\r\d\'\h\u\i G:i");
define('_YESTERDAY', "\H\i\e\r G:i");

The issue is that \r \e seem to be special characters and have not been translated properly in French so I can easily fix this by doing double back slash \\e and \\r like I have seen in the English version of the file language/english/locale.php

The function that is returning the date string is located in class/xoopslocal.php and at line 98 I can see the reference to _TODAY and _YESTERDAY defined in local.php

$datestring = ($elapse_today 0) ? _TODAY _YESTERDAY;


Now there is also another file called calendar.php that has a really neat variable called _CAL_TODAY

define('_CAL_TODAY', 'Aujourd\'hui');

I tried to be clever by replacing

$datestring = ($elapse_today 0) ? _TODAY _YESTERDAY;


With this

$datestring = ($elapse_today 0) ? _CAL_TODAY _CAL_YESTERDAY;



in class/xoopslocal.php and I also added _CAL_YESTERDAY to the calendar.php file as it was not present but it didn’t work.


I don’t know PHP but wanted to know if there is an easy way to fix it like I wanted by using calendar.php (if there is not risk to have side effects) ?

Also just out of curiosity why define('_TODAY', "\T\o\d\a\y G:i"); and not define('_TODAY', "Today"); in local.php?


Mamba

Moderator
Posted on: 9/15 9:49
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#40

Re: NewBB 5.0 loading wrong template?

I'm happy to hear that!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



TopTop
« 1 2 3 (4) 5 6 7 ... 29242 »