public function __construct() { if (@$_GET['site'] != 'default'&&front::get('admin_dir')) { $ftp=new nobftp(); $ftpconfig=config::get('website'); $ftp->connect($ftpconfig['ftpip'],$ftpconfig['ftpuser'],$ftpconfig['ftppwd'],$ftpconfig['ftpport']); $ftperror=$ftp->returnerror(); if ($ftperror) { exit($ftperror); } $ftp->nobget(ROOT.'/config/help.tmp.php',$ftpconfig['ftppath'].'/config/help.php'); $ftperror=$ftp->returnerror(); if ($ftperror) exit($ftperror); self::$path=ROOT.'/config/help.tmp.php'; self::$var=include self::$path; }else { self::$path=ROOT.'/config/help.php'; self::$var=include self::$path; } }