Method: Miko::PHPBB#initialize

Defined in:
lib/scripts/phpbb.rb

#initialize(path) ⇒ PHPBB

Returns a new instance of PHPBB.



5
6
7
8
9
10
11
12
# File 'lib/scripts/phpbb.rb', line 5

def initialize( path )
  super( path )
  
  ## Load ver 
  @version    = File.read( path )[/.*version.*=.*/][/([\d.]+)/]
  @acct_home   = path.gsub("styles/prosilver/template/template.cfg", "")
  @script      = "phpBB"
end