Server creation script

Discussion in 'Web scripts' started by Ridicc, Jan 1, 2017.

  1. Ridicc

    Ridicc Super Mod

    Just made this because I was bored and ye idk.
    You need to register to view spoilers!
    You definitely shouldn't use it without making any changes. It's meant to give you an idea on how to code such stuff and it's highly recommended to add some kind of captcha before using it on a public website since users could create unlimited servers otherwise. You should also put the config file outside of your website root since it's insecure to keep it where it is right now.

    https://i.imgur.com/b3Cn9ng.png https://i.imgur.com/ntevPrK.png
     
    thedix, 0x09, szmekk and 1 other person like this.
  2. Heyck22

    Heyck22 New Member

    Is it possible to create one server by Ip?
     
    Last edited: Jan 3, 2017
  3. Ridicc

    Ridicc Super Mod

    What? Do you mean allowing the user to switch between multiple IPs while he creates the server?
     
  4. Jamie

    Jamie New Member

    I think he means to limit servers being created by ones IP address.
     
    Ridicc likes this.
  5. Ridicc

    Ridicc Super Mod

    lmao I'm retarded.

    Take a look at the following script to see an example of getting the users IP. You can simple copy the auth stuff from that script.
     
  6. Heyck22

    Heyck22 New Member

    I do not know you can not explain more in detail?
     
  7. Pain

    Pain VIP

    can i use my domain in place of the ip ?
     
  8. Cepkin

    Cepkin Member

    Maks. teamspeak3 create limited options add please ?
     
  9. Cepkin

    Cepkin Member

  10. Heyck22

    Heyck22 New Member

    @Ridicc I did not find with your script
     
  11. ZorialCorn28

    ZorialCorn28 New Member

    Hello, Why do I click to create a server side does white? I all configured
     
  12. LukasDedic

    LukasDedic Member

    @ZorialCorn28 you add captcha?
    Because white page is bad config
     
  13. ZorialCorn28

    ZorialCorn28 New Member

  14. Ridicc

    Ridicc Super Mod

    Please post your config file.
     
  15. ZorialCorn28

    ZorialCorn28 New Member

    Code:
    <?php
    return (object) array(
      'appInfo' => (object) array(
        'pageTitle' => 'Kreator serwerow TS3',
        'pageHeader' => 'Kreator serwerow TS3',
        'pageSubHeader' => 'Stworz swoj serwer TeamSpeak3 za darmo!'
      ),
      'appSettings' => (object) array(
        'maxSlots' => 150
      ),
      'teamspeakInfo' => (object) array(
        'host' => 'hostserv.pl',
        'username' => 'serveradmin',
        'password' => '12345',
        'portQuery' => '10011'
      )
    );
    ?>
     
  16. Cepkin

    Cepkin Member

    @Ridicc help please :) ?
     
  17. Ridicc

    Ridicc Super Mod

    I don't really get what you want I'm sorry.
     
  18. Cepkin

    Cepkin Member

    Could not add mi ?
     
  19. ZorialCorn28

    ZorialCorn28 New Member

    @Ridicc
    Config.php ? This is the code
    Code:
    <?php
    return (object) array(
      'appInfo' => (object) array(
        'pageTitle' => 'Kreator serwerow TS3',
        'pageHeader' => 'Kreator serwerow TS3',
        'pageSubHeader' => 'Stworz swoj serwer TeamSpeak3 za darmo!'
      ),
      'appSettings' => (object) array(
        'maxSlots' => 150
      ),
      'teamspeakInfo' => (object) array(
        'host' => 'hostserv.pl',
        'username' => 'serveradmin',
        'password' => '12345',
        'portQuery' => '10011'
      )
    );
    ?>
     
  20. what do you need?
     

Share This Page