Raised This Month: $7 Target: $400
 1% 

[CS:GO|WEB] CtBans Web Page


Post New Thread Reply   
 
Thread Tools Display Modes
Author
1DreaM
Member
Join Date: Jan 2018
Location: Slovakia
Plugin ID:
6017
Plugin Version:
1.5.1
Plugin Category:
Statistical
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 02-13-2018 , 09:06   [CS:GO|WEB] CtBans Web Page
    Reply With Quote #1

    CTBans Page.
    CtBans web page for databomb's ctbans plugin.


    Prewiev: https://overgame.eu/ctbans.php

    GitHub: Link

    Donation: Link


    Installation !
    1. Upload file to your FTP.

    2. Customize in ctbans_settings.php:

      PHP Code:
      <?php
      /**
      *
      *                                            -->        SETTINGS    <--
      *
      **/
      ///////////////////////////////////////////////////////////////
      //        DATABASE SETTING
      $server="";
      $username="";
      $password="";
      $database="";
      $table_prefix="";
      ///////////////////////////////////////////////////////////////
       
      //        RESULTS SETTING
      $results_per_page="15";
      ///////////////////////////////////////////////////////////////
      //        HEADER AND SUBHEADER SETTINGS
      //    Enable Sticky Header
      //    true = enable, false = disable
      $sticky_header true;
      //    Page Name
      $page_name "JailBreak | CTBanlist";
      //    Header Name
      $header "JailBreak | CT Bans";
      //    Header Color
      //    DEFAULT --> "#f1f1f1"
      $header_background_color "#f1f1f1";
      //    Header text color 
      //    DEFAULT --> "black" / "#000"
      $header_text1_color "black";
      //    Enable or Disable SubHeader
      //    true = enable, false = disable
      $enable_subheader true;
      //    SubHeader Text
      $subHeader "Ctbanlist for JailBreak server.";
      //    SubHeader Color
      //    DEFAULT --> "black" / "#000"
      $header_text2_color "black";
      ///////////////////////////////////////////////////////////////
      //        MENU SETTINGS
      //    Home size
      //    DEFAULT top --> 16px, side --> 16px;
      $menu_size_top "16px";
      $menu_size_side "16px";
      //    Home button name
      $menu_home_button_name "Home";
      //    Home button color
      //    DEFAULT --> "#3473c1"
      $menu_home_button_color "#3473c1";
      //        MENU BUTTONS SETTINGS
      //        RIGHT SIDE
      //    BTN 1 (default)
      $btn1_name "Web";
      $btn1_link "#";
      //    BTN 2
      //    Enable or Disable BTN 2
      //    true = enable, false = disable
      $btn2_enable true;
      $btn2_name "BanList";
      $btn2_link "#";
      //    BTN 3
      //    Enable or Disable BTN 3
      //    true = enable, false = disable
      $btn3_enable false;
      $btn3_name "BUTTON";
      $btn3_link "#";
      //        LEFT SIDE
      //    BTN 4 (default)
      $btn4_name "Fórum";
      $btn4_link "#";
      //    BTN 5
      //    Enable or Disable BTN 5
      //    true = enable, false = disable
      $btn5_enable true;
      $btn5_name "HLstatsX";
      $btn5_link "#";
      //    BTN 6
      //    Enable or Disable BTN 6
      //    true = enable, false = disable
      $btn6_enable false;
      $btn6_name "BUTTON";
      $btn6_link "#";
      ///////////////////////////////////////////////////////////////
      //        SIDEBAR SETTINGS
      //    Enable or Disable Sidebar
      //    true = enable, false = disable
      $sidebar_enable true;
      //    SID 1
      $sid1_name "EVIP";
      $sid1_link "#";
      //    DEFAULT --> "#4CAF50"
      $sid1_color "#4CAF50";
      //    DEFAULT --> "grade" Example: https://www.w3schools.com/icons/google_icons_action.asp
      $sid1_icon "grade";
      //    SID 2
      $sid2_name "Obchod";
      $sid2_link "#";
      //    DEFAULT --> "#2196F3"
      $sid2_color "#2196F3";
      //    DEFAULT --> "shopping_cart" Example: https://www.w3schools.com/icons/google_icons_action.asp
      $sid2_icon "shopping_cart";
      //    SID  LOGIN {default}
      //    Enable or Disable Sidebar Login
      //    true = enable, false = disable
      $sidebar_login true;
      //    DEFAULT --> "#f44336"
      $sid3_color "#f44336";
      //    DEFAULT --> "perm_identity" Example: https://www.w3schools.com/icons/google_icons_action.asp
      $sid3_icon "perm_identity";
      ///////////////////////////////////////////////////////////////
      //        SEARCH SETTINGS
      //    Enable or Disable Search
      //    true = enable, false = disable
      $search_enable true;
      //    Search button name
      //    DEFAULT --> "Search"
      $search_name "Search";
      //    Search button color
      //    DEFAULT --> "#3473c1"
      $search_color "#3473c1";
      ///////////////////////////////////////////////////////////////
      //        OTHER SETTINGS
      //    Indicate scroll on the top of the page
      //    true = enable, false = disable
      $scroll_indicator true;
      //    Page background color
      //    DEFAULT --> "#fcfcfc"
      $page_background_color "#fcfcfc";
      //    Bans table color
      //    DEFAULT --> "#2184ff"
      $table_color "#2184ff";
      //    Display alert when version is out of date
      //    true = enable, false = disable
      $display_alert true;
      //        END
      ///////////////////////////////////////////////////////////////

    ChangeLog:

    Code:
    1.0.0
    • Updated PHP.
    • Design remake.
    • + menu, search and favicon.
    • + colors.
    • ...(little changes)
    1.1.0
    • Repair of search.
    1.2.0
    • Design remake.
    • Added details.
    1.2.1
    • Fixed search.
    • Sql injection.
    1.3.0
    • + sidebar.
    • + scroll indicator.
    • Better footer.
    • + scroll to top.
    • New design.
    • New main menu.
    1.4.0
    • + link to admin, perp's steam profile.
    • + settings file.
    1.5.0
    • + version control.
    • + admin panel.
    • Search update.
    • + sk translation.
    1.5.1
    • Security fix.


    CONTACT
    1. Email: Email
    2. PM: Message



    Attached Files
    File Type: zip ctbans_1.5.1.zip (33.1 KB, 497 views)
    __________________
    GitHub: 1DreaM
    WEB: OverGame.eu

    Last edited by 1DreaM; 02-15-2019 at 07:45.
    1DreaM is offline
    Bara
    AlliedModders Donor
    Join Date: Apr 2012
    Location: Germany
    Old 02-13-2018 , 09:13   Re: [CS:GO|WEB] Web Interface for CtBans
    Reply With Quote #2

    1. Web Interface isn't a plugin.
    2. No download
    __________________
    Discord (Bara#5006) | My Plugins (GitHub)
    You like my work? Support is not a crime.
    Bara is offline
    paulo_crash
    AlliedModders Donor
    Join Date: May 2016
    Location: Brazil
    Old 04-09-2018 , 20:53   Re: [CS:GO|WEB] CtBans Web Page
    Reply With Quote #3

    This new version does not work the search option, search, could fix.

    I could put it back to show the Steam_ID of the banned player and the ADMIN that banned it.
    paulo_crash is offline
    1DreaM
    Member
    Join Date: Jan 2018
    Location: Slovakia
    Old 04-10-2018 , 00:58   Re: [CS:GO|WEB] CtBans Web Page
    Reply With Quote #4

    I will fix search. Thx.

    If you tap on the player, it will show details.
    __________________
    GitHub: 1DreaM
    WEB: OverGame.eu

    Last edited by 1DreaM; 04-10-2018 at 09:47.
    1DreaM is offline
    eryk172
    Member
    Join Date: Aug 2013
    Old 04-10-2018 , 09:39   Re: [CS:GO|WEB] CtBans Web Page
    Reply With Quote #5

    Thanks!

    http://nafarcie.pl/jbgo/banyct.php ,Works fine ;)
    eryk172 is offline
    paulo_crash
    AlliedModders Donor
    Join Date: May 2016
    Location: Brazil
    Old 04-11-2018 , 14:46   Re: [CS:GO|WEB] CtBans Web Page
    Reply With Quote #6

    I downloaded the GitHub version: https://github.com/1DreaM1/Ctbans-Web-Page

    Now you no longer want to connect to the database, you get the following error:
    Quote:
    Unable to connect to database server with specified parameters
    paulo_crash is offline
    1DreaM
    Member
    Join Date: Jan 2018
    Location: Slovakia
    Old 04-11-2018 , 15:36   Re: [CS:GO|WEB] CtBans Web Page
    Reply With Quote #7

    Quote:
    Originally Posted by paulo_crash View Post
    I downloaded the GitHub version: https://github.com/1DreaM1/Ctbans-Web-Page

    Now you no longer want to connect to the database, you get the following error:
    Github file is working well.

    PLS, check up your parameters in file -->

    PHP Code:
    $server=""//db host
    $username=""//db username
    $password=""//db password
    $database=""//db name 
    maybe you have done mistake.
    __________________
    GitHub: 1DreaM
    WEB: OverGame.eu

    Last edited by 1DreaM; 04-11-2018 at 15:41.
    1DreaM is offline
    j1gg
    Senior Member
    Join Date: Dec 2015
    Old 04-12-2018 , 07:39   Re: [CS:GO|WEB] CtBans Web Page
    Reply With Quote #8

    How can i add link in sourcebans like you added here http://sourcebans.gsp-europe.net/sou...dex.php?p=home ?
    __________________
    j1gg is offline
    1DreaM
    Member
    Join Date: Jan 2018
    Location: Slovakia
    Old 04-12-2018 , 07:53   Re: [CS:GO|WEB] CtBans Web Page
    Reply With Quote #9

    Quote:
    Originally Posted by j1gg View Post
    How can i add link in sourcebans like you added here http://sourcebans.gsp-europe.net/sou...dex.php?p=home ?
    includes/system-functions.php LINE: 137-196

    PHP Code:
    /**
     * Adds a tab to the page
     *
     * @param string $title The title of the tab
     * @param string $utl The link of the tab
     * @param boolean $active Is the tab active?
     * @return noreturn
     */

    function AddTab($title$url$desc$active=false)
    {
        global 
    $tabs;
        
    $tab_arr = array();
        
    $tab_arr[0] = "Home";
        
    $tab_arr[1] = "Servers";
        
    $tab_arr[2] = "&nbsp;BanList&nbsp;";
        
    $tab_arr[3] = "Mute/GaG";
        
    $tab_arr[4] = "CtBans";
        
    $tab_arr[5] = "Web";
        
    $tabs = array();
        
    $tabs['title'] = $title;
        
    $tabs['url'] = $url;
        
    $tabs['desc'] = $desc;
        if (
    $_GET['p'] == "default" && $title == $tab_arr[intval($GLOBALS['config']['config.defaultpage'])]) {
            
    $tabs['active'] = true;
            
    $GLOBALS['pagetitle'] = $title;
        } else {
            if (
    $_GET['p'] != "default" && substr($url12) == $_GET['p']) {
                
    $tabs['active'] = true;
                
    $GLOBALS['pagetitle'] = $title;
            } else {
                
    $tabs['active'] = false;
            }
        }
        include 
    TEMPLATES_PATH "/tab.php";
    }

    /**
     * Displays the pagetabs
     *
     * @return noreturn
     */
    function BuildPageTabs()
    {
        global 
    $userbank;
        
    AddTab("Home""index.php?p=home""This page shows an overview of your bans and servers.");
        
    AddTab("Servers""index.php?p=servers""All of your servers and their status can be viewed here");
        
    AddTab("Bans""index.php?p=banlist""All of the bans in the database can be viewed from here.");
        if (
    $GLOBALS['config']['config.enablecomms'] == "1") {
            
    AddTab("Mute/GaG""index.php?p=commslist""All of the communication bans (such as chat gags and voice mutes) in the database can be viewed from here.");
        }
        if (
    $GLOBALS['config']['config.enablesubmit']=="1") {
            
    AddTab("CtBans""https://overgame.eu/ctbans.php""List of CtBans");
        }
        if (
    $GLOBALS['config']['config.enableprotest']=="1") {
            
    AddTab("Web""https://overgame.eu""Our website.");
        }
        if (
    $userbank->is_admin()) {
            
    AddTab(" Admin Panel ""index.php?p=admin""This is the control panel for SourceBans where you can setup new admins, add new server, etc.");
        } 
    __________________
    GitHub: 1DreaM
    WEB: OverGame.eu

    Last edited by 1DreaM; 04-12-2018 at 07:56.
    1DreaM is offline
    eryk172
    Member
    Join Date: Aug 2013
    Old 04-12-2018 , 10:03   Re: [CS:GO|WEB] CtBans Web Page
    Reply With Quote #10

    Searching for me does not work, Why?
    http://nafarcie.pl/jbgo/banyct.php

    //EDIT: Sorry, all works.. I must update

    Last edited by eryk172; 04-12-2018 at 10:10.
    eryk172 is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 03:03.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode