Help needed for dropcalc testing.
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 33
- Joined: Wed Aug 02, 2006 8:21 pm
i think most damage is done through misconfigurating the server (the machine).
Example.
Someone hacks your Website and gets your admin name and pw, he trys this pw on your mysql frontend , and when he has success he can change everything in thoose tables.
Another Method is DDosing the server.
And another one is maybe bruteforcing the telnet pw.
Example.
Someone hacks your Website and gets your admin name and pw, he trys this pw on your mysql frontend , and when he has success he can change everything in thoose tables.
Another Method is DDosing the server.
And another one is maybe bruteforcing the telnet pw.
-
- Advanced User
- Posts: 308
- Joined: Wed May 10, 2006 11:40 am
- Location: U.K.
-
- Advanced User
- Posts: 308
- Joined: Wed May 10, 2006 11:40 am
- Location: U.K.
Law,
I'm going to hit a problem with the count(*) function in the dbutils file.
The problem is this ... I can't replace count(*) because I don't know a column to replace it with.
The dbutils is designed to be flexible. You can throw it at many different tables and it shouldn't bat an eyelid, because the code doesn't depend on knowing a firm table structure.
Leave it with me ... I'm working on it.
I'm going to hit a problem with the count(*) function in the dbutils file.
The problem is this ... I can't replace count(*) because I don't know a column to replace it with.
The dbutils is designed to be flexible. You can throw it at many different tables and it shouldn't bat an eyelid, because the code doesn't depend on knowing a firm table structure.
Leave it with me ... I'm working on it.
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
-
- Advanced User
- Posts: 308
- Joined: Wed May 10, 2006 11:40 am
- Location: U.K.
O.K. - You win.
New version has just gone up to the site.
With luck ... it contains ...
a "paranoia" setting at the bottom of the config.php file, which should stop the map showing the position to non-gm's and also hiding the account name to non-gm's.
the local setting for the telnet (I'll have to find out how to code that for future compatability)
removal of all count(*) references ... I just hope that the database utilities still work as a result.
It's over to you guys to download and test to destruction!!!
... well, not literally, of course 
New version has just gone up to the site.
With luck ... it contains ...



It's over to you guys to download and test to destruction!!!


My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
- ThePhoenixBird
- L2j Inner Circle
- Posts: 1857
- Joined: Fri May 27, 2005 5:11 pm
Hummmmm
msknight i had some issues with Mysql when installing your tables.
For example this one:
The error its here:
'Breka\'s Stronghold'
As you can see there are three '
So, mysql takes the first one as the begginin of the string and the next one as the end of the string.
So, the sintax its like this 'Breka\'
The third one was taken as another string.
I had this problem with MySQL Query Browser.
In navicat i dont get that problem, but it's slower than Query Browser.
Well, look at this:
http://img380.imageshack.us/img380/456/dibujo2nu9.jpg
msknight i had some issues with Mysql when installing your tables.
For example this one:
Code: Select all
insert into `knightloc` (`name`,`x`,`y`) values ('Breka\'s Stronghold',81266,128030);
'Breka\'s Stronghold'
As you can see there are three '
So, mysql takes the first one as the begginin of the string and the next one as the end of the string.
So, the sintax its like this 'Breka\'
The third one was taken as another string.
I had this problem with MySQL Query Browser.
In navicat i dont get that problem, but it's slower than Query Browser.
Well, look at this:
http://img380.imageshack.us/img380/456/dibujo2nu9.jpg
-
- Advanced User
- Posts: 308
- Joined: Wed May 10, 2006 11:40 am
- Location: U.K.
Thanks,ThePhoenixBird wrote:Hummmmm
msknight i had some issues with Mysql when installing your tables.
For example this one:
Code: Select all
insert into `knightloc` (`name`,`x`,`y`) values ('Breka\'s Stronghold',81266,128030);
I see the problem. Different systems handle apostrophies in different ways. SQLyog, for example, uses a backslash to escape the apostrophy.
The common way others seem to handle it is to replace the apostrophy with a back tick, as are used to surround the field names. You could run a search to replace all the \' with ` and that should get you around the issue for the installation. It shouldn't cause you grief after that as they are display texts only.
Anyone know the universal way to escape apostrophies that all systems should recognise, please?
I'll also do some digging.
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
-
- Advanced User
- Posts: 308
- Joined: Wed May 10, 2006 11:40 am
- Location: U.K.
-
- Advanced User
- Posts: 308
- Joined: Wed May 10, 2006 11:40 am
- Location: U.K.
\' is supposed to be the right way to insert an apostrophe in to strings, but I have nevertheless replaced them with back ticks and I've uploaded the updated sql for you.
It is the easiest solution I can see, otherwise I've got to re-edit the SQL every time I do an export with new data; and with C5 around the corner...
Let me know if that gives you problems.
It is the easiest solution I can see, otherwise I've got to re-edit the SQL every time I do an export with new data; and with C5 around the corner...
Let me know if that gives you problems.
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
-
- Posts: 32
- Joined: Wed Jun 07, 2006 2:03 pm
- Contact:
-
- Advanced User
- Posts: 308
- Joined: Wed May 10, 2006 11:40 am
- Location: U.K.
Account name still visible where?Paul_Atrides wrote: however account name its still visible.
If it is in the "Welcome..." then I am not removing that, as it is the account name of the person currently logged in to the drop calc and is anyway transmitted with every transaction and is visible in the url bar. You can, however, remove it yourself. It is located in the common.php file, in the wrap_start function. Just do a search for the word "Welcome" and remove the variable after it.
If it is elsewhere, please throw up and screen shot and I'll get rid of it.
Also, in 48 hours, I go on four days holiday, so anything urgent that needs to be sorted, please let me know soon, otherwise it will have to wait until I get back.
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
-
- Advanced User
- Posts: 308
- Joined: Wed May 10, 2006 11:40 am
- Location: U.K.
-
- Advanced User
- Posts: 308
- Joined: Wed May 10, 2006 11:40 am
- Location: U.K.
I understand how the guest is seeing the account, and I'll get that fixed.
What I don't understand is how the map is showing wrong.
It should show like this ...

Can you PM me, or e-mail me the source code behind that page please, so I can check where the table structure is going wrong? ie. the page source from the browser
I'm also going to get hold of Opera to see if it can shed light on what is happening.
What I don't understand is how the map is showing wrong.
It should show like this ...

Can you PM me, or e-mail me the source code behind that page please, so I can check where the table structure is going wrong? ie. the page source from the browser
I'm also going to get hold of Opera to see if it can shed light on what is happening.
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
-
- Posts: 32
- Joined: Wed Jun 07, 2006 2:03 pm
- Contact:
-
- L2j Veteran
- Posts: 1554
- Joined: Mon Oct 10, 2005 6:49 pm
I only now saw this...it's been a while since the problem was posted, but better late than neverI see the problem. Different systems handle apostrophies in different ways. SQLyog, for example, uses a backslash to escape the apostrophy.

There are 2 default ways to escape the apostrophe. One is with a backslash. The other is with an apostrophe! For example:
'Breka''s Stronghold'
NOTE this is not a double-quote ( " ) sign. It is 2 single quote signs next to each other.
Usually, if one doesn't work, the other does, while in many systems both work! However, if you don't like guesswork, MYSQL provides another method. You can assign the job of an escape key to ANY character you wish! If I remember correctly, the syntax is like this:
Code: Select all
insert into `knightloc` (`name`,`x`,`y`) values ('Breka\'s Stronghold',81266,128030) ESCAPE '\';
Code: Select all
insert into `knightloc` (`name`,`x`,`y`) values ('Breka#'s Stronghold',81266,128030) ESCAPE '#';
I'm a joyful, merriful, playful, curious, young, little elf!!! 
I'm also a High(tech) Elf, (computer) wiz!

I'm also a High(tech) Elf, (computer) wiz!