Rip from this site: taikhoan.thegioihoanmy.vn
RECOMMEND USING INTERNET INFORMATION SERVICE (IIS). HAVEN'T TEST ON XAMPP OR WAMP. I HAVE NO ERROR WITH IIS
Code by me: Karthus (PHP, jQuery, Ajax)
Update: English version link: https://mega.nz/#!uVRlAK6b
Mirror: https://namlunhay.com/NLH.rar
database config in: config.php, dbconfig.php, Assets/character.php
For ranking avatar. Excute sql file in DB and Create collumn hash varchar in table characters.
If you have any question. Post below, i'll reply if i have freetime.
Live demo: namlunhay.com
demo:
Last edited by Karthus; 10-06-17 at 09:53 AM.
Great steal out there! we will be using it ;) Thanks!
Index error
Warning: include_once(dkfirewall.php) [function.include-once]: failed to open stream: No such file or directory in C:\AppServ\www\ams\Index.php on line 25
Warning: include_once() [function.include]: Failed opening 'dkfirewall.php' for inclusion (include_path='.;C:\php5\pear') in C:\AppServ\www\ams\Index.php on line 25
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\ams\Index.php:4) in C:\AppServ\www\ams\header.php on line 2
I have some questions, please contact facebook you
Cho em xin facebook của anh đi em có vài thắc mắc muốn hỏi.
The register page works? Its just keep loading after clicking submit. Plus, I saw there is nothing written inside the form action, is it suppose to be like that or to code it myself?
Plus, I have this error
A session had already been started - ignoring session_start() in C:\xampp\htdocs\mswebsite\www\header.php on line 2
What cause it?
Last edited by Quack; 09-06-17 at 03:18 PM.
dangky.js handle the ajaxregister.php do Register action. It response result to dangky.js
Create collumn pass1 varchar in your accounts table or edit ajaxregister.php
to thismysql_query("INSERT INTO accounts(`name`,`password`,`pass1`,`lastknownip`) VALUES('".$username."', '".$hashed_password."','".$pass."','127.0.0.1')");
mysql_query("INSERT INTO accounts(`name`,`password`,`lastknownip`) VALUES('".$username."', '".$hashed_password."','127.0.0.1')");What page show this error. Header.php include in every page need loggedin.PHP Code:
A session had already been started - ignoring session_start() in C:\xampp\htdocs\mswebsite\www\header.php on line 2
Last edited by Karthus; 09-06-17 at 04:37 PM.
Thanks for your assistance.
The first problem I've managed to understand it in the end, it fixed it.
The second one happened because there was 2 start_session() commands, one in the page and one in the header. Just remove one from the regular pages (register and character info i think it was).
Anyway I've managed to register, but it doesn't return me the message that everything completed, its just keep "loading".
Update Thread: English version
"mysql_query()" what the actual fuck
I'm on phone so I haven't looked into the code but quoting you saying this one line makes me feel very unsafe about this release. Please use MySQLi or PDO. Plus, all mysql_* functions were removed in PHP7..
PHP<3
Looking for PHP developers for code reviews, PM me
lol, this CMS using for Vietnamese's server?
"Cho hỏi server này còn sống không? :v"
"Experience can be learn from mistakes"