Closed dpslwk closed 8 years ago
Adds admin panel for Meta editing and moves everything out of hms.php
Needs PR #127 merging first then pull in master and add quick changes to the 0.4.2 db update script in add the following as a commit
$this->__logMessage('new entries into `hms_meta` table.'); // load hms settings file $hmsSettings = '../../../app/Config/hms.phh'; if (file_exists(makeAbsolutePath($hmsSettings))) { include ($hmsSettings); } $query = "INSERT INTO `hms_meta` (`name`, `value`) VALUES ('label_printer_ip', $config['hms_label_printer_ip']), ('so_accountNumber', $config['hms_so_accountNumber']), ('so_sortCode', $config['hms_so_sortCode']), ('so_accountName', $config['hms_so_accountName']), ('members_guide_html', 'http://guide.nottinghack.org.uk'), ('members_guide_pdf', 'http://readthedocs.org/projects/nottingham-hackspace-members-guide/downloads/pdf/latest/'), ('rules_html', 'http://rules.nottinghack.org.uk'), ('access_street_door', $config['hms_access_street_door']), ('access_inner_door', $config['hms_access_inner_door']), ('access_wifi_ssid', $config['hms_access_wifi_ssid']), ('access_wifi_password', $config['hms_'access_wifi_password'), ('membership_email', $config['hms_membership_email']) ; "; $this->__runQuery($conn, $query);
DB script updated now included
can be merged when ready
Adds admin panel for Meta editing and moves everything out of hms.php
Needs PR #127 merging first then pull in master and add quick changes to the 0.4.2 db update script in add the following as a commit