pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: Settings_Security.pm Sep 19th, 2017 at 11:24am Mark & QuoteQuote Security settings can not be saved. Quote:Ein Fehler ist aufgetreten! Use of uninitialized value in concatenation (.) or string at /var/www/vhosts/yabbtest.de/cgi-bin/yabb2/Admin/Settings_Security.pm line 329. « Last Edit: Sep 19th, 2017 at 11:37pm by Dandello » if (idea == 'none') {use (manuals) && (Google | | search)}if ($ answer == 0) {post (question)} IP Logged
Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: Security.pm Reply #1 - Sep 19th, 2017 at 12:51pm Mark & QuoteQuote When is this error ocurring? « Last Edit: Sep 19th, 2017 at 8:58pm by Dandello » Reason: removed unncessary code change Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: Re: Security.pm Reply #2 - Sep 19th, 2017 at 5:50pm Mark & QuoteQuote I wanted to insert some query modules with IP lookup. This can not be saved. Error message still exists. if (idea == 'none') {use (manuals) && (Google | | search)}if ($ answer == 0) {post (question)} IP Logged
Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: Security.pm Reply #3 - Sep 19th, 2017 at 7:01pm Mark & QuoteQuote What were you trying to add to the Security Center IP lookup? try in Settings_Security.pm find Code (Perl) $ipset[0] =~ s/[ ]/_/xsm; $newset .= qq~'$ipset[0]' => '$ipset[1]',\n~; replace with Code (Perl) if ( $ipset[0] && $ipset[1] ) { $ipset[0] =~ s/[ ]/_/gxsm; $newset .= qq~'$ipset[0]' => '$ipset[1]',\n~; } I'm guessing an emply line is being passed to that section. « Last Edit: Sep 19th, 2017 at 11:13pm by Dandello » Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: Re: Security.pm Reply #4 - Sep 20th, 2017 at 3:11am Mark & QuoteQuote Dandello wrote on Sep 19th, 2017 at 7:01pm:What were you trying to add to the Security Center IP lookup? Yes, works now, but not in the order as I would like to have it. In settings.pm, however, it is correct. Code (Perl)%iplookup = ('AfriNIC' => 'www.afrinic.net/cgi-bin/whois?searchtext={ip};', 'APNIC' => 'wq.apnic.net/apnic-bin/whois.pl?searchtext={ip}', 'ARIN' => 'whois.arin.net/rest/nets;q={ip}?showDetails=true&showARIN=false&ext=netref2', 'LACNIC' => 'lacnic.net/cgi-bin/lacnic/whois?query={ip}', 'NCC' => 'https://apps.db.ripe.net/search/query.html?searchtext={ip};', 'StopForumSpam' => 'http://www.stopforumspam.com/ipcheck/{ip};', 'CleanTalk' => 'https://cleantalk.org/blacklists/{ip};', 'AbuseIPDB' => 'http://www.abuseipdb.com/check/{ip};', 'CountryIPBlocks' => 'https://www.countryipblocks.net/search_ip.php?search_ip={ip};', 'utrace' => 'http://www.utrace.de/?query={ip};', 'IP-Location' => 'http://www.iplocationtools.com/{ip}.html', 'IP2-Location' => 'http://www.ip2location.com/demo/{ip};', 'WhatIsMyIPAdress' => 'http://whatismyipaddress.com/ip/{ip};', ); #IPlookup url list Quote:Lookup 77.22.252.67 auf einem Whois-Server: ARIN AbuseIPDB LACNIC IP2-Location NCC WhatIsMyIPAdress CountryIPBlocks CleanTalk StopForumSpam utrace AfriNIC APNIC IP-Location WhatIsMyIPAdress should be at the bottom, as in the settings.pm if (idea == 'none') {use (manuals) && (Google | | search)}if ($ answer == 0) {post (question)} IP Logged
Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: Settings_Security.pm Reply #5 - Sep 20th, 2017 at 3:46am Mark & QuoteQuote Unfortunately, hashes don't stay in order and the list is stored as a hash. You can, however, get the list into alphabetical order. In Sources/IPLookup.pm find Code (Perl) my @iplookup_urls = keys %iplookup; and replace with Code (Perl) my @iplookup_urls = ( sort {lc $a cmp lc $b} keys %iplookup); The above will order the list case insensitively. Edited: OR we can save the keys in list order as @iplookups_urls... Let me think on that. Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: Re: Settings_Security.pm Reply #6 - Sep 20th, 2017 at 5:35am Mark & QuoteQuote So it is also good. if (idea == 'none') {use (manuals) && (Google | | search)}if ($ answer == 0) {post (question)} IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: Re: Settings_Security.pm Reply #7 - Sep 20th, 2017 at 4:54pm Mark & QuoteQuote 18.52 clock (6.52 pm) and good morning Webmaster? Time.jpg ( 21 KB | 209 Downloads ) if (idea == 'none') {use (manuals) && (Google | | search)}if ($ answer == 0) {post (question)} IP Logged
Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: Settings_Security.pm Reply #8 - Sep 20th, 2017 at 5:04pm Mark & QuoteQuote Yeah, that looks a little odd. In Subs.pm find Code (Perl) if ( $hour >= 12 && $hour < 18 ) { Add above Code (Perl) $toffs = toffs($date); my ( undef, undef, $hour, undef, undef, undef, undef, undef, undef ) = gmtime($date + $toffs); Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: Re: Settings_Security.pm Reply #9 - Sep 20th, 2017 at 6:26pm Mark & QuoteQuote Perfect, works. if (idea == 'none') {use (manuals) && (Google | | search)}if ($ answer == 0) {post (question)} IP Logged