/** * Function to reset Hit count of a content item */ function resethits($option, $id) { global $database; josSpoofCheck(); $row = new mosContent($database); $row->Load((int) $id); $row->hits = "0"; $row->store(); $row->checkin(); $msg = 'Successfully Reset Hit'; mosRedirect('index2.php?option=' . $option . '&task=edit&hidemainmenu=1&id=' . $row->id, $msg); }
/** * Function to reset Hit count of a content item * PT */ function resethits($redirect, $id) { global $database; $row = new mosContent($database); $row->Load($id); $row->hits = "0"; $row->store(); $row->checkin(); $msg = T_('Successfully Reset Hit count'); mosRedirect('index2.php?option=com_content§ionid=' . $redirect . '&task=edit&hidemainmenu=1&id=' . $id, $msg); }
/** * Function to reset Hit count of a content item * PT */ function resethits() { global $database, $adminLanguage; $id = mosGetParam($_REQUEST, 'id', null); $row = new mosContent($database); $row->Load($id); $row->hits = "0"; $row->store(); $row->checkin(); $redirect = mosGetParam($_POST, 'redirect', $sectionid); $msg = $adminLanguage->A_COMP_CONTENT_RESET_HIT_COUNT . ": " . $row->title; mosRedirect('index2.php?option=com_content§ionid=' . $redirect . '&msg=' . $msg); }
/** * Function to reset Hit count of a content item * PT */ function resethits($redirect, $id) { global $database; josSpoofCheck(); $row = new mosContent($database); $row->Load((int) $id); $row->hits = 0; $row->store(); $row->checkin(); $msg = 'Contagem reiniciada com sucesso'; mosRedirect('index2.php?option=com_content§ionid=' . $redirect . '&task=edit&hidemainmenu=1&id=' . $id, $msg); }