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) C:\Intranet\C\Archivos de programa\openfire\plugins\admin\webapp\js\ drwxrwxrwx |
Viewing file: cookies.js (2.54 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | /* Modifed by BL to namespace the functions */ /* DISCLAIMER: THESE JAVASCRIPT FUNCTIONS ARE SUPPLIED 'AS IS', WITH NO WARRANTY EXPRESSED OR IMPLIED. YOU USE THEM AT YOUR OWN RISK. NEITHER PAUL STEPHENS NOR PC PLUS MAGAZINE ACCEPTS ANY LIABILITY FOR ANY LOSS OR DAMAGE RESULTING FROM THEIR USE, HOWEVER CAUSED. Paul Stephens' NetScape-based cookie-handling library http://web.ukonline.co.uk/paul.stephens/index.htm TO USE THIS LIBRARY, INSERT ITS CONTENTS IN A <script></script> BLOCK IN THE <HEAD> SECTION OF YOUR WEB PAGE SOURCE, BEFORE ANY OTHER JAVASCRIPT ROUTINES. Feel free to use this code, but please leave this comment block in. */ var Cookies = { setCookie: function(name, value, lifespan, access_path) { var cookietext = name + "=" + escape(value) if (lifespan != null) { var today=new Date() var expiredate = new Date() expiredate.setTime(today.getTime() + 1000*60*60*24*lifespan) cookietext += "; expires=" + expiredate.toGMTString() } if (access_path != null) { cookietext += "; PATH="+access_path } document.cookie = cookietext return null }, setDatedCookie: function(name, value, expire, access_path) { var cookietext = name + "=" + escape(value) + ((expire == null) ? "" : ("; expires=" + expire.toGMTString())) if (access_path != null) { cookietext += "; PATH="+access_path } document.cookie = cookietext return null }, getCookie: function(Name) { var search = Name + "=" var CookieString = document.cookie var result = null if (CookieString.length > 0) { offset = CookieString.indexOf(search) if (offset != -1) { offset += search.length end = CookieString.indexOf(";", offset) if (end == -1) end = CookieString.length result = unescape(CookieString.substring(offset, end)) } } return result }, deleteCookie: function (Name, Path) { Cookies.setCookie(Name,"Deleted", -1, Path) } } |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0312 ]-- |