var headersData, admiralChecked = false; function getHeaders() { if (headersData === undefined) { var req = new XMLHttpRequest(); req.open('GET', location, false); req.send(null); // associate array to store all values headersData = new Object(); // get all headers in one call and parse each item var headers = req.getAllResponseHeaders().toLowerCase(), aHeaders = headers.split('\n'); for (var i= 0; i < aHeaders.length; i++) { var thisItem = aHeaders[i], key = thisItem.substring(0, thisItem.indexOf(':')), value = thisItem.substring(thisItem.indexOf(':') + 1); headersData[key] = value; } } } function getCFRay() { var result = 'admiral'; getHeaders(); if (headersData['cf-ray'] !== undefined && headersData['cf-ray'].length > 0) { result = headersData['cf-ray'].split('-')[1]; } else if (headersData['x-served-by'] !== undefined && headersData['x-served-by'].length > 0) { result = headersData['x-served-by']; } return result; } /** * Read Admiral cookie value * @param {string} status */ function readAdmiralCookie() { var cookieArray = document.cookie.split(/; */), ciphertextArray = [], isValid = false, matched = false, plaintext = '', cookieName, bytes, i; for (i = 0; i < cookieArray.length; i++) { ciphertextArray = cookieArray[i].split('='); if (ciphertextArray.length > 0) { bytes = CryptoJS.AES.decrypt(ciphertextArray[0].replace(/@[email protected]/g, '='), getCFRay()); try { plaintext = bytes.toString(CryptoJS.enc.Utf8); isValid = true; } catch { isValid = false; } if (isValid && plaintext.length > 0 && plaintext === (getCFRay() + navigator.userAgent).trim()) { cookieName = ciphertextArray[0] + '='; matched = true; break; } } } if (matched) { var char = cookieArray[i]; if (char.indexOf(cookieName) === 0) { var result = char.substring(cookieName.length, char.length).replace(/@[email protected]/g, '='), decrypted = CryptoJS.AES.decrypt(result, getCFRay()), data = { 'key' : cookieName, 'val' : 'false' }; if (decrypted.toString(CryptoJS.enc.Utf8) === (navigator.userAgent + getCFRay() + '1').trim()) { data['val'] = 'true'; } return data; } } return null; } /** * Save Admiral subscribed status to cookie * @param {string} status */ function updateAdmiralCookie(cipherValue, existingCookie) { var date = new Date(), valuePlainText = cipherValue.replace(/=/g, '@[email protected]'), admiralCookie; if (existingCookie !== null) { admiralCookie = existingCookie + valuePlainText; } else { var title = (getCFRay() + navigator.userAgent).trim(), titleCipher = CryptoJS.AES.encrypt(title, getCFRay()).toString(), titlePlainText = titleCipher.replace(/=/g, '@[email protected]'); admiralCookie = titlePlainText + '=' + valuePlainText; } date.setTime(date.getTime() + (10 * 60 * 1000)); admiralCookie += '; expires=' + date.toUTCString() + '; path=/'; document.cookie = admiralCookie; } checkAdmiralCookiePromise = new Promise(function (resolve, reject) { var cookieData = readAdmiralCookie(); if (cookieData !== null && cookieData['val'] === 'true') { resolve('subscribed'); } else if (window.admiral) { var checkAdmiralStatusPromise; if (window.location.host.replace(/^((sbx)|(dev)|(stg)|(www))\./, '') === 'forums.playstationlifestyle.net') { checkAdmiralStatusPromise = new Promise(function (resolve, reject) { if (typeof window.admiral !== 'undefined') { window.admiral("after", "measure.detected", function({ adblocking, whitelisted, subscribed }){ if (subscribed) { resolve('measure.subscribed'); } else { reject('measure.unsubscribed'); } }); } }); } else { checkAdmiralStatusPromise = new Promise(function (resolve, reject) { setTimeout(function () { reject('resolve'); }, 0); }); } checkAdmiralStatusPromise.then(function () { var cookieName = null; if (cookieData !== null) { cookieName = cookieData['key']; } updateAdmiralCookie(CryptoJS.AES.encrypt((navigator.userAgent + getCFRay() + '1').trim(), getCFRay()).toString(), cookieName); resolve('subscribed'); }) .catch(function (resp) { var cookieName = null; if (cookieData !== null) { cookieName = cookieData['key']; } updateAdmiralCookie(CryptoJS.AES.encrypt((navigator.userAgent + getCFRay() + '0').trim(), getCFRay()).toString(), cookieName); reject('unsubscribed'); }); } }); checkAdmiralCookiePromise.then(function () { console.info("[ADMIRAL] User Subscribed."); }).catch(function (resp) { console.info("[ADMIRAL] User Not Subscribed."); }); -->

College Basketball

Discussion in 'Everything Else' started by GATORJV, Feb 17, 2014.

  1. GATORJV

    GATORJV PSLS Level: Newbie

    Joined:
    Feb 17, 2014
    Messages:
    29
    Likes Received:
    6
    Anyone a huge fan of NCAA Basketball? I love me some college basketball.

    Any thoughts on the year?

    Florida is having an amazing year and is now ranked number 2. I just hope we aren't peaking too soon. It looks like Stephen F. Austin, last time I checked, is going to be in the tourney @BigPete7978. You should be proud if that is still true.
     
  2. BigPete7978

    BigPete7978 PSLS Level: Silver

    Joined:
    Feb 6, 2014
    Messages:
    1,826
    Likes Received:
    373
    PSN:
    BigPete7978
    Damn right I'm proud. My alma mater is representing :D
     
  3. Lifewish

    Lifewish 중재자 Staff Member

    Joined:
    Feb 6, 2014
    Messages:
    1,004
    Likes Received:
    380
    PSN:
    lifewish
    UNC loud and proud, BUT I don't watch anymore. College sports have really lost their appeal to me, though college hockey rocks!
     
  4. Vinomen

    Vinomen PSLS Level: Bronze

    Joined:
    Feb 12, 2014
    Messages:
    258
    Likes Received:
    58
    PSN:
    Vinomen
    Ill just leave this here.

    [​IMG]

    And did I mention Rounds 2 and 3 of the 2014 Tournament will be hosted at my workplace. Good chance for UF to be there.
     
  5. GATORJV

    GATORJV PSLS Level: Newbie

    Joined:
    Feb 17, 2014
    Messages:
    29
    Likes Received:
    6
    lol. You all have fallen off the past few weeks man. Wtf happened? Florida is looking good right now. I'm going to the game here in Columbia tomorrow. We play the SEC tourney in Atlanta and will be in the first and second round in Orlando. That is Gator Country. Will be a home game.

    Where do you work?
     
  6. Vinomen

    Vinomen PSLS Level: Bronze

    Joined:
    Feb 12, 2014
    Messages:
    258
    Likes Received:
    58
    PSN:
    Vinomen
    Tell me about it man. That Virginia loss hurts the most. But all in all its only 3 games, it hurts our rankings for sure. But still a hell of a season for the Orange. Definitely home court for UF, my brother in law already bought his tickets.

    I work for a Team in the Amway Center.
     
  7. Jacky

    Jacky PSLS Level: Silver

    Joined:
    Feb 20, 2014
    Messages:
    1,295
    Likes Received:
    265
    PSN:
    ScoobyPup01
    I don't watch college basketball, only college football and professional football
     
  8. GATORJV

    GATORJV PSLS Level: Newbie

    Joined:
    Feb 17, 2014
    Messages:
    29
    Likes Received:
    6
    Was pissed we lost in the Final Four. But the Final Four is still an amazing feat. With no NBA level starters, I will take it. :)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice