PMSS:Creating basic modules

From Pulsed Media Wiki
Revision as of 16:09, 15 December 2011 by Nucode (talk | contribs) (Created page with "Basic module support is in very limited early stage. The idea is to have included files for certain portions of code. = Basics = These are simple include files, located in '''/e...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Basic module support is in very limited early stage. The idea is to have included files for certain portions of code.

Basics

These are simple include files, located in /etc/seedbox/modules/basic and named after which file they affect, usually quite near the end of that file.

addUser.php

File: /etc/seedbox/modules/basic/addUser.php Executed as the very last thing on the script, just before starting rTorrent.

Available variables

  • $argv array
  • $user array

$argv contains the command line arguments and $user contains chosen user settings, such as quota and rtorrent ram.