Can't Signup
Using Jamroom
there is a section about email not being sent in the jr4 faq
{if jrUser_is_master()}
chart_count: {$item.chart_count}
chart_position: {$item.chart_position}
chart_new_entry: {$item.chart_new_entry}
chart_change: {$item.chart_change}
chart_direction: {$item.chart_direction}
{/if}
//------------------------------
// section_delete
//------------------------------
function view_ujModule_section_delete($_post, $_user, $_conf)
{
// Must be logged in
jrUser_session_require_login();
ujModule_validate_location_url();
jrUser_check_quota_access('ujModule');
// Make sure we get a good id
if (!isset($_post['id']) || !jrCore_checktype($_post['id'], 'number_nz')) {
jrCore_notice_page('error', 'Invalid ID');
jrCore_form_result('referrer');
}
$_rt = jrCore_db_get_item('ujModule', $_post['id']);
// Make sure the calling user has permission to delete this item
if (!jrUser_can_edit_item($_rt)) {
jrUser_not_authorized();
}
jrCore_db_delete_item('ujModule', $_post['id']);
jrProfile_reset_cache();
jrCore_form_result('delete_referrer');
}
/**
* Validate a window.location redirect URL has been set for CSRF purposes
* @return bool
*/
function ujModule_validate_location_url(){
fdebug($_COOKIE,$_SERVER);
if (isset($_COOKIE['jr_location_url']{1})) {
// Make sure we've come from the correct URL
if (!strpos($_COOKIE['jr_location_url'], $_SERVER['REQUEST_URI'])) {
// Check QUERY_STRING - normally this is not needed, but on some
// redirects the params can get double encoded - QUERY_STRING will have it right
// [QUERY_STRING] => _uri=networklicense/host_remove/aHR0cDovL3d3dy5wcm94aW1hY29yZS5jb20%253D
if (isset($_SERVER['QUERY_STRING']) && strpos($_SERVER['QUERY_STRING'], '_uri=') === 0) {
list(, $uri) = explode('=', $_SERVER['QUERY_STRING']);
if (strpos($_COOKIE['jr_location_url'], $uri)) {
return true;
}
}
jrCore_notice_page('error', 'invalid location redirect token received - please try again');
return false;
}
return true;
}
jrCore_notice_page('error', 'invalid location redirect token received - please try again (2)');
return false;
}