|
@@ 341-348 (lines=8) @@
|
| 338 |
|
$oModuleModel = getModel('module'); |
| 339 |
|
$config = $oModuleModel->getModuleConfig('point'); |
| 340 |
|
$module_config = $oModuleModel->getModulePartConfig('point', $module_srl); |
| 341 |
|
if (isset($module_config['download_file'])) |
| 342 |
|
{ |
| 343 |
|
$point = intval($module_config['download_file']); |
| 344 |
|
} |
| 345 |
|
else |
| 346 |
|
{ |
| 347 |
|
$point = intval($config->download_file); |
| 348 |
|
} |
| 349 |
|
|
| 350 |
|
// If the user is not logged in and download requires points, deny access. |
| 351 |
|
if(!Context::get('is_logged')) |
|
@@ 396-403 (lines=8) @@
|
| 393 |
|
$oModuleModel = getModel('module'); |
| 394 |
|
$config = $oModuleModel->getModuleConfig('point'); |
| 395 |
|
$module_config = $oModuleModel->getModulePartConfig('point', $module_srl); |
| 396 |
|
if (isset($module_config['download_file'])) |
| 397 |
|
{ |
| 398 |
|
$point = intval($module_config['download_file']); |
| 399 |
|
} |
| 400 |
|
else |
| 401 |
|
{ |
| 402 |
|
$point = intval($config->download_file); |
| 403 |
|
} |
| 404 |
|
|
| 405 |
|
// Get the points of the member |
| 406 |
|
$oPointModel = getModel('point'); |