AutoWhitelist

Reloads Whitelist Automatically every X seconds. Now with MySql Integration.

Total Downloads: 185 - First Release: Jun 9, 2015 - Last Update: Nov 16, 2015

0/5, 0 likes
  1. SweetLouHD submitted a new resource:

    AutoWhitelist - Reloads Whitelist Automatically every X seconds

    Read more about this resource...
     
  2. SweetLouHD updated AutoWhitelist with a new update entry:

    MySql Integration!!!

     
  3. I am new at sql but MySqlDatabase Format: is there a sql file I can use to upload to create the table?
     
    Last edited by a moderator: Jun 29, 2015
  4. Sorry for the delayed response, I did not get an alert for some reason. Check out the FAQ for your answer
     
  5. SweetLouHD updated AutoWhitelist with a new update entry:

    Permissions, Option dependencies

     
  6. Hello im trying to create a Website form that connects to the mysql database, so all the player need to do is type his steam64ID submit and then it will auto add to whitelist...
    can anyone help me with that ?
     
  7. Yes that would theoretically be possible with php. You can update the MySQL table you are using with new data.
    I suggest you take a look at SQL commands and mazbe you even find a project on GitHub.

    When you got the list you want you can update your game server via FTP with this script
    PHP:
    <?php
    // FTP access parameters:
    $host 'SERVERIP';
    $usr 'USERNAME';
    $pwd 'PASSWORD';

    // file to upload:
    $local_file 'LOCALFILEPATH';
    $ftp_path 'FTPFILEPATCH';

    // connect to FTP server (port 21)
    $conn_id ftp_connect($host21) or die ("Cannot connect to host");

    // send access parameters
    ftp_login($conn_id$usr$pwd) or die("Cannot login");

    // turn on passive mode transfers (some servers need this)
    ftp_pasv ($conn_idtrue);

    // perform file upload
    $upload ftp_put($conn_id$ftp_path$local_fileFTP_ASCII);

    // check upload status:
    print (!$upload) ? 'Cannot upload' 'Upload complete';
    print 
    "\n";

    /*
    ** Chmod the file (just as example)
    */

    // If you are using PHP4 then you need to use this code:
    // (because the "ftp_chmod" command is just available in PHP5+)
    if (!function_exists('ftp_chmod')) {
       function 
    ftp_chmod($ftp_stream$mode$filename){
            return 
    ftp_site($ftp_streamsprintf('CHMOD %o %s'$mode$filename));
       }
    }

    // try to chmod the new file to 666 (writeable)
    if (ftp_chmod($conn_id0666$ftp_path) !== false) {
        print 
    $ftp_path " chmoded successfully to 666\n";
    } else {
        print 
    "could not chmod $file\n";
    }

    // close the FTP stream
    ftp_close($conn_id);
    ?>
     
    Last edited by a moderator: Oct 13, 2015
  8. What do you have so far?
     
  9. SweetLouHD updated AutoWhitelist with a new update entry:

    2.2.0


    [DOUBLEPOST=1447674161][/DOUBLEPOST]
    Check the FAQ Section for this plugin for example code I uploaded.