00.0 | INPUT Template Variables |
01.0 | OUTPUT Template Variables |
02.0 | Flags |
03.0 | Flags with Switches |
04.0 | Shell Output |
0A.0 | Plugin Installation |
00.0 INPUT Template Variables |
NOTE: Any string based variable in general, can be disabled via variable=null
Input variables are where the server grabs the template files from. Thats why we call them input variables, its where the server gets its file input. These variables are defined in the [Template] section of the .ini file. A list of these variables and a description about them can be found below.
Take this limited example: templateheader=# $pname ( $pver ) - $pcopy [$phome]\n# Last Updated: $pdate ( $ptime )\n\n serverheader=[Server]\n servernfo=server=$sname,$erid,$nusers,$nhusers,$nguests,$nhguests,$nrooms,$nhrooms\n serverfooter=psdata/footer.xml usersheader=[Users]\n usersnfo=user$inc=$uid,$uname,$urid,$urname,$uos,$urank,$ulogontime,$ulacttime,$ugag,$upin,$uhide,$uesp,$upri,$upgag\n usersfooter=psdata/footer.xml roomsheader=[Rooms]\n roomsnfo=room$inc=$rid,$rname,$roommaxocc,$rart,$nrusers,$rownuid\n roomsfooter=psdata/footer.xml templatefooter=null |
01.0 OUTPUT Template Variables |
NOTE: Any string based variable in general, can be disabled via variable=null
NOTE: These INI variables can only be set to /home/user/path/to/file. Output template variables are the path to what the actual statistics are written (or dumped) to, containing the real statistics ready for use on the internet or PHP/MySQL.
|
02.0 Flags |
Flags are a little more interesting! These are what you want to be replaced in your INPUT templates!
For example, if you have plugincopyright set to $pcopy, or @pcopy, then that's what textual pattern will be replaced within the INPUT templates.
|
03.0 Flags with Switches |
Flags are even crazier!
They work like normal flags, but with some added arguments. If you want it to say something when that value is switched 'off' or 'on', you can! These conditional outputs can hold up to 1 kB of space, enough for a HTML <IMG> tag! Think of it as variable=flag_pattern,off_condition,on_condition
|
04.0 Shell Output |
Last but certainly not least! There's Shell output commands, incase you want to directly upload server information to an MySQL database, you could use 'mysql' from the command line! Or the command line PHP command! Or POST it to a website script with 'wget' (a command line utility). One Shell command line for each necessary block (server/user/room - user/room are called each time per user or per room)
Example:
*shell=wget --post-data='$surl $sname' 'http://sub.domain.com/~user/script.php' *shell=php -r 'echo "The Server's Name is: $sname\n";' *shell=php script.php $surl $sname
|
0A.0 Plugin Installation |
Assuming the server is installed in the standard directory called "palace", perform the following steps:
|