LokiAuth

Simple auth plugin and working in web with permissionsEx.
version 0.5.3
Futures:
  • Single file with password for each player.
  • If one player yet loginned, no one can login with this nickname.
  • Nickname can entry only latin, numbers or underscore.
  • On login every players in radius 150 meteres heare door sound.
  • Multy account protect.
  • Just type your password to login.
Commands(permissions):
/logout - for logout
/isreg <nickname> - test for site(lokiauth.isreg)

Example PHP:
if(isset($_GET['pass'])&&isset($_GET['nick'])&&$_GET['pass']=="qwerty12345")
{
mysql_connect("database", "name", "pass");
mysql_select_db("name");
$query="SELECT id FROM table WHERE nick=\"".strtolower($_GET['nick'])."\" LIMIT 1";
if(!empty(mysql_fetch_array(mysql_query($query), MYSQL_NUM)))
{
echo "true"; //user is regged
}
else
{
echo "false";
}
}
else
{
echo "error";
}

Configuration:
  • enable: true - is plugin enabeled.
  • online:
    • enable: false - is web function enabled.
    • unregistered: default - group of player(Pex) from what plugin move player(also you can use permission lokiauth.fromthis).
    • registered: success - group of player(Pex) to what plugin move player after login.
    • regpage: http://yandex.ru/ - link for web page from what plugin get information*.
    • regpass: qwerty12345 - password for web page.
  • effects: true - enabling virtual lightstrike on player login.
  • anti-multiakkount: true - multy account protect, need LokiBan 0.1.6 or higher.
  • lang: ru - language ru or en.
  • ips: - nickname and IP list for autologin with static IPs.
    • nickname: ip - if nickname and ip mathc with one of this list, player needn't prompt login/password .
    • [nickname2: ip]...
<small>* - When player try to login, plugin send GET query to page regpage, where nick - player nickname, pass - regpass. If first char of page is 't', then plugin test having player permission lokiauth.fromthis or his entry group unregistered(from config) and move him to group registered(from config). Page format - UTF-8</small>

Download
Versions log:
0.5.4 [1.2.5 R5.0/1.3.1 R2.0] 11.09.2012 17:08:22
  • Fixed some bugs.
  • Removed login and register commands.
  • Added message for /logout.
0.5.3 [1.2.5 R5.0/1.3.1 R1.0] 11.07.2012 13:33:45
  • First version on bukkit

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    43178
  • Created
    Aug 11, 2012
  • Last Released File
    Sep 11, 2012
  • Total Downloads
    2,608
  • License

Categories

Members

Recent Files

Bukkit