Fifth pass at adding key files

This commit is contained in:
dsainty
2024-06-17 22:42:14 +10:00
parent 67ccdbcc34
commit 9797a6824a
535 changed files with 95045 additions and 0 deletions

18
site/stackreach/brands.php Executable file
View File

@ -0,0 +1,18 @@
<?php
include_once 'config.php';
include_once 'models/services/BrandService.php';
include_once 'libs/Smarty.class.php';
$brandService = new BrandService();
$brands = $brandService->getAllBrands(is_updater());
$smarty = new Smarty;
//$smarty->caching = 1;
//$smarty->force_compile = true;
$smarty->assign('brands', $brands);
$smarty->assign('user_can_update', is_updater());
$smarty->assign('user_logged_in', is_logged_in($user));
$smarty->display('views/brands.tpl');
?>