You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my page ?gifts is not rendering gifts.html.twig.
it only shows gift-header.html.twig.
i also found out there is another gifts.php on /gesior-shop-system/pages. slightly difference oon line 14, the file on gesior has
csrfProtect(); , when applied to my ''system'' gift page, it comes back with http500.
Any idea?
CODE gifts.php on html/system/pages:
`<?php
/**
This is shop system taken from Gesior, modified for MyAAC.
if(!$config['gifts_system']) {
if(!admin()) {
$errors[] = 'The gifts system is disabled.';
$twig->display('error_box.html.twig', array('errors' => $errors));
return;
} else {
warning("You're able to access this page but it is disabled for normal users.
Its enabled for you so you can view/edit shop offers before displaying them to users.
You can enable it by editing this line in myaac config.local.php file:
my page ?gifts is not rendering gifts.html.twig.
it only shows gift-header.html.twig.
i also found out there is another gifts.php on /gesior-shop-system/pages. slightly difference oon line 14, the file on gesior has
csrfProtect(); , when applied to my ''system'' gift page, it comes back with http500.
Any idea?
CODE gifts.php on html/system/pages:
`<?php
/**
*/
defined('MYAAC') or die('Direct access not allowed!');
$title = 'Gifts';
require_once(PLUGINS . 'gesior-shop-system/libs/shop-system.php');
require_once(PLUGINS . 'gesior-shop-system/config.php');
if(!$config['gifts_system']) {
");if(!admin()) {
$errors[] = 'The gifts system is disabled.';
$twig->display('error_box.html.twig', array('errors' => $errors));
return;
} else {
warning("You're able to access this page but it is disabled for normal users.
Its enabled for you so you can view/edit shop offers before displaying them to users.
You can enable it by editing this line in myaac config.local.php file:
<p style="margin-left: 3em;">$config['gifts_system'] = true;
}
}
if(GesiorShop::getDonationType() == 'coins' && !fieldExist('coins', 'accounts')) {
$errors[] = "Your server doesn't support accounts.coins. Please change back config.donation_type to points.";
$twig->display('error_box.html.twig', array('errors' => $errors));
return;
}
if($logged) {
$user_premium_points = $account_logged->getCustomField(GesiorShop::getDonationType());
} else {
$was_before = $config['friendly_urls'];
$config['friendly_urls'] = true;
$user_premium_points = generateLink(getLink('?subtopic=accountmanagement') . '&redirect=' . urlencode(BASE_URL . '?subtopic=gifts'), 'Login first');
$config['friendly_urls'] = $was_before;
}
if(!empty($action)) {
$errors = array();
if(!$logged || !$account_logged->isLoaded()) {
$errors[] = 'Please login first';
$twig->display('error_box.html.twig', array('errors' => $errors));
return;
}
} else {
unset($_SESSION['viewed_confirmation_page']);
}
`
CODE /html/plugins/gesior-shop-system/templates/gifts.html.twig:
<title>Gifts</title>`
{{ warning }}
{% endif %}The text was updated successfully, but these errors were encountered: