diff --git a/.gitignore b/.gitignore index 3d18da2..ecf7f72 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ data/ *.db .worktrees/ .superpowers/ +.playwright-cli/ diff --git a/public/index.html b/public/index.html index 736b7fe..1f97d14 100644 --- a/public/index.html +++ b/public/index.html @@ -1 +1,337 @@ -INS + + + + + +Infinity Networks Security | Wi-Fi & Network Solutions in Malaysia + + + + + +
+
+ Infinity Networks Security + +
+
+ +
+
+
+
+

Wireless & network solutions

+

We bridge the gap between business and technology

+

Reliable, branded guest Wi-Fi and network infrastructure for hotels, hospitals, schools and restaurants, designed, installed and supported by our own engineers.

+
    +
  • Trusted by 200+ hotels since 2012
  • +
  • Clients in more than 5 countries
  • +
  • 24/7 support hotline
  • +
  • Represents more than 15 principal vendors
  • +
+
+ +
+

Talk to our team

+

Tell us about your site and our team will get back to you.

+
+
+ + +
+
+ + +
+ + + + +

+

We only use your details to respond to this enquiry.

+
+
+
+
+ +
+
+
2012Established
+
200+Hotels served
+
100+F&B clients
+
24/7Support
+
+
+ +
+
+
+

Solutions for wireless operations

+

Built for the industries we know best

+

Every deployment includes bandwidth management, multi-WAN load balancing and burstable bandwidth, tuned to how your venue actually runs.

+
+
+
+

Hospitality

+

Guest Wi-Fi that keeps travellers coming back, plus tools for operations tracking and your customer database.

+
  • Load balancing for up to 4 WAN lines
  • Scheduled & burstable bandwidth
  • Voucher printing
+
+
+

Healthcare

+

Dependable connectivity for operations, scheduling, stock and patient-facing Wi-Fi.

+
  • User registration portal
  • Bandwidth management
  • 4-WAN load balancer
+
+
+

Education

+

Campus Wi-Fi for data recording, staff intranet and online teaching and learning.

+
  • LDAP integration
  • Burstable bandwidth
  • 4-WAN load balancer
+
+
+

Food & Beverage

+

Diner Wi-Fi that markets for you, with stock control, staff schedules and POS connectivity.

+
  • Advertisement portal
  • Centralised VPN across outlets
  • 2-WAN load balancer
+
+
+
+
+ +
+
+
+

Guest Wi-Fi platform

+

Beautiful, branded and seamless

+

Give customers a login experience that carries your brand, at any of your venues, managed from one cloud platform.

+
+
    +
  • Tiered bandwidth. Offer free access or charge by time, data or speed tier.
  • +
  • Content filtering. Block harmful URLs on the Internet Watch Foundation list, with category reports.
  • +
  • Multilingual login. End-user login available in 24 languages.
  • +
+
+
+ +
+
+
+

Our own product

+

OneBox Internet Gateway

+

One gateway for wireless internet across your whole building, with authentication, bandwidth control, monitoring and accounting built in.

+ Ask about OneBox +
+
    +
  • Zero upfront hardware investment
  • +
  • Unlimited user licences
  • +
  • Multiple internet lines with load balancing
  • +
  • Interfaces with major hotel billing systems
  • +
  • 24/7 live support
  • +
+
+
+ +
+
+
+

Certified IT services

+

From design to day-to-day support

+

We design, install, configure and support your network, and keep listening after go-live.

+
+
+

Analyze

We study your site, users and existing infrastructure.

+

Design

We plan coverage, capacity and the right hardware for your budget.

+

Activate

Our engineers install, configure and test everything on site.

+

Listen

Round-the-clock support and continuous tuning as you grow.

+
+
+
+ +
+
+

Quality over quantity, always

+

Let's talk about the network your guests, patients, students or diners deserve.

+ Get a free consultation +
+
+
+ + + + + + diff --git a/public/logo.png b/public/logo.png new file mode 100644 index 0000000..174ce7a Binary files /dev/null and b/public/logo.png differ diff --git a/server.js b/server.js index 025b335..2b15059 100644 --- a/server.js +++ b/server.js @@ -5,8 +5,8 @@ const { DatabaseSync } = require('node:sqlite'); const MAX_BODY = 10 * 1024; const REQUIRED = ['name', 'email', 'phone', 'company']; -const OPTIONAL = ['industry', 'message', 'utm_source', 'utm_medium', 'utm_campaign']; -const MAX_LEN = { message: 2000 }; +const OPTIONAL = ['industry', 'message', 'referrer', 'utm_source', 'utm_medium', 'utm_campaign']; +const MAX_LEN = { message: 2000, referrer: 500 }; const EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; const INDEX = path.join(__dirname, 'public', 'index.html'); const STATIC = { '/logo.png': ['logo.png', 'image/png'] }; @@ -89,7 +89,7 @@ function createServer(dbPath) { try { const t = (f) => (lead[f] ? lead[f].trim() : null); insert.run(t('name'), t('email'), t('phone'), t('company'), t('industry'), t('message'), - (req.headers.referer || '').slice(0, 500) || null, t('utm_source'), t('utm_medium'), t('utm_campaign')); + t('referrer'), t('utm_source'), t('utm_medium'), t('utm_campaign')); } catch (e) { console.error('lead insert failed:', e.message); return send(res, 500, { error: 'Could not save, please try again' }); diff --git a/server.test.js b/server.test.js index d66b1c6..2891d93 100644 --- a/server.test.js +++ b/server.test.js @@ -28,6 +28,7 @@ const valid = { industry: 'Hospitality', message: 'Need guest Wi-Fi for 120 rooms', utm_source: 'google', + referrer: 'https://www.google.com/', }; const post = (body) => @@ -58,7 +59,7 @@ test('valid lead is stored', async () => { assert.strictEqual(r[0].name, valid.name); assert.strictEqual(r[0].company, valid.company); assert.strictEqual(r[0].utm_source, 'google'); - assert.strictEqual(r[0].referrer, 'https://ads.example.com/'); + assert.strictEqual(r[0].referrer, 'https://www.google.com/'); assert.ok(r[0].created_at); });