get_comments_awaiting_moderation($blog); } break; case 'dom_type_edit': // Update type of a reffering domain from list screen by clicking on the type column // Check that this action request is not a CSRF hacked request: $Session->assert_received_crumb('domtype'); // Check permission: $current_User->check_perm('stats', 'edit', true); load_funcs('sessions/model/_hitlog.funcs.php'); $dom_type = param('new_dom_type', 'string'); $dom_name = param('dom_name', 'string'); $DB->query('UPDATE T_basedomains SET dom_type = ' . $DB->quote($dom_type) . ' WHERE dom_name =' . $DB->quote($dom_name)); echo '<a href="#" rel="' . $dom_type . '">' . stats_dom_type_title($dom_type) . '</a>'; break; case 'dom_status_edit': // Update status of a reffering domain from list screen by clicking on the type column // Check that this action request is not a CSRF hacked request: $Session->assert_received_crumb('domstatus'); // Check permission: $current_User->check_perm('stats', 'edit', true); load_funcs('sessions/model/_hitlog.funcs.php'); $dom_status = param('new_dom_status', 'string'); $dom_name = param('dom_name', 'string'); $DB->query('UPDATE T_basedomains SET dom_status = ' . $DB->quote($dom_status) . ' WHERE dom_name =' . $DB->quote($dom_name)); echo '<a href="#" rel="' . $dom_status . '" color="' . stats_dom_status_color($dom_status) . '">' . stats_dom_status_title($dom_status) . '</a>'; break;
var re = /rel="(.*)"/; var result = value.match(re); return {'unknown':'<?php echo stats_dom_type_title('unknown', true); ?> ','normal':'<?php echo stats_dom_type_title('normal', true); ?> ','searcheng':'<?php echo stats_dom_type_title('searcheng', true); ?> ', 'aggregator':'<?php echo stats_dom_type_title('aggregator', true); ?> ', 'email':'<?php echo stats_dom_type_title('email', true); ?> ', 'selected' : result[1]} }, type : 'select', name : 'new_dom_type', tooltip : 'Click to edit', event : 'click', callback : function (settings, original){ evoFadeSuccess(this); }, onsubmit: function(settings, original) {}, submitdata : function(value, settings) { var name = jQuery(':first',jQuery(this).parent()).text(); return {dom_name: name} },