Longjumps Web Stats
//UPDATED
In new version:
Fix bug with update stats after mapchange
Remove the redundancy in code
Fix bug with ` ' in names
I write a plugin which put lj top in DB and php which output result.
Example
INSTALLING:
1.copy wljs.amxx to addons/axmodx/plugins/
2.add line wljs.amxx in addons/amxmodx/config/plugins.ini
3.add this cvars with your personal settings to amxx.cfg
ljs_db_host "127.0.0.1"
ljs_db_user "root"
ljs_db_pass "xxx"
ljs_db_name "xxx"4.open wljs.php and edit settings
define("DB_HOST", "127.0.0.1");
define("DB_USER", "root");
define("DB_PASS", "xxx");
define("DB_NAME", "xxx");5.copy wljs to your web server
download plugin
download php
New version of php part:
1.Add server name at top of page.
2.reduced quantity of signs after a comma.
3.optimize code.
[SIZE="24"]Big thanks to kib0rg for that[/SIZE]
never give aways someones ip like you do... its their business whether they publish their ip or not :X
127.0.0.1 = local host. hf schlumpf :P
I think he meant the ip's at the example.
SchlumPF, if you mean IP in example, i can edit php and delete ip column
i just mean you shuldnt show the ip in the top15, show nick and maybe steamid if this plugin "supports" steam. if you need the ip to save the data everything is fine but simply publishing ips...
ok i will remove this column soon and update.
SQL_NextRow You need that in the while of SQL_MoreResults And you can use update :D
if(!SQL_MoreResults(query))
i just check query for result
why i need sql_nextrow?
p.s. this is my first sqlx plugin
Joob job. I will test soon
release climb top15 :D
nice, gj
updated. (remove ip column)
try to remove the redundancy in your code
you can reduce the filesize to a fifth =)
also if you're checking the same variable to different values a few times in a row, don't use if-statements, use switch-statements instead
Take a look: http://forums.alliedmods.net/showpost.php?p=779266&postcount=240
i have on my server lj stats by Exolent cani use these web stats??
Originally posted by Puzzlei have on my server lj stats by Exolent cani use these web stats??
I think that you cant, because these stats are based on numbs and lt.rat's plugin.
//UPDATED
mahy gj:)
thx
Please log in to post replies.