Simple & Clean Server Creator [Web]

maribro124

Restricted
Mar 6, 2016
38
7
43
Anti Flood Script :)

Code:
<?php
//
// Description : Anti Flood
// Version      : 0.1
// Coder       : HasanAtilan
// Url          : http://tsbakkali.net
//
if (!isset($_SESSION)) {
    session_start();
}
// anti flood protection
if($_SESSION['last_session_request'] > time() - 2){
    // users will be redirected to this page if it makes requests faster than 2 seconds
    header("location: http://tsbakkali.net/");
    exit;
}
$_SESSION['last_session_request'] = time();
?>
 

ImCan

Member
Nov 7, 2016
44
2
43
Anti Flood Script :)

Code:
<?php
//
// Description : Anti Flood
// Version      : 0.1
// Coder       : HasanAtilan
// Url          : http://tsbakkali.net
//
if (!isset($_SESSION)) {
    session_start();
}
// anti flood protection
if($_SESSION['last_session_request'] > time() - 2){
    // users will be redirected to this page if it makes requests faster than 2 seconds
    header("location: http://tsbakkali.net/");
    exit;
}
$_SESSION['last_session_request'] = time();
?>
This is not your own script... Why did you replace author and homepage?
 

apexlele

Member
May 2, 2016
18
11
35
Im having a problem i saw it in the Error.log but i dont know how to fix it
Code:
PHP Fatal error:  Uncaught TeamSpeak3_Transport_Exception: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/libraries/TeamSpeak3/Transport/TCP.php:54\nStack trace:\n#0 /var/www/html/libraries/TeamSpeak3/Transport/TCP.php(108): TeamSpeak3_Transport_TCP->connect()\n#1 /var/www/html/libraries/TeamSpeak3/Adapter/ServerQuery.php(76): TeamSpeak3_Transport_TCP->readLine()\n#2 /var/www/html/libraries/TeamSpeak3/Adapter/Abstract.php(60): TeamSpeak3_Adapter_ServerQuery->syn()\n#3 /var/www/html/libraries/TeamSpeak3/TeamSpeak3.php(320): TeamSpeak3_Adapter_Abstract->__construct(Array)\n#4 /var/www/html/index.php(8): TeamSpeak3::factory(Object(TeamSpeak3_Helper_Uri))\n#5 {main}\n  thrown in /var/www/html/libraries/TeamSpeak3/Transport/TCP.php on line 54
 

osiann

Member
Sep 23, 2015
3
0
33
Fatal error: Uncaught Error: Call to undefined function utf8_encode() in /var/www/html/libraries/TeamSpeak3/Helper/String.php:475 Stack trace: #0 /var/www/html/libraries/TeamSpeak3/Adapter/ServerQuery.php(205): TeamSpeak3_Helper_String->toUtf8() #1 /var/www/html/libraries/TeamSpeak3/Node/Abstract.php(85): TeamSpeak3_Adapter_ServerQuery->prepare('login', Array) #2 /var/www/html/libraries/TeamSpeak3/Node/Abstract.php(97): TeamSpeak3_Node_Abstract->prepare('login', Array) #3 /var/www/html/libraries/TeamSpeak3/Node/Host.php(839): TeamSpeak3_Node_Abstract->execute('login', Array) #4 /var/www/html/libraries/TeamSpeak3/TeamSpeak3.php(328): TeamSpeak3_Node_Host->login(Object(TeamSpeak3_Helper_String), Object(TeamSpeak3_Helper_String)) #5 /var/www/html/index.php(10): TeamSpeak3::factory(Object(TeamSpeak3_Helper_Uri)) #6 {main} thrown in /var/www/html/libraries/TeamSpeak3/Helper/String.php on line 475



please help
 

Ch4ch4rR4t0

Active Member
Aug 19, 2016
77
7
83
would you like to provide some more information about your issue?
CK59Hqv.png
 

BIOS

Knowledge Seeker
VIP
Oct 10, 2015
447
848
208
i have try´d remove client rights from serveradmin

Code:
               $new_ts3 = $ts3->serverCreate(array(
               "virtualserver_name" => $servername,
               "virtualserver_maxclients" => $slot,
               "virtualserver_port" => $port,
               "virtualserver_name_phonetic" => $realTime,
               "virtualserver_hostbutton_tooltip" => "edit",
               "virtualserver_hostbutton_url" => "edit",
               "virtualserver_hostbutton_gfx_url" => "edit",
               "virtualserver_hostbanner_url" => "edit",
               "virtualserver_hostbanner_gfx_url" => "edit",
               "virtualserver_modify_hostmessage" => "0",
               "virtualserver_modify_hostbanner" => "0",
               "virtualserver_modify_hostbutton" => "0",
               "virtualserver_modify_port" => "0",
               "virtualserver_modify_autostart" => "0",
               "virtualserver_modify_log_settings" => "0",
               "virtualserver_modify_autostart" => "0",
               "virtualserver_modify_ft_settings" => "0",
               "virtualserver_modify_ft_quotas" => "0",
               "virtualserver_modify_maxclients" => "0",
               "virtualserver_modify_slots" => "0",
               "virtualserver_modify_autostart" => "0",
               "virtualserver_modify_log_settings" => "0",
he dont work any ideas?
 
Last edited:
Top