Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) E:\xampp\xampp\htdocs\jaime\Xoab\css\ drwxrwxrwx |
Viewing file: user.js (1.81 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | // ********************************************************** // basic cookie routines // ********************************************************** function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } // ********************************************************** // contentSelector() // ********************************************************** function contentSelector() { var d; var val = 0; var cookieValue = readCookie( 'NumVisits' ); if ( cookieValue != null ) val = parseInt( cookieValue ); // First-timer if ( val == 0 ) { d = document.getElementById( 'firstTimerStory' ); d.setAttribute( "style","display:block;" ); d = document.getElementById( 'regularStory' ); d.setAttribute( "style","display:none;" ); } // One to three visits else if ( val > 0 && val < 3 ) { document.getElementById( 'firstTimerStory' ).setAttribute( "style","display:block;" ); document.getElementById( 'regularStory' ).setAttribute( "style","display:block;" ); } // More than three else{ document.getElementById( 'firstTimerStory' ).setAttribute( "style","display:none;" ); document.getElementById( 'regularStory' ).setAttribute( "style","display:block;" ); } val++; cookieValue = val.toString(); createCookie( 'NumVisits', cookieValue, 365 ); } |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0156 ]-- |