Raised This Month: $12 Target: $400
 3% 

Release SourceBans++ (v1.6.4) [Updated: 2021-10-06]


Post New Thread Closed Thread   
 
Thread Tools Display Modes
leeter
Member
Join Date: Jun 2015
Old 04-30-2017 , 07:40   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1031

Quote:
Originally Posted by leeter View Post
I still got 1 Error, i have used the latest version of PRs.
I fixed it. All good

I just needed to change the ServerID in the sourcemod.cfg from -1 to 1.

Last edited by leeter; 04-30-2017 at 09:48.
leeter is offline
JackHammer20
Member
Join Date: Dec 2015
Old 04-30-2017 , 15:06   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1032

-EDIT- Resolved, Chrome wasn't redirected to https

Last edited by JackHammer20; 04-30-2017 at 15:17.
JackHammer20 is offline
Veksi8
Junior Member
Join Date: Apr 2017
Old 05-02-2017 , 01:31   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1033

Anyone know solution for this error: https://gyazo.com/8ec88d24aed23594d7a8897661a8fa91
sbpp_sleuth looks like this: https://pastebin.com/XHb0QLUd
Veksi8 is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 05-02-2017 , 01:51   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1034

Quote:
Originally Posted by DaRk56 View Post
Delete old version (All files ! Includes /plugins/scripting)
No it doesn't. Unless you're actively compiling plugins in the same SourceMod folder that you use for your server (which I find silly, I have 4 different SourceMod directories on the go where I compile and test things) you shouldn't be uploading scripting files to your server anyway. The server itself doesn't read the .SP/.INC files, it reads the compiled .SMX files.

tl;dr: Updating a .INC or .SP file won't fix shit unless you're compiling your own local copy, basically.

If you compile your own copies, then yes, update the .SP and .INC files, obviously. This way when you compile your own copy, you'll know you've got up-to-date .SP/.INC files for SB++.

If not, don't bother updating the .SP/.INC files, only update the compiled plugin. Since you aren't compiling your own copy, you don't need the source code/INC file(s)

Sorry if I've confused anyone, not my intent. I was just a tad confused by people advising to update .INC files to fix compiled plugin issues (because that makes no fuckin' sense)

Last edited by 404UserNotFound; 05-02-2017 at 01:53.
404UserNotFound is offline
LeetDonkey
Member
Join Date: Dec 2014
Old 05-02-2017 , 02:48   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1035

The latest security addition that salts the passwords breaks the donation addon - it is impossible to login on the admin page.
I've tried looking into it, but I have absolutely no idea how to fix it.
I was hoping that one of the sourcebans developers with some insight into the added security mechanisms would be able to fix the donations addon:
https://github.com/nineteeneleven/Donations-Control

I don't know if it's an easy fix, but I figured that there's no harm in asking.

Thanks.
LeetDonkey is offline
DaRk56
Senior Member
Join Date: Jul 2009
Location: France
Old 05-02-2017 , 11:45   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1036

Quote:
Originally Posted by LeetDonkey View Post
The latest security addition that salts the passwords breaks the donation addon - it is impossible to login on the admin page.
I've tried looking into it, but I have absolutely no idea how to fix it.
I was hoping that one of the sourcebans developers with some insight into the added security mechanisms would be able to fix the donations addon:
https://github.com/nineteeneleven/Donations-Control

I don't know if it's an easy fix, but I figured that there's no harm in asking.

Thanks.
I have the same problem. No idea also can be the part "Salt"

- "Config"
PHP Code:
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
define('SB_DB'true); //ONLY SET TRUE IF SOURCEBANS IS ON A DIFFERENT MYSQL SERVER
define('SB_SV_HOST''localhost');      //set MySQL host ONLY NEEDED IF SOURCEBANS IS ON A DIFFERENT MYSQL SERVER
define('SB_SV_USER''sourcebans');         //MySQL username ONLY NEEDED IF SOURCEBANS IS ON A DIFFERENT MYSQL SERVER
define('SB_SV_PASS''xxxXXxx');       //MySQL password ONLY NEEDED IF SOURCEBANS IS ON A DIFFERENT MYSQL SERVER
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
define('SOURCEBANS_DB''sourcebans'); // sourcebans database, this is needed.
define('SB_PREFIX''sb'); //Sourcebans database prefix. Only change this value if you changed your database prefix when setting up SourceBans.
define('SB_SALT''SourceBans'); //dont change this unless you changed your salt in sourcebans (if you dont know what salt is, you didnt change it)
define('SB_ADMINS''Leader'); //name of admin group in sourcebans which has access to the donor panel
/////////////////////////////////////////////////////////////////////////////////////////// 
"Index"
PHP Code:
<?php
if (isset($_POST['loginSubmit'])) {
    
define('NineteenEleven'TRUE);
    require_once 
'../includes/config.php';
    require_once 
ABSDIR 'includes/LoggerClass.php';
    
$log = new log;
    
$user_name $_POST['user_name'];
    
$password sha1(sha1(SB_SALT $_POST['password']));

    try {
        
$db = new PDO('mysql:host=' DB_HOST ';dbname=' SOURCEBANS_DB ';charset=utf8mb4'SB_USERSB_PASS);
        
$db->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
        
$db->setAttribute(PDO::ATTR_EMULATE_PREPARESfalse);
    } catch (
Exception $e) {
        die(
'Unable to open connection to MySQL server.');
    }

    try {
        
$stmt $db->prepare("SELECT * FROM " SB_PREFIX "_admins WHERE user=? and password=? and srv_group = '" SB_ADMINS "';");
        
$stmt->execute(array($user_name$password));
        
$row $stmt->fetchAll(PDO::FETCH_ASSOC);
    } catch (
Exception $e) {
        echo 
"<h3>Something went wrong with our system.</h3>";
        
$log->logError($ex->getMessage(), $ex->getFile(), $ex->getLine());
    }
    
$count count($row);
    if (
$count === 1) {
        
$email $row[0]['email'];
        
session_start();
        
$_SESSION['username'] = $user_name;
        
$_SESSION['email'] = $email;
        
$_SESSION['table'] = false;
        
ini_set('default_socket_timeout'10);
        
$json = @json_decode(@file_get_contents('http://1911.expert/dc-version/version.php'));

        if (!empty(
$json) && VERSION_NEW != $json->version) {

            
$_SESSION['message'] = "<div class='alert alert-warning' role='alert'>There is an update available. ";

            if (isset(
$json->msg)) {
                
$_SESSION['message'] .= $json->msg;
            }
            
$_SESSION['message'] .= "</div>";
        }
        print(
"<center><h1 class = 'success'> Welcome back $user_name </h1></center>");
        
$log->logAction("$user_name logged in from " $_SERVER['REMOTE_ADDR']);
        print(
"<script type = 'text/javascript'> setTimeout('reload()', 1000)
                function reload(){
                window.location = 'show_donations.php'
                }</script>"
);
        exit();
    } else {
        print 
"<center><h1 class='error'>Wrong Username or Password</h1></center>";
        
$log->logAction("Failed login attempt for user name: $user_name from " $_SERVER['REMOTE_ADDR']);
    }
}
?>
<div id='login'>
    <table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
        <tr>
        <form id="loginSubmit" method="POST" action="index.php">
            <td>
                <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
                    <tr>
                        <td colspan="3"><strong>Admin Login </strong></td>
                    </tr>
                    <tr>
                        <td width="78">Username</td>
                        <td width="6">:</td>
                        <td width="294"><input name="user_name" type="text" id="user_name"></td>
                    </tr>
                    <tr>
                        <td>Password</td>
                        <td>:</td>
                        <td><input name="password" type="password" id="password"></td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td><input type="submit" name="loginSubmit" value="Login" form='loginSubmit' /><input type='button' id='hideLogin' value='Cancel' /></td>

                    </tr>
                </table>
            </td>
        </form>
        </tr>
    </table>
</div>
DaRk56 is offline
chc
Junior Member
Join Date: Jun 2015
Old 05-04-2017 , 02:09   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1037

Quote:
L 05/04/2017 - 03:19:54: [SM] Exception reported: Fatal error creating dynamic native!
L 05/04/2017 - 03:19:54: [SM] Blaming: sourcebans.smx
L 05/04/2017 - 03:19:54: [SM] Call stack trace:
L 05/04/2017 - 03:19:54: [SM] [0] CreateNative
L 05/04/2017 - 03:19:54: [SM] [1] Line 148, sourcebans.sp::AskPluginLoad2
L 05/04/2017 - 03:19:54: [SM] Failed to load plugin "sourcebans.smx": unexpected error 23 in AskPluginLoad callback.
Help?? Happens on 1 server but not the other

Last edited by chc; 05-04-2017 at 04:22.
chc is offline
Groruk
AlliedModders Donor
Join Date: Jul 2016
Old 05-04-2017 , 11:36   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1038

Quote:
Originally Posted by chc View Post
Help?? Happens on 1 server but not the other
Check that you have these plugins disabled:
  • SourceSleuth.smx
  • sb_admcfg.smx
  • sbchecker.smx
  • sourcebans.smx
  • sourcecomms.smx

Those are the old plugins from version 1.5

Last edited by Groruk; 05-04-2017 at 11:38.
Groruk is offline
Dakier
New Member
Join Date: Apr 2017
Old 05-04-2017 , 15:05   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1039

Hi. Can somebody help me? I dont know how to fix this

Quote:
Error: the XML response that was returned from the server is invalid. Received:
Fatal error: mysqli error: [1048: Column 'host' cannot be null] in EXECUTE("INSERT INTO sb_log(type,title,message, function, query, aid, host, created) VALUES ('e','PHP Error','[256] mysqli error: [1048: Column \'host\' cannot be null] in EXECUTE(\"INSERT INTO sb_log(type,title,message, function, query, aid, host, created)\n VALUES (\'m\',\'Server Added\',\'Server (185.38.0.123:2799 has been added\',\'/home/jonnekah/public_html/sourcebans/includes/xajax.inc.php - 1095
/home/jonnekah/public_html/sourcebans/includes/xajax.inc.php - 744
/home/jonnekah/public_html/sourcebans/index.php - 33
\',\'N/A\',\'1\',NULL,1493924506)\")\n
\nFatal error on line 79 in file /home/jonnekah/public_html/sourcebans/includes/adodb/adodb-errorhandler.inc.php','/home/jonnekah/public_html/sourcebans/includes/adodb/adodb-errorhandler.inc.php - 79
/home/jonnekah/public_html/sourcebans/includes/adodb/adodb.inc.php - 1250
/home/jonnekah/public_html/sourcebans/includes/adodb/adodb.inc.php - 1190
/home/jon in /home/jonnekah/public_html/sourcebans/includes/adodb/adodb-errorhandler.inc.php on line 79
You have whitespace in your response.

Last edited by Dakier; 05-04-2017 at 15:06. Reason: Fixed thinks.
Dakier is offline
BeNq!
Senior Member
Join Date: Mar 2009
Old 05-05-2017 , 09:55   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1040

How to fix?

BeNq! is offline
Closed Thread


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 08:43.


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