function loadcontent( hash, page ) { var xmlHttp; try { xmlHttp = new XMLHttpRequest(); } catch ( e ) { try { xmlHttp = new ActiveXObject( "Msxml2.XMLHTTP" ); } catch ( e ) { try { xmlHttp = new ActiveXObject( "Microsoft.XMLHTTP" ); } catch ( e ) { alert( "Your browser does not support AJAX!" ); return false; } } } xmlHttp.onreadystatechange = function() { switch ( xmlHttp.readyState ) { case 0 : { document.getElementById( 'torrent_' + hash + '_content' ).innerHTML = 0; break; } case 1 : { document.getElementById( 'torrent_' + hash + '_content' ).innerHTML = 'Requesting...'; break; } case 2 : { document.getElementById( 'torrent_' + hash + '_content' ).innerHTML = 2; break; } case 3 : { document.getElementById( 'torrent_' + hash + '_content' ).innerHTML = 'Processing...'; break; } case 4 : { document.getElementById( 'torrent_' + hash + '_content' ).innerHTML = xmlHttp.responseText; break; } default : { document.getElementById( 'torrent_' + hash + '_content' ).innerHTML = '.'; break; } } } xmlHttp.open( 'GET', '?mod=torrent&hash=' + hash + '&page=' + page + '&ajax=true', true ); xmlHttp.send( null ); } function loadcontent_filepriority( iurl, hash, id, filepriority ) { var xmlHttp; try { xmlHttp = new XMLHttpRequest(); } catch ( e ) { try { xmlHttp = new ActiveXObject( "Msxml2.XMLHTTP" ); } catch ( e ) { try { xmlHttp = new ActiveXObject( "Microsoft.XMLHTTP" ); } catch ( e ) { alert( "Your browser does not support AJAX!" ); return false; } } } xmlHttp.onreadystatechange = function() { switch ( xmlHttp.readyState ) { case 0 : { document.getElementById( 'torrent_' + hash + '_content' ).innerHTML = 0; break; } case 1 : { document.getElementById( 'torrent_' + hash + '_content' ).innerHTML = 'Requesting...'; break; } case 2 : { document.getElementById( 'torrent_' + hash + '_content' ).innerHTML = 2; break; } case 3 : { document.getElementById( 'torrent_' + hash + '_content' ).innerHTML = 'Processing...'; break; } case 4 : { document.getElementById( 'torrent_' + hash + '_content' ).innerHTML = xmlHttp.responseText; break; } default : { document.getElementById( 'torrent_' + hash + '_content' ).innerHTML = '.'; break; } } } xmlHttp.open( 'GET', iurl + '?mod=changefilepriority&hash=' + hash + '&id=' + id + '&filepriority=' + filepriority + '&ajax=true', true ); xmlHttp.send( null ); } function loadcontent_trackerenabled( iurl, hash, id, trackerenabled ) { var xmlHttp; try { xmlHttp = new XMLHttpRequest(); } catch ( e ) { try { xmlHttp = new ActiveXObject( "Msxml2.XMLHTTP" ); } catch ( e ) { try { xmlHttp = new ActiveXObject( "Microsoft.XMLHTTP" ); } catch ( e ) { alert( "Your browser does not support AJAX!" ); return false; } } } xmlHttp.onreadystatechange = function() { switch ( xmlHttp.readyState ) { case 0 : { document.getElementById( 'torrent_' + hash + '_content' ).innerHTML = 0; break; } case 1 : { document.getElementById( 'torrent_' + hash + '_content' ).innerHTML = 'Requesting...'; break; } case 2 : { document.getElementById( 'torrent_' + hash + '_content' ).innerHTML = 2; break; } case 3 : { document.getElementById( 'torrent_' + hash + '_content' ).innerHTML = 'Processing...'; break; } case 4 : { document.getElementById( 'torrent_' + hash + '_content' ).innerHTML = xmlHttp.responseText; break; } default : { document.getElementById( 'torrent_' + hash + '_content' ).innerHTML = '.'; break; } } } xmlHttp.open( 'GET', iurl + '?mod=changetrackerenabled&hash=' + hash + '&id=' + id + '&trackerenabled=' + trackerenabled + '&ajax=true', true ); xmlHttp.send( null ); }