<?php
/*
Textfields Available Functions
%status% - Displays online or offline
%sid% - Displays Server ID currently used
%sport% - Displays Server Port
%platform% - Displays on wich Platform the Server runs
%servername% - Displays the Server Name (top channel name)
%serverversion% - Displays the Server Version
%maxclients% - Displays Slots Available
%clientsonline% - Displays amount of Clients online
%channelcount% - Displays count of channels
%packetloss% - Displays average Packetloss
%ping% - Diplays Average Ping
%timeHi% - Displays Time in Hour:Minute Format
%timeHis% - Displays Time in Hour:Minute:Second Format
%date% - Displays Date in day.month.Year Format
Usage of $config['groupcount']
To count one or multiple Groups add the line $config['groupcount']['some_random_groupname']
somewhere below, you can choose the name of the groupname freely, just be sure that you dont
use it twice in your config!
To count one or multiple Group you need to provide the Group IDs,
seperate them with a "," do not use any Spaces!
if you want to use the count function just place it in $group$ sign
down in the textfield section to display the amount of Users connected
to this Server in this certain Group!
CRONJOB WITH LINUX
* * * * * curl http://<your-domain>/<path_to_site>/generator.php >/dev/null 2>&1
if you dont have curl installed:
* * * * * /usr/bin/php5 <path_to_your_site>/generator.php >/dev/null 2>&1
IMPORTANT!
CURRENTLY SUPPORTED FORMAT FOR BACKGROUND AND OUPUT IMAGE IS .PNG
You have to set the Font Path always as absolute Path!
TROUBLESHOOTING:
If you do not use curl then you have to set absolute Paths for backgroundimage / ouputfile
TEXTFIEL PRESET COPY AND PASTE:
$config['textfield'][] = array(
'text' => '', //Text to Display
'xpos' => '', //X Position
'ypos' => '', //Y Position
'fontsize' => '', //Font Size in Pixel
'fontfile' => 'font/arial.ttf', //Path to Font File MUST BE ABSOLUTE PATH!
'red' => '', //Red Color
'green' => '', //Green Color
'blue' => '', //Blue Color
);
*/
$config = array('textfield' => array());
/*
** Teamspeak Config
*/
$config['teamspeak']['ip'] = '127.0.0.1'; //Teamspeak Connection IP
$config['teamspeak']['queryport'] = '10011'; //Teamspeak Query Port
$config['teamspeak']['serverport'] = '9987'; //Teamspeak Connection Port
$config['teamspeak']['loginname'] = 'serveradmin'; //Teamspeak Query Login Name
$config['teamspeak']['loginpass'] = ''; //Teamspeak Query Password
$config['teamspeak']['displayname'] = 'Banner%20Generator'; //Teamspeak Display Name, Replace Spaces with %20 !
$config['teamspeak']['backgroundimage'] = '<path>/bannergen/banner-layout.png'; //Background Image to use
$config['teamspeak']['outputfile'] = '<path>/banner.png'; //Output File
/*
** Group Counter
*/
$config['groupcount']['serveradmin'] = '2,6,12';
/*
** Textfields
*/
$config['textfield'][] = array(
'text' => 'Date:',
'xpos' => '150',
'ypos' => '47',
'fontsize' => '24',
'fontfile' => '<path_to_font_file>/font/arial.ttf',
'red' => '236',
'green' => '240',
'blue' => '241',
);
$config['textfield'][] = array(
'text' => '%date%',
'xpos' => '190',
'ypos' => '87',
'fontsize' => '24',
'fontfile' => '<path_to_font_file>/font/arial.ttf',
'red' => '52',
'green' => '73',
'blue' => '94',
);
$config['textfield'][] = array(
'text' => 'Time:',
'xpos' => '600',
'ypos' => '47',
'fontsize' => '24',
'fontfile' => '<path_to_font_file>/font/arial.ttf',
'red' => '236',
'green' => '240',
'blue' => '241',
);
$config['textfield'][] = array(
'text' => '%timeHi%',
'xpos' => '680',
'ypos' => '87',
'fontsize' => '24',
'fontfile' => '<path_to_font_file>/font/arial.ttf',
'red' => '52',
'green' => '73',
'blue' => '94',
);
$config['textfield'][] = array(
'text' => 'Admins online:',
'xpos' => '150',
'ypos' => '147',
'fontsize' => '24',
'fontfile' => '<path_to_font_file>/font/arial.ttf',
'red' => '236',
'green' => '240',
'blue' => '241',
);
$config['textfield'][] = array(
'text' => '$serveradmin$',
'xpos' => '250',
'ypos' => '187',
'fontsize' => '24',
'fontfile' => '<path_to_font_file>/font/arial.ttf',
'red' => '52',
'green' => '73',
'blue' => '94',
);
$config['textfield'][] = array(
'text' => 'Slots:',
'xpos' => '600',
'ypos' => '147',
'fontsize' => '24',
'fontfile' => '<path_to_font_file>/font/arial.ttf',
'red' => '236',
'green' => '240',
'blue' => '241',
);
$config['textfield'][] = array(
'text' => '%clientsonline%/%maxclients%',
'xpos' => '670',
'ypos' => '187',
'fontsize' => '24',
'fontfile' => '<path_to_font_file>/font/arial.ttf',
'red' => '52',
'green' => '73',
'blue' => '94',
);
$config['textfield'][] = array(
'text' => 'Platform:',
'xpos' => '600',
'ypos' => '247',
'fontsize' => '24',
'fontfile' => '<path_to_font_file>/font/arial.ttf',
'red' => '236',
'green' => '240',
'blue' => '241',
);
$config['textfield'][] = array(
'text' => '%platform%',
'xpos' => '670',
'ypos' => '287',
'fontsize' => '24',
'fontfile' => '<path_to_font_file>/font/arial.ttf',
'red' => '52',
'green' => '73',
'blue' => '94',
);
?>
* * * * * /usr/bin/php5 <path_to_your_site>/generator.php >/dev/null 2>&1
Fill the ** Teamspeak Config section with your info.
Add this to your crontab. Command is "crontab -e"
Code:* * * * * /usr/bin/php5 <path_to_your_site>/generator.php >/dev/null 2>&1
Visit http://yourip/bannergen/preview.php
No need for Cronjob now, Updated my Ressource yesterday...
https://www.virustotal.com/de/file/...fb06d52e60b8f4693fead6c5/analysis/1455139273/
https://multivitamin.wtf/dl/5
I tried getting mine to work but for some reason i was just seeing a blank page so I checked debug.php and i got an error that the cached wasn't writable anyway to fix this?actually its pretty easy, first of all you call a PHP Script not a .png File, then i only check the last edited time of the picture with this function http://php.net/manual/en/function.filemtime.php. If its older than 1 Minute then i just let the Bot Connect and get Some new Data which will get written to the file again (which is called 'cached') and then i will output the file and set with php the headers so Teamspeak detects it as a valid PNG. If its not older than 60 Seconds then I let the Script just load the contents of the file 'cached' and set the headers to png aswell
https://multivitamin.wtf/BannerGenerator1_2.tar.bz2What was the direct download link again? The parent link is 404
Now that one is 404 too