Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Announcements / Re: Paypal Changes (affecting all versions)
« Last post by Nightborn on July 23, 2013, 10:18:27 pm »
The Connection:close does not work... it will not generate a mail.

I think it works now, but will still check that double.

And: xajax seems to produce high output in certain cases, I have presently updated it to the last (but 1 year old version).
12
Announcements / Paypal Changes (affecting all versions)
« Last post by Nightborn on July 17, 2013, 05:39:36 am »
Paypal will use a slightly different format to validate payments (i.e. your check to hand out DP)

Code: [Select]
PHP
// post back to PayPal system to validate $header="POST /cgi-bin/webscr HTTP/1.1\r\n"; $header .="Content-Type: application/x-www-form-urlencoded\r\n";
$header .="Host: www.paypal.com\r\n";
$header .="Connection: close\r\n\r\n";

This will be in 1.2.5 which will be released once I verify it works.

13
Bugreports / Corenews
« Last post by A Cool Guy on January 07, 2013, 01:36:44 am »
In the grotto under Mechanics there is a link for core news when you go in there and press the get news button you get this

Code: [Select]
PHP Warning: "file_get_contents(http://corenews.nb-core.org/corenews.txt) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found "
in corenews.php at 27.
Call Stack:
2: file_get_contents("http://corenews.nb-core.o...") called from corenews.php on line 27

I assume it because the page http://corenews.nb-core.org/corenews.txt doesn't exist.

Just thought i'd let you know.
14
Bugreports / Re: prefs.php Error
« Last post by Nightborn on October 30, 2012, 07:37:19 am »
As this is working for me, I wonder where it comes from :P

Sounds like support for new modules? Never had that error to my knowledge. (Prefs is an old file that would need overhaul anyhow)
15
Bugreports / Re: pvp error
« Last post by Nightborn on October 30, 2012, 07:34:56 am »
Genau, klammer.

Quote
1: db_query("SELECT acctid,level FROM ...") called from /home/domains/lotgd.aszlig.net/modules/dwellings_pvp/dohook/pvpcount.php

Problem war das Dwellings-Modul ;) nicht +nb Core.
16
Bugreports / Re: prefs.php Error
« Last post by Patti on October 17, 2012, 06:35:27 pm »
fix for Problem : (thx by dragonprime)

open prefs.php

search :
Code: [Select]
if (is_array($val)) {
$v = $val[0];
$x = explode("|", $v);
$val[0] = $x[0];
$x[0] = $val;
} else {
$x = explode("|", $val);
}

search :          
Code: [Select]
$type = explode(",", $x[0]);
if (isset($type[1])) $type = trim($type[1]);
else $type = "string";

replaced :

Code: [Select]
if(is_array($x[0])) $x[0] = call_user_func_array('sprintf', $x[0]);
$type = split(",", $x[0]);
if (isset($type[1])) $type = trim($type[1]);
else $type = "string";



17
Bugreports / prefs.php Error
« Last post by Patti on October 12, 2012, 08:33:10 pm »
I have Error on prefs ( Einstellungen der User)
Tschuldigung mein englisch ist nicht so gut :

Code: [Select]
PHP Warnung: "explode() expects parameter 2 to be string, array given"
in /home/domains/lotgd.aszlig.net/prefs.php bei 347.
Call Stack:
2: explode(",", Array(

    0=>"Has the player been bless...", 1=>"`$Ramius"

)) called from /home/domains/lotgd.aszlig.net/prefs.php on line 347


Code: [Select]
PHP Warnung: "explode() expects parameter 2 to be string, array given"
in /home/domains/lotgd.aszlig.net/prefs.php bei 347.
Call Stack:
2: explode(",", Array(

    0=>"Has the player been curse...", 1=>"`$Ramius"

)) called from /home/domains/lotgd.aszlig.net/prefs.php on line 347

:-/
18
Bugreports / Re: pvp error
« Last post by Patti on October 05, 2012, 07:23:17 pm »
Ich glaube ich konnte es fixen :

open /modules/dwellings_pvp/dohook/pvpcount.php

search :

Code: [Select]
AND age>$days OR dragonkills>0 OR pk>0 OR experience>$exp)

replace with

Code: [Select]
AND (age>$days OR dragonkills>0 OR pk>0 OR experience>$exp)

muesste so richtig sein, auf jeden fall bekomme ich keine error mehr.
19
Bugreports / pvp error
« Last post by Patti on October 05, 2012, 05:36:10 pm »
SELECT acctid,level FROM accounts
           
            WHERE location='Wohnviertel'
            AND (pvpflag < '2012-10-05 16:23:57')
            AND (alive=1) AND (locked=0) AND (slaydragon=0)
            AND age>5 OR dragonkills>0 OR pk>0 OR experience>3500)
            AND (alive=1)
            AND (laston<'2012-10-05 16:18:57' OR loggedin=0) AND (acctid<>1)
            AND (lastip != '93.221.15.48')
            AND (uniqueid != '963425e401cddf1a7df478c735602862')
           

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND (alive=1) AND (laston<'2012-10-05 16:18:57' OR loggedin=0) AND (ac' at line 6
Call Stack:
1: db_query("SELECT acctid,level FROM ...") called from /home/domains/lotgd.aszlig.net/modules/dwellings_pvp/dohook/pvpcount.php on line 26
2: require("/home/domains/lotgd.aszli...") called from /home/domains/lotgd.aszlig.net/modules/dwellings_pvp.php on line 53
3: dwellings_pvp_dohook("pvpcount", Array(

    "count"=>"1", "loc"=>"Wohnviertel"

)) called from /home/domains/lotgd.aszlig.net/lib/modules.php on line 517
4: modulehook("pvpcount", Array(

    "count"=>"1", "loc"=>"Wohnviertel"

)) called from /home/domains/lotgd.aszlig.net/lib/pvplist.php on line 133
5: pvplist() called from /home/domains/lotgd.aszlig.net/pvp.php on line 35

sorry my english is bad :-/
in deutsch koennte ich besser schreiben Wink
20
Bugreports / sanitize_mb
« Last post by Nightborn on July 02, 2012, 05:59:13 am »
... is kind of a workaround to fix the endless module/core issue of breaking up a non-latin name with str*-functions instead of mb_str* functions.

Problem is the database :) even if you make it UTF, it still calculates field values in bytes. Hence the DB will break it up, if you do not check for the correct size.
Pages: 1 [2] 3 4 ... 10