403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/AIWEBSTATION/wp-content/novamira-sandbox/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/AIWEBSTATION/wp-content/novamira-sandbox/build-autocount.php.disabled
<?php
/**
 * AutoCount Introduction Page Builder
 * Target: Page ID 300
 * Design: AIWebstation style (navy/blue/purple gradients)
 */

$page_id = 300;

function _id() { return substr(md5(uniqid(mt_rand(), true)), 0, 7); }
function _px($n) { return ['unit'=>'px','size'=>$n,'sizes'=>[]]; }
function _pct($n) { return ['unit'=>'%','size'=>$n,'sizes'=>[]]; }
function _pad($t,$r,$b,$l) { return ['unit'=>'px','top'=>(string)$t,'right'=>(string)$r,'bottom'=>(string)$b,'left'=>(string)$l,'isLinked'=>false]; }
function _rad($n,$u='px') { return ['unit'=>$u,'top'=>(string)$n,'right'=>(string)$n,'bottom'=>(string)$n,'left'=>(string)$n,'isLinked'=>true]; }
function _gap($n) { return ['column'=>(string)$n,'row'=>(string)$n,'isLinked'=>true,'unit'=>'px','size'=>$n,'sizes'=>[]]; }
function _grad($a,$b,$angle=135) {
    return [
        'background_background'=>'gradient','background_color'=>$a,
        'background_color_stop'=>['unit'=>'%','size'=>0,'sizes'=>[]],
        'background_color_b'=>$b,'background_color_b_stop'=>['unit'=>'%','size'=>100,'sizes'=>[]],
        'background_gradient_type'=>'linear','background_gradient_angle'=>['unit'=>'deg','size'=>$angle,'sizes'=>[]]
    ];
}
function _solid($c) { return ['background_background'=>'classic','background_color'=>$c]; }
function _border($c,$w=1) {
    return ['border_border'=>'solid','border_width'=>['unit'=>'px','top'=>(string)$w,'right'=>(string)$w,'bottom'=>(string)$w,'left'=>(string)$w,'isLinked'=>true],'border_color'=>$c];
}
function mk_widget($id, $type, $settings) {
    return ['id'=>$id, 'elType'=>'widget', 'widgetType'=>$type, 'settings'=>$settings, 'elements'=>[]];
}
function mk_container($id, $inner, $settings, $elements=[]) {
    return ['id'=>$id, 'elType'=>'container', 'isInner'=>$inner, 'settings'=>$settings, 'elements'=>$elements];
}

// ── CSS Hook ──
$css_html = '<style>#ac-hero{position:relative;}#ac-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 72% 30%,rgba(96,74,255,.24),transparent 35%),radial-gradient(circle at 88% 80%,rgba(27,107,255,.20),transparent 35%);pointer-events:none;z-index:1;}.aw-gt{background:linear-gradient(90deg,#1765ff,#7441f5);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;color:transparent;display:inline;}.ac-card{transition:.3s ease;}.ac-card:hover{transform:translateY(-5px);border-color:#b9c7ff!important;box-shadow:0 18px 45px rgba(41,79,170,.12)!important;}.ac-ind{transition:.25s ease;}.ac-ind:hover{transform:translateY(-3px);border-color:#bdcaff!important;box-shadow:0 12px 30px rgba(40,75,155,.09)!important;}.ac-fa a:hover{color:#fff!important;}@media(max-width:768px){.ac-hero-img{display:none!important;}.ac-btn-full{width:100%!important;}.ac-why-grid{flex-direction:column!important;}}@media(max-width:1100px){.ac-sol-grid > .e-con{width:calc(50% - 9px)!important;}.ac-ind-grid > .e-con{width:calc(33.333% - 10px)!important;}}@media(max-width:768px){.ac-sol-grid > .e-con{width:100%!important;}.ac-ind-grid > .e-con{width:calc(50% - 7.5px)!important;}}@media(max-width:480px){.ac-ind-grid > .e-con{width:100%!important;}}</style>';
$el_css = mk_widget(_id(), 'html', ['html'=>$css_html]);

// ── Hero Section ──
$hero_content = mk_container(_id(), true, [
    'layout'=>'boxed','width'=>_pct(48),'flex_direction'=>'column','flex_align_items'=>'flex_start','padding'=>_pad(70,0,70,0)
], [
    mk_container(_id(), true, array_merge([
        'layout'=>'boxed','width'=>['unit'=>'auto','size'=>'','sizes'=>[]],'border_radius'=>_rad(30),
        'padding'=>_pad(8,16,8,16),'margin'=>_pad(0,0,18,0)
    ],_grad('#e8edff','#f0eaff',90)), [
        mk_widget(_id(), 'text-editor', ['editor'=>'E-Invoice Ready • SME Trusted • 25+ Years','text_color'=>'#2858dd','typography_typography'=>'custom','typography_font_size'=>_px(13),'typography_font_weight'=>'700','typography_line_height'=>['unit'=>'em','size'=>1.2,'sizes'=>[]]])
    ]),
    mk_widget(_id(), 'heading', ['title'=>'Malaysia\u2019s Most Trusted<br><span class="aw-gt">Accounting Software</span>','header_size'=>'h1','title_color'=>'#0a153c','typography_font_family'=>'Inter','typography_typography'=>'custom','typography_font_size'=>_px(64),'typography_font_weight'=>'800','typography_line_height'=>['unit'=>'em','size'=>1.08,'sizes'=>[]],'typography_letter_spacing'=>['unit'=>'px','size'=>-3.5,'sizes'=>[]]]),
    mk_widget(_id(), 'text-editor', ['editor'=>'AutoCount empowers 240,000+ Malaysian SMEs with complete accounting, inventory, billing, and e-invoice solutions. 100% Malaysian-owned with 25+ years of excellence.','text_color'=>'#4e5b79','typography_typography'=>'custom','typography_font_size'=>_px(18),'typography_line_height'=>['unit'=>'em','size'=>1.65,'sizes'=>[]],'margin'=>_pad(25,0,28,0)]),
    mk_container(_id(), true, [
        'layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','flex_align_items'=>'center','flex_gap'=>_gap(12),'flex_wrap'=>'wrap','css_classes'=>'ac-btn-full'
    ], [
        mk_widget(_id(), 'button', array_merge([
            'text'=>'Get Free Trial →','link'=>['url'=>'#ac-contact','is_external'=>false,'nofollow'=>false],
            'button_text_color'=>'#ffffff','border_radius'=>_rad(9),'typography_typography'=>'custom',
            'typography_font_size'=>_px(14),'typography_font_weight'=>'700','padding'=>_pad(0,25,0,25),'min_height'=>_px(50),
            'box_shadow_box_shadow_type'=>'yes','box_shadow_box_shadow'=>['horizontal'=>0,'vertical'=>10,'blur'=>25,'spread'=>0,'color'=>'rgba(41,86,255,0.25)']
        ],_grad('#1e62ff','#693ff5',135))),
        mk_widget(_id(), 'button', [
            'text'=>'📞 Contact Sales','link'=>['url'=>'#ac-contact','is_external'=>false,'nofollow'=>false],
            'button_text_color'=>'#1a2850','background_background'=>'classic','background_color'=>'rgba(255,255,255,0.65)',
            'border_border'=>'solid','border_width'=>['unit'=>'px','top'=>'1','right'=>'1','bottom'=>'1','left'=>'1','isLinked'=>true],'border_color'=>'#8d9bc0',
            'border_radius'=>_rad(9),'typography_typography'=>'custom','typography_font_size'=>_px(14),'typography_font_weight'=>'700',
            'padding'=>_pad(0,25,0,25),'min_height'=>_px(50)
        ])
    ])
]);

$hero_visual = mk_container(_id(), true, [
    'layout'=>'boxed','width'=>_pct(50),'flex_direction'=>'row','flex_align_items'=>'center','justify_content'=>'flex_end','css_classes'=>'ac-hero-img'
], [
    mk_widget(_id(), 'image', [
        'image'=>['url'=>'https://website.ipohserver.com/AIWEBSTATION/wp-content/uploads/2026/08/aiwebstation-header-scaled.jpg','id'=>0],
        'image_size'=>'full','image_border_radius'=>_rad(18),'css_classes'=>'aw-hi'
    ])
]);

$el_hero = mk_container('ac-hero', false, array_merge([
    'layout'=>'full_width','min_height'=>_px(520),'flex_direction'=>'column','flex_align_items'=>'center',
    'padding'=>_pad(0,0,0,0),'css_id'=>'ac-hero','html_tag'=>'section'
], _grad('#f8faff','#e5eaff',110)), [
    mk_container(_id(), true, [
        'layout'=>'boxed','boxed_width'=>_px(1400),'flex_direction'=>'row','flex_align_items'=>'center',
        'flex_gap'=>_gap(0),'min_height'=>_px(520),'padding'=>_pad(0,40,0,40)
    ], [$hero_content, $hero_visual])
]);

echo "Hero built\n";

// ── Stats Section ──
$stats_data = [
    ['num'=>'240,000+','label'=>'Companies Using AutoCount'],
    ['num'=>'12,000+','label'=>'POS Retail Terminals'],
    ['num'=>'190,000+','label'=>'Employees on HRMS'],
    ['num'=>'25+','label'=>'Years of Excellence'],
    ['num'=>'300+','label'=>'Authorized Dealers'],
    ['num'=>'200+','label'=>'Training Centres']
];
$stat_cards = [];
foreach($stats_data as $sd){
    $stat_cards[] = mk_container(_id(), true, [
        'layout'=>'boxed','width'=>_pct(16.666),'flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(25,15,25,15)
    ], [
        mk_widget(_id(), 'heading', ['title'=>$sd['num'],'header_size'=>'h3','title_color'=>'#245cff','typography_typography'=>'custom','typography_font_size'=>_px(32),'typography_font_weight'=>'800','align'=>'center']),
        mk_widget(_id(), 'text-editor', ['editor'=>$sd['label'],'text_color'=>'#63708c','typography_typography'=>'custom','typography_font_size'=>_px(12),'typography_font_weight'=>'600','align'=>'center'])
    ]);
}
$el_stats = mk_container(_id(), false, array_merge([
    'layout'=>'full_width','flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(40,0,40,0),'html_tag'=>'section'
],_solid('#ffffff')), [
    mk_container(_id(), true, [
        'layout'=>'boxed','boxed_width'=>_px(1200),'flex_direction'=>'row','flex_wrap'=>'wrap','flex_gap'=>_gap(0)
    ], $stat_cards)
]);

echo "Stats built\n";

// ── What is AutoCount ──
$el_about = mk_container(_id(), false, array_merge([
    'layout'=>'full_width','flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(85,0,85,0),'html_tag'=>'section'
],_solid('#f8faff')), [
    mk_container(_id(), true, ['layout'=>'boxed','boxed_width'=>_px(1200),'flex_direction'=>'row','flex_align_items'=>'center','flex_gap'=>_gap(60)], [
        mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(50),'flex_direction'=>'column','flex_align_items'=>'flex_start'], [
            mk_widget(_id(), 'heading', ['title'=>'What is <span class="aw-gt">AutoCount?</span>','header_size'=>'h2','title_color'=>'#101c40','typography_typography'=>'custom','typography_font_size'=>_px(42),'typography_font_weight'=>'800','typography_line_height'=>['unit'=>'em','size'=>1.15,'sizes'=>[]],'typography_letter_spacing'=>['unit'=>'px','size'=>-1.5,'sizes'=>[]]]),
            mk_widget(_id(), 'text-editor', ['editor'=>'Auto Count Sdn Bhd possesses more than 25 years of software development experience. The company is 100% owned by Malaysian. Its main business is to develop and provide high quality accounting software as well as other business applications to small and medium sized enterprises.','text_color'=>'#4e5b79','typography_typography'=>'custom','typography_font_size'=>_px(16),'typography_line_height'=>['unit'=>'em','size'=>1.65,'sizes'=>[]],'margin'=>_pad(20,0,20,0)]),
            mk_widget(_id(), 'text-editor', ['editor'=>'As of today, AutoCount Accounting, AutoCount Point of Sale and AutoCount Payroll have been the preferred choices of most SMEs in Malaysia and its surrounding countries.','text_color'=>'#4e5b79','typography_typography'=>'custom','typography_font_size'=>_px(16),'typography_line_height'=>['unit'=>'em','size'=>1.65,'sizes'=>[]]]),
            mk_widget(_id(), 'button', array_merge(['text'=>'Learn More →','link'=>['url'=>'#ac-products','is_external'=>false,'nofollow'=>false],'button_text_color'=>'#ffffff','border_radius'=>_rad(9),'typography_typography'=>'custom','typography_font_size'=>_px(14),'typography_font_weight'=>'700','padding'=>_pad(0,25,0,25),'min_height'=>_px(50),'margin'=>_pad(25,0,0,0)],_grad('#1e62ff','#693ff5',135)))
        ]),
        mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(50),'flex_direction'=>'column','flex_align_items'=>'center','justify_content'=>'center'], [
            mk_widget(_id(), 'image', ['image'=>['url'=>'https://website.ipohserver.com/AIWEBSTATION/wp-content/uploads/2026/08/aiwebstation-header-scaled.jpg','id'=>0],'image_size'=>'full','image_border_radius'=>_rad(18)])
        ])
    ])
]);

echo "About built\n";

// ── Products Section ──
$prod_data = [
    ['icon'=>'📊','title'=>'AutoCount Accounting 2.0','desc'=>'Best-seller and flagship product. Complete integration of Accounting (GL, AR, AP), Inventory, Billing and 30+ modules. Ideal for SMEs of all sectors.','color'=>'#36a950'],
    ['icon'=>'🛒','title'=>'AutoCount POS 5.0','desc'=>'Features-rich POS for retail and F&B. Real-time data sync, multi-branch support, offline capability with powerful reporting.','color'=>'#31a5bd'],
    ['icon'=>'☁','title'=>'Cloud Accounting','desc'=>'Access your accounting anytime, anywhere. No hardware investment needed. Work remotely with full cloud flexibility and security.','color'=>'#25bd82'],
    ['icon'=>'👥','title'=>'Cloud Payroll / HRMS','desc'=>'Payroll, eLeave, eClaim, Employee Portal & Mobile App. Fully compliant with LHDN, PCB, EPF, SOCSO, EIS and HRDF.','color'=>'#7441f5'],
    ['icon'=>'🔌','title'=>'AutoCount Plugins','desc'=>'Extend functionality with plugins for e-commerce, CRM, API integration, and custom workflow automation.','color'=>'#245cff'],
    ['icon'=>'⚙','title'=>'Customization','desc'=>'Tailored solutions for your specific industry needs. Custom reports, modules, and workflow automation.','color'=>'#693ff5']
];
$prod_cards = [];
foreach($prod_data as $pd){
    $prod_cards[] = mk_container(_id(), true, array_merge([
        'layout'=>'boxed','width'=>_pct(33.333),'flex_direction'=>'row','flex_align_items'=>'flex_start','flex_gap'=>_gap(22),
        'min_height'=>_px(170),'border_radius'=>_rad(16),'padding'=>_pad(27,27,27,27),'css_classes'=>'ac-card'
    ],_solid('#ffffff'),_border('#e9edf5')), [
        mk_container(_id(), true, array_merge([
            'layout'=>'boxed','width'=>['unit'=>'px','size'=>64,'sizes'=>[]],'min_height'=>_px(64),'flex_direction'=>'column',
            'flex_align_items'=>'center','justify_content'=>'center','border_radius'=>_rad(18)
        ],_grad('#edf2ff','#f4eeff',145)), [
            mk_widget(_id(), 'heading', ['title'=>$pd['icon'],'header_size'=>'h3','typography_typography'=>'custom','typography_font_size'=>_px(28)])
        ]),
        mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'column','flex_align_items'=>'flex_start'], [
            mk_widget(_id(), 'heading', ['title'=>$pd['title'],'header_size'=>'h5','title_color'=>'#13204a','typography_typography'=>'custom','typography_font_size'=>_px(18),'typography_font_weight'=>'700','margin'=>_pad(4,0,10,0)]),
            mk_widget(_id(), 'text-editor', ['editor'=>$pd['desc'],'text_color'=>'#6a758d','typography_typography'=>'custom','typography_font_size'=>_px(13),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]]])
        ])
    ]);
}
$el_products = mk_container(_id(), false, array_merge([
    'layout'=>'full_width','flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(85,0,85,0),'html_tag'=>'section'
],_solid('#ffffff')), [
    mk_container(_id(), true, ['layout'=>'boxed','boxed_width'=>_px(1200),'flex_direction'=>'column','flex_align_items'=>'center'], [
        mk_widget(_id(), 'heading', ['title'=>'Our Products','header_size'=>'h6','title_color'=>'#3569ff','typography_typography'=>'custom','typography_font_size'=>_px(12),'typography_font_weight'=>'800','typography_letter_spacing'=>['unit'=>'px','size'=>1.5,'sizes'=>[]],'typography_text_transform'=>'uppercase','align'=>'center','margin'=>_pad(0,0,10,0)]),
        mk_widget(_id(), 'heading', ['title'=>'Complete Business Solutions<br>for Every SME','header_size'=>'h2','title_color'=>'#101c40','typography_typography'=>'custom','typography_font_size'=>_px(42),'typography_font_weight'=>'800','typography_line_height'=>['unit'=>'em','size'=>1.15,'sizes'=>[]],'typography_letter_spacing'=>['unit'=>'px','size'=>-1.5,'sizes'=>[]],'align'=>'center']),
        mk_widget(_id(), 'text-editor', ['editor'=>'From accounting to payroll, cloud solutions to POS — we have everything your business needs.','text_color'=>'#69758f','typography_typography'=>'custom','typography_font_size'=>_px(16),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]],'align'=>'center','margin'=>_pad(12,0,42,0)]),
        mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(100),'max_width'=>_px(1200),'flex_direction'=>'row','flex_wrap'=>'wrap','flex_gap'=>_gap(18),'css_classes'=>'ac-sol-grid'], $prod_cards)
    ])
]);

echo "Products built\n";

// ── Why Choose AutoCount ──
$why_items = [
    ['icon'=>'✅','title'=>'E-Invoice Ready','desc'=>'Fully compliant with LHDN e-invoice requirements. Submit invoices directly to IRB.'],
    ['icon'=>'🇲🇾','title'=>'100% Malaysian','desc'=>'Malaysian-owned and operated. Local support team understands your business needs.'],
    ['icon'=>'💰','title'=>'Affordable','desc'=>'One of the most affordable solutions in the market without compromising on features.'],
    ['icon'=>'🔧','title'=>'Customizable','desc'=>'Plugins, modules, and custom development to match your unique workflow.']
];
$why_cards = [];
foreach($why_items as $wi){
    $why_cards[] = mk_container(_id(), true, array_merge(['layout'=>'boxed','width'=>_pct(25),'flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(35,25,35,25)],_solid('#ffffff')), [
        mk_container(_id(), true, array_merge(['layout'=>'boxed','width'=>['unit'=>'px','size'=>55,'sizes'=>[]],'min_height'=>_px(55),'flex_direction'=>'column','flex_align_items'=>'center','justify_content'=>'center','border_radius'=>_rad(50,'%'),'margin'=>_pad(0,0,15,0)],_solid('#edf2ff')), [
            mk_widget(_id(), 'heading', ['title'=>$wi['icon'],'header_size'=>'h3','typography_typography'=>'custom','typography_font_size'=>_px(25)])
        ]),
        mk_widget(_id(), 'heading', ['title'=>$wi['title'],'header_size'=>'h5','title_color'=>'#101c40','typography_typography'=>'custom','typography_font_size'=>_px(16),'typography_font_weight'=>'700','align'=>'center','margin'=>_pad(0,0,8,0)]),
        mk_widget(_id(), 'text-editor', ['editor'=>$wi['desc'],'text_color'=>'#7a8499','typography_typography'=>'custom','typography_font_size'=>_px(13),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]],'align'=>'center'])
    ]);
}

$el_why = mk_container(_id(), false, array_merge([
    'layout'=>'full_width','flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(85,0,85,0),'html_tag'=>'section'
],_solid('#f8faff')), [
    mk_container(_id(), true, ['layout'=>'boxed','boxed_width'=>_px(1200),'flex_direction'=>'column','flex_align_items'=>'center'], [
        mk_widget(_id(), 'heading', ['title'=>'Why Choose <span class="aw-gt">AutoCount?</span>','header_size'=>'h2','title_color'=>'#101c40','typography_typography'=>'custom','typography_font_size'=>_px(42),'typography_font_weight'=>'800','typography_line_height'=>['unit'=>'em','size'=>1.15,'sizes'=>[]],'typography_letter_spacing'=>['unit'=>'px','size'=>-1.5,'sizes'=>[]],'align'=>'center']),
        mk_widget(_id(), 'text-editor', ['editor'=>'Trusted by SMEs across Malaysia for reliability, affordability, and local expertise.','text_color'=>'#69758f','typography_typography'=>'custom','typography_font_size'=>_px(16),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]],'align'=>'center','margin'=>_pad(12,0,42,0)]),
        mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','flex_wrap'=>'wrap','flex_gap'=>_gap(18),'css_classes'=>'ac-why-grid'], $why_cards)
    ])
]);

echo "Why built\n";

// ── Industries ──
$ind_data = [
    ['icon'=>'🏭','label'=>'Wholesale & Supplier'],['icon'=>'🛒','label'=>'Retail & Chain Store'],
    ['icon'=>'🍽','label'=>'F&B & Restaurant'],['icon'=>'🏗','label'=>'Building & Hardware'],
    ['icon'=>'💊','label'=>'Pharmacy & Healthcare'],['icon'=>'📱','label'=>'Mobile & Electronics']
];
$ind_cards = [];
foreach($ind_data as $id){
    $ind_cards[] = mk_container(_id(), true, array_merge([
        'layout'=>'boxed','width'=>_pct(16.666),'min_height'=>_px(105),'border_radius'=>_rad(13),
        'flex_direction'=>'column','flex_align_items'=>'center','justify_content'=>'center','flex_gap'=>_gap(10),'css_classes'=>'ac-ind'
    ],_solid('#ffffff'),_border('#e7ebf4')), [
        mk_widget(_id(), 'heading', ['title'=>$id['icon'],'header_size'=>'h3','typography_typography'=>'custom','typography_font_size'=>_px(26)]),
        mk_widget(_id(), 'heading', ['title'=>$id['label'],'header_size'=>'h6','title_color'=>'#293553','typography_typography'=>'custom','typography_font_size'=>_px(12),'typography_font_weight'=>'700'])
    ]);
}
$el_ind = mk_container(_id(), false, ['layout'=>'full_width','flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(75,0,75,0),'html_tag'=>'section'], [
    mk_container(_id(), true, ['layout'=>'boxed','boxed_width'=>_px(1200),'flex_direction'=>'column','flex_align_items'=>'center'], [
        mk_widget(_id(), 'heading', ['title'=>'Industries We Serve','header_size'=>'h6','title_color'=>'#3569ff','typography_typography'=>'custom','typography_font_size'=>_px(12),'typography_font_weight'=>'800','typography_letter_spacing'=>['unit'=>'px','size'=>1.5,'sizes'=>[]],'typography_text_transform'=>'uppercase','align'=>'center','margin'=>_pad(0,0,10,0)]),
        mk_widget(_id(), 'heading', ['title'=>'Solutions for Every Business','header_size'=>'h2','title_color'=>'#101c40','typography_typography'=>'custom','typography_font_size'=>_px(42),'typography_font_weight'=>'800','typography_line_height'=>['unit'=>'em','size'=>1.15,'sizes'=>[]],'typography_letter_spacing'=>['unit'=>'px','size'=>-1.5,'sizes'=>[]],'align'=>'center']),
        mk_widget(_id(), 'text-editor', ['editor'=>'From wholesale to retail, F&B to manufacturing — AutoCount supports your industry.','text_color'=>'#69758f','typography_typography'=>'custom','typography_font_size'=>_px(16),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]],'align'=>'center','margin'=>_pad(12,0,42,0)]),
        mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(100),'max_width'=>_px(1200),'flex_direction'=>'row','flex_wrap'=>'wrap','flex_gap'=>_gap(15),'css_classes'=>'ac-ind-grid'], $ind_cards)
    ])
]);

echo "Industries built\n";

// ── CTA ──
$el_cta = mk_container(_id(), false, ['layout'=>'full_width','flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(0,0,80,0),'html_tag'=>'section'], [
    mk_container(_id(), true, ['layout'=>'boxed','boxed_width'=>_px(1200),'flex_direction'=>'column','flex_align_items'=>'center'], [
        mk_container(_id(), true, array_merge([
            'layout'=>'boxed','width'=>_pct(100),'min_height'=>_px(220),'border_radius'=>_rad(18),'padding'=>_pad(45,55,45,55),
            'flex_direction'=>'row','flex_align_items'=>'center','justify_content'=>'space_between','overflow'=>'hidden'
        ],_grad('#1349d9','#4930d9',105)), [
            mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(70),'flex_direction'=>'column','flex_align_items'=>'flex_start'], [
                mk_widget(_id(), 'heading', ['title'=>'Ready to Streamline Your Business?','header_size'=>'h2','title_color'=>'#ffffff','typography_typography'=>'custom','typography_font_size'=>_px(38),'typography_font_weight'=>'800','typography_line_height'=>['unit'=>'em','size'=>1.12,'sizes'=>[]]]),
                mk_widget(_id(), 'text-editor', ['editor'=>'Join 240,000+ Malaysian SMEs already growing with AutoCount. Get your free trial today.','text_color'=>'#d8e1ff','typography_typography'=>'custom','typography_font_size'=>_px(16),'typography_line_height'=>['unit'=>'em','size'=>1.65,'sizes'=>[]],'margin'=>_pad(12,0,23,0)]),
                mk_widget(_id(), 'button', array_merge(['text'=>'Get Free Consultation →','link'=>['url'=>'#ac-contact','is_external'=>false,'nofollow'=>false],'button_text_color'=>'#ffffff','border_radius'=>_rad(9),'typography_typography'=>'custom','typography_font_size'=>_px(14),'typography_font_weight'=>'700','padding'=>_pad(0,25,0,25),'min_height'=>_px(50)],_grad('#1e62ff','#693ff5',135)))
            ]),
            mk_container(_id(), true, array_merge([
                'layout'=>'boxed','width'=>['unit'=>'px','size'=>190,'sizes'=>[]],'min_height'=>_px(190),'flex_direction'=>'column','flex_align_items'=>'center','justify_content'=>'center','border_radius'=>_rad(50,'%')
            ],['background_background'=>'gradient','background_color'=>'#6c67ff','background_color_stop'=>['unit'=>'%','size'=>0,'sizes'=>[]],'background_color_b'=>'transparent','background_color_b_stop'=>['unit'=>'%','size'=>65,'sizes'=>[]],'background_gradient_type'=>'radial','background_gradient_position'=>['x'=>50,'y'=>50,'unit'=>'%']]), [
                mk_widget(_id(), 'heading', ['title'=>'📊','header_size'=>'h1','typography_typography'=>'custom','typography_font_size'=>_px(80)])
            ])
        ])
    ])
]);

echo "CTA built\n";

// ── Footer ──
function footer_links($title, $links) {
    $html = '';
    foreach($links as $l) {
        $html .= '<a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">'.$l.'</a>';
    }
    return [
        mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(17.5),'flex_direction'=>'column'], [
            mk_widget(_id(), 'heading', ['title'=>$title,'header_size'=>'h5','title_color'=>'#ffffff','typography_typography'=>'custom','typography_font_size'=>_px(14),'typography_font_weight'=>'700','margin'=>_pad(0,0,18,0)]),
            mk_widget(_id(), 'text-editor', ['editor'=>$html,'css_classes'=>'ac-fa'])
        ])
    ];
}

$el_foot = mk_container(_id(), false, array_merge([
    'layout'=>'full_width','flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(65,0,20,0),'html_tag'=>'footer'
],_solid('#07183f')), [
    mk_container(_id(), true, ['layout'=>'boxed','boxed_width'=>_px(1200),'max_width'=>_px(1200),'flex_direction'=>'row','flex_wrap'=>'wrap','flex_gap'=>_gap(50)], array_merge([
        mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(30),'flex_direction'=>'column','flex_align_items'=>'flex_start'], [
            mk_widget(_id(), 'heading', ['title'=>'<span style="color:#245cff;font-weight:800;">Auto</span><span style="color:#ffffff;">Count</span>','header_size'=>'h3','typography_typography'=>'custom','typography_font_size'=>_px(22),'typography_font_weight'=>'800']),
            mk_widget(_id(), 'text-editor', ['editor'=>'Malaysia\u2019s leading accounting software for SMEs. Trusted by 240,000+ businesses.','text_color'=>'#aab7d7','typography_typography'=>'custom','typography_font_size'=>_px(13),'typography_line_height'=>['unit'=>'em','size'=>1.6,'sizes'=>[]],'margin'=>_pad(15,0,20,0)]),
            mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','flex_gap'=>_gap(8)], [
                mk_widget(_id(), 'text-editor', ['editor'=>'<span style="display:inline-flex;width:30px;height:30px;border:1px solid rgba(255,255,255,.25);border-radius:50%;align-items:center;justify-content:center;color:#fff;font-size:12px;">f</span>']),
                mk_widget(_id(), 'text-editor', ['editor'=>'<span style="display:inline-flex;width:30px;height:30px;border:1px solid rgba(255,255,255,.25);border-radius:50%;align-items:center;justify-content:center;color:#fff;font-size:12px;">in</span>']),
                mk_widget(_id(), 'text-editor', ['editor'=>'<span style="display:inline-flex;width:30px;height:30px;border:1px solid rgba(255,255,255,.25);border-radius:50%;align-items:center;justify-content:center;color:#fff;font-size:12px;">▶</span>']),
                mk_widget(_id(), 'text-editor', ['editor'=>'<span style="display:inline-flex;width:30px;height:30px;border:1px solid rgba(255,255,255,.25);border-radius:50%;align-items:center;justify-content:center;color:#fff;font-size:12px;">◎</span>'])
            ])
        ])
    ], footer_links('Products', ['Accounting 2.0','POS 5.0','Cloud Accounting','Cloud Payroll','Plugins']), footer_links('Services', ['Implementation','E-Invoice Setup','Data Migration','Customization','Support']), footer_links('Company', ['About Us','Contact','Dealer Login','Careers']), footer_links('Resources', ['Training','Blog','Free Trial','Downloads']))),
    mk_container(_id(), true, ['layout'=>'boxed','boxed_width'=>_px(1200),'max_width'=>_px(1200),'flex_direction'=>'row','flex_align_items'=>'center','justify_content'=>'space_between','margin'=>_pad(40,0,0,0),'padding'=>_pad(18,0,0,0),'border_top_border'=>'solid','border_top_width'=>['unit'=>'px','top'=>'1','right'=>'0','bottom'=>'0','left'=>'0','isLinked'=>false],'border_top_color'=>'rgba(255,255,255,0.12)'], [
        mk_widget(_id(), 'text-editor', ['editor'=>'© 2026 AutoCount. All Rights Reserved.','text_color'=>'#8997bb','typography_typography'=>'custom','typography_font_size'=>_px(11)]),
        mk_widget(_id(), 'text-editor', ['editor'=>'<a href="#" style="color:#8997bb;font-size:11px;text-decoration:none;">Privacy Policy</a> | <a href="#" style="color:#8997bb;font-size:11px;text-decoration:none;">Terms of Service</a>','text_color'=>'#8997bb'])
    ])
]);

echo "Footer built\n";

// ── Assemble & Save ──
$elements = [$el_css, $el_hero, $el_stats, $el_about, $el_products, $el_why, $el_ind, $el_cta, $el_foot];

$json = json_encode($elements);
echo "JSON length: " . strlen($json) . "\n";
echo "JSON valid: " . (json_decode($json) !== null ? 'yes' : 'no') . "\n";

update_post_meta($page_id, '_elementor_edit_mode', 'builder');
update_post_meta($page_id, '_elementor_template_type', 'wp-page');
update_post_meta($page_id, '_elementor_version', ELEMENTOR_VERSION);

$document = \Elementor\Plugin::$instance->documents->get($page_id);
if ($document) {
    $document->save(['elements' => $elements]);
    \Elementor\Plugin::$instance->files_manager->clear_cache();
    echo "Saved via Elementor API\n";
} else {
    update_post_meta($page_id, '_elementor_data', wp_slash($json));
    echo "Saved via direct meta\n";
}

// Verify
$saved = get_post_meta($page_id, '_elementor_data', true);
$decoded = json_decode($saved, true);
$ok = json_last_error() === JSON_ERROR_NONE;

function tally($arr, &$wc, &$cc) {
    if (!is_array($arr)) return;
    foreach ($arr as $el) {
        $t = $el['elType'] ?? '';
        if ($t === 'widget') { $wt = $el['widgetType'] ?? 'unknown'; $wc[$wt] = ($wc[$wt] ?? 0) + 1; }
        elseif ($t === 'container') { $cc++; }
        if (!empty($el['elements'])) tally($el['elements'], $wc, $cc);
    }
}
$wc = []; $cc = 0;
tally($decoded, $wc, $cc);

echo "Verify JSON ok: " . ($ok ? 'yes' : 'no') . "\n";
echo "Saved len: " . strlen($saved) . "\n";
echo "Top-level: " . count($decoded) . "\n";
echo "Containers: " . $cc . "\n";
echo "Widgets: " . json_encode($wc) . "\n";
echo "Post status: " . get_post_status($page_id) . "\n";

Youez - 2016 - github.com/yon3zu
LinuXploit