Хостинг серверов Minecraft playvds.com
  1. Вы находитесь в русском сообществе Bukkit. Мы - администраторы серверов Minecraft, разрабатываем собственные плагины и переводим на русский язык плагины наших собратьев из других стран.
    Скрыть объявление

Помогите Настроить веб-интерфейс системы скинов!!!

Тема в разделе "[Архив] Помощь", создана пользователем arteZ, 28 янв 2012.

  1. Автор темы
    arteZ

    arteZ Старожил Пользователь

    Баллы:
    123
    Skype:
    theartez
    Имя в Minecraft:
    TheArtez
    Срочно надо..стоит xAuth

    файл config(в папке плагина):

    main:
    # How should xAuth store data (Accounts, sessions, etc.)?
    # Possible values: h2, mysql
    datasource: h2
    # If set to true, xAuth will disable itself if the server is in online-mode
    auto-disable: false
    # If set to true, all required library files will be automatically downloaded
    download-libraries: true
    # When set to true, if a player connects with the same name as someone who is
    # already online, the player connecting will be kicked instead of the online player
    reverse-enforce-single-session: true

    authurl:
    # Send user/pass data to authURL for authentication instead of the database
    # This option disables registration and password changes
    enabled: true
    # The URL to send user/pass data to, look at the example auth.php for an
    # example that works with SMF forums.
    url: http://minetop.16mb.com/cp/connect.php?field=minecra

    mysql:
    # Location of the MySQL server. Can be either a host name or IP address
    host: localhost
    # Port used by MySQL. Default is 3306
    port: 3306
    # User name used to connect to the MySQL server
    username: root
    # Password used to connect to the MySQL server
    password: ПАРОЛЬ-МЛИН
    # Name of the database that will be used by xAuth
    database: xauth
    # Names of the tables xAuth will use to store data
    tables:
    account: accounts
    session: sessions
    strike: strikes
    location: tele_locations
    inventory: inventory

    registration:
    # Enable/disable new registrations
    enabled: true
    # If set to true, everyone must register
    forced: true
    # Setting this to true requires a player to enter an email address when they register
    require-email: false
    # If set to true, a valid email address is required
    validate-email: false
    # How many accounts per IP address will be allowed. Set as 0 for unlimited
    account-limit: 0
    # Used with web registrations that require account activation
    activation: false

    login:
    strikes:
    # Amount of times a player can enter an incorrect password before action is taken
    # Set as 0 to disable
    amount: 5
    # What action to take when the strike threshold is reached
    # Possible values: kick, lockout
    action: kick
    # Length of time, in seconds, that a strike will remain in the database
    strike-length: 3600
    # Length of time, in seconds, that a player will remain locked out
    lockout-length: 900

    password:
    # Minimum length a password may be
    min-length: 6
    # Enable/disable password changes
    allow-change: true
    # Require at least one of the character types below that are set to true
    complexity:
    lowercase: false
    uppercase: false
    number: false
    symbol: false

    guest:
    # Amount of time, in seconds, that a player has to log in before they are kicked
    # Set as 0 to disable
    timeout: 300
    # Amount of time, in seconds, between "You must be logged in.." messages
    notify-cooldown: 5
    # Commands that players who are not registered or logged in may execute
    allowed-commands: [register, login, l]
    # Turn on/off location protection
    protect-location: true

    session:
    # Amount of time, in seconds, that a session will remain valid
    length: 3600
    # Verify a player's IP address when resuming a session
    verifyip: true
    # Length of time, in seconds, that a player will have godmode upon logging in
    # set as 0 to disable
    godmode-length: 5

    filter:
    # Minimum length a players name can be
    min-length: 2
    # Characters that may be present in a players name. Use an asterisk (*) to allow all
    allowed: '*'
    # If set to false, players with blank names can connect
    blankname: true

    # INTERNAL USE ONLY! DO NOT TOUCH!
    version: 5
    Файл connect.php(в самом веб-интерфейсе):
    <?php
    if(!defined('INCLUDE_CHECK')) die('У вас нет прав на выполнение данного файла!');

    // Конфигурация подключения к базе данных
    $db_host= '178.17.187.207'; // Ip-адрес базы данных
    $db_port= 3306; // Порт базы данных
    $db_user= 'root'; // Пользователь базы данных
    $db_pass= 'А тут я не скажу'; // Пароль базы данных

    // Конфигурация базы данных для плагинов AuthMe, xAuth, CAuth
    /*
    $db_database - имя базы данных, значение по умолчанию для плагинов:
    AuthMe = authme, xAuth = отсутствует (указывается вручную), CAuth = cauth
    */
    $db_database= 'xauth';

    /*
    $db_table - таблица базы данных, значение по умолчанию для плагинов:
    AuthMe = authme, xAuth = accounts, CAuth = users
    */
    $db_table = 'accounts';

    /*
    $db_columnId - уникальный идентификатор, значение по умолчанию для плагинов:
    AuthMe = id, xAuth = id, CAuth = id
    */
    $db_columnId = 'id';
    /*
    /*
    $db_columnUser - колонка логина, значение по умолчанию для плагинов:
    AuthMe = username, xAuth = playername, CAuth = login
    */
    $db_columnUser = 'playername';

    /*
    $db_columnPass - колонка пароля, значение по умолчанию для плагинов:
    AuthMe = password, xAuth = password, CAuth = password
    */
    $db_columnPass = 'password';


    $link = @mysql_connect($db_host.':'.$db_port,$db_user,$db_pass) or die('Невозможно установить соединение с базой данных!');

    mysql_select_db($db_database,$link);
    mysql_query("SET names UTF8");
    ?>
     
  2. Хостинг MineCraft
    <
  3. Автор темы
    arteZ

    arteZ Старожил Пользователь

    Баллы:
    123
    Skype:
    theartez
    Имя в Minecraft:
    TheArtez
    UP!!!
     
  4. Автор темы
    arteZ

    arteZ Старожил Пользователь

    Баллы:
    123
    Skype:
    theartez
    Имя в Minecraft:
    TheArtez
    И ещё раз UP
     

Поделиться этой страницей