File "profilo-punti.inc.php"
Full Path: /srv/www/www.cadoro.it/src/controllers/profilo-punti.inc.php
File size: 663 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
if (!$principal) {
header("Location: " . BASE_URL . "/login?" . http_build_query(array("nexturl" => $request_uri)));
exit;
}
$points = $principal->get_points();
$points_pending = $principal->get_points_pending();
$products = models\Product::get(array("published" => 1), 0, 64);
$categories = models\ProductCategory::get(array("published" => 1), 0, 8); // mod
$smarty->assign("points", $points);
$smarty->assign("points_pending", $points_pending);
$smarty->assign("products", $products);
$smarty->assign("categories", $categories); // mod
$smarty->assign("menu", "profilo-punti");
$smarty->display("profilo-punti.tmpl");