Git Product home page Git Product logo

cs-bans's Introduction

CS-Bans

Система управления банами и админами для игровых серверов Counter Strike 1.6

Системные требования

PHP версии 5.3 и выше.

Расширения PHP: PDO, PDO-mysql, mbstring и gd.

Функции PHP: chmod, mkdir, copy

Включенный mod_rewrite

MySQL версии 5.0 и выше.

cs-bans's People

Contributors

bahek1994 avatar de-salvatierra avatar iamkapman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cs-bans's Issues

Не работает установка.

Система Ubuntu Linux. Настроенный LAMP сервер, лежат и работают сайты. В целом - все отвечает системным требованиям. С установкой на основной сервер версии 1.0 бета проблем не было. Все установилось сразу, потом обновился до 1.1.2. Даже думал модуль докупить. Случилось так, что пришлось переставлять баны с нуля. Вот тут и начались проблемы.

Заливаю на поддомен http://games.epicm.org/bans/ - при открытии пишет 404, /games/bans/index.php Not Found, делая редирект на http://games.epicm.org/bans/site/install.html

Тестировал на локалхосте на OpenServer (аля более вменяемый Denwer для форточек). Результат такой же.

Покапавшись в коде - включаю дебаг режим (раскомментировал в index.php),

// Дебаг
defined('YII_DEBUG') or define('YII_DEBUG', true);
// Кол-во стак трейсов ошибок
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);

тут и начинается веселье.

В общем, не хочу копипастить все сюда все эксепшены. На сайте включен дебаг. Взгляните сами, прошу.

На других серврах проверили - с установщиком все аналогично. Проблема не моей криворукости.

Умел бы yii и php - выяснил бы сам, да еще и коммит с пулл-реквестом отправил, но увы.

Спасибо.

How to enable the default behavior associated with the <a> element's href attribute ?

Hello,
The pagination uses an 'ul' element with multiple 'li' items to show the order of ban pages.
Within each 'li' item, there is an 'a' element with its href attribute., the default behavior of it is prevented.
I tried finding the right event.preventDefault() function in the correct JS file, with no success.

I wish to enable the URL direction.

Perhaps you can assist with identifying the cause of it.
Thanks in advanced.

Флаги доступа

В права доступа в amxx 1.8.3 был добавлен:
; v - amx_ban and amx_unban commands (temporary bans only, about amx_unban, only self performed ban during map gonna be allowed)

CDbConnection failed to open the DB connection

Здрасти! В общем не может инсталлятор подключиться к базе данных, саппорт сделал что мог, я тоже. Они дали скрипт для проверки подключения, всё работает, через PHPMyAdmin тоже коннектит с моими данными. Ваш инсталлер ну ни в какую не хочет. Я достал саппорт, они перепроверили что могли и ответили мне следующее: "Я перепроверил все возможные варианты, и как я вижу, проблем с подключением к базам данных в принципе и к данной конктретной в частности быть не должно. И со стороны сервера каких-либо проблем нет, по всей видимости ошибка может быть в самом скрипте. Я могу посоветовать Вам обратиться к разработчикам, чтобы они перепроверили это со своей стороны, если они посоветуют так или иначе изменить настройки сервера, Вы можете вернуться к нам для дальнейшей настройки.
На данный момент проблем с подключением к базе данных со стороны сервера нет в принципе."

Так что вот так... Как такое возможно для меня секрет...

[REQ] Показ ника и стимида админа в инфо о бане

В amxbans была такая фича, в скобках пишется ник указанный в списке админов в инфо о бане.
Очень нелохо было бы если вы ее реализовали.

В чем проблема: Я открываю банлист и вижу админа с неизвестным ником, админам выдается админка по стимидам, для конспирации от читеров.

Шаблоны

Здравствуйте снова. Недавно для своего сайта заимел https.

В шаблонах, конкретно в двух файлах:

  1. https://github.com/Craft-Soft/CS-Bans/blob/master/themes/default/views/layouts/main.php#L29
  2. https://github.com/Craft-Soft/CS-Bans/blob/master/protected/views/bans/view.php#L23
  3. https://github.com/Craft-Soft/CS-Bans/blob/master/protected/views/bans/view.php#L110
  4. https://github.com/Craft-Soft/CS-Bans/blob/master/protected/views/bans/view.php#L162

есть http-ссылки на гугл и яндекс. при наличии https - ссылки режутся.

из-за первых двух ссылок не работала кнопка удаления бана (пока не добавил поддержку https для яндекса и гугло апь).

На всякий случай выслал пул-веквест.

Добавление - удаление файла

В подробностях бана. Есть кнопка добавить файл.
Позже эту запись можно удалить. Но в include/files остаётся файл.
Думаю, было бы лучше при удалении записи удалять и файл.

Так же Steam игрока лучше не показывать всем. Можно только Админам.

Не инсталлируется!

Пишет что нет каталога и файла /site/install.html

Других ошибок нет. Ну могу проинсталлировать.
На том же сервере стоит Sourcebans, Amxbans так же инсталлируется в 3 клика.

В логах Апача:

[Mon Jul 06 11:43:29 2015] [error] [client 92.78.25.84] File does not exist: /var/www/skillzonly/bans/site

Сам создал папку /site/ - и снова Апач:

[Mon Jul 06 11:44:02 2015] [error] [client 92.78.25.84] File does not exist: /var/www/skillzonly/bans/site/install.html

Что не так с архивом или поясните пожалуйста в деталях что я упустил?

Нет игроков

Игроки играют на сервере.
Но при переходе на конкретный сервер пишет
Детали сервера «СЕРВЕР»
Нет игроков

ниже справа, под картинкой:
Игроки: 18/30

Ubuntu 14.04 64bit

1.3.3 version issues

  1. If you edit the ban, the reason you have already entered does not appear, but the "selfreason" text. https://i.imgur.com/IGemDT7.png

  2. If we have a list of bans (.../bans/index.html) and click on 2,3 or another page, after clicking on the ban, the window with details is not displayed (only the window appears on the first page).

  3. If we click on any server in the .../serverinfo/index.html tab, the pop-up window does not appear as in version 1.3.

Need new Updates for CS-Bans :))

Note: I posted pull request by mistake!

Hello,

I saw you update CS-Bans recently I have small but very useful requests for us I hope you can do that and update to 1.3.3 soon

I have some ideas that will make CS-Bans the best all around!

First one:

Make 'Add Admin' easier like the other systems. ( Check this to understand: https://prnt.sc/1z7rtrj )

How?

Edit the 'add amxmodx admin' page and add the possibility where we can add and assign flags to roles, so when I want to add someone VIP, I don't need to choose the "abcd" flags, I can just select the VIP role and it will automatically give those flags to him

Example:

Choose access level:

Register nick
VIP
SuperVIP
Admin
Second idea:

1- When I want to add BAN, I want the ability to add a ban on non-SteamID (valve) and not just people with Steam, because almost all players use non-steam.
2- When I want to add a BAN, I want the ability to add a ban only on SteamID or IP, or I can choose to add both SteamID + IP depending on the ban type option.

Third Idea: (Most Important)

If I add a VIP on nickname + password, when the VIP end I want the nickname to remain with Z flag (so it stays protected with a password), I don't want the nick to be completely removed from the database.... I think you guys didn't think about this thing.

This way CS-Bans will be TOP1 everywhere! :))

Thank you, please reply and let me know if you will do those requests because I will be happy and others too.

Перевод

Здраствуйте , хочу перевести данную систему , все файлы проверил. Не могу найти перевод данного текста который на скрине
default

CS:Bans 1.3 - Баги.

В разделе "Серверы", не отображает отображение картинок: game, vac, os.
Исправил в файле - Serverinfo.php строки 158-172 на:
$info['modimg'] = Yii::app()->urlManager->baseUrl ."/images/games/" .$game.".gif";
$info['vacimg'] = Yii::app()->urlManager->baseUrl ."/images/".($info['secure'] ? "vac.png" : "no_vac.png");
$info['osimg'] = Yii::app()->urlManager->baseUrl ."/images/os/".$info['os'].".png";
Картинки естественно начали отображатся.

Админцентр>Сервер>Настройки - Выдает вот такое:
Ошибка 500
htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument

Админцентр>Веб сайт>Логи
Вместо большинства действий, выдает - Другая
Например:
Действие Другая
Подробности Edited admins on server: Z.Gaming Pro>Classic Public (18+)

Админцентр>Веб сайт>Управление ссылками
Какую позицию я бы не выстовлял, все равно сортирует по мере добавления, последняя добавленная слева.

Главная / Банлист / Ник игрока - Подробности бана Ник игрока
Не загружает файлы, в настройках загрузка файлов разрешена как пользователям так и гостям, все равно не загружает.

Пока что все. Вопрос - Как исправить?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.